/* NorCal Solar Services v2 · design tokens. Values and contrast pairs: design-direction.md */
@font-face {
  font-family: "Overpass";
  src: url("overpass.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --c-paper: #F8F8F3;
  --c-straw: #EDE1BC;
  --c-straw-2: #F4EDD6;
  --c-loam: #262B1F;
  --c-loam-2: #323827;
  --c-ink: #1D2117;
  --c-body: #343A2D;
  --c-muted: #565D4C;
  --c-link: #2E5A20;
  --c-locate: #C2291B;
  --c-locate-deep: #A11F12;
  --c-white: #FFFFFF;
  --c-chalk: #E9E4D2;
  --c-fog: #C9CDBE;
  --c-rule: #CFCBB6;
  --c-rule-dark: #4A5140;
  --c-focus: #1D5FC4;
  --c-focus-dark: #F2C14E;
  --c-shade: rgba(29, 33, 23, 0.22);

  --font-display: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  --radius-s: 4px;
  --radius-m: 6px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 78rem;
  --measure: 66ch;
  --tap: 2.75rem;
}

/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V5
 * macrostructure: field-photo hero with anchored offer slab → tool band → long read with right rail → distance list → dark quote band
 * theme: custom (field-white, dry straw, olive loam, locate red reserved for quote + trench) */

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: var(--space-6); }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--c-paper);
  color: var(--c-body);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.55;
  font-variant-numeric: lining-nums;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); color: var(--c-ink); font-style: normal; overflow-wrap: anywhere; min-width: 0; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: var(--space-4); top: -4rem; z-index: 50;
  background: var(--c-loam); color: var(--c-white); padding: var(--space-3) var(--space-4);
  font-weight: 700; border-radius: var(--radius-s);
}
.skip:focus { top: var(--space-4); outline-color: var(--c-focus-dark); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--tap); padding: var(--space-2) var(--space-5);
  border: 2px solid transparent; border-radius: var(--radius-s);
  font-family: var(--font-display); font-weight: 750; font-size: 1rem; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.btn-quote { background: var(--c-locate); color: var(--c-white); }
.btn-quote:hover { background: var(--c-locate-deep); text-decoration: none; }
.btn-quote:active { background: var(--c-locate-deep); transform: translateY(1px); }
.btn-quote:disabled { background: var(--c-muted); cursor: not-allowed; }
.on-dark .btn-quote, .slab .btn-quote { border-color: var(--c-chalk); }
.on-dark :focus-visible, .slab :focus-visible, .site-footer :focus-visible { outline-color: var(--c-focus-dark); }
.btn-lg { min-height: 3.25rem; padding-inline: var(--space-6); font-size: 1.0625rem; }
.text-link {
  display: inline-flex; align-items: center; min-height: var(--tap);
  font-weight: 700; color: inherit; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
}

/* ---------- header ---------- */
.masthead { background: var(--c-paper); border-bottom: 4px solid var(--c-loam); position: relative; z-index: 20; }
.masthead-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: 4.5rem; }
.brand {
  display: inline-flex; align-items: center; gap: var(--space-3); min-height: var(--tap);
  color: var(--c-ink); text-decoration: none; font-size: 1.1875rem; letter-spacing: -0.01em; line-height: 1;
}
.brand:hover { text-decoration: none; }
.brand .mark { flex: none; }
.mark-trench { stroke: var(--c-locate); }
.mark-meter { fill: var(--c-locate); }
.brand-name { white-space: nowrap; font-weight: 600; }
.brand-name b { font-weight: 850; }
.main-nav > ul { display: flex; align-items: center; gap: var(--space-2); list-style: none; margin: 0; padding: 0; }
.nav-link, .towns > summary {
  display: inline-flex; align-items: center; gap: var(--space-2); min-height: var(--tap);
  padding-inline: var(--space-3); color: var(--c-ink); font-weight: 650; text-decoration: none; line-height: 1;
  border-radius: var(--radius-s); white-space: nowrap;
}
.nav-link:hover, .towns > summary:hover { background: var(--c-straw-2); }
.towns { position: relative; }
.towns > summary { cursor: pointer; list-style: none; }
.towns > summary::-webkit-details-marker { display: none; }
.towns > summary::after {
  content: ""; width: 0.5rem; height: 0.5rem; margin-left: var(--space-1);
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg);
}
.towns[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.towns-panel {
  position: absolute; right: 0; top: calc(100% + var(--space-2)); width: min(22rem, calc(100vw - 2rem));
  background: var(--c-paper); border: 2px solid var(--c-loam); border-radius: var(--radius-m);
  box-shadow: 0 12px 28px var(--c-shade); padding: var(--space-3);
}
.towns-panel ul { list-style: none; margin: 0; padding: 0; }
.towns-panel a {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  min-height: var(--tap); padding: var(--space-2) var(--space-3); border-radius: var(--radius-s);
  color: var(--c-ink); text-decoration: none; font-weight: 650;
}
.towns-panel a:hover { background: var(--c-straw-2); }
.towns-panel a[aria-current="page"] { background: var(--c-straw); box-shadow: inset 4px 0 0 var(--c-loam); }
.towns-panel .dist { color: var(--c-muted); font-weight: 500; font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.towns-panel .panel-tool { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--c-rule); }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--c-loam); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.concept-tag {
  position: absolute; z-index: 2; top: var(--space-4); margin: 0;
  left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  max-width: min(34rem, calc(100% - 2 * var(--gutter)));
  background: var(--c-loam); color: var(--c-chalk); padding: var(--space-2) var(--space-3);
  font-size: 0.875rem; font-weight: 600; line-height: 1.35; border-radius: var(--radius-s);
}
.slab {
  position: relative; z-index: 3; background: var(--c-loam); color: var(--c-chalk);
  padding: var(--space-8) var(--space-8) var(--space-8);
  border-radius: var(--radius-m);
}
.kicker { margin: 0 0 var(--space-3); font-weight: 700; color: var(--c-straw); font-size: 1rem; }
.slab h1 { color: var(--c-white); margin: 0; font-weight: 800; letter-spacing: -0.015em; line-height: 1.04; font-size: clamp(2.05rem, 1.4rem + 2.2vw, 3.2rem); }
.slab h1.h1-long { font-size: clamp(1.9rem, 1.3rem + 1.8vw, 2.7rem); }
.slab .lead { font-family: var(--font-body); font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); line-height: 1.55; color: var(--c-chalk); margin: var(--space-4) 0 0; max-width: 60ch; }
.slab .lead a { color: var(--c-white); }
.proposition { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.proposition li { display: flex; gap: var(--space-3); align-items: baseline; font-weight: 650; color: var(--c-white); line-height: 1.35; }
.proposition li::before { content: ""; flex: none; width: 0.625rem; height: 0.625rem; background: var(--c-straw); transform: translateY(-0.05em); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); margin: var(--space-6) 0 0; }
.hero-actions .text-link { color: var(--c-white); }
.slab-towns { margin-top: var(--space-6); padding-top: var(--space-4); border-top: 1px solid var(--c-rule-dark); }
.slab-towns ul { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); margin: 0; padding: 0; }
.slab-towns a {
  display: inline-flex; align-items: center; min-height: var(--tap); padding-inline: var(--space-3);
  color: var(--c-chalk); font-weight: 650; text-decoration: none; border: 1px solid var(--c-rule-dark); border-radius: var(--radius-s);
}
.slab-towns a:hover { border-color: var(--c-chalk); }
.slab-towns a[aria-current="page"] { background: var(--c-chalk); color: var(--c-loam); border-color: var(--c-chalk); }
.slab-towns-label { margin: 0 0 var(--space-2); font-size: 0.9375rem; color: var(--c-fog); }

/* phone first: photo above the slab */
.hero-photo { aspect-ratio: 4 / 3; overflow: hidden; }
.hero-town .hero-photo { aspect-ratio: 16 / 7; }
.hero-photo img { object-position: 30% 55%; }
.hero-inner { padding-inline: 0; }
.hero .slab { border-radius: 0; }

@media (min-width: 60rem) {
  .hero { min-height: clamp(36rem, 76vh, 46rem); display: flex; align-items: flex-end; margin-bottom: var(--space-12); }
  .hero-town { min-height: clamp(30rem, 62vh, 38rem); }
  .hero-photo { position: absolute; inset: 0; aspect-ratio: auto; }
  .hero-town .hero-photo { aspect-ratio: auto; }
  .hero-inner { display: flex; justify-content: flex-end; padding-inline: var(--gutter); padding-top: var(--space-24); }
  .hero-town .hero-inner { justify-content: flex-start; }
  .hero .slab { width: min(41rem, 52%); margin-bottom: calc(-1 * var(--space-12)); border-radius: var(--radius-m); box-shadow: 0 18px 40px var(--c-shade); }
  .hero-town .slab { width: min(44rem, 60%); }
  .hero-photo img { object-position: 20% 60%; }
  .hero-town .hero-photo img { object-position: 50% 60%; }
}

/* ---------- trench tool band ---------- */
.tool-band { background: var(--c-straw); padding-block: var(--space-16) var(--space-20); }
.page-home .tool-band { padding-top: calc(var(--space-12) + var(--space-12)); margin-top: calc(-1 * var(--space-12)); }
@media (max-width: 59.99rem) { .page-home .tool-band { margin-top: 0; padding-top: var(--space-12); } }
.tool-grid { display: grid; gap: var(--space-8); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64rem) { .tool-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: var(--space-12); } }
.band-title { font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.35rem); font-weight: 800; letter-spacing: -0.012em; line-height: 1.08; margin: 0 0 var(--space-4); }
.band-intro p { font-family: var(--font-body); font-size: 1.125rem; line-height: 1.6; color: var(--c-body); margin: 0 0 var(--space-4); max-width: 52ch; }
.band-intro .method { font-family: var(--font-display); font-size: 0.9375rem; color: var(--c-muted); line-height: 1.5; }
.trench-tool { background: var(--c-paper); border: 2px solid var(--c-loam); border-radius: var(--radius-m); padding: var(--space-6); display: grid; gap: var(--space-6); }
.tool-controls { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .tool-controls { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); align-items: end; } }
.field { display: grid; gap: var(--space-2); min-width: 0; }
.field label, .field .label { font-weight: 700; color: var(--c-ink); font-size: 0.9375rem; line-height: 1.3; }
.range-row { display: flex; align-items: center; gap: var(--space-3); min-height: var(--tap); }
.range-row input[type="range"] { flex: 1; min-width: 0; accent-color: var(--c-locate); height: var(--tap); margin: 0; }
.range-row output { flex: none; min-width: 4.5rem; text-align: right; font-weight: 800; font-size: 1.125rem; color: var(--c-ink); font-variant-numeric: tabular-nums; }
select {
  width: 100%; min-height: var(--tap); padding: var(--space-2) var(--space-8) var(--space-2) var(--space-3);
  font: 600 1rem/1.2 var(--font-display); color: var(--c-ink); background: var(--c-white);
  border: 2px solid var(--c-muted); border-radius: var(--radius-s);
}
select:hover { border-color: var(--c-ink); }
select:disabled { opacity: 0.6; }
.plan { border-radius: var(--radius-s); background: var(--c-straw-2); }
.plan svg { width: 100%; height: auto; display: block; }
.plan .ground { fill: var(--c-straw-2); }
.plan .array { fill: var(--c-loam); }
.plan .array-cell { stroke: var(--c-fog); stroke-width: 1; }
.plan .clear-zone { fill: none; stroke: var(--c-muted); stroke-width: 1.5; stroke-dasharray: 3 4; }
.plan .building { fill: var(--c-paper); stroke: var(--c-ink); stroke-width: 2; }
.plan .trench { stroke: var(--c-locate); stroke-width: 4; stroke-dasharray: 10 7; fill: none; transition: d 240ms ease; }
.plan .meter { fill: var(--c-locate); }
.plan text { font-family: var(--font-display); font-size: 13px; fill: var(--c-ink); font-weight: 650; }
.plan .muted-text { fill: var(--c-muted); font-weight: 500; }
.plan .run-label { font-size: 15px; font-weight: 800; }
@media (max-width: 40rem) {
  .plan text { font-size: 24px; }
  .plan .run-label { font-size: 28px; }
  .plan .muted-text { font-size: 22px; }
}
.tool-result { border-top: 2px solid var(--c-loam); padding-top: var(--space-5); display: grid; gap: var(--space-2); }
.tool-result .result-name { margin: 0; font-weight: 700; color: var(--c-muted); font-size: 0.9375rem; }
.tool-result .result-value { margin: 0; font-weight: 850; font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.4rem); color: var(--c-ink); line-height: 1.05; letter-spacing: -0.01em; }
.tool-result ul { margin: var(--space-2) 0 0; padding-left: var(--space-5); display: grid; gap: var(--space-1); font-variant-numeric: tabular-nums; }
.tool-result .result-note { margin: var(--space-3) 0 0; font-size: 0.9375rem; color: var(--c-muted); line-height: 1.5; max-width: 70ch; }

/* ---------- reading ---------- */
.reading { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-6); padding-block: var(--space-16) var(--space-20); }
@media (min-width: 64rem) {
  .reading { grid-template-columns: minmax(0, var(--measure)) minmax(14rem, 17rem); grid-template-areas: "article toc"; justify-content: space-between; gap: var(--space-16); }
  .reading > .toc { grid-area: toc; align-self: start; position: sticky; top: var(--space-6); }
  .reading > .editorial, .reading > .placeholder { grid-area: article; }
}
.toc { border: 2px solid var(--c-loam); border-radius: var(--radius-m); background: var(--c-paper); }
.toc > summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 3rem;
  padding: var(--space-2) var(--space-4); cursor: pointer; font-weight: 800; color: var(--c-ink); list-style: none;
}
.toc > summary::-webkit-details-marker { display: none; }
.toc > summary::after { content: "+"; font-size: 1.4rem; font-weight: 500; line-height: 1; }
.toc[open] > summary::after { content: "−"; }
.toc-count { font-weight: 500; color: var(--c-muted); font-size: 0.9375rem; margin-left: auto; }
.toc ol { list-style: none; margin: 0; padding: 0 var(--space-2) var(--space-3); counter-reset: none; }
.toc a {
  display: flex; align-items: center; min-height: var(--tap); padding: var(--space-1) var(--space-3);
  color: var(--c-body); text-decoration: none; font-size: 0.9375rem; line-height: 1.3; border-radius: var(--radius-s);
}
.toc a:hover { background: var(--c-straw-2); color: var(--c-ink); }
.toc a[aria-current="location"] { color: var(--c-ink); font-weight: 750; box-shadow: inset 3px 0 0 var(--c-loam); background: var(--c-straw-2); }
@media (min-width: 64rem) {
  .toc { border-width: 0 0 0 2px; border-radius: 0; background: transparent; }
  .toc > summary { pointer-events: none; padding-left: var(--space-4); }
  .toc > summary::after, .toc[open] > summary::after { content: none; }
  .toc ol { max-height: calc(100vh - 8rem); overflow-y: auto; }
}

.editorial { font-family: var(--font-body); font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.66; color: var(--c-body); min-width: 0; }
.editorial > * { max-width: var(--measure); }
.editorial h2 {
  font-size: clamp(1.55rem, 1.25rem + 1vw, 2.1rem); font-weight: 780; letter-spacing: -0.012em; line-height: 1.12;
  margin: var(--space-16) 0 var(--space-4); padding-top: var(--space-5); border-top: 2px solid var(--c-loam);
}
.editorial > h2:first-child { margin-top: 0; }
.editorial h3 { font-size: 1.2rem; font-weight: 750; line-height: 1.25; margin: var(--space-8) 0 var(--space-2); }
.editorial p { margin: 0 0 var(--space-4); }
.editorial ul, .editorial ol { margin: 0 0 var(--space-5); padding-left: var(--space-6); }
.editorial li { margin-bottom: var(--space-2); }
.editorial li::marker { color: var(--c-muted); font-family: var(--font-display); font-weight: 700; }
.editorial strong { color: var(--c-ink); font-weight: 650; }
.editorial a { color: var(--c-link); }
.editorial blockquote {
  margin: var(--space-6) 0; padding: var(--space-5) var(--space-6); background: var(--c-straw-2);
  border-radius: var(--radius-m); border: 1px solid var(--c-rule);
}
.editorial blockquote > :last-child { margin-bottom: 0; }
.table-scroll { overflow-x: auto; margin: var(--space-6) 0; border: 1px solid var(--c-rule); border-radius: var(--radius-m); background: var(--c-paper); }
.editorial table { border-collapse: collapse; width: 100%; min-width: 34rem; font-family: var(--font-display); font-size: 0.9375rem; line-height: 1.4; font-variant-numeric: tabular-nums; }
.editorial th, .editorial td { text-align: left; vertical-align: top; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--c-rule); }
.editorial th { background: var(--c-straw); color: var(--c-ink); font-weight: 750; }
.editorial tr:last-child td { border-bottom: 0; }
.editorial td:first-child { font-weight: 650; color: var(--c-ink); }

.placeholder { max-width: var(--measure); }
.placeholder h2 { font-size: clamp(1.5rem, 1.25rem + 0.9vw, 2rem); font-weight: 780; margin: 0 0 var(--space-4); }
.placeholder p { font-family: var(--font-body); font-size: 1.125rem; line-height: 1.6; margin: 0 0 var(--space-4); }

/* ---------- town guides (home) ---------- */
.towns-band { padding-block: var(--space-16) var(--space-20); border-top: 4px solid var(--c-loam); }
.towns-grid { display: grid; gap: var(--space-10); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 60rem) { .towns-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: var(--space-16); } }
.towns-band .section-note { font-family: var(--font-body); font-size: 1.0625rem; color: var(--c-body); max-width: 56ch; margin: 0 0 var(--space-6); }
.town-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--c-loam); }
.town-list li { border-bottom: 1px solid var(--c-rule); }
.town-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-1) var(--space-4); align-items: baseline;
  padding: var(--space-4) var(--space-2); color: var(--c-ink); text-decoration: none; min-height: var(--tap);
}
.town-row:hover { background: var(--c-straw-2); }
.town-row:hover .town-name { text-decoration: underline; text-decoration-thickness: 2px; }
.town-name { font-weight: 800; font-size: 1.375rem; line-height: 1.15; }
.town-miles { font-weight: 750; font-variant-numeric: tabular-nums; color: var(--c-ink); white-space: nowrap; }
.town-topic { grid-column: 1 / -1; color: var(--c-muted); font-size: 0.9375rem; line-height: 1.4; }
.town-rule { grid-column: 1 / -1; height: 0; border-top: 3px dashed var(--c-loam); width: var(--w, 50%); margin-top: var(--space-2); }
.towns-photo { margin: 0; border-radius: var(--radius-m); overflow: hidden; }
.towns-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; }
@media (max-width: 59.99rem) { .towns-photo img { aspect-ratio: 16 / 9; } }

/* ---------- quote band ---------- */
.quote-band { background: var(--c-loam); color: var(--c-chalk); padding-block: var(--space-16) var(--space-20); }
.quote-band .band-title { color: var(--c-white); }
.quote-band .band-intro p { color: var(--c-chalk); }
.quote-band .band-intro .method { color: var(--c-fog); }
.quote-grid { display: grid; gap: var(--space-8); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64rem) { .quote-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: var(--space-12); } }
.quote-tool { display: grid; gap: var(--space-6); }
.quote-tool fieldset { border: 1px solid var(--c-rule-dark); border-radius: var(--radius-m); margin: 0; padding: var(--space-4) var(--space-5) var(--space-5); min-width: 0; }
.quote-tool legend { font-weight: 750; color: var(--c-white); padding-inline: var(--space-2); }
.quote-tool .field label { color: var(--c-white); }
.quote-tool select { border-color: var(--c-fog); }
.choices { display: grid; gap: var(--space-1) var(--space-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice { display: flex; align-items: center; gap: var(--space-3); min-height: var(--tap); cursor: pointer; color: var(--c-chalk); line-height: 1.3; }
.choice input { flex: none; width: 1.25rem; height: 1.25rem; margin: 0; accent-color: var(--c-straw); }
.choice:hover { color: var(--c-white); }
.quote-actions { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.quote-actions .hint { color: var(--c-fog); font-size: 0.9375rem; margin: 0; }
.quote-result:empty { display: none; }
.quote-result { background: var(--c-straw-2); color: var(--c-body); border-radius: var(--radius-m); padding: var(--space-6); }
.quote-result h3 { margin: 0 0 var(--space-3); font-size: 1.3rem; font-weight: 800; color: var(--c-ink); }
.quote-result h4 { margin: var(--space-4) 0 var(--space-2); font-family: var(--font-display); font-size: 1rem; color: var(--c-ink); }
.quote-result ul { margin: 0; padding-left: var(--space-5); display: grid; gap: var(--space-2); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.5; }
.quote-result .note { margin: var(--space-4) 0 0; font-size: 0.9375rem; color: var(--c-muted); }

/* ---------- town next steps ---------- */
.next-band { background: var(--c-straw); padding-block: var(--space-16) var(--space-20); }
.next-list { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 48rem) { .next-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.next {
  display: grid; gap: var(--space-2); height: 100%; padding: var(--space-6); text-decoration: none; color: var(--c-body);
  background: var(--c-paper); border: 2px solid var(--c-loam); border-radius: var(--radius-m);
}
.next:hover { background: var(--c-straw-2); }
.next-name { font-weight: 800; font-size: 1.3rem; color: var(--c-ink); line-height: 1.2; }
.next-text { font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.5; }
.next-action { font-weight: 750; color: var(--c-link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.next-quote { background: var(--c-loam); color: var(--c-chalk); }
.next-quote .next-name { color: var(--c-white); }
.next-quote .next-action { color: var(--c-white); }
.next-quote:hover { background: var(--c-loam-2); }
.next-quote:focus-visible { outline-color: var(--c-focus); }

/* ---------- footer ---------- */
.site-footer { background: var(--c-loam); color: var(--c-fog); padding-block: var(--space-12) var(--space-16); border-top: 1px solid var(--c-rule-dark); }
.quote-band + .site-footer, .page-home .site-footer { border-top-color: var(--c-rule-dark); }
.footer-grid { display: grid; gap: var(--space-8); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-12); } }
.site-footer .brand { color: var(--c-white); }
.site-footer p { margin: 0 0 var(--space-3); font-size: 0.9375rem; line-height: 1.55; max-width: 70ch; }
.site-footer a { color: var(--c-chalk); }
.route ol { list-style: none; margin: 0 0 var(--space-6); padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) 0; }
.route li { display: flex; align-items: center; }
.route li + li::before { content: ""; width: 1.5rem; border-top: 3px dashed var(--c-rule-dark); margin-inline: var(--space-1); }
.route a { display: inline-flex; align-items: center; min-height: var(--tap); padding-inline: var(--space-2); font-weight: 700; color: var(--c-chalk); text-decoration: none; border-radius: var(--radius-s); }
.route a:hover { text-decoration: underline; }
.route a[aria-current="page"] { background: var(--c-chalk); color: var(--c-loam); }

/* ---------- phone header ---------- */
@media (max-width: 47.99rem) {
  .masthead-row { flex-wrap: wrap; row-gap: var(--space-1); padding-block: var(--space-2) var(--space-3); }
  .brand { flex: 1 0 100%; font-size: 1.0625rem; }
  .main-nav { flex: 1 0 100%; }
  .main-nav > ul { gap: var(--space-3); }
  .main-nav .nav-trench { display: none; }
  .main-nav .nav-towns, .towns { position: static; }
  .main-nav .nav-quote { flex: 1; }
  .main-nav .nav-quote .btn { width: 100%; }
  .towns > summary { border: 2px solid var(--c-loam); }
  .towns-panel { left: var(--gutter); right: var(--gutter); width: auto; }
}
@media (max-width: 47.99rem) {
  .concept-tag { font-size: 0.8125rem; top: var(--space-3); padding: var(--space-1) var(--space-2); }
}
@media (max-width: 30rem) {
  .route ol { flex-direction: column; align-items: flex-start; }
  .route li { flex-direction: column; align-items: flex-start; }
  .route li + li::before { width: 0; height: var(--space-3); border-top: 0; border-left: 3px dashed var(--c-rule-dark); margin: 0 0 0 var(--space-4); }
}
@media (max-width: 22rem) { .brand { font-size: 0.98rem; gap: var(--space-2); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .btn-quote:active { transform: none; }
}
@media print {
  .masthead, .hero-photo, .tool-band, .towns-band, .site-footer, .toc, .skip, .concept-tag { display: none !important; }
  .quote-band { background: none; color: var(--c-ink); }
}
