/* Layout: single readable column with a sticky call bar; civic, document-like, rowhome-scaled blocks */
:root {
  --paper: #f5f7f6;
  --surface: #ffffff;
  --ink: #15243a;
  --muted: #4f5d6b;
  --line: #d6dde0;
  --accent: #1d6b57;
  --accent-ink: #ffffff;
  --brick: #9a4a2f;
  --tint: #e6efec;
  --f-display: "Bitter", Georgia, "Times New Roman", serif;
  --f-body: "Source Sans 3", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --wrap: 68rem;
  --read: 40rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1720; --surface: #16212c; --ink: #e8eef2; --muted: #a3b1bc;
    --line: #2a3846; --accent: #58b89c; --accent-ink: #0b1a15; --brick: #e08b6c; --tint: #1a2d2a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1720; --surface: #16212c; --ink: #e8eef2; --muted: #a3b1bc;
  --line: #2a3846; --accent: #58b89c; --accent-ink: #0b1a15; --brick: #e08b6c; --tint: #1a2d2a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--f-display); line-height: 1.2; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 1rem; }
.read { max-width: var(--read); }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.label {
  font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; flex-wrap: wrap; }
.brand { font-family: var(--f-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.brand small { display: block; font-family: var(--f-mono); font-weight: 400; font-size: 0.7rem; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.nav { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; font-size: 0.98rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }
.call {
  display: inline-flex; align-items: center; gap: 0.4rem; background: var(--accent); color: var(--accent-ink) !important;
  padding: 0.45rem 0.85rem; border-radius: 6px; font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums;
}

/* Hero */
.hero { padding-block: 3.2rem 2.8rem; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.hero p.lede { font-size: 1.2rem; color: var(--muted); max-width: 36rem; }
.hero .cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 0.75rem 1.2rem; border-radius: 6px; font-weight: 600; text-decoration: none;
  border: 2px solid var(--accent); font-size: 1rem; cursor: pointer; font-family: var(--f-body);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--accent); }

/* Rowhome strip: a row of facades, the hero's one visual flourish */
.rowhomes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; align-items: end; margin-top: 2rem; max-width: 30rem; }
.rowhomes span { display: block; background: var(--brick); opacity: 0.85; border-radius: 2px 2px 0 0; position: relative; }
.rowhomes span::after {
  content: ""; position: absolute; inset: 22% 22% auto 22%; height: 26%;
  background: var(--paper); opacity: 0.8; border-radius: 1px;
}
.rowhomes span:nth-child(1) { height: 70px; } .rowhomes span:nth-child(2) { height: 82px; opacity: 0.7; }
.rowhomes span:nth-child(3) { height: 76px; } .rowhomes span:nth-child(4) { height: 88px; opacity: 0.75; }
.rowhomes span:nth-child(5) { height: 72px; }

/* Panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.4rem; }
.notice { background: var(--tint); border-left: 4px solid var(--accent); border-radius: 0 8px 8px 0; padding: 1.1rem 1.25rem; }
.notice strong { font-variant-numeric: tabular-nums; }

section.block { padding-block: 3rem; }
section.block + section.block { border-top: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.path h3 { margin-bottom: 0.4rem; }
.path ul { margin: 0.6rem 0 1rem; padding-left: 1.1rem; color: var(--muted); }
.path { display: flex; flex-direction: column; }
.path .btn { margin-top: auto; align-self: flex-start; }

/* Docket timeline */
.docket { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.docket li { position: relative; padding: 0 0 1.4rem 1.4rem; }
.docket li::before {
  content: ""; position: absolute; left: -7px; top: 0.45rem; width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent);
}
.docket li:last-child { padding-bottom: 0; }
.docket .when { font-family: var(--f-mono); font-size: 0.8rem; color: var(--brick); letter-spacing: 0.04em; }
.docket h3 { font-size: 1.08rem; margin: 0.1rem 0 0.25rem; }
.docket p { color: var(--muted); }

/* Options table */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.98rem; }
th, td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }

/* Counties */
.counties { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); gap: 0.75rem; }
.county { border-top: 3px solid var(--accent); background: var(--surface); padding: 0.9rem 1rem; border-radius: 0 0 6px 6px; }
.county b { font-family: var(--f-display); display: block; font-size: 1.05rem; }
.county span { color: var(--muted); font-size: 0.92rem; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding-block: 0.9rem; }
summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
details p { margin-top: 0.6rem; color: var(--muted); }

/* Article pages */
.article { padding-block: 2.5rem 3rem; }
.article .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 3rem; align-items: start; }
.prose { max-width: var(--read); display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.prose h2 { margin-top: 1.4rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; }
.aside { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 5rem); display: flex; flex-direction: column; gap: 1rem; }
.toc a { display: block; color: var(--ink); text-decoration: none; padding-block: 0.2rem; font-size: 0.95rem; }
.toc a:hover { color: var(--accent); }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.8rem; }
.crumbs a { color: var(--muted); }
.updated { font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted); }

/* Form */
form.lead { display: grid; gap: 0.85rem; }
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 0.6rem 0.7rem; width: 100%;
}
.form-note { font-size: 0.85rem; color: var(--muted); }
.form-status { font-weight: 600; color: var(--accent); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.big-phone { font-family: var(--f-display); font-size: 1.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Footer */
.site-footer { background: var(--ink); color: var(--paper); padding-block: 2.5rem; font-size: 0.92rem; }
.site-footer .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
.site-footer a { color: var(--paper); }
.site-footer .disclosure { grid-column: 1 / -1; border-top: 1px solid color-mix(in srgb, var(--paper) 25%, transparent); padding-top: 1.2rem; opacity: 0.85; font-size: 0.85rem; }

@media (max-width: 860px) {
  .hero .wrap, .article .wrap, .contact .wrap, .grid-2, .grid-3, .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
  .aside { position: static; }
  .nav { gap: 0.8rem; font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
