/* Test Centre Stats. Road-sign greens and yellows for the frame, a quiet validated palette for the data.
   Fonts: Atkinson Hyperlegible Next (body, designed for legibility) and Bricolage Grotesque (headings), both OFL. */
@font-face { font-family: 'Atkinson'; src: url('/fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('/fonts/bricolage-grotesque-latin-standard-normal.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f6f4ee;
  --surface: #fffefb;
  --surface-2: #efece3;
  --ink: #15201b;
  --ink-2: #48524d;
  --ink-3: #6c746f;
  --line: #dcd8cc;
  --grid: #e6e3da;
  --sign: #0f3d2e;
  --sign-2: #165440;
  --sign-ink: #ffffff;
  --yellow: #ffcd1c;
  --plate-red: #c8321b;
  --link: #0b5d86;
  --link-hover: #073e5a;
  --focus: #ffcd1c;
  /* Data colours, validated (dataviz skill): centre = blue, region = orange, GB = de-emphasised grey. */
  --c-centre: #2a78d6;
  --c-region: #eb6834;
  --c-gb: #8a8984;
  --good: #0b7a0b;
  --good-bg: #e3f3e1;
  --bad: #b3261e;
  --bad-bg: #fbe7e4;
  --seq-0: #9ec5f4; --seq-1: #5598e7; --seq-2: #256abf; --seq-3: #0d366b;
  --land: #e4e0d4;
  --land-edge: #cfc9b8;
  --shadow: 0 1px 2px rgba(20, 30, 25, .06), 0 4px 18px rgba(20, 30, 25, .06);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #121614; --surface: #1a1f1c; --surface-2: #222925; --ink: #eef0ec; --ink-2: #c3c8c2; --ink-3: #9aa29c;
    --line: #333b36; --grid: #2b322e; --sign: #0e3427; --sign-2: #154a39; --link: #7cc4ec; --link-hover: #b5e0f7;
    --c-centre: #3987e5; --c-region: #d95926; --c-gb: #8f8e88;
    --good: #5fd35f; --good-bg: #183a1c; --bad: #ff8a80; --bad-bg: #3d1d1a;
    --seq-0: #184f95; --seq-1: #2a78d6; --seq-2: #6da7ec; --seq-3: #cde2fb;
    --land: #262d29; --land-edge: #3a433e;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #121614; --surface: #1a1f1c; --surface-2: #222925; --ink: #eef0ec; --ink-2: #c3c8c2; --ink-3: #9aa29c;
  --line: #333b36; --grid: #2b322e; --sign: #0e3427; --sign-2: #154a39; --link: #7cc4ec; --link-hover: #b5e0f7;
  --c-centre: #3987e5; --c-region: #d95926; --c-gb: #8f8e88;
  --good: #5fd35f; --good-bg: #183a1c; --bad: #ff8a80; --bad-bg: #3d1d1a;
  --seq-0: #184f95; --seq-1: #2a78d6; --seq-2: #6da7ec; --seq-3: #cde2fb;
  --land: #262d29; --land-edge: #3a433e;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 'Atkinson', system-ui, sans-serif; }
h1, h2, h3, .brand, .tile-value, .stat-value, .card-title { font-family: 'Bricolage', 'Atkinson', system-ui, sans-serif; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); line-height: 1.05; margin: .2em 0 .3em; font-weight: 750; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
h3 { font-size: 1.15rem; margin: 1.6em 0 .4em; font-weight: 650; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.small { font-size: .88rem; color: var(--ink-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--yellow); color: #000; padding: 8px 12px; border-radius: 6px; }
.eyebrow { text-transform: uppercase; letter-spacing: .09em; font-size: .78rem; font-weight: 700; color: var(--ink-2); margin: 0; }
.lede { font-size: 1.12rem; color: var(--ink-2); }
.updated { font-size: .9rem; color: var(--ink-3); }

/* Header: a primary-route sign strip */
.site-head { background: var(--sign); color: var(--sign-ink); border-bottom: 4px solid var(--yellow); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 750; font-size: 1.2rem; }
.brand:hover { color: #fff; }
.plate { fill: #fff; stroke: #fff; }
.plate-l { fill: none; stroke: var(--plate-red); stroke-width: 4.2; stroke-linecap: square; }
.site-head nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-head nav a { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .96rem; display: inline-block; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { background: rgba(255,255,255,.12); box-shadow: inset 0 -3px 0 var(--yellow); }
@media (max-width: 719px) { .head-row { padding-top: 8px; padding-bottom: 8px; } .site-head nav { width: 100%; overflow-x: auto; } .site-head nav ul { flex-wrap: nowrap; } .site-head nav a { padding: 6px 10px; font-size: .9rem; white-space: nowrap; } }

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 18px 0 6px; font-size: .9rem; color: var(--ink-3); }
.crumbs li + li::before { content: '›'; margin-right: 6px; color: var(--ink-3); }

/* Hero */
.hero { background: radial-gradient(1200px 400px at 85% -10%, rgba(255, 205, 28, .16), transparent 60%), var(--sign); color: #fff; padding: 40px 0 48px; }
.hero h1 { color: #fff; max-width: none; }
.hero .lede { color: #d9e6df; }
.hero .eyebrow { color: var(--yellow); }
.hero-grid { display: grid; gap: 32px; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.35fr 1fr; align-items: center; } }
.hero a { color: #fff; }
.finder label { display: block; font-weight: 700; margin-bottom: 6px; }
.finder-row { display: flex; gap: 8px; flex-wrap: wrap; }
.finder input[type="search"], .finder select, .table-tools input, .table-tools select { font: inherit; padding: 12px 14px; border-radius: 10px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); min-width: 0; }
.hero .finder input { flex: 1 1 220px; border-color: #fff; }
.btn { font: inherit; font-weight: 700; background: var(--yellow); color: #111; border: 0; border-radius: 10px; padding: 12px 20px; cursor: pointer; }
.btn:hover { filter: brightness(1.05); }
.btn-ghost { font: inherit; font-weight: 600; background: transparent; color: var(--link); border: 2px solid currentColor; border-radius: 10px; padding: 10px 16px; cursor: pointer; text-decoration: none; display: inline-block; }
.hero .small, .hero .small a { color: #cfe0d7; }
.hero-stats { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.hero-stats .stat-card:last-child { grid-column: 1 / -1; }
.stat-card { background: rgba(255,255,255,.07); border: 2px solid rgba(255,255,255,.85); border-radius: var(--radius); padding: 14px 16px; box-shadow: inset 0 0 0 4px var(--sign); }
.stat-label { margin: 0; font-size: .85rem; color: #d9e6df; font-weight: 600; }
.stat-value { margin: 2px 0; font-size: 2.6rem; font-weight: 750; line-height: 1.05; color: var(--yellow); }
.stat-value span { font-size: 1rem; margin-left: 6px; color: #fff; font-weight: 600; }
.stat-value.stat-small { font-size: 1.4rem; }
.stat-value.stat-small a { color: var(--yellow); }
.stat-note { margin: 0; font-size: .85rem; color: #cfe0d7; }

/* Blocks */
.block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; margin: 18px 0; box-shadow: var(--shadow); }
@media (min-width: 720px) { .block { padding: 28px 30px; } }
.lead-block { font-size: 1.08rem; border-left: 6px solid var(--yellow); }
.lead-block p:last-child { margin-bottom: 0; }
.page-head { margin: 8px 0 18px; }
.centre-head { margin: 4px 0 16px; }
.centre-head h1 { margin-bottom: .15em; }
.address { font-weight: 600; margin: 0 0 4px; }
.notice { background: #fff6d6; color: #3d3100; border: 1px solid #f0d77a; border-radius: 10px; padding: 12px 16px; margin: 10px 0 16px; }
:root[data-theme="dark"] .notice { background: #3a3315; color: #f6e9b5; border-color: #6b5b1f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .notice { background: #3a3315; color: #f6e9b5; border-color: #6b5b1f; } }

/* Tiles */
.tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 6px 0 4px; }
@media (max-width: 559px) { .tiles { grid-template-columns: 1fr 1fr; gap: 10px; } .tile-hero { grid-column: 1 / -1; } .tile { padding: 12px 14px; } .tile-value { font-size: 2rem; } }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); position: relative; }
.tile-hero { background: var(--sign); color: #fff; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--sign), var(--shadow); }
.tile-label { margin: 0; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.tile-hero .tile-label, .tile-hero .tile-delta { color: #d9e6df; }
.tile-value { margin: 4px 0 2px; font-size: 2.5rem; line-height: 1; font-weight: 750; }
.tile-hero .tile-value { color: var(--yellow); }
.tile-value span { font-size: 1rem; font-weight: 600; color: var(--ink-2); margin-left: 2px; }
.tile-hero .tile-value span { color: #fff; }
.tile-rank span { font-size: 1.05rem; }
.tile-delta { margin: 0; font-size: .88rem; color: var(--ink-2); }
.tile-delta.down::before, .chg.down::before { content: '▼ '; font-size: .75em; }
.tile-delta.up::before, .chg.up::before { content: '▲ '; font-size: .75em; }
.tile-delta.good { color: var(--good); font-weight: 700; } .tile-delta.bad { color: var(--bad); font-weight: 700; }
.tile-hero .tile-delta.good { color: #9ef09e; } .tile-hero .tile-delta.bad { color: #ffb4a9; }
.tile .spark { display: block; margin-top: 10px; width: 100%; height: 30px; }
.tile-hero .spark .line { stroke: var(--yellow); }
.tile-hero .spark .dot { fill: var(--yellow); stroke: var(--sign); }
.chg { white-space: nowrap; }
.chg.good { color: var(--good); } .chg.bad { color: var(--bad); }

/* Charts */
.chart-box { margin: 14px 0 6px; }
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-family: 'Atkinson', system-ui, sans-serif; }
.grid { stroke: var(--grid); stroke-width: 1; }
.tick { fill: var(--ink-3); }
.unit { fill: var(--ink-3); font-weight: 600; }
.line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.line.s-centre { stroke: var(--c-centre); stroke-width: 2.5; }
.line.s-region { stroke: var(--c-region); }
.line.s-gb { stroke: var(--c-gb); }
.dot { stroke: var(--surface); stroke-width: 2; }
.dot.s-centre { fill: var(--c-centre); } .dot.s-region { fill: var(--c-region); } .dot.s-gb { fill: var(--c-gb); }
.end-label { fill: var(--ink); font-weight: 700; }
.cap-label { fill: var(--ink-2); font-weight: 700; }
.bar.s-centre { fill: var(--c-centre); } .bar.s-gb { fill: var(--c-gb); } .bar.s-region { fill: var(--c-region); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0 0 8px; font-size: .9rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.key { display: inline-block; width: 18px; height: 3px; border-radius: 2px; }
.key.s-centre { background: var(--c-centre); height: 4px; } .key.s-region { background: var(--c-region); } .key.s-gb { background: var(--c-gb); }
.key.key-bar { width: 12px; height: 12px; border-radius: 3px; }
.key.s-gb-tick { width: 3px; height: 14px; background: var(--ink); }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--paper); padding: 8px 10px; border-radius: 8px; font-size: .84rem; line-height: 1.4; box-shadow: var(--shadow); white-space: nowrap; z-index: 2; transform: translate(-50%, -100%); }
.tip b { display: block; margin-bottom: 2px; }
.tip .k { display: inline-block; width: 10px; height: 3px; margin-right: 6px; vertical-align: middle; border-radius: 2px; }
.crosshair { stroke: var(--ink-3); stroke-width: 1; }
.chart-table { margin-top: 6px; font-size: .9rem; }
.chart-table summary { cursor: pointer; color: var(--link); font-weight: 600; width: fit-content; }
.chart-table table { margin-top: 8px; }

/* Compare rows */
.cmp-list { list-style: none; padding: 0; margin: 4px 0; display: grid; gap: 14px; }
.cmp-row { display: grid; gap: 4px 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .cmp-row { grid-template-columns: 200px 1fr 300px; align-items: center; } }
.cmp-label { font-weight: 600; }
.cmp-note { display: block; font-weight: 400; font-size: .8rem; color: var(--ink-3); }
.cmp-track { position: relative; height: 14px; background: color-mix(in srgb, var(--c-centre) 14%, var(--surface)); border-radius: 4px; }
.cmp-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c-centre); border-radius: 0 4px 4px 0; }
.cmp-gb { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1.5px; background: var(--ink); border-radius: 2px; box-shadow: 0 0 0 2px var(--surface); }
.cmp-value strong { font-size: 1.15rem; margin-right: 8px; }
.cmp-diff { font-size: .86rem; color: var(--ink-2); }

/* Segmented bars */
.seg-list { display: grid; gap: 10px; margin-top: 6px; }
.seg-row { display: grid; grid-template-columns: 1fr; gap: 4px; }
@media (min-width: 760px) { .seg-row { grid-template-columns: 200px 1fr; align-items: center; } }
.seg-name { font-weight: 600; font-size: .95rem; }
.seg-bar { display: flex; gap: 2px; height: 30px; }
.seg { display: flex; align-items: center; justify-content: center; min-width: 0; }
.seg:first-child { border-radius: 4px 0 0 4px; } .seg:last-child { border-radius: 0 4px 4px 0; }
.seg-0 { background: #86b6ef; color: #0b1b33; } .seg-1 { background: #5598e7; color: #0b1b33; } .seg-2 { background: #256abf; color: #fff; } .seg-3 { background: #0d366b; color: #fff; }
.seg-label { font-size: .8rem; font-weight: 700; }

/* Horizontal bars */
.hbars { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 8px; }
.hbars li { display: grid; grid-template-columns: minmax(110px, 220px) 1fr 120px; gap: 12px; align-items: center; font-size: .94rem; }
@media (max-width: 560px) { .hbars li { grid-template-columns: 1fr 90px; } .hb-track { grid-column: 1 / -1; grid-row: 2; } }
.hb-track { height: 14px; }
.hb-bar { display: block; height: 100%; background: var(--c-centre); border-radius: 0 4px 4px 0; min-width: 2px; }
.hb-value { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* Tables */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
table.data { min-width: 520px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); border-bottom: 2px solid var(--ink); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
thead th.num { white-space: normal; }
tbody tr:hover { background: var(--surface-2); }
th button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-transform: inherit; letter-spacing: inherit; text-align: inherit; }
th button::after { content: ' ↕'; opacity: .4; }
th button[aria-sort="ascending"]::after { content: ' ↑'; opacity: 1; }
th button[aria-sort="descending"]::after { content: ' ↓'; opacity: 1; }
tbody th { font-weight: 600; }
.spark-cell { width: 84px; }
.spark { display: block; }
.spark .line { stroke-width: 1.6; }
.tags { display: inline-flex; gap: 4px; margin-left: 8px; flex-wrap: wrap; }
.tag { font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; white-space: nowrap; }
.tag-good { background: var(--good-bg); color: var(--good); }
.tag-good::before { content: '✓ '; }
.league { font-size: .92rem; }
.league th, .league td { padding: 8px 8px; }
.league thead th { font-size: .74rem; }
.league tr.thin td, .league tr.thin th a { color: var(--ink-3); }
@media (max-width: 640px) { .league .col-region { display: none; } }
.thin-note { display: block; font-size: .72rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.league tbody th a { text-decoration: none; font-weight: 650; }
.league tbody th a:hover { text-decoration: underline; }
.table-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0 14px; }
.table-tools label { font-weight: 700; font-size: .92rem; }
.table-tools input, .table-tools select { padding: 9px 12px; }
.table-tools .small { margin: 0; }

/* Split layout and maps */
.split { display: grid; gap: 22px; }
@media (min-width: 960px) { .split { grid-template-columns: 1.4fr 1fr; align-items: start; } .split-map { grid-template-columns: 1fr 1fr; } .split-near { grid-template-columns: 1.7fr 1fr; } }
.map-box { margin: 0; }
.map { width: 100%; height: auto; display: block; max-height: 640px; }
.land { fill: var(--land); stroke: var(--land-edge); stroke-width: .5; }
.map-dot { stroke: var(--surface); }
.map-label { fill: var(--ink-2); font-family: 'Atkinson', sans-serif; font-weight: 600; paint-order: stroke; stroke: var(--surface); stroke-width: .25em; stroke-linejoin: round; pointer-events: none; }
.map a:hover .map-dot, .map a:focus .map-dot { stroke: var(--ink); stroke-width: 1.4; }
.w0 { fill: var(--seq-0); background: var(--seq-0); } .w1 { fill: var(--seq-1); background: var(--seq-1); } .w2 { fill: var(--seq-2); background: var(--seq-2); } .w3 { fill: var(--seq-3); background: var(--seq-3); }
.dot-none { fill: var(--c-gb); }
.dot-ie { opacity: .85; }
.dot-focus { fill: var(--plate-red); background: var(--plate-red); }
.dot-good { fill: var(--good); background: var(--good); }
.dot-other { fill: var(--c-gb); background: var(--c-gb); }
.legend-map .key { width: 12px; height: 12px; border-radius: 50%; }

/* Lists and cards */
.rank-list { list-style: none; counter-reset: r; padding: 0; margin: 0 0 8px; }
.rank-list li { counter-increment: r; border-bottom: 1px solid var(--line); }
.rank-list a { display: grid; grid-template-columns: 2em 1fr auto; grid-template-areas: 'n name val' 'n region val'; padding: 8px 2px; text-decoration: none; color: var(--ink); align-items: center; }
.rank-list a::before { content: counter(r); grid-area: n; font-weight: 750; color: var(--ink-3); font-family: 'Bricolage', sans-serif; }
.rl-name { grid-area: name; font-weight: 650; }
.rl-region { grid-area: region; font-size: .82rem; color: var(--ink-3); }
.rl-val { grid-area: val; font-weight: 750; font-variant-numeric: tabular-nums; }
.rank-list a:hover .rl-name { text-decoration: underline; color: var(--link); }
@media (min-width: 760px) { .rank-cols { columns: 2; column-gap: 32px; } .rank-cols li { break-inside: avoid; } }
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--sign-2); color: var(--ink); }
.card-title { font-weight: 700; font-size: 1.15rem; }
.card-figs { display: flex; flex-direction: column; font-size: .92rem; color: var(--ink-2); }
.card-figs strong { color: var(--ink); }
.card-foot { font-size: .82rem; color: var(--ink-3); margin-top: auto; }
.card .spark { width: 100%; height: 34px; }
.card-ie { border-top: 4px solid #169b62; }
.block .cards .card { box-shadow: none; }

/* Prose */
.prose-wrap { max-width: 1180px; }
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px 30px; margin: 10px 0 24px; box-shadow: var(--shadow); }
@media (min-width: 720px) { .prose { padding: 34px 44px 40px; } }
.prose h2 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.caveats li { margin-bottom: .6em; }
.sources p { font-size: .92rem; color: var(--ink-2); margin: 0; }
.move-block { border-top: 5px solid var(--sign-2); }
.sub { display: none; font-size: .8rem; font-weight: 400; color: var(--ink-3); }
@media (max-width: 640px) {
  table.data.move-table { min-width: 0; }
  .move-table .col-dist, .move-table .col-pass { display: none; }
  .move-table .sub { display: block; }
}
/* Charts are drawn twice (wide and narrow) so their text stays a readable size on phones. */
.chart-narrow, .chart-note { display: none; }
@media (max-width: 600px) { .chart-wide { display: none; } .chart-narrow { display: block; } .chart-note { display: block; } }

/* Near-me tool */
.tool { display: grid; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
@media (min-width: 860px) { .tool { grid-template-columns: 1.2fr 1.2fr .6fr auto; align-items: end; } }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: .95rem; }
.field input, .field select { width: 100%; }
.field-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.near-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 16px 0; }
.near-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: grid; gap: 6px; }
.near-card h3 { margin: 0; font-size: 1.1rem; }
.near-card .nc-meta { font-size: .85rem; color: var(--ink-3); }
.near-card .nc-figs { display: flex; gap: 18px; }
.near-card .nc-figs strong { display: block; font-size: 1.5rem; font-family: 'Bricolage', sans-serif; }
.near-card .nc-figs .small { display: block; line-height: 1.3; }
.near-card.best { border: 2px solid var(--good); }
.near-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.near-bar span { display: block; height: 100%; background: var(--c-centre); border-radius: 0 4px 4px 0; }

/* Ads and partners (off by default) */
.ad, .partners { margin: 18px 0; padding: 14px; border: 1px dashed var(--line); border-radius: var(--radius); }
.ad-label, .partners-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 8px; }
.partner-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.partner h3 { margin: 0 0 4px; font-size: 1rem; }

/* Footer */
.site-foot { background: var(--sign); color: #d9e6df; margin-top: 40px; padding: 34px 0 30px; border-top: 4px solid var(--yellow); font-size: .92rem; }
.site-foot a { color: #fff; }
.site-foot h2 { color: #fff; font-size: 1rem; margin-bottom: .6em; }
.foot-grid { display: grid; gap: 24px; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.2fr 1.4fr 1fr; } }
.foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: 'Bricolage', sans-serif; font-weight: 750; font-size: 1.1rem; }
.foot-links { list-style: none; padding: 0; margin: 0 0 12px; }
.foot-links li { margin-bottom: 4px; }
.site-foot .small { color: #b9cbc1; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-head nav, .finder, .tool, .chart-table summary { display: none; } .block, .tile { box-shadow: none; } }
