/* Rockland Parks — sibling to the YIMBY redesign preview (2026-11-18).
   Same family look: white background, deep green accent, Bitter slab-serif
   headlines, Inter sans for UI/data, tracker-first layout. No mono, no cream,
   no red. No images anywhere — type and color only. Flat: hairlines are the
   divider, no shadows, no rounded corners. */
* { box-sizing: border-box; }

:root {
  --paper: #FFFFFF;
  --ink: #1E3A2F;
  --accent: #1F5C3D;
  --sage: #5C6E62;
  --sage-soft: #E9EDE5;
  --line: #D5DAD0;
  --card: #FFFFFF;
  --serif: "Bitter", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-padding-top: 96px; scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
}

a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
a:hover, a:focus { color: var(--accent); }

.wrap {
  max-width: 1540px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

h1, h2, h3 { font-family: var(--serif); color: var(--ink); }
h1 em, h2 em, h3 em { color: var(--accent); font-style: italic; }

.kicker, .eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 0.75rem;
}
.muted, .note { color: var(--sage); font-size: 0.9rem; }

/* --- Slim paper header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}
.brand {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.brand em { color: var(--accent); font-style: normal; font-weight: 800; }
.brand:hover, .brand:focus { color: var(--ink); text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.4rem; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
}
.site-nav a:hover, .site-nav a:focus { color: var(--accent); text-decoration: underline; }

/* --- First screen: data-first --- */
.first-screen { padding: 2.5rem 0 1.25rem; border-bottom: 1px solid var(--ink); }
.first-screen h1 {
  margin: 0 0 1rem;
  font-size: 3rem;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.01em;
  max-width: 900px;
}
.thesis {
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.5;
  max-width: 820px;
  margin: 0 0 1rem;
}
.freshness { font-size: 0.95rem; color: var(--sage); max-width: 820px; margin: 0 0 1.5rem; }
.freshness strong { color: var(--ink); }
.count-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 900px;
}
.count-tiles > div {
  background: var(--card);
  border: 1px solid var(--ink);
  padding: 1.1rem 1.25rem 1.25rem;
}
.count-tiles strong {
  display: block;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.count-tiles span {
  display: block;
  margin-top: 0.35rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}
.tile-source { font-size: 0.85rem; color: var(--sage); margin: 0.75rem 0 0; max-width: 820px; }
.jump-links {
  margin: 1.5rem 0 0;
  font-size: 0.92rem;
  color: var(--sage);
}
.jump-links a { text-decoration: none; font-weight: 600; }
.jump-links a:hover { color: var(--accent); text-decoration: underline; }

/* --- Sections --- */
main.wrap { padding-top: 0.5rem; padding-bottom: 2rem; }
.section { padding: 2rem 0 0.5rem; }
.section h2 {
  margin: 0 0 0.9rem;
  font-size: 1.9rem;
  line-height: 1.2;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ink);
}
.section p { max-width: 820px; }

/* Question band: soft sage background. */
.band {
  background: var(--sage-soft);
  padding: 1.75rem 2rem 2rem;
  margin-top: 2rem;
}
.band h2 { border-bottom: none; }

/* --- Stats --- */
.stats-band { padding: 2rem 0 0.5rem; }
.asof { font-size: 0.95rem; color: var(--sage); margin: 0 0 1rem; max-width: 820px; }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.stats > div {
  background: var(--card);
  border: 1px solid var(--ink);
  padding: 1rem 1.1rem 1.1rem;
}
.stats strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.stats span {
  display: block;
  line-height: 1.5;
  color: var(--ink);
  margin-top: 0.35rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.stats-note { margin: 1rem 0 0; max-width: none; }

/* --- Tracker filters: prominent search --- */
.tracker label:first-of-type {
  display: block;
  margin-bottom: 0.75rem;
}
.tracker label {
  display: inline-block;
  margin: 0 1rem 0.75rem 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}
.tracker input, .tracker select {
  font-family: var(--sans);
  font-size: 0.95rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--ink);
  background: #fff;
  max-width: 100%;
  border-radius: 0;
}
.tracker input[type="search"] {
  min-width: 260px;
  width: 100%;
  max-width: none;
  font-size: 1.05rem;
  padding: 0.7rem 0.8rem;
  border-width: 1.5px;
}
.tracker input:focus, .tracker select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
#count {
  color: var(--sage);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --- Park card grid --- */
#grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
  align-items: start;
}
.card {
  background: var(--card);
  border: 1px solid var(--ink);
  padding: 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.35rem; line-height: 1.25; overflow-wrap: anywhere; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--accent); text-decoration: underline; }
.card, .card p { min-width: 0; overflow-wrap: anywhere; }
#grid > * { min-width: 0; }
.card p { font-size: 0.97rem; }
.card-kicker {
  font-family: var(--sans);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-wrap: normal;
  gap: 0.1rem;
  line-height: 1.3;
  min-height: 2.6em;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.6rem;
}
.card-kicker-town { color: var(--ink); flex: 0 0 auto; white-space: nowrap; }
.card-kicker-date { color: var(--sage); text-align: left; flex: 0 0 auto; white-space: nowrap; }
.card-kind {
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem !important;
}
.card-acres { font-weight: 700; }
.card .project-link {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.card .project-link:hover { color: var(--accent); text-decoration: underline; }

/* --- Upgrade status chips: flat square sans labels. Colors are information. --- */
.chip {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0;
}
.chip-proposed { background: #e8edf2; color: #334155; }
.chip-approved-funded { background: #fdf3d7; color: #6b5500; }
.chip-in-progress { background: #fdeeda; color: #7c3f08; }
.chip-existing { background: #dcefe3; color: #1d5c36; }

/* --- Upgrades digest: timestamped list, hairline rows, two columns --- */
.digest-list { list-style: none; padding: 0; margin: 0; max-width: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; border-top: 1px solid var(--line); }
.digest-list li { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.digest-list li:first-child { border-top: none; }
.digest-meta {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 0.3rem;
}
.digest-list h3 { margin: 0 0 0.3rem; font-size: 1.4rem; line-height: 1.3; }
.digest-list p { margin: 0.4rem 0 0; font-size: 0.97rem; }
.upgrade-item .chip { margin: 0.3rem 0 0.2rem; }
.upgrade-source { font-size: 0.9rem; color: var(--sage); }
.upgrade-source a { color: var(--accent); }

/* --- Footer --- */
.site-footer {
  background: var(--paper);
  margin-top: 2rem;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.92rem;
  line-height: 1.6;
  border-top: 1px solid var(--ink);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.7fr;
  gap: 2rem;
}
.footer-col h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 0.5rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.4rem;
  display: inline-block;
}
.footer-col:first-child h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  border-bottom: none;
  padding-bottom: 0;
  display: block;
}
.footer-col:first-child h3 em { color: var(--accent); font-style: normal; }
.footer-col p { margin: 0 0 0.5rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.35rem; }
.site-footer a { color: var(--ink); text-underline-offset: 2px; }
.site-footer a:hover, .site-footer a:focus { color: var(--accent); }
.footer-note {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-note p {
  margin: 0 0 0.25rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
}

/* --- Park pages --- */
.project-page { padding-top: 1.5rem; padding-bottom: 2rem; }
.meta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}
.meta-bar .back-link { text-decoration: none; }
.meta-bar .back-link:hover { color: var(--accent); }
.meta-cat { color: var(--accent); }
.meta-updated { color: var(--sage); margin-left: auto; text-align: right; }
.project-page h1 { font-size: 2.6rem; line-height: 1.15; font-weight: 800; margin: 0 0 0.75rem; overflow-wrap: anywhere; }
.back-link { font-weight: 700; text-decoration: none; }
.back-link:hover, .back-link:focus { color: var(--accent); text-decoration: underline; }
.project-link { font-weight: 700; text-decoration: none; }
.project-link:hover, .project-link:focus { color: var(--accent); text-decoration: underline; }

/* Record table: ink header row, hairline dividers. */
.record-table {
  width: 100%;
  max-width: 820px;
  border-collapse: collapse;
  margin: 0.5rem 0 1rem;
}
.record-table th, .record-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--line);
}
.record-table thead th {
  background: var(--ink);
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1rem;
  border-bottom: none;
}
.record-table tbody th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: 180px;
  white-space: nowrap;
}
.record-table td { font-size: 0.97rem; }

/* Sources block. */
.sources-block h2 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.4rem;
}
.sources-block ul { list-style: none; padding: 0; margin: 0; max-width: 820px; }
.sources-block li { border-bottom: 1px solid var(--line); padding: 0.5rem 0; }
.sources-block a { color: var(--accent); text-decoration: underline; }

/* Standfirst dek. */
.article-dek {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ink);
  max-width: 820px;
  margin: 0 0 1.25rem;
}

.projects-mentioned-block {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink);
  max-width: 820px;
}
.projects-mentioned-block h2 { font-size: 1.3rem; margin: 0 0 0.5rem; border-bottom: none; padding-bottom: 0; }
.projects-mentioned-block p { margin: 0 0 0.5rem; }
.projects-mentioned-block p a { color: var(--accent); }

/* --- History timeline --- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  border-top: 1px solid var(--ink);
  counter-reset: timeline;
}
.timeline-item {
  counter-increment: timeline;
  border-bottom: 1px solid var(--line);
  padding: 0.75rem 0;
}
.timeline-item summary {
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  list-style: none;
}
.timeline-item summary::-webkit-details-marker { display: none; }
.timeline-item summary::before {
  content: counter(timeline, decimal-leading-zero);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--sage);
}
.timeline-item summary time {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--sage);
  white-space: nowrap;
}
.timeline-status { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }
.timeline-event, .timeline-source { margin: 0.5rem 0 0; max-width: 760px; }
.timeline-source a { color: var(--accent); }

/* --- Mobile nav: hamburger menu --- */
.nav-toggle { display: none; }
@media (max-width: 700px) {
  .header-inner { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .brand { flex: 1 1 auto; min-width: 0; font-size: 1.25rem; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: transparent; color: var(--ink);
    border: 1px solid var(--ink); padding: 0.45rem 0.8rem;
    font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer; border-radius: 0;
  }
  .nav-toggle:hover, .nav-toggle:focus { background: var(--sage-soft); }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; margin-top: 0.25rem; border-top: 1px solid var(--line); padding-top: 0.25rem; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.65rem 0.25rem; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: none; }
}

/* --- Park pages: desktop sidebar with widgets --- */
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.sidebar { min-width: 0; }
.widget {
  background: var(--card);
  border: 1px solid var(--ink);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.widget h3 {
  margin: 0 0 0.75rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.4rem;
}
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { margin-bottom: 0.6rem; line-height: 1.35; }
.widget li:last-child { margin-bottom: 0; }
.widget p { margin: 0 0 0.5rem; }
.widget p:last-child { margin-bottom: 0; }
@media (min-width: 701px) {
  .sidebar { position: sticky; top: 84px; }
}

/* --- Phone widths: stack, wrap, no horizontal overflow --- */
@media (max-width: 700px) {
  body { font-size: 15px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .first-screen { padding-top: 1.5rem; }
  .first-screen h1 { font-size: 2.1rem; }
  .thesis { font-size: 1.15rem; }
  .count-tiles { grid-template-columns: 1fr; }
  .count-tiles strong { font-size: 2rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats strong { font-size: 1.6rem; }
  .band { padding: 1.25rem 1rem 1.5rem; }
  #grid { grid-template-columns: 1fr; }
  .tracker label { display: block; margin-right: 0; }
  .tracker input[type="search"], .tracker select { width: 100%; min-width: 0; }
  .card { padding: 1rem; }
  .section h2 { font-size: 1.5rem; }
  .project-page h1 { font-size: 1.9rem; }
  .digest-list { grid-template-columns: 1fr; }
  .article-dek { font-size: 1.15rem; }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { margin-top: 0.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .site-footer { padding: 2rem 0 1.25rem; }
  .record-table tbody th { white-space: normal; width: 120px; }
  .meta-updated { margin-left: 0; }
}

/* The tracker filter hides cards with the hidden attribute; the flex display
   on .card otherwise overrides the browser's built-in [hidden] rule. */
.card[hidden] { display: none; }
