/* Forecourt totem theme.
   Night Forecourt (charcoal, sky blue) and Daylight (cool paper, blue ink).
   Follows the device setting until the visitor picks one with the toggle,
   which sets data-theme on <html> (see theme.js). */

:root {
  color-scheme: light;
  --bg: #f4f5fa;
  --surface: #ffffff;
  --surface-2: #eceef6;
  --totem: #ffffff;
  --ink: #0f1430;
  --ink-2: #4a5272;
  --ink-3: #5a6282;
  --line: #e2e5ef;
  --line-2: #cdd2e1;
  --heavy: #1a2040;
  --header: #ffffff;
  --header-ink: #0f1430;
  --header-ink-2: #4a5272;
  --brand-ink: #1a5f9e;
  --brand: #1f6fb5;
  --on-fill: #ffffff;
  --brand-glow: rgba(31, 111, 181, .10);
  --led-2: #0f1430;
  --link: #17578f;
  --accent: #1f6fb5;
  --accent-ink: #ffffff;
  --fall: #0e6245;
  --fall-bg: #e6f6f0;
  --fall-line: #a7dfc8;
  --rise: #9b1c1c;
  --rise-bg: #fdecec;
  --rise-line: #f8baba;
  --steady: #4a5272;
  --steady-bg: #e9ebf3;
  --steady-line: #c8cddc;
  --warn-bg: #fdf0cf;
  --warn-ink: #6b4700;
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --grid: #e0e3ee;
  --radius: 16px;
  --shadow: 0 10px 28px rgba(15, 20, 48, .08);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --led: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121212; --surface: #222222; --surface-2: #1b1b1b; --totem: #181818;
    --ink: #f5f5f5; --ink-2: #b8b8b8; --ink-3: #9a9a9a; --line: #2e2e2e; --line-2: #363636;
    --heavy: #363636; --header: #181818; --header-ink: #f5f5f5; --header-ink-2: #9a9a9a;
    --brand-ink: #7fbdf0; --brand: #62aee8; --on-fill: #071320; --brand-glow: rgba(98, 174, 232, .16); --led-2: #ffffff; --link: #8cc6f5;
    --accent: #62aee8; --accent-ink: #071320;
    --fall: #34d399; --fall-bg: rgba(16, 185, 129, .14); --fall-line: rgba(52, 211, 153, .35);
    --rise: #f87171; --rise-bg: rgba(239, 68, 68, .14); --rise-line: rgba(248, 113, 113, .35);
    --steady: #b8b8b8; --steady-bg: rgba(184, 184, 184, .12); --steady-line: rgba(184, 184, 184, .35);
    --warn-bg: rgba(255, 184, 0, .14); --warn-ink: #ffc633;
    --series-1: #3987e5; --series-2: #d95926; --grid: #2e2e2e;
    --shadow: 0 24px 48px rgba(0, 0, 0, .55);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121212; --surface: #222222; --surface-2: #1b1b1b; --totem: #181818;
  --ink: #f5f5f5; --ink-2: #b8b8b8; --ink-3: #9a9a9a; --line: #2e2e2e; --line-2: #363636;
  --heavy: #363636; --header: #181818; --header-ink: #f5f5f5; --header-ink-2: #9a9a9a;
  --brand-ink: #7fbdf0; --brand: #62aee8; --on-fill: #071320; --brand-glow: rgba(98, 174, 232, .16); --led-2: #ffffff; --link: #8cc6f5;
  --accent: #62aee8; --accent-ink: #071320;
  --fall: #34d399; --fall-bg: rgba(16, 185, 129, .14); --fall-line: rgba(52, 211, 153, .35);
  --rise: #f87171; --rise-bg: rgba(239, 68, 68, .14); --rise-line: rgba(248, 113, 113, .35);
  --steady: #b8b8b8; --steady-bg: rgba(184, 184, 184, .12); --steady-line: rgba(184, 184, 184, .35);
  --warn-bg: rgba(255, 184, 0, .14); --warn-ink: #ffc633;
  --series-1: #3987e5; --series-2: #d95926; --grid: #2e2e2e;
  --shadow: 0 24px 48px rgba(0, 0, 0, .55);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--sans); min-height: 100vh; display: flex; flex-direction: column;
  transition: background-color .25s, color .25s;
}
main { flex: 1; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0 0 .8em; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
small { font-size: .5em; font-weight: 600; margin-left: 2px; color: var(--ink-3); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--on-fill); padding: 8px 14px; border-radius: 8px; z-index: 2000; font-weight: 600; }
.skip:focus { left: 8px; }
.ico { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* header */
.site-header { background: var(--header); color: var(--header-ink); border-bottom: 2px solid var(--heavy); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 64px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand__badge { background: var(--brand); color: var(--on-fill); font: 700 .72rem/1 var(--led); letter-spacing: .06em; text-transform: uppercase; padding: 5px 7px; border-radius: 4px; }
.brand__name { font: 700 1.35rem/1 var(--led); letter-spacing: .02em; }
.header__right { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; }
.nav a { color: var(--header-ink-2); text-decoration: none; padding: 8px 11px; border-radius: 6px; font-weight: 600; font-size: .92rem; }
.nav a:hover { color: var(--header-ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--header-ink); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--brand); }
.modes { display: flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; padding: 3px; gap: 3px; }
.modes button { border: 0; background: transparent; color: var(--header-ink-2); font: 600 .78rem/1 var(--sans); padding: 7px 10px; border-radius: 5px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.modes button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.modes .ico { width: 1em; height: 1em; stroke-width: 2.2; }
.livepill { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; color: var(--ink-2); background: var(--surface-2); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); }
.livepill__dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 8px #10b981; flex: none; }

/* home */
.home { padding-top: 30px; padding-bottom: 10px; }
.home__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 500px); gap: 16px 32px; align-items: end; margin-bottom: 26px; }
.home__intro h1 { font: 700 clamp(2.1rem, 4.8vw, 3.4rem)/1.02 var(--led); letter-spacing: -.01em; text-transform: uppercase; margin: 12px 0 10px; }
.home__lead { color: var(--ink-2); font-size: 1.1rem; max-width: 36em; margin: 0; }
.home__grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 28px; align-items: start; }
.deck { display: grid; gap: 22px; min-width: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* totem */
.totem { background: var(--totem); border: 3px solid var(--heavy); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.totem__cap { background: var(--heavy); color: #f5f5f5; padding: 12px 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.horizon { display: flex; gap: 4px; padding: 12px 18px 0; }
.horizon[hidden] { display: none; }
.horizon button { flex: 1; font: 600 .82rem/1 var(--sans); padding: 9px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink-2); cursor: pointer; }
.horizon button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.slot { padding: 16px 18px; border-bottom: 2px solid var(--heavy); }
.slot__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.grade { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; letter-spacing: .03em; text-transform: uppercase; }
.grade b { font-size: .7rem; padding: 3px 6px; border-radius: 3px; font-weight: 800; }
.grade--E10 b { background: #10b981; color: #06281e; }
.grade--B7_STANDARD b { background: #f59e0b; color: #271700; }
.grade--E5 b { background: #3b82f6; color: #fff; }
.led { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.led__price { font: 700 3.2rem/1 var(--led); font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--brand-ink); text-shadow: 0 0 24px var(--brand-glow); }
.led__price--2 { color: var(--led-2); text-shadow: none; }
.led__unit { font: 600 1.1rem var(--led); color: var(--ink-3); margin-left: 3px; }
.led--est .led__price { color: var(--led-2); text-shadow: none; }
.led--est { border-style: dashed; border-color: var(--line-2); }
.led__side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.led__est { font: 700 .86rem var(--mono); }
.led__est--fall { color: var(--fall); }
.led__est--rise { color: var(--rise); }
.led__est--steady { color: var(--steady); }
.led__sub { font-size: .76rem; color: var(--ink-3); }
.pill { display: inline-flex; align-items: center; gap: 4px; font: 700 .76rem/1.2 var(--mono); padding: 3px 7px; border-radius: 4px; border: 1px solid; white-space: nowrap; }
.pill--fall { background: var(--fall-bg); color: var(--fall); border-color: var(--fall-line); }
.pill--rise { background: var(--rise-bg); color: var(--rise); border-color: var(--rise-line); }
.pill--steady { background: var(--steady-bg); color: var(--steady); border-color: var(--steady-line); }
.signboard { padding: 18px; background: var(--vbg); color: var(--v); }
.signboard__kicker { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; display: flex; align-items: center; gap: 8px; }
.signboard__main { font: 700 1.45rem/1.15 var(--led); text-transform: uppercase; margin: 6px 0 0; display: flex; align-items: center; gap: 8px; }
.signboard__detail { font-size: .86rem; margin: 8px 0 0; color: var(--ink); }
.signboard__proof { font-size: .8rem; margin: 6px 0 0; color: var(--ink-2); }
.signboard__proof a { color: inherit; }
.v-fall { --v: var(--fall); --vbg: var(--fall-bg); --vline: var(--fall-line); }
.v-rise { --v: var(--rise); --vbg: var(--rise-bg); --vline: var(--rise-line); }
.v-steady { --v: var(--steady); --vbg: var(--steady-bg); --vline: var(--steady-line); }

/* panels */
.panel { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.panel__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 16px; margin-bottom: 10px; }
.eyebrow { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 0; }
.panel__big { font: 700 2.2rem/1.1 var(--led); font-variant-numeric: tabular-nums; margin: 4px 0 0; }
.panel__big small { font: 500 .95rem var(--sans); }
.panel__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; font-size: .84rem; color: var(--ink-2); }
.panel__foot strong { font-family: var(--mono); color: var(--ink); }
.panel p.panel__note { font-size: .84rem; color: var(--ink-2); margin: 4px 0 0; }
.calc__inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 12px; }
.calc label, .calc .calc__label { display: block; font-size: .76rem; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.calc input, .calc select { width: 100%; font: 500 .95rem var(--mono); padding: 9px 10px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 6px; color: var(--ink); height: 42px; }
.calc__out { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.calc__text { font-size: .86rem; margin: 0; }
.calc__money { font: 700 1.6rem/1 var(--led); color: var(--brand-ink); white-space: nowrap; }
.countries { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .9rem; }
.countries th, .countries td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); }
.countries thead th { font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.countries td { font: 700 .92rem var(--mono); }
.countries tbody tr:last-child th, .countries tbody tr:last-child td { border-bottom: 0; }
.countries tbody th { font-weight: 600; }

/* search */
.search { display: flex; flex-wrap: wrap; gap: 8px; max-width: 560px; }
.search__label, .search__status { flex-basis: 100%; }
.search__label { font-weight: 700; }
.search__status:empty { position: absolute; }
@media (max-width: 520px) {
  .search input, .search button { flex-basis: 100%; justify-content: center; }
}
.search input { flex: 1 1 220px; min-width: 0; font: inherit; padding: 12px 14px; border-radius: 8px; border: 2px solid var(--line-2); background: var(--surface); color: var(--ink); }
.search button { font: 700 1rem var(--led); text-transform: uppercase; letter-spacing: .04em; padding: 12px 20px; border-radius: 8px; border: 0; cursor: pointer; background: var(--accent); color: var(--accent-ink); }
.search button:hover { opacity: .92; }
.search .search__geo { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--ink-2); border: 2px solid var(--line-2); font: 600 .9rem var(--sans); text-transform: none; letter-spacing: 0; }
.search .search__geo[hidden] { display: none; }
.search--big { max-width: none; width: 100%; }
.search--big .search__geo { flex-basis: 100%; justify-content: center; }
.search--big input { font-size: 1.05rem; padding: 14px 16px; }

/* tags, flags */
.tag { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.tag--est { background: var(--steady-bg); color: var(--ink-2); border: 1px dashed var(--line-2); }
.flag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 5px; background: var(--warn-bg); color: var(--warn-ink); }
.flag--closed { background: var(--rise-bg); color: var(--rise); }
.brandtag { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); margin-right: 8px; vertical-align: 1px; }

/* verdict card (forecast page) */
.verdict { background: var(--totem); border: 3px solid var(--heavy); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.verdict__head { background: var(--heavy); color: #f5f5f5; padding: 11px 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.verdict__fuel { font: 700 .95rem var(--sans); text-transform: uppercase; letter-spacing: .06em; }
.verdict__head .tag--est { color: #d0d4dc; border-color: #5a606c; background: transparent; }
.board { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 16px 0; }
.board__cell { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; }
.board__label { color: var(--ink-3); font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.board__price { color: var(--brand-ink); font: 700 2.2rem/1 var(--led); font-variant-numeric: tabular-nums; text-shadow: 0 0 24px var(--brand-glow); }
.board__price--est { color: var(--led-2); text-shadow: none; }
.board__cell:has(.board__price--est) { border-style: dashed; border-color: var(--line-2); }
.verdict__call { display: flex; align-items: center; gap: 8px; margin: 14px 16px 4px; color: var(--v); font: 700 1.35rem/1.15 var(--led); text-transform: uppercase; }
.verdict__detail { font-weight: 600; margin: 0 16px 6px; }
.verdict__proof { color: var(--ink-3); font-size: .84rem; margin: auto 16px 16px; }
.verdict--fall { --v: var(--fall); }
.verdict--rise { --v: var(--rise); }
.verdict--steady { --v: var(--steady); }

/* verdict strip */
.strip { display: grid; grid-template-columns: auto 1fr auto; gap: 6px 18px; align-items: center; background: var(--vbg); border: 1px solid var(--vline); border-left: 6px solid var(--v); border-radius: var(--radius); padding: 14px 18px; margin: 18px 0; }
.strip--fall { --v: var(--fall); --vbg: var(--fall-bg); --vline: var(--fall-line); }
.strip--rise { --v: var(--rise); --vbg: var(--rise-bg); --vline: var(--rise-line); }
.strip--steady { --v: var(--steady); --vbg: var(--steady-bg); --vline: var(--steady-line); }
.strip__call { display: flex; align-items: center; gap: 8px; color: var(--v); font: 700 1.15rem/1.2 var(--led); text-transform: uppercase; }
.strip__text { margin: 0; color: var(--ink); }
.strip__link { font-size: .88rem; white-space: nowrap; }

/* sections */
.section { margin-top: 38px; margin-bottom: 38px; }
.section__title { font-size: 1.3rem; font-weight: 750; margin-bottom: 14px; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pagehead { background: var(--totem); border-bottom: 1px solid var(--line); padding: 26px 0 22px; }
.pagehead h1 { font: 700 clamp(1.7rem, 3.6vw, 2.5rem)/1.1 var(--led); text-transform: uppercase; letter-spacing: 0; }
.pagehead__lead { margin: 10px 0 0; color: var(--ink-2); font-size: 1.05rem; max-width: 60em; }
.pagehead__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.pagehead .search { margin-top: 16px; }
.crumbs { font-size: .85rem; color: var(--ink-3); margin-bottom: 8px; }
.crumbs a { color: inherit; }
.jump { display: flex; gap: 14px; flex-wrap: wrap; margin: 16px 0 0; font-weight: 600; }
.notice { padding: 10px 14px; border-radius: 10px; margin: 14px 0 0; }
.notice--warn { background: var(--rise-bg); color: var(--ink); border-left: 5px solid var(--rise); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature h2 { font-size: 1.08rem; margin: 12px 0 6px; }
.feature p { color: var(--ink-2); margin: 0; }
.feature__ico { width: 32px; height: 32px; fill: none; stroke: var(--brand-ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
a.chip:hover { border-color: var(--brand-ink); }
.chip span { color: var(--ink-3); font: 500 .78rem var(--mono); }
.chip--static { background: var(--surface-2); }

/* buttons, forms */
.btn { display: inline-block; font: 700 .95rem/1.2 var(--led); text-transform: uppercase; letter-spacing: .04em; padding: 11px 18px; border-radius: 7px; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); text-decoration: none; cursor: pointer; }
.btn:hover { opacity: .92; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.filters { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin: 20px 0 0; }
.filters fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.filters legend, .field > span { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; padding: 0; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg legend { float: left; width: 100%; }
.seg label { position: relative; }
.seg input[type="radio"] { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg label > span:not(.vh) { display: block; padding: 8px 14px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface-2); font-weight: 600; color: var(--ink-2); }
.seg input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.seg input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.field select, .field input, .seg select { font: inherit; padding: 8px 10px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); height: 41px; }
.field--num input { width: 5.2em; font-family: var(--mono); }
.filters__group { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; }
.seg select.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.seg select option { background: var(--surface-2); color: var(--ink); }
.js .filters .btn { display: none; }

/* results */
.results { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 40%); gap: 20px; align-items: start; }
.stations { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.station { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 14px; align-items: start; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px; transition: border-color .15s, box-shadow .15s; }
.station:hover, .station.is-active { border-color: var(--line-2); box-shadow: var(--shadow); }
.station--top { border-color: var(--brand-ink); }
.station--closed { opacity: .7; }
.station__rank { width: 34px; height: 34px; border-radius: 6px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font: 700 1rem var(--led); color: var(--ink-2); }
.station--top .station__rank { background: var(--brand); border-color: var(--brand); color: var(--on-fill); }
.station__name { font-size: 1.06rem; font-weight: 700; }
.station__name a { color: var(--ink); text-decoration: none; }
.station__name a:hover { color: var(--link); text-decoration: underline; }
.station__meta { color: var(--ink-2); margin: 4px 0 6px; font-size: .92rem; }
.station__facts { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-3); font-size: .85rem; margin: 0 0 8px; }
.station__actions { display: flex; gap: 16px; margin: 0; font-size: .9rem; font-weight: 600; }
.station__price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.price { font: 700 2rem/1 var(--led); font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; color: var(--ink); }
.station--top .price { color: var(--brand-ink); }
.price--xl { font-size: 2.8rem; color: var(--brand-ink); text-shadow: 0 0 24px var(--brand-glow); }
.price--sm { font-size: 1.2rem; }
.station__cost { font-size: .82rem; color: var(--ink-3); max-width: 13em; }
.station__cost--on { color: var(--ink); font-weight: 700; }
.station__est { font-size: .82rem; color: var(--ink-2); white-space: nowrap; }
.mapcol { position: sticky; top: 14px; }
.map { height: min(72vh, 640px); border-radius: var(--radius); border: 2px solid var(--line); background: var(--surface-2); z-index: 0; }
.map--small { height: 300px; }
.mapnote { font-size: .78rem; color: var(--ink-3); margin: 6px 2px 0; }
.pin { background: #181818; color: #f5f5f5; border: 2px solid #363636; border-radius: 5px; font: 700 12px/1 var(--led); padding: 5px 7px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transform: translate(-50%, -50%); display: inline-block; font-variant-numeric: tabular-nums; }
.pin--top { background: #62aee8; border-color: #121212; color: #121212; }
.pin--closed { opacity: .6; border-style: dashed; }
.pin--dot { width: 18px; height: 18px; padding: 0; background: #62aee8; border-color: #121212; border-radius: 50%; }
.pin--centre { width: 14px; height: 14px; padding: 0; background: var(--series-1); border: 3px solid #fff; border-radius: 50%; }
.pin.is-active { outline: 3px solid #62aee8; }
.leaflet-container { font: inherit; }

.empty { background: var(--surface); border: 2px dashed var(--line-2); border-radius: var(--radius); padding: 28px; color: var(--ink-2); margin: 20px 0; }
.empty h2 { font-size: 1.2rem; margin-bottom: 8px; color: var(--ink); }
.empty .search { margin-top: 14px; }
.fineprint { margin: 36px 0; padding: 20px 22px; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); color: var(--ink-2); font-size: .93rem; }
.fineprint h2 { font-size: 1rem; margin-bottom: 8px; color: var(--ink); }
.fineprint p:last-child { margin-bottom: 0; }

/* station page */
.pricegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-bottom: 12px; }
.pricecard { background: var(--totem); border: 2px solid var(--line); border-radius: var(--radius); padding: 18px; }
.pricecard h3 { font-size: .9rem; color: var(--ink-2); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.pricecard__price { margin: 8px 0; }
.pricecard__when { font-size: .86rem; color: var(--ink-2); margin-bottom: 8px; }
.est { margin-top: 12px; padding: 12px; border: 1px dashed var(--line-2); border-radius: 8px; background: var(--surface-2); }
.est__head { margin-bottom: 6px; }
.est dl { margin: 0; display: grid; gap: 4px; }
.est dl div { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; }
.est dt { color: var(--ink-2); }
.est dd { margin: 0; font: 700 .9rem var(--mono); }
.twocol { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; }
.twocol .section__title:not(:first-child) { margin-top: 24px; }
.hours { border-collapse: collapse; width: 100%; max-width: 340px; }
.hours th, .hours td { text-align: left; padding: 6px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.hours td { text-align: right; font-family: var(--mono); font-size: .9rem; }
.mini { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); }
.mini li { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 12px 16px; }
.mini li + li { border-top: 1px solid var(--line); }

/* charts */
.chartbox { margin: 0; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 16px 16px 12px; }
.chart { position: relative; height: 260px; }
.chart--tall { height: 340px; }
.chart--short { height: 170px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .axis { fill: var(--ink-3); font-size: 12px; font-family: var(--sans); font-variant-numeric: tabular-nums; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line--est { stroke-dasharray: 5 5; }
.chart .s1 { stroke: var(--series-1); }
.chart .s2 { stroke: var(--series-2); }
.chart .s3 { stroke: var(--brand-ink); }
.chart .area { fill: var(--brand-ink); opacity: .12; stroke: none; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .dot.s1, .legend .sw.s1 { fill: var(--series-1); background: var(--series-1); }
.chart .dot.s2, .legend .sw.s2 { fill: var(--series-2); background: var(--series-2); }
.chart .dot.s3 { fill: var(--brand-ink); }
.chart .dot--est { fill: var(--surface); stroke-width: 2; }
.chart .dot--est.s1 { stroke: var(--series-1); }
.chart .dot--est.s2 { stroke: var(--series-2); }
.chart .endlabel { fill: var(--ink); font-size: 12px; font-weight: 700; font-family: var(--sans); }
.chart .estzone { fill: var(--steady-bg); }
.chart .estlabel { fill: var(--ink-2); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-family: var(--sans); }
.chart .cross { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .hit { fill: transparent; }
.tip { position: absolute; pointer-events: none; background: var(--ink); color: var(--bg); padding: 8px 10px; border-radius: 7px; font-size: .82rem; line-height: 1.4; white-space: nowrap; z-index: 5; box-shadow: var(--shadow); }
.tip[hidden] { display: none; }
.tip b { font-variant-numeric: tabular-nums; }
.tip .sw { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }
.tip .sw.s1 { background: var(--series-1); }
.tip .sw.s2 { background: var(--series-2); }
.tip .sw.s3 { background: var(--brand-ink); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-2); margin: 0 0 8px; }
.legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.chartbox figcaption { margin-top: 10px; }

/* tables */
.tablewrap { overflow-x: auto; background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); }
.data { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.data th, .data td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data thead th { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); }
.data tbody tr:last-child th, .data tbody tr:last-child td { border-bottom: 0; }
.data tbody th { font-weight: 600; }
.data td { font-family: var(--mono); font-size: .9rem; }
.result { font-weight: 700; }
.result--ok { color: var(--fall); }
.result--no { color: var(--rise); }
.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; max-width: 840px; }

/* prose pages */
.prose { max-width: 800px; }
.prose h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.formula { background: var(--surface); border: 2px solid var(--line); border-left: 6px solid var(--brand); border-radius: 10px; padding: 14px 18px; margin: 12px 0 16px; font-variant-numeric: tabular-nums; }
.formula p { margin: 0 0 6px; }
.formula p:last-child { margin: 8px 0 0; }
.faq { margin-top: 28px; margin-bottom: 40px; }
.faq details { background: var(--surface); border: 2px solid var(--line); border-radius: 10px; padding: 0 18px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.endpoint { background: var(--surface); border: 2px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.endpoint p:last-child { margin-bottom: 0; }
code { font: .88em/1.4 var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }

/* locations */
.az { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.az__letter { font: 700 1.4rem var(--led); color: var(--brand-ink); }
.az__list { list-style: none; margin: 0; padding: 0; columns: 4 190px; column-gap: 24px; }
.az__list li { break-inside: avoid; padding: 3px 0; }
.az__list a { color: var(--ink); }
.az__list span { font: .76rem var(--mono); }

/* footer */
.site-footer { background: var(--header); color: var(--ink-2); border-top: 2px solid var(--heavy); margin-top: 56px; padding: 34px 0; font-size: .9rem; }
.site-footer__in { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; }
.site-footer a { color: var(--ink); }
.site-footer__brand { font: 700 1.1rem var(--led); color: var(--ink); text-transform: uppercase; letter-spacing: .02em; }
.site-footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; align-content: start; }

@media (max-width: 1040px) {
  .home__grid { grid-template-columns: 1fr; }
  .totem { max-width: 560px; }
}
@media (max-width: 960px) {
  .home__intro { grid-template-columns: 1fr; }
  .results { grid-template-columns: 1fr; }
  .mapcol { position: static; order: -1; }
  .map { height: 320px; }
  .features { grid-template-columns: 1fr; }
  .twocol { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; }
  .strip__link { white-space: normal; }
}
@media (max-width: 680px) {
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .home { padding-top: 20px; }
  .cards2 { grid-template-columns: 1fr; }
  .led__price { font-size: 2.6rem; }
  .station { grid-template-columns: 30px minmax(0, 1fr); }
  .station__rank { width: 28px; height: 28px; font-size: .85rem; }
  .station__price { grid-column: 2; text-align: left; align-items: baseline; flex-direction: row; flex-wrap: wrap; gap: 4px 12px; }
  .station__cost { max-width: none; }
  .site-footer__in { grid-template-columns: 1fr; }
  .filters { gap: 12px; }
  .filters__group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; }
  .filters__group select, .filters__group input { width: 100%; }
  .az { grid-template-columns: 30px 1fr; }
  .mini li { grid-template-columns: 1fr auto; }
  .mini li .muted { display: none; }
  .modes button span { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .filters, .mapcol, .search, .modes { display: none; } }

/* -- UK average price bar ---------------------------------------------------- */
.ticker { background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: .84rem; }
.ticker__in { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding-top: 7px; padding-bottom: 7px; }
.ticker__label { font-size: .7rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.ticker__item { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); white-space: nowrap; }
.ticker__item strong { font: 700 .9rem var(--mono); color: var(--ink); }
.ticker__time { margin-left: auto; color: var(--ink-3); font-size: .78rem; }
.grade-chip { font-size: .64rem; padding: 2px 5px; border-radius: 3px; font-weight: 800; }
.grade-chip--E10 { background: #10b981; color: #06281e; }
.grade-chip--B7_STANDARD { background: #f59e0b; color: #271700; }
.grade-chip--E5 { background: #3b82f6; color: #fff; }
.grade-chip--B7_PREMIUM { background: #6b7280; color: #fff; }

/* -- my car ------------------------------------------------------------------ */
.carbtn { display: inline-flex; align-items: center; gap: 7px; font: 600 .82rem/1 var(--sans); color: var(--header-ink); background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; padding: 8px 11px; cursor: pointer; }
.carbtn[hidden] { display: none; }
.carbtn:hover { border-color: var(--brand); }
.carbtn .ico { width: 1.15em; height: 1.15em; stroke-width: 2; }
.cardialog { border: 3px solid var(--heavy); border-radius: 14px; padding: 0; background: var(--totem); color: var(--ink); width: min(440px, calc(100vw - 32px)); box-shadow: var(--shadow); }
.cardialog::backdrop { background: rgba(13, 14, 17, .6); }
.cardialog__form { padding: 22px; display: grid; gap: 12px; }
.cardialog h2 { font: 700 1.3rem var(--led); text-transform: uppercase; }
.cardialog label { display: grid; gap: 5px; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.cardialog input, .cardialog select { font: 500 1rem var(--mono); padding: 9px 10px; height: 44px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 7px; color: var(--ink); }
.cardialog__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cardialog__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 4px; }
.cardialog__forget { margin-left: auto; font-size: .9rem; color: var(--ink-2); }
.cardialog p { margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.linkbtn[hidden] { display: none; }

/* -- best choice card ---------------------------------------------------------- */
.best { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: center; background: var(--totem); border: 3px solid var(--brand); border-radius: 14px; padding: 18px 20px; margin: 18px 0; box-shadow: var(--shadow); }
.best__name { font: 700 1.5rem/1.15 var(--led); margin: 4px 0; }
.best__name a { color: var(--ink); text-decoration: none; }
.best__name a:hover { text-decoration: underline; }
.best__meta { color: var(--ink-2); font-size: .92rem; margin: 0; }
.best__cost { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.best__money { font: 700 2.4rem/1 var(--led); color: var(--brand-ink); text-shadow: 0 0 24px var(--brand-glow); }
.best__sub { font-size: .82rem; color: var(--ink-3); max-width: 17em; }
.best__save { grid-column: 1 / -1; margin: 6px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.best__save strong { color: var(--fall); }
.best__note { grid-column: 1 / -1; margin: 0; font-size: .84rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.best__go { margin-left: auto; font-weight: 700; }

/* -- saved forecourts -------------------------------------------------------------- */
.fav { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.fav[hidden] { display: none; }
.fav .ico { width: 1.05em; height: 1.05em; stroke-width: 2; }
.fav[aria-pressed="true"] .ico { fill: var(--brand); stroke: var(--brand-ink); }
.fav--sm { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--link); }
.favs__list { list-style: none; margin: 4px 0 8px; padding: 0; }
.favs__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name price" "meta price"; gap: 0 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.favs__list li:last-child { border-bottom: 0; }
.favs__list a { grid-area: name; font-weight: 700; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.favs__list a:hover { text-decoration: underline; }
.favs__list .muted { grid-area: meta; }
.favs__list .price { grid-area: price; color: var(--brand-ink); }

/* -- likely range --------------------------------------------------------------------- */
.board__range { font-size: .74rem; color: var(--ink-3); }

@media (max-width: 760px) {
  .ticker__time { margin-left: 0; flex-basis: 100%; }
  .best { grid-template-columns: 1fr; }
  .best__cost { text-align: left; align-items: flex-start; }
  .best__go { margin-left: 0; }
}
@media (max-width: 600px) {
  .carbtn span { display: none; }
  .ticker__item:nth-of-type(n+4) { display: none; }
}

/* -- stale prices warning ----------------------------------------------------- */
.stalebar { background: var(--warn-bg); color: var(--warn-ink); border-bottom: 1px solid var(--line); font-size: .9rem; padding: 8px 0; }

/* -- phone tab bar ------------------------------------------------------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  .nav { display: none; }
  .tabbar { position: fixed; z-index: 1000; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: var(--header); border-top: 1px solid var(--line-2); padding: 4px 6px max(4px, env(safe-area-inset-bottom)); box-shadow: 0 -6px 18px rgba(0, 0, 0, .08); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: 12px; color: var(--header-ink-2); text-decoration: none; font-size: .72rem; font-weight: 600; }
  .tabbar a[aria-current="page"] { background: var(--surface-2); color: var(--header-ink); }
  .tabbar a[aria-current="page"] .ico { stroke: var(--brand-ink); }
  .tabbar .ico { width: 22px; height: 22px; stroke-width: 2; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
@media print { .tabbar { display: none; } }

/* -- saved page ---------------------------------------------------------- */
.favs--page { margin-top: 20px; }
.empty--saved { text-align: center; padding: 40px 24px; }
.empty--saved h2 { margin: 10px 0 6px; color: var(--ink); }
.empty--saved .btn { margin-top: 10px; display: inline-flex; }
.ico--big { width: 40px; height: 40px; stroke: var(--brand-ink); }
.empty[hidden] { display: none; }

/* -- results: car chip, list bar, list/map switch ------------------------- */
.carchip { display: inline-flex; align-items: center; gap: 8px; height: 41px; padding: 0 12px; border-radius: 7px; border: 1px solid var(--brand); background: var(--brand-glow); color: var(--ink); font: 600 .9rem var(--sans); cursor: pointer; }
.carchip[hidden] { display: none; }
.carchip .ico { stroke-width: 2; }
.carchip__edit { color: var(--link); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.listbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 22px 0 12px; }
.listbar__title { font: 700 1.15rem var(--sans); margin: 0; margin-right: auto; }
.sortsel { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.sortsel select { font: 600 .92rem var(--sans); height: 40px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); }
.viewtoggle { display: none; gap: 3px; padding: 3px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface-2); }
.viewtoggle button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-2); font: 600 .9rem var(--sans); cursor: pointer; }
.viewtoggle button .ico { stroke-width: 2; }
.viewtoggle button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.best__breakdown { grid-column: 1 / -1; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: .88rem; color: var(--ink-2); }
.best__breakdown b { color: var(--ink); }
.station__unit { font-size: .75rem; color: var(--ink-3); margin-top: -2px; }
@media (max-width: 960px) {
  .viewtoggle:not([hidden]) { display: inline-flex; }
  .js .results:not(.results--map) .mapcol { display: none; }
  .results--map .stations { display: none; }
  .results--map .map { height: min(68vh, 560px); }
}
@media (max-width: 600px) {
  .listbar__title { width: 100%; }
  .station__unit { margin-top: 0; }
}
.chartbox--sign { margin: 12px 0 10px; padding: 10px 10px 8px; border-width: 1px; }
.chartbox--sign .chart--short { height: 150px; }
.chartbox--sign figcaption { margin-top: 4px; }

/* == 2026 refresh: calmer type, thin borders, rounder cards ===================
   Overrides the original totem styling above; light is the default theme. */
.home__intro h1, .pagehead h1, .signboard__main, .verdict__call, .strip__call,
.btn, .search button, .cardialog h2, .site-footer__brand, .grade, .verdict__fuel,
.pricecard h3 { text-transform: none; letter-spacing: -.02em; }
.btn, .search button { font: 600 .95rem/1.2 var(--sans); letter-spacing: 0; border-radius: 10px; }
.home__intro h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); letter-spacing: -.035em; }
.pagehead h1 { letter-spacing: -.03em; }
.brand__name { letter-spacing: -.01em; }
.site-header { border-bottom: 1px solid var(--line); }
.site-footer { border-top: 1px solid var(--line); }
.panel, .station, .chartbox, .feature, .filters, .fineprint, .tablewrap, .mini,
.faq details, .endpoint, .map, .pricecard, .formula, .empty { border-width: 1px; }
.panel, .chartbox, .feature, .fineprint, .tablewrap, .mini, .pricecard { border-radius: 20px; }
.station { border-radius: 16px; }
.search input { border-width: 1px; border-radius: 12px; }
.search button, .search .search__geo { border-radius: 12px; }
.search .search__geo { border-width: 1px; }
.totem, .verdict { border: 1px solid var(--line); border-radius: 20px; }
.totem__cap, .verdict__head { background: var(--surface-2); color: var(--ink-2); border-bottom: 1px solid var(--line); }
.verdict__head .tag--est { color: var(--ink-2); border-color: var(--line-2); }
.slot { border-bottom: 1px solid var(--line); }
.led, .board__cell { border-radius: 12px; }
.led__price, .board__price, .best__money, .price--xl { text-shadow: none; }
.best { border: 2px solid var(--brand); border-radius: 20px; background: var(--surface); }
.cardialog { border: 1px solid var(--line); border-radius: 20px; }
.chip { border-radius: 999px; padding: 7px 14px; }
.seg label > span:not(.vh), .field select, .field input, .seg select, .sortsel select,
.carchip, .modes, .carbtn, .viewtoggle { border-radius: 10px; }
.station__rank { border-radius: 9px; }
.strip { border-left-width: 1px; border-radius: 16px; }
.formula { border-left-width: 4px; }
.pill, .countries td, .data td, .ticker__item strong, .led__est, .est dd,
.panel__foot strong, .chip span, .az__list span, .field--num input,
.cardialog input, .calc input, .calc select { font-family: var(--sans); font-variant-numeric: tabular-nums; }
.pill { border-radius: 999px; padding: 3px 9px; }
.grade b, .grade-chip { border-radius: 5px; }
.tag { letter-spacing: .03em; }
/* daylight: prices in ink, the accent kept for what matters most */
:root[data-theme="light"] .led__price { color: var(--ink); }
:root[data-theme="light"] .station--top .price { color: var(--brand-ink); }

/* == home layout ============================================================ */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px 48px; align-items: center; padding-top: 44px; padding-bottom: 12px; }
.hero__intro { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero__intro h1 { font: 700 clamp(2.4rem, 5.4vw, 4rem)/1.02 var(--led); letter-spacing: -.035em; margin: 0; }
.hero__lead { color: var(--ink-2); font-size: 1.15rem; max-width: 32em; margin: 0; }
.hero .search { max-width: 560px; }
.hero__try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: .9rem; color: var(--ink-3); }
.chip--sm { padding: 5px 12px; font-size: .88rem; }

.vcard { --brand: #62aee8; --on-fill: #071320; --brand-ink: #7fbdf0; --surface: #262626; --surface-2: #262626; --ink: #f5f5f5; --ink-2: #d0d0d0; --ink-3: #a8a8a8;
  --line: #363636; --line-2: #454545; --grid: #2e2e2e; --steady-bg: rgba(255, 255, 255, .06); --link: #8cc6f5;
  --fall: #5ee0ae; --rise: #ff8f8f; --steady: #d0d0d0; --series-1: #6aa8f0; --series-2: #f08a5d;
  background: #181818; color: var(--ink); border: 1px solid #363636; border-radius: 24px; padding: 26px; box-shadow: 0 24px 48px rgba(13, 14, 17, .18); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.vcard__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.vcard__kicker { font-size: .8rem; font-weight: 600; color: var(--ink-3); }
.vcard__badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: rgba(255, 255, 255, .08); color: var(--v); }
.vcard__badge .ico { width: 1em; height: 1em; }
.vcard.v-fall { --v: #5ee0ae; } .vcard.v-rise { --v: #ff8f8f; } .vcard.v-steady { --v: #d0d0d0; }
.vcard.v-fall .vcard__badge { background: rgba(52, 211, 153, .16); }
.vcard.v-rise .vcard__badge { background: rgba(248, 113, 113, .16); }
.vcard__call { font: 700 clamp(2rem, 3.6vw, 2.7rem)/1.05 var(--led); letter-spacing: -.03em; color: var(--brand); margin: 0; }
.vcard__detail { margin: 0; color: var(--ink-2); font-size: .98rem; }
.vcard__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vcard__tile { background: #262626; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.vcard__fuel { font-size: .82rem; color: var(--ink-3); }
.vcard__price { font: 700 1.75rem/1.1 var(--led); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.vcard__move { font-size: .8rem; font-weight: 600; color: var(--ink-3); }
.vcard__move--fall { color: var(--fall); } .vcard__move--rise { color: var(--rise); }
.vcard .chartbox--sign { margin: 0; background: transparent; border: 0; padding: 0; }
.vcard .chartbox--sign figcaption { color: var(--ink-3); }
.vcard .tip { background: #f5f5f5; color: #181818; }
.vcard__track { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: .82rem; color: var(--ink-3); }
.vcard__track strong { color: var(--ink); }
.vcard__track meter { grid-column: 1 / -1; width: 100%; height: 8px; }
.vcard__track meter { -webkit-appearance: none; appearance: none; background: #363636; border: 0; border-radius: 999px; overflow: hidden; }
.vcard__track meter::-webkit-meter-bar { background: #363636; border: 0; border-radius: 999px; height: 8px; }
.vcard__track meter::-webkit-meter-optimum-value, .vcard__track meter::-webkit-meter-suboptimum-value { background: var(--brand); border-radius: 999px; }
.vcard__track meter::-moz-meter-bar { background: var(--brand); border-radius: 999px; }
.vcard__proof { margin: 0; font-size: .85rem; color: var(--ink-3); }
.vcard__proof a { font-weight: 600; }

.section--tight { margin-top: 26px; margin-bottom: 26px; }
.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pcard__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pcard .grade { text-transform: none; letter-spacing: 0; font-size: .98rem; }
.pcard__price { font: 700 3rem/1 var(--led); font-variant-numeric: tabular-nums; letter-spacing: -.03em; margin: 0; }
.pcard__price span { font-size: 1.1rem; color: var(--ink-3); margin-left: 3px; }
.pcard__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.pcard__steps div { display: flex; flex-direction: column; gap: 2px; }
.pcard__steps dt { font-size: .78rem; color: var(--ink-3); }
.pcard__steps dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.pcard__est--fall { color: var(--fall); } .pcard__est--rise { color: var(--rise); }
.pcard__note { margin: 0; font-size: .82rem; color: var(--ink-3); }
.pcard__note--none { padding-top: 12px; border-top: 1px solid var(--line); line-height: 1.5; }

.duo { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.duo--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.calc { background: var(--warn-bg); border-color: color-mix(in srgb, var(--brand) 45%, transparent); display: flex; flex-direction: column; gap: 4px; }
.calc__title { font: 700 1.45rem/1.15 var(--led); letter-spacing: -.02em; margin: 0 0 4px; }
.calc .calc__out { margin-top: auto; background: var(--surface); }
.calc__money { color: var(--fall); }
.stepper { display: grid; grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 6px; }
.stepper button { height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 600 1.2rem var(--sans); cursor: pointer; }
.stepper input { text-align: center; }
.calc input, .calc select { background: var(--surface); border-radius: 10px; }
.features { display: grid; grid-template-columns: 1fr; gap: 12px; }
.feature { display: flex; gap: 16px; align-items: flex-start; padding: 20px; }
.feature h2 { margin: 0 0 4px; font-size: 1.02rem; }
.feature p { font-size: .92rem; }
.feature__ico { flex: none; width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--surface-2); }
.countries th, .countries td { padding: 11px 0; }
.countries td { text-align: right; }
.countries thead th:not(:first-child) { text-align: right; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 24px; }
  .pcards { grid-template-columns: 1fr; }
  .duo, .duo--even { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .vcard { padding: 20px; border-radius: 20px; }
  .pcard__price { font-size: 2.4rem; }
}

/* == header: logo, search, car pill, theme button ========================== */
.brand__mark { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; flex: none; }
.brand__mark svg { width: 18px; height: 18px; fill: none; stroke: var(--on-fill); stroke-width: 2.3; stroke-linejoin: round; }
.brand__name { font: 700 1.25rem/1 var(--led); letter-spacing: -.02em; }
.site-header__in { min-height: 68px; flex-wrap: nowrap; }
.hsearch { flex: 0 1 380px; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin-right: auto; margin-left: 12px; }
.hsearch:focus-within { border-color: var(--brand); }
.hsearch .ico { color: var(--ink-3); stroke-width: 2; }
.hsearch input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: 500 .95rem var(--sans); color: var(--ink); }
.hsearch input::placeholder { color: var(--ink-3); }
.header__right { flex-wrap: nowrap; gap: 8px 14px; }
.nav a { border-radius: 9px; }
.carbtn { height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); }
.themebtn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--header-ink); display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.themebtn[hidden] { display: none; }
.themebtn:hover { border-color: var(--brand); }
.themebtn .ico { width: 18px; height: 18px; stroke-width: 2; grid-area: 1 / 1; }
.themebtn__sun { display: none; }
:root[data-theme="dark"] .themebtn__sun { display: block; }
:root[data-theme="dark"] .themebtn__moon { display: none; }
@media (max-width: 760px) {
  .site-header__in { flex-wrap: wrap; min-height: 60px; }
  .hsearch { order: 3; flex: 1 1 100%; margin: 0 0 4px; }
  .brand__mark { width: 30px; height: 30px; border-radius: 9px; }
  .brand__name { font-size: 1.12rem; }
}

/* == price bar: one line on phones, hidden on the home page there =========== */
@media (max-width: 760px) {
  .ticker__in { flex-wrap: nowrap; overflow: hidden; gap: 14px; }
  .ticker__time, .ticker__label { display: none; }
  .ticker__item:nth-of-type(n+4) { display: none; }
  body[data-page="home"] .ticker { display: none; }
}

/* == compact page heads ===================================================== */
.pagehead { padding: 22px 0 18px; }
.pagehead h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.pagehead__lead { font-size: 1rem; margin-top: 6px; }
.crumbs { margin-bottom: 6px; }
@media (max-width: 600px) {
  .pagehead { padding: 16px 0 14px; }
  .pagehead h1 { font-size: 1.55rem; }
  .pagehead__lead { font-size: .94rem; }
}

/* == results: forecast note beside the title, dark best choice ============= */
.pagehead__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); gap: 14px 32px; align-items: end; }
.fnote { background: var(--vbg); border: 1px solid var(--vline); border-radius: 16px; padding: 12px 16px; }
.fnote--fall { --v: var(--fall); --vbg: var(--fall-bg); --vline: var(--fall-line); }
.fnote--rise { --v: var(--rise); --vbg: var(--rise-bg); --vline: var(--rise-line); }
.fnote--steady { --v: var(--steady); --vbg: var(--steady-bg); --vline: var(--steady-line); }
.fnote__call { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; color: var(--v); font: 700 1.05rem var(--led); letter-spacing: -.01em; }
.fnote__call .tag { margin-left: auto; }
.fnote__text { margin: 0; font-size: .9rem; color: var(--ink); }
@media (max-width: 860px) { .pagehead__grid { grid-template-columns: 1fr; } }

.best { --brand: #62aee8; --on-fill: #071320; --brand-ink: #7fbdf0; --surface: #262626; --ink: #f5f5f5; --ink-2: #d0d0d0; --ink-3: #a8a8a8; --line: #363636; --link: #8cc6f5; --fall: #5ee0ae;
  background: #181818; color: var(--ink); border: 1px solid #363636; box-shadow: 0 20px 40px rgba(13, 14, 17, .16); }
.best .eyebrow { color: var(--brand); }
.best__money { color: var(--brand); }
.best__name a { color: var(--ink); }
.best__go { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 10px; background: var(--brand); color: var(--on-fill); text-decoration: none; }
.best__go:hover { opacity: .92; }

/* == Brent chart period ====================================================== */
.panel__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.range { display: inline-flex; gap: 3px; padding: 3px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.range[hidden] { display: none; }
.range button { height: 30px; min-width: 40px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-2); font: 600 .82rem var(--sans); cursor: pointer; }
.range button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
@media (max-width: 600px) { .panel__side { align-items: flex-start; } }

/* == night mode: lift the dark cards off the page; phone hero ================ */
:root[data-theme="dark"] .vcard, :root[data-theme="dark"] .best { background: #1f1f1f; border-color: #404040; box-shadow: 0 0 0 1px rgba(98, 174, 232, .14), 0 24px 48px rgba(0, 0, 0, .45); }
:root[data-theme="dark"] .vcard__tile { background: #2e2e2e; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .vcard, :root:not([data-theme]) .best { background: #1f1f1f; border-color: #404040; }
}
.favs { margin-bottom: 22px; }
@media (max-width: 600px) {
  .hero { gap: 18px; padding-top: 16px; }
  .hero__intro { gap: 12px; }
  .hero__intro h1 { font-size: 2.15rem; }
  .hero__intro .livepill { display: none; }
  .hero__lead { font-size: .98rem; }
  .hero .search--big .search__label { font-size: .92rem; }
  .hero__try { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px; scrollbar-width: none; }
  .hero__try::-webkit-scrollbar { display: none; }
  .hero__try a { flex: none; }
}

/* == never wider than the screen ============================================== */
/* grid columns default to min-content, so a no-wrap row (the city chips) could
   push the hero past the screen edge; fixed elements then misplace on phones */
.hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.hero__intro, .hero .search { min-width: 0; max-width: 100%; }
.hero__try > span { flex: none; }
body { overflow-x: clip; }
@media (max-width: 960px) { .hero { grid-template-columns: minmax(0, 1fr); } }

/* == phones: best choice on the first screen of results ===================== */
@media (max-width: 760px) {
  body[data-page="near"] .ticker, body[data-page="town"] .ticker { display: none; }
  .pagehead--results { padding: 10px 0 12px; }
  .pagehead--results .crumbs, .pagehead--results .pagehead__lead { display: none; }
  .pagehead--results h1 { font-size: 1.35rem; }
  .pagehead--results .pagehead__grid { gap: 10px; }
  .fnote { padding: 9px 12px; border-radius: 14px; }
  .fnote__call { font-size: .95rem; margin-bottom: 2px; }
  .fnote__text { font-size: .84rem; }
  .filters { position: relative; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding: 8px; margin-top: 12px; scrollbar-width: none; align-items: center; }
  .filters::-webkit-scrollbar { display: none; }
  .filters legend, .filters .field > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .filters .seg { flex-wrap: nowrap; flex: none; gap: 6px; }
  .filters .field, .filters .carchip { flex: none; }
  .seg label > span:not(.vh), .field select, .seg select, .carchip { height: 40px; display: flex; align-items: center; white-space: nowrap; }
  .seg label > span:not(.vh) { padding: 0 14px; }
  .carchip__edit { display: none; }
  .best { margin-top: 12px; padding: 16px; }
}

.fnote__local { margin: 0 0 4px; font-size: .92rem; color: var(--ink); }
.fnote__local strong { font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .fnote__local { font-size: .86rem; margin-bottom: 2px; } }

/* == town summary: lowest unleaded and diesel ================================= */
.lowest { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; font-size: .94rem; }
.lowest li { display: flex; align-items: baseline; gap: 8px; }
.lowest .grade-chip { flex: none; position: relative; top: -1px; }
.lowest strong { font-variant-numeric: tabular-nums; }
.lowest a { font-weight: 600; }
.lowest__when { color: var(--ink-3); font-size: .86rem; white-space: nowrap; }
.lowest__note { margin: 6px 0 0; font-size: .78rem; color: var(--ink-3); }

/* == filters: fuel visible, the rest behind one labelled button ============== */
.morefilters { position: relative; }
.morefilters summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; height: 41px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-2); font-weight: 600; color: var(--ink); cursor: pointer; white-space: nowrap; }
.morefilters summary::-webkit-details-marker { display: none; }
.morefilters summary .ico { stroke-width: 2; }
.morefilters[open] summary { border-color: var(--brand); background: var(--brand-glow); }
.morefilters__sum { font-weight: 500; color: var(--ink-2); }
.morefilters__panel { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.js .filters .morefilters__apply { display: inline-block; }
.morefilters__apply { height: 41px; }
.listcol { min-width: 0; }
.results--map .listcol { display: none; }
.showmore { display: flex; justify-content: center; align-items: center; min-height: 46px; margin-top: 10px; border-radius: 14px; border: 1px dashed var(--line-2); font-weight: 600; text-decoration: none; }
.showmore:hover { border-color: var(--brand); }
.backlink { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 8px; font-weight: 600; text-decoration: none; }
.backlink[hidden] { display: none; }
.backlink .ico { width: 1.1em; height: 1.1em; }
.best__cost .best__go { margin-top: 8px; }

@media (max-width: 760px) {
  /* the Filters button replaces the swipe row */
  .filters { flex-wrap: wrap; overflow: visible; }
  .filters .morefilters { flex: 1 1 100%; }
  .morefilters summary { width: 100%; justify-content: flex-start; }
  .morefilters__sum { margin-left: auto; }
  .morefilters__panel .field > span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .morefilters__panel .field select, .morefilters__panel .field input { width: 100%; }
  .morefilters__panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .morefilters__apply { grid-column: 1 / -1; }
  .lowest { font-size: .84rem; gap: 4px; margin-top: 8px; }
  .lowest__when { font-size: .78rem; }
  .lowest__note { display: none; }
  /* best choice: Directions beside the total, extras hidden */
  .best { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .best__cost { text-align: right; align-items: flex-end; grid-row: span 2; }
  .best__money { font-size: 1.9rem; }
  .best__name { font-size: 1.15rem; }
  .best__note, .best__save { display: none; }
  .best__breakdown { font-size: .8rem; }
}
@media (max-width: 760px) {
  /* fuel row fits the screen: two buttons and a menu that shrinks */
  .filters .seg { display: grid; grid-template-columns: auto auto minmax(0, 1fr); flex: 1 1 100%; min-width: 0; }
  .filters .seg__more, .filters .seg__more select { min-width: 0; width: 100%; }
  .filters .seg__more select { text-overflow: ellipsis; }
  .lowest li > span { min-width: 0; }
  .lowest__when { white-space: normal; }
}
@media (max-width: 760px) {
  body[data-page="town"] .fnote__local + .fnote__text, body[data-page="near"] .fnote__local + .fnote__text { display: none; }
  .fnote__call .tag { display: none; }
  .pagehead--results h1 { margin-bottom: 0; }
  .lowest { margin-top: 6px; gap: 2px; line-height: 1.35; }
  .filters { margin-top: 10px; padding: 8px; gap: 8px; }
  .morefilters summary { height: 40px; }
  .best { margin-top: 10px; padding: 14px; }
  .best .eyebrow { font-size: .68rem; }
  .best__cost { gap: 2px; }
  .best__cost .best__go { margin-top: 6px; height: 38px; padding: 0 14px; }
}

/* advice from today, with the weekly call it started from kept apart */
.verdict__label { margin: 14px 16px -8px; color: var(--ink-3); font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.strip__orig, .fnote__orig { color: var(--ink-2); font-size: .86rem; }
.strip__orig { display: block; margin-top: 4px; }
.fnote__orig { margin: 4px 0 0; }
.vcard__weekly { display: grid; gap: 8px; }
.vcard__weekly-head { margin: 0; font-size: .82rem; font-weight: 600; color: var(--ink-3); }
.vcard__track b { color: var(--ink); font-weight: 700; }
@media (max-width: 760px) { .vcard__track { grid-template-columns: 1fr; gap: 2px 12px; } .vcard__track meter { margin-top: 4px; } }
/* phones hide the results note's sentence to keep the best choice on screen; hide its weekly-call line with it */
@media (max-width: 760px) { body[data-page="town"] .fnote__orig, body[data-page="near"] .fnote__orig { display: none; } }

/* ==== results page: command bar, outlook card, station rows, cost map (17 Nov 2026) ==== */
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.sh { display: none; }

/* 1. sticky command bar: every setting is a control */
.cmd { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px rgba(20, 22, 26, .06); }
.cmd__in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-top: 10px; padding-bottom: 10px; }

.seg2 { display: inline-flex; align-items: stretch; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); margin: 0; min-width: 0; }
.seg2 label { position: relative; display: flex; }
.seg2 input[type="radio"] { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.seg2 label > span { display: flex; align-items: center; justify-content: center; min-height: 32px; padding: 0 11px; border-radius: 8px; font: 600 .84rem var(--sans); color: var(--ink-2); white-space: nowrap; }
.seg2 input:checked + span { background: var(--accent); color: var(--accent-ink); box-shadow: 0 1px 3px rgba(20, 22, 26, .18); }
.seg2 input:focus-visible + span { outline: 2px solid var(--brand-ink); outline-offset: 1px; }

.js .cmd__go { display: none; }

/* 4. one benchmark line, then the forecast and the local spread in one card */
.bench { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 6px 0 0; color: var(--ink-2); font-size: .9rem; }
.bench b { color: var(--ink); font-weight: 700; }
.fnote.outlook { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px 24px; align-items: center; margin: 16px 0 0; padding: 14px 18px; box-shadow: 0 1px 2px rgba(20, 22, 26, .05), 0 6px 16px rgba(20, 22, 26, .05); }
.spread { margin: 0; min-width: 0; }
.spread__bar { display: block; width: 100%; height: 18px; overflow: visible; }
.spread__s1 { stop-color: var(--fall); } .spread__s2 { stop-color: #f2b53a; } .spread__s3 { stop-color: var(--rise); }
.spread__now { fill: var(--ink); } .spread__w2 { fill: var(--fall); }
.spread__cap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; font-size: .78rem; color: var(--ink-2); }
.spread__end { color: var(--ink-3); }
.spread__end:last-child { margin-left: auto; }
.spread__key { font-weight: 600; color: var(--ink); white-space: nowrap; }
.spread__key i { display: inline-block; width: 2px; height: 11px; margin-right: 5px; vertical-align: -1px; background: var(--ink); }
.spread__key--w2 { color: var(--fall); } .spread__key--w2 i { background: var(--fall); }

/* 2. winner card matches row 1 */
.best__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 4px 0 0; }
.best__actions .best__go { margin: 0; }
.best__actions .best__note { display: inline; }
.best__meta.num { font-size: .86rem; }

/* 3. station rows: brand badge, net total first, breakdown visible, price age pill */
.sortseg { flex: none; }
.srows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.srow { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(20, 22, 26, .05), 0 4px 12px rgba(20, 22, 26, .05); transition: box-shadow .15s, border-color .15s; cursor: pointer; }
.srow:hover { box-shadow: 0 2px 4px rgba(20, 22, 26, .06), 0 12px 28px rgba(20, 22, 26, .10); }
.srow--best { border-color: var(--brand); }
.srow.is-active { border-color: var(--brand-ink); box-shadow: 0 0 0 3px var(--brand-glow), 0 12px 28px rgba(20, 22, 26, .10); }
.srow--closed { opacity: .7; }
.bmark { grid-row: 1 / 3; align-self: start; position: relative; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font: 700 .92rem var(--led); letter-spacing: -.01em; background: #4a5263; }
.bmark__rank { position: absolute; top: -6px; left: -6px; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 99px; display: grid; place-items: center; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); font: 700 .64rem var(--mono); }
.srow--best .bmark__rank { background: var(--brand); border-color: var(--brand); color: var(--on-fill); }
.bmark--blue { background: #1f4fa0; } .bmark--green { background: #3b8526; } .bmark--orange { background: #d4600a; }
.bmark--forest { background: #0b6b3a; } .bmark--red { background: #c4122f; } .bmark--yellow { background: #f2c200; color: #181818; }
.bmark--n0 { background: #4a5263; } .bmark--n1 { background: #66558f; } .bmark--n2 { background: #2f6f7a; } .bmark--n3 { background: #7a5c3a; }
.srow__body { min-width: 0; }
.srow__name { margin: 0; font: 700 1rem/1.3 var(--sans); }
.srow__name a { color: var(--ink); text-decoration: none; }
.srow__name a:hover { color: var(--link); text-decoration: underline; }
.srow__meta { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; min-width: 0; margin: 3px 0 0; color: var(--ink-3); font-size: .84rem; }
.srow__street { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srow__meta > :not(.srow__street) { flex: none; white-space: nowrap; }
.fresh { display: inline-flex; align-items: center; gap: 5px; font: 500 .8rem var(--sans); color: var(--ink-3); }
.fresh--old { padding: 1px 8px; border-radius: 99px; font-weight: 600; color: var(--warn-ink); background: var(--warn-bg); }
.fresh--old::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.srow__meta .sh { display: none; }
.srow__price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.srow__total { font-size: 1.3rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.srow--best .srow__total { color: var(--brand-ink); }
.srow__ppl { font-size: .82rem; color: var(--ink-2); }
.srow__more { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line); font-size: .82rem; color: var(--ink-2); }
.srow__more b { color: var(--ink); font-weight: 600; }
.srow__best { color: var(--fall); font-weight: 700; }
.srow__est { white-space: nowrap; }
.srow__acts { display: flex; align-items: center; gap: 14px; margin-left: auto; font-weight: 600; }

/* 5. map beside the list, cost pins and a route to the selected forecourt */
@media (min-width: 901px) { .mapcol { top: 78px; } }
.pin.is-on { outline: 3px solid #2563eb; outline-offset: 1px; }
.route { stroke: #1f6fb5; stroke-width: 4; stroke-dasharray: 2 9; stroke-linecap: round; fill: none; }
.results--map .srows { display: none; }

/* phones */
@media (max-width: 760px) {
  .fnote.outlook { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 10px 14px; margin-top: 10px; }
  .bench { font-size: .84rem; }
  .bench__rng { display: none; }
  .listbar { flex-wrap: nowrap; gap: 8px; margin: 14px 0 10px; }
  .listbar .listbar__title { display: none; }
  .sortseg .lg { display: none; } .sortseg .sh { display: inline; }
  .srow .lg { display: none; } .srow__meta .sh { display: inline; }
  .srow__est { display: none; }
  /* the bar's key already gives now and in two weeks; drop the sentence repeating them */
  .outlook:has(.spread__key) .fnote__local { display: none; }
  .outlook .fnote__call { margin: 0; }
}
@media (max-width: 560px) {
  /* two rows, nothing hidden off-screen: fuel on top; fill, mpg and distance below */
  .cmd__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 4px; padding-top: 8px; padding-bottom: 8px; }

  .seg2 label > span { padding: 0 7px; font-size: .8rem; }

 

  .srow { grid-template-columns: 38px minmax(0, 1fr) auto; padding: 11px 12px; gap: 2px 10px; }
  .bmark { width: 38px; height: 38px; border-radius: 10px; font-size: .82rem; }
  .srow__total { font-size: 1.12rem; }
  .srow__name { font-size: .95rem; }
  .srow__meta { gap: 8px; font-size: .8rem; }
  .srow__acts { margin-left: 0; }
  /* best card: name across the top, then Directions beside the total */
  .best { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .best__main { grid-column: 1 / -1; }
  .best__cost { grid-column: 2; grid-row: 2; grid-row-end: auto; text-align: right; align-items: flex-end; }
  .best__actions { grid-column: 1; grid-row: 2; margin: 0; align-self: center; }
  .best__actions .best__note { display: none; }
  .best__money { font-size: 1.7rem; }
  .best__sub { font-size: .72rem; white-space: nowrap; }
  .best__actions .best__go { height: 38px; padding: 0 14px; }
  .best .eyebrow { margin: 0; }
  .spread__end { display: none; }
}

/* Near me: a thin moving bar while we find you and the results load */
html.is-busy body::after { content: ""; position: fixed; top: env(safe-area-inset-top, 0px); left: 0; z-index: 1000; height: 3px; width: 40%; background: var(--brand); border-radius: 0 3px 3px 0; animation: busybar 1.1s ease-in-out infinite; }
@keyframes busybar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.tabbar a.is-busy svg { animation: busypulse 1s ease-in-out infinite; }
@keyframes busypulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { html.is-busy body::after { animation: none; width: 100%; opacity: .6; } .tabbar a.is-busy svg { animation: none; } }

/* ==== alignment pass (16 Nov 2026) ==== */
/* header: nothing wraps onto two lines; in tight widths the car pill shows its icon only */
.brand__name, .nav a, .carbtn span { white-space: nowrap; }
.nav { flex-wrap: nowrap; }
.hsearch { min-width: 0; }
@media (min-width: 761px) and (max-width: 1100px) {
  .carbtn span { display: none; }
  .carbtn { padding: 0 11px; }
  .nav a { padding: 8px 9px; }
  .hsearch { flex: 1 1 200px; margin-left: 4px; }
  .site-header__in { gap: 12px; }
}

/* command bar: one line on desktop and tablets; labels drop before controls wrap */
.cmd__in { gap: 10px 18px; }

@media (max-width: 1100px) and (min-width: 561px) {
  .cmd__in { gap: 10px 12px; }

}
/* every control in the bar is the same height */
.seg2 { height: 40px; }
.seg2 label > span { min-height: 0; height: 100%; }

/* phones: the three fuel buttons fill their thirds evenly */
@media (max-width: 560px) {
  

.seg2, .listbar .viewtoggle { height: 38px; }
  .cmd__in { gap: 8px 4px; }
}

/* list bar: sort and List/Map share one height; on phones sort takes the spare room */
.listbar .viewtoggle { height: 40px; padding: 3px; align-items: stretch; border-color: var(--line); border-radius: 11px; }
.listbar .viewtoggle button { min-height: 0; height: 100%; padding: 0 12px; border-radius: 8px; font-size: .84rem; }
@media (max-width: 760px) {
  .listbar .sortseg { flex: 1 1 auto; }
  .sortseg label { flex: 1; }
  .sortseg label > span { flex: 1; }
}

/* map: away from the close-up view only the eight best pins keep a label */
.map:not(.map--close) .pin--minor:not(.is-on) { font-size: 0; width: 12px; height: 12px; padding: 0; border-radius: 50%; border-width: 2px; }
.map:not(.map--close) .pin--minor:not(.is-on):hover { font-size: 12px; width: auto; height: auto; padding: 5px 7px; border-radius: 5px; }
@media (max-width: 560px) { .listbar .viewtoggle { height: 38px; } }

/* Mobile tasks: readable controls, prices first, and useful map space. */
.letter-jump { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:16px; }
.letter-jump a { display:grid; place-items:center; min-width:44px; min-height:44px; border:1px solid var(--line); border-radius:8px; }
.location-group { display:block; border-bottom:1px solid var(--line); padding:12px 0; scroll-margin-top:90px; }
.location-group summary { cursor:pointer; min-height:44px; }
.location-group summary .small { font:400 .85rem var(--sans); margin-left:12px; }
.location-group .az__list { margin-top:12px; }
.saved-directions, .fav-remove { display:inline-flex; align-items:center; min-height:44px; padding:8px; font:600 .9rem var(--sans); color:var(--link); }
.fav-remove { background:transparent; border:0; cursor:pointer; }
.favs--page select { font:inherit; min-height:44px; max-width:180px; }
.est summary { cursor:pointer; min-height:44px; display:flex; align-items:center; font-weight:600; }
pre { overflow-x:auto; max-width:100%; }
@media (max-width:760px) {
  .fav, .fav--sm, .viewtoggle button, .themebtn, .carbtn { min-height:44px; }
  .fav--sm { padding:10px 8px; }
  .listbar .viewtoggle { height:50px; }
  .listbar .viewtoggle button { min-height:44px; }
.cmd { height:auto; }
  .station__meta, .station__cost, .best__meta, .best__sub { font-size:.875rem; }
  body.map-active .pagehead--results, body.map-active .best, body.map-active .localoutlook, body.map-active .outlook { display:none; }
  body.map-active .listbar { position:sticky; top:0; z-index:450; background:var(--surface); padding:8px 0; }
  .results--map .map { height:calc(100dvh - 245px); min-height:320px; }
  body[data-page="station"] .ticker { display:none; }
  body[data-page="station"] .pagehead { padding:14px 0; }
  body[data-page="station"] .section:first-child { margin-top:18px; }
  body[data-page="station"] .pricegrid { grid-template-columns:1fr; gap:10px; }
  body[data-page="station"] .pricecard { padding:16px; }
  .mobile-labelled thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .mobile-labelled, .mobile-labelled tbody { display:block; width:100%; }
  .mobile-labelled tr { display:block; padding:12px; border-bottom:1px solid var(--line); }
  .mobile-labelled th, .mobile-labelled td { display:flex; justify-content:space-between; gap:16px; white-space:normal; padding:8px 0; text-align:right; }
  .mobile-labelled td::before { content:attr(data-label); font-weight:600; text-align:left; }
  .favs--page .favs__list li { display:flex; flex-wrap:wrap; gap:6px 12px; }
  .favs--page .favs__list li > a:first-child { flex-basis:100%; }
  body[data-page="offline"] .site-footer { display:none; }
  .cardialog { max-height:calc(100dvh - 32px); overflow:auto; }
}

.help-topic > summary { cursor:pointer; min-height:44px; padding:12px 0; font-weight:600; }
.help-topic .chartbox { margin-top:8px; }
@media(max-width:760px) {
  body[data-page="about"] .section { margin-block:12px; }
  .letter-jump { scroll-margin-top:80px; }
}

/* Keep accessible hit areas inside equally sized control rows. */
@media(max-width:760px) {
  .sortseg, .listbar .viewtoggle {
    height:50px; min-height:50px; box-sizing:border-box;
  }
.sortseg { padding:3px; align-items:stretch; }
.sortseg label { height:44px; min-height:0; align-self:stretch; }
.sortseg label > span {
    height:44px; min-height:44px; display:flex; align-items:center; justify-content:center; box-sizing:border-box;
  }

  .listbar { align-items:center; }
  .listbar .viewtoggle button { height:44px; min-height:44px; }
  .best__meta { font-family:var(--sans); line-height:1.5; }
  .best__sub { white-space:normal; line-height:1.5; }
  .best__actions .best__go { height:44px; }
  .srow__meta { flex-wrap:wrap; gap:3px 10px; line-height:1.5; }
  .srow__street { flex-basis:100%; }
}
@media(max-width:560px) {
  .cmd__in { display:grid; grid-template-columns:minmax(0,1fr) minmax(120px,.95fr) 70px; gap:8px; align-items:end; }

  .cmd__in:has(input[name="tank"]:checked[value]:not([value="30"]):not([value="50"]):not([value="65"])) > fieldset:nth-of-type(2) { grid-column:1 / -1; }
}

/* ==== command bar v3 (16 Nov 2026): fuel chips + one strip of three dials ==== */
.cmd .cmd__in { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 10px; padding-bottom: 10px; }
.fuelchips { display: flex; gap: 8px; min-width: 0; }
.fchip { position: relative; display: flex; min-width: 0; }
.fchip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.fchip > span:not(.vh), .fchip select { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 13px; background: var(--surface); color: var(--ink-2); font: 600 .92rem var(--sans); white-space: nowrap; box-sizing: border-box; }
.fchip select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 30px; max-width: 11.5em; text-overflow: ellipsis;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 17px) 20px, calc(100% - 12px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
.fchip__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line-2); }
.fchip--petrol .fchip__dot { background: #1faa59; }      /* pump handles: green for petrol, black for diesel */
.fchip--diesel .fchip__dot { background: #11131c; }
.fchip input:checked + span, .fchip select.is-on { background: var(--brand); border-color: var(--brand); color: var(--on-fill); font-weight: 700; box-shadow: 0 6px 16px var(--brand-glow); }
.fchip input:checked + span .fchip__dot { box-shadow: 0 0 0 2px var(--brand), 0 0 0 3px color-mix(in srgb, var(--on-fill) 55%, transparent); }
.fchip input:focus-visible + span, .fchip select:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 2px; }

.dials { display: grid; grid-template-columns: auto auto auto; border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); min-width: 0; overflow: hidden; }
.dial { position: relative; display: flex; align-items: stretch; height: 56px; min-width: 0; box-sizing: border-box; }
.dial + .dial { border-left: 1px solid var(--line); }
.dial__lab { position: absolute; top: 7px; left: 12px; right: 6px; font: 700 .62rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; pointer-events: none; z-index: 1; }
.dial--fill { padding: 0 6px; }
.dial__opt { position: relative; display: flex; align-items: flex-end; justify-content: center; flex: 1 1 0; min-width: 40px; padding-bottom: 6px; cursor: pointer; }
.dial__opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.dial__opt span { display: grid; place-items: center; min-width: 34px; height: 28px; padding: 0 6px; border-radius: 8px; font: 700 .92rem var(--mono); color: var(--ink-2); box-sizing: border-box; }
.dial__opt input:checked + span { background: var(--brand); color: var(--on-fill); }
.dial__opt input:focus-visible + span { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.dial--mpg button { width: 40px; flex: none; border: 0; background: none; color: var(--ink-2); font: 600 1.2rem/1 var(--sans); padding: 20px 0 6px; cursor: pointer; }
.dial--mpg button:hover { color: var(--brand-ink); }
.dial--mpg input { width: 2.6em; min-width: 0; flex: 1 1 auto; border: 0; background: none; color: var(--ink); text-align: center; font: 700 1rem var(--mono); padding: 20px 0 6px; -moz-appearance: textfield; appearance: textfield; }
.dial--mpg input::-webkit-inner-spin-button, .dial--mpg input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.dial--mpg .dial__lab { text-align: center; left: 6px; }
.dial--radius select { appearance: none; -webkit-appearance: none; width: 100%; min-width: 92px; height: 100%; border: 0; background-color: transparent; color: var(--ink); font: 700 .98rem var(--mono); padding: 20px 26px 6px 12px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 15px) 33px, calc(100% - 10px) 33px; background-size: 5px 5px; background-repeat: no-repeat; }
.dial--radius select option, .fchip select option { color: var(--ink); background: var(--surface); }
.dial input:focus-visible, .dial select:focus-visible, .dial button:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: -3px; border-radius: 8px; }

@media (max-width: 760px) {
  .cmd .cmd__in { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
  .fuelchips { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 8px; }
  .fchip > span:not(.vh), .fchip select { width: 100%; height: 46px; padding: 0 10px; font-size: .9rem; }
  .fchip select { max-width: none; padding-right: 26px; text-align: center; text-align-last: center; }
  .dials { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr) minmax(0, .9fr); }
  .dial__opt { min-width: 0; }
  .dial__opt span { min-width: 30px; padding: 0 4px; }
  .dial--mpg button { width: 34px; }
  .dial--radius select { min-width: 0; }
}
/* narrow phones: the fill + drive line stacks under the total, clear of Directions */
@media (max-width: 400px) {
  .best .best__sub { font-size: .8rem; white-space: normal; max-width: 9.5em; margin-left: auto; text-align: right; line-height: 1.35; }
}
/* Saved page: the fuel picker sits beside its heading, styled like the other controls */
.favs--page .panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.favs--page .panel__head .eyebrow { margin: 0; }
.favs--page .savedfuel { display: block; min-width: 0; }
.favs--page select { appearance: none; -webkit-appearance: none; height: 44px; min-height: 0; max-width: 100%; padding: 0 34px 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background-color: var(--surface-2); color: var(--ink); font: 600 .92rem var(--sans); cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.favs--page select option { color: var(--ink); background: var(--surface); }
.favs__list a.saved-directions { grid-area: auto; color: var(--link); font-weight: 600; overflow: visible; }
.favs--page .fav-remove { padding-left: 0; color: var(--ink-3); }
@media (max-width: 760px) {
  .favs--page .favs__list li { align-items: baseline; padding: 14px 0; }
  .favs--page .favs__list .price { margin-left: auto; }
  .favs--page .favs__list .fav-remove { order: 2; margin-left: auto; }
  .favs--page .favs__list .saved-directions { order: 1; padding-left: 0; }
}
@media (max-width: 760px) {
  .favs--page .favs__list .muted { flex: 1 1 auto; }
  .favs--page .favs__list .saved-directions { flex: 1 0 40%; }
  .favs--page .favs__list .fav-remove { padding-right: 0; }
}

/* ==== tank levels, saved places, install prompt (16 Nov 2026) ==== */
.dial--levels .dial__opt span { font-family: var(--sans); font-size: 1rem; }
.placesave { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 0; }
.placesave .chip, .installbar .chip { cursor: pointer; font: 600 .88rem var(--sans); }
.hero__mine .chip--mine { border-color: var(--brand); color: var(--brand-ink); font-weight: 700; }
.installbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0 0; padding: 10px 14px; border: 1px dashed var(--line-2); border-radius: 12px; font-size: .9rem; color: var(--ink-2); }
.installbar__go { background: var(--brand); border-color: var(--brand); color: var(--on-fill); }
.cardialog__form input[type="text"] { font: inherit; }
/* car dialog: fields never push the dialog wider than the phone */
.cardialog__form, .cardialog__form > * { min-width: 0; }
.cardialog__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; }
.cardialog input, .cardialog select { width: 100%; min-width: 0; box-sizing: border-box; }
.cardialog select { font-family: var(--sans); font-weight: 600; }
.cardialog__form input[type="text"] { font: 600 1rem var(--sans); }
@media (max-width: 420px) { .cardialog__forget { margin-left: 0; flex-basis: 100%; text-align: left; padding: 6px 0; } }

/* search by forecourt or brand name */
.matches { list-style: none; margin: 20px 0 32px; padding: 0; display: grid; gap: 10px; }
.match { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.match__main { display: grid; gap: 2px; min-width: 0; }
.match__name { font-weight: 700; color: var(--ink); text-decoration: none; }
.match__name:hover { text-decoration: underline; }
.match__prices { display: grid; gap: 4px; justify-items: end; font-size: .9rem; white-space: nowrap; }
.match__prices i { font-style: normal; }
@media (max-width: 560px) { .match { grid-template-columns: auto minmax(0, 1fr); } .match__prices { grid-column: 2; grid-auto-flow: column; justify-content: start; gap: 14px; } }

/* phones, map view: the map fills the screen under the bars and the chosen forecourt sits over it */
.mapcard { display: none; }
@media (max-width: 760px) {
  .results--map .mapcol { position: relative; }
  .results--map .map { height: calc(100dvh - 232px); min-height: 300px; }
  .results--map .mapnote { display: none; }
  .results--map .mapcard:not([hidden]) { display: flex; align-items: center; gap: 12px; position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 500; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
  .results--map .leaflet-bottom { bottom: 0; }
  .mapcard__main { display: grid; gap: 2px; min-width: 0; flex: 1; }
  .mapcard__name { font-weight: 700; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mapcard__sub { font: 600 .84rem var(--mono); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mapcard__go { flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 11px; background: var(--brand); color: var(--on-fill); font-weight: 700; text-decoration: none; }
  .results--map .leaflet-control-attribution { font-size: 9px; margin-bottom: 0; }
}

/* car dialog: find my car */
.carfind { border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; background: var(--surface-2); }
.carfind > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font: 600 .9rem var(--sans); color: var(--link); }
.carfind[open] { padding-bottom: 12px; }
.carfind__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 8px; }
.carfind__wide { grid-column: 1 / -1; }
.carfind select { background: var(--surface); }
.cardialog [hidden] { display: none !important; }
.cardialog__row:has(> label[hidden]) { grid-template-columns: minmax(0, 1fr); }

/* ==== route search ==== */
.routeform { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 16px; max-width: 900px; align-items: end; }
.routeform label { display: grid; gap: 5px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); min-width: 0; }
.routeform input, .routeform select { height: 46px; box-sizing: border-box; width: 100%; min-width: 0; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); font: 600 1rem var(--sans); text-transform: none; letter-spacing: 0; }
.routeform__from, .routeform__to { grid-column: span 3; }
.routeform__go { grid-column: 1 / -1; height: 48px; border-radius: 12px; }
.routeform label:nth-of-type(3) { grid-column: span 2; }
.routeform label:nth-of-type(4), .routeform label:nth-of-type(5) { grid-column: span 1; }
.routeform label:nth-of-type(6) { grid-column: span 2; }
.routesum { margin: 18px 0 4px; color: var(--ink-2); font-size: .95rem; }
.routeline { stroke: var(--brand); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; fill: none; opacity: .85; }
@media (max-width: 760px) {
  .routeform { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .routeform__from, .routeform__to, .routeform label:nth-of-type(3), .routeform label:nth-of-type(6) { grid-column: 1 / -1; }
  .routeform label:nth-of-type(4), .routeform label:nth-of-type(5) { grid-column: span 2; }
}

/* car dialog: Apply and Cancel stay at the bottom of the screen while the fields scroll */
.cardialog { overflow: auto; max-height: calc(100dvh - 24px); overscroll-behavior: contain; }
.cardialog__form { gap: 10px; padding-bottom: 0; }
.cardialog__actions { position: sticky; bottom: 0; z-index: 2; margin: 4px -22px 0; padding: 12px 22px calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--totem); border-top: 1px solid var(--line); }
.cardialog__actions .btn { min-height: 44px; }
.cardialog h2 { font-size: 1.15rem; }
@media (max-width: 420px) { .cardialog__form { padding: 16px 16px 0; } .cardialog__actions { margin: 4px -16px 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); } }

/* the hidden attribute must win over display:flex on these rows */
.hero__try[hidden], .installbar[hidden], .placesave[hidden] { display: none; }
