/* Hallmark · custom theme "two columns" · genre: utilitarian-residential
 * pre-emit critique: P4 H4 E4 S5 R4 V4 (see ../design-review.md)
 * Solar Savings Solutions v2 tokens. Every colour and font in site.css references these. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("schibsted-grotesk.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("literata.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("literata-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --ink: #1E1B22;
  --paper: #FBFAF9;
  --sheet: #FFFEFD;
  --mist: #EEF1F2;
  --cranberry: #9B1C43;
  --cranberry-dark: #7E1535;
  --bog: #4A0E22;
  --bog-2: #5C1630;
  --muted: #57525C;
  --rule: #CDD2D6;
  --rule-dark: #7A4A5A;
  --winter: #2F6C93;
  --rose: #C2496E;
  --graphite: #7A848C;
  --frost: #D9E6EC;
  --blush: #F6D9E1;
  --focus: #1B5FB8;
  --focus-dark: #D9E6EC;
  --shade: rgba(30, 27, 34, 0.16);

  --font-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-text: "Literata", Georgia, "Times New Roman", serif;

  --step--1: 0.875rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
  --step-4: clamp(1.9rem, 1.4rem + 1.9vw, 2.75rem);
  --step-5: clamp(2rem, 1.5rem + 2vw, 3.125rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  --radius-s: 4px;
  --radius-m: 10px;
  --wrap: 76rem;
  --gutter: 1rem;
  --measure: 66ch;
  --tap: 44px;
}

@media (min-width: 48rem) {
  :root { --gutter: 2rem; }
}

/* Solar Savings Solutions v2 · site styles (tokens in tokens.css) */

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: var(--space-5); }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-1);
  line-height: 1.7;
  font-variant-numeric: lining-nums;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cranberry); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--cranberry-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.on-dark :focus-visible, .utility :focus-visible, .journey :focus-visible, .footer :focus-visible, .next :focus-visible { outline-color: var(--focus-dark); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3, h4 { font-family: var(--font-display); font-style: normal; color: var(--ink); overflow-wrap: anywhere; min-width: 0; }

.skip {
  position: absolute; left: var(--space-4); top: -100px; z-index: 50;
  background: var(--sheet); color: var(--ink); padding: var(--space-3) var(--space-4);
  font-family: var(--font-display); font-weight: 700; border-radius: var(--radius-s);
}
.skip:focus { top: var(--space-2); }

/* ---------------------------------------------------------------- utility bar */
.utility { background: var(--bog); color: var(--blush); font-family: var(--font-display); font-size: var(--step--1); line-height: 1.35; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: var(--tap); }
.notice { margin: 0; padding-block: var(--space-2); }
.notice strong { color: var(--sheet); font-weight: 700; }
.towns-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: var(--space-1); }
.towns-nav a {
  display: flex; align-items: center; min-height: var(--tap); padding-inline: var(--space-3);
  color: var(--blush); text-decoration: none; white-space: nowrap; font-weight: 500;
  border-bottom: 3px solid transparent;
}
.towns-nav a:hover { color: var(--sheet); border-bottom-color: var(--rule-dark); }
.towns-nav a[aria-current="page"] { color: var(--sheet); font-weight: 700; border-bottom-color: var(--blush); }
.towns-label { margin: 0 var(--space-2) 0 0; color: var(--frost); white-space: nowrap; }
.towns-nav { display: flex; align-items: center; }

@media (max-width: 63.99rem) {
  .utility-inner { flex-direction: column; align-items: stretch; gap: 0; padding-inline: 0; }
  .notice { padding-inline: var(--gutter); }
  .towns-nav { border-top: 1px solid var(--bog-2); }
  .towns-label { display: none; }
  .towns-nav ul { overflow-x: auto; scrollbar-width: none; padding-inline: calc(var(--gutter) - var(--space-3)); }
  .towns-nav ul::-webkit-scrollbar { display: none; }
}

/* ---------------------------------------------------------------- masthead */
.masthead { background: var(--sheet); border-bottom: 1px solid var(--rule); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: 4.75rem; }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--ink); text-decoration: none; min-height: var(--tap); }
.brand:hover { color: var(--ink); }
.mark { flex: none; }
.mark-a { fill: var(--graphite); }
.mark-b { fill: var(--cranberry); }
.mark-base { fill: var(--ink); }
.wordmark { font-family: var(--font-display); font-weight: 800; font-size: 1.1875rem; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.wordmark span { font-weight: 500; color: var(--muted); }
.mainnav { display: flex; align-items: center; gap: var(--space-5); }
.main-links { display: flex; list-style: none; margin: 0; padding: 0; gap: var(--space-2); }
.main-links a {
  display: flex; align-items: center; min-height: var(--tap); padding-inline: var(--space-3);
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-0); color: var(--ink);
  text-decoration: none; white-space: nowrap; border-radius: var(--radius-s);
}
.main-links a:hover { background: var(--mist); color: var(--ink); }
.menu-toggle {
  display: none; align-items: center; gap: var(--space-2); min-height: var(--tap); min-width: var(--tap);
  padding-inline: var(--space-3); border: 1px solid var(--rule); border-radius: var(--radius-s);
  background: var(--sheet); color: var(--ink); font: 600 var(--step-0) / 1 var(--font-display); cursor: pointer;
}
.menu-toggle:hover { background: var(--mist); }
.menu-bars { width: 18px; height: 12px; border-block: 2px solid var(--ink); position: relative; }
.menu-bars::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 var(--space-5);
  background: var(--cranberry); color: var(--sheet); border: 2px solid var(--cranberry); border-radius: var(--radius-s);
  font: 700 var(--step-0) / 1.1 var(--font-display); text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn:hover { background: var(--cranberry-dark); border-color: var(--cranberry-dark); color: var(--sheet); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--cranberry); }
.btn-ghost:hover { background: var(--blush); color: var(--cranberry-dark); }
.on-dark .btn { background: var(--sheet); color: var(--bog); border-color: var(--sheet); }
.on-dark .btn:hover { background: var(--blush); border-color: var(--blush); color: var(--bog); }
.text-link { display: inline-flex; align-items: center; min-height: var(--tap); font-family: var(--font-display); font-weight: 700; font-size: var(--step-0); white-space: nowrap; }

@media (max-width: 63.99rem) {
  .bar { min-height: 4rem; gap: var(--space-3); flex-wrap: wrap; }
  .mainnav { gap: var(--space-2); }
  .quote-link { min-height: var(--tap); padding-inline: var(--space-3); font-size: var(--step--1); }
  .js .menu-toggle { display: inline-flex; }
  .js .main-links { display: none; }
  .js .main-links.is-open {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
    background: var(--sheet); border-bottom: 1px solid var(--rule); padding: var(--space-2) var(--gutter) var(--space-4);
    box-shadow: 0 10px 24px var(--shade);
  }
  .masthead { position: relative; }
  .mainnav { position: static; }
  .main-links { flex-wrap: wrap; }
}
@media (max-width: 30rem) {
  .bar { flex-wrap: nowrap; gap: var(--space-2); }
  .quote-link { padding-inline: var(--space-2); }
  .brand { gap: var(--space-2); }
  .mark { width: 30px; height: 30px; }
  .wordmark { font-size: 0.9375rem; line-height: 1.05; }
  .wordmark span { display: block; }
  .menu-label { display: none; }
  .menu-toggle { padding-inline: 0; justify-content: center; }
}
@media (max-width: 23rem) {
  .bar { flex-wrap: wrap; padding-block: var(--space-2); }
}

/* ---------------------------------------------------------------- hero (home) */
.hero { position: relative; }
.kicker { margin: 0 0 var(--space-3); font-family: var(--font-display); font-weight: 600; font-size: var(--step-0); color: var(--muted); }
.hero h1 { margin: 0; font-size: var(--step-5); line-height: 1.04; letter-spacing: -0.02em; font-weight: 800; max-width: 22ch; text-wrap: balance; }
.hero .lead { margin: var(--space-4) 0 0; font-size: var(--step-1); line-height: 1.6; max-width: 54ch; }
.props { list-style: none; margin: var(--space-5) 0 0; padding: 0; display: grid; gap: var(--space-2); font-family: var(--font-display); font-weight: 600; font-size: var(--step-0); line-height: 1.35; }
.props li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: var(--space-2); align-items: start; }
.props svg { margin-top: 0.2em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); margin-top: var(--space-5); }

.hero-home .hero-photo { position: absolute; inset: 0 0 var(--space-7) 0; overflow: hidden; background: var(--frost); }
.hero-home .hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.hero-home .wrap { position: relative; display: flex; justify-content: flex-end; padding-top: clamp(4rem, 7vw, 7rem); }
.hero-sheet {
  background: var(--sheet); border-radius: var(--radius-m); padding: var(--space-6) var(--space-6) var(--space-6);
  max-width: 43rem; box-shadow: 0 18px 40px var(--shade); border-top: 6px solid var(--cranberry);
}
@media (max-width: 63.99rem) {
  .hero-home .hero-photo { position: relative; inset: auto; aspect-ratio: 16 / 10; max-height: 26rem; }
  .hero-home .wrap { padding-top: 0; margin-top: calc(-1 * var(--space-7)); display: block; }
  .hero-sheet { max-width: none; padding: var(--space-5); }
}

/* ---------------------------------------------------------------- hero (town) */
.hero-town { background: var(--paper); border-bottom: 1px solid var(--rule); }
.hero-town .hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); min-height: 33rem; }
.hero-town .hero-copy { padding: var(--space-6) var(--space-7) var(--space-8) max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); align-self: center; }
.hero-town .hero-photo { margin: 0; position: relative; border-left: 6px solid var(--cranberry); }
.hero-town .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
.utility-fact {
  margin: var(--space-5) 0 0; display: inline-grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 var(--space-3);
  padding: var(--space-3) var(--space-4); background: var(--mist); border-radius: var(--radius-s);
  font-family: var(--font-display); font-size: var(--step--1); line-height: 1.4;
}
.utility-fact dt { font-weight: 500; color: var(--muted); }
.utility-fact dd { margin: 0; font-weight: 700; }
@media (max-width: 63.99rem) {
  .hero-town .hero-grid { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-town .hero-copy { padding: var(--space-5) var(--gutter) var(--space-7); }
  .hero-town .hero-photo { order: -1; border-left: 0; border-bottom: 6px solid var(--cranberry); aspect-ratio: 16 / 9; max-height: 24rem; }
}

/* ---------------------------------------------------------------- service index */
.services { padding-block: var(--space-8) var(--space-8); }
.services-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-7); align-items: center; }
.services figure { margin: 0; }
.services img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-m); }
.services h2 { margin: 0 0 var(--space-2); font-size: var(--step-4); line-height: 1.08; letter-spacing: -0.015em; }
.services-intro { margin: 0 0 var(--space-5); color: var(--muted); max-width: 52ch; }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.service-list li { border-bottom: 1px solid var(--rule); }
.service-list a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-1) var(--space-4); padding: var(--space-4) var(--space-2);
  text-decoration: none; color: var(--ink);
}
.service-list a:hover { background: var(--mist); color: var(--ink); }
.service-list strong { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.2; }
.service-list span { grid-column: 1; color: var(--muted); font-size: var(--step-0); line-height: 1.5; }
.service-list em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-family: var(--font-display); font-weight: 700; font-size: var(--step--1); color: var(--cranberry); white-space: nowrap; }
@media (max-width: 63.99rem) {
  .services { padding-block: var(--space-7); }
  .services-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  .service-list em { display: none; }
}

/* ---------------------------------------------------------------- sizer */
.sizer { background: var(--mist); padding-block: var(--space-8); }
.section-head { max-width: 46rem; margin-bottom: var(--space-6); }
.section-head h2 { margin: 0 0 var(--space-3); font-size: var(--step-4); line-height: 1.08; letter-spacing: -0.015em; }
.section-head p { margin: 0; color: var(--muted); }
.sizer-grid { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.sizer-inputs { background: var(--sheet); border-radius: var(--radius-m); padding: var(--space-5); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
.field label { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--step-0); line-height: 1.3; margin-bottom: var(--space-1); }
.field .hint { display: block; font-family: var(--font-display); font-weight: 500; font-size: var(--step--1); color: var(--muted); line-height: 1.4; margin-top: var(--space-1); }
.input-unit { display: flex; align-items: stretch; border: 1px solid var(--graphite); border-radius: var(--radius-s); background: var(--sheet); }
.input-unit:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.input-unit input { flex: 1; min-width: 0; width: 100%; min-height: 3rem; border: 0; background: transparent; padding: 0 var(--space-3); font: 600 var(--step-1) / 1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.input-unit input:focus { outline: none; }
.input-unit span { display: flex; align-items: center; padding: 0 var(--space-3); color: var(--muted); font: 500 var(--step--1) / 1 var(--font-display); border-left: 1px solid var(--rule); }
.field.is-invalid .input-unit { border-color: var(--cranberry); border-width: 2px; }
.field-error { display: block; color: var(--cranberry); font: 600 var(--step--1) / 1.4 var(--font-display); margin-top: var(--space-1); }
.sizer-output { background: var(--sheet); border-radius: var(--radius-m); padding: var(--space-5); }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin: 0 0 var(--space-5); }
.column { border-radius: var(--radius-s); padding: var(--space-4); border: 1px solid var(--rule); }
.column-b { border: 2px solid var(--cranberry); }
.column h3 { margin: 0 0 var(--space-1); font-size: var(--step-1); line-height: 1.25; }
.column p { margin: 0; font-family: var(--font-display); font-size: var(--step--1); color: var(--muted); line-height: 1.4; }
.column .big { display: block; margin-top: var(--space-2); font-family: var(--font-display); font-weight: 800; font-size: var(--step-4); line-height: 1; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: lining-nums proportional-nums; }
.column-b .big { color: var(--cranberry); }
.column .unit { font-size: var(--step-1); font-weight: 600; letter-spacing: 0; }
.shortfall { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-1) var(--space-4); align-items: baseline; padding: var(--space-4); background: var(--blush); border-radius: var(--radius-s); margin-bottom: var(--space-5); font-family: var(--font-display); }
.shortfall strong { font-size: var(--step-3); font-weight: 800; color: var(--bog); white-space: nowrap; font-variant-numeric: lining-nums proportional-nums; }
.shortfall span { font-size: var(--step--1); line-height: 1.4; }
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--font-display); font-size: 12px; fill: var(--muted); }
.chart .bar-base { fill: var(--graphite); }
.chart .bar-ev { fill: var(--rose); }
.chart .bar-hp { fill: var(--winter); }
.chart .prod { stroke: var(--cranberry); stroke-width: 3; fill: none; }
.chart .prod-dot { fill: var(--sheet); stroke: var(--cranberry); stroke-width: 2.5; }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.legend { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); font-family: var(--font-display); font-size: var(--step--1); color: var(--ink); }
.legend li { display: inline-flex; align-items: center; gap: var(--space-2); }
.swatch { width: 0.875rem; height: 0.875rem; border-radius: 2px; display: inline-block; }
.swatch-base { background: var(--graphite); }
.swatch-hp { background: var(--winter); }
.swatch-ev { background: var(--rose); }
.swatch-prod { height: 3px; width: 1.25rem; background: var(--cranberry); }
.sizer-note { margin: var(--space-4) 0 0; font-family: var(--font-display); font-size: var(--step--1); line-height: 1.5; color: var(--muted); max-width: 70ch; }
.sizer-flag { margin: 0 0 var(--space-4); padding: var(--space-3) var(--space-4); border-left: 0; border: 1px solid var(--winter); border-radius: var(--radius-s); font-family: var(--font-display); font-size: var(--step--1); line-height: 1.45; }
.sizer-flag[hidden] { display: none; }
@media (max-width: 63.99rem) {
  .sizer { padding-block: var(--space-7); }
  .sizer-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 30rem) {
  .columns { grid-template-columns: minmax(0, 1fr); }
  .sizer-inputs, .sizer-output { padding: var(--space-4); }
}

/* ---------------------------------------------------------------- journey */
.journey { background: var(--bog); color: var(--blush); padding-block: var(--space-8); }
.journey h2 { color: var(--sheet); }
.journey .section-head p { color: var(--frost); }
.journey-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 18rem); gap: var(--space-6); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-6); counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: var(--space-4); border-top: 1px solid var(--rule-dark); }
.steps li::before { content: counter(step); position: absolute; top: calc(-1 * var(--space-3)); left: 0; width: 1.5rem; height: 1.5rem; display: grid; place-items: center; background: var(--bog); color: var(--sheet); font: 700 var(--step--1) / 1 var(--font-display); border: 1px solid var(--blush); border-radius: 50%; }
.steps li.step-key::before { background: var(--blush); color: var(--bog); }
.steps h3 { margin: var(--space-2) 0 var(--space-1); color: var(--sheet); font-size: var(--step-1); line-height: 1.25; }
.steps p { margin: 0; font-size: var(--step-0); line-height: 1.55; color: var(--blush); }
.journey figure { margin: 0; }
.journey img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius-m); }
@media (max-width: 63.99rem) {
  .journey { padding-block: var(--space-7); }
  .journey-grid { grid-template-columns: minmax(0, 1fr); }
  .journey img { aspect-ratio: 16 / 9; }
}
@media (max-width: 40rem) {
  .steps { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- reading */
.reading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 17rem); gap: var(--space-8); padding-block: var(--space-8); align-items: start; }
.toc { position: sticky; top: var(--space-5); order: 2; font-family: var(--font-display); }
.toc-details { border-top: 4px solid var(--ink); padding-top: var(--space-3); }
.toc summary { list-style: none; cursor: default; display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); min-height: var(--tap); }
.toc summary::-webkit-details-marker { display: none; }
.toc-title { font-weight: 800; font-size: var(--step-1); }
.toc-count { font-weight: 500; font-size: var(--step--1); color: var(--muted); }
.toc ol { list-style: none; margin: 0 0 var(--space-5); padding: 0; }
.toc li a { display: flex; align-items: center; min-height: var(--tap); padding: var(--space-1) 0; color: var(--ink); text-decoration: none; font-size: var(--step--1); font-weight: 500; line-height: 1.35; border-bottom: 1px solid var(--rule); }
.toc li a:hover { color: var(--cranberry); }
.toc li a.is-current { color: var(--cranberry); font-weight: 700; }
.toc-cta { display: grid; gap: var(--space-2); }
.toc-cta .btn { width: 100%; }
.toc-cta .text-link { justify-content: center; }

.editorial { order: 1; max-width: var(--measure); min-width: 0; }
.editorial > :first-child { margin-top: 0; }
.editorial h2 { font-size: var(--step-4); line-height: 1.1; letter-spacing: -0.015em; margin: var(--space-8) 0 var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--rule); }
.editorial h3 { font-size: var(--step-2); line-height: 1.25; margin: var(--space-6) 0 var(--space-2); }
.editorial p { margin: 0 0 var(--space-4); }
.editorial strong { font-weight: 650; }
.editorial ul, .editorial ol { margin: 0 0 var(--space-5); padding-left: 1.4rem; }
.editorial li { margin-bottom: var(--space-2); padding-left: var(--space-1); }
.editorial li::marker { color: var(--cranberry); font-family: var(--font-display); font-weight: 700; }
.editorial ul.checklist { list-style: none; padding-left: 0; }
.editorial ul.checklist li { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); gap: var(--space-2); padding-left: 0; }
.editorial .box { width: 1.05rem; height: 1.05rem; margin-top: 0.38em; border: 2px solid var(--cranberry); border-radius: 3px; }
.editorial blockquote { margin: 0 0 var(--space-5); padding: var(--space-5); background: var(--mist); border-radius: var(--radius-m); }
.editorial blockquote > :last-child { margin-bottom: 0; }
.editorial a { overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; margin: 0 0 var(--space-5); border: 1px solid var(--rule); border-radius: var(--radius-s); background: var(--sheet); }
.editorial table { width: 100%; border-collapse: collapse; font-family: var(--font-display); font-size: var(--step--1); line-height: 1.45; min-width: 32rem; }
.editorial th, .editorial td { text-align: left; vertical-align: top; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--rule); }
.editorial thead th { background: var(--mist); font-weight: 700; }
.editorial tbody tr:last-child td { border-bottom: 0; }
.editorial td:first-child { font-weight: 600; }
@media (max-width: 63.99rem) {
  .reading { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); padding-block: var(--space-6) var(--space-7); }
  .toc { position: static; order: 0; }
  .toc summary { cursor: pointer; }
  .toc summary::after { content: "Show"; font-weight: 700; font-size: var(--step--1); color: var(--cranberry); }
  .toc details[open] summary::after { content: "Hide"; }
  .toc-cta { display: none; }
  .editorial h2 { margin-top: var(--space-7); }
}

/* ---------------------------------------------------------------- towns ledger */
.towns { background: var(--mist); padding-block: var(--space-8); }
.town-ledger { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.town-ledger li { border-bottom: 1px solid var(--rule); }
.town-ledger a { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 16rem) minmax(0, 1fr); gap: var(--space-2) var(--space-5); padding: var(--space-4) var(--space-2); color: var(--ink); text-decoration: none; align-items: baseline; }
.town-ledger a:hover { background: var(--sheet); color: var(--ink); }
.town-ledger strong { font-family: var(--font-display); font-size: var(--step-2); }
.town-ledger .util { font-family: var(--font-display); font-weight: 600; font-size: var(--step--1); }
.town-ledger .desc { font-size: var(--step-0); color: var(--muted); line-height: 1.5; }
.towns-source { margin: var(--space-4) 0 0; font-family: var(--font-display); font-size: var(--step--1); color: var(--muted); }
@media (max-width: 63.99rem) {
  .towns { padding-block: var(--space-7); }
  .town-ledger a { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- quote checklist */
.quote { padding-block: var(--space-8); }
.quote-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-7); align-items: start; }
.quote h2 { margin: 0 0 var(--space-3); font-size: var(--step-4); line-height: 1.08; letter-spacing: -0.015em; }
.quote-intro p { margin: 0 0 var(--space-4); color: var(--muted); }
.quote-tool { border: 2px solid var(--cranberry); border-radius: var(--radius-m); padding: var(--space-5); background: var(--sheet); display: grid; gap: var(--space-4); }
.quote-tool > label, .quote-tool legend { font-family: var(--font-display); font-weight: 700; font-size: var(--step-0); }
.quote-tool select { min-height: 3rem; width: 100%; padding: 0 var(--space-3); border: 1px solid var(--graphite); border-radius: var(--radius-s); background: var(--sheet); color: var(--ink); font: 600 var(--step-1) / 1 var(--font-display); }
.quote-tool select:hover { border-color: var(--ink); }
.quote-tool fieldset { border: 0; padding: 0; margin: 0; }
.quote-tool legend { padding: 0; margin-bottom: var(--space-2); }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.checks label { display: flex; align-items: center; gap: var(--space-3); min-height: var(--tap); padding: var(--space-2) var(--space-3); border: 1px solid var(--rule); border-radius: var(--radius-s); font-family: var(--font-display); font-weight: 600; font-size: var(--step-0); line-height: 1.3; cursor: pointer; }
.checks label:hover { border-color: var(--graphite); }
.checks label:has(input:checked) { border-color: var(--cranberry); background: var(--blush); }
.checks input { width: 1.25rem; height: 1.25rem; accent-color: var(--cranberry); flex: none; margin: 0; }
.quote-tool .btn { justify-self: start; }
.quote-result:empty { display: none; }
.quote-result { border-top: 1px solid var(--rule); padding-top: var(--space-4); }
.quote-result h3 { margin: 0 0 var(--space-3); font-size: var(--step-2); line-height: 1.2; }
.quote-result ol { margin: 0 0 var(--space-3); padding-left: 1.4rem; font-size: var(--step-0); }
.quote-result li { margin-bottom: var(--space-2); }
.quote-result p { margin: 0; font-family: var(--font-display); font-size: var(--step--1); color: var(--muted); }
@media (max-width: 63.99rem) {
  .quote { padding-block: var(--space-7); }
  .quote-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
}
@media (max-width: 30rem) {
  .checks { grid-template-columns: minmax(0, 1fr); }
  .quote-tool { padding: var(--space-4); }
}

/* ---------------------------------------------------------------- next step (town) */
.next { background: var(--bog); color: var(--blush); padding-block: var(--space-8); }
.next h2 { margin: 0 0 var(--space-3); color: var(--sheet); font-size: var(--step-4); line-height: 1.08; letter-spacing: -0.015em; }
.next-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: var(--space-7); align-items: start; }
.next p { margin: 0; max-width: 54ch; }
.next .text-link { color: var(--sheet); }
.next-towns h3 { margin: 0 0 var(--space-2); color: var(--sheet); font-size: var(--step-1); }
.next-towns ul { list-style: none; margin: 0; padding: 0; }
.next-towns a { display: flex; align-items: center; min-height: var(--tap); color: var(--blush); font-family: var(--font-display); font-weight: 600; border-bottom: 1px solid var(--rule-dark); text-decoration: none; }
.next-towns a:hover { color: var(--sheet); }
@media (max-width: 63.99rem) {
  .next { padding-block: var(--space-7); }
  .next-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
}

/* ---------------------------------------------------------------- placeholder (town guide missing) */
.placeholder { padding-block: var(--space-7) var(--space-8); }
.placeholder-card { max-width: 44rem; border-top: 6px solid var(--graphite); background: var(--sheet); border-radius: var(--radius-m); padding: var(--space-6); box-shadow: 0 10px 28px var(--shade); }
.placeholder-card h2 { margin: 0 0 var(--space-3); font-size: var(--step-3); line-height: 1.15; }
.placeholder-card p { margin: 0 0 var(--space-3); }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--bog); color: var(--blush); padding-block: var(--space-7); border-top: 1px solid var(--bog-2); font-family: var(--font-display); font-size: var(--step--1); line-height: 1.55; }
.next + .footer { border-top-color: var(--rule-dark); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-6); align-items: start; }
.footer .brand { color: var(--sheet); }
.footer .wordmark span { color: var(--frost); }
.footer .mark-a { fill: var(--frost); }
.footer .mark-b { fill: var(--blush); }
.footer .mark-base { fill: var(--blush); }
.footer p { margin: 0 0 var(--space-2); max-width: 62ch; }
@media (max-width: 63.99rem) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
