/* ==========================================================================
   WebDevCity — the one stylesheet.
   Direction: "Route 99 studio". The logo sets the palette — its orange
   (#FC9A28) is the single accent, used as a highlight (buttons, the route
   line's home stop, small marks), never as a full-bleed band, and never in a
   big orange-on-black block (that reads as Halloween). Dark material is
   asphalt ink, not tinted black. Display type is Big Shoulders Display — a
   civic/city-signage face, a nod to "City" — set big in mixed case; body is
   Schibsted Grotesk. Logo: new wide SVG wordmark (Paulo approved replacing
   the old SF-skyline PNG, 2026-11-09) with a Central Valley skyline; light and
   dark versions. The memorable device is the Highway 99 route strip: the
   real towns served, in their real order along the valley, Turlock as home.
   Light theme is the default; dark is opt-in via the toggle.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --orange: #FC9A28;           /* logo orange: fills only */
  --orange-text: #9E4E00;      /* orange as text on light grounds (5.6:1 on white) */
  --accent-contrast: #1F252C;  /* text on orange fills (8.4:1) */
  --ink: #1F252C;              /* asphalt */
  --ink-2: #29313A;
  --on-ink: #F2F4F6;
  --on-ink-muted: #B9C1CA;

  --bg: #FFFFFF;
  --surface: #F1F3F5;          /* cool grey, never cream */
  --text: #1F252C;
  --muted: #4F5862;            /* 7:1 on white */
  --line: #D6DBE0;
  --card: #FFFFFF;
  --focus: #1F6FD1;
  --field-border: #7A838D;

  --f-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --f-body: "Schibsted Grotesk", "Helvetica Neue", sans-serif;

  --wrap: 1200px;
  --gut: clamp(1rem, 4vw, 2.5rem);
  --sec: clamp(4rem, 9vw, 7.5rem);
  --r-sm: 4px;
  --r-md: 10px;
  --shadow: 0 1px 2px rgba(31,37,44,.06), 0 12px 32px -12px rgba(31,37,44,.28);
  --header-h: 76px;
}

:root[data-theme="dark"] {
  --orange-text: #FFB35A;
  --bg: #171C21;
  --surface: #1F252C;
  --text: #EEF1F4;
  --muted: #AEB7C1;
  --line: #333C46;
  --card: #222930;
  --focus: #7DB5FF;
  --field-border: #7F8A96;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 14px 34px -14px rgba(0,0,0,.7);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--f-body); font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.55; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 800; line-height: .98; letter-spacing: -.005em; margin: 0 0 .5em; text-wrap: balance; color: inherit; }
h1 { font-size: clamp(3rem, 2rem + 5.2vw, 6.4rem); }
h2 { font-size: clamp(2.3rem, 1.7rem + 2.8vw, 4rem); }
h3 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); font-weight: 700; line-height: 1.05; }
h4 { font-family: var(--f-body); font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 1em; max-width: 70ch; }
a:not([class]) { color: var(--orange-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:not([class]):hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
ul, ol { padding-left: 1.2em; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.lede { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); line-height: 1.5; color: var(--muted); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.contact-str { overflow-wrap: anywhere; }
a.contact-str { color: var(--orange-text); text-underline-offset: 3px; display: inline-flex; align-items: center; min-height: 44px; }
.on-ink a.contact-str, .page-hero a.contact-str { color: #FFB35A; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--ink); color: var(--on-ink); padding: .75rem 1rem; border-radius: var(--r-sm); }
.skip:focus { top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .75rem 1.4rem; border-radius: var(--r-sm);
  font: 700 1rem/1.1 var(--f-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: var(--accent-contrast); border-color: var(--orange); }
.btn-primary:hover { background: #FFAD4D; border-color: #FFAD4D; }
.btn-line { background: transparent; color: var(--text); border-color: currentColor; }
.btn-line:hover { background: var(--text); color: var(--bg); }
.on-ink .btn-line, .hero .btn-line, .page-hero .btn-line { color: var(--on-ink); }
.on-ink .btn-line:hover, .hero .btn-line:hover, .page-hero .btn-line:hover { background: var(--on-ink); color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--bg); color: var(--text);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; min-height: 44px; }
.brand img { width: 176px; height: 56px; }
.brand .logo-for-dark { display: none; }
:root[data-theme="dark"] .brand .logo-for-light { display: none; }
:root[data-theme="dark"] .brand .logo-for-dark { display: block; }
.nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav-list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem; color: var(--text); text-decoration: none; font-weight: 600; border-radius: var(--r-sm); }
.nav-list a:hover { background: var(--surface); }
.nav-list a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--orange); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: .5rem; }
.header-phone { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .6rem; font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap; }
.header-phone { min-width: 44px; justify-content: center; }
.header-phone svg { width: 18px; height: 18px; color: var(--orange-text); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg); color: var(--text); cursor: pointer; padding: 0;
}
.icon-btn:hover { background: var(--surface); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.nav-toggle { display: none; }
.header-cta { display: inline-flex; }

@media (max-width: 1080px) {
  .header-phone span { display: none; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-grid; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 1rem var(--gut) 1.5rem; display: none; box-shadow: var(--shadow); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; gap: .5rem; }
  .nav-list a { width: 100%; font-size: 1.15rem; padding: 0 .5rem; }
  .nav-list a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--orange); }
  .nav .btn { width: 100%; margin-top: 1rem; }
}
@media (min-width: 961px) { .nav .nav-cta-mobile { display: none; } }
@media (max-width: 420px) { .brand img { width: 138px; height: 44px; } .header-phone { padding: 0 .3rem; } }
@media (max-width: 380px) { .header-inner { gap: .5rem; } .header-actions { gap: .5rem; } .brand img { width: 113px; height: 36px; } }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; isolation: isolate; color: var(--on-ink); background: var(--ink);
  min-height: 500px; display: flex; align-items: center;
  padding: 2.5rem 0 5.5rem;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 72%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(23,28,33,.88) 0%, rgba(23,28,33,.7) 50%, rgba(23,28,33,.35) 100%); }
.hero h1 { font-size: clamp(2.4rem, 1.7rem + 2.8vw, 4.2rem); max-width: 25ch; margin-bottom: .3em; }
.hero .lede { color: var(--on-ink-muted); max-width: 62ch; }
.hero-kicker { font-weight: 600; color: var(--on-ink); margin-bottom: 1.25rem; display: flex; align-items: center; gap: .6rem; }
.hero-kicker::before { content: ""; width: 28px; height: 3px; background: var(--orange); flex: none; }
.hero .btn-row { margin-top: 1.5rem; }

/* ---------- Route 99 strip (signature device) ---------- */
.route { position: relative; z-index: 5; margin-top: -4.5rem; }
.route-card {
  background: var(--card); color: var(--text); border-radius: var(--r-md); box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2.5rem); border: 1px solid var(--line);
}
.route-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; margin-bottom: 1.5rem; }
.route-head h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); margin: 0; }
.route-head p { margin: 0; color: var(--muted); }
.route-line { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--stops, 5), 1fr); position: relative; }
.route-line::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 4px; background: var(--line); border-radius: 2px; }
.route-stop { position: relative; padding-top: 2.1rem; }
.route-stop::before { content: ""; position: absolute; top: 3px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--card); border: 4px solid var(--muted); }
.route-stop.is-home::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 5px rgba(252,154,40,.28); }
.route-name { min-height: 44px; display: flex; align-items: center; margin-block: -11px; font-family: var(--f-display); font-weight: 800; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); line-height: 1; display: block; }
a.route-name { color: var(--text); text-decoration: none; width: fit-content; }
a.route-name:hover { color: var(--orange-text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.route-meta { display: block; color: var(--muted); font-size: .92rem; margin-top: .3rem; }
@media (max-width: 700px) {
  .route-line { grid-template-columns: 1fr; gap: 1rem; padding-left: 2.2rem; }
  .route-line::before { left: 8px; right: auto; top: 6px; bottom: 6px; width: 4px; height: auto; }
  .route-stop { padding-top: 0; }
  .route-stop::before { left: -2.2rem; top: 12px; }
  .route-meta { margin-top: -4px; }
}

/* ---------- sections ---------- */
.sec { padding: var(--sec) 0; }
.sec-tight { padding: calc(var(--sec) * .6) 0; }
.sec-alt { background: var(--surface); color: var(--text); }
.on-ink { background: var(--ink); color: var(--on-ink); }
.on-ink .lede, .on-ink .muted { color: var(--on-ink-muted); }
.on-ink a:not([class]) { color: #FFB35A; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem 4rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.sec-head h2 { margin: 0; }
.sec-head p { margin: 0; }
.sec-head.is-stacked { grid-template-columns: 1fr; max-width: 60rem; }
@media (max-width: 800px) { .sec-head { grid-template-columns: 1fr; } }

/* services index: a ruled list, not a card grid */
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4rem; border-top: 2px solid var(--text); }
.svc { display: grid; grid-template-columns: 3rem 1fr; gap: 0 1rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.svc-ic { width: 40px; height: 40px; color: var(--orange-text); }
.svc h3 { margin-bottom: .35rem; }
.svc p { margin: 0; color: var(--muted); }
.svc a { grid-column: 2; margin-top: .6rem; font-weight: 600; justify-self: start; }
@media (max-width: 800px) { .svc-list { grid-template-columns: 1fr; } }

/* work showcase */
.work-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.5rem); align-items: start; }
.work { grid-column: span 4; margin: 0; }
.work:nth-child(2) { margin-top: clamp(0rem, 6vw, 4rem); }
.work:nth-child(3) { margin-top: clamp(0rem, 3vw, 2rem); }
.work-frame { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow); }
.work-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.work-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.work-bar span { margin-left: 8px; font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.work figcaption { padding-top: 1.1rem; }
.work h3 { margin-bottom: .3rem; }
.tap { display: inline-flex; align-items: center; min-height: 44px; }
.on-ink a.tap { color: #FFB35A; }
a.tap { color: var(--orange-text); text-underline-offset: 3px; }
.work p { color: var(--muted); margin-bottom: .6rem; }
.on-ink .work p { color: var(--on-ink-muted); }
.on-ink .work-frame { border-color: #3A434D; }
@media (max-width: 900px) { .work { grid-column: span 12; margin-top: 0 !important; } .work-grid { max-width: 640px; } }

/* steps (a real sequence) — numbered stops on a line, echoing the Highway 99 route strip */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem 2.5rem; counter-reset: step; }
.step { counter-increment: step; position: relative; padding-top: 4.5rem; }
.step::before {
  content: counter(step); position: absolute; top: 0; left: 0; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; font-size: 1.75rem; line-height: 1;
  background: var(--bg); color: var(--text); border: 3px solid var(--orange);
}
.step::after { content: ""; position: absolute; top: 26px; left: 56px; right: -2.5rem; height: 4px; background: var(--line); border-radius: 2px; }
.step:nth-child(3n)::after, .step:last-child::after { right: 0; }
.step:last-child::before { background: var(--orange); color: var(--accent-contrast); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.6rem; margin-bottom: .4rem; }
.step p { margin: 0; color: var(--muted); }
.sec-alt .step::before { background: var(--surface); }
.sec-alt .step:last-child::before { background: var(--orange); color: var(--accent-contrast); }
.on-ink .step::before { background: var(--ink); color: var(--on-ink); }
.on-ink .step::after { background: #3A434D; }
.on-ink .step:last-child::before { background: var(--orange); color: var(--accent-contrast); }
.on-ink .step p { color: var(--on-ink-muted); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { padding: 0 0 2rem 4.75rem; min-height: 56px; }
  .step::after { top: 56px; bottom: 0; left: 26px; right: auto; width: 4px; height: auto; }
  .step:nth-child(3n)::after { right: auto; }
  .step h3 { padding-top: .6rem; }
}

/* split: statement + body */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.split-aside { position: sticky; top: calc(var(--header-h) + 2rem); }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split-aside { position: static; } }
.bigline { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 1.8rem + 3.6vw, 5rem); line-height: .95; margin: 0 0 1.5rem; text-wrap: balance; }
.facts { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .5rem; }
.facts li { display: grid; grid-template-columns: 24px 1fr; gap: .75rem; align-items: center; min-height: 32px; }
.facts svg { width: 22px; height: 22px; color: var(--orange-text); margin-top: 2px; }
.on-ink .facts svg { color: var(--orange); }

/* FAQ */
.faq { border-top: 2px solid var(--text); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 0; min-height: 44px; font-weight: 700; font-size: 1.1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; border-right: 3px solid var(--orange-text); border-bottom: 3px solid var(--orange-text); transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq .faq-a { padding: 0 0 1.4rem; color: var(--muted); }
.faq .faq-a p:last-child { margin-bottom: 0; }

/* quote / CTA block */
.quote { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .quote { grid-template-columns: 1fr; } }
.quote-card { background: var(--card); color: var(--text); border-radius: var(--r-md); padding: clamp(1.25rem, 3vw, 2.25rem); box-shadow: var(--shadow); border: 1px solid var(--line); }
.on-ink .quote-card { border-color: transparent; }
.on-ink .quote-card a:not([class]), .on-ink .quote-card a.tap, .on-ink .quote-card a.contact-str, .on-ink .quote-card .facts a { color: var(--orange-text); }
.on-ink .quote-card .btn-line { color: var(--text); }
.on-ink .quote-card .btn-line:hover { background: var(--text); color: var(--bg); }
.on-ink .quote-card .muted, .on-ink .quote-card .lede { color: var(--muted); }
.on-ink .quote-card .facts svg { color: var(--orange-text); }
.cta-end { text-align: left; }
.cta-end .btn-row { margin-top: 1.75rem; }

/* forms */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.field .req { color: var(--orange-text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem; font: inherit; color: var(--text);
  background: var(--bg); border: 1.5px solid var(--field-border); border-radius: var(--r-sm);
}
.field textarea { min-height: 130px; resize: vertical; }
.field ::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--focus); outline: 2px solid var(--focus); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #C2261B; }
.field-error { color: #B3241A; font-size: .9rem; min-height: 0; }
:root[data-theme="dark"] .field-error { color: #FF8A80; }
:root[data-theme="dark"] .field [aria-invalid="true"] { border-color: #FF8A80; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--text); background: var(--surface); border-left: 4px solid var(--orange); padding: .9rem 1rem; border-radius: var(--r-sm); }
.form-status.is-err { color: #B3241A; }
:root[data-theme="dark"] .form-status.is-err { color: #FF8A80; }
.form-flash { display: none; font-weight: 600; padding: .9rem 1rem; border-radius: var(--r-sm); margin: 0 0 1rem; background: var(--surface); color: var(--text); border-left: 4px solid var(--orange); }
.form-flash.is-err { border-left-color: #C2261B; }
.form-flash:target { display: block; }
.form-note { font-size: .9rem; color: var(--muted); margin: 0; }

/* inner page hero */
.page-hero { background: var(--ink); color: var(--on-ink); padding: 2.5rem 0; position: relative; overflow: hidden; isolation: isolate; min-height: 500px; display: flex; align-items: center; }
.page-hero > .wrap { width: min(100% - 2 * var(--gut), var(--wrap)); }
.page-hero .hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.page-hero .hero-media + .wrap::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(23,28,33,.92) 0%, rgba(23,28,33,.78) 45%, rgba(23,28,33,.4) 100%); }
@media (max-width: 760px) { .page-hero .hero-media + .wrap::before { background: rgba(23,28,33,.8); } }
/* photo credit: shown on hover/keyboard focus of the hero only */
.hero-credit { position: absolute; right: .75rem; bottom: .75rem; margin: 0; max-width: calc(100% - 1.5rem); font-size: .78rem; line-height: 1.4; text-align: right;
  background: rgba(15,19,23,.85); color: #E6E9EC; padding: .2rem .6rem; border-radius: var(--r-sm); opacity: 0; transition: opacity .2s ease; }
.page-hero:hover .hero-credit, .hero-credit:focus-within { opacity: 1; }
.hero-credit a { color: #FFFFFF; text-underline-offset: 2px; }
.page-hero h1 { font-size: clamp(2.4rem, 1.7rem + 2.8vw, 4.2rem); max-width: 17em; margin-bottom: .3em; }
.page-hero .lede { color: var(--on-ink-muted); max-width: 62ch; }
.page-hero .crumbs { margin-bottom: .75rem; }
.page-hero .btn-row { margin-top: 1.5rem; }
.page-hero::after { content: ""; position: absolute; left: 0; bottom: 0; height: 6px; width: min(32%, 360px); background: var(--orange); }
.crumbs { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .4rem; font-size: .92rem; color: var(--on-ink-muted); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }
.crumbs a { color: var(--on-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; display: inline-flex; min-height: 44px; align-items: center; }
.crumbs [aria-current] { display: inline-flex; min-height: 44px; align-items: center; }

/* prose */
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: clamp(2rem, 1.6rem + 1.8vw, 3rem); margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose ul li, .prose ol li { margin-bottom: .5rem; max-width: 66ch; }

/* resource list (city pages) */
.res-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.res { background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.25rem 1.4rem; }
.res h3 { font-family: var(--f-body); font-size: 1.08rem; font-weight: 700; line-height: 1.3; margin-bottom: .35rem; }
.res p { margin: 0 0 .5rem; color: var(--muted); font-size: .97rem; }
.res a { font-weight: 600; overflow-wrap: anywhere; display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 760px) { .res-list { grid-template-columns: 1fr; } }

/* checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.checklist li { display: grid; grid-template-columns: 28px 1fr; gap: .9rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; width: 9px; height: 16px; margin: 2px 0 0 7px; border-right: 3px solid var(--orange-text); border-bottom: 3px solid var(--orange-text); transform: rotate(45deg); }
.checklist strong { display: block; margin-bottom: .2rem; }
.checklist p { margin: 0; color: var(--muted); }

/* key/value panel */
.kv { display: grid; gap: 0; border-top: 2px solid var(--text); margin: 0; }
.kv div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.kv dt { font-weight: 700; }
.kv dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
@media (max-width: 520px) { .kv div { grid-template-columns: 1fr; gap: .2rem; } }

/* footer */
.site-footer { background: var(--ink); color: var(--on-ink); padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: inline-flex; margin-bottom: 1.25rem; }
.footer-brand img { width: 176px; height: 56px; }
.site-footer h2 { font-family: var(--f-body); font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: var(--on-ink); }
.site-footer p, .site-footer li { color: var(--on-ink-muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--on-ink); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #3A434D; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .9rem; color: var(--on-ink-muted); }
.footer-base p { margin: 0; color: var(--on-ink-muted); }

/* back to top */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; padding: 0;
  background: var(--orange); color: var(--accent-contrast); border: 3px solid var(--accent-contrast);
  box-shadow: 0 0 0 2px var(--orange), 0 8px 20px rgba(0,0,0,.35);
  opacity: 0; visibility: hidden; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .2s ease, transform .2s ease, visibility 0s; }
.to-top:hover { box-shadow: 0 0 0 2px var(--orange), 0 10px 24px rgba(0,0,0,.45); }
.to-top svg { width: 22px; height: 22px; }

/* modal (no native dialogs) */
.modal { position: fixed; inset: 0; z-index: 300; display: none; place-items: center; padding: 1rem; background: rgba(15,19,23,.6); }
.modal.is-open { display: grid; }
.modal-card { background: var(--card); color: var(--text); border-radius: var(--r-md); padding: 1.75rem; max-width: 440px; width: 100%; box-shadow: var(--shadow); }
.modal-card h2 { font-size: 2rem; }
.modal-card .btn-row { justify-content: flex-end; margin-top: 1.25rem; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.facts a { display: inline-flex; align-items: center; min-height: 44px; color: var(--orange-text); text-underline-offset: 3px; }
.on-ink .facts a { color: #FFB35A; }

#main:focus { outline: none; }

/* breathing room: a heading that follows other content in the same column */
:is(p, ul, ol, dl, div, details, figure, table, blockquote) + :is(h2, h3) { margin-top: 2.5rem; }
:is(ul, ol, dl, details) + p { margin-top: 1.25rem; }
.svc > div > h3, .route-head h2, .sec-head h2, .split-aside h2, .res h3, .step h3, .work h3 { margin-top: 0; }
@media (max-width: 760px) { .page-hero { padding-bottom: 3.5rem; } .hero-credit { left: var(--gut); right: var(--gut); max-width: none; text-align: left; bottom: .6rem; } }
