/* Layout: full-bleed harbor-green hero holding a working "route finder"; content below in a 1180px grid; routes drawn as connected stops like a transit line. */
:root {
  --bg: #f4f6f4;
  --surface: #ffffff;
  --ink: #12201d;
  --muted: #55655f;
  --line: #d3ddd8;
  --harbor: #0e3b36;
  --on-harbor: #eef5f2;
  --harbor-soft: #e3eeea;
  --ochre: #b8730f;
  --ochre-ink: #8a560a;
  --ok: #2f7d4f;
  --link: #0c6b5d;
  --route: #0e3b36;
  --f-display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-ui: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1513; --surface: #132220; --ink: #e2ebe8; --muted: #9fb1ab; --line: #263a36;
    --harbor: #0a2a26; --on-harbor: #e2efea; --harbor-soft: #17302c;
    --ochre: #e2a447; --ochre-ink: #e2a447; --ok: #6cc08e; --link: #6cc3b0; --route: #6cc3b0; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1513; --surface: #132220; --ink: #e2ebe8; --muted: #9fb1ab; --line: #263a36;
  --harbor: #0a2a26; --on-harbor: #e2efea; --harbor-soft: #17302c;
  --ochre: #e2a447; --ochre-ink: #e2a447; --ok: #6cc08e; --link: #6cc3b0; --route: #6cc3b0; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ochre); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.15rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
p { margin: 0; }
.w { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.ui { font-family: var(--f-ui); }
.muted { color: var(--muted); }
.tag { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ochre-ink); }
.stack { display: grid; gap: 1rem; align-content: start; min-width: 0; }
.stack-lg { display: grid; gap: 2.5rem; min-width: 0; }
.prose { max-width: 66ch; display: grid; gap: 1rem; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .4rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: .5rem; z-index: 99; background: var(--surface); padding: .5rem 1rem; }

/* header */
.hd { background: var(--harbor); color: var(--on-harbor); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; }
.hd .w { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; position: relative; }
.mark { display: flex; align-items: center; gap: .55rem; color: inherit; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; }
.mark span { color: var(--ochre); }
.nav { display: flex; gap: 1.1rem; align-items: center; font-family: var(--f-ui); font-size: .93rem; }
.nav a { color: var(--on-harbor); text-decoration: none; opacity: .88; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; text-decoration: underline; }
.nav .call { font-family: var(--f-mono); font-size: .85rem; opacity: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font-family: var(--f-ui); font-weight: 600; font-size: .95rem; padding: .7rem 1.15rem; border-radius: 999px; background: var(--ochre); color: #1d1204; text-decoration: none; border: 1px solid var(--ochre); cursor: pointer; }
.btn:hover { filter: brightness(1.06); }
.btn.line { background: transparent; color: inherit; border-color: currentColor; }
.nav .btn { opacity: 1; color: #1d1204; }
.menu { display: none; font-family: var(--f-ui); background: transparent; color: var(--on-harbor); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .35rem .9rem; cursor: pointer; }
@media (max-width: 960px) {
  .menu { display: inline-block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--harbor); flex-direction: column; align-items: stretch; gap: 0; padding: .25rem 20px 1rem; border-top: 1px solid rgba(255,255,255,.12); }
  .nav.open { display: flex; }
  .nav a { padding: .65rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav .btn { margin-top: .8rem; border-bottom: 0; }
}

/* hero */
.hero { background: var(--harbor); color: var(--on-harbor); padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3rem, 6vw, 5rem); }
.hero .w { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.hero .w > * { min-width: 0; }
.hero h1 em { font-style: normal; color: var(--ochre); }
.hero .lead { font-size: 1.2rem; opacity: .9; max-width: 50ch; }
.hero .tag { color: var(--ochre); }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem; font-family: var(--f-ui); font-size: .88rem; }
.hero-facts span { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .3rem .75rem; }
@media (max-width: 900px) { .hero .w { grid-template-columns: 1fr; } }
.page-top { background: var(--harbor); color: var(--on-harbor); padding-block: 1.25rem 2.75rem; }
.page-top .tag { color: var(--ochre); }
.page-top .lead { font-size: 1.15rem; opacity: .9; max-width: 62ch; }
.crumbs { font-family: var(--f-ui); font-size: .82rem; opacity: .8; margin-bottom: 1.5rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 0; }
.crumbs li + li::before { content: "›"; margin-right: .3rem; }
.crumbs a { color: inherit; }

/* route finder */
.finder { background: var(--surface); color: var(--ink); border-radius: var(--r); padding: 1.4rem; display: grid; gap: 1rem; box-shadow: 0 24px 48px -28px rgba(0,0,0,.55); }
.finder h2 { font-size: 1.35rem; }
.finder label { font-family: var(--f-ui); font-weight: 600; font-size: .9rem; display: grid; gap: .35rem; }
select, input, textarea { font: inherit; font-family: var(--f-ui); font-size: .97rem; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: .62rem .7rem; width: 100%; min-width: 0; }
textarea { min-height: 110px; resize: vertical; }

/* the route line */
.route { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.route li { position: relative; padding: 0 0 1.1rem 2rem; font-family: var(--f-ui); font-size: .95rem; }
.route li::before { content: ""; position: absolute; left: 6px; top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--route); }
.route li::after { content: ""; position: absolute; left: 11px; top: 1.15rem; bottom: -.1rem; width: 2px; background: var(--route); }
.route li:last-child { padding-bottom: 0; }
.route li:last-child::after { display: none; }
.route li.end::before { background: var(--ochre); border-color: var(--ochre); }
.route b { display: block; font-weight: 700; }
.route small { color: var(--muted); font-size: .85rem; display: block; }
.verdict { font-family: var(--f-ui); font-size: .9rem; border-radius: 8px; padding: .7rem .85rem; background: var(--harbor-soft); }
.verdict b { color: var(--ok); }
.pill { display: inline-block; font-family: var(--f-ui); font-size: .75rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; background: var(--harbor-soft); color: var(--link); white-space: nowrap; }
.pill.self { background: var(--ok); color: #fff; }
.pill.clerk { background: var(--ochre); color: #1d1204; }

/* sections */
.sec { padding-block: clamp(2.75rem, 5.5vw, 4.75rem); }
.sec.alt { background: var(--surface); border-block: 1px solid var(--line); }
.head { display: grid; gap: .55rem; max-width: 64ch; margin-bottom: 2rem; }

/* two routes */
.routes2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.routes2 > div { border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; display: grid; gap: 1rem; align-content: start; background: var(--bg); min-width: 0; }
.routes2 ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .25rem; }
@media (max-width: 820px) { .routes2 { grid-template-columns: 1fr; } }

/* counties */
.counties { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .75rem; }
.county { display: grid; gap: .2rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); text-decoration: none; font-family: var(--f-ui); }
.county:hover { border-color: var(--link); }
.county b { font-family: var(--f-display); font-size: 1.05rem; letter-spacing: -0.01em; }
.county span { font-size: .85rem; color: var(--muted); }
.county .ph { font-family: var(--f-mono); font-size: .8rem; color: var(--ink); }
.region-h { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 1.75rem 0 .7rem; }

/* links grid */
.links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 1.5rem; font-family: var(--f-ui); }
.links a { display: flex; justify-content: space-between; gap: .5rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); color: var(--ink); text-decoration: none; }
.links a:hover { color: var(--link); }
.links small { color: var(--muted); font-family: var(--f-mono); font-size: .72rem; white-space: nowrap; }
.find { display: grid; gap: .35rem; max-width: 420px; font-family: var(--f-ui); font-weight: 600; font-size: .9rem; margin-bottom: .5rem; }

/* doc cards */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.doc { display: grid; gap: .5rem; align-content: start; padding: 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; }
.doc:hover { border-color: var(--link); }
.doc p { font-size: .95rem; color: var(--muted); }

/* page layout with side card */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); display: grid; gap: 1rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.25rem; display: grid; gap: .8rem; font-family: var(--f-ui); font-size: .93rem; }
.card h3 { font-size: 1rem; }
.kv { margin: 0; display: grid; gap: .45rem; }
.kv div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .4rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.addr { font-style: normal; line-height: 1.5; }
.mono { font-family: var(--f-mono); }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } .side { position: static; } }

/* tables */
.tw { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; min-width: 600px; border-collapse: collapse; font-family: var(--f-ui); font-size: .93rem; font-variant-numeric: tabular-nums; }
th, td { padding: .75rem .95rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-family: var(--f-mono); font-weight: 500; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--bg); }
tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }

/* price */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem; display: grid; gap: .5rem; align-content: start; font-family: var(--f-ui); min-width: 0; }
.price .n { font-family: var(--f-display); font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.price .n small { font-family: var(--f-ui); font-size: .9rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.price .b { font-family: var(--f-mono); font-size: .78rem; color: var(--muted); }
.price.free { background: var(--harbor-soft); border-color: transparent; }
@media (max-width: 820px) { .prices { grid-template-columns: 1fr; } }

/* checklist */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-family: var(--f-ui); }
.check-list li { padding-left: 1.8rem; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .25rem; width: 1.05rem; height: 1.05rem; border: 2px solid var(--link); border-radius: 4px; }

/* faq */
.faq { border-top: 1px solid var(--line); max-width: 78ch; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; position: relative; font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: .85rem; font-family: var(--f-mono); color: var(--ochre-ink); font-size: 1.2rem; }
.faq details[open] summary::after { content: "−"; }
.faq details > p { padding-bottom: 1rem; color: var(--muted); }

.note { border-left: 4px solid var(--ochre); background: var(--surface); padding: .9rem 1.1rem; border-radius: 0 var(--r) var(--r) 0; font-family: var(--f-ui); font-size: .95rem; }

/* forms */
form { display: grid; gap: 1.25rem; }
fieldset { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 1.25rem; margin: 0; display: grid; gap: 1rem; min-width: 0; }
legend { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; color: var(--ochre-ink); padding: 0 .4rem; }
form label { font-family: var(--f-ui); font-weight: 600; font-size: .9rem; display: grid; gap: .3rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .two { grid-template-columns: 1fr; } }
.tick { display: flex !important; gap: .6rem; align-items: start; font-weight: 400 !important; }
.tick input { width: auto; margin-top: .3rem; }
.est { background: var(--harbor); color: var(--on-harbor); border-radius: var(--r); padding: 1.25rem; display: grid; gap: .45rem; font-family: var(--f-ui); font-variant-numeric: tabular-nums; }
.est .t { font-family: var(--f-display); font-weight: 800; font-size: 2.2rem; letter-spacing: -0.03em; }
.est .l { font-family: var(--f-mono); font-size: .8rem; opacity: .85; display: grid; gap: .2rem; }
.done { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; display: grid; gap: .75rem; }

/* cta + footer */
.cta { background: var(--harbor); color: var(--on-harbor); padding-block: 3rem; }
.cta .w { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.ft { padding-block: 3rem 2rem; font-family: var(--f-ui); font-size: .92rem; background: var(--surface); border-top: 1px solid var(--line); }
.fg { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.fg > * { min-width: 0; }
.fg h3 { font-family: var(--f-mono); font-weight: 500; font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.fg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.fg a { color: var(--ink); text-decoration: none; }
.fg a:hover { color: var(--link); }
.ft .mark { color: var(--ink); }
.legal { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; display: grid; gap: .4rem; }
@media (max-width: 820px) { .fg { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .fg { grid-template-columns: 1fr; } }
