/* Cheapest Fuel — "Primary Route" (UK road-sign) brand.
   Colour = content role: green find fuel · blue email alerts · white inputs ·
   brown towns/guides · yellow prices only. Words in Transport (stand-in: Hanken
   Grotesk), numbers in Motorway (stand-in: Barlow Condensed). Mixed case always. */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/fonts/hanken-grotesk-var.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  color-scheme: light;
  --green: #00703C;
  --green-dark: #005A30;
  --blue: #0055A4;
  --brown: #6E3B1E;
  --yellow: #FFD200;
  --white: #FFFFFF;
  --black: #111311;
  --ground: #EEF0EC;
  --ink-2: #3B423D;
  --ink-3: #5B635D;
  --rule: #D5DAD5;
  --error: #B3261E;

  --font-word: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-num: "Barlow Condensed", "Arial Narrow", sans-serif;
  --radius: 12px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--black);
  font-family: var(--font-word); font-size: 16px; line-height: 1.5; font-weight: 500;
}
h1, h2, h3 { margin: 0; line-height: 1.08; text-wrap: balance; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
.sign :focus-visible, .sign--white:focus-within { outline-color: var(--black); }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container {
  max-width: var(--max); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ── Sign primitives ────────────────────────────────────────────── */
/* UK construction: coloured face, white border inset from a thin coloured rim. */
.sign {
  --face: var(--green);
  background: var(--face); color: var(--white);
  border: 3px solid var(--white); border-radius: var(--radius);
  box-shadow: 0 0 0 3px var(--face);
  font-weight: 600;
}
.sign--blue { --face: var(--blue); }
.sign--brown { --face: var(--brown); }
.sign--white { --face: var(--white); color: var(--black); border-color: var(--black); font-weight: 700; }
.arrow { width: 1em; height: 1em; flex: none; fill: currentColor; }
.num { font-family: var(--font-num); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.price { color: var(--yellow); }
.frac { font-size: .72em; vertical-align: .32em; margin-left: 1px; }

/* ── Header / footer ────────────────────────────────────────────── */
.site-header { padding-block: 18px 6px; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; padding: 7px 15px 7px 11px; font-size: 17px; text-decoration: none; letter-spacing: -.005em; }
.logo .arrow { font-size: 18px; color: var(--yellow); }
.site-nav { display: flex; gap: 22px; font-size: 15px; font-weight: 600; }
.site-nav a { text-decoration: none; color: var(--ink-2); }
.site-nav a:hover { color: var(--black); text-decoration: underline; text-underline-offset: 4px; }

.site-footer { margin-top: 72px; padding-block: 28px 40px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 14px; }
.site-footer .container { display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: var(--ink-2); }

/* ── Buttons & fields ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 22px; border: 0; border-radius: 10px; cursor: pointer;
  font-weight: 700; font-size: 16.5px; text-decoration: none; white-space: nowrap;
}
.btn--go { background: var(--green); color: var(--white); }
.btn--go:hover { background: var(--green-dark); }
.btn--go .arrow { transform: rotate(90deg); color: var(--yellow); }
.btn--yellow { background: var(--yellow); color: var(--black); }
.btn--yellow:hover { background: #F2C500; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link-btn {
  background: none; border: 0; padding: 4px 0; cursor: pointer; font-weight: 700; font-size: 15.5px;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; display: inline-flex; align-items: center; gap: 8px;
}

.pc-field { display: flex; align-items: center; gap: 12px; flex: 1 1 220px; height: 58px; padding: 0 8px 0 16px; cursor: text; }
.pc-field span { font-size: 13px; color: var(--ink-3); font-weight: 700; white-space: nowrap; }
.pc-field input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none;
  font-family: var(--font-num); font-weight: 600; font-size: 26px; letter-spacing: .05em; text-transform: uppercase;
}
.pc-field input::placeholder { color: #9AA19B; letter-spacing: .03em; text-transform: none; font-size: 22px; }
.search { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-error { color: var(--error); font-weight: 600; font-size: 15px; min-height: 1.5em; }

/* ── Homepage ───────────────────────────────────────────────────── */
.hero { padding-block: 36px 28px; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.hero .lede { margin-top: 16px; font-size: 18px; color: var(--ink-2); max-width: 40ch; }
.hero-left { display: flex; flex-direction: column; gap: 22px; }

/* Direction sign listing stations */
.dsign { padding: 16px 20px 14px; display: flex; flex-direction: column; min-width: 0; }
.dsign-head { display: flex; align-items: center; gap: 10px; font-size: 15.5px; padding-bottom: 10px; border-bottom: 2px solid rgba(255,255,255,.85); margin-bottom: 4px; flex-wrap: wrap; }
.dsign-head .arrow { font-size: 22px; }
.dsign-head .updated { margin-left: auto; font-weight: 500; font-size: 13px; opacity: .88; }
.dsign-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 16px; padding: 7px 0; text-decoration: none; }
.dsign-row .name { font-size: 18px; line-height: 1.2; overflow-wrap: anywhere; }
.dsign-row .where { grid-column: 1; font-size: 13.5px; font-weight: 500; opacity: .85; }
.dsign-row .p { grid-row: 1 / span 2; grid-column: 2; font-size: 32px; line-height: 1; align-self: center; }
.dsign-foot { margin-top: 8px; font-size: 13px; font-weight: 500; opacity: .88; }
.dsign-empty { padding: 18px 0 8px; font-weight: 500; opacity: .9; }
.toggle-mini { display: inline-flex; gap: 2px; background: rgba(0,0,0,.18); border-radius: 999px; padding: 2px; }
.toggle-mini button { border: 0; background: transparent; color: var(--white); font-weight: 700; font-size: 13px; padding: 3px 11px; border-radius: 999px; cursor: pointer; }
.toggle-mini button[aria-pressed="true"] { background: var(--white); color: var(--green); }

.stats { padding-block: 8px 8px; }
.stats .container { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; color: var(--ink-2); font-size: 15px; }
.stats .num { font-size: 24px; color: var(--black); }
.stats .k { font-weight: 600; }

.section { padding-block: 40px 0; }
.section h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 800; }
.section .intro { margin-top: 8px; color: var(--ink-2); max-width: 60ch; }
.section-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 20px; }

/* Email sign-up (motorway blue) */
.alerts { padding: 24px 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px 32px; align-items: center; }
.alerts h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; }
.alerts .copy { display: flex; flex-direction: column; gap: 8px; }
.alerts .copy p { font-weight: 500; opacity: .95; max-width: 46ch; }
.alerts form { display: flex; flex-direction: column; gap: 10px; }
.alerts .row { display: flex; flex-wrap: wrap; gap: 10px; }
.alerts input[type="email"], .alerts input[type="text"] {
  height: 48px; border: 0; border-radius: 8px; padding: 0 14px; background: var(--white); color: var(--black); font-weight: 600; min-width: 0;
}
.alerts input[type="email"] { flex: 2 1 220px; }
.alerts input[type="text"] { flex: 1 1 120px; text-transform: uppercase; font-family: var(--font-num); font-size: 20px; letter-spacing: .04em; }
.alerts input::placeholder { text-transform: none; font-family: var(--font-word); font-size: 16px; letter-spacing: 0; color: #7A827C; }
.alerts .btn { height: 48px; }
.alerts .fuel-pick { display: flex; flex-wrap: wrap; gap: 16px; font-size: 15px; font-weight: 600; }
.alerts .fuel-pick label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.alerts .fuel-pick input { accent-color: var(--yellow); width: 18px; height: 18px; }
.alerts .small { font-size: 13.5px; font-weight: 500; opacity: .9; }
.alerts .msg { font-weight: 700; min-height: 1.4em; }
.alerts .msg.err { color: #FFE27A; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Towns (tourist brown) */
.towns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.town { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; font-size: 16.5px; }
.town svg { width: 24px; height: 24px; flex: none; }
.town:hover { --face: #5A2F17; }

/* ── Finder ─────────────────────────────────────────────────────── */
.finder { padding-block: 22px 0; display: flex; flex-direction: column; gap: 18px; }
.locbar { display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 16px; flex-wrap: wrap; }
.locbar .cap { font-size: 13px; color: var(--ink-3); font-weight: 700; display: block; }
.locbar .val { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.locbar .val .num { font-size: 24px; letter-spacing: .04em; }
.locbar .grow { flex: 1 1 200px; min-width: 0; }
.locbar .change { margin-left: auto; }
.locbar form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; flex: 1 1 100%; }
.locbar form .pc-field { box-shadow: none; border-width: 2px; height: 52px; }
.locbar form .btn { height: 52px; }

.controls { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.seg { display: inline-flex; background: var(--white); border: 2px solid var(--black); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button { border: 0; background: transparent; border-radius: 7px; padding: 8px 14px; font-weight: 700; font-size: 15px; cursor: pointer; line-height: 1.15; text-align: left; }
.seg button small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-3); }
.seg button[aria-pressed="true"] { background: var(--green); color: var(--white); }
.seg button[aria-pressed="true"] small { color: rgba(255,255,255,.85); }
.seg--fuel button[data-fuel="B7"][aria-pressed="true"] { background: var(--black); }
.radius { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.radius select { height: 44px; border: 2px solid var(--black); border-radius: 10px; background: var(--white); padding: 0 10px; font-weight: 700; cursor: pointer; }
.explainer { background: var(--white); border-radius: 10px; padding: 12px 16px; font-size: 15px; color: var(--ink-2); border: 1px solid var(--rule); max-width: 72ch; }
.explainer strong { color: var(--black); }

.results-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; font-size: 15px; color: var(--ink-2); min-height: 1.6em; }
.results-meta strong { color: var(--black); }

.badge { display: inline-block; background: var(--yellow); color: var(--black); border-radius: 999px; padding: 2px 9px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
/* Reserve roughly the results' height while loading, so the page below doesn't jump (CLS). */
.state--loading { min-height: 760px; justify-content: flex-start; }
.state { padding: 34px 22px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.state h2 { font-size: 22px; font-weight: 800; }
.state p { font-weight: 500; opacity: .92; max-width: 56ch; }
.spinner { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255,255,255,.35); border-top-color: var(--yellow); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.more { display: flex; justify-content: center; }
.btn--outline { background: var(--white); color: var(--black); border: 2px solid var(--black); }
.footnote { font-size: 13.5px; color: var(--ink-3); }

@media (max-width: 860px) {
  .hero .container, .alerts { grid-template-columns: minmax(0, 1fr); }
  .hero .container { gap: 32px; }
  .site-nav { display: none; }
  .towns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (max-width: 520px) {
  .seg button { padding: 8px 10px; font-size: 14px; }
  .search .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
}

/* ── Server-rendered SEO pages ──────────────────────────────────── */
.crumbs { padding-block: 10px 0; font-size: 14px; color: var(--ink-3); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { color: var(--black); font-weight: 600; }

.page-head { padding-block: 22px 26px; }
.page-head h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -.03em; max-width: 22ch; }
.page-head .lede { margin-top: 12px; font-size: 18px; color: var(--ink-2); max-width: 62ch; }
.page-head .lede strong { color: var(--black); font-family: var(--font-num); font-size: 1.2em; font-weight: 600; letter-spacing: .01em; }
.page-head .meta { margin-top: 10px; color: var(--ink-3); font-size: 14.5px; }

.signs-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.dsign-row--dist { grid-template-columns: minmax(0, 1fr) auto 3.9em; }
.dsign-row .d .unit { font-size: .6em; font-weight: 600; letter-spacing: .02em; }
.dsign-row--dist .p { grid-column: 2; }
.dsign-row .d { grid-row: 1 / span 2; grid-column: 3; font-size: 26px; text-align: right; align-self: center; line-height: 1; }
.dsign-row:hover .name { text-decoration: underline; text-underline-offset: 3px; }

.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.stat { background: var(--white); border: 1px solid var(--rule); border-radius: 10px; padding: 14px 18px; display: flex; flex-direction: column; gap: 2px; }
.stat-label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.stat-value { font-size: 38px; line-height: 1.05; }
.stat-note { font-size: 14px; color: var(--ink-3); }

.search-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 16px 32px; align-items: center; background: var(--white); border: 1px solid var(--rule); border-radius: 14px; padding: 22px 24px; }
.search-panel h2 { font-size: 24px; font-weight: 800; }

.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table th, .price-table td { padding: 11px 16px; text-align: left; border-top: 1px solid var(--rule); vertical-align: top; }
.price-table thead th { border-top: 0; font-size: 13px; font-weight: 700; color: var(--ink-3); background: #F7F8F6; white-space: nowrap; }
.price-table .r { text-align: right; }
.price-table td.num { font-family: var(--font-num); font-size: 19px; font-weight: 600; white-space: nowrap; }
.price-table a { font-weight: 700; color: var(--green); text-decoration: none; }
.price-table a:hover { text-decoration: underline; }
.price-table .sub { display: block; font-size: 13.5px; color: var(--ink-3); font-weight: 500; }
.price-table .sub-inline { margin-left: 8px; font-size: 13px; color: var(--ink-3); font-weight: 500; }
.price-table tr.hl td { background: #F1F8F3; }

.town small { display: block; font-size: 12.5px; font-weight: 500; opacity: .85; }
.more-link { margin-top: 16px; font-weight: 600; line-height: 1.9; }
.more-link a { color: var(--green); }
.footnote { margin-top: 12px; }

.faq { display: flex; flex-direction: column; gap: 18px; max-width: 760px; }
.faq h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; }
.faq h3 { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.faq p { margin-top: 4px; color: var(--ink-2); }

.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.jump a { background: var(--white); border: 2px solid var(--black); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 700; text-decoration: none; }
.jump a:hover { background: var(--black); color: var(--white); }
.section-head h2 a { text-decoration: none; }
.section-head h2 a:hover { text-decoration: underline; }
.town-list { list-style: none; margin: 0; padding: 0; columns: 4 200px; column-gap: 24px; }
.town-list li { break-inside: avoid; padding: 3px 0; }
.town-list a { color: var(--green); font-weight: 600; text-decoration: none; }
.town-list a:hover { text-decoration: underline; }

.guide-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.guide-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; height: 100%; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 18px 20px; text-decoration: none; }
.guide-card::before { content: "Guide"; background: var(--brown); color: var(--white); font-size: 12px; font-weight: 700; border-radius: 6px; padding: 2px 8px; }
.guide-card .t { font-size: 18px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.guide-card .s { color: var(--ink-2); font-size: 15px; }
.guide-card:hover .t { text-decoration: underline; text-underline-offset: 3px; }

.prose-head h1 { max-width: 24ch; }
.prose { max-width: 70ch; font-size: 17.5px; line-height: 1.65; color: #222823; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: 26px; font-weight: 800; margin-top: 36px; }
.prose h3 { font-size: 20px; font-weight: 700; margin-top: 26px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--green); font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; background: var(--white); border: 1px solid var(--rule); display: block; overflow-x: auto; }
.prose th, .prose td { padding: 9px 14px; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
.prose thead th { border-top: 0; background: #F7F8F6; font-size: 14px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-bottom: 6px; font-weight: 600; }

@media (max-width: 860px) {
  .signs-2, .search-panel { grid-template-columns: minmax(0, 1fr); }
  .stats-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ── Charts (src/render/chart.js, assets/chart.js) ──────────────── */
.chart { margin: 0; background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px 12px; display: flex; flex-direction: column; gap: 10px; }
.chart:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.chart figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.chart-title { font-weight: 700; font-size: 16px; }
.legend { display: flex; gap: 16px; font-size: 14px; color: var(--ink-2); }
.legend .key { display: inline-flex; align-items: center; gap: 6px; }
.legend .key i { width: 16px; height: 2px; border-radius: 1px; display: inline-block; }
.chart-plot { position: relative; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-svg .grid { stroke: #E6E9E6; stroke-width: 1; }
.chart-svg .axis { fill: var(--ink-3); font-family: var(--font-num); font-size: 14px; font-variant-numeric: tabular-nums; }
.chart-svg .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .end { stroke: var(--white); stroke-width: 2; }
.chart-svg .end-label { fill: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.chart-svg .end-label .v { fill: var(--black); font-family: var(--font-num); font-size: 16px; }
.chart-svg .crosshair { stroke: var(--ink-3); stroke-width: 1; }
.chart-tip { position: absolute; top: 4px; transform: translateX(-50%); background: var(--white); border: 1px solid var(--rule); border-radius: 8px; box-shadow: 0 4px 14px rgba(17,19,17,.12); padding: 8px 10px; font-size: 13.5px; pointer-events: none; min-width: 120px; }
.chart-tip .tip-date { color: var(--ink-3); font-weight: 600; margin-bottom: 4px; }
.chart-tip .tip-row { display: flex; align-items: center; gap: 8px; }
.chart-tip .tip-row i { width: 12px; height: 2px; border-radius: 1px; }
.chart-tip strong { font-family: var(--font-num); font-size: 17px; font-weight: 600; }
.chart-tip span { color: var(--ink-3); }
.chart-caption { font-size: 14.5px; color: var(--ink-2); }
.chart-table summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--green); }
.chart-table .table-wrap { margin-top: 10px; max-height: 320px; overflow: auto; }
.trend-note { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 16px 18px; color: var(--ink-2); max-width: 70ch; }

/* ── Station page ───────────────────────────────────────────────── */
.station-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.station-head .addr { margin-top: 10px; font-size: 17px; color: var(--ink-2); }
.station-head .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag { border: 1.5px solid var(--black); border-radius: 999px; padding: 2px 10px; font-size: 13.5px; font-weight: 700; }
.station-head .actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; }
.price-board .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: baseline; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.3); }
.price-board .row:first-of-type { border-top: 0; }
.price-board .fuel { font-size: 18px; }
.price-board .fuel small { display: block; font-size: 13px; font-weight: 500; opacity: .85; }
.price-board .num { font-size: 40px; line-height: 1; grid-row: 1 / span 2; grid-column: 2; align-self: center; }
@media (max-width: 860px) { .station-head { grid-template-columns: minmax(0, 1fr); } }

/* ── Finder results: one sign for the top 3, white list for the rest ── */
.results { display: flex; flex-direction: column; gap: 10px; }
.results-sign { padding: 14px 18px 8px; display: flex; flex-direction: column; }
.results-sign-head { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; padding-bottom: 10px; border-bottom: 2px solid rgba(255,255,255,.85); margin-bottom: 2px; }
.results-sign-head .arrow { font-size: 20px; }
.sign-row, .list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; text-decoration: none; }
.sign-row { padding: 9px 0; }
.sign-row + .sign-row { border-top: 1px solid rgba(255,255,255,.22); }
.sign-row .n { font-size: 18px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.sign-row .s { font-size: 13.5px; font-weight: 500; opacity: .88; grid-column: 1; }
.sign-row .p { grid-row: 1 / span 2; grid-column: 2; font-size: 34px; line-height: 1; }
.sign-row:hover .n { text-decoration: underline; text-underline-offset: 3px; }
.sign-row .badge { margin-left: 8px; vertical-align: 2px; }
.results-more-label { font-size: 14px; font-weight: 700; color: var(--ink-2); margin-top: 8px; }
.results-list { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.list-row { padding: 12px 18px; border-top: 1px solid var(--rule); color: var(--black); }
.list-row:first-child { border-top: 0; }
.list-row:hover { background: #F5F7F5; }
.list-row .n { font-size: 16.5px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.list-row .s { font-size: 13.5px; color: var(--ink-3); grid-column: 1; }
.list-row .p { grid-row: 1 / span 2; grid-column: 2; font-size: 26px; line-height: 1; }
.list-row .badge { margin-left: 8px; vertical-align: 2px; background: var(--green); color: var(--white); }
@media (max-width: 520px) {
  .results-sign { padding: 12px 14px 6px; }
  .sign-row .p { font-size: 30px; }
  .list-row { padding: 11px 14px; }
  .list-row .p { font-size: 23px; }
}

/* ── Cookie choice (assets/analytics.js) ─────────────────────────── */
.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: var(--white); border-top: 3px solid var(--black);
  box-shadow: 0 -6px 24px rgba(17,19,17,.12);
  padding: 14px max(20px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px;
}
.consent-copy { max-width: 62ch; font-size: 15px; color: var(--ink-2); }
.consent-copy a { color: var(--green); font-weight: 700; }
.consent-actions { display: flex; gap: 10px; }
.consent-btn { height: 44px; padding: 0 22px; font-size: 15.5px; }
.footer-link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--ink-2); text-decoration: underline; cursor: pointer; }

.insights { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; max-width: 70ch; }
.insights li { padding-left: 22px; position: relative; color: var(--ink-2); font-size: 16px; }
.insights li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 10px; height: 10px; border-radius: 2px; background: var(--green); }
.insights a { color: var(--green); font-weight: 700; }

.callout { background: var(--white); border: 2px solid var(--black); border-radius: 10px; padding: 12px 16px; font-size: 15.5px; color: var(--ink-2); }
.callout a, .stats-link { color: var(--green); font-weight: 700; }
.stats-link { margin-left: auto; }
.box-press { background: var(--white); border: 1px solid var(--rule); border-radius: 12px; padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.box-press h2 { font-size: 22px; font-weight: 800; }
.box-press a { color: var(--green); font-weight: 700; }

.kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green); margin-bottom: 8px; }
.chg { font-size: .78em; color: var(--ink-3); margin-left: 4px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plain-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.plain-list strong { font-family: var(--font-num); font-weight: 600; font-size: 1.15em; }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

.embed-builder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 24px; align-items: start; margin-top: 18px; }
.embed-controls { display: flex; flex-direction: column; gap: 8px; }
.embed-controls select, .embed-controls textarea { font: inherit; border: 2px solid var(--black); border-radius: 8px; padding: 8px 10px; background: var(--white); }
.embed-controls textarea { font-family: ui-monospace, Menlo, monospace; font-size: 13px; resize: vertical; }
@media (max-width: 860px) { .embed-builder { grid-template-columns: minmax(0, 1fr); } }

.reports-row { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; margin-top: 10px; font-size: 15px; }
.reports-row .k { font-weight: 600; color: var(--ink-2); }
.reports-row a { color: var(--green); font-weight: 700; }

.hours { border-collapse: collapse; font-size: 15px; background: var(--white); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.hours th, .hours td { text-align: left; padding: 7px 14px; border-top: 1px solid var(--rule); }
.hours tr:first-child th, .hours tr:first-child td { border-top: 0; }
.hours th { font-weight: 600; color: var(--ink-2); padding-right: 28px; }

.prose .sources { font-size: 15px; }
.prose .sources a { font-weight: 600; }
