/* Soft sky (docs/BRAND.md, 2026-10-31). A calm, light page tinted by the page's own sky; each airport's weather lives in a
   rounded sky panel whose gradient, ink and drawn weather come from tomorrow's forecast (wt/mood.py writes --sky-top/-mid/-bot,
   --sky-deep, --hero-ink, --hero-ink2 and --paper inline). Type: Manrope for names and numbers, Hanken Grotesk for text. */
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/hanken-latin-ext.768af2923e.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/hanken-latin.e9201eddf1.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/manrope-latin-ext.3911b66d9f.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/manrope-latin.a30ddcd349.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #FAF5F2; --paper-2: #F2F6FA;   /* overridden per page: the page's sky, washed almost to white */
  --surface: #FFFFFF;
  --ink: #17212D;
  --ink-2: #3D4A58;
  --muted: #56636F;
  --rule: rgb(23 33 45 / 0.11);
  --accent: #2F62A0;           /* soft-sky blue: links, our forecast, the band's centre line, meters */
  --accent-deep: #1F4677;
  --tint: #D5E2F3;             /* the band */
  --text: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Manrope", "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --sky-top: #EDC4B3; --sky-mid: #F7DFBA; --sky-bot: #DBE7F2; --sky-deep: #BE7B5C; --hero-ink: #17212D; --hero-ink2: #3F4A55;
  --lift: 0 1px 2px rgb(23 33 45 / 0.05), 0 18px 40px -22px rgb(23 33 45 / 0.35);
  --r: 1.25rem;
  --step--1: 0.9rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.55rem;
  --step-3: clamp(1.6rem, 3vw, 2.05rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); overflow-x: hidden; min-height: 100vh;
  background: linear-gradient(165deg, var(--paper) 0, var(--paper-2) 46rem) no-repeat, var(--paper-2);
  font: 400 var(--step-0)/1.6 var(--text); font-feature-settings: "kern", "liga";
}
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--tint); color: var(--ink); }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
b, strong { font-weight: 650; }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); color: var(--ink); padding: 0.6rem 0.9rem; border-radius: 0.6rem; z-index: 9; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------------------------------------------------------------- header: quiet, on the page */
.top .wrap { display: flex; align-items: center; gap: 0.5rem 1.5rem; min-height: 4.75rem; flex-wrap: wrap; position: relative; }
.top .wrap::after { content: ""; position: absolute; left: 1.25rem; right: 1.25rem; bottom: 0; border-bottom: 1px solid var(--rule); }
.mark { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none;
  font: 700 1.3rem/1 var(--display); letter-spacing: -0.02em; }
.mark:hover { color: var(--ink); }
.mark svg { width: 2.1rem; height: 2.1rem; flex: none; }
.top nav { display: flex; gap: 0.1rem; margin-left: auto; align-items: center; flex-wrap: wrap; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; padding: 0.5rem 0.8rem; border-radius: 999px; }
.top nav a:hover { color: var(--ink); background: rgb(23 33 45 / 0.05); }
.top nav a[aria-current] { color: var(--ink); font-weight: 600; }
.unit {
  font: 600 0.9rem var(--text); color: var(--ink-2); background: var(--surface); margin-left: 0.5rem;
  border: 1px solid var(--rule); border-radius: 999px; padding: 0.4rem 0.95rem; cursor: pointer; min-height: 2.5rem;
  box-shadow: 0 1px 2px rgb(23 33 45 / 0.05);
}
.unit:hover { color: var(--ink); border-color: rgb(23 33 45 / 0.25); }

/* ---------------------------------------------------------------- the sky panel (airport card, home cards, page band) */
.skycard, .mini, .band { position: relative; isolation: isolate; overflow: hidden; color: var(--hero-ink);
  background: linear-gradient(160deg, var(--sky-top) 0%, var(--sky-mid) 52%, var(--sky-bot) 100%); }
.art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.art .drift { animation: drift 48s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(14px); } }
.mini .art .drift { animation-name: drift-s; }
@keyframes drift-s { to { transform: translateX(5px); } }

/* ---------------------------------------------------------------- home */
.hero-home { text-align: center; padding: clamp(2.5rem, 7vw, 5rem) 0 1rem; max-width: 50rem; margin: 0 auto; }
.eyebrow { margin: 0; color: var(--muted); font-size: var(--step--1); font-weight: 500; }
.hero-home h1 { font: 600 1.15rem/1.4 var(--display); color: var(--ink-2); margin: 0.2rem 0 1.4rem; letter-spacing: -0.005em; }
.claim { font: 400 clamp(1.95rem, 4.6vw, 3.3rem)/1.16 var(--display); letter-spacing: -0.025em; margin: 0 auto; max-width: 21ch; color: var(--ink); }
.claim .pre { display: block; font: 500 var(--step-0)/1.4 var(--text); letter-spacing: 0; color: var(--muted); margin-bottom: 0.65rem; }
.claim .main { display: block; }
.claim .main::first-letter { text-transform: uppercase; }
.claim b { font-weight: 700; }
.hero-home .lede { color: var(--muted); max-width: 40rem; margin: 1.75rem auto 0; font-size: 1rem; line-height: 1.6; }
.search { position: relative; max-width: 34rem; margin: 2.25rem auto 0; text-align: left; }
.search .lens { position: absolute; left: 1.25rem; top: 1.05rem; width: 1.4rem; height: 1.4rem; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; font: 400 1.1rem var(--text); padding: 1rem 1.4rem 1rem 3.25rem; color: var(--ink); min-height: 3.5rem;
  background: var(--surface); border: 1px solid rgb(23 33 45 / 0.08); border-radius: 999px; box-shadow: var(--lift);
  -webkit-appearance: none; appearance: none;
}
.search input:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 999px; }
.search input::placeholder { color: var(--muted); }
.search ul { list-style: none; margin: 0.5rem 0 0; padding: 0.4rem; background: var(--surface); border-radius: 1.4rem; position: absolute; left: 0; right: 0; z-index: 6; box-shadow: 0 24px 48px -16px rgb(23 33 45 / 0.35); }
.search li a { display: flex; justify-content: space-between; gap: 1rem; padding: 0.65rem 1rem; color: var(--ink); text-decoration: none; border-radius: 1rem; }
.search li a:hover, .search li a:focus { background: var(--paper-2); color: var(--ink); }
.search li strong { font-weight: 600; }
.search li span { color: var(--muted); font-size: var(--step--1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search ul:empty { display: none; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.mini {
  display: flex; flex-direction: column; align-items: center; text-align: center; text-decoration: none; color: var(--hero-ink);
  border-radius: 1.6rem; padding: 1.4rem 0.75rem 1.25rem; min-height: 15.5rem; box-shadow: var(--lift);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mini:hover { color: var(--hero-ink); transform: translateY(-3px); box-shadow: 0 1px 2px rgb(23 33 45 / 0.05), 0 26px 44px -22px rgb(23 33 45 / 0.45); }
.mini:focus-visible { outline-offset: 4px; border-radius: 1.6rem; }
.mini .code { font: 700 1.5rem/1 var(--display); letter-spacing: 0.01em; }
.mini .place { font-size: 0.9rem; color: var(--hero-ink2); margin-top: 0.3rem; }
.mini .num { font: 300 3.6rem/1 var(--display); letter-spacing: -0.04em; margin: auto 0 0; padding-top: 0.9rem; }
.mini .cond { font: 600 1rem/1.25 var(--display); margin-top: 0.45rem; }
.mini .low { font-size: 0.85rem; color: var(--hero-ink2); margin-top: 0.15rem; }

/* ---------------------------------------------------------------- airport page */
.hero-city {
  display: grid; grid-template-columns: minmax(0, 25.5rem) minmax(0, 1fr); grid-template-areas: "card intro" "card story"; grid-template-rows: auto 1fr;
  column-gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-top: 2rem;
}
.intro { grid-area: intro; padding-top: 0.5rem; }
.card-col { grid-area: card; }
.story { grid-area: story; }
.crumb { margin: 0 0 1.25rem; font-size: var(--step--1); font-weight: 500; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a::before { content: "← "; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.hero-city h1 { font: 600 clamp(2.3rem, 4.8vw, 3.5rem)/1.06 var(--display); letter-spacing: -0.03em; margin: 0; overflow-wrap: anywhere; }
.hero-city h1 .pre { display: block; font: 500 var(--step-0)/1.4 var(--text); letter-spacing: 0; color: var(--muted); margin-bottom: 0.4rem; }
.hero-city h1 .headline { display: block; font: 400 clamp(1.3rem, 2.3vw, 1.7rem)/1.3 var(--display); letter-spacing: -0.015em; color: var(--ink-2); margin-top: 0.75rem; }
.where { margin: 0.9rem 0 0; color: var(--muted); font-size: var(--step--1); }
.summary { margin: 2rem 0 0; max-width: 36rem; font-size: 1.125rem; line-height: 1.65; }

.skycard { border-radius: 2rem; padding: 2.75rem 1.5rem 1.1rem; text-align: center; box-shadow: var(--lift); }
.skycard p, .skycard h2, .skycard h3 { margin: 0; }
.skycard .temp { margin-top: 0.25rem; }
.skycard .temp .lab { display: block; font: 600 0.85rem/1 var(--text); letter-spacing: 0.02em; color: var(--hero-ink2); margin-bottom: 0.35rem; }
.skycard .num { display: inline-block; font: 300 clamp(6rem, 24vw, 8.25rem)/0.95 var(--display); letter-spacing: -0.045em; margin-left: 0.12em; }
.skycard .likely { color: var(--hero-ink2); font-size: 1.1rem; margin-top: 0.3rem; }
.skycard .cond { font: 600 clamp(1.6rem, 5vw, 1.95rem)/1.2 var(--display); letter-spacing: -0.02em; margin-top: 1.4rem; }
.skycard .low { margin-top: 0.4rem; font-size: 1.05rem; }
.skycard .low span { color: var(--hero-ink2); }
.airy { list-style: none; margin: 1.1rem 0 0; padding: 0; font-size: 1.05rem; line-height: 1.75; }
.skycard .dl-h { font: 600 0.8rem/1 var(--text); letter-spacing: 0.02em; color: var(--hero-ink2); margin: 1.9rem 0 0.2rem; }
.dayline { display: block; width: calc(100% + 1rem); height: auto; margin: 0 -0.5rem; font-family: var(--text); }
.dayline .hr { font-size: 11.5px; fill: var(--hero-ink2); }
.dayline .tv { font-size: 12.5px; font-weight: 700; fill: var(--hero-ink); }
.sky-note { font-size: 0.85rem; color: var(--muted); margin: 0.9rem 0.5rem 0; line-height: 1.5; }

.range { margin-top: 2.5rem; max-width: 32rem; }
.range h2, .now h2 { font: 600 var(--step-1)/1.3 var(--display); letter-spacing: -0.015em; margin: 0 0 0.5rem; }
.ruler-wrap { max-width: 32rem; }
.chart.ruler .direct { font-size: 13.5px; }
.chart.ruler .tick { font-size: 12px; }

/* ---------------------------------------------------------------- below the hero */
.content { padding-bottom: 1rem; }
h2.sec { font: 600 var(--step-3)/1.15 var(--display); letter-spacing: -0.025em; margin: 4.5rem 0 1.25rem; }
.caption { font-size: var(--step--1); color: var(--muted); margin: 0.6rem 0 0; max-width: 62rem; }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 0.85rem; margin: 0 0 1rem; }
.facts > div { background: var(--surface); border-radius: var(--r); padding: 1rem 1.2rem 1.1rem; box-shadow: 0 1px 2px rgb(23 33 45 / 0.04); }
.facts dt { font-size: var(--step--1); color: var(--muted); font-weight: 500; }
.facts dd { margin: 0.15rem 0 0; font: 600 1.6rem/1.2 var(--display); letter-spacing: -0.02em; }
.facts dd small { font: 400 var(--step--1) var(--text); color: var(--muted); letter-spacing: 0; }
.meter { display: block; height: 0.4rem; border-radius: 999px; background: rgb(23 33 45 / 0.08); margin-top: 0.7rem; overflow: hidden; }
.meter::after { content: ""; display: block; height: 100%; width: var(--v); background: var(--accent); border-radius: 999px; }
.now { background: var(--surface); border-radius: var(--r); padding: 1.1rem 1.35rem; max-width: 32rem; margin: 2rem 0 0; box-shadow: 0 1px 2px rgb(23 33 45 / 0.04); }
.now p { margin: 0; }
.now .when { color: var(--muted); font-size: var(--step--1); margin-top: 0.3rem; }
main > .stale-note { max-width: 40rem; margin: 1.25rem max(1.25rem, calc((100% - 72rem) / 2 + 1.25rem)) 0; border: 1px solid var(--rule); }

table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--rule); font-size: var(--step--1); vertical-align: middle; }
th:first-child, td:first-child { text-align: left; padding-left: 0; }
th { font-weight: 600; color: var(--ink-2); vertical-align: bottom; }
td.miss { font-weight: 800; }
td.rc { width: 7.5rem; padding-top: 0.2rem; padding-bottom: 0.2rem; }
.receipt { display: block; width: 120px; height: 22px; }
.record { max-width: 56rem; margin: 0 0 1rem; }
.record td:first-child { white-space: nowrap; }
.record caption { caption-side: bottom; text-align: left; padding-top: 0.7rem; }
.record-sum { font: 600 1.1rem/1.45 var(--display); letter-spacing: -0.01em; max-width: 42rem; margin: 0.75rem 0 1rem; }
.near { list-style: none; padding: 0; margin: 0 0 3rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.near a { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.3rem 1rem 0.3rem 0.3rem; border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; box-shadow: 0 1px 2px rgb(23 33 45 / 0.05); }
.near a:hover { box-shadow: 0 0 0 2px var(--accent); color: var(--ink); }
.near .code { font-weight: 400; color: var(--muted); font-size: var(--step--1); }
.near .sw { display: grid; place-items: center; min-width: 2.9rem; height: 2.1rem; border-radius: 999px; font: 600 0.95rem/1 var(--display); }

/* Home: map, lists, proofs, index */
.seg { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { cursor: pointer; padding: 0.5rem 1.1rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--rule); font-weight: 600; font-size: var(--step--1); color: var(--ink-2); }
.seg input:checked + label { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.seg input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 3px; }
.stage { display: none; flex-basis: 100%; border-radius: 1.75rem; overflow: hidden; margin-top: 0.5rem; background: var(--surface); padding-bottom: 1.25rem; box-shadow: 0 1px 2px rgb(23 33 45 / 0.04); }
#mv-sky:checked ~ .stage-sky, #mv-an:checked ~ .stage-an { display: block; }
.stage .legend, .stage .caption { padding: 0 1.25rem; }
.map { display: block; width: 100%; height: auto; }
.mapscroll { overflow-x: auto; overscroll-behavior-x: contain; }
.map .dot circle:first-of-type { transition: r 0.12s; }
.map a.dot:hover circle:first-of-type, .map a.dot:focus circle:first-of-type { r: 6.5; }
.map a.dot:focus-visible { outline: none; }
.map a.dot:focus-visible circle:first-of-type { stroke: var(--accent); stroke-width: 3; r: 7; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; padding: 0; margin: 0.9rem 0 0; font-size: var(--step--1); color: var(--ink-2); }
.legend .sw { display: inline-block; width: 0.85rem; height: 0.85rem; border-radius: 50%; margin-right: 0.45rem; vertical-align: -0.1rem; box-shadow: inset 0 0 0 1px rgb(23 33 45 / 0.12); }

.lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 3rem; margin: 4.5rem 0 1rem; }
.lists h2 { font: 600 var(--step-2)/1.2 var(--display); letter-spacing: -0.02em; margin: 0 0 0.9rem; }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li + li { margin-top: 0.3rem; }
.rank a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 0.95rem; align-items: center; padding: 0.4rem 0.75rem 0.4rem 0.4rem; border-radius: 1.2rem; color: var(--ink); text-decoration: none; }
.rank a:hover { background: var(--surface); color: var(--ink); }
.rank .sw { grid-row: span 2; display: grid; place-items: center; width: 3.6rem; height: 3rem; border-radius: 0.95rem; font: 600 1.1rem/1 var(--display); }
.rank .c { font-weight: 600; overflow-wrap: anywhere; align-self: end; }
.rank .c .code { font-weight: 400; color: var(--muted); font-size: var(--step--1); }
.rank .v { text-align: right; font: 600 1.1rem/1 var(--display); font-variant-numeric: tabular-nums; align-self: end; }
.rank .s { color: var(--muted); font-size: var(--step--1); grid-column: 2 / -1; align-self: start; }

.index { columns: 15rem; column-gap: 2.5rem; margin: 1rem 0 4rem; }
.index section { break-inside: avoid; margin: 0 0 1.4rem; }
.index h3 { font: 600 var(--step--1) var(--text); margin: 0 0 0.3rem; color: var(--muted); }
.index ul { list-style: none; margin: 0; padding: 0; }
.index li { padding: 0.12rem 0; }
.index li a { color: var(--ink); text-decoration: none; }
.index li a:hover { color: var(--accent); text-decoration: underline; }
.index li .code { color: var(--muted); font-size: var(--step--1); }

.proofs { background: var(--surface); border-radius: 1.75rem; padding: clamp(1.25rem, 3vw, 2rem); margin: 4.5rem 0 0; max-width: 52rem; box-shadow: 0 1px 2px rgb(23 33 45 / 0.04); }
.proofs h2 { font: 600 var(--step-2)/1.2 var(--display); letter-spacing: -0.02em; margin: 0 0 0.4rem; }
.proofs p { color: var(--ink-2); margin: 0 0 0.9rem; max-width: 46rem; }
.proofs .axis { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); margin: 0.1rem 0 0.9rem; }
.proofs .proof { margin: 0; }
.chart.strip .sdot:hover circle:first-of-type, .chart.strip .sdot:focus circle:first-of-type { r: 6; }

/* ---------------------------------------------------------------- explanatory pages */
.band { border-radius: 2rem; margin-top: 1.75rem; padding: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem); box-shadow: var(--lift); }
.band h1 { font: 600 clamp(2.1rem, 5vw, 3.4rem)/1.06 var(--display); letter-spacing: -0.03em; margin: 0; max-width: 18ch; }
.band .lede { color: var(--hero-ink); max-width: 42rem; margin: 1.1rem 0 0; font-size: 1.15rem; line-height: 1.55; }
.prose { max-width: 42rem; font-size: 1.1rem; line-height: 1.7; }
.prose:first-child { margin-top: 3rem; }
.prose h2 { font: 600 var(--step-3)/1.15 var(--display); margin: 3.25rem 0 0.75rem; letter-spacing: -0.025em; }
.prose h3 { font: 600 var(--step-1)/1.3 var(--display); margin: 2rem 0 0.5rem; letter-spacing: -0.015em; }
.prose p, .prose li { margin: 0 0 1rem; }
.prose ol, .prose ul { padding-left: 1.4rem; }
.prose .note { font-size: var(--step--1); color: var(--muted); }
.figure { margin: 1.75rem 0 1rem; max-width: 48rem; background: var(--surface); border-radius: 1.5rem; padding: 1.2rem 1.35rem; box-shadow: 0 1px 2px rgb(23 33 45 / 0.04); overflow-x: auto; }
.figure th:first-child, .figure td:first-child { padding-left: 0.25rem; }
.figure figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 0.5rem; }
.figure caption { text-align: left; font-weight: 600; color: var(--ink-2); padding-bottom: 0.5rem; font-size: var(--step--1); }
.chart { display: block; width: 100%; height: auto; font-family: var(--text); }
.chart .tick { font-size: 12px; fill: var(--muted); }
.chart .axis-label { font-size: 12px; fill: var(--ink-2); }
.chart .direct { font-size: 13px; fill: var(--ink); font-weight: 700; }
.chart .cell { font-size: 12px; font-weight: 700; }
details { font-size: var(--step--1); margin: 0 0 2rem; max-width: 48rem; }
summary { cursor: pointer; color: var(--accent); font-weight: 600; padding: 0.3rem 0; }
.wide { max-width: 72rem; }
.scores th, .scores td { font-size: var(--step--1); }
tr.ours th, tr.ours td { font-weight: 800; color: var(--ink); }
tr.ours th::before { content: ""; display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--accent); margin-right: 0.45rem; vertical-align: 0.05rem; }
code { font-size: 0.92em; background: rgb(23 33 45 / 0.06); padding: 0.05em 0.35em; border-radius: 0.35em; }

/* ---------------------------------------------------------------- footer */
footer { margin-top: 5rem; padding: 0 0 3.5rem; color: var(--muted); font-size: var(--step--1); }
footer .wrap { border-top: 1px solid var(--rule); padding-top: 2.25rem; }
footer p { margin: 0 0 0.55rem; max-width: 68ch; }
footer .sign { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem; font: 700 1rem/1 var(--display); color: var(--ink-2); letter-spacing: -0.02em; }
footer .sign svg { width: 1.6rem; height: 1.6rem; }

/* ---------------------------------------------------------------- narrow screens */
@media (max-width: 60rem) {
  .hero-city { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "card" "story"; grid-template-rows: none; padding-top: 1.25rem; }
  .card-col { margin-top: 1.75rem; max-width: 30rem; width: 100%; justify-self: center; }
  .summary { margin-top: 2rem; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  .top .wrap { min-height: 0; padding-top: 0.85rem; padding-bottom: 0.6rem; gap: 0.35rem 1rem; }
  .top nav { margin-left: -0.6rem; width: calc(100% + 0.6rem); flex-wrap: nowrap; }
  .top nav a { padding: 0.45rem 0.55rem; white-space: nowrap; font-size: 0.9rem; }
  .top nav a[href="/"] { display: none; }
  .unit { white-space: nowrap; padding: 0.3rem 0.75rem; margin-left: auto; font-size: 0.85rem; }
  .hero-home { padding-top: 2.25rem; }
  .search input { font-size: 1rem; }
  .skycard { padding: 2rem 1.1rem 1rem; border-radius: 1.75rem; }
  .mini { min-height: 14rem; padding: 1.2rem 0.5rem 1.1rem; }
  .mini .num { font-size: 3.1rem; }
  .band { border-radius: 1.6rem; margin-top: 1.25rem; }
  th, td { padding: 0.5rem 0.3rem; }
  .hide-s { display: none; }
  td.rc { width: 5.5rem; }
  .receipt { width: 84px; }
  h2.sec { margin-top: 3.25rem; }
  .prose { font-size: 1.0625rem; }
  .mapscroll .map { min-width: 40rem; }
  .chart.ruler .tick { font-size: 15px; }
  .chart.ruler .direct { font-size: 16px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .facts > div { padding: 0.85rem 0.95rem 0.95rem; }
  .facts dd { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-contrast: more) { .art { display: none; } }
