/* aqoFUEL Test 2: map-first Find fuel. Every colour, size and spacing value comes from these tokens. */
:root {
  --aqo: #898A8E; /* the logo's grey "aqo" */
  --brand: #073B91; --brand-hover: #052E73; --cheapest: var(--brand); --down: #00733F; /* green only for a price fall */
  --text: #172033; --text-2: #667085; --charcoal: #2B2F36; --bg: #FFFFFF; --surface: #F5F7FA; --line: #D8DEE7;
  /* Price tiers: 1 cheapest (brand-blue fill); 2–4 white pills, smaller and greyer (text, then a lighter border) as the
     price rises. */
  --t2: var(--brand); --t2-line: #A9BCDD; --t2-bg: #DCEBFF; /* within +2p: brand-blue figures on pale blue */
  --t3-line: #C9D9EF; --t3-bg: #F0F5FC; /* 2p to 4p more: brand-blue figures on a very pale blue */
  --t4-line: #C9D3E2; --t4-bg: #EEF1F6; /* 4p to 6p more: between the very pale blue and the soft grey, the +4p size */
  --t5: #858D9C; --t5-line: #C9CED6; --t5-bg: rgba(235, 238, 242, .85); /* over 6p more: brand-blue figures on soft grey, no shadow (--t5: the 7d view's neutral grey) */
  --x: #667085; --x-line: #98A2B3; --x-bg: #F2F4F7; /* excluded from your comparison (anomaly): grey, dashed edge */
  --warn: #F79009; /* the possible-anomaly triangle */
  --focus: #2E6BE6;
  --radius: 14px; --pill: 999px;
  --gap: 8px; --pad: 12px;
  --shadow: 0 2px 10px rgba(16, 24, 40, .12); --shadow-up: 0 -4px 16px rgba(16, 24, 40, .12);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --tap: 40px;
  /* The phone panel's one height (count, five filters, price range, three tiles), above the safe area. It never
     changes; the map takes what's left. */
  --panel-h: 200px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { font: 15px/1.4 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

.app { height: 100dvh; display: flex; flex-direction: column; }
/* Very short phone screens (landscape, or browser bars showing): the header (about 190px), the fixed panel (200px)
   and a usable map need about 520px together, so below that the page scrolls rather than squeezing the map to
   nothing or overlapping the panel. */
@media (max-width: 899px) { .app { min-height: 520px; } body:not(.fc-body) { overflow-y: auto; } }

/* Header: logo and menu, search, the control row. */
.top { position: relative; z-index: 20; background: var(--bg); padding: calc(8px + env(safe-area-inset-top, 0px)) var(--pad) 10px; box-shadow: 0 1px 0 var(--line); }
.brandbar { display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--brand); }
/* Logo (no icon): "aqo" in grey and "FUEL" in the brand blue, both bold, with "A question of fuel" in a lighter grey
   below, left-aligned under the wordmark. */
/* The logo's size is set on .logo-text; the strapline is sized and spaced in proportion (em), then justified, so it
   always runs the full width of "aqoFUEL". */
.logo-text { display: inline-grid; line-height: 1; font-size: 29px; }
/* Heavy, as the brand artwork: the heaviest weight, thickened a touch further with a thin stroke in each part's own
   colour (system fonts top out at 900, which still reads thin beside the artwork). */
.logo .word { font-size: 1em; font-weight: 900; letter-spacing: -.035em; }
.logo .word .aqo, .logo .word b { -webkit-text-stroke: .035em currentColor; paint-order: stroke fill; }
.logo .word .aqo { color: var(--aqo); }
.logo .word b { font-weight: 900; color: var(--brand); }
.logo .strap { font-size: .3966em; font-weight: 600; color: #9A9B9F; margin-top: 4px; padding-left: 1px; letter-spacing: .07em; white-space: nowrap; text-align: justify; text-align-last: justify; }
/* The menu: a drawer from the right over a dimmed page (the open summary is the backdrop, so tapping it closes). */
.menu { position: relative; }
.menu summary { list-style: none; width: var(--tap); height: var(--tap); display: grid; place-items: center; border-radius: 10px; cursor: pointer; color: var(--text); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary::before { content: ""; position: fixed; inset: 0; z-index: 70; background: rgba(16, 24, 40, .35); cursor: default; }
.drawer { position: fixed; z-index: 71; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); display: flex; flex-direction: column; background: var(--bg); border-radius: 18px 0 0 18px; box-shadow: -8px 0 32px rgba(16, 24, 40, .18); padding: calc(10px + env(safe-area-inset-top, 0px)) 0 calc(12px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.drawer-head .logo { pointer-events: none; }
.drawer-x { width: var(--tap); height: var(--tap); display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--text); cursor: pointer; }
.drawer-x:hover { background: var(--surface); }
.drawer nav { display: grid; padding: 6px 12px 0; }
.drawer nav .mi { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 8px 8px; border: 0; border-bottom: 1px solid #EEF1F5; border-radius: 0; background: none; color: var(--text); font: 600 16px var(--font); text-decoration: none; text-align: left; cursor: pointer; }
.drawer nav .mi > span:not(.mi-ic) { flex: 1; min-width: 0; }
.drawer nav .mi > svg { flex: none; color: var(--text-2); }
.drawer nav .mi:hover { background: var(--surface); }
.drawer nav .mi[aria-current="page"] { color: var(--brand); }
.drawer nav .mi-ic { flex: none; width: 22px; height: 22px; display: grid; place-items: center; color: var(--charcoal); }
.drawer nav .mi-ic svg { width: 22px; height: 22px; }
/* Every item: a fixed 20px icon column, then the label, so all labels start at the same place (12 + 20 + 12 px). */
.menu-reset { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--line); }
.drawer nav .menu-reset .mi { align-items: flex-start; border-bottom: 0; }
.menu-reset small { display: block; margin-top: 3px; font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--text-2); }

.search { display: flex; gap: var(--gap); margin-top: 8px; }
.field { flex: 1; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text-2); min-width: 0; }
.field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(7, 59, 145, .15); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 16px; color: var(--text); }
.field input::placeholder { color: var(--text-2); }
.clear { border: 0; background: none; width: 32px; height: 32px; display: grid; place-items: center; color: var(--text-2); cursor: pointer; border-radius: 8px; }
/* "My location", left of the search. */
.locate { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--brand); font-weight: 700; font-size: 14px; white-space: nowrap; cursor: pointer; }
.locate:hover { background: var(--surface); }
.locate[aria-busy="true"] { opacity: .6; }
.note { margin: 6px 2px 0; font-size: 13px; color: var(--text-2); }
/* Recent searches (as on the first aqoFUEL). */
.recent { display: flex; align-items: center; gap: 6px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.recent::-webkit-scrollbar { display: none; }
.recent-label { flex: none; font-size: 13px; color: var(--text-2); }
.recent-chip { flex: none; display: inline-flex; align-items: center; height: 30px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface); font-size: 13px; font-weight: 650; }
.recent-chip a { padding: 0 4px 0 11px; color: var(--text); text-decoration: none; line-height: 30px; }
.recent-chip button { border: 0; background: none; width: 26px; height: 30px; color: var(--text-2); cursor: pointer; font-size: 15px; border-radius: 0 999px 999px 0; }
.recent-chip button:hover { color: var(--text); }
/* Phones: the chips, as before. Wide screens: a Recent dropdown beside the search instead (the media query below). */
.recent-chips { display: contents; }
.recent-dd { display: none; position: relative; }
.recent-btn { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--brand); font: 700 14px var(--font); white-space: nowrap; cursor: pointer; }
.recent-btn:hover, .recent-btn[aria-expanded="true"] { background: var(--surface); }
.recent-btn .chev { opacity: .75; }
.recent-list { position: absolute; left: 0; top: calc(100% + 4px); z-index: 40; min-width: 240px; max-width: 320px; margin: 0; padding: 4px; list-style: none; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.recent-list li { display: flex; align-items: center; border-radius: 8px; }
.recent-list li:hover { background: #F2F6FC; }
.recent-list a { flex: 1; min-width: 0; padding: 9px 10px; color: var(--brand); font-size: 15px; font-weight: 700; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-list button { flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--text-2); font-size: 16px; cursor: pointer; }
.recent-list button:hover { color: var(--text); background: var(--surface); }

/* Fuel | Distance | Options: one row on phones, Fuel at the left edge and Options at the right; the fuel's name gives
   way (an ellipsis) before anything wraps or scrolls. */
.chips { display: flex; justify-content: space-between; gap: 6px; margin-top: 8px; }
.chips .chip.primary { flex: 0 1 auto; min-width: 0; }
.chips .chip.primary > span { overflow: hidden; text-overflow: ellipsis; }
.chip { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--bg); color: var(--text); font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.chip:hover { background: var(--surface); }
.chip.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.primary:hover { background: var(--brand-hover); }
.chip .chev { opacity: .75; }
.chip select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; appearance: none; -webkit-appearance: none; border: 0; }
.chip:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 360px) { .chips { gap: 4px; } .chip { padding: 0 9px; gap: 4px; font-size: 13px; } .chip.fl-chip svg, .chips .chip-ic { width: 15px; height: 15px; } }

/* Phones: three regions, the header (its own height), the map (whatever's left) and the panel (--panel-h, fixed).
   Wide screens: the map fills the stage and the panel floats over its left side (below). */
.stage { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.map-area { position: relative; flex: 1; min-height: 0; }
.map { position: absolute; inset: 0; z-index: 0; isolation: isolate; background: #EEF1F5; } /* its own layer: marker z-indexes stay under the panel */
.maplibregl-ctrl-group { border-radius: 12px !important; box-shadow: var(--shadow) !important; overflow: hidden; }
.maplibregl-ctrl-group button { width: 38px !important; height: 38px !important; }
.maplibregl-ctrl-attrib { font-size: 10px; background: rgba(255, 255, 255, .85) !important; }
/* The map credit line's link to Data & Credits (About): never split over two lines. */
.credits-link { white-space: nowrap; }
@media (max-width: 599.98px) { .credits-link .cl-long { display: none; } }
/* The map hint: a quiet label centred above the credits; never catches a touch or click. */
.map-hint { position: absolute; z-index: 5; left: 50%; bottom: calc(var(--attrib-h, 18px) + 8px); transform: translateX(-50%); margin: 0; padding: 5px 12px; border-radius: var(--pill); background: rgba(255, 255, 255, .85); color: var(--charcoal); font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none; }
.map-hint[hidden] { display: none; }
.map-area:has(.over-notes .excl, .over-notes .wide-label, .over-notes .wide-card) .map-hint { display: none; } /* an anomaly chip or the wider-area label over the map (phones) takes its place (the excluded chip is under Price | 7d change since V249) */
.maplibregl-ctrl-scale { border-color: var(--text-2) !important; color: var(--text-2) !important; background: rgba(255, 255, 255, .8) !important; font-size: 10px; }
.recentre svg { display: block; margin: auto; color: var(--text); }

/* Price markers: a whole-pence figure, a visible decimal point and a smaller raised tenths digit (as on forecourt
   signs). Tier 1 (cheapest) a brand-blue pill with white figures; tiers 2–4 white pills whose figures and border lighten
   and shrink a little as the price rises (never looking disabled); selected: brand blue with a white ring and halo, on top. Every marker keeps a
   40px tap area. */
/* No position on .mk itself: MapLibre places markers with position:absolute (the sheet's pills get relative below). */
.mk { display: inline-flex; align-items: flex-start; padding: 4px 8px; border-radius: var(--pill); background: var(--bg); border: 1.5px solid currentColor; font: 700 15px/1 var(--font); font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; box-shadow: 0 1px 3px rgba(16, 24, 40, .18); }
/* V326: map markers only (MapLibre's .maplibregl-marker). A pill in a card, list or legend is not positioned, so the
   same area grew to its card's width and covered the card's buttons (on phones the forecourt card's x hit the badge). */
.maplibregl-marker.mk::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, var(--tap)); height: max(100%, var(--tap)); transform: translate(-50%, -50%); }
/* Whole pence with the point on the baseline; the tenths digit smaller, its top level with the top of the digits. */
/* Every price (shared.js aqoPrice / page.ts priceHtml): whole pence, a smaller ".", the tenth smaller and raised so
   its top is level with the whole pence (pushed down by the smaller space above its digit), then "p" on the line. */
.pr { display: inline-flex; align-items: baseline; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pr .w { line-height: 1; }
.pr .dp { font-size: .8em; }
.pr sup { align-self: flex-start; font-size: .7em; line-height: 1; vertical-align: baseline; margin: .1em 0 0 .5px; }
.pr .pu { margin-left: 1px; }
/* Every price is brand blue, except where its background is: map markers and list pills keep their own colours
   (white on the blue cheapest and selected ones), the chosen grade and the chart tooltip are white. */
.pr { color: var(--brand); }
.mk .pr, .grade[aria-checked="true"] .pr, .tip .pr { color: inherit; }
.mk.t1 { background: var(--cheapest); border-color: var(--cheapest); color: #fff; font-size: 16px; padding: 4px 10px; box-shadow: 0 2px 6px rgba(7, 59, 145, .35); }
.mk.t2 { color: var(--t2); border-color: var(--t2-line); background: var(--t2-bg); font-size: 14px; padding: 4px 8px; }
.mk.t3 { color: var(--brand); border-color: var(--t3-line); background: var(--t3-bg); font-size: 13px; padding: 3px 7px; border-width: 1px; }
.mk.t4 { color: var(--brand); border-color: var(--t4-line); background: var(--t4-bg); font-size: 13px; padding: 3px 7px; border-width: 1px; }
.mk.t5 { color: var(--brand); border-color: var(--t5-line); background: var(--t5-bg); font-size: 12px; padding: 3px 6px; border-width: 1px; box-shadow: none; }
/* Excluded from your comparison (a possible anomaly you set aside): grey with a dashed edge, the price still shown. */
.mk.x { color: var(--x); border: 1px dashed var(--x-line); background: var(--x-bg); font-size: 13px; padding: 3px 7px; box-shadow: none; }
/* A possible price anomaly: a small amber triangle on the marker's top right corner (the marker itself unchanged). */
.mk .warn { position: absolute; top: -12px; right: -10px; width: 21px; height: 20px; pointer-events: none; filter: drop-shadow(0 1px 1px rgba(16, 24, 40, .3)); }
.mk .warn svg { display: block; width: 100%; height: 100%; }
.legend .mk .warn, .hero .mk .warn, .row .mk .warn { top: -9px; right: -8px; width: 16px; height: 15px; }
/* Options' highlights (supermarket, motorway services): a small blue icon on a white disc, where the anomaly triangle
   goes (a marker never has both: the triangle wins). */
.mk .hl { position: absolute; top: -11px; right: -9px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 50%; background: #fff; color: var(--brand); box-shadow: 0 0 0 1px rgba(7, 59, 145, .25), 0 1px 2px rgba(16, 24, 40, .25); pointer-events: none; }
.mk .hl svg { display: block; width: 12px; height: 12px; }
/* A marker whose list row the pointer is over (wide screens): lifted, with a blue ring. */
.mk.hov { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand); }
.mk .hl.mw { background: var(--brand); color: #fff; box-shadow: 0 0 0 1px #fff, 0 1px 2px rgba(16, 24, 40, .3); } /* motorway services: inverted */
.legend .mk .hl, .hero .mk .hl, .row .mk .hl { top: -9px; right: -8px; width: 16px; height: 16px; }
.legend .mk .hl svg, .hero .mk .hl svg, .row .mk .hl svg { width: 10px; height: 10px; }
/* No current price: a small solid grey dot. Above the price filter: a small white circle with a brand-blue edge. */
.mk.none { width: 11px; height: 11px; padding: 0; border: 2px solid #fff; background: #98A2B3; box-shadow: 0 0 0 1px rgba(16, 24, 40, .15); }
.mk.out { width: 12px; height: 12px; padding: 0; border: 2px solid var(--brand); background: #fff; box-shadow: none; }
/* Selected (cheapest or not): solid blue with a white ring and a blue halo, so it stands out from a cheapest pill. */
.mk.sel { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 7px rgba(7, 59, 145, .38), 0 4px 12px rgba(7, 59, 145, .45); }
/* Selected but unchanged in 7d change: still the hollow circle, with the selected ring around it. */
.mk.out.ring { width: 14px; height: 14px; border-color: var(--brand); box-shadow: 0 0 0 3px #fff, 0 0 0 7px rgba(7, 59, 145, .38); }
/* On the forecourt card the price is already the chosen one (and its grade outlined below): just a thin ring. */
.hero .mk.sel { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(7, 59, 145, .45); }
/* 7d Δ: the change in place of the price, in the same pill; green down, red up, grey none / not known. On a blue pill
   (cheapest, selected) it sits in a small white chip so the colour stays readable. */
.mk .dl { font-size: .9em; font-variant-numeric: tabular-nums; }
.mk .dl.down { color: var(--down); } .mk .dl.up { color: #B42318; } .mk .dl.zero, .mk .dl.na { color: var(--charcoal); }
.mk.t3 .dl.zero, .mk.t3 .dl.na, .mk.t4 .dl.zero, .mk.t4 .dl.na, .mk.t5 .dl.zero, .mk.t5 .dl.na, .mk.x .dl { color: var(--t5); }
.mk.t1 .dl, .mk.sel .dl { background: #fff; border-radius: var(--pill); padding: 1px 5px; margin: -1px -4px; }
.mode-switch { display: inline-flex; flex: none; margin: 12px 0 0 12px !important; padding: 2px; border-radius: 12px; background: var(--bg); box-shadow: var(--shadow); }
.mode-switch button { min-width: 52px; height: 32px; padding: 0 10px; border: 0; border-radius: 10px; background: none; font: 700 13px var(--font); color: var(--text); cursor: pointer; white-space: nowrap; }
/* Above MapLibre's own button hover (which a phone keeps after a tap), so the chosen one always stays blue. */
.maplibregl-ctrl .mode-switch button[aria-checked="true"]:not(:disabled) { background: var(--brand); color: #fff; }
.mk:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.here { width: 18px; height: 18px; border-radius: 50%; background: #2E6BE6; border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(46, 107, 230, .18), 0 1px 3px rgba(0, 0, 0, .3); }
.pin { width: 14px; height: 14px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }

/* The panel (phones): one fixed height below the map, never growing, shrinking, moving or scrolling. Its content is
   laid out to fit (the tiles at the foot); anything more goes over the map (.over) or into the list view. */
.sheet { position: relative; z-index: 10; flex: none; height: calc(var(--panel-h) + var(--sa-b)); padding-bottom: var(--sa-b); background: var(--bg); border-radius: 18px 18px 0 0; box-shadow: var(--shadow-up); overflow: hidden; }
.sheet-body { height: 100%; overflow: hidden; display: flex; flex-direction: column; padding: 8px var(--pad) 8px; }
.sheet-body .range-foot { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
.sheet-body .range-foot .diff:last-child { overflow: hidden; text-overflow: ellipsis; }
/* The three tiles: List Sites, Tools, Explore Pricing. Quieter than the filters: pale, thin edge, blue icon and label. */
/* Icon to the left of the label, 42px tall; a long label ("Explore Pricing") may take two short lines. */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; padding-top: 6px; }
.tile { display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px; min-width: 0; height: 42px; padding: 0 6px; border: 1px solid #C9D9F0; border-radius: 12px; background: #EDF3FC; color: var(--brand); font: 700 13px/1.1 var(--font); text-decoration: none; text-align: left; cursor: pointer; }
.tile svg { flex: none; width: 20px; height: 20px; }
.tile span { min-width: 0; overflow: hidden; }
.tile:hover { background: #E1EBF9; }
.tile:disabled { opacity: .45; cursor: default; }
@media (max-width: 360px) { .tiles { gap: 6px; } .tile { gap: 4px; padding: 0 4px; font-size: 12px; } .tile svg { width: 18px; height: 18px; } }
/* Over the map (phones): the key, the map-limit note, excluded prices and an anomaly off the map, stacked just above
   the credits; or a forecourt's card, from the bottom of the map. They never change the panel. */
.over { position: absolute; z-index: 8; left: 8px; right: 8px; bottom: calc(var(--attrib-h, 18px) + 6px); max-height: calc(100% - 64px); display: flex; flex-direction: column; pointer-events: none; }
.over:empty { display: none; }
.over > * { pointer-events: auto; }
.over-notes { display: grid; gap: 6px; overflow-y: auto; overscroll-behavior: contain; }
.over-notes > * { margin: 0 !important; box-shadow: var(--shadow); }
.over-notes .legend, .over-notes .excl { background: var(--bg); }
/* A forecourt's card (phones): up from the bottom of the screen, over the panel (which stays as it is underneath),
   leaving the top of the map and its Price | 7d change switch in view. */
.card-over { position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; max-height: calc(100% - 64px); display: flex; flex-direction: column; }
.card-over:empty { display: none; }
.over-card { overflow-y: auto; overscroll-behavior: contain; background: var(--bg); border-radius: 18px 18px 0 0; box-shadow: 0 -6px 24px rgba(16, 24, 40, .18); padding: 12px var(--pad) calc(var(--pad) + var(--sa-b)); }
/* List Sites: its own view. Phones: the whole screen, a back button to the map; wide screens: the panel's place. */
.list-view { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--bg); padding-top: env(safe-area-inset-top, 0px); }
.lv-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px var(--pad); border-bottom: 1px solid var(--line); }
.lv-head h2 { margin: 0; font-size: 17px; }
.lv-sub { margin: 2px 0 0; font-size: 13px; color: var(--text-2); }
.lv-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px var(--pad) calc(var(--pad) + var(--sa-b)); }
.lv-body .list { margin-top: 0; }
.s-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.s-title { flex: 1; min-width: 0; margin: 0; font-size: 17px; font-weight: 400; color: var(--text); }
.s-title b { font-weight: 750; color: var(--brand); white-space: nowrap; }
.s-head .info { flex: none; }
.info { width: 34px; height: 34px; border: 0; background: none; color: var(--text-2); border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.info[aria-expanded="true"] { background: var(--surface); color: var(--brand); }
/* The map's limit (at most 200 forecourts): said plainly under the heading when it applies. */
.limit-note { margin: 2px 0 8px; padding: 8px 10px; border-radius: 10px; background: #FFF6E5; color: #6B4500; font-size: 13px; line-height: 1.35; }
/* Prices excluded from your comparison, and a possible anomaly off the map: one small line under the price range. */
.excl { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--surface); font-size: 13px; color: var(--text-2); }
.excl p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.excl .warn, .anomaly h3 .warn { position: static; display: inline-block; width: 18px; height: 17px; flex: none; }
.excl .warn svg, .anomaly h3 .warn svg { display: block; width: 100%; height: 100%; }
/* Over the map (phones): a small one-line chip at the left, as wide as its words, so the map stays in view. */
.over-notes .excl.mini { justify-self: start; max-width: 100%; padding: 3px 4px 3px 8px; border-radius: 999px; font-size: 12.5px; }
.excl.mini p { flex-wrap: nowrap; gap: 5px; }
.excl.mini .warn { width: 15px; height: 14px; }
.excl.mini .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.excl.mini .linkish { flex: none; padding: 2px 6px; }
.excl.mini:has(ul) { border-radius: 12px; }
.excl ul { list-style: none; margin: 6px 0 4px; padding: 0; display: grid; gap: 4px; }
.excl li { display: flex; align-items: baseline; gap: 6px; }
.excl .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.linkish { border: 0; background: none; padding: 4px 2px; color: var(--brand); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
/* The forecourt card's anomaly section: amber edge for a possible anomaly, grey once excluded. */
.anomaly { margin: 12px 0; padding: 12px; border: 1px solid #F5C77E; border-left: 4px solid var(--warn); border-radius: 12px; background: #FFFAF0; font-size: 14px; }
.anomaly.is-x { border-color: var(--x-line); border-left-color: var(--x); background: var(--x-bg); }
.anomaly h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 15px; }
.anomaly p { margin: 0 0 8px; }
.anomaly dl { display: grid; gap: 3px; margin: 0 0 8px; }
.anomaly dl div { display: flex; justify-content: space-between; gap: 12px; }
.anomaly dt { color: var(--text-2); }
.anomaly dd { margin: 0; font-weight: 650; text-align: right; }
.anomaly dd .sub { display: block; font-weight: 400; font-size: 12px; color: var(--text-2); }
.anomaly .why { font-size: 13px; color: var(--text-2); }
.anomaly .btn { width: 100%; }
.anomaly .small { margin: 8px 0 0; font-size: 12px; color: var(--text-2); }
.legend { margin: 6px 0 8px; padding: 10px 12px; background: var(--surface); border-radius: 12px; font-size: 13px; color: var(--text-2); }
.legend p { margin: 0 0 8px; }
.legend ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.legend li { display: flex; align-items: center; gap: 10px; }
.legend .mk { pointer-events: none; font-size: 13px; }
.legend .mk, .row .mk, .hero .mk { position: relative; }

.filters { display: grid; grid-template-columns: 1.35fr repeat(5, 1fr); /* "Cheapest" is the one long label */ gap: 5px; margin: 6px 0; }
/* The filters: white with bold aqoFUEL blue text and a soft blue-grey outline (like Distance and Options); the chosen one filled brand blue. */
.filters button { height: 36px; min-width: 0; padding: 0 2px; border: 1.5px solid #C9D9F0; border-radius: var(--pill); background: var(--bg); color: var(--brand); font-weight: 700; font-size: 14px; cursor: pointer; white-space: nowrap; }
/* Five on one row on a phone: a little smaller so "Cheapest" fits; still 36px tall. */
@media (max-width: 420px) { .filters button { font-size: 13px; } }
.filters button:hover { background: #EDF3FC; }
.filters button[aria-checked="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
/* A filter that would add no forecourts: greyed out and inactive. */
.filters button:disabled { border-color: var(--line); background: var(--surface); color: #A3AAB6; cursor: default; }

.range { display: grid; gap: 1px; }
/* The range and its grade on one row; the grade (and ", all brands") wraps to a second small line if it must. */
.range-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.range-row .val { flex: none; white-space: nowrap; }
.range .grade-of { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; line-height: 1.2; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.range .val { font-size: 22px; font-weight: 800; color: var(--brand); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.range .diff { font-size: 13px; color: var(--text-2); }
.range .range-foot .diff:first-child { color: var(--brand); font-weight: 650; }
.range-foot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.range-foot .ico { vertical-align: -2px; }

.empty { padding: 4px 0 8px; }
.empty h2 { margin: 0 0 4px; font-size: 17px; }
.empty p { margin: 0 0 10px; color: var(--text-2); }
.empty.start p { margin: 2px 0 6px; font-size: 15px; line-height: 1.4; }
.empty.start b { color: var(--brand); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--bg); color: var(--text); font-weight: 700; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-hover); }

/* List (the expanded sheet): the forecourts shown, cheapest first. */
.list { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--line); }
.list li + li { border-top: 1px solid var(--line); }
.row { width: 100%; display: grid; grid-template-columns: 66px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 2px; border: 0; background: none; text-align: left; cursor: pointer; }
.row:hover { background: var(--surface); }
.row .mk { justify-self: start; pointer-events: none; }
.row .nm { font-weight: 650; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sub { display: block; font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .sub b { font-weight: 700; color: var(--brand); }
.row .dist { font-size: 13px; color: var(--text-2); white-space: nowrap; }

/* A forecourt's details. */
.detail-head { display: flex; align-items: flex-start; gap: 8px; }
.back { flex: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); display: grid; place-items: center; cursor: pointer; color: var(--text); }
.detail-head h2 { margin: 2px 0 2px; font-size: 18px; line-height: 1.2; }
.detail-head .where { margin: 0; font-size: 13px; color: var(--text-2); }
.detail-head .where b { color: var(--brand); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: var(--pill); background: var(--surface); font-size: 13px; font-weight: 650; color: var(--text); }
.tag.cheap { background: #E8EEF8; color: var(--brand); }
.hero { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; }
.hero .mk { font-size: 24px; padding: 6px 14px; pointer-events: none; }
.hero .fuel { font-weight: 700; }
.hero-text { display: grid; gap: 1px; }
.hero .when { display: block; font-size: 13px; color: var(--text-2); }
.hero .up, .hero .down { font-size: 13px; }
.fuels { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 12px; }
.fuels div { padding: 8px 10px; border-radius: 10px; background: var(--surface); }
.fuels .k { display: block; font-size: 12px; color: var(--text-2); font-weight: 600; }
.fuels .v { font-weight: 750; font-variant-numeric: tabular-nums; }
.fuels .v.na { color: var(--text-2); font-weight: 600; }
.fuels .chosen { outline: 2px solid var(--brand); outline-offset: -2px; background: var(--bg); }
.go { display: flex; gap: 8px; }
.go .btn { flex: 1; }
.up { color: #B42318; font-weight: 700; } .down { color: var(--down); font-weight: 700; }

/* Options (the sliders button): forecourts without a price. */
/* Map preferences (from the menu). */
.prefs { border: 0; border-radius: 16px; padding: 18px; width: min(360px, calc(100vw - 32px)); box-shadow: var(--shadow); color: var(--text); }
.prefs::backdrop { background: rgba(16, 24, 40, .35); }
.prefs h2 { margin: 0 0 12px; font-size: 18px; }
.pref-row { display: grid; gap: 6px; font-weight: 650; }
.pref-row select { height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 16px; }
.pref-note { margin: 6px 0 14px; font-size: 13px; color: var(--text-2); }
.pref-check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.pref-check input { width: 20px; height: 20px; accent-color: var(--brand); }
.pref-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.reset .pref-note { margin: 0; }
/* Suspicious price detection: two short sentences with a select in each. */
.an-rows { display: grid; gap: 6px; margin: 8px 0 0; }
.an-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.an-row select { height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 15px; }
.an-row select:disabled { opacity: .5; }
/* Map marker style: one option per scheme in the style file (marker-styles.js), each with the four price levels in its
   own look; the chosen one outlined in brand blue. Problems with the file are listed under the options. */
.ms { margin: 16px 0 0; padding: 14px 0 0; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.ms legend { padding: 0; font-weight: 650; }
.ms-list { display: grid; gap: 6px; margin-top: 8px; }
.ms-opt { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.ms-opt:has(input:checked) { border-color: var(--brand); background: #F5F9FF; }
.ms-opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.ms-text { display: grid; min-width: 0; }
.ms-name { font-size: 14px; font-weight: 650; }
.ms-desc { font-size: 12px; color: var(--text-2); }
/* The five price levels on one row, across the option's full width, a little smaller than on the map, each named
   under its pill: Cheapest, +2p, +4p, +6p, 6p+ (more than 6p above the cheapest). */
.ms-prev { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: 2px; padding: 6px 0 0; }
.ms-cell { display: grid; justify-items: center; gap: 3px; min-width: 0; }
.ms-prev .mk { position: relative; pointer-events: none; cursor: default; zoom: .82; }
.ms-lbl { font-size: 11px; line-height: 1; color: var(--text-2); white-space: nowrap; }
.ms-status { margin: 8px 0 0; font-size: 12px; color: var(--text-2); }
.ms-status:empty { display: none; }
.ms-status.bad { color: #B42318; }
.ms-status ul { margin: 4px 0 0; padding-left: 18px; }
.ms-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ms-actions .btn { height: 36px; padding: 0 14px; font-size: 13px; }
.foot { margin: 12px 0 0; font-size: 11px; color: var(--text-2); }

/* Wide screens: the same app; the sheet becomes a floating panel over the map's left side. */
@media (min-width: 900px) {
  /* Logo and menu | My location and the search | the Recent dropdown. The middle column has a fixed width, so the
     search box never changes size with the fuel's or distance's label, and the rows under it span the same width. */
  .top { display: grid; grid-template-columns: auto 410px auto; justify-content: start; align-items: center; gap: 16px; padding: 10px 20px; }
  .recent { min-width: 0; margin: 0; overflow: visible; }
  .recent.no-others { display: none; }
  .recent-chips { display: none; }
  .recent-dd { display: block; }
  .brandbar { gap: 16px; }
  .search { margin: 0; }
  .note { grid-column: 2; margin: 0; }
  /* Fuel, Distance and Options sit under the search they belong to, as on phones: Fuel under My location's left
     edge and Options under the search box's right edge. */
  .chips { grid-column: 2; margin: 0; }
  .menu { order: 2; }
  .stage { display: block; }
  .map-area { position: absolute; inset: 0; }
  .sheet { position: absolute; left: 16px; top: 16px; width: 380px; height: auto; max-height: calc(100% - 32px); padding-bottom: 0; border-radius: 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
  .sheet-body { height: auto; overflow-y: auto; display: block; padding: 12px var(--pad) var(--pad); }
  .sheet-body .range-foot { flex-wrap: wrap; white-space: normal; }
  .tiles { margin-top: 12px; padding-top: 0; }
  .over, .card-over { display: none; }
  /* The list beside the map: the summary and the list as two cards in the floating column; the list (or an opened
     forecourt) takes the height left, scrolling inside its card, so the summary never scrolls away. */
  .sheet { background: none; box-shadow: none; border-radius: 0; overflow: visible; gap: 12px; }
  .sheet-body { flex: none; max-height: 62%; background: var(--bg); border-radius: 16px; box-shadow: var(--shadow); }
  .sheet.docked { height: calc(100% - 32px); }
  .dock { display: flex; flex-direction: column; flex: 1 1 0; min-height: 150px; background: var(--bg); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
  .dock[hidden] { display: none; }
  .dock.shut { flex: none; min-height: 0; }
  .dock-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px var(--pad); border-bottom: 1px solid var(--line); }
  .dock.shut .dock-head { border-bottom: 0; }
  .dock-title { margin: 0; font-size: 15px; color: var(--brand); }
  .dock-head .linkish { flex: none; font-size: 13px; }
  .dock-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--pad) var(--pad); }
  .dock-body .list { margin-top: 0; border-top: 0; }
  .dock-body > .detail-head:first-child { margin-top: 12px; }
  .dock .row.hov { background: var(--surface); }
  .tiles.two { grid-template-columns: repeat(2, 1fr); }
  .list-view { position: absolute; inset: 16px auto 16px 16px; width: 380px; z-index: 12; border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; padding-top: 0; }
  .map-hint { left: calc(412px + (100% - 412px) / 2); } /* centred in the map beside the floating panel */
}
/* Wide desktops (V283): the map fills the whole window, edge to edge (until then the app sat in a centred 1080px frame
   on a grey page). The panels keep their own fixed widths and the header its compact controls at the left; the extra
   room all goes to the map. Phones and tablets are unchanged. */
@media (max-width: 360px) { .filters button { font-size: 12px; letter-spacing: -.01em; } .logo-text { font-size: 22px; } }

/* Welcome card (first visit, no place yet): floats in the middle of the map; the sheet stays hidden while it shows.
   Closed for the session with ×: the head script adds .welcome-closed before anything is drawn. */
html:not(.welcome-closed) .stage.welcoming .sheet { display: none; }
html.welcome-closed .welcome { display: none; }
.welcome { position: absolute; z-index: 5; left: 50%; top: calc(50% - 10px); transform: translate(-50%, -50%); width: min(380px, calc(100% - 24px)); max-height: calc(100% - 44px); overflow-y: auto; overscroll-behavior: contain; background: var(--bg); border-radius: 18px; box-shadow: 0 8px 28px rgba(16, 24, 40, .18); padding: 18px 16px 12px; text-align: left; }
.welcome-x { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: none; color: var(--text-2); border-radius: 50%; cursor: pointer; }
.welcome-x:hover { background: var(--surface); }
.welcome .eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--text-2); }
.welcome .eyebrow .aqo { color: var(--aqo); letter-spacing: 0; }
.welcome .eyebrow b { color: var(--brand); letter-spacing: 0; }
.welcome h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.15; color: var(--brand); padding-right: 24px; }
.welcome .lede { margin: 0 0 12px; font-size: 14.5px; line-height: 1.4; color: var(--text); }
.welcome h3 { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--charcoal); }
.welcome h3 span { font-weight: 500; color: var(--text-2); }
.w-avgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.w-avg { display: grid; align-content: start; gap: 2px; padding: 9px 10px; border-radius: 12px; background: #EAF0F4; border-left: 4px solid #7297B1; }
.w-avg .k { font-size: 12.5px; font-weight: 700; color: var(--charcoal); }
.w-avg .v { font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.w-avg .v .pu { font-size: 14px; }
.w-avg .v.na { font-size: 14px; color: var(--text-2); }
.w-avg .u { font-size: 11.5px; color: var(--text-2); }
.w-src { margin: 8px 0 12px; font-size: 11.5px; line-height: 1.4; color: var(--text-2); }
.w-go { width: 100%; }
.w-go[aria-busy="true"] { opacity: .75; cursor: progress; }
.w-note { margin: 8px 2px 0; font-size: 13.5px; line-height: 1.35; color: #B42318; text-align: center; }
.w-search { display: block; width: 100%; margin-top: 4px; min-height: 40px; border: 0; background: none; color: var(--brand); font: 600 14px var(--font); cursor: pointer; }
.w-search:hover { text-decoration: underline; }
@media (max-width: 359px) { .w-avg { padding: 8px; } .w-avg .k { font-size: 12px; } .w-avg .v { font-size: 20px; } }
/* Short screens (small phones, browser toolbars showing): tighter, so the whole card and its button fit. */
@media (max-height: 700px) {
  .welcome { padding: 14px 14px 8px; }
  .welcome h2 { font-size: 19px; margin-bottom: 4px; }
  .welcome .lede { font-size: 13.5px; margin-bottom: 8px; }
  .w-avg { padding: 7px 9px; } .w-avg .v { font-size: 19px; } .w-avg .u { display: none; }
  .w-src { margin: 6px 0 8px; font-size: 11px; }
  .w-go { height: 42px; } .w-search { min-height: 34px; margin-top: 2px; }
}

/* The card's link to the forecourt page: a full-width row, icon, label and chevron. */
/* Services & price history: a pale blue secondary action, between the prices and the solid blue directions buttons. */
.svc-link { display: flex; align-items: center; gap: 10px; min-height: 46px; margin: 0 0 12px; padding: 0 12px; border: 1px solid #C9D9F0; border-radius: 12px; background: #EDF3FC; color: var(--brand); font-weight: 700; text-decoration: none; }
.svc-link svg:first-child { color: var(--brand); flex: none; }
.svc-link span { flex: 1; }
.svc-link .chev-r { color: var(--brand); flex: none; }
.svc-link:hover { background: #E1EBF9; }

/* Forecourt page (Services & price history): an ordinary scrolling page under the same header. */
body.fc-body { overflow: auto; height: auto; }
.fc-top { position: sticky; top: 0; }
.fc-page { max-width: 720px; margin: 0 auto; padding: 10px var(--pad) calc(24px + env(safe-area-inset-bottom, 0px)); }
.fc-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--text); text-decoration: none; }
.fc-back:hover .back { background: var(--surface); }
.fc-id h1 { margin: 2px 0 2px; font-size: 22px; line-height: 1.2; }
.fc-id .where { margin: 0; color: var(--text-2); font-size: 14px; }
.fc-id .where b { color: var(--brand); }
.fc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 14px; font-size: 14px; font-weight: 650; }
.grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 18px; }
.grade { display: grid; gap: 2px; padding: 8px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); text-align: center; cursor: pointer; }
.grade .k { font-size: 11.5px; font-weight: 650; color: var(--text-2); line-height: 1.2; }
.grade .v { font-size: 16px; font-variant-numeric: tabular-nums; }
.grade .v.na { font-size: 12px; font-weight: 600; color: var(--text-2); }
.grade[aria-checked="true"] { background: var(--brand); border-color: var(--brand); }
.grade[aria-checked="true"] .k, .grade[aria-checked="true"] .v { color: #fff; }
.ph, .services { border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 18px; }
.ph-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.ph h2, .services h2 { margin: 0; font-size: 18px; }
.ph-fuel { margin: 2px 0 0; font-size: 13.5px; font-weight: 650; color: var(--text-2); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; padding: 2px; background: var(--surface); flex: none; }
.seg button { min-width: 42px; height: 32px; border: 0; border-radius: 8px; background: none; font-size: 13px; font-weight: 700; color: var(--text-2); cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--brand); color: #fff; }
.ph-stats { min-height: 120px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.st { display: grid; gap: 1px; padding: 8px 10px; border-radius: 10px; background: var(--surface); }
.st .k { font-size: 12px; font-weight: 650; color: var(--text-2); }
.st .v { font-size: 18px; font-variant-numeric: tabular-nums; }
.st .sub { font-size: 12px; color: var(--text-2); }
.st.up .v { color: #B42318; } .st.down .v { color: var(--down); } .st.na .v { font-size: 15px; color: var(--text-2); }
.ph-chart { position: relative; min-height: 220px; margin-top: 12px; }
.chart { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.chart .grid { stroke: #E4E8EE; stroke-width: 1; }
.chart .yt, .chart .xt { font-size: 11px; fill: var(--text-2); }
.chart .yt { text-anchor: end; }
.chart .line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; }
.chart .tail { fill: none; stroke: var(--brand); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .6; }
.chart .dot { fill: #fff; stroke: var(--brand); stroke-width: 2; }
.chart .hot { fill: none; stroke: var(--brand); stroke-width: 2; opacity: .35; }
.chart:focus-visible { outline-offset: 4px; }
.tip { position: absolute; transform: translate(-50%, -100%); padding: 5px 9px; border-radius: 8px; background: var(--charcoal); color: #fff; font-size: 12.5px; white-space: nowrap; pointer-events: none; }
.legend-line { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 12px; color: var(--text-2); }
.legend-line .sw { width: 18px; border-top: 2px solid var(--brand); }
.legend-line .sw.dash { border-top-style: dashed; opacity: .6; margin-left: 8px; }
.ph-note { margin: 8px 0 0; padding: 8px 10px; border-radius: 10px; background: #FFF8E6; font-size: 13px; color: #6B4E00; }
.ph-sub { margin: 16px 0 6px; font-size: 14px; }
.ph-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ph-table th { text-align: left; font-size: 12px; color: var(--text-2); font-weight: 650; padding: 4px 0; border-bottom: 1px solid var(--line); }
.ph-table td { padding: 7px 0; border-bottom: 1px solid #EEF1F5; vertical-align: top; }
.ph-table td small { display: block; font-size: 11.5px; color: var(--text-2); }
.ph-table .num { text-align: right; padding-right: 14px; font-variant-numeric: tabular-nums; font-weight: 700; }
.ph-table .up { color: #B42318; } .ph-table .down { color: var(--down); } .ph-table .same, .ph-table .flag { color: var(--text-2); }
.more { margin-top: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--bg); font-weight: 700; color: var(--brand); cursor: pointer; }
.empty-note, .ph-loading { margin: 6px 0; color: var(--text-2); font-size: 14px; }
.link { border: 0; background: none; padding: 0; color: var(--brand); font-weight: 700; text-decoration: underline; cursor: pointer; }
.svc-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.svc { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface); font-size: 13.5px; font-weight: 650; }
.svc small { display: block; font-size: 11.5px; font-weight: 500; color: var(--text-2); }
.svc.yes svg { color: var(--brand); }
.svc.no, .svc.unknown { background: var(--bg); border: 1px dashed var(--line); color: var(--text-2); }
.svc-note { margin: 8px 0 0; font-size: 12px; color: var(--text-2); }
.hours { margin-top: 10px; font-size: 14px; }
.hours summary { cursor: pointer; font-weight: 700; color: var(--brand); min-height: 36px; display: flex; align-items: center; }
.hours table { border-collapse: collapse; }
.hours th { text-align: left; font-weight: 600; padding: 3px 18px 3px 0; }
.fc-go { display: flex; gap: 8px; margin: 4px 0 12px; }
.fc-page .foot { font-size: 12px; color: var(--text-2); }
/* About page */
.about h1 { margin: 4px 0 6px; font-size: 26px; line-height: 1.2; }
.about h1 .aqo { font-weight: 500; }
.about h1 b { color: var(--brand); }
.about .lede { margin: 0 0 18px; font-size: 16.5px; line-height: 1.5; }
.about section { border-top: 1px solid var(--line); padding: 14px 0 4px; }
.about h2 { margin: 0 0 8px; font-size: 18px; }
.about p, .about li { font-size: 15px; line-height: 1.55; }
.about p { margin: 0 0 10px; }
.about ul { margin: 0 0 10px; padding-left: 20px; }
.about li { margin-bottom: 6px; }
.about p.small { font-size: 13px; color: var(--text-2); }
/* Data & Credits (#data-credits): one section, its kinds of data under small headings; opened by its link, it starts
   below the sticky header. */
.about section { scroll-margin-top: 76px; }
.about h3 { margin: 14px 0 6px; font-size: 15.5px; color: var(--brand); }
.about h4 { margin: 12px 0 6px; font-size: 14px; color: var(--charcoal); }
.about ul.small li { font-size: 13px; color: var(--text-2); }
.about .muted { color: var(--text-2); font-weight: 400; }
.about a { color: var(--brand); font-weight: 600; }
.about .fc-back { color: var(--text); }
.about .callout { background: var(--surface); border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0; padding: 10px 12px; font-weight: 600; }
.about-dates { display: grid; gap: 6px; margin: 0 0 12px; }
.about-dates div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--surface); border-radius: 10px; font-size: 14.5px; }
.about-dates dt { color: var(--text-2); }
.about-dates dd { margin: 0; font-weight: 700; text-align: right; }
@media (max-width: 380px) { .grade .k { font-size: 10.5px; } .grade .v { font-size: 14.5px; } .ph-head { flex-direction: column; } }

/* Tools and Explore Pricing holding pages: the heading, a large icon in a pale circle, what's coming, the planned
   list in a pale box, and a full-width Back to map. */
.soon h1 { margin: 6px 0 20px; font-size: 28px; line-height: 1.2; }
.soon-icon { width: 120px; height: 120px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; color: var(--brand); background: radial-gradient(circle at 50% 40%, #FFFFFF 0%, #E8F0FB 70%, #DCE8F8 100%); box-shadow: 0 6px 20px rgba(7, 59, 145, .10); }
.soon-lead { margin: 0 auto 12px; max-width: 30ch; text-align: center; font-size: 19px; font-weight: 750; line-height: 1.35; color: var(--text); }
.soon-text { margin: 0 auto 22px; max-width: 36ch; text-align: center; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.soon-plan { margin: 0 0 24px; padding: 16px 18px; border-radius: 14px; background: #F3F7FD; border: 1px solid #E3EBF6; }
.soon-plan h2 { margin: 0 0 8px; font-size: 16px; }
.soon-plan ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); font-size: 15px; }
.soon-plan li::marker { color: var(--brand); }
.soon-ready { display: grid; gap: 2px; margin: 0 0 14px; padding: 14px 44px 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='20' height='20'%3E%3Cpath d='M9 5l7 7-7 7' fill='none' stroke='%23667085' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center; color: var(--text); text-decoration: none; }
.soon-ready:hover { background-color: var(--surface); }
.soon-ready .tag { justify-self: start; padding: 2px 8px; border-radius: var(--pill); background: #E6F4EC; color: var(--down); font-size: 12px; font-weight: 700; }
.soon-ready b { font-size: 16.5px; color: var(--brand); }
.soon-ready .sub { font-size: 14px; color: var(--text-2); }
.soon-note { margin: -8px 0 22px; text-align: center; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.soon-back { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 52px; border-radius: 14px; font-size: 16px; text-decoration: none; }
@media (min-width: 900px) { .soon { max-width: 560px; } }

/* Price history page (/history): the forecourt page's grade buttons, button groups, figures and chart. */
.hist h1 { margin: 4px 0 6px; font-size: 26px; line-height: 1.2; }
.hist .lede { margin: 0 0 14px; font-size: 15.5px; line-height: 1.5; color: var(--text-2); }
.grades.two { grid-template-columns: 1fr 1fr; margin-bottom: 12px; }
.grade .k.sm { font-size: 11px; font-weight: 500; }
.grade[aria-checked="true"] .k.sm { color: rgba(255, 255, 255, .8); }
.hist-controls { display: grid; gap: 8px; margin-bottom: 16px; }
.hist-controls .seg { display: flex; }
.hist-controls .seg button { flex: 1; min-width: 0; padding: 0 6px; }
.hist-row { display: grid; grid-template-columns: 3fr 4fr; gap: 8px; }
.chart .dot.hollow { fill: #fff; stroke-dasharray: 2 2; }
.legend-line .sw.ring { width: 10px; height: 10px; border: 2px dashed var(--brand); border-radius: 50%; margin-left: 8px; }
@media (max-width: 360px) { .hist-controls .seg button { font-size: 12px; } }

/* Tools (/tools): the first site's calculators (src/tools.ts toolsContent) in the new look: white cards with a thin
   edge, brand-blue sliders and chosen buttons, pale result cards, quiet tables. Scoped to .tools2. */
.tools2 .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tools2 .tools-page h1 { margin: 4px 0 6px; font-size: 26px; line-height: 1.2; }
.tools2 .lede { margin: 0 0 12px; font-size: 15.5px; line-height: 1.5; color: var(--text-2); }
.tools2 .small { font-size: 13px; } .tools2 .muted { color: var(--text-2); }
.tools2 .notice { padding: 10px 12px; border-radius: 10px; background: #FFF8E6; color: #6B4E00; }
.tools2 .label { font-size: 12.5px; font-weight: 650; color: var(--text-2); }
.tools2 .tool-index { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 6px; }
.tools2 .tool-index a { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 8px; border: 1px solid #C9D9F0; border-radius: 12px; background: #EDF3FC; color: var(--brand); font-weight: 700; font-size: 13px; text-align: center; text-decoration: none; }
.tools2 .tool-index a:hover { background: #E1EBF9; }
@media (min-width: 640px) { .tools2 .tool-index { grid-template-columns: repeat(4, 1fr); } }
.tools2 .tool-section { border-top: 1px solid var(--line); margin-top: 22px; padding-top: 16px; scroll-margin-top: 80px; }
.tools2 .tool-section > h2 { margin: 0 0 2px; font-size: 19px; font-weight: 800; color: var(--brand); }
/* A tool in a card, on the settings area's fill. */
.tools2 .tool-section.t-card { display: grid; gap: 8px; margin-top: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.tools2 .t-card > h2, .tools2 .t-card > p { margin: 0; }
.tools2 .t-card .result-cards { grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); }
.tools2 .t-card .result-card { background: var(--surface); text-align: center; padding: 10px 6px; }
.tools2 .t-card .result-card strong { font-size: 24px; }
.tools2 .t-card .result-card strong { color: var(--brand); }
.tools2 .t-more table.data tr.mine th, .tools2 .t-more table.data tr.mine td { background: #E3ECFA; color: var(--brand); font-weight: 800; }
.tools2 .t-more-cards { padding: 0 10px 10px; } .tools2 .t-more-cards .result-card { background: var(--bg); }
.tools2 .result-sub b .pr { font-weight: 800; }
.tools2 .t-panels.t-inline { grid-template-columns: 1fr 1fr; }
.tools2 #cheaper-fuel-savings .result-cards { grid-template-columns: 1fr 1fr; }
.tools2 .t-card .result-card[data-card="s-save"] { grid-column: 1 / -1; background: #E9F6EE; border-color: var(--down); }
.tools2 .t-card .result-card[data-card="s-save"] strong { font-size: 34px; color: var(--down); }
.tools2 .t-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); margin-top: -6px; }
.tools2 table.t-explain td:nth-child(2) { font-weight: 700; vertical-align: top; }
.tools2 table.t-explain th[scope="row"] { vertical-align: top; }
.tools2 .t-info { margin: 0 10px 10px; padding: 8px 12px 8px 28px; border-radius: 10px; background: #EEF3FB; }
.tools2 .t-settings .t-panels > .t-panel:last-child:nth-child(even) { grid-column: 1 / -1; }
.tools2 .t-panels.t-one { grid-template-columns: 1fr; }
.tools2 .t-inline .t-panel { background: var(--surface); border: 0; }
.tools2 .t-more-note { margin: 0; padding: 8px 14px 12px; }
.tools2 .t-more { border-radius: 12px; background: var(--surface); overflow: hidden; }
.tools2 .t-more summary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--brand); cursor: pointer; list-style: none; }
.tools2 .t-more summary::-webkit-details-marker { display: none; }
.tools2 .t-more summary::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2.2px 2.2px 0; transform: translateY(-2px) rotate(45deg); }
.tools2 .t-more[open] summary::before { transform: translateY(2px) rotate(-135deg); }
.tools2 .t-more table { border-top: 1px solid var(--line); background: var(--bg); }
.tools2 .t-more table.data th, .tools2 .t-more table.data td { padding: 7px 6px; }
.tools2 .t-more table.data th:first-child { padding-left: 14px; } .tools2 .t-more table.data td:last-child, .tools2 .t-more table.data th:last-child { padding-right: 14px; }
.tools2 .tool-blurb { margin: 0 0 8px; }
.tools2 .calc { display: grid; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); box-shadow: 0 1px 3px rgba(16, 24, 40, .06); }
.tools2 .using { margin: 0; color: var(--text-2); }
.tools2 .using a { color: var(--text-2); text-decoration: none; border-bottom: 1px dotted var(--text-2); }
.tools2 .using strong { color: var(--text); }
/* Buttons in a row (fuel, tank level): the map's filter style, the chosen one filled brand blue. */
.tools2 .segmented { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tools2 .segmented button { height: 36px; padding: 0 14px; border: 1.5px solid var(--charcoal); border-radius: var(--pill); background: var(--bg); color: var(--charcoal); font: 700 14px var(--font); cursor: pointer; }
.tools2 .segmented button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.tools2 .price-slider { display: grid; gap: 10px; }
.tools2 .fuel-switch { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.tools2 .more-fuels select, .tools2 .calc input[type="text"] { height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: 600 15px var(--font); min-width: 0; }
.tools2 .calc input[type="text"]:focus { border-color: var(--brand); outline: none; }
.tools2 .calc input[aria-invalid="true"] { border-color: #B42318; }
.tools2 .big-price { margin: 2px 0 0; display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.tools2 .big-price output { font-size: clamp(42px, 12vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--brand); font-variant-numeric: tabular-nums; }
.tools2 .big-price > span { color: var(--text-2); font-weight: 600; }
.tools2 .slider-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.tools2 .slider-end { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tools2 input[type="range"] { width: 100%; height: 40px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.tools2 input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: #DCE4F0; }
.tools2 input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: #DCE4F0; }
.tools2 input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--brand); }
.tools2 input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(7, 59, 145, .4); }
.tools2 input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(7, 59, 145, .4); }
.tools2 .price-tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; justify-content: space-between; }
.tools2 .exact { display: grid; gap: 4px; font-size: 12.5px; font-weight: 650; color: var(--text-2); }
.tools2 .exact input[type="text"] { width: 6.5rem; }
.tools2 .input-unit { display: flex; align-items: center; gap: 6px; }
.tools2 .input-unit > span { color: var(--text-2); font-weight: 600; white-space: nowrap; }
.tools2 .reset-button { height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--bg); color: var(--text); font: 700 14px var(--font); cursor: pointer; }
.tools2 .price-slider.is-custom .reset-button { border-color: var(--brand); color: var(--brand); }
.tools2 .price-status { margin: 0; font-size: 13.5px; color: var(--text-2); text-align: center; }
.tools2 .price-status strong { color: var(--text); }
.tools2 .value-slider { display: grid; gap: 2px; }
.tools2 .value-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.tools2 .value-head .label { flex: 1; min-width: 0; font-size: 14px; color: var(--text); }
.tools2 .value-head output { flex: none; white-space: nowrap; font-size: 19px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.tools2 .value-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.tools2 .value-row:has(> input:only-child) { grid-template-columns: 1fr; }
.tools2 .value-exact { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-weight: 600; font-size: 13px; }
.tools2 .value-exact input[type="text"] { width: 4.5rem; }
.tools2 .level-pick { display: grid; gap: 6px; }
.tools2 .field.check { display: flex; align-items: center; gap: 8px; min-height: 40px; font-size: 15px; }
.tools2 .field.check input { width: 20px; height: 20px; accent-color: var(--brand); }
/* Answers: pale cards like the map's figures. */
.tools2 .result-cards { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.tools2 .result-card { display: grid; gap: 1px; align-content: start; min-width: 0; padding: 9px 11px; border: 1.5px solid transparent; border-radius: 10px; background: var(--surface); }
.tools2 .result-card .label { font-size: 12px; }
.tools2 .result-card strong { font-size: 21px; font-weight: 800; color: var(--text); line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tools2 .result-sub { min-height: 1em; font-size: 12px; color: var(--text-2); }
.tools2 .result-card[data-tone="good"] { border-color: var(--down); } .tools2 .result-card[data-tone="good"] strong { color: var(--down); }
.tools2 .result-card[data-tone="bad"] { border-color: #B42318; } .tools2 .result-card[data-tone="bad"] strong { color: #B42318; }
.tools2 .result-card[data-tone="even"] strong { color: var(--text-2); }
@media (max-width: 380px) { .tools2 .result-cards { grid-template-columns: 1fr 1fr; } .tools2 .result-card strong { font-size: 18px; } }
/* Tables: quiet, like the price history's. */
.tools2 .table-scroll { margin-top: 10px; overflow-x: auto; }
.tools2 table.data { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tools2 table.data th, .tools2 table.data td { padding: 7px 8px; text-align: right; border-bottom: 1px solid #EEF1F5; white-space: nowrap; }
.tools2 table.data th:first-child, .tools2 table.data td:first-child { text-align: left; padding-left: 0; }
.tools2 table.data thead th { font-size: 12px; font-weight: 650; color: var(--text-2); border-bottom-color: var(--line); }
.tools2 table.data th[scope="row"] { white-space: normal; font-weight: 600; }
.tools2 table.data .row-date { display: block; font-weight: 400; font-size: 11.5px; color: var(--text-2); }
.tools2 .num-muted { color: var(--text-2); }
.tools2 .link-button { padding: 3px 12px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--bg); color: var(--brand); font: 700 13px var(--font); cursor: pointer; }
/* Journey cost over time: chart.js's chart (a box with an SVG). */
/* Tools settings: one area at the top, the cost per mile and per km, then small panels (price, MPG, tank, journey,
   cheaper by, detour): two across on phones, three on wider screens, the price panel across two. */
/* The calculator picker at the top: two across, each with an icon, name, short line and a chevron. */
.tools2 .t-index { margin: 0 0 14px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
.tools2 .t-index-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.tools2 .t-index-head h2 { margin: 0; font-size: 19px; font-weight: 800; color: var(--brand); }
.tools2 .t-title { margin: 4px 0 8px; font-size: 26px; color: var(--brand); }
.tools2 .t-index-head > span { font-size: 13px; color: var(--text-2); }
.tools2 .t-index-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tools2 .t-index-grid a { display: flex; align-items: center; gap: 8px; min-height: 58px; padding: 8px 8px 8px 10px; border: 1px solid #C9D9F0; border-radius: 12px; background: #EDF3FC; color: var(--text); text-decoration: none; }
.tools2 .t-index-grid a:hover { background: #E1EBF9; }
.tools2 .t-index-grid .i { flex: none; color: var(--brand); display: grid; }
.tools2 .t-index-grid .t { flex: 1; min-width: 0; display: grid; gap: 1px; line-height: 1.2; }
.tools2 .t-index-grid b { font-size: 14px; color: var(--brand); }
.tools2 .t-index-grid .t span { font-size: 12px; color: var(--text-2); }
.tools2 .t-index-grid .c { flex: none; font-size: 22px; color: var(--brand); line-height: 1; }
@media (max-width: 380px) { .tools2 .t-index-grid .i svg { width: 22px; height: 22px; } .tools2 .t-index-grid b { font-size: 13px; } }
.tools2 .t-settings { display: grid; gap: 10px; margin: 6px 0 16px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); scroll-margin-top: 80px; }
.tools2 .t-settings-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tools2 .t-settings-head h2 { margin: 0; font-size: 19px; font-weight: 800; color: var(--brand); }
.tools2 .t-settings-acts { display: flex; gap: 6px; }
.tools2 .t-settings .link-button { display: inline-flex; align-items: center; gap: 5px; height: 32px; }
.tools2 .t-permile { display: grid; grid-template-columns: 1fr 1fr; text-align: center; padding: 12px 8px; border-radius: 14px; background: var(--brand); color: #fff; }
.tools2 .t-permile > div + div { border-left: 1px solid rgba(255, 255, 255, .25); }
.tools2 .t-permile h3 { grid-column: 1 / -1; margin: 0; font-size: 18px; font-weight: 800; }
.tools2 .t-permile-lead { grid-column: 1 / -1; margin: 2px 0 10px; font-size: 12.5px; color: rgba(255, 255, 255, .85); }
.tools2 .t-permile-sub { grid-column: 1 / -1; margin: 8px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, .85); }
.tools2 .t-permile .label { color: rgba(255, 255, 255, .8); display: block; }
.tools2 .t-permile strong { font-size: 28px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tools2 .t-permile .pr, .tools2 .t-permile .pr sup { color: inherit; }
.tools2 .t-settings-head { align-items: flex-start; }
.tools2 .t-settings-sub { margin: 2px 0 0; font-size: 13px; color: var(--text-2); }
.tools2 .t-combo { gap: 10px; }
.tools2 .t-combo > .t-field { padding-top: 10px; border-top: 1px solid #EEF1F5; }
html:has(.tools2) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(.tools2) { scroll-behavior: auto; } }
.tools2 .t-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tools2 .t-panel { display: grid; gap: 8px; align-content: start; min-width: 0; padding: 8px 10px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.tools2 .t-price { grid-column: 1 / -1; gap: 2px; }
.tools2 .t-price .t-panel-head { align-items: center; }
.tools2 .t-gallon { margin: -2px 0 0; text-align: right; font-size: 13px; font-weight: 650; color: var(--brand); font-variant-numeric: tabular-nums; }
.tools2 .t-field { display: grid; gap: 2px; align-content: start; min-width: 0; }
.tools2 .t-field + .t-field { padding-top: 6px; border-top: 1px solid #EEF1F5; }
.tools2 .t-panel-head .label small { display: block; font-size: 11.5px; font-weight: 500; line-height: 1.25; }
.tools2 .t-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; min-width: 0; }
.tools2 .t-panel-head .label { font-size: 13px; color: var(--text); line-height: 1.2; min-width: 0; }
.tools2 .t-exact { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 12px; font-weight: 600; color: var(--text-2); }
.tools2 .t-exact input[type="text"] { width: 3.6rem; height: 32px; padding: 0 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--brand); font: 800 16px var(--font); text-align: right; font-variant-numeric: tabular-nums; }
.tools2 .t-price .t-exact input[type="text"] { width: 4.6rem; font-size: 20px; height: 38px; }
.tools2 .t-exact input:focus { border-color: var(--brand); outline: none; }
.tools2 .t-exact input[aria-invalid="true"] { border-color: #B42318; }
.tools2 .t-panel input[type="range"] { height: 30px; }
.tools2 .t-sub select, .tools2 .t-def select { height: 34px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: 650 14px var(--font); min-width: 0; max-width: 100%; }
.tools2 .t-fuel { min-width: 0; height: 40px; padding: 0 14px; font-size: 15px; font-weight: 700; }
.tools2 .t-price-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tools2 .t-price-foot .price-status { text-align: left; font-size: 12.5px; }
.tools2 .t-price.is-custom [data-price-reset] { border-color: var(--brand); }
.tools2 .t-sub { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); min-height: 30px; }
.tools2 .t-sub select { height: 30px; font-size: 13px; }
.tools2 .t-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
@media (min-width: 640px) { .tools2 .t-price { grid-column: 1 / -1; } .tools2 .t-permile strong { font-size: 32px; } }
@media (max-width: 360px) { .tools2 .t-panels { grid-template-columns: 1fr; } }
.tools2 .tool-section > .result-cards { margin-top: 4px; }
/* The Tools Defaults dialog: the quick tour's dialog (.tour) with a list of fields. */
.t-defaults h2 { margin: 2px 0 4px; }
.t-def-list { display: grid; gap: 8px; margin: 10px 0 8px; }
.t-def { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; font-size: 14.5px; font-weight: 600; }
.t-def small { display: block; font-size: 12px; font-weight: 400; color: var(--text-2); }
.t-def select { height: 38px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: 650 14px var(--font); }
.t-def .t-exact { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.t-def .t-exact input { width: 4.5rem; height: 38px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; font: 700 16px var(--font); text-align: right; color: var(--text); background: var(--bg); }
.t-def .t-exact input[aria-invalid="true"] { border-color: #B42318; }
.t-def-check { justify-content: flex-start; font-weight: 500; }
.t-def-check input { width: 20px; height: 20px; accent-color: var(--brand); }
.t-def-foot .btn { width: 100%; }
.t-def-standard { justify-self: center; margin: 2px 0; }
.t-defaults .link-button { padding: 3px 12px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--bg); color: var(--brand); font: 700 13px var(--font); cursor: pointer; }
.tools2 #journey-history .result-cards, .tools2 #worth-driving-further .result-cards { grid-template-columns: 1fr 1fr; }
.tools2 .t-chg { font-weight: 750; font-size: 13px; } .tools2 .t-chg.up { color: #B42318; } .tools2 .t-chg.down { color: var(--down); }
.tools2 .chart-card .chart .mark { stroke: #fff; stroke-width: 2; } .tools2 .chart-card .chart .mark.up { fill: #D92D20; } .tools2 .chart-card .chart .mark.down { fill: var(--down); }
.tools2 .chart-card { position: relative; padding: 8px 0 0; }
.tools2 .chart-card .chart { height: 220px; position: relative; touch-action: pan-y; }
.tools2 .chart-card .chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.tools2 .chart-card .chart .grid { stroke: #E4E8EE; }
.tools2 .chart-card .chart .axis { fill: var(--text-2); font-size: 11px; }
.tools2 .chart-card .chart .line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; }
.tools2 .chart-card .chart .hollow { fill: #fff; stroke: var(--brand); stroke-width: 2; }
.tools2 .chart-card .chart [class^="dot-"] { fill: var(--brand); }
.tools2 .chart-card .chart .cursor { stroke: var(--text-2); stroke-dasharray: 3 3; }
.tools2 .chart-card .chart .empty { fill: var(--text-2); font-size: 14px; }

/* Quick tour (first visit, and the menu's Quick tour): a narrow dialog centred over the dimmed map, the same on every
   screen. The steps scroll inside it only when the screen is too short; Got it and the tick stay at its foot. */
.tour { border: 0; padding: 0; width: min(380px, calc(100vw - 24px)); max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); border-radius: 20px; box-shadow: 0 12px 36px rgba(16, 24, 40, .22); color: var(--text); background: var(--bg); overflow: hidden; }
.tour[open] { display: flex; }
.tour::backdrop { background: rgba(16, 24, 40, .4); }
.tour-in { display: flex; flex-direction: column; min-height: 0; width: 100%; margin: 0; }
.tour-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px 4px; }
.tour-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.tour-head .logo-text { font-size: 26px; }
.tour-x { flex: none; width: 36px; height: 36px; margin: -4px -6px 0 0; display: grid; place-items: center; border: 0; background: none; color: var(--text-2); border-radius: 50%; cursor: pointer; }
.tour-x:hover { background: var(--surface); }
.tour h2 { margin: 12px 0 10px; font-size: 19px; line-height: 1.2; color: var(--brand); }
.tour-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tour-steps h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; font-size: 15px; }
.tour-steps .n { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 750; }
.tour-steps p { margin: 0 0 6px 30px; font-size: 13.5px; line-height: 1.35; color: var(--text-2); }
.tour-steps img { display: block; width: 100%; height: auto; aspect-ratio: 34 / 10; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.tour-foot { flex: none; display: grid; gap: 4px; padding: 10px 18px calc(10px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--bg); }
.tour-go { width: 100%; }
.tour-never { justify-content: center; min-height: 36px; font-size: 13.5px; color: var(--text-2); }
.tour-never input { width: 18px; height: 18px; }
/* Short screens: tighter, so more of it (and often all) fits without scrolling. */
@media (max-height: 720px) {
  .tour-body { padding-top: 12px; }
  .tour-head .logo-text { font-size: 22px; }
  .tour h2 { margin: 8px 0 8px; font-size: 17px; }
  .tour-steps { gap: 9px; }
  .tour-steps p { font-size: 13px; margin-bottom: 5px; }
}

/* Options (the map's second-level choices): a white pill with a blue sliders icon and a count of changed choices;
   the panel reuses the quick tour's dialog (scrolling body, fixed footer) with switches for highlights and closures. */
.chip.fl-chip, .chip[data-chip-radius-box] { font-family: inherit; color: var(--brand); font-weight: 700; }
.chip.fl-chip svg { flex: none; }
/* Icons on the controls: all 16px, in the button's text colour; .wide-only ones show from 900px only. */
.chip-ic { flex: none; width: 16px; height: 16px; }
.chip-ic[hidden] { display: none; }
@media (max-width: 899.98px) { .chip-ic.wide-only { display: none; } }
@media (min-width: 900px) { .chip.fl-chip svg { width: 16px; height: 16px; } }
.fl-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 800; line-height: 18px; text-align: center; }
.fl h2 { margin: 2px 0 4px; color: var(--brand); }
.fl-sec { padding: 12px 0; border-top: 1px solid var(--line); }
.fl-sec:first-of-type { border-top: 0; padding-top: 6px; }
.fl-sec h3 { margin: 0; font-size: 15.5px; }
.fl-sec > p { margin: 2px 0 8px; font-size: 13px; color: var(--text-2); }
.fl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; cursor: pointer; }
.fl-name { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.fl-ic { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: #EAF0FA; color: var(--brand); }
.fl-ic.mw { background: var(--brand); color: #fff; }
.fl-sec h3 + .fl-row, .fl-sec h3 + .fl-select { margin-top: 6px; }
.fl-sec h3 + .fl-select { display: block; }
.fl-sw { -webkit-appearance: none; appearance: none; flex: none; position: relative; width: 44px; height: 26px; margin: 0; border-radius: 13px; background: #C4CBD6; cursor: pointer; transition: background .15s; }
.fl-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .3); transition: transform .15s; }
.fl-sw:checked { background: var(--brand); }
.fl-sw:checked::after { transform: translateX(18px); }
.fl-sw:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.fl-select select { width: 100%; height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: 600 15px var(--font); }
.fl-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fl-foot .btn { flex: 1; max-width: 60%; }
.fl-reset { border: 0; background: none; padding: 8px 4px; color: var(--brand); font: 700 14px var(--font); cursor: pointer; }
/* A temporarily closed forecourt (shown from the Options panel): grey, with a closure symbol, never a price. */
.mk.closed { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border: 1.5px solid #98A2B3; border-radius: var(--pill); background: #EEF0F3; color: #475467; font-size: 11.5px; font-weight: 700; box-shadow: none; }
.mk.closed.ring { border-color: var(--brand); box-shadow: 0 0 0 3px #fff, 0 0 0 7px rgba(7, 59, 145, .38); }
.closed-hero .mk.closed { font-size: 15px; padding: 6px 12px; }
.closed-hero .fuel { color: #8A4B00; }
.fuels .v small { font-size: 11px; font-weight: 500; color: var(--text-2); }
.fuels .v.na .pr, .closed-hero .pr { color: inherit; }
.empty [data-fl-again] { margin-right: 8px; }
.s-sub { margin: 2px 0 6px; font-size: 12.5px; color: var(--text-2); }

/* The place chooser (several places with the name searched for): one row per place, its type and area under it. */
.choose h2 { margin: 2px 0 2px; font-size: 17px; }
.choices { list-style: none; margin: 6px 0 8px; padding: 0; display: grid; gap: 6px; }
.choices a { display: block; padding: 8px 12px; border: 1px solid #C9D9F0; border-radius: 10px; color: var(--text); text-decoration: none; }
.choices a:hover, .choices a:focus-visible { border-color: var(--brand); background: #F2F6FC; }
.choices b { display: block; color: var(--brand); font-size: 15px; }
.choices span { display: block; font-size: 13px; color: var(--text-2); }
.choose .choose-more { font-size: 13px; }
/* On a phone, the chooser's panel is taller and scrolls (there is no map to show yet). */
@media (max-width: 899.98px) {
  .sheet.choosing { height: calc(min(64vh, 560px) + var(--sa-b)); }
  .sheet.choosing .sheet-body { overflow-y: auto; display: block; }
}

/* Suggestions as you type: a list under the search box, over the page. */
.field { position: relative; }
.suggest { position: absolute; left: -1px; right: -1px; top: calc(100% + 4px); z-index: 40; margin: 0; padding: 4px; list-style: none; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: min(60vh, 420px); overflow-y: auto; }
.suggest li { padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.suggest li[aria-selected="true"], .suggest li:hover { background: #F2F6FC; }
.suggest b { display: block; color: var(--brand); font-size: 15px; font-weight: 700; }
.suggest span { display: block; font-size: 12.5px; color: var(--text-2); }
/* Wide screens: the list is wider than the search box (about 270px), so "Town · Newport, Wales" stays on one line. */
@media (min-width: 900px) { .suggest { min-width: 300px; right: auto; } }
@media (max-width: 899.98px) { .suggest { min-width: calc(100vw - 2 * var(--pad)); right: auto; left: auto; inset-inline-end: -1px; } }

/* Wider area (app.js): is there cheaper fuel within 20 miles? Wide screens: a small card over the map's lower right,
   above its credits (--attrib-h), clear of the zoom buttons. Phones: the same, with the map's other notes, over its
   lower right. Exploring: the panel's figures, the way back, and the map's note. */
.wide-slot { display: none; }
@media (min-width: 900px) {
  .wide-slot { display: block; position: absolute; z-index: 4; right: 10px; bottom: calc(var(--attrib-h, 18px) + 8px); }
}
.wide-card { width: 220px; padding: 10px 12px 9px; background: rgba(255, 255, 255, .96); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 2px 10px rgba(16, 24, 40, .10); }
.wide-card p { margin: 0; }
.wide-card .wc-k { font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: var(--text-2); }
.wide-card .wc-min { display: flex; align-items: baseline; justify-content: space-between; margin-top: 4px; font-size: 13px; color: var(--text-2); }
.wide-card .wc-min .pr { font-size: 22px; font-weight: 800; color: var(--brand); }
.wide-card .wc-n { margin: 4px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--text); }
.wide-card .wc-n li { display: flex; justify-content: space-between; gap: 8px; }
.wide-card .wc-n b { font-weight: 700; }
.wide-card .wc-cmp { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); }
.wide-card .wc-cmp b { color: var(--brand); }
.wide-card .linkish { margin-top: 6px; font-size: 13px; font-weight: 700; }
/* The label: "20 Mile" and "Cheapest", then the price, with the chevron at the right; at least 44px to tap. */
.wide-label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 5px 6px 5px 9px; background: var(--bg); border: 1px solid #C9D9F0; border-radius: 12px; box-shadow: 0 2px 8px rgba(16, 24, 40, .12); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.wide-label:hover { background: #F7FAFE; }
.wide-label .wl-t { display: grid; line-height: 1.2; }
.wide-label .wl-1 { display: flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.wide-label .wl-pin { color: var(--brand); }
.wide-label .wl-c { font-size: 11px; font-weight: 700; } /* level with the pin, no indent */
.wide-label .wl-2 { line-height: 1.15; }
.wide-label .wl-2 .pr { font-size: 14px; font-weight: 800; color: var(--brand); }
.wide-label .chev-r { width: 14px; height: 14px; color: var(--brand); }
.wide-label .wl-pin { width: 11px; height: 11px; }
.wide-card .wc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -4px -6px 0 0; }
.wc-x { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--text-2); font-size: 20px; line-height: 1; cursor: pointer; }
.wc-x:hover { background: var(--surface); color: var(--text); }
/* Phones: with the map's other notes, at their right. */
.over-notes .wide-label, .over-notes .wide-card { justify-self: end; }
/* A phone on its side leaves the map too short for it beside the zoom buttons: left out there, never over them. */
@media (max-width: 899.98px) and (max-height: 520px) { .over-notes .wide-label, .over-notes .wide-card { display: none; } }
.wide-back { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 6px; padding: 4px 8px 4px 2px; border: 0; border-radius: 8px; background: none; color: var(--brand); font: 700 14px var(--font); cursor: pointer; }
.wide-back:hover { background: var(--surface); }
.wide-figs p { margin: 0; }
.wide-figs .wf-min { display: flex; align-items: baseline; gap: 6px; }
.wide-figs .wf-min .pr { font-size: 26px; font-weight: 800; color: var(--brand); }
.wide-figs .wf-min .grade-of { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.wide-figs .wf-n { margin-top: 2px; font-size: 13.5px; }
.wide-figs .wf-cmp { margin-top: 2px; font-size: 13px; color: var(--text-2); }
.wide-figs .wf-cmp b { color: var(--brand); }

/* ── Route Prices ───────────────────────────────────────────────────────────────────────────────────────────────────
   The map's Route Prices button (test site only), bottom left of the map: right of the price panel on wide screens; on
   phones above the attribution, and out of the way while a note over the map's foot takes that corner. */
.route-btn { position: absolute; z-index: 9; /* above the notes strip over the map's foot (.over, 8), which spans the width on phones */ left: 10px; bottom: calc(var(--attrib-h, 18px) + 6px); display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 10px 0 8px; border: 1px solid #C9D9F0; border-radius: 12px; background: var(--bg); color: var(--brand); text-decoration: none; box-shadow: 0 2px 8px rgba(16, 24, 40, .12); }
/* As the 20 Mile label: the icon, then "Route" over "Plan". */
.route-btn svg { flex: none; width: 16px; height: 16px; }
.route-btn .rb-t { font-size: 11px; font-weight: 700; white-space: nowrap; } /* one row, the 20 Mile label's 11px */
/* A small button with a full-size tap area: an invisible margin takes it to 44px tall. */
.route-btn::after { content: ""; position: absolute; left: -4px; right: -4px; top: -6px; bottom: -6px; }
.route-btn:hover { background: #F7FAFE; }
@media (min-width: 900px) { .route-btn { left: calc(16px + 380px + 12px); bottom: calc(var(--attrib-h, 18px) + 8px); } } /* level with .wide-slot */
@media (max-width: 899.98px) {
  .map-area:has(.over-notes .excl:not([hidden]), .over-notes .legend:not([hidden]), .over-notes .wide-card) .route-btn { display: none; }
  .map-area:has(.route-btn) .map-hint { bottom: calc(var(--attrib-h, 18px) + 56px); }
}
@media (max-width: 899.98px) and (max-height: 520px) { .route-btn { display: none; } }
html:not(.welcome-closed) .stage.welcoming .route-btn { display: none; }

/* The Route Prices page: the header holds the title and the two places; the map takes the rest. */
.rt-head { margin-top: 6px; }
.rt-title { display: flex; align-items: center; gap: 10px; }
.rt-title h1 { margin: 0; font-size: 18px; font-weight: 800; color: var(--text); }
.rt-title .back { color: var(--brand); text-decoration: none; }
.rt-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 8px; }
.rt-row { display: flex; gap: var(--gap); align-items: center; }
.rt-field { position: relative; }
.rt-mark { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11.5px; font-weight: 800; color: #fff; background: var(--brand); }
.rt-mark.finish { background: var(--charcoal); }
.rt-locate span { display: none; }
.rt-locate { padding: 0 11px; }
.rt-recent { position: relative; flex: none; }
.rt-recent .recent-btn:disabled { color: #A3AAB6; cursor: default; background: var(--bg); }
.rt-recent-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 40; width: min(340px, calc(100vw - 2 * var(--pad))); padding: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.rt-recent-list ul { list-style: none; margin: 0; padding: 0; }
.rt-recent-h { margin: 2px 8px 6px; font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.rt-recent-list li { display: flex; align-items: center; border-radius: 8px; }
.rt-recent-list li:hover { background: #F2F6FC; }
.rt-recent-go { flex: 1; min-width: 0; display: grid; gap: 1px; padding: 8px 10px; border: 0; background: none; text-align: left; cursor: pointer; }
.rt-recent-r { color: var(--brand); font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-recent-d { font-size: 12px; color: var(--text-2); }
.rt-recent-x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 8px; background: none; color: var(--text-2); font-size: 16px; cursor: pointer; }
.rt-recent-x:hover { color: var(--text); background: var(--surface); }
.rt-recent-clear { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; background: none; color: var(--text-2); font-size: 13.5px; font-weight: 650; text-align: left; cursor: pointer; }
.rt-recent-clear:hover { color: var(--text); background: var(--surface); }
.rt-sug-head { padding: 6px 10px 4px !important; font-size: 12.5px; color: var(--text-2); cursor: default !important; background: none !important; }
.rt-note { margin-top: 6px; }
.rt-stage { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.rt-stage .map-area { position: relative; flex: 1; min-height: 0; }
.rt-stage .map { position: absolute; inset: 0; }

/* The card over the map: confirm, the journey, or why there's no route. Phones: across the map's foot. */
/* Phones: a panel docked under the map, the height of the map page's prices panel (--panel-h), so the map keeps the
   same space; it scrolls inside if ever taller. Wide screens: over the map's top left (below). */
.rt-card { position: relative; z-index: 8; flex: none; height: calc(var(--panel-h) + var(--sa-b)); padding: 10px var(--pad) calc(10px + var(--sa-b)); background: var(--bg); border-radius: 18px 18px 0 0; box-shadow: var(--shadow-up); overflow-y: auto; }
.rt-h { margin: 0 0 8px; font-size: 16px; font-weight: 800; color: var(--text); line-height: 1.3; }
.rt-places { display: grid; gap: 4px; margin: 0; }
.rt-places div { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.rt-places dt { flex: none; display: inline-flex; align-items: center; gap: 6px; width: 72px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.rt-places dt .rt-mark { width: 18px; height: 18px; font-size: 10.5px; }
.rt-places dd { margin: 0; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-places dd small { margin-left: 6px; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.rt-q { margin: 8px 0 0; font-size: 14px; color: var(--text-2); }
.rt-err { margin: 8px 0 0; font-size: 14px; color: var(--text); }
.rt-sum { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.rt-sum div { display: grid; align-content: start; min-width: 0; }
.rt-sum .k { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.rt-sum .k2 { font-size: 11.5px; color: var(--text-2); }
.rt-sum b { font-size: 18px; font-weight: 800; color: var(--brand); line-height: 1.25; }
.rt-roads { margin: 10px 0 0; font-size: 14px; color: var(--text); }
.rt-roads .k { margin-right: 4px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.rt-roads b { font-weight: 800; }
.rt-mix { display: flex; gap: 2px; height: 8px; margin-top: 8px; border-radius: 999px; overflow: hidden; background: var(--surface); }
.rt-mix-key { display: flex; flex-wrap: wrap; gap: 2px 12px; margin: 5px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--text-2); }
.rt-mix-key li { display: inline-flex; align-items: center; gap: 5px; }
.rt-mix-key b { color: var(--text); font-weight: 700; }
.rt-mix-key i { width: 9px; height: 9px; border-radius: 3px; }
.rt-mix .motorway, .rt-mix-key .motorway { background: var(--brand); }
.rt-mix .a_road, .rt-mix-key .a_road { background: #5B8BD9; }
.rt-mix .other, .rt-mix-key .other { background: #B8C4D6; }
.rt-mix .ferry, .rt-mix-key .ferry { background: #7FB8C9; }
.rt-fine { margin: 6px 0 0; font-size: 12px; color: var(--text-2); }
.rt-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rt-actions .btn { height: 40px; padding: 0 14px; font-size: 14px; }
.rt-actions .btn[aria-busy="true"] { opacity: .75; cursor: progress; }

/* Start and finish on the map: a labelled flag with a point at the place. */
/* A place's label. Before a route: a pin above its place. With a route: outside its 3-mile circle (route.js places it),
   joined to a dot on the place by a pointer line. */
.rt-pin, .rt-pin-base { position: relative; width: 0; height: 0; pointer-events: none; }
.rt-pin-b { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 4px; border-radius: var(--pill); background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 700; box-shadow: 0 2px 6px rgba(16, 24, 40, .25); white-space: nowrap; }
.rt-pin.is-classic .rt-pin-b { transform: translate(-50%, calc(-100% - 7px)); }
.rt-pin-b b { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: var(--brand); font-size: 10.5px; font-weight: 800; }
.rt-pin.finish .rt-pin-b { background: var(--charcoal); }
.rt-pin.finish .rt-pin-b b { color: var(--charcoal); }
.rt-pin.is-classic .rt-pin-b::after { content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); border: 7px solid transparent; border-bottom: 0; border-top-color: var(--brand); }
.rt-pin.finish.is-classic .rt-pin-b::after { border-top-color: var(--charcoal); }
.rt-pin-dot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(16, 24, 40, .35); box-sizing: border-box; }
.rt-pin-base.finish .rt-pin-dot { background: var(--charcoal); }
.rt-pin-ln { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; }
.rt-pin-ln line { stroke: var(--brand); stroke-width: 2; stroke-linecap: round; }
.rt-pin-base.finish .rt-pin-ln line { stroke: var(--charcoal); }
.rt-pin-base.is-classic { display: none; }

@media (min-width: 900px) {
  .rt-top { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .rt-head { display: flex; align-items: center; gap: 16px; margin: 0; min-width: 0; }
  .rt-title h1 { font-size: 17px; white-space: nowrap; }
  .rt-form { flex: 1; min-width: 0; display: flex; gap: 8px; margin: 0; max-width: 860px; }
  .rt-row { flex: 1; min-width: 0; }
  .rt-locate span { display: inline; }
  .rt-note { position: absolute; left: 20px; right: 20px; top: 100%; margin: 0; padding: 6px 12px; background: var(--bg); box-shadow: 0 1px 0 var(--line); }
  .rt-card { position: absolute; left: 16px; right: auto; top: 16px; bottom: auto; width: 380px; height: auto; padding: 16px 18px; border-radius: 16px; box-shadow: var(--shadow); overflow: visible; }
  .rt-h { font-size: 17px; }
  .rt-sum { grid-template-columns: repeat(4, auto); justify-content: start; gap: 8px 20px; }
  .rt-card { width: 500px; }
}
/* Route Prices's place suggestions on phones: from the box's left edge (each box starts at the page margin) across the
   screen, not from its right edge as the map's search does (the box has a button beside it). */
@media (max-width: 899.98px) { .rt-field .suggest { left: -1px; right: auto; inset-inline-end: auto; min-width: 0; width: calc(100vw - 2 * var(--pad)); } }
/* A phone's keyboard is open (route.js): the card at the top of the map instead of its foot. */
@media (max-width: 899.98px) {
  .rt-card.rt-card-top { position: absolute; top: 8px; left: 8px; right: 8px; height: auto; max-height: 60%; border-radius: 16px; box-shadow: var(--shadow); padding-bottom: 10px; }
  /* Compact, to fit the panel: the four figures in one row, smaller type, no fine print. */
  .rt-h { margin-bottom: 6px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rt-sum { grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 4px 10px; }
  .rt-sum .k { font-size: 11px; }
  .rt-sum .k2, .rt-fine { display: none; }
  .rt-sum b { font-size: 15.5px; }
  .rt-roads { margin-top: 6px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rt-mix { margin-top: 5px; height: 6px; }
  .rt-mix-key { margin-top: 3px; font-size: 11px; }
  .rt-places { gap: 2px; }
  .rt-q { margin-top: 4px; font-size: 13px; }
  .rt-err { margin-top: 4px; font-size: 13px; }
  .rt-actions { flex-wrap: nowrap; margin-top: 8px; }
  .rt-actions .btn { flex: 1; height: 36px; padding: 0 10px; font-size: 13.5px; white-space: nowrap; }
}
/* Route Prices' intro under the title: its mark, then what it does. */
.rt-intro { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding: 9px 12px; background: #EEF4FC; border: 1px solid #D6E3F5; border-radius: 12px; }
.rt-intro-ic { flex: none; display: grid; place-items: center; padding-right: 12px; border-right: 1px solid #C9D9F0; color: var(--brand); }
.rt-intro h2 { margin: 0; font-size: 14.5px; font-weight: 800; line-height: 1.25; color: var(--brand); }
.rt-intro p { margin: 2px 0 0; font-size: 12.5px; line-height: 1.35; color: var(--text-2); }
@media (min-width: 900px) {
  .rt-head { flex-wrap: wrap; row-gap: 8px; }
  .rt-intro { order: 3; flex-basis: 100%; margin: 0; padding: 7px 12px; }
  .rt-intro h2 { display: inline; font-size: 14px; }
  .rt-intro p { display: inline; margin-left: 6px; }
}
/* The first-use pop-up: the quick tour's dialog, with the mark, a centred title and a privacy note. */
.rt-dlg .tour-body { text-align: left; }
.rt-dlg-ic { display: grid; place-items: center; width: 64px; height: 64px; margin: 4px auto 10px; border-radius: 50%; background: #EEF4FC; color: var(--brand); }
.rt-dlg-ic svg { width: 34px; height: 34px; }
.rt-dlg h2 { margin: 0 0 10px; text-align: center; }
.rt-dlg .tour-body > p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.45; color: var(--text); }
.rt-dlg-box { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; background: #EEF4FC; border-radius: 12px; color: var(--brand); }
.rt-dlg-box b { display: block; font-size: 14.5px; color: var(--brand); }
.rt-dlg-box p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--text); }
/* Route choices (when OSRM finds alternatives): one pill each, the chosen one filled. Phones: they take the title's
   place in the panel (the places are in the boxes above). */
.rt-opts { display: flex; gap: 6px; margin: 0 0 10px; }
.rt-opts button { flex: 1; min-width: 0; display: inline-flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 0 5px; min-height: 34px; padding: 5px 8px; border: 1px solid #C9D9F0; border-radius: 10px; background: var(--bg); color: var(--brand); font-size: 12.5px; cursor: pointer; }
.rt-opts button b { font-weight: 800; }
.rt-opts button span { color: var(--text-2); }
.rt-opts button i { font-style: normal; font-size: 11.5px; color: var(--text-2); }
.rt-opts button[aria-checked="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.rt-opts button[aria-checked="true"] span, .rt-opts button[aria-checked="true"] i { color: #DCE6F7; }
@media (max-width: 899.98px) {
  .rt-card.has-opts .rt-h { display: none; }
  .rt-opts { margin-bottom: 7px; gap: 5px; }
  /* Every choice the same: the time over the distance. */
  .rt-opts button { flex-direction: column; align-items: center; justify-content: center; flex-wrap: nowrap; gap: 0; min-height: 0; padding: 3px 4px; line-height: 1.15; }
  .rt-opts button b { font-size: 12px; white-space: nowrap; }
  .rt-opts button span { font-size: 10.5px; white-space: nowrap; }
  .rt-opts button i { display: none; }
}

/* ── Route Prices, Stage 2: fuel along the route ─────────────────────────────────────────────────────────────────── */
/* The fuel and Fuel Stops: one row under the places. */
.rt-tools { display: flex; align-items: center; gap: 8px; margin-top: 6px; min-width: 0; }
.rt-fuel { flex: 0 1 auto; min-width: 0; height: 34px; padding: 0 10px; gap: 5px; font-size: 13.5px; }
.rt-fuel > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rt-stops { flex: none; display: inline-flex; align-items: center; gap: 3px; margin-left: auto; }
.rt-stops-l { margin-right: 4px; font-size: 12.5px; font-weight: 700; color: var(--text-2); white-space: nowrap; }
.rt-stops [data-rt-stop] { height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--bg); color: var(--brand); font-size: 12.5px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.rt-stops [data-rt-stop][aria-checked="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.rt-stops-i { width: 22px; height: 22px; margin-left: 2px; border: 1.5px solid var(--text-2); border-radius: 50%; background: none; color: var(--text-2); font: 700 12px/1 Georgia, serif; font-style: italic; cursor: pointer; }
.rt-stops-i[aria-expanded="true"] { border-color: var(--brand); color: var(--brand); }
.rt-stops-help { margin: 6px 0 0; padding: 7px 10px; border-radius: 10px; background: var(--surface); font-size: 12.5px; line-height: 1.4; color: var(--text); }
@media (max-width: 899.98px) {
  .rt-stops-l { display: none; }
  .rt-stops [data-rt-stop] { padding: 0 7px; font-size: 12px; }
  .rt-fuel .chip-ic, .rt-stops-i { display: none; } /* the key says the distances are straight-line */
}
@media (max-width: 360px) { .rt-stops [data-rt-stop] { padding: 0 5px; font-size: 11.5px; } }
/* Once a route is shown the intro has done its job: the map gets its space back. */
body.rt-has-route .rt-intro { display: none; }
/* The map key. Phones: top left; wide screens: bottom left (the card has the top left). */
.rt-legend { position: absolute; z-index: 5; left: 8px; top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; max-width: calc(100% - 70px); padding: 4px 8px; border-radius: 10px; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 4px rgba(16, 24, 40, .12); font-size: 11px; color: var(--text); pointer-events: none; }
.rt-legend span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.rt-legend small { flex-basis: 100%; font-size: 10.5px; color: var(--text-2); }
.rt-legend i { display: inline-block; flex: none; }
.rt-legend .lg-route { width: 16px; height: 4px; border-radius: 2px; background: var(--brand); }
.rt-legend .lg-corr { width: 16px; height: 9px; border-radius: 4px; background: rgba(59, 130, 246, .22); }
.rt-legend .lg-area { width: 11px; height: 11px; border: 1.5px dashed #2563EB; border-radius: 50%; background: rgba(59, 130, 246, .06); }
@media (min-width: 900px) { .rt-legend { top: auto; bottom: calc(var(--attrib-h, 18px) + 8px); left: calc(16px + 500px + 12px); max-width: 380px; } }

/* The price markers are Find fuel's (.mk); as buttons here. */
button.mk { font: inherit; cursor: pointer; }
.rt-warn { display: inline-grid; place-items: center; width: 13px; height: 13px; margin-left: 3px; border-radius: 50%; background: var(--warn); color: #fff; font-size: 9.5px; font-weight: 800; vertical-align: 2px; }

/* The journey on one line (phones), the cheapest of each kind, and the buttons. */
.rt-jline { display: none; margin: 0 0 6px; font-size: 12.5px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-best { margin-top: 12px; }
.rt-best-h { margin: 0 0 6px; font-size: 13.5px; font-weight: 800; color: var(--text); }
.rt-best-msg { margin: 0; font-size: 13px; color: var(--text-2); }
.rt-link { padding: 0; border: 0; background: none; color: var(--brand); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.rt-best-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rt-best-c { display: grid; align-content: start; gap: 1px; min-width: 0; padding: 7px 9px; border: 1px solid #C9D9F0; border-radius: 12px; background: var(--bg); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
button.rt-best-c:hover { background: #F7FAFE; }
.rt-best-c .k { font-size: 11px; font-weight: 700; color: var(--text-2); }
.rt-best-c b { font-size: 17px; font-weight: 800; color: var(--brand); line-height: 1.2; }
.rt-best-c .n { font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-best-c .d { font-size: 11px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-best-c.empty { cursor: default; border-style: dashed; }
.rt-best-c.empty .n { font-weight: 500; color: var(--text-2); white-space: normal; }
.rt-roadsbox { margin-top: 2px; }
@media (min-width: 900px) {
  .rt-card.is-route { display: flex; flex-direction: column; max-height: calc(100% - 32px); overflow-y: auto; }
  .rt-card.is-route .rt-h { order: 1; } .rt-card.is-route .rt-opts { order: 2; } .rt-card.is-route .rt-sum { order: 3; }
  .rt-card.is-route .rt-roadsbox { order: 4; } .rt-card.is-route .rt-best { order: 5; } .rt-card.is-route .rt-actions { order: 6; }
  .rt-card.is-route .rt-fine { order: 7; }
}
@media (max-width: 899.98px) {
  /* The phone panel, still the prices panel's height: the routes, the journey, the three cheapest and the buttons; the
     roads and notes below them, a scroll away. */
  .rt-card.is-route .rt-h, .rt-card.is-route .rt-sum, .rt-card.is-route .rt-chg, .rt-best-h { display: none; }
  .rt-card.is-route .rt-jline { display: block; }
  .rt-best { margin-top: 0; }
  .rt-best-row { gap: 5px; }
  .rt-best-c { padding: 5px 7px; border-radius: 10px; }
  .rt-best-c .k { font-size: 10.5px; }
  .rt-best-c b { font-size: 15px; }
  .rt-best-c .n { font-size: 11px; }
  .rt-best-c .d { font-size: 10.5px; }
  .rt-best-msg { font-size: 12.5px; padding: 6px 0; }
  .rt-roadsbox { margin-top: 10px; }
  .rt-card.is-route .rt-fine { display: block; margin-top: 8px; }
}

/* A forecourt's card on the map. */
.rt-pop .maplibregl-popup-content { padding: 12px 14px; border-radius: 14px; box-shadow: var(--shadow); font: 14px/1.35 var(--font); }
.rt-pop .maplibregl-popup-close-button { width: 30px; height: 30px; font-size: 20px; color: var(--text-2); }
.rt-pop p { margin: 0; }
.rt-pop-n { padding-right: 22px; font-weight: 800; }
.rt-pop-s { margin-top: 2px !important; font-size: 12.5px; color: var(--text-2); }
.rt-pop-p { margin-top: 6px !important; font-size: 20px; font-weight: 800; color: var(--brand); }
.rt-pop-p span { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.rt-pop-w { margin-top: 6px !important; padding: 6px 8px; border-radius: 8px; background: #FFF4E5; font-size: 12.5px; }
.rt-pop-a { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rt-pop-a .btn { height: 34px; padding: 0 10px; font-size: 13px; }

/* Every forecourt found: a list over the map (phones: the whole screen; wide screens: down the right). */
.rt-list { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--bg); }
.rt-list[hidden] { display: none; }
@media (min-width: 900px) { .rt-list { position: absolute; inset: 0 0 0 auto; width: 440px; z-index: 30; box-shadow: -6px 0 20px rgba(16, 24, 40, .15); } }
.rt-sort { display: flex; gap: 6px; padding: 8px var(--pad); border-bottom: 1px solid var(--line); }
.rt-sort button { height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--bg); color: var(--brand); font: 700 13px var(--font); cursor: pointer; }
.rt-sort button[aria-checked="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.rt-rows { flex: 1; margin: 0; padding: 0 0 calc(12px + var(--sa-b)); list-style: none; overflow-y: auto; }
.rt-rows li { display: flex; align-items: center; gap: 4px; padding: 0 var(--pad) 0 4px; border-bottom: 1px solid #EEF1F5; }
.rt-row-go { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 10px 8px; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.rt-row-go:hover { background: #F7FAFE; }
.rt-row-go .mk { position: static; flex: none; }
.rt-row-t { display: grid; min-width: 0; font-size: 12.5px; color: var(--text-2); }
.rt-row-t b { font-size: 14.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-row-t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-row-d { flex: none; padding: 8px; font-size: 13px; font-weight: 700; color: var(--brand); }
.rt-rows-empty { padding: 16px var(--pad) !important; color: var(--text-2); }
@media (min-width: 900px) {
  .rt-tools { order: 3; margin: 0; }
  .rt-form { flex: 1 1 calc(100% - 240px); } /* the places fill the first row, so the fuel row always starts a new one */
  .rt-intro { order: 4; flex: 1 1 300px; }
  .rt-stops-help { order: 5; flex-basis: 100%; margin: 0; }
}
/* The forecourt's card above every price marker (they carry z-indexes up to 20000, the chosen one 100000). */
.maplibregl-popup.rt-pop { z-index: 200000; }
.rt-legend.off { display: none; }

/* Route Prices' header, as Find fuel's: the two places and Recent on one row, then the chips (fuel, distance from the
   route, Options). Phones: Recent is its clock alone. */
.rt-form .rt-row { gap: 6px; }
.rt-form .rt-field { flex: 1 1 0; }
.rt-chips { margin-top: 8px; }
.rt-chips .chip:not(.primary) > span { white-space: nowrap; }
@media (max-width: 899.98px) {
  .rt-form .rt-field { padding-left: 9px; gap: 6px; }
  .rt-recent .recent-btn { width: 44px; padding: 0; justify-content: center; }
  .rt-recent-w, .rt-recent .recent-btn .chev { display: none; }
}
@media (min-width: 900px) { .rt-chips { order: 3; margin: 0; justify-content: flex-start; gap: 8px; } }
/* The price filter above the three cheapest (Find fuel's buttons, a little smaller). */
.rt-filters { margin: 0 0 8px; }
.rt-filters button { height: 32px; font-size: 13px; }
@media (max-width: 899.98px) { .rt-filters { margin-bottom: 6px; } .rt-filters button { height: 30px; font-size: 12.5px; } }
@media (max-width: 899.98px) { .rt-chips { gap: 5px; } .rt-chips .chip { padding: 0 10px; gap: 5px; } }
/* The ⓘ beside the title, and About Route Prices. */
.rt-info { display: grid; place-items: center; width: 32px; height: 32px; margin-left: -4px; border: 0; border-radius: 50%; background: none; color: var(--text-2); cursor: pointer; }
.rt-info:hover { color: var(--brand); background: var(--surface); }
.rt-about h2 { margin: 0; text-align: left; font-size: 19px; }
.rt-about .tour-body { font-size: 14.5px; line-height: 1.45; }
.rt-about .rt-about-lede { margin: 12px 0 6px; font-weight: 800; color: var(--brand); }
.rt-about h3 { margin: 16px 0 6px; font-size: 15px; font-weight: 800; }
.rt-about ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; }
.rt-about .tour-body > p { margin: 0 0 6px; }
/* The start overlay: over the map until a first place is chosen. */
.rt-start { position: absolute; z-index: 7; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(300px, calc(100% - 32px)); padding: 16px 16px 14px; border-radius: 18px; background: rgba(255, 255, 255, .96); box-shadow: var(--shadow); text-align: center; }
.rt-start[hidden] { display: none; }
.rt-start-art { display: block; margin: 0 auto 6px; }
.rt-start h2 { margin: 0; font-size: 18px; font-weight: 800; color: var(--text); }
.rt-start > p { margin: 2px 0 12px; font-size: 14px; color: var(--text-2); }
.rt-start-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); list-style: none; }
.rt-start-steps button, .rt-start-last { display: grid; justify-items: center; gap: 6px; width: 100%; padding: 2px; border: 0; background: none; color: var(--text); font: 600 12px/1.25 var(--font); cursor: pointer; }
.rt-start-last { cursor: default; }
.rt-start-steps .ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #E6EEFA; color: var(--brand); }
.rt-start-steps button:hover .ic { background: #D6E3F5; }

/* ── Route Prices: results like Find fuel's panel ─────────────────────────────────────────────────────────────────── */
.rt-res .s-head { margin-bottom: 2px; }
.rt-res-sub { margin: 0 0 6px; font-size: 13px; color: var(--text-2); }
.rt-res .rt-filters { margin: 8px 0; }
.rt-res .range { margin-bottom: 8px; }
.rt-res .rt-best { margin-top: 4px; }
.rt-tiles { margin-top: 8px; padding-top: 0; } /* V337: three tiles, as Location Pricing (was List Sites alone, full width) */
/* Show whole route: a map button under + and −. */
.rt-fit-ctrl[hidden] { display: none !important; }
.rt-fit-ctrl button { display: grid; place-items: center; color: var(--text); }
/* The strip over the map's foot (phones): the journey on one line, or the route choices. */
.rt-strip { position: absolute; z-index: 6; left: 8px; right: 8px; bottom: calc(var(--attrib-h, 18px) + 6px); pointer-events: none; }
.rt-strip[hidden] { display: none; }
.rt-strip > * { pointer-events: auto; }
.rt-strip .rt-jline { display: inline-block; max-width: 100%; margin: 0; padding: 6px 12px; border-radius: var(--pill); background: rgba(255, 255, 255, .95); box-shadow: 0 1px 6px rgba(16, 24, 40, .18); font-size: 13px; font-weight: 700; color: var(--text); }
.rt-strip .rt-opts { margin: 0; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .95); box-shadow: 0 1px 6px rgba(16, 24, 40, .18); }
@media (min-width: 900px) {
  .rt-strip { display: none !important; }
  .rt-card.is-route .rt-res { order: 5; }
  .rt-res { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
}
@media (max-width: 899.98px) {
  /* The phone panel: the results only (the journey is over the map); a little taller than Find fuel's, for the three
     location cards. The roads and notes are a scroll away below. */
  .rt-card.is-route { height: calc(254px + var(--sa-b)); }
  .rt-card.is-route > .rt-opts, .rt-res-sub, .rt-best-h { display: none; }
  .rt-res .s-title { font-size: 16px; }
  .rt-res .rt-filters { margin: 6px 0; }
  .rt-res .range { margin-bottom: 6px; }
  .rt-res .range .val { font-size: 20px; }
  .rt-tiles { margin-top: 6px; }
  .rt-tiles .tile { height: 38px; }
  .rt-legend { top: 8px; }
}
@media (max-width: 899.98px) {
  .rt-card.is-route { display: flex; flex-direction: column; }
  .rt-card.is-route > * { flex: none; }
  .rt-card.is-route .rt-res { order: 1; }
  .rt-card.is-route .rt-roadsbox { order: 2; }
  .rt-card.is-route .rt-fine { order: 3; }
}
/* Route Prices' column (wide screens): the panel, then the list (or an opened forecourt) in its own card below,
   as Find fuel's. Phones: the panel docked under the map, and a forecourt's card over it (.card-over). */
.rt-col { display: contents; }
.rt-dock { display: none !important; }
.rt-dock .rt-sort { padding: 8px 0; border-bottom: 0; }
.rt-stage .card-over { z-index: 25; }
@media (min-width: 900px) {
  .rt-col { position: absolute; z-index: 8; left: 16px; top: 16px; bottom: 16px; width: 500px; display: flex; flex-direction: column; gap: 12px; pointer-events: none; }
  .rt-col > * { pointer-events: auto; }
  .rt-col > .rt-card { position: relative; left: auto; top: auto; width: auto; flex: none; }
  .rt-col > .rt-card.is-route { max-height: 58%; }
  .rt-dock:not([hidden]) { display: flex !important; }
  /* V449: the list is in the column, so no List Sites; Tools and Area Pricing stay, as on Location Pricing */
  .rt-tiles { grid-template-columns: repeat(2, 1fr); margin-top: 10px; }
  .rt-tiles [data-rt-all] { display: none; }
  .rt-col > .rt-card.is-route { max-height: calc(58% + 52px); } /* room for those two buttons, so the card needs no scroll */
}

/* The journey strip's buttons (phones): the line itself, or an ⓘ beside the route choices; both open the journey. */
.rt-strip .rt-jline { display: inline-flex; align-items: center; gap: 6px; border: 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--text); cursor: pointer; }
.rt-strip .rt-jline svg { flex: none; color: var(--brand); }
.rt-strip-row { display: flex; align-items: center; gap: 6px; }
.rt-strip-row .rt-opts { flex: 1; min-width: 0; }
.rt-jbtn { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .95); box-shadow: 0 1px 6px rgba(16, 24, 40, .18); color: var(--brand); cursor: pointer; }
.rt-jsum { margin: 12px 0 4px; }
.over-card .rt-roads { margin-top: 12px; }
@media (max-width: 899.98px) { .rt-card.is-route .rt-roadsbox { display: none; } .rt-jsum { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; } }
/* ── Route Prices on phones: more map once a route is shown ───────────────────────────────────────────────────────── */
.rt-compact { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.rt-compact[hidden], .rt-fold { display: none; }
.rt-sumline { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px 0 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: 700 15px var(--font); cursor: pointer; }
.rt-sumline .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-sumline .to { flex: none; color: var(--text-2); }
.rt-sumline .rt-mark { flex: none; }
.rt-sumline svg { flex: none; margin-left: auto; color: var(--brand); }
@media (max-width: 899.98px) {
  body.rt-compact-on .rt-title, body.rt-compact-on .rt-form { display: none; }
  /* The handle: a grabber at the panel's top while it's open; the whole folded panel when folded. */
  .rt-card.is-route { padding-top: 16px; }
  .rt-card.is-route .rt-fold { order: 0; display: block; position: absolute; top: 0; left: 50%; width: 96px; height: 18px; margin-left: -48px; padding: 0; border: 0; background: none; cursor: pointer; touch-action: none; }
  .rt-fold .grab { position: absolute; top: 6px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: #C4CAD4; }
  .rt-card.is-route .rt-fold .rt-fold-t, .rt-card.is-route .rt-fold > svg { display: none; }
  .rt-card.is-route { position: relative; height: calc(244px + var(--sa-b)); }
  .rt-card.is-route.folded { height: auto; padding: 16px var(--pad) calc(8px + var(--sa-b)); overflow: hidden; }
  .rt-card.is-route.folded > :not(.rt-fold):not(.rt-res) { display: none !important; }
  .rt-card.is-route.folded .rt-fold { position: static; display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; margin: 0; text-align: left; font: inherit; color: var(--text); }
  .rt-card.is-route.folded .rt-fold .grab { top: 6px; }
  .rt-card.is-route.folded .rt-fold .rt-fold-t { display: block; flex: 1; min-width: 0; font-size: 15px; }
  .rt-card.is-route.folded .rt-fold .rt-fold-t b { color: var(--brand); }
  .rt-card.is-route.folded .rt-fold > svg { display: block; flex: none; color: var(--brand); }
}
@media (min-width: 900px) { .rt-compact { display: none !important; } }

/* Route choices: the "via" road under the time and distance; on phones an arrow on each opens that route's card. */
.rt-opts button em { flex-basis: 100%; font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.rt-opts button[aria-checked="true"] em { color: #DCE6F7; }
.rt-opts.with-more { display: flex; gap: 6px; }
.rt-opt { flex: 1; min-width: 0; display: flex; align-items: stretch; border: 1px solid #C9D9F0; border-radius: 10px; background: var(--bg); overflow: hidden; }
.rt-opt.on { background: var(--brand); border-color: var(--brand); }
.rt-opts.with-more .rt-opt > [data-rt-opt] { flex: 1; min-width: 0; border: 0; border-radius: 0; background: none; }
.rt-opts .rt-opt-more { flex: none; min-height: 0; border-radius: 0; display: grid; place-items: center; width: 34px; padding: 0; border: 0; border-left: 1px solid #C9D9F0; background: none; color: var(--brand); cursor: pointer; }
.rt-opts .rt-opt.on .rt-opt-more { border-left-color: rgba(255, 255, 255, .35); color: #fff; }
@media (max-width: 899.98px) { .rt-opts button em { font-size: 10.5px; } }

/* The three cheapest, compact: one box, each place's label over its price marker (the map's colours). */
.rt-best .rt-best-row { gap: 0; padding: 6px 4px; border: 1px solid #E4E8EE; border-radius: 12px; }
.rt-best .rt-best-c { display: grid; justify-items: center; align-content: center; gap: 4px; padding: 2px 4px; border: 0; border-radius: 8px; background: none; text-align: center; }
.rt-best button.rt-best-c:hover { background: #F7FAFE; }
.rt-best .rt-best-c .k { font-size: 12px; font-weight: 600; color: var(--text-2); }
.rt-best .rt-best-c .mk { position: static; font-size: 17px; padding: 2px 10px; pointer-events: none; }
.rt-best .rt-best-c.empty { border: 0; }
.rt-best .rt-best-c.empty .n { font-size: 13px; color: var(--text-2); }
@media (max-width: 899.98px) { .rt-best .rt-best-c .mk { font-size: 15px; } .rt-best .rt-best-c .k { font-size: 11px; } }

/* The three cheapest: the label (wrapping) and the distance to the left of the price marker. */
.rt-best .rt-best-c { display: flex; align-items: center; justify-content: center; gap: 8px; text-align: left; }
.rt-best .rt-best-c .t { display: grid; min-width: 0; line-height: 1.15; }
.rt-best .rt-best-c .k { white-space: normal; }
.rt-best .rt-best-c .d { font-size: 11px; color: var(--text-2); white-space: nowrap; }
.rt-best .rt-best-c .mk { flex: none; }
.rt-best .rt-best-c.empty { flex-direction: column; gap: 2px; text-align: center; }
@media (max-width: 899.98px) {
  .rt-best .rt-best-row { padding: 5px 2px; }
  .rt-best .rt-best-c { gap: 5px; padding: 2px 3px; }
  .rt-best .rt-best-c .d { font-size: 10.5px; }
  .rt-best .rt-best-c .mk { font-size: 14.5px; padding: 2px 7px; }
}

/* Route choices, one line each (and a single route the same). */
.rt-opts button .ln { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.rt-opts button .ln b { font-weight: 800; }
.rt-opts.with-more .rt-opt > button:first-child { display: flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 8px; }
.rt-opts .rt-opt-more { width: 32px; }
.rt-opts.one .rt-opt > button:first-child { color: #fff; }
@media (max-width: 899.98px) { .rt-opts button .ln { font-size: 12.5px; } .rt-opts.with-more .rt-opt > button:first-child { flex-direction: row; min-height: 32px; } }
@media (min-width: 900px) { .rt-opts > [data-rt-opt] { min-height: 34px; } }
/* The three cheapest: every cell the same, its text at the left and the price at the right. */
.rt-best .rt-best-c { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-content: stretch; gap: 6px; padding: 2px 6px; }
.rt-best .rt-best-c .t { justify-items: start; }
.rt-best .rt-best-c .mk { justify-self: end; }
.rt-best .rt-best-row { gap: 4px; }
.rt-best .rt-best-c + .rt-best-c { border-left: 1px solid #EEF1F5; border-radius: 0; }
.rt-best .rt-best-c.empty { display: grid; grid-template-columns: 1fr; justify-items: start; }
/* The map key: a button, the key below it when open. */
.rt-keywrap { position: absolute; z-index: 5; left: 8px; top: 8px; display: grid; justify-items: start; gap: 6px; max-width: calc(100% - 70px); }
.rt-keywrap[hidden] { display: none; }
.rt-key { height: 30px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--pill); background: rgba(255, 255, 255, .95); box-shadow: 0 1px 4px rgba(16, 24, 40, .12); color: var(--brand); font: 700 12.5px var(--font); cursor: pointer; }
.rt-key[aria-expanded="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.rt-keywrap .rt-legend { position: static; max-width: 100%; }
.rt-keywrap .rt-legend[hidden] { display: none; }
@media (min-width: 900px) { .rt-keywrap { top: auto; bottom: calc(var(--attrib-h, 18px) + 8px); left: calc(16px + 500px + 12px); justify-items: start; grid-auto-flow: row; } .rt-keywrap .rt-legend { order: -1; } }
.rt-opts button .ln, .rt-opts button[aria-checked="true"] .ln { color: inherit; }
@media (max-width: 899.98px) {
  .rt-strip .rt-opts { padding: 3px; }
  .rt-opts.with-more { gap: 4px; }
  .rt-opts button .ln { font-size: 12px; letter-spacing: -.01em; }
  .rt-opts.with-more .rt-opt > button:first-child { padding: 0 4px; }
  .rt-opts .rt-opt-more { width: 28px; }
  .rt-best .rt-best-c { gap: 4px; padding: 2px 4px; }
  .rt-best .rt-best-c .d { font-size: 10px; }
}

/* The floating route card: bottom left of the map, opening upwards (phones and wide screens). */
.rt-strip { right: auto; max-width: min(260px, calc(100% - 16px)); }
.rc { width: 230px; max-width: 100%; padding: 8px 10px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); box-shadow: var(--shadow); }
.rc-top { display: flex; align-items: center; gap: 6px; }
.rc-top > b { font-size: 16px; font-weight: 800; color: var(--brand); }
.rc-tag { font-size: 11.5px; font-weight: 700; color: var(--text-2); }
.rc-more { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; padding: 2px 6px; border: 1px solid #C9D9F0; border-radius: var(--pill); background: none; color: var(--brand); font: 700 11.5px var(--font); cursor: pointer; }
.rc-sub { margin: 1px 0 6px; font-size: 12px; color: var(--text-2); }
.rc-det { display: flex; align-items: center; justify-content: center; gap: 4px; width: calc(100% + 20px); margin: 0 -10px; height: 32px; border: 0; border-top: 1px solid #EEF1F5; background: none; color: var(--brand); font: 700 12.5px var(--font); cursor: pointer; }
.rc-open { padding: 0; overflow: hidden; }
.rc-head { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 34px; padding: 0 10px; border: 0; border-bottom: 1px solid var(--line); background: none; font: 800 13px var(--font); color: var(--text); cursor: pointer; }
.rc-row { display: grid; gap: 1px; width: 100%; padding: 7px 10px; border: 0; border-bottom: 1px solid #EEF1F5; background: none; text-align: left; cursor: pointer; }
.rc-row:last-child { border-bottom: 0; }
.rc-row .a { font-size: 12.5px; font-weight: 700; color: var(--text); }
.rc-row .b { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); }
.rc-row .b b { color: var(--text); }
.rc-row[aria-checked="true"] { box-shadow: inset 3px 0 0 var(--brand); background: #F2F6FC; }
.rc-row[aria-checked="true"] .b b, .rc-row[aria-checked="true"] .a { color: var(--brand); }

@media (min-width: 900px) {
  /* Wide screens: the card floats over the map beside the panel, with Route details as on phones (the journey opens in
     the panel's column), so the panel itself has no journey figures. The key moves to the map's top left. */
  .rt-strip { display: block !important; right: auto; left: calc(16px + 500px + 12px); bottom: calc(var(--attrib-h, 18px) + 8px); max-width: 280px; }
  .rt-strip[hidden] { display: none !important; }
  .rc { width: 250px; }
  .rt-card.is-route .rt-sum, .rt-card.is-route .rt-roadsbox { display: none !important; }
  .rt-keywrap { top: 8px; bottom: auto; }
  .rt-keywrap .rt-legend { order: 0; }
  .rt-card.is-route > .rt-opts { display: none; }
}

/* Narrower: the time, the road and distance, the other routes under them, then Route details at the left. */
.rc { width: auto; min-width: 150px; max-width: 200px; display: inline-grid; justify-items: start; }
.rc.rc-open { display: block; width: 230px; max-width: 100%; }
.rc-more { margin: 0 0 6px; }
.rc-det { justify-content: flex-start; width: calc(100% + 20px); padding: 0 10px; }
.rc-sub { white-space: nowrap; }

/* Route Prices: Minimise (top right of the results) folds the panel to the cheapest Near Start, En Route and Near
   Finish, under a line that shows the rest again. */
.rt-mini { display: none; }
.rt-card.is-route .rt-mini { position: absolute; top: 10px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 3px; height: 28px; padding: 0 8px 0 10px; border: 1px solid var(--line, #E3E7EE); border-radius: var(--pill); background: var(--bg); color: var(--brand); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.rt-card.is-route .rt-mini svg { width: 16px; height: 16px; }
.rt-card.is-route.folded .rt-res > :not(.rt-best), .rt-card.is-route.folded .rt-best-h { display: none !important; }
.rt-card.is-route.folded .rt-best { margin-top: 4px; }
.rt-fold-more { display: none; }
.rt-card.is-route.folded .rt-fold .rt-fold-more { display: block; flex: none; font-size: 13px; font-weight: 700; color: var(--brand); }
@media (min-width: 900px) {
  .rt-card.is-route .rt-h { padding-right: 110px; }
  .rt-card.is-route.folded > :not(.rt-fold):not(.rt-res) { display: none !important; }
  .rt-card.is-route.folded .rt-fold { order: 0; display: flex; align-items: center; gap: 8px; width: 100%; height: 34px; margin: 0; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
  .rt-card.is-route.folded .rt-fold .grab { display: none; }
  .rt-card.is-route.folded .rt-fold .rt-fold-t { display: block; flex: 1; min-width: 0; font-size: 15px; }
  .rt-card.is-route.folded .rt-fold .rt-fold-t b { color: var(--brand); }
  .rt-card.is-route.folded .rt-fold > svg { display: block; flex: none; color: var(--brand); transform: rotate(180deg); }
  .rt-card.is-route .rt-mini svg { transform: none; }
}
@media (max-width: 899.98px) {
  .rt-card.is-route .rt-res .s-head { padding-right: 0; }
  .rt-card.is-route .rt-mini { top: 14px; }
  .rt-card.is-route .rt-mini svg { transform: rotate(180deg); }
}
/* The route card moves to free space beside the route (route.js cardSpot). */
.rt-strip { transition: left .25s ease, bottom .25s ease; }
/* The floating route card (Option 2): white, with a thin accent at its left in the chosen route's dark blue, so it
   reads as that route's card and stays the calmest thing on the map. The time and Route details in deep blue, the
   rest muted; +1 route a pale blue pill on the line with the roads and distance. */
.rc { width: auto; min-width: 170px; max-width: 260px; background: #fff; border: 1px solid #DCE3EC; border-left: 4px solid #073B91; box-shadow: 0 4px 14px rgba(16, 40, 90, .14), 0 1px 3px rgba(16, 40, 90, .08); }
.rc-top > b { color: #103F99; }
.rc-tag, .rc-sub { color: #5A6B86; }
.rc:not(.rc-open) { justify-items: stretch; }
.rc-mid { display: flex; align-items: center; gap: 12px; margin: 1px 0 6px; }
.rc-mid .rc-sub { flex: 1; margin: 0; }
.rc-mid .rc-more { flex: none; margin: 0; padding: 3px 8px; border: 0; background: #E8F0FB; color: #103F99; }
.rc-det { justify-content: center; border-top-color: #E6EBF2; color: #103F99; }
/* Narrow (where the map has more room up and down than across): the roads and distance over +1 route. */
.rc.rc-narrow { max-width: 200px; }
.rc.rc-narrow .rc-mid { flex-direction: column; align-items: flex-start; gap: 5px; }
/* The route card, smaller: a smaller time, tighter padding, a shorter Route details row. */
.rc { min-width: 150px; padding: 6px 8px 0; border-left-width: 3px; border-radius: 12px; }
.rc-top { gap: 5px; }
.rc-top > b { font-size: 14px; }
.rc-tag { font-size: 10.5px; }
.rc-sub { font-size: 11px; }
.rc-mid { gap: 8px; margin: 1px 0 5px; }
.rc-mid .rc-more { padding: 2px 6px; font-size: 10.5px; }
.rc-det { width: calc(100% + 16px); height: 26px; margin: 0 -8px; padding: 0 8px; font-size: 11px; }
.rc-det svg { width: 13px; height: 13px; }
.rc.rc-narrow { max-width: 180px; }
.rc.rc-narrow .rc-mid { gap: 4px; }
/* Location Pricing | Route Pricing (page.ts modeSwitch, in the logo row): the same switch at the top of both pages.
   On phones a full-width row of its own under the logo and menu; on wide screens beside the logo ("Location | Route"
   where the header is tight). Route Pricing folds it away with its header once a route is shown on a phone (the ✎
   line brings both back). */
.brandbar:has(> .pricing-switch) { flex-wrap: wrap; }
.pricing-switch { order: 3; flex: 1 0 100%; display: flex; margin: 8px 0 0; padding: 3px; border: 1px solid #C9D9F0; border-radius: var(--pill); background: var(--bg); }
.pricing-switch a { flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 10px; border-radius: var(--pill); color: var(--brand); font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.pricing-switch a svg { flex: none; }
.pricing-switch a[aria-current] { background: var(--brand); color: #fff; }
.pricing-switch a:not([aria-current]):hover { background: #F2F6FC; }
@media (max-width: 380px) { .pricing-switch a { gap: 5px; font-size: 13.5px; } }
@media (min-width: 900px) {
  .brandbar:has(> .pricing-switch) { flex-wrap: nowrap; justify-content: flex-start; }
  .pricing-switch { order: 3; flex: none; margin: 0 0 0 4px; }
  .pricing-switch a { gap: 6px; height: 34px; padding: 0 12px; font-size: 13.5px; }
  .pricing-switch a svg { width: 16px; height: 16px; }
}
@media (min-width: 900px) and (max-width: 1199.98px) { .pricing-switch .ms-x { display: none; } .pricing-switch a { padding: 0 10px; } }
/* V364: the same rule on all three pricing pages: the mode you're in solid blue, no chevron; the other white with a ›.
   On Explore Pricing both are the other, so both are white with a ›, and the switch has no blue in it. */
.pricing-switch .ms-go { flex: none; margin-left: -2px; opacity: .85; }
.pricing-switch a[aria-current] .ms-go { display: none; }
@media (max-width: 380px) { .pricing-switch .ms-go { margin-left: -3px; } }
/* The narrowest phones (under 350px): the words and the › only, so neither label is cut. */
@media (max-width: 349.98px) { .top .brandbar .pricing-switch a { gap: 4px; padding: 0 4px; } .top .brandbar .pricing-switch a > svg:not(.ms-go) { display: none; } }

/* Route Pricing on phones: the panel under the map is as tall as what it holds (the confirmation, or the prices), up
   to a cap, so its content sits at the foot of the screen with no empty space below it; the map has the rest. */
@media (max-width: 899.98px) {
  .rt-card, .rt-card.is-route { height: auto; max-height: calc(48% + var(--sa-b)); }
}
/* Recent searches (Location Pricing) and recent routes (Route Pricing), in the search box's own list: a small heading,
   each entry with the history icon and tall enough to tap, and Clear at the foot. Place suggestions replace them once
   two letters are typed. */
.suggest .sug-head { padding: 6px 10px 3px; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--text-2); cursor: default; background: none !important; }
.suggest .sug-recent { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; }
.suggest .sug-recent .sug-ic { flex: none; color: var(--text-2); }
.suggest .sug-recent b { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.suggest .sug-recent b span { display: inline; font-size: inherit; color: inherit; }
.suggest .sug-recent > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .sug-foot { padding: 2px 4px 2px; border-top: 1px solid var(--line); margin-top: 4px; border-radius: 0; cursor: default; background: none !important; }
.suggest .sug-foot button { width: 100%; min-height: 40px; padding: 0 6px; border: 0; background: none; color: var(--brand); font: 700 13px var(--font); text-align: left; cursor: pointer; }

/* Options' Route card at bottom right: the corner card on that side (8px in, as at bottom left on phones). */
.rt-strip.rt-strip-r { left: auto; right: 8px; }
@media (min-width: 900px) { .rt-strip.rt-strip-r { left: auto; right: 12px; } }

/* The journey card's main roads with about how many miles on each: wrapping between roads, never inside one. */
.rt-roads.rt-roads-mi { white-space: normal; overflow: visible; line-height: 1.5; }
.rt-roads-mi .u { font-weight: 500; }
.rt-roads-mi .rd { white-space: nowrap; }
.rt-roads-mi .n { font-weight: 600; color: var(--text-2); }

/* Wide screens: Route Pricing's header laid out as Location Pricing's (.top above), so nothing moves when switching
   between them. Logo, menu and switch | a 410 px column with the two places over Fuel, Distance and Options, the
   rows 16 px apart. The ⓘ sits just right of the places, outside the column. */
@media (min-width: 900px) {
  .top.rt-top { grid-template-columns: auto 410px auto; justify-content: start; align-items: center; gap: 16px; padding: 10px 20px; }
  .rt-top > .brandbar { grid-column: 1; grid-row: 1; }
  .rt-top .rt-head { display: contents; }
  .rt-top .rt-form { grid-column: 2; grid-row: 1; position: relative; max-width: none; }
  .rt-top .rt-chips { grid-column: 2; grid-row: 2; }
  .rt-top .rt-form .rt-row { gap: 8px; }
  .rt-top .rt-form .rt-info { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); margin: 0; }
  /* The Ireland disclaimer (V320): in the header, not over the map: beside Fuel, Distance and Options where it fits on
     one line, else on its own line under them. */
  .rt-top .rt-note.rt-ie { grid-column: 2 / span 2; grid-row: 3; position: static; margin-top: -8px; padding: 0; background: none; box-shadow: none; text-align: left; white-space: nowrap; }
}
@media (min-width: 1280px) { .rt-top .rt-note.rt-ie { grid-column: 3; grid-row: 2; margin-top: 0; } }

/* The bottom panels' room under their last line, on phones: the safe area less 12px. On iOS 26 Safari the safe area
   includes the floating toolbar, and the panel's own padding added to it left a band of white above the toolbar; the
   home indicator on other iPhones keeps about 22px. 0 where there is no safe area (desktop browsers). */
:root { --sa-b: max(0px, calc(env(safe-area-inset-bottom, 0px) - 12px)); }

/* PH04 Feedback page (src/test2/feedback.ts). */
.fb-page h1 { margin: 6px 0 4px; font-size: 24px; color: var(--brand); }
.fb-lead { margin: 0 0 14px; color: var(--text-2); }
.fb-form { display: grid; gap: 14px; }
.fb-cats { margin: 0; padding: 0; border: 0; min-width: 0; }
.fb-cat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 480px; }
.fb-cat-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--text-2); }
.fb-cats legend { margin-bottom: 8px; padding: 0; font-weight: 700; }
.fb-cat { position: relative; }
.fb-cat input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fb-cat span { display: flex; justify-content: center; align-items: center; height: 38px; padding: 0 14px; border: 1px solid #C9D9F0; border-radius: var(--pill); color: var(--brand); font-weight: 700; font-size: 14px; }
.fb-cat input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.fb-cat input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.fb-note { margin: 0; padding: 10px 12px; border: 1px solid #F0D9A8; border-radius: 12px; background: #FFF8EA; font-size: 13.5px; line-height: 1.45; }
.fb-field { display: grid; gap: 6px; }
.fb-label { font-weight: 700; }
.fb-opt { font-weight: 500; color: var(--text-2); }
.fb-field textarea, .fb-field input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 16px; color: var(--text); background: var(--bg); }
.fb-field textarea { min-height: 0; max-height: 300px; resize: none; overflow-y: auto; line-height: 1.4; }
.fb-ff { margin: -4px 0 0; font-size: 13px; color: var(--text-2); }
.fb-send:disabled { opacity: .45; cursor: default; }
.fb-field textarea:focus, .fb-field input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.fb-count { justify-self: end; font-size: 12px; color: var(--text-2); }
.fb-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.fb-err { margin: 0; padding: 8px 12px; border-radius: 10px; background: #FDECEC; color: #8A1C1C; font-size: 14px; }
.fb-send { justify-self: start; min-width: 180px; }
.fb-privacy { margin: 0; font-size: 12.5px; color: var(--text-2); }
.fb-done { display: grid; justify-items: center; gap: 6px; margin-top: 24px; text-align: center; }
.fb-done h2 { margin: 4px 0 0; font-size: 20px; color: var(--brand); }
.fb-done p { margin: 0 0 12px; color: var(--text-2); }
.fb-done:focus { outline: none; }

/* MN01 Sponsorship page (src/test2/sponsorship.ts): the Feedback page's form; four enquiry types, two by two on phones. */
.sp-type-row { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 560px; }
@media (max-width: 520px) { .sp-type-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fb-field textarea::placeholder { color: #98A2B3; }

/* Wide screens: the route list's line and sort switch above its rows, fixed while they scroll (as on phones). */
.rt-dock-top { flex: none; padding: 8px var(--pad) 0; border-bottom: 1px solid var(--line); }
.rt-dock-sub { margin: 0; font-size: 13px; color: var(--text-2); }
.rt-dock .rt-dock-top .rt-sort { padding: 8px 0 10px; }

/* Location Pricing's Minimise (app.js), as Route Pricing's: the ⓘ at the left of the count, Minimise at the right; folded,
   one line ("8 forecourts · from 181.9p  See price filters") above the tiles, and on phones the panel only as tall as that. */
/* Both pricing panels: the count, the ⓘ just after it, Minimise pushed to the right. */
.s-head .s-title { flex: 0 1 auto; }
.s-head .info { margin-left: -2px; }
.s-head .s-mini { margin-left: auto; }
.s-mini { flex: none; display: inline-flex; align-items: center; gap: 3px; height: 28px; padding: 0 8px 0 10px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--bg); color: var(--brand); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.s-fold { display: flex; align-items: center; gap: 8px; width: 100%; height: 36px; margin: 0 0 6px; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: var(--text); cursor: pointer; }
.s-fold .s-fold-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.s-fold .s-fold-t b { color: var(--brand); }
.s-fold .s-fold-more { flex: none; font-size: 13px; font-weight: 700; color: var(--brand); }
.s-fold svg { flex: none; color: var(--brand); }
@media (max-width: 899.98px) { .sheet.folded { height: auto; } .sheet.folded .sheet-body { height: auto; } }
/* V334: one line on desktop too (17px wrapped "14/14 forecourts within 5 miles" beside ⓘ and Minimise, 213px of room): 15px there and on phones (was 15.5px), "…" only if a count is very long. */
.s-head .s-title { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Phones: the panel as tall as what's in it (up to 60% of the screen), as Route Pricing's, so a note line or the
   Minimise row never pushes List Sites, Tools and Explore Pricing off its foot. Choosing a place keeps its own height. */
@media (max-width: 899.98px) {
  .sheet:not(.choosing) { height: auto; max-height: calc(60% + var(--sa-b)); }
  .sheet:not(.choosing) .sheet-body { height: auto; }
}
/* V334: the short wording only when the full one doesn't fit on the line (shared.js adds .is-short), both pages. */
.s-title .w-short { display: none; }
.s-title.is-short .w-long { display: none; }
.s-title.is-short .w-short { display: inline; }

/* Route Pricing: the map's Price | 7d change (in place of the Key button), as Location Pricing's; and the panel's ⓘ
   right after the count. */
.rt-keywrap .mode-switch { margin: 0 !important; }
.rt-mode button[aria-checked="true"] { background: var(--brand); color: #fff; }
.rt-res .s-head { justify-content: flex-start; }
/* Route Pricing's Minimise in the header row (route.js resultsHtml), as Location Pricing's: after the count and the ⓘ,
   pushed to the right, centred on the row; the same size and type as Location's (.s-mini). */
.rt-card.is-route .rt-res .s-head .rt-mini { position: static; flex: none; margin-left: auto; top: auto; right: auto; }
.rt-res .s-head { gap: 8px; }
.rt-res .s-head .s-title { font-size: 15px; }
.rt-card.is-route .rt-res .s-head .rt-mini svg { transform: none; }
@media (min-width: 900px) { .rt-card.is-route .rt-h { padding-right: 0; } }
/* Phones: both pricing panels' header rows a little tighter, so "11/11 forecourts within 2 miles" fits at 375px. */
@media (max-width: 899.98px) { .s-head, .rt-res .s-head { gap: 6px; } .s-head .info { width: 30px; } }
/* Folded: "See price filters" with Minimise's thin border, so the pair look alike (both pricing pages). */
.s-fold .s-fold-more, .rt-card.is-route.folded .rt-fold .rt-fold-more { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--pill); background: var(--bg); font-size: 12.5px; }
/* Phones: Minimise a little more compact and the count 15px, so "29/35 forecourts within 5 miles" fits at 375px. */
@media (max-width: 899.98px) {
  .s-head .s-mini, .rt-card.is-route .rt-res .s-head .rt-mini { height: 28px; padding: 0 6px 0 8px; font-size: 12px; gap: 2px; }
  .s-head .s-title, .rt-res .s-head .s-title { font-size: 15px; }
}
/* The chevron inside the "See price filters" pill, as Minimise has its own (16px, after the words). */
.s-fold .s-fold-more, .rt-card.is-route.folded .rt-fold .rt-fold-more { gap: 2px; padding: 0 6px 0 10px; }
.s-fold .s-fold-more svg, .rt-fold .rt-fold-more svg { width: 16px; height: 16px; flex: none; color: var(--brand); transform: none; }

/* V246: the price keys (Location Pricing's ⓘ key, Route Pricing's map key) close with a × at the top right, as the
   other pop-ups (the tour, Options, About) do; Escape closes them too. */
.legend { position: relative; }
.legend > p:first-of-type { padding-right: 34px; }
.key-x { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--text-2); cursor: pointer; pointer-events: auto; }
.key-x:hover { background: var(--surface-2, rgba(16, 24, 40, .06)); color: var(--text); }
.key-x svg { width: 16px; height: 16px; }
.rt-legend { padding-right: 34px; }
.rt-keywrap .rt-legend { position: relative; inset: auto; }
.rt-legend .key-x { top: 2px; right: 2px; width: 28px; height: 28px; }

/* V247 (filter icon V248): the brand chip, to the right of Price | 7d change (Location Pricing's map control and Route Pricing's key
   corner), only while a brand filter is on. Pale blue with brand-blue text and edge (a filter), not the switch's solid
   blue (a display mode). The name truncates; the switch never moves. */
.maplibregl-ctrl.mode-ctrl { display: grid; justify-items: start; gap: 6px; margin: 12px 0 0 12px !important; max-width: calc(100vw - 12px - 64px); clear: none; }
.mode-row { display: flex; align-items: center; gap: 8px; max-width: 100%; }
.mode-row .mode-switch { margin: 0 !important; }
.rt-keywrap .mode-row { display: flex; align-items: center; gap: 8px; max-width: 100%; }
.brand-chip { display: inline-flex; align-items: center; min-width: 0; height: 36px; border: 1px solid var(--t2-line); border-radius: 999px; background: var(--t2-bg); color: var(--brand); box-shadow: var(--shadow); }
.brand-chip button { display: inline-flex; align-items: center; border: 0; background: none; color: inherit; font: 700 13px var(--font); cursor: pointer; height: 100%; }
.brand-chip .bc-name { min-width: 0; gap: 6px; padding: 0 2px 0 12px; }
.brand-chip .bc-ic { flex: none; }
.brand-chip .bc-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-chip .bc-x { flex: none; justify-content: center; width: 32px; padding: 0 4px 0 0; border-radius: 0 999px 999px 0; }
.brand-chip .bc-x:hover, .brand-chip .bc-name:hover { background: rgba(7, 59, 145, .08); }
.brand-chip .bc-name:hover { border-radius: 999px 0 0 999px; }
.brand-chip button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
/* Desktop: to the right of the floating panel (16 + 380 + 16). */
@media (min-width: 900px) { .maplibregl-ctrl.mode-ctrl { margin: 16px 0 0 412px !important; max-width: 440px; } }

/* V249: an excluded price's chip ("1 excluded: 156.9p Restore") sits under Price | 7d change, on Location Pricing
   (phones; wide screens keep the panel's line) and Route Pricing, instead of at the foot of the map. */
.mode-notes { display: grid; justify-items: start; gap: 6px; max-width: 100%; }
.mode-notes:empty { display: none; }
.mode-notes .excl.mini { margin: 0; max-width: 100%; padding: 3px 4px 3px 8px; border-radius: 999px; font-size: 12.5px; background: var(--bg); box-shadow: var(--shadow); }
.mode-notes .excl.mini:has(ul) { border-radius: 12px; padding: 6px 8px; }
/* The top-left controls (Price | 7d change, the brand chip, the excluded chip) above the price markers and pins, which
   share the map's stacking (markers to 50000, route pins 150000). */
.maplibregl-ctrl-top-left { z-index: 200000; }

/* V250: Exclude this forecourt, on both pages' forecourt cards (a quiet button with the warning triangle), and Map
   preferences' Excluded forecourts list. */
.fc-ex { margin: 12px 0 4px; }
.fc-ex .btn { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.fc-ex .btn .warn { position: static; display: inline-block; width: 16px; height: 15px; flex: none; }
.fc-ex .btn .warn svg { display: block; width: 100%; height: 100%; }
.fc-ex .small { margin: 6px 0 0; font-size: 12px; color: var(--text-2); }
.anomaly h3 .warn { margin-right: 6px; vertical-align: -2px; }
.exfc-none { margin: 0 0 6px; font-size: 14px; color: var(--text-2); }
.exfc-ul { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }
.exfc-ul li { display: flex; align-items: center; gap: 10px; }
.exfc-ul .nm { flex: 1; min-width: 0; display: grid; font-size: 14px; color: var(--text); }
.exfc-ul .sub { font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exfc .linkish { flex: none; }

/* V256: the Back link stays in view on long pages (About, Feedback, Sponsorship, Tools, a forecourt, price history):
   it sticks just under the sticky header (its height in --fc-top-h, from shared.js), on a band of the page colour. */
.fc-page > .fc-back { position: sticky; top: var(--fc-top-h, 64px); z-index: 4; display: flex; width: auto; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); background: var(--bg); }
.fc-page > .fc-back.stuck { box-shadow: 0 6px 8px -8px rgba(16, 24, 40, .35); }

/* V259: Price gap, the third map view (Price | Price gap | 7d change): "+2.0", pence above the cheapest. */
.mk .gap { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

/* V260: Price | Price gap | 7d change: the views not chosen get a thin pale-blue outline, so they read as buttons
   (the chosen one stays solid brand blue). Both maps. */
.mode-switch { gap: 3px; }
.mode-switch button[aria-checked="false"] { box-shadow: inset 0 0 0 1px var(--t2-line); color: var(--brand); }
.mode-switch button[aria-checked="false"]:hover { background: var(--t2-bg); }

/* V261: three separate pills, no shared white box behind them: each view its own white pill with the thin outline
   (the chosen one solid brand blue), each with its own small shadow so it reads over the map. Both maps. */
.mode-switch { gap: 6px; padding: 0; background: transparent; box-shadow: none; }
.mode-switch button { background: var(--bg); box-shadow: inset 0 0 0 1px var(--t2-line), 0 1px 4px rgba(16, 24, 40, .14); }
.maplibregl-ctrl .mode-switch button, .rt-mode button { border-radius: 10px; }
.maplibregl-ctrl .mode-switch button[aria-checked="true"]:not(:disabled), .rt-mode button[aria-checked="true"] { box-shadow: 0 1px 4px rgba(16, 24, 40, .18); }
.mode-switch button[aria-checked="false"] { box-shadow: inset 0 0 0 1px var(--t2-line), 0 1px 4px rgba(16, 24, 40, .14); }
.mode-switch button[aria-checked="false"]:hover { background: var(--t2-bg); }

/* V262: the brand chip on its own line under the views (after an excluded price, if any), on both maps. */
.mode-ctrl > .brand-chip, .rt-keywrap > .brand-chip { max-width: 100%; }

/* V263: the welcome card (page.ts tourDialog): three steps, each picture made from the app's own parts in a pale
   frame (inert: a picture, not controls), fitting a 375 x 550 phone screen without scrolling. */
.tour3 .tour-body { padding-bottom: 14px; overflow-x: hidden; }
.tour3 h2 { margin: 6px 0 8px; }
.tour3 .tour-steps { gap: 10px; }
.tour3 .tour-steps li { min-width: 0; }
.tour3 .tour-steps h3 { color: var(--brand); font-weight: 650; }
.tour3 .tour-steps p { margin: 0 0 6px 30px; }
.tour-ill { pointer-events: none; user-select: none; border-radius: 12px; background: #EEF3FB; border: 1px solid #DCE5F3; padding: 7px; overflow: hidden; }
.tour-ill-1 { display: flex; align-items: center; gap: 8px; zoom: .8; }
.tour-ill-1 .chip { flex: none; white-space: nowrap; }
.tour-ill-1 .pricing-switch { flex: 1; min-width: 0; margin: 0; }
.tour-ill-2 { position: relative; height: 92px; padding: 0; }
.tour-map { position: absolute; inset: 0; }
.tour-map .mk { position: absolute; font-size: 14px; transform: none; }
.tour-map .maplibregl-marker.mk.tour-tap { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand) !important; } /* above the marker style's own shadow */
.tour-ring { position: absolute; inset: -7px; border-radius: 999px; border: 2px solid var(--brand); animation: tour-ring 1.8s ease-out infinite; }
@keyframes tour-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tour-ring { animation: none; opacity: .35; } }
.tour-ill-3 { zoom: .8; }
.tour-ill-3 .filters { margin: 0; display: grid; grid-template-columns: 1.35fr repeat(5, 1fr); gap: 5px; }
.tour-replay { margin: 2px 0 0; text-align: center; font-size: 12.5px; color: var(--text-2); }
/* Short screens (an iPhone SE in Safari, about 550 px): no logo (the title shares the x's row), a shorter map. */
@media (max-height: 620px) {
  .tour3 .tour-head { position: absolute; right: 12px; top: 10px; }
  .tour3 .tour-head .logo { display: none; }
  .tour3 .tour-body { position: relative; padding-top: 14px; }
  .tour3 h2 { margin: 0 40px 8px 0; font-size: 17px; }
  .tour3 .tour-steps { gap: 7px; }
  .tour3 .tour-steps h3 { font-size: 14.5px; }
  .tour3 .tour-steps p { font-size: 12.5px; margin-bottom: 4px; }
  .tour-ill-2 { height: 70px; }
  .tour-map .mk { font-size: 13px; }
  .tour3 .tour-foot { padding-top: 8px; }
  .tour3 .tour-go { min-height: 42px; }
}

/* V265: Route Pricing's first-use card, the companion to the welcome card (.tour3): left-aligned title, a one-line
   lede, two numbered steps, then the privacy note, smaller than before. */
.rt-dlg.tour3 h2 { text-align: left; margin: 6px 0 6px; }
.rt-dlg.tour3 .tour-body > .rt-dlg-lede { margin: 0 0 10px; font-size: 14px; line-height: 1.4; color: var(--text-2); }
.rt-dlg.tour3 .rt-dlg-box { margin-top: 12px; padding: 10px 12px; gap: 10px; }
.rt-dlg.tour3 .rt-dlg-box svg { width: 22px; height: 22px; }
.rt-dlg.tour3 .rt-dlg-box b { font-size: 13.5px; }
.rt-dlg.tour3 .rt-dlg-box p { font-size: 12.5px; color: var(--text-2); }

/* V267: the empty map's card is an instruction: the A to B picture, a heading and one line, tap anywhere to start. */
.rt-start { cursor: pointer; }
.rt-start h2 { color: var(--brand); }
.rt-start > p { margin: 4px 0 0; line-height: 1.4; }
.rt-start:hover { box-shadow: var(--shadow), 0 0 0 2px var(--t2-line); }

/* V274: Route cost. On the small route card, top right; in the route's figures (in place of the arrival time), with a
   one-line note of how it's worked out. Options' Fuel economy: two mpg boxes. */
.rc-cost { margin-left: auto; padding-left: 8px; font-size: 13px; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc-narrow .rc-cost { font-size: 12px; }
.rt-cost-note { margin: 4px 0 8px; font-size: 12px; line-height: 1.35; color: var(--text-2); }
.fl-num { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; }
.fl-num input { width: 84px; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; font: 600 16px var(--font); color: var(--text); text-align: right; background: var(--bg); }
.fl-num input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.rt-card.is-route .rt-cost-note { display: none; } /* the panel's figures are hidden at every size: the note goes with them, in Route details */

/* V276: Route details' route cost: at the cheapest price (green), at the dearest (red), and the difference. */
.rt-costs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 12px; margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.rt-costs > div { display: grid; gap: 1px; min-width: 0; }
.rt-costs .k { font-size: 12px; color: var(--text-2); }
.rt-costs b { font-size: 17px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.rt-costs b.cheap { color: var(--down); }
.rt-costs b.dear { color: #B42318; }
.rt-card.is-route .rt-costs { display: none; } /* with the panel's hidden figures: shown in Route details */
.rt-costs-h { grid-column: 1 / -1; margin: 0 0 -2px; font-size: 13px; font-weight: 700; color: var(--text); }

/* V279: the route's three figures (Distance, Driving time, Average speed) on one row at every size, in the same three
   columns as the Route cost box below them. */
.rt-sum.rt-jsum, .rt-card .rt-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; gap: 8px 12px; }
.rt-sum.rt-jsum { padding: 0 12px; }
.rt-costs .ppl { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; } /* V280: the price each cost is at */
/* V281: the small card's top line keeps the time and the cost whole; the Fastest / +time tag gives way first. */
.rc-top > b, .rc-cost { flex: none; white-space: nowrap; }
.rc-tag { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* V284: Route cost's heading row: the heading at the left, the fuel and its economy at the right, small and muted. */
.rt-costs > .rt-costs-top { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 2px 10px; margin: 0 0 -2px; }
.rt-costs-top .rt-costs-h { margin: 0; }
.rt-costs-spec { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.rt-costs .rt-costs-h { color: var(--brand); } /* V286: the Route cost heading in brand blue */

/* V288: the Brand pill, beside Price | Price gap | 7d change on both maps and in their style (white, thin pale-blue
   outline, brand-blue text); with a brand chosen, its name on pale blue, shortened when long. A native menu over it. */
.brand-pill { position: relative; flex: 0 1 auto; min-width: 0; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 9px; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--t2-line), 0 1px 4px rgba(16, 24, 40, .14); color: var(--brand); font: 700 13px var(--font); cursor: pointer; }
.brand-pill .bp-ic, .brand-pill .chev { flex: none; }
.brand-pill .bp-t { min-width: 0; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-pill.on { background: var(--t2-bg); }
.brand-pill:hover { background: var(--t2-bg); }
.brand-pill select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.brand-pill:has(select:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.mode-row { flex-wrap: nowrap; gap: 6px; }
/* Phones: the four fit in one row (about 300px beside the map's buttons at 375px): slightly tighter pills. */
/* Price, Price gap and 7d change each with an icon (V340: £, rising bars, up and down arrows), as Brand has its funnel. */
.mode-switch button { display: inline-flex; align-items: center; justify-content: center; }
.mode-switch .ms-ic { flex: none; width: 14px; height: 14px; margin-right: 5px; }
.mode-switch .ms-s { display: none; }
@media (max-width: 899.98px) {
  .mode-switch { gap: 3px; }
  .mode-switch button { padding: 0 5px; font-size: 12px; min-width: 0; }
  .mode-switch .ms-ic { width: 12px; height: 12px; margin-right: 3px; }
  .brand-pill { padding: 0 6px; font-size: 12px; gap: 4px; }
  .brand-pill .bp-t { max-width: 84px; }
}
/* Narrow phones (under 390px: iPhone SE and mini, small Androids): "Gap" and "7d", so the row still fits beside the map's
   buttons; the full wording stays in each button's accessible name. */
@media (max-width: 389.98px) {
  .mode-switch .ms-l { display: none; }
  .mode-switch .ms-s { display: inline; }
}
@media (max-width: 899.98px) { .brand-pill .bp-ic { display: none; } } /* phones: the ▾ says it's a menu; room for "Brand" in full */

/* V290: desktop: every card over the map starts 16px below its top edge, as the panel does: the view pills (Route's
   too) and the map's buttons at the right (16px in from that edge). */
@media (min-width: 900px) {
  .rt-keywrap { top: 16px; }
  .maplibregl-ctrl-top-right > .maplibregl-ctrl { margin-right: 16px !important; }
  .maplibregl-ctrl-top-right > .maplibregl-ctrl:first-child { margin-top: 16px !important; }
}

/* V291: wide screens: the small route card under the view pills, in the map's top-left group (route.js placeStrip). */
@media (min-width: 900px) {
  .rt-keywrap .rt-strip { position: static !important; inset: auto !important; max-width: none; transition: none; }
  /* V323: Price | Price gap | 7d change, Brand, and under the first of them the route card, exactly as wide. */
  .rt-keywrap .mode-row { display: grid; grid-template-columns: max-content max-content; align-items: center; column-gap: 8px; row-gap: 6px; }
  .rt-keywrap .mode-row > .rt-strip { grid-column: 1; grid-row: 2; justify-self: stretch; min-width: 0; }
  .rt-keywrap .mode-row > .rt-strip .rc { width: 100%; min-width: 0; max-width: none; box-sizing: border-box; } /* (not the 260px cap: wider buttons, Safari) */
}

/* V293: the compact header (phones, once there's a search; app.js syncHead): one row with the logo (no strapline),
   Location | Route and the menu, then one line with the place, fuel and distance (tap to change: the full header comes
   back) and Options. The map gets the room: on a 375 x 667 phone the header goes from 214px to about 108px. */
.head-sum { display: none; }
@media (max-width: 899.98px) {
  .head-compact .top .brandbar { display: flex !important; align-items: center; gap: 8px; flex-wrap: nowrap; }
  .head-compact .top .brandbar > .logo .strap { display: none; }
  .head-compact .top .brandbar > .logo .logo-text { font-size: 20px; }
  .head-compact .top .brandbar .pricing-switch { flex: 1; min-width: 0; margin: 0 !important; }
  .head-compact .top .brandbar .pricing-switch a { height: 34px; font-size: 13.5px; padding: 0 6px; gap: 5px; }
  .head-compact .top .brandbar .pricing-switch .ms-x { display: none; }
  .head-compact .top > form.search, .head-compact .top > .chips, .head-compact .top > .note { display: none !important; }
  .head-compact .head-sum { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
  .hs-line { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font: 600 14.5px var(--font); color: var(--text); white-space: nowrap; overflow: hidden; cursor: pointer; text-align: left; }
  .hs-line > svg { flex: none; color: var(--brand); }
  .hs-line .hs-t { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .hs-line .hs-d { flex: none; color: var(--text-2); font-weight: 500; }
  .hs-line .hs-pen { margin-left: auto; color: var(--text-2); }
  .hs-opt { position: relative; flex: none; width: 44px; height: 40px; display: grid; place-items: center; border: 1px solid var(--t2-line); border-radius: 12px; background: var(--bg); color: var(--brand); cursor: pointer; }
  .hs-opt .fl-badge { position: absolute; top: -6px; right: -6px; }
}

/* V294: the short forecourt card (phones): half height, the forecourt still in view on the map above, Directions on
   screen at once; More details opens the full card. */
.over-card.peek { display: grid; gap: 10px; padding-top: 8px; }
.pk-grab { width: 36px; height: 4px; border-radius: 2px; background: #C9CED6; justify-self: center; }
.pk-hd { display: flex; align-items: center; gap: 10px; }
.pk-hd .mk { flex: none; font-size: 18px; padding: 5px 11px; }
.pk-nm { flex: 1; min-width: 0; }
.pk-nm h2 { margin: 0; font-size: 16px; line-height: 1.25; }
.pk-nm .where { margin: 2px 0 0; font-size: 13px; color: var(--text-2); }
.pk-x { flex: none; align-self: flex-start; width: 34px; height: 34px; margin: -2px -6px 0 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--text-2); cursor: pointer; }
.pk-sub { margin: -4px 0 0; font-size: 13px; color: var(--text-2); }
.pk-acts { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px; align-items: stretch; }
.pk-acts .go { display: flex; gap: 8px; margin: 0; }
.pk-acts .go .btn { flex: 1; min-width: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-acts > .btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; margin: 0; white-space: nowrap; }
.pk-acts:has(.go .btn + .btn) { grid-template-columns: 1fr; } /* Google and Apple Maps both: the two on one line, More details below */
@media (max-width: 899.98px) {
  .head-compact .top .brandbar details.menu { order: 2; margin-left: 0; }
  .head-compact .top .brandbar .pricing-switch { order: 1; }
  .hs-line .hs-t { flex: 0 1 auto; }
  .hs-line .hs-d { flex: 0 2 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
/* V297: the compact line's Fuel and Distance buttons, each opening its menu at once. */
.hs-chip { display: none; }
@media (max-width: 899.98px) {
  .head-compact .hs-chip { position: relative; flex: none; display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 10px; border: 1px solid var(--t2-line); border-radius: 12px; background: var(--bg); color: var(--brand); font: 700 13.5px var(--font); white-space: nowrap; cursor: pointer; }
  .hs-chip select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; cursor: pointer; }
  .hs-line { gap: 6px; padding: 0 10px; }
  .head-compact .head-sum { gap: 6px; }
}
@media (max-width: 899.98px) {
  .hs-line .hs-pen { display: none; }
  .head-compact .hs-chip { padding: 0 8px; gap: 3px; }
  .hs-line { padding: 0 9px; gap: 5px; }
  .hs-opt { width: 40px; }
}

/* V300: one header on both pricing pages (phones), the same at every stage: 1) logo, Location | Route, menu, always one
   row; 2) where: the search boxes, or once searched a summary line to tap to change them (Location's place, Route's
   A → B); 3) fuel, distance and Options, always in the same place. (Until now Location folded fuel and distance into
   its line and Route kept four rows.) */
@media (max-width: 899.98px) {
  .top .brandbar { display: flex !important; align-items: center; gap: 8px; flex-wrap: nowrap; }
  .top .brandbar > .logo .strap { display: none; }
  .top .brandbar > .logo .logo-text { font-size: 20px; }
  .top .brandbar .pricing-switch { flex: 1; min-width: 0; margin: 0 !important; order: 1; }
  .top .brandbar .pricing-switch a { height: 34px; font-size: 13.5px; padding: 0 6px; gap: 5px; }
  .top .brandbar .pricing-switch .ms-x { display: none; }
  .top .brandbar details.menu { order: 2; margin-left: 0; }
  .head-compact .top > .chips { display: flex !important; }
  .head-compact .hs-chip, .head-compact .hs-opt { display: none !important; }
  .hs-line .hs-pen { display: block !important; }
  .head-compact .head-sum { margin-top: 8px; }
}

/* V302: the first-visit welcome: the logo larger, with the strapline the compact header no longer shows on phones,
   "A question of" bold and "Fuel" bold in brand blue. */
.welcome .w-brand { display: grid; justify-items: start; gap: 0; margin: 0 0 10px; padding-right: 28px; }
.welcome .w-hi { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--text-2); }
.welcome .w-word { font-size: 34px; line-height: 1.05; font-weight: 900; letter-spacing: -.02em; }
.welcome .w-word .aqo { color: var(--aqo); }
.welcome .w-word b { color: var(--brand); font-weight: 900; }
.welcome .w-strap { font-size: 15px; color: var(--charcoal); }
.welcome .w-strap b { font-weight: 700; }
.welcome .w-strap .w-fuel { color: var(--brand); }
@media (max-width: 899.98px) { .welcome .w-word { font-size: 30px; } .welcome .w-brand { margin-bottom: 6px; } }

/* V303: the price range on one row (both pages): the range at the left, "17.0p spread · 9 Nov 10:00" small and muted
   at the right. */
.range.range1 { display: flex; align-items: baseline; justify-content: flex-start; gap: 4px 8px; flex-wrap: wrap; } /* V327: the spread stays beside the range when the date wraps */
.range.range1 .val { flex: none; font-size: 19px; } /* V333: 22px left "Prices 12 Nov 10:00" a few pixels short on the desktop panel (356px row), so it wrapped */
/* V327: the spread straight after the highest price, small and muted like the date at the right. */
.range.range1 .r-spread { flex: none; font-size: 12px; font-weight: 700; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.range.range1 .r-meta:empty { display: none; }
.range.range1 .r-meta { margin-left: auto; font-size: 10.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* V305: Route's A and B both brand blue (the map's B pin too, no longer charcoal); in the Start and Finish boxes each
   mark is grey until a place is entered in its box. */
.rt-mark.finish { background: var(--brand); }
.rt-pin.finish .rt-pin-b { background: var(--brand); }
.rt-pin.finish .rt-pin-b b { color: var(--brand); }
.rt-pin.finish.is-classic .rt-pin-b::after { border-top-color: var(--brand); }
.rt-pin-base.finish .rt-pin-dot { background: var(--brand); }
.rt-pin-base.finish .rt-pin-ln line { stroke: var(--brand); }
.rt-field:has(input:placeholder-shown) .rt-mark { background: #9AA3AF; }

/* V307: Route's Start and Finish each in a form of its own (route.ts field()), laid out as before. */
.rt-ff { display: contents; }

/* V311: Data & Credits, per-source licences: a licence notice that must travel with the data (Unicode) in a collapsed
   block, wrapped to the page. */
.about details.small { margin: 8px 0 0; font-size: 13px; color: var(--text-2); }
.about details.small summary { cursor: pointer; color: var(--brand); }
.about pre.notice { margin: 8px 0 0; padding: 10px 12px; max-height: 320px; overflow: auto; white-space: pre-wrap; word-break: break-word; font: 12px/1.45 var(--font); background: var(--bg-2, #F4F6F9); border-radius: 8px; }

/* Places in Ireland (V313), in place suggestions and the "Which … did you mean?" chooser on both pages: after the UK's,
   under an Ireland heading, in a soft violet of their own (not green, not the brand blue, not an anomaly amber). */
.suggest .sug-ie-head, .choices .sug-ie-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 4px; padding: 6px 10px 4px; border-top: 1px solid #DCD3F2; border-radius: 0; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #5B3FA6; cursor: default; background: none !important; }
.suggest .sug-ie-head span, .choices .sug-ie-head span { display: inline; font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; color: #5B3FA6; }
.suggest li.ie { background: #F6F3FC; margin-top: 2px; }
.suggest li.ie[aria-selected="true"], .suggest li.ie:hover { background: #ECE6F8; }
.suggest li.ie b, .choices li.ie b { color: #4A2F91; }
.choices li.ie a { border-color: #DCD3F2; background: #F6F3FC; }
.choices li.ie a:hover, .choices li.ie a:focus-visible { border-color: #5B3FA6; background: #ECE6F8; }

/* The Ireland disclaimer under the search boxes, Route Pricing's (V317) and Location Pricing's (V318): bold, centred, in
   the brand blue; one line on phones (12px). */
.rt-note.rt-ie, .note.note-ie { font-weight: 700; text-align: center; color: var(--brand); }
@media (max-width: 899.98px) { .rt-note.rt-ie, .note.note-ie { font-size: 12px; } }

/* V325: the minimised panel's price range (both pages), cheapest – highest, bold in brand blue. */
.fold-range { font-weight: 700; color: var(--brand); white-space: nowrap; }
/* The line is never cut short, at any width: if "23/23 forecourts · 149.9p – 168.9p" doesn't fit beside Price filters
   it wraps, the range kept whole, and the line grows (V325: the desktop panel had clipped the range's last "p"). */
.s-fold .s-fold-t { white-space: normal; overflow: visible; text-overflow: clip; }
.s-fold, .rt-card.is-route.folded .rt-fold { height: auto; min-height: 36px; }
/* A little smaller than the panel's 15px, so it fits on one line beside Price filters (phones and desktop). */
.rt-card.is-route.folded .rt-fold .rt-fold-t, .s-fold .s-fold-t { font-size: 14px; letter-spacing: -.01em; }

/* V328: Route details' line for an added North Channel crossing (src/routing.ts northChannel). */
.rt-ferry { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--text-2); }
.rt-ferry b { color: var(--brand); font-weight: 700; }
/* V330: under a route's journey time, the driving and the ferry within it. */
.rt-sum .rt-split { display: block; margin-top: 1px; font-size: 11px; font-weight: 500; color: var(--text-2); white-space: nowrap; }

/* ---- Explore Pricing (fuel-test2; src/test2/explore.ts, explore.js) ----
   V362: Location Pricing's layout. The header has the controls (My location and the search; Fuel, the level and what is
   being explored); the map keeps its size, Price | Gap | Change at its top left and the key at its foot; the results are
   in the panel (phones: a fixed height below the map, scrolling on its own; wide screens: floating on the left), with
   Minimise. */
.ex-chips .chip { font-family: inherit; }
.ex-chips .chip.primary { flex: 0 1 auto; }
.ex-chip { flex: 0 1 auto; min-width: 0; color: var(--brand); font-weight: 700; }
.ex-chip > span { overflow: hidden; text-overflow: ellipsis; }
.ex-chip[hidden] { display: none; }
.ex-chip option:disabled { color: #98A2B3; }
.ex-where { display: flex; flex: 0 1 auto; min-width: 0; }
.ex-where-chip { max-width: 100%; }
.ex-where-chip.is-uk { cursor: default; color: var(--text); font-weight: 600; }
.ex-where-chip.is-uk:hover { background: var(--bg); }
.ex-where-x { flex: none; margin-left: 2px; font-size: 18px; line-height: 1; font-weight: 400; color: var(--text-2); }
.ex-measure[hidden], .ex-legend[hidden] { display: none !important; }
/* V365: exactly Location's and Route's switch: in the corner at 12px (the control's margin only, not the switch's as
   well), the same buttons, icons and spacing (app.css .mode-switch); only the selected colour is set here. */
.mode-ctrl > .ex-measure { margin: 0 !important; }
/* Wide screens: Explore's panel is 400px (Location's 380px), so the switch keeps Location's 16px gap beside it. */
@media (min-width: 900px) { .ex-body .maplibregl-ctrl.mode-ctrl { margin-left: 432px !important; } }
.mode-ctrl .ex-measure button[aria-checked="true"] { background: var(--brand); color: #fff; }
.ex-legend { position: absolute; z-index: 2; left: 8px; bottom: calc(var(--attrib-h, 18px) + 6px); width: min(360px, calc(100% - 16px)); padding: 5px 8px 6px; border-radius: 10px; background: rgba(255, 255, 255, .95); box-shadow: 0 2px 8px rgba(23, 32, 51, .18); font-size: 10.5px; line-height: 1.25; }
.ex-legend b { display: block; font-size: 11.5px; margin-bottom: 3px; color: var(--text); }
.sheet.ex-sheet { height: calc(min(42dvh, 400px) + var(--sa-b)); max-height: none; }
.sheet.ex-sheet.folded { height: auto; }
.sheet.ex-sheet .sheet-body.ex-body-in { height: 100%; display: flex; flex-direction: column; overflow: hidden; padding: 8px var(--pad) 0; }
.sheet.ex-sheet.folded .sheet-body.ex-body-in { height: auto; padding-bottom: 8px; }
.ex-head { flex: none; min-height: 36px; }
.ex-head .s-title { font-size: 15px; font-weight: 700; color: var(--brand); }
.ex-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad) 14px; }
.ex-scroll[hidden] { display: none; }
/* Phones: the level chip keeps its word (no icon); Fuel and the area give way ("…") if the row is full. The key one
   compact strip: the colours, then only the two ends' labels. */
.ex-chips [data-ex-level-chip] { flex: none; }
.ex-where-chip.is-uk { flex: none; }
@media (max-width: 899.98px) {
  .ex-chips [data-ex-level-chip] .chip-ic, .ex-where-chip:not(.is-uk) .chip-ic { display: none; }
  .ex-chips .chip.primary { flex-shrink: 4; }
  .ex-chips .chip { padding: 0 10px; gap: 5px; }
  .ex-legend { padding: 4px 8px 5px; }
  .ex-legend b { font-size: 11px; margin-bottom: 2px; }
  .ex-legend .ex-scale { gap: 3px; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; }
  .ex-legend .ex-scale li { gap: 2px; min-width: 0; }
  .ex-legend .ex-scale i { height: 8px; }
  .ex-legend .ex-scale li span { white-space: nowrap; font-size: 10px; }
  .ex-legend .ex-scale li:nth-child(n+2):nth-child(-n+4) span { visibility: hidden; }
  .ex-legend .ex-scale li:nth-child(5) { align-items: flex-end; }
}
.ex-found:not(:empty) { margin: 0 0 10px; }
.ex-found .ex-note, .ex-ladder .ex-note { font-size: 13px; color: var(--text-2); margin: 4px 0; }
.ex-found .ex-loading { font-size: 13px; color: var(--text-2); margin: 4px 0; }
.ex-choose p { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.ex-choose { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-choose p { flex-basis: 100%; }
.ex-choose .chip { font-family: inherit; }
.ex-choose small { color: var(--text-2); font-weight: 400; margin-left: 4px; }
.ex-acts .ex-in small { display: block; font-weight: 400; font-size: 12px; opacity: .85; }
.ex-card { position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 6px 0 10px; background: var(--bg); box-shadow: 0 2px 8px rgba(23, 32, 51, .08); }
.ex-card h2 { margin: 0; font-size: 17px; padding-right: 28px; }
.ex-card p { margin: 4px 0; }
.ex-card .ex-kind { color: var(--text-2); font-size: 13px; text-transform: capitalize; }
.ex-card .ex-big { font-size: 26px; font-weight: 700; color: var(--brand); margin: 6px 0 2px; }
.ex-card .ex-big small { font-size: 14px; font-weight: 600; color: var(--text-2); }
.ex-card .ex-cov { color: var(--text-2); font-size: 13px; }
.ex-card .ex-in { margin-top: 8px; font-family: inherit; }
.ex-x { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--text-2); cursor: pointer; }
/* Differences: the sign and figure always shown; green cheaper, red dearer, as the heatmap (dark enough to read on white). */
.ex-diff.cheaper, .ex-d.cheaper { color: #11745A; font-weight: 600; }
.ex-diff.dearer, .ex-d.dearer { color: #B03E3E; font-weight: 600; }
.ex-uk { font-size: 14px; color: var(--text-2); margin: 4px 0 6px; }
.ex-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ex-list li { display: grid; grid-template-columns: 26px 1fr auto 52px; gap: 8px; align-items: center; padding: 9px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.ex-list li:hover { background: var(--surface); }
.ex-list li.sel { background: #EEF4FF; box-shadow: inset 3px 0 0 var(--brand); }
.ex-list li.ex-loading { display: block; color: var(--text-2); cursor: default; }
.ex-rank { color: var(--text-2); font-size: 13px; text-align: right; }
.ex-name { min-width: 0; font-weight: 600; }
.ex-name i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; border: 1px solid rgba(23, 32, 51, .25); vertical-align: 0; }
.ex-name small { display: block; font-weight: 400; color: var(--text-2); font-size: 12px; margin-left: 17px; }
.ex-avg { font-weight: 700; color: var(--brand); }
.ex-d { font-size: 13px; text-align: right; }
.ex-about { font-size: 12px; color: var(--text-2); margin: 12px 0 0; }
.ex-scale { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 4px; }
.ex-scale li { display: flex; flex-direction: column; gap: 3px; color: var(--text-2); }
.ex-scale i { display: block; height: 10px; border-radius: 3px; }
.ex-scale li.ex-nodata { padding-left: 6px; }
.ex-scale li.ex-nodata i { width: 22px; background: #D8DEE7; border: 1px dashed #858D9C; height: 8px; }
.ex-name i { border-color: rgba(23, 32, 51, .2); }
/* The Top 10 questions: one row that scrolls sideways on a phone. */
.ex-tops { display: flex; gap: 6px; margin: 8px calc(-1 * var(--pad)) 0; padding: 0 var(--pad) 4px; overflow-x: auto; scrollbar-width: none; }
.ex-tops::-webkit-scrollbar { display: none; }
.ex-tops .chip { font-family: inherit; height: 32px; font-size: 13px; color: var(--brand); }
.ex-tops .chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.ex-listhead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 10px 0 2px; }
.ex-listhead h2 { font-size: 15px; margin: 0; }
.ex-all { font: inherit; font-size: 13px; border: 0; background: none; color: var(--brand); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.ex-card .on { background: #F3F6FB; border-radius: 6px; padding: 2px 6px; margin-left: -6px; margin-right: -6px; }
.ex-card .ex-big.on { background: none; padding: 0; margin: 6px 0 2px; }
.ex-card .ex-note { font-size: 12px; color: var(--text-2); border-left: 3px solid var(--line); padding-left: 8px; }
@media (min-width: 900px) { .ex-tops { flex-wrap: wrap; overflow: visible; margin: 8px 0 0; padding: 0; } }

/* V363: area price markers (Price only): Find's pill with the area's average, and the area's name under it; both one
   button. The pill keeps Find's levels (.mk .t1-.t5, or the visitor's marker scheme); "Few" (under 3 reporting) is
   Find's neutral dashed pill. */
.ex-am { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.ex-am .mk { cursor: pointer; }
.ex-am .mk.x { color: var(--text-2); }
.ex-amn { max-width: 116px; font-size: 11.5px; font-weight: 700; line-height: 1.15; color: #1D2939; text-align: center; overflow-wrap: anywhere;
  text-shadow: 0 0 2px #fff, 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff; }
.ex-am.dim { opacity: .45; }
.ex-am.nn .ex-amn { visibility: hidden; pointer-events: none; } /* no room for its name here: zoom in (the pill still opens the card) */
.ex-am:hover .mk:not(.sel) { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand); }
.ex-am:focus-visible { outline: none; }
.ex-am:focus-visible .mk { outline: 3px solid var(--focus); outline-offset: 2px; }
.ex-tiers { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ex-tiers .mk { cursor: default; font-size: 11px; padding: 2px 6px; box-shadow: none; }
.ex-lk-short { display: none; }
@media (max-width: 899.98px) { .ex-legend:has(.ex-tiers) .ex-lk-short { display: inline; } }
.ex-shade { margin: 4px 0 0; color: var(--text-2); font-size: 10.5px; }
/* Phones: smaller pills and names, and the key one line (the shading note is in the panel's notes). */
@media (max-width: 899.98px) {
  .ex-amn { font-size: 10px; max-width: 84px; line-height: 1.1; }
  .ex-am { gap: 1px; }
  .ex-am .mk { font-size: 12px; padding: 2px 5px; } .ex-am .mk.t1 { font-size: 13px; padding: 2px 7px; }
  .ex-body-in > .ex-legend { position: static; flex: none; width: auto; max-width: none; margin: 0 0 6px; padding: 0; border-radius: 0; background: none; box-shadow: none; }
  .ex-body-in > .ex-legend:has(.ex-tiers) { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .ex-legend:has(.ex-tiers) b { margin: 0; font-size: 11px; white-space: nowrap; }
  .ex-legend:has(.ex-tiers) b .ex-lk-long { display: none; }
  .ex-tiers { flex-wrap: nowrap; gap: 3px; }
  .ex-tiers .mk { font-size: 10.5px; padding: 1px 5px; }
  .ex-shade { display: none; }
  .sheet.ex-sheet { height: calc(min(36dvh, 340px) + var(--sa-b)); }
}

/* Phase 2: the forecourts of an area (Find's price pills, .mk .t1-.t5, on the map and in the list). */
.ex-panel [hidden] { display: none !important; }
.ex-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ex-acts .ex-in { margin: 0; }
.ex-fcs { margin-top: 10px; }
.ex-fcs h2 { font-size: 16px; margin: 8px 0 2px; color: var(--brand); }
.ex-fchead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ex-back { font: inherit; font-weight: 700; border: 0; background: none; color: var(--brand); cursor: pointer; padding: 6px 0; }
.ex-order { font-family: inherit; height: 32px; font-size: 13px; color: var(--brand); }
.ex-fc { position: relative; border: 2px solid var(--brand); border-radius: 12px; padding: 10px 12px; margin: 8px 0; background: var(--bg); }
.ex-fc h3 { margin: 0; font-size: 16px; padding-right: 28px; }
.ex-fc p { margin: 3px 0; }
.ex-fc .ex-kind { color: var(--text-2); font-size: 13px; }
.ex-fc .ex-big { font-size: 24px; font-weight: 700; color: var(--brand); margin: 6px 0 0; }
.ex-fc .ex-big small { font-size: 13px; color: var(--text-2); font-weight: 600; }
.ex-fc .ex-in { margin-top: 8px; text-decoration: none; display: inline-flex; }
.ex-fclist li { grid-template-columns: 78px 1fr; }
.ex-fclist li .mk { justify-self: start; box-shadow: none; cursor: inherit; }

/* Compare My Area (Release 2): the ladder from the place's local area to the UK. */
.ex-compare { margin: 10px 0 4px; }
.ex-near { font-family: inherit; color: var(--brand); }
.ex-ladder { position: relative; border: 2px solid var(--brand); border-radius: 12px; padding: 10px 12px 8px; background: var(--bg); }
.ex-ladder h2 { margin: 0 0 6px; font-size: 16px; color: var(--brand); padding-right: 28px; }
.ex-ladder .ex-list { border-top: 1px solid var(--line); }
.ex-ladder .ex-list li { grid-template-columns: 1fr auto 52px; padding: 7px 2px; }
.ex-ladder .ex-list li:not([data-go]) { cursor: default; }
.ex-ladder .ex-sub { margin: 8px 0 2px; font-size: 12px; color: var(--text-2); }
.ex-ladder .ex-cov, .ex-ladder .ex-loading { font-size: 12px; color: var(--text-2); margin: 6px 0 0; }
@media (min-width: 900px) {
  .sheet.ex-sheet { width: 400px; height: auto; max-height: calc(100% - 32px); }
  .sheet.ex-sheet .sheet-body.ex-body-in { flex: 0 1 auto; min-height: 0; height: auto; max-height: none; padding: 12px var(--pad) 0; }
  .ex-legend { left: 432px; width: 380px; bottom: calc(var(--attrib-h, 18px) + 8px); font-size: 11px; }
  .ex-head .s-title { font-size: 16px; }
  .ex-chips { grid-column: 2 / -1; justify-content: flex-start; }
  .ex-chips .chip, .ex-chips .ex-where { flex: none; }
}


/* V370, V373: Explore's area card in Route Pricing's results style, as tight as Route's panel: no box of its own (a
   line below it), the range line (.range1) and Lowest | Average | Highest in Route's strip (.rt-best: label left,
   pill right), the two forecourts named on one small line under it. */
.ex-card { margin: 0 0 10px; padding: 2px 0 10px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.ex-card h2 { font-size: 17px; line-height: 1.25; }
.ex-card .ex-kind { margin: 1px 0 0; font-size: 12.5px; }
.ex-card .ex-x { top: -2px; right: -4px; }
.ex-card .range.range1 { margin: 6px 0; }
.ex-card .rt-best { margin: 0; }
.ex-card .rt-best-c.ex-sc { cursor: default; }
.ex-card .ex-at { margin: 4px 0 6px; font-size: 12px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-card .ex-diff { margin: 4px 0 2px; font-size: 13.5px; font-weight: 650; }
.ex-card .ex-chg { margin: 2px 0; font-size: 13.5px; }
.ex-card .ex-chg .ex-cov { font-size: 12px; }
.ex-card p.ex-cov { margin: 2px 0; font-size: 12px; }
.ex-card .on { background: none; padding: 0; margin-left: 0; margin-right: 0; }
.ex-card .ex-acts .ex-in { margin-top: 6px; }

/* V377: on phones the Price key (Cheapest, +2p ...) is no longer under the panel's heading: the pills explain themselves,
   as on Location Pricing's map. Price gap and 7d change keep theirs. The card's kind line says how many open
   forecourts the area has ("Local area · 81 forecourts · Diesel (B7)"), so only its first letter is a capital. */
@media (max-width: 899.98px) { .ex-body-in > .ex-legend.ex-lk-price { display: none !important; } }
.ex-card .ex-kind { text-transform: none; }
.ex-card .ex-kind::first-letter { text-transform: uppercase; }

/* V387: Explore Pricing's UK summary under Price | Price gap | 7d change, in the style of Location's notes over the map. */
.ex-uksum { padding: 4px 10px; border-radius: 999px; background: var(--bg); box-shadow: var(--shadow); font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.ex-uksum b { color: var(--brand); font-weight: 800; }
.ex-uksum:empty { display: none; }

/* Gate 2 (fuel-test2): Change ▾'s period chip, beside Change on Location, Route and Explore Pricing's switch: the period
   chosen (1d … 1Y) on the switch's own button look, a native select over it (keyboard, screen readers, phone pickers). */
.ch-period { position: relative; display: inline-flex; align-items: center; gap: 3px; height: 32px; padding: 0 8px; border-radius: 10px; background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--t2-line), 0 1px 4px rgba(16, 24, 40, .14); color: var(--brand); font: 700 13px var(--font); white-space: nowrap; cursor: pointer; }
.ch-period select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.ch-period:focus-within { outline: 2px solid var(--brand); outline-offset: 1px; }
@media (max-width: 899.98px) { .ch-period { height: 32px; padding: 0 6px; font-size: 12px; } }
.ch-line small { color: var(--text-2); font-weight: 500; }
.over-card.peek .ch-line { margin: -4px 0 0; font-size: 13px; color: var(--text); }
.ch-line .up { color: #B42318; font-weight: 700; } .ch-line .down { color: var(--down); font-weight: 700; }
/* Phones: with Change ▾'s period chip the switch is wider, so the Brand pill takes its own line under it (it was squeezed
   to "B…"); Route's strip goes under that. */
@media (max-width: 899.98px) {
  .mode-row:has(.ch-period) { flex-wrap: wrap; row-gap: 6px; }
  .rt-keywrap .mode-row:has(.ch-period) { grid-template-columns: max-content; }
  .rt-keywrap .mode-row:has(.ch-period) > [data-brand-pill] { grid-column: 1; grid-row: 2; justify-self: start; }
  .rt-keywrap .mode-row:has(.ch-period) > .rt-strip { grid-row: 3; }
}
/* Change · 7d ▾ as one control (V392): the period chip joined to Change's right side (no gap, shared corners, a thin
   divider), and coloured with it: blue with white text while Change is on, white with blue text otherwise. Tapping
   "Change" switches the map; tapping "7d ▾" opens the periods (choosing one switches the map too). */
.mode-switch :is([data-mode="week"], [data-measure="change"]):has(+ .ch-period) { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; padding-right: 6px; }
.mode-switch :is([data-mode="week"], [data-measure="change"]) + .ch-period { margin-left: -3px; border-top-left-radius: 0; border-bottom-left-radius: 0;
  box-shadow: inset 0 1px 0 var(--t2-line), inset -1px 0 0 var(--t2-line), inset 0 -1px 0 var(--t2-line), inset 1px 0 0 rgba(7, 59, 145, .18), 0 1px 4px rgba(16, 24, 40, .14); padding-left: 5px; }
.mode-switch :is([data-mode="week"], [data-measure="change"])[aria-checked="true"] + .ch-period { background: var(--brand); color: #fff; box-shadow: inset 1px 0 0 rgba(255, 255, 255, .35), 0 1px 4px rgba(16, 24, 40, .18); }
/* V393: Change is one button. Off: "Change"; a tap opens the period list (the native select laid invisibly over it);
   on: its arrows and the period chosen ("⇅ 30d"). Another button in the row turns it back to "Change". */
.ch-wrap { position: relative; display: inline-flex; }
.ch-select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; border: 0; }
.ch-wrap:focus-within > button { outline: 2px solid var(--brand); outline-offset: 1px; }

/* V394: Explore's Graph — a button in the map's row, and an overlay with daily average prices (UK and nations). */
.mode-switch .ex-graph-btn { display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border: 0; border-radius: 10px; background: var(--bg); color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--t2-line), 0 1px 4px rgba(16, 24, 40, .14); font: 700 13px var(--font); cursor: pointer; white-space: nowrap; }
.mode-switch .ex-graph-btn[aria-expanded="true"] { background: var(--brand); color: #fff; }
.mode-switch .ex-graph-btn[hidden] { display: none; }
@media (max-width: 899.98px) { .mode-switch .ex-graph-btn { padding: 0 5px; font-size: 12px; } }
.ex-graph { position: fixed; z-index: 60; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(720px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto;
  background: var(--bg); border-radius: 16px; box-shadow: 0 12px 40px rgba(16, 24, 40, .28); padding: 14px 16px 16px; }
.ex-graph[hidden] { display: none; }
.ex-graph-head { display: flex; align-items: center; justify-content: space-between; }
.ex-graph-head h2 { margin: 0; font-size: 18px; }
.ex-graph-head .ex-x { position: static; }
.ex-graph-body { display: grid; gap: 8px; margin-top: 8px; }
.ex-gseg { display: flex; width: 100%; }
.ex-gseg button { flex: 1; min-width: 0; padding: 0 4px; }
.ex-gnote { margin: 0; font-size: 12.5px; color: var(--text-2); }
.ex-gtitle { margin: 6px 0 0; font-size: 16px; }
.ex-gsub { margin: -4px 0 0; font-size: 12.5px; color: var(--text-2); }
.ex-gstats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ex-gstats .st { background: var(--surface, #F5F7FA); border-radius: 10px; padding: 8px 10px; display: grid; gap: 1px; }
.ex-gstats .st .v { font-size: 17px; color: var(--brand); }
.ex-gstats .st.up .v { color: #B42318; } .ex-gstats .st.down .v { color: var(--down); }
.ex-gstats .st .sub { font-size: 11.5px; color: var(--text-2); }
.ex-gchart { position: relative; height: 240px; touch-action: pan-y; }
.ex-gchart svg { width: 100%; height: 100%; overflow: visible; }
.ex-gchart .grid { stroke: #E4E8EE; }
.ex-gchart .axis { font-size: 11px; fill: var(--text-2); }
.ex-gchart .line { fill: none; stroke-width: 2.2; stroke-linejoin: round; }
.ex-gchart .cursor { stroke: #98A2B3; stroke-dasharray: 3 3; }
.ex-gchart .tip { position: absolute; transform: none; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 12px; box-shadow: var(--shadow); pointer-events: none; white-space: nowrap; }
.ex-gchart .hollow { fill: #fff; stroke-width: 1.5; }
.ex-gchart .g-uk { stroke: #073B91; } .ex-gchart .g-eng { stroke: #D97706; } .ex-gchart .g-sct { stroke: #0891B2; } .ex-gchart .g-wls { stroke: #16A34A; } .ex-gchart .g-nir { stroke: #7C3AED; }
.ex-gchart .line.g-uk { stroke-width: 2.8; }
.ex-gchart .faint { stroke: #D0D5DD !important; stroke-width: 1.4 !important; }
.ex-gchart circle.faint { display: none; }
.ex-glegend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--text); }
.ex-glegend span { display: inline-flex; align-items: center; gap: 5px; }
.ex-glegend i { width: 16px; height: 3px; border-radius: 2px; background: currentColor; }
.ex-glegend .g-uk { background: #073B91; } .ex-glegend .g-eng { background: #D97706; } .ex-glegend .g-sct { background: #0891B2; } .ex-glegend .g-wls { background: #16A34A; } .ex-glegend .g-nir { background: #7C3AED; }
.ex-glegend .faint { color: #98A2B3; } .ex-glegend .faint i { background: #D0D5DD; }
.ex-glegend .hol i.ring { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #667085; background: #fff; }
/* V395: the Graph at Region level: 12 regional colours, the UK as the benchmark (navy, thicker, dashed), and the region
   list in place of the nation buttons. */
.ex-gchart .g-tlc { stroke: #0EA5E9; } .ex-gchart .g-tld { stroke: #F59E0B; } .ex-gchart .g-tle { stroke: #10B981; } .ex-gchart .g-tlf { stroke: #8B5CF6; }
.ex-gchart .g-tlg { stroke: #EC4899; } .ex-gchart .g-tlh { stroke: #14B8A6; } .ex-gchart .g-tli { stroke: #EF4444; } .ex-gchart .g-tlj { stroke: #6366F1; }
.ex-gchart .g-tlk { stroke: #84CC16; } .ex-gchart .g-tll { stroke: #16A34A; } .ex-gchart .g-tlm { stroke: #0891B2; } .ex-gchart .g-tln { stroke: #7C3AED; }
.ex-gchart .line[class*="g-tl"] { stroke-width: 1.6; }
.ex-gchart .line.bench { stroke: #073B91; stroke-width: 3.2; stroke-dasharray: 7 4; }
.ex-glegend .g-tlc { background: #0EA5E9; } .ex-glegend .g-tld { background: #F59E0B; } .ex-glegend .g-tle { background: #10B981; } .ex-glegend .g-tlf { background: #8B5CF6; }
.ex-glegend .g-tlg { background: #EC4899; } .ex-glegend .g-tlh { background: #14B8A6; } .ex-glegend .g-tli { background: #EF4444; } .ex-glegend .g-tlj { background: #6366F1; }
.ex-glegend .g-tlk { background: #84CC16; } .ex-glegend .g-tll { background: #16A34A; } .ex-glegend .g-tlm { background: #0891B2; } .ex-glegend .g-tln { background: #7C3AED; }
.ex-glegend i.bench { height: 0; border-top: 3px dashed #073B91; background: none; }
.ex-gpick { display: block; }
.ex-gpick select { width: 100%; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--brand); font: 700 14px var(--font); }

/* V399: Explore's four map levels. No panel, search, level chooser, key or UK summary; the map takes the stage, with
   one row at its foot (View Regions on Level 1 at the left; Back at the right on the others) and the region card
   floating over the map. */
.ex-body .ex-search, .ex-body [data-ex-level-chip], .ex-body .ex-where, .ex-body .ex-sheet, .ex-body .ex-legend { display: none !important; }
.ex-body .ex-stage { display: flex !important; flex-direction: column; }
.ex-body .ex-stage .map-area { position: relative !important; inset: auto !important; flex: 1; min-height: 0; }
@media (min-width: 900px) { .ex-body .maplibregl-ctrl.mode-ctrl { margin-left: 10px !important; } }
.ex-bar { flex: none; display: flex; align-items: center; min-height: 52px; padding: 6px var(--pad) calc(6px + var(--sa-b)); background: var(--bg); box-shadow: var(--shadow-up); position: relative; z-index: 10; }
.ex-go, .ex-back2 { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.ex-go { border: 0; background: var(--brand); color: #fff; }
.ex-back2 { border: 1px solid var(--line); background: var(--bg); color: var(--brand); }
.ex-go span, .ex-back2 span { font-size: 20px; line-height: 1; margin-top: -2px; }
.ex-float { position: absolute; z-index: 6; left: 50%; bottom: 12px; transform: translateX(-50%); width: min(380px, calc(100% - 24px)); padding: 12px 14px 12px; border-radius: 16px; background: var(--bg); box-shadow: 0 6px 24px rgba(23, 32, 51, .22); }
.ex-float[hidden] { display: none; }
.ex-float h2 { margin: 0 28px 2px 0; font-size: 18px; }
.ex-float .ex-kind { margin: 0 0 8px; font-size: 12.5px; color: var(--text-2); }
.ex-float .rt-best { margin: 0 0 6px; }
.ex-float .ex-diff { margin: 0 0 8px; font-size: 13px; }
.ex-float .ex-x { position: absolute; top: 8px; right: 8px; }
.ex-float-acts { display: flex; justify-content: flex-end; }
/* V415: a card's Lowest and Highest open their forecourt (the strip's own button cell), the label underlined */
button.ex-site .k { text-decoration: underline; text-underline-offset: 2px; color: var(--brand); }
/* V416: the card's Lowest | Average | Highest pills a little smaller, so each fits its third beside its label */
.ex-float .rt-best .rt-best-c .mk { font-size: 13.5px; padding: 2px 6px; }
/* V400: View Regions / Back in the fuel's row, far right, white; the trail at the foot. */
.ex-body .ex-chips { display: flex; align-items: center; }
.ex-nav { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--brand); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.ex-nav span { font-size: 18px; line-height: 1; margin-top: -2px; }
.ex-trail { display: flex; align-items: center; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; white-space: nowrap; font-size: 15px; }
.ex-trail::-webkit-scrollbar { display: none; }
.ex-crumb { flex: none; border: 0; background: none; padding: 6px 2px; font: inherit; color: var(--brand); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ex-sep { flex: none; color: var(--text-2); }
.ex-here { flex: none; color: var(--text); font-weight: 800; }
.ex-here .ex-n { font-weight: 600; color: var(--text-2); }
/* V402: the trail in brand blue throughout; the tap prompt. */
.ex-crumb { color: var(--brand); font-weight: 600; text-decoration: none; }
.ex-sep { color: var(--brand); opacity: .55; }
.ex-here, .ex-here .ex-n { color: var(--brand); }
.ex-here .ex-n { font-weight: 600; opacity: .75; }
.ex-hint { position: absolute; z-index: 4; left: 50%; bottom: calc(var(--attrib-h, 18px) + 8px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 5px; margin: 0; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: var(--text-2); font-size: 12px; white-space: nowrap; pointer-events: none; }
.ex-hint[hidden] { display: none; }
/* V404: the UK average under Price | Price gap, as wide as the two: first row as the buttons (13px bold, brand), the
   forecourt count beneath at its own size. */
.ex-body .ex-uksum { display: flex; flex-direction: column; align-items: center; gap: 0; box-sizing: border-box; margin: 6px 0 0 0; padding: 4px 8px 5px; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--t2-line), 0 1px 4px rgba(16, 24, 40, .14); line-height: 1.25; }
.ex-body .ex-uksum .u1 { font: 700 13px var(--font); color: var(--brand); }
.ex-body .ex-uksum .u1 b { font-weight: 800; }
.ex-body .ex-uksum .u2 { font-size: 12.5px; color: var(--text-2); }
/* V408: the trail with sites; Fun Facts (sheet, scope switch, categories, rows, notes); Back to Fun Facts; the forecourt
   card; Fun Facts' ranked markers over faded area markers. */
.ex-trail .ex-n { flex: none; margin-left: 5px; color: var(--brand); font-weight: 600; opacity: .75; }
.ex-ff-ic { flex: none; }
/* V415: the sheet may use the map's whole height (less a margin), so a Top 5 fits without scrolling on a phone */
.ex-ff { max-height: calc(100% - 20px); overflow-y: auto; overscroll-behavior: contain; padding-top: 10px; }
.ex-ff-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ex-ff-head h2 { margin: 0; font-size: 18px; }
.ex-ff .ex-ff-head .ex-x { position: static; }
.ex-ff .ex-kind { margin: 2px 0 8px; }
.ex-ff-scope { margin: 0 0 8px !important; }
.ex-ff-scope button { height: 30px; }
.ex-ff-cats { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 8px; }
.ex-ff-cats .chip { min-height: 30px; padding: 0 10px; font-size: 13px; }
.ex-ff-cats .chip[aria-selected="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.ex-ff h3 { margin: 4px 0 4px; font-size: 14px; color: var(--text); }
.ex-ff-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.ex-ff-list .ex-name { min-width: 0; overflow: hidden; }
.ex-ff-list .ex-name small { display: block; line-height: 1.3; } /* V413: wraps, so the reported date is never cut off */
/* V434: rank left-aligned (ties too), address under the name, brand bold as in Location and Route lists */
.ex-ff-list li { grid-template-columns: 24px minmax(0, 1fr) auto; align-items: start; }
.ex-ff-list .ex-rank { text-align: left; padding-top: 2px; }
.ex-ff-list .ex-name small { margin-left: 0; }
.ex-ff-list .ex-name small b { font-weight: 700; color: var(--brand); }
.ex-ff-list .ex-avg { padding-top: 1px; }
.ex-ff-src a { color: var(--brand); font-weight: 600; }
.ex-ff-list .ex-avg { font-weight: 800; color: var(--brand); white-space: nowrap; }
.ex-ff-note { margin: 6px 0 6px; font-size: 12px; line-height: 1.35; color: var(--text-2); }
.ex-ff-foot { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ex-ff-foot .ex-ff-note { flex: 1; }
.ex-ff-foot .ex-go { flex: none; margin-top: 4px; }
.ex-ff-src { margin-bottom: 0; }
.ex-ff-gaps { list-style: none; margin: 0; padding: 0; }
.ex-ff-gap { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ex-ff-gap b { color: var(--brand); }
.ex-ff-area { display: flex; justify-content: space-between; width: 100%; margin-top: 5px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font: inherit; font-size: 13px; color: var(--brand); text-align: left; cursor: pointer; }
.ex-ff-area span { font-weight: 800; }
.ex-ffback { position: absolute; z-index: 7; left: 50%; top: 10px; transform: translateX(-50%); min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: 700 14px var(--font); box-shadow: var(--shadow); cursor: pointer; white-space: nowrap; }
.ex-ffback[hidden] { display: none; }
@media (max-width: 899.98px) { .ex-ffback { top: auto; bottom: calc(var(--attrib-h, 18px) + 8px); } }
.ex-big { margin: 2px 0; font-size: 22px; font-weight: 800; color: var(--brand); }
.ex-big small { font-size: 13px; font-weight: 600; color: var(--text-2); }
.ex-fcchg { font-size: 13px; font-weight: 700; }
.ex-fcchg.cheaper { color: #11745A; } .ex-fcchg.dearer { color: #B03E3E; }
.ex-float a.ex-go { text-decoration: none; }
body.ex-ff-on .ex-am { opacity: .3 !important; pointer-events: none; } /* MapLibre sets an inline opacity */
.ex-ff-mk::before { content: attr(data-rank); position: absolute; top: -9px; left: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; font: 800 11px/18px var(--font); text-align: center; box-shadow: 0 0 0 2px #fff; }
/* V409: Fun Facts as the way back while exploring a result; the scope switch shows its choice. */
.ex-nav.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.ex-ff-scope button[aria-checked="true"] { background: var(--brand); color: #fff; }

/* V428: Pump Facts' own fuel and area (the shared .chip dropdown) and the Summary tab. */
.ex-ff-sel { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0 0 8px; }
.ex-ff-sel .chip { height: auto; min-height: 42px; padding: 4px 10px 4px 12px; border-radius: 12px; justify-content: space-between; min-width: 0; }
.ex-ff-sel-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
.ex-ff-sel-t small { font-size: 11px; font-weight: 500; color: var(--text-2); }
.ex-ff-sel .chev { flex: none; color: var(--text-2); }
.ex-ffs-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface); margin: 0 0 8px; }
.ex-ffs-top > div { display: flex; flex-direction: column; min-width: 0; }
.ex-ffs-top > div + div { border-left: 1px solid var(--line); padding-left: 10px; }
.ex-ffs-top .l, .ex-ffs-p .l { font-size: 12px; font-weight: 600; color: var(--text-2); }
.ex-ffs-top .big { font-size: 26px; color: var(--brand); line-height: 1.15; }
.ex-ffs-top .mid { font-size: 20px; line-height: 1.3; }
.ex-ffs-top .mid .ex-d { font-size: inherit; text-align: left; }
.ex-ffs-top small, .ex-ffs-stats small, .ex-ffs-p small { font-size: 11.5px; color: var(--text-2); }
.ex-ffs-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); text-align: center; }
.ex-ffs-stats > div { display: flex; flex-direction: column; min-width: 0; }
.ex-ffs-stats > div + div { border-left: 1px solid var(--line); }
.ex-ffs-stats b { font-size: 16px; }
.ex-ffs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 0 0 6px; }
.ex-ffs-p { display: flex; flex-direction: column; align-items: center; padding: 5px 2px; border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.ex-ffs-p .ex-d { font-size: 14px; text-align: center; }
.ex-ffs-p .ex-d.cheaper, .ex-ffs-p .ex-d.dearer { font-weight: 700; font-size: 15px; }
.ex-ffs-p .na { font-size: 14px; font-weight: 600; color: var(--text-2); }
.ex-ff-cats { flex-wrap: nowrap; gap: 4px; }
.ex-ff-cats .chip { flex: 1 1 auto; justify-content: center; min-width: 0; padding: 0 6px; font-size: 12.5px; }
/* V431: the Summary's lowest and highest are the map's price markers, tappable. */
.ex-ffs-stats .mk { align-self: center; font-size: 15px; padding: 2px 8px; }
button.ex-ffs-site { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; border-left: 1px solid var(--line); background: none; font: inherit; color: inherit; cursor: pointer; padding: 0; }
button.ex-ffs-site:hover .mk { filter: brightness(.95); }
button.ex-ffs-site small { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
/* V432: the Summary, tighter (presentation only). */
.ex-ff:has(.ex-ffs-top) { padding-top: 8px; }
.ex-ff:has(.ex-ffs-top) .ex-kind { margin: 0 0 6px; }
.ex-ff:has(.ex-ffs-top) .ex-ff-sel { margin-bottom: 6px; }
.ex-ff:has(.ex-ffs-top) .ex-ff-cats { margin-bottom: 6px; }
.ex-ffs-top { grid-template-columns: 1.25fr 1fr; padding: 6px 10px; margin-bottom: 6px; }
.ex-ffs-top .l { line-height: 1.25; }
.ex-ffs-top .big { line-height: 1.1; }
.ex-ffs-top .mid { line-height: 1.2; }
.ex-ffs-top small { line-height: 1.25; white-space: nowrap; }
.ex-ffs-stats { margin-bottom: 4px; padding-bottom: 5px; line-height: 1.25; }
.ex-ffs-stats small { line-height: 1.2; }
button.ex-ffs-site { gap: 2px; }
.ex-ffs-stats .mk { padding: 1px 8px; }
.ex-ff:has(.ex-ffs-top) h3 { margin: 2px 0 4px; }
.ex-ffs-grid { gap: 4px; margin-bottom: 4px; }
.ex-ffs-p { padding: 2px 2px 3px; line-height: 1.2; }
.ex-ffs-note { margin: 4px 0 2px; }
.ex-ff:has(.ex-ffs-top) .ex-ff-src { margin-top: 2px; }

/* V436: Pump Facts' six tabs (Graph after Summary) scroll sideways on a phone rather than shrink; the Graph in the panel */
.ex-ff-cats { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ex-ff-cats::-webkit-scrollbar { display: none; }
.ex-ff-cats .chip { flex: 0 0 auto; padding: 0 10px; font-size: 13px; }
@media (min-width: 420px) { .ex-ff-cats .chip { flex: 1 0 auto; } }
.ex-ff-graph .ex-gseg { margin: 0 0 6px; }
.ex-ff-graph .ex-gtitle { margin: 2px 0 0; }
.ex-ff-none { color: var(--text-2); font-size: 13.5px; margin: 4px 0 8px; }

/* V437: Pump Facts on Location and Route Pricing: the button beside the fuel, the sheet fixed under the header (over the
   map and its panel); Explore's way back to the page that opened a forecourt in it */
.pf-chip { flex: none; }
.pf-chip .ex-ff-ic { color: var(--brand); }
.pf-chip[aria-expanded="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.pf-chip[aria-expanded="true"] .ex-ff-ic { color: #fff; }
.ex-float.pf-page { position: fixed; z-index: 60; bottom: auto; top: 120px; }
.ex-from { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--brand); background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }

/* V438: Options by what they control. One dialog: Map options (the button under the map's zoom) shows the map's sections,
   Route options (Route Pricing's header button) the route's. The map button is a map control, as + and −. */
.fl[data-scope="map"] [data-fl-for="route"], .fl[data-scope="route"] [data-fl-for="map"] { display: none; }
.map-opts[hidden] { display: none; }
.map-opts button { position: relative; display: grid; place-items: center; color: var(--brand); }
.map-opts button svg { width: 18px; height: 18px; }
.map-opts .fl-badge { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; line-height: 16px; font-size: 10.5px; padding: 0 4px; }
.map-opts .fl-badge[hidden] { display: none; }
/* Wide screens: the places column a little wider (Fuel, On route and Pump Facts on one line) */
@media (min-width: 900px) {
  .top.rt-top { grid-template-columns: auto minmax(410px, 470px) auto; }
}
.chips .pf-chip { flex: none; }
@media (max-width: 400px) {
  .chips:has(.pf-chip) { gap: 5px; }
  .chips:has(.pf-chip) > .chip { padding: 0 9px; gap: 4px; }
}
.maplibregl-ctrl-group.map-opts { overflow: visible; }
.maplibregl-ctrl-group.map-opts button { border-radius: inherit; }

/* V439: Route Pricing's place suggestions on phones: under the Start and Finish row, the row's own width, so neither
   list runs off the screen (the Finish list began at its field and was the screen's width) */
@media (max-width: 899.98px) {
  .rt-form .rt-row { position: relative; }
  .rt-form .rt-field { position: static; }
  .rt-form .rt-field .suggest { left: 0; right: 0; width: auto; top: calc(100% + 4px); }
}
/* V440: brand blue text on the three maps (Location, Route and Explore Pricing): headings, names, labels, values, tabs,
   Pump Facts and Options in aqoFUEL's blue, as their buttons and prices already are. Secondary text stays grey
   (--text-2), changes stay green and red, and text on blue stays white. Other pages are unchanged. */
body.loc-body, body.rt-body, body.ex-body { --text: var(--brand); }
body.loc-body input, body.rt-body input, body.ex-body input { color: var(--brand); }
/* V441: Explore's cards: the site count bold in brand blue, and a little space before the card's button */
.ex-float .ex-kind .ex-n { font-weight: 800; color: var(--brand); }
.ex-float-acts { margin-top: 12px; }
/* V442: Pump Facts' Graph tab with no published history for the fuel or area: greyed, still there and still opens */
.ex-ff-cats .chip.na:not([aria-selected="true"]) { color: var(--text-2); border-style: dashed; background: var(--surface); }
.ex-ff-cats .chip.na[aria-selected="true"] { background: var(--text-2); border-color: var(--text-2); }
/* V443: the UK beside a nation or region is a strong dotted line (and in the key) */
.ex-gchart .line.bench { stroke: #073B91; stroke-width: 3.4; stroke-dasharray: 0.1 6; stroke-linecap: round; }
.ex-glegend i.bench { height: 0; border-top: 3.5px dotted #073B91; background: none; }
/* V446: List Sites, Tools and Explore Pricing (Location and Route Pricing's tiles) in the same style as every other
   button: white, a thin grey border, fully rounded ends, brand blue text and icon; the same height and layout as before */
.tile { background: var(--bg); border: 1.5px solid #C9D9F0; border-radius: var(--pill); line-height: 1.1; }
.tile:hover { background: var(--surface); }
/* V447: Price Insights (was Pump Facts): "Insights" on phones, "Price Insights" where there's room; the icon unchanged */
.pi-l .pi-w { display: none; }
@media (min-width: 600px) { .pi-l .pi-s { display: none; } .pi-l .pi-w { display: inline; } }
/* Area Pricing: Places (both sites since V527). Areas | Places above Price | Price gap | Change; in Places the areas'
   markers, the measure switch, the UK line and the key give way to place markers: a blue dot on the place's point, its
   name (cities bold), and a compact pill with the median within 3 miles (grey "No data" where none report). */
.mode-ctrl > .ex-pmode { margin: 0 !important; }
.ex-pmode button { min-width: 64px; }
body.ex-places .ex-am:not(.eu-am):not(.us-am), body.ex-places .ex-legend, body.ex-places .maplibregl-marker.mk:not(.ex-site):not(.ex-ff-mk) { display: none !important; }
/* V455: the dot on the place's point, its name beside it (left of it near the edge or another place: .flip), the price
   pill centred below the dot, in the map's marker scheme (sizes too: the cheapest is the large one). */
.ex-pm { position: relative; display: block; width: 0; height: 0; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.ex-pm > * { position: absolute; }
.ex-pmd { left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px #fff; }
.ex-pmn { left: 8px; top: 0; transform: translateY(-50%); font-size: 12.5px; font-weight: 600; line-height: 1.2; color: var(--brand); white-space: nowrap; text-shadow: 0 0 2px #fff, 0 0 3px #fff, 0 0 4px #fff; }
.ex-pm.flip .ex-pmn { left: auto; right: 8px; }
.ex-pm.r1 .ex-pmn { font-size: 13.5px; font-weight: 800; }
.ex-pm.r4 .ex-pmn, .ex-pm.r5 .ex-pmn { font-weight: 500; }
.ex-pm .mk { left: 0; top: 7px; transform: translateX(-50%); white-space: nowrap; }
.ex-pm .mk.none { width: auto; height: auto; color: #5B6270; background: #fff; border: 1px solid #B8BEC8; font-weight: 600; font-size: 12px; line-height: 1.3; padding: 2px 7px; }
.ex-pm.sel .ex-pmd { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand); }
.ex-pm.sel .mk { outline: 2px solid var(--brand); outline-offset: 1px; }
.ex-float a.ex-go { text-decoration: none; display: inline-flex; align-items: center; }
/* V459: Places' card and its forecourts (the local area list's rows: price left, name, brand bold), scrolling inside the card */
.ex-float .ex-pfl { max-height: min(46vh, 340px); overflow-y: auto; margin: 8px 0 0; padding: 0; }
.ex-float .ex-pfl li { cursor: pointer; }
.ex-float .ex-pfl small b { color: var(--brand); font-weight: 700; }
.ex-float .ex-back { margin: 0 0 6px; }
/* V461: forecourt brands bold (and brand blue) on every forecourt card */
.pk-nm .where b, .ex-kind b, .ex-fclist small b { color: var(--brand); font-weight: 700; }
/* V461: a price pill that is one forecourt's own price (not an average) carries a small pump badge at its top right:
   Area Pricing's forecourt markers, and a place with one reporting forecourt. */
/* V465: the pump badge is Route Pricing's own badge element (.mk .hl), so it sits and sizes exactly as theirs. */
/* V461: Places' foot: the count, then what it is, on one line (shortened with … where it can't fit) */
body.ex-places .ex-bar .ex-trail { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.ex-places .ex-bar .ex-n { font-weight: 500; }
/* V462: a place's single-forecourt pill sits a little lower, so its pump badge clears the place's name */
/* V465: at site level, places only name the map (dot and name) under the forecourts' own markers */
.ex-pm.nm-only { z-index: 1; }
/* V471: a place with no reporting forecourt within 3 miles: a small muted pump and the smallest grey text, no pill */
.ex-pm .ex-none { left: 0; top: 7px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; font-size: 9px; line-height: 1; font-weight: 500; color: #8A93A3; text-shadow: 0 0 2px #fff, 0 0 3px #fff; }
.ex-pm .ex-none svg { width: 10px; height: 10px; flex: none; }
.ex-hint b { font-weight: 800; }
/* V473: Areas | Places as wide as Price | Price gap | Change (width set by the page), its buttons sharing it equally */
.ex-pmode { box-sizing: border-box; }
.ex-pmode button { flex: 1 1 0; min-width: 0; }
/* V474: Places. A place with no reporting forecourt within 3 miles: a small grey crossed pump on its point (in place of
   the blue dot), its name beside it. One forecourt's own price: a grey pill. The key above the prompt. */
.ex-pmx { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #8A93A3; box-shadow: 0 0 0 1px #C3C9D2; }
.ex-pmx svg { width: 11px; height: 11px; display: block; }
.ex-pm.nodata .ex-pmn { left: 11px; }
.ex-pm.nodata.flip .ex-pmn { left: auto; right: 11px; }
.ex-pm .mk.one, .ex-pkey .mk.one { background: #F1F2F4; border: 1px solid #C3C9D2; color: #5B6270; box-shadow: none; }
.ex-pkey { position: absolute; z-index: 4; left: 50%; bottom: calc(var(--attrib-h, 18px) + 36px); transform: translateX(-50%); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3px 4px; max-width: calc(100% - 24px); box-sizing: border-box; margin: 0; padding: 4px 10px; border-radius: 12px; background: rgba(255, 255, 255, .9); box-shadow: 0 1px 3px rgba(16, 24, 40, .12); color: var(--brand); font-size: 10.5px; line-height: 1.2; pointer-events: none; }
.ex-pkey[hidden] { display: none; }
.ex-pkey i { width: 1px; height: 12px; background: #C9D9F0; margin: 0 3px; }
.ex-pkey .mk.kp { position: relative; font-size: 10.5px; padding: 1px 5px; min-width: 0; min-height: 0; box-shadow: none; }
.ex-pkey .mk.kp .hl { position: static; width: 14px; height: 14px; }
.ex-pkey .mk.kp .hl svg { width: 9px; height: 9px; }
.ex-pkey .mk.kp:has(.hl) { background: none; border: 0; padding: 0; }
.ex-pkey .ex-pmx { position: static; width: 14px; height: 14px; }
.ex-pkey .ex-pmx svg { width: 10px; height: 10px; }
.ex-pkey .ki { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.ex-pkey i:has(+ .ki:last-child) { } /* (separators stay between items on one line) */
/* V479: the key on the right, one line each (words, then the marker), a thin brand-blue edge; a place with none
   within 3 miles has a grey name */
.ex-pkey { left: auto; right: 10px; transform: none; flex-direction: column; flex-wrap: nowrap; align-items: flex-end; gap: 3px; max-width: calc(100% - 20px); padding: 5px 8px; border-radius: 10px; box-shadow: 0 0 0 1px var(--brand), 0 1px 3px rgba(16, 24, 40, .12); }
.ex-pkey .ki { justify-content: flex-end; }
.ex-pm.nodata .ex-pmn { color: #8A93A3; font-weight: 500; }
/* V482: the place card holds its forecourts at once: taller, the list scrolling inside it, the card never taller than
   the map (its own scroll beyond that) */
/* V519: the card fits the map; only its forecourt list scrolls, so View forecourts on map always shows. */
.ex-float[data-kind="place"] { max-height: calc(100% - 24px); overflow: hidden; box-sizing: border-box; display: flex; flex-direction: column; }
.ex-float[data-kind="place"] > * { flex: none; }
.ex-float[data-kind="place"] > .ex-pfl { flex: 0 1 auto; min-height: 96px; max-height: min(40vh, 300px); margin: 6px 0 4px; border-top: 1px solid #E5E7EB; border-bottom: 1px solid #E5E7EB; }
.ex-float[data-kind="place"] .ex-note { font-size: 12px; margin: 6px 0; }
/* V496: one forecourt's price: grey, sized as the non-cheapest levels (its own t3 size, the scheme's colours replaced) */
.ex-pm .mk.t3.one, .ex-pkey .mk.t3.one { background: #F1F2F4 !important; border-color: #C3C9D2 !important; color: #5B6270 !important; box-shadow: none !important; }
.ex-pm .mk.t3.one .w, .ex-pm .mk.t3.one sup { color: inherit; }
/* V500: the count badge (.cnt3 br wh) */
.ex-pm .mk .cnt3 { position: absolute; right: -17px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font: 700 10px/1 var(--font); box-shadow: 0 0 0 1.5px #fff; }
/* V500: the badge at the pill's bottom right, white with a blue edge (wh); two digits tighter (n2) */
.ex-pm .mk .cnt3.br { top: auto; transform: none; bottom: -7px; right: -9px; }
.ex-pm .mk .cnt3.wh { background: #fff; color: var(--brand); box-shadow: inset 0 0 0 1.25px var(--brand), 0 0 0 1px #fff; }
/* V498: two-digit counts set a little tighter, so 99 clears a white badge's blue edge */
.ex-pm .mk .cnt3.n2 { font-size: 9px; letter-spacing: -.4px; }
.ex-pkey .mk.kb { position: relative; margin-right: 8px; margin-bottom: 4px; }
.ex-pkey .mk.kb .cnt3 { position: absolute; bottom: -6px; right: -9px; width: 14px; height: 14px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--brand); box-shadow: inset 0 0 0 1.25px var(--brand), 0 0 0 1px #fff; font: 700 9px/1 var(--font); }
/* V500: Places' foot: the count on the left, a small map scale on the right */
body.ex-places .ex-bar { display: flex; align-items: center; }
body.ex-places .ex-bar .ex-trail { display: flex; align-items: center; flex: 1; min-width: 0; }
body.ex-places .ex-bar .ex-trail > b, body.ex-places .ex-bar .ex-trail > .ex-n { flex: none; }
.ex-scale { margin-left: auto; padding-left: 10px; display: inline-flex; flex-direction: column; align-items: flex-end; gap: 1px; flex: none; font: 600 10.5px/1 var(--font); color: var(--brand); }
.ex-scale i { display: block; height: 4px; border: 1.5px solid var(--brand); border-top: 0; box-sizing: border-box; }
/* V500: on a phone the foot's wording steps down a size so the scale fits beside it */
@media (max-width: 480px) { body.ex-places .ex-bar .ex-n { font-size: 12px; } body.ex-places .ex-bar .ex-here { font-size: 14px; } }
/* V503: count badges on Areas' markers too; three or more characters widen the badge into a capsule */
.ex-am .mk { position: relative; }
.ex-am .mk .cnt3 { position: absolute; bottom: -7px; right: -9px; min-width: 16px; height: 16px; box-sizing: border-box; display: grid; place-items: center; border-radius: 999px; background: #fff; color: var(--brand); box-shadow: inset 0 0 0 1.25px var(--brand), 0 0 0 1px #fff; font: 700 10px/1 var(--font); }
.ex-am .mk .cnt3.n2 { font-size: 9px; letter-spacing: -.4px; }
.ex-pm .mk .cnt3.n3, .ex-am .mk .cnt3.n3 { width: auto; min-width: 16px; padding: 0 3.5px; border-radius: 999px; font-size: 9px; letter-spacing: -.3px; right: -14px; }
/* V503: the note as Places changes between averages and forecourts, fading out over a second */
.ex-switch { position: absolute; z-index: 7; left: 50%; top: 42%; transform: translate(-50%, -50%); padding: 8px 14px; border-radius: 999px; background: rgba(7, 59, 145, .92); color: #fff; font: 700 13px var(--font); white-space: nowrap; pointer-events: none; opacity: 0; }
.ex-switch.go { animation: ex-switch-fade 1.4s ease-out forwards; }
@keyframes ex-switch-fade { 0% { opacity: 1; } 30% { opacity: 1; } 100% { opacity: 0; } }
/* V503: at forecourt level the places' dots and names step back to mid grey (the forecourts carry the prices) */
body.ex-sites .ex-pm .ex-pmd { background: #9AA3B2; }
body.ex-sites .ex-pm .ex-pmn { color: #7B8494; }
/* V503: badges start just inside the pill's right edge and grow outwards (a capsule never covers the price) */
.ex-am .mk .cnt3, .ex-pm .mk .cnt3.br { right: auto; left: calc(100% - 7px); bottom: -7px; }
.ex-pm .mk .cnt3.n3, .ex-am .mk .cnt3.n3 { right: auto; left: calc(100% - 7px); }
/* V512: Areas' badge at the pill's bottom right, as Places'; the area's name moves down to clear it */
.ex-am .ex-amn { margin-top: 7px; }
/* V507: the note stays 1.5 s (fading in its last half second); the map changes after it */
.ex-switch.go { animation: ex-switch-fade 1.5s ease-in forwards; }
@keyframes ex-switch-fade { 0% { opacity: 1; } 66% { opacity: 1; } 100% { opacity: 0; } }
/* V513: the narrowest phones: the foot's wording a little smaller again, so a three-digit count, it and the scale fit */
@media (max-width: 400px) { body.ex-places .ex-bar .ex-n { font-size: 11px; letter-spacing: -.1px; } body.ex-places .ex-bar .ex-here { font-size: 13.5px; } .ex-scale { padding-left: 6px; } }
/* V517: forecourts without a price for the fuel: Location's grey dot (Places' forecourt level), and in the key */
body.ex-places .maplibregl-marker.mk.none.ex-nop { cursor: pointer; }
.ex-pkey .mk.none.kn { display: inline-block; width: 11px; height: 11px; padding: 0; border: 2px solid #fff; background: #98A2B3; box-shadow: 0 0 0 1px rgba(16, 24, 40, .15); border-radius: 50%; }
/* V528: Report price error (Fuel Finder) on every forecourt card */
a.rpt { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.pk-rpt { margin: 6px 0 0; font-size: 12.5px; text-align: right; }
.ex-float-acts.ex-fc-acts { justify-content: space-between; align-items: center; gap: 10px; }
.ex-fc-acts a.ex-rpt { font-size: 13px; }
/* V536: Insights' old or excluded prices: Location's yellow triangle, one plain line, one action */
.ex-ff-hid { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 8px 10px; border: 1px solid #F5C77E; border-left: 4px solid var(--warn); border-radius: 10px; background: #FFFAF0; font-size: 13px; }
.ex-ff-hid > span:not(.warn) { flex: 1; min-width: 0; line-height: 1.3; }
.ex-ff-hid small { display: block; font-size: 11.5px; color: var(--text-2); }
.ex-ff-hid .warn, .ex-ff-why .warn { flex: none; width: 18px; height: 17px; }
.ex-ff-hid .warn svg, .ex-ff-why .warn svg, .ex-ff-flagged .ex-avg .warn svg { display: block; width: 100%; height: 100%; }
.ex-ff-act { flex: none; min-height: 28px; padding: 0 12px; border: 1px solid var(--brand); border-radius: 999px; background: #fff; color: var(--brand); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.ex-ff-why { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; font-weight: 600; color: #B54708; }
.ex-ff-why > span:not(.warn) { flex: 1; min-width: 0; }
.ex-ff-why .ex-ff-act { min-height: 24px; padding: 0 10px; font-size: 12px; }
.ex-ff-flagged .ex-avg { color: #667085; white-space: nowrap; }
.ex-ff-flagged .ex-avg .warn { display: inline-block; vertical-align: -2px; width: 15px; height: 14px; margin-right: 4px; }
/* V532: Price Insights tabs in two rows, all on screen (no sideways scroll); Reporting ages table */
.ex-ff-tabs { display: grid; gap: 5px; margin: 0 0 8px; }
.ex-ff-tabs .ex-ff-cats { display: flex; flex-wrap: nowrap; overflow: visible; gap: 4px; margin: 0; align-items: center; }
.ex-ff-tabs .ex-ff-cats .chip { flex: 1 1 0; min-width: 0; justify-content: center; padding: 0 4px; font-size: 12.5px; white-space: nowrap; }
.ex-ff-tabs .ex-ff-rowl { flex: none; font-size: 12px; font-weight: 700; color: var(--text-2); margin-right: 2px; }
@media (max-width: 360px) { .ex-ff-tabs .ex-ff-cats .chip { font-size: 11.5px; padding: 0 2px; } }
.ex-ages { width: 100%; border-collapse: collapse; font-size: 13px; margin: 4px 0 6px; }
.ex-ages th, .ex-ages td { padding: 4px 4px; border-bottom: 1px solid #EEF0F3; text-align: right; white-space: nowrap; }
.ex-ages th[scope="row"], .ex-ages thead th:first-child { text-align: left; font-weight: 600; }
.ex-ages thead th { font-size: 11.5px; color: var(--text-2); font-weight: 600; }
.ex-ages td:nth-child(3) { width: 34%; }
.ex-age-bar { display: block; height: 8px; background: #EEF0F3; border-radius: 4px; overflow: hidden; }
.ex-age-bar span { display: block; height: 100%; background: var(--brand); }
@media (max-width: 360px) { .ex-ages th:nth-child(3), .ex-ages td:nth-child(3) { display: none; } .ex-ages { font-size: 12.5px; } }
@media (max-width: 360px) { .ex-ages th, .ex-ages td { padding: 4px 2px; } .ex-ages th[scope="row"], .ex-ages thead th { white-space: normal; } }
/* V538: a tied rank ("3=") on the map's numbered Insights forecourts: the badge widens to fit */
.ex-ff-mk::before { min-width: 18px; width: auto; padding: 0 3px; box-sizing: border-box; border-radius: 9px; }
/* V540: Reporting ages: headline figures, bars scaled to the largest band, a short footer and an info toggle */
.ex-age-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0 8px; }
.ex-age-stats div { padding: 7px 4px; border: 1px solid #E4E7EC; border-radius: 10px; text-align: center; background: var(--surface, #F9FAFB); }
.ex-age-stats b { display: block; font-size: 16px; color: var(--brand); line-height: 1.15; }
.ex-age-stats small { display: block; font-size: 11px; color: var(--text-2); line-height: 1.2; }
.ex-age-info { margin: 2px 0 6px; font-size: 12.5px; color: var(--text-2); }
.ex-age-info summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.ex-age-info summary::before { content: "ⓘ "; }
.ex-age-info p { margin: 4px 0 0; }
@media (max-width: 360px) { .ex-age-stats b { font-size: 14px; } .ex-age-stats small { font-size: 10.5px; } }
/* V545: a little more space between Insights' Summary average figures and its Price change section */
.ex-ffs-stats { margin-bottom: 12px; padding-bottom: 10px; }
/* V548: Insights' Top 5 on the map in Places: shown (above), with the place averages and forecourts behind faded */
body.ex-places.ex-ff-on .ex-pm, body.ex-places.ex-ff-on .maplibregl-marker.ex-site:not(.ex-ff-mk) { opacity: .3 !important; pointer-events: none; }

/* V551 (fuel-test2 only): Explore Pricing, Europe (europe.js). The 27 EU member states against the UK Monday benchmark,
   a table over the map (the stage), mobile first: three columns that fit a 320px screen, no sideways scrolling. */
.ex-eu { position: absolute; inset: 0; z-index: 30; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--surface); }
.ex-eu[hidden] { display: none; }
body.ex-eu-on .ex-search, body.ex-eu-on .ex-chips, body.ex-eu-on .ex-bar { display: none !important; }
/* V588: US (us.js), in Europe's layout and classes (.ex-eu, eu-*); only its own extras below */
body.ex-us-on .ex-search, body.ex-us-on .ex-chips, body.ex-us-on .ex-bar { display: none !important; }
.eu-in { max-width: 720px; margin: 0 auto; padding: 0 var(--pad) calc(24px + var(--sa-b)); }
.eu-top { padding-top: 2px; }
.eu-top .mode-switch, .eu-ctl .mode-switch { margin: 12px 0 0 0 !important; }
.ex-eu .mode-switch button[aria-checked="true"] { background: var(--brand); color: #fff; } /* selected, as the map's switches */
.eu-head { margin: 14px 2px 4px; }
.eu-head h1 { margin: 0; font-size: 22px; line-height: 1.2; color: var(--brand); }
.eu-sub { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: var(--text-2); }
.eu-ctl { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.eu-week { display: inline-flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.eu-week select { height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font: 600 14px var(--font); color: var(--brand); }
.eu-meta { display: flex; flex-direction: column; gap: 3px; margin: 14px 2px 10px; font-size: 13.5px; line-height: 1.35; color: var(--text-2); }
.eu-meta b { color: var(--brand); }
.eu-tw { background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.eu-t { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; }
.eu-t th, .eu-t td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.eu-t tbody tr:last-child > * { border-bottom: 0; }
.eu-t thead th { padding: 0; background: var(--surface); }
.eu-t thead button { display: flex; align-items: center; gap: 4px; width: 100%; min-height: var(--tap); padding: 0 10px; border: 0; background: none; font: 700 13px var(--font); color: var(--brand); cursor: pointer; text-align: left; }
.eu-t .eu-hp button, .eu-t .eu-hv button { justify-content: flex-end; }
.eu-t .eu-hc { width: 36%; } .eu-t .eu-hp { width: 23%; } .eu-t .eu-hv { width: 24%; } .eu-t .eu-h7 { width: 17%; }
.eu-arr { font-size: 10px; min-width: 10px; }
.eu-t tbody th { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.eu-c { display: block; }
.eu-p, .eu-v { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.eu-p { font-weight: 700; color: var(--brand); }
.eu-d { display: block; font-weight: 700; }
.eu-d.up { color: #B42318; } .eu-d.down { color: var(--down); } .eu-d.zero { color: var(--charcoal); }
.eu-pct { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); }
.eu-na { color: var(--text-2); }
.eu-uk > * { background: var(--t2-bg); }
.eu-uk th { color: var(--brand) !important; font-weight: 800 !important; }
.eu-tag { display: inline-block; margin-top: 2px; padding: 1px 7px; border-radius: var(--pill); background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; }
.eu-miss > * { color: var(--text-2); }
.eu-msg { margin: 16px 2px; font-size: 14.5px; color: var(--text-2); }
.eu-unav { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--radius); background: var(--bg); box-shadow: var(--shadow); color: var(--text); }
.eu-unav b { color: var(--brand); }
.eu-notes { margin: 14px 2px 0; font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.eu-notes p { margin: 0 0 8px; }
.eu-notes b { color: var(--text); }
.eu-notes a { color: var(--brand); font-weight: 700; }
@media (min-width: 720px) { .eu-meta { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; } .eu-t { font-size: 15.5px; } }

/* V555: each country's currency that Monday under its name; EUR per litre under the GBP price (the UK's derived, in brackets). */
.eu-cur { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.eu-eur { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); }
.eu-derived { color: var(--x); }

/* V556: 7-day change, far right and quiet (small, grey; a faint tint for the direction). */
.eu-t .eu-h7 button { justify-content: flex-end; }
.eu-7 { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; padding-left: 2px !important; }
.eu-c7 { font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.eu-c7.u { color: #C0806F; } .eu-c7.d { color: #6E9F86; }
@media (max-width: 360px) { .eu-t th, .eu-t td { padding-left: 7px; padding-right: 7px; } .eu-t thead button { padding: 0 7px; } }

/* V558: Full Price | Pre-tax; Tax % in the last column (quiet, as 7d). */
.eu-tx { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.eu-basis-l b { color: var(--text) !important; }
@media (max-width: 360px) { .eu-ctl .mode-switch button { min-width: 0; padding: 0 8px; } }
@media (max-width: 360px) { .eu-tx, .eu-c7 { font-size: 12.5px; } }

/* V560 (fuel-test2 only): Europe map (Phase 2). The map is the default view and fills the Europe panel under its
   controls; the key bottom-left (as Areas'), List countries bottom-right, the country card over the map (Areas' card). */
.ex-eu.eu-mapmode { overflow: hidden; }
.ex-eu.eu-mapmode .eu-in { max-width: none; height: 100%; display: flex; flex-direction: column; padding: 0; }
.ex-eu.eu-mapmode .eu-headbox { flex: none; width: 100%; max-width: 720px; margin: 0; /* V587: left, in line with the map controls (owner) */ padding: 0 var(--pad); box-sizing: border-box; }
.eu-line { margin: 8px 2px 8px; font-size: 13px; line-height: 1.35; color: var(--text-2); }
.eu-line b { color: var(--brand); }
.ex-eu:not(.eu-mapmode) .eu-line { display: none; }
.eu-mapwrap { position: relative; flex: 1; min-height: 260px; }
.eu-mapwrap[hidden], .eu-listbox[hidden] { display: none; }
.eu-map { position: absolute; inset: 0; }
.eu-key { position: absolute; z-index: 2; left: 8px; bottom: 26px; max-width: calc(100% - 140px); padding: 6px 9px 7px; border-radius: 10px; background: rgba(255, 255, 255, .95); box-shadow: 0 2px 8px rgba(23, 32, 51, .18); font-size: 10.5px; line-height: 1.25; color: var(--text); }
.eu-key b { display: block; margin-bottom: 4px; font-size: 11px; color: var(--brand); }
.eu-keys { display: grid; grid-template-columns: repeat(2, auto); gap: 2px 10px; margin: 0; padding: 0; list-style: none; }
.eu-keys li { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.eu-keys i { flex: none; width: 14px; height: 10px; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.eu-keys i.eu-k-uk { background: #fff; box-shadow: inset 0 0 0 1.5px #073B91; }
.eu-keys i.eu-k-none { background: #E4E7EC; box-shadow: none; border: 1px dashed #858D9C; box-sizing: border-box; }
.eu-keys i.eu-k-other { background: #ECEEF1; }
.eu-listbtn, .eu-mapbtn { border: 0; border-radius: var(--pill); background: var(--brand); color: #fff; font: 700 13px var(--font); padding: 9px 14px; box-shadow: var(--shadow); cursor: pointer; }
.eu-listbtn { position: absolute; z-index: 2; right: 8px; bottom: 26px; }
.eu-mapbtn { margin: 12px 0 0; }
.eu-mapmsg { position: absolute; z-index: 3; left: 50%; top: 12px; transform: translateX(-50%); width: min(360px, calc(100% - 24px)); margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--bg); box-shadow: var(--shadow); font-size: 13px; }
.eu-mapmsg[hidden] { display: none; }
.eu-card { bottom: 74px; }
@media (max-width: 599.98px) { .ex-eu.eu-carded .eu-key { display: none; } .eu-card { bottom: 70px; } .eu-keys { grid-template-columns: repeat(2, auto); } .eu-key { max-width: calc(100% - 128px); font-size: 10px; } }
@media (max-width: 599.98px) { .ex-eu.eu-mapmode .eu-head { display: flex; align-items: baseline; gap: 8px; margin: 8px 2px 0; } .ex-eu.eu-mapmode .eu-head h1 { font-size: 18px; } .ex-eu.eu-mapmode .eu-sub { display: none; } }
.eu-cd-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 2px 0 4px; font-size: 24px; font-weight: 800; color: var(--brand); }
.eu-cd-unit { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.eu-cd-price .eu-eur { display: inline; font-size: 13px; }
.eu-cd-diff { display: flex; align-items: baseline; gap: 8px; margin: 0 0 6px; }
.eu-cd-diff .eu-d { display: inline; font-size: 16px; } .eu-cd-diff .eu-pct { display: inline; }
.eu-cd-vs { font-size: 12.5px; color: var(--text-2); }
.eu-cd-dl { display: grid; gap: 3px; margin: 0; font-size: 13px; }
.eu-cd-dl div { display: flex; justify-content: space-between; gap: 12px; }
.eu-cd-dl dt { color: var(--text-2); } .eu-cd-dl dd { margin: 0; font-weight: 600; text-align: right; }
.eu-cd-none { margin: 4px 0 0; font-size: 13.5px; color: var(--text-2); }
.eu-am .mk.x { background: #F2F4F7; color: #667085; }
.eu-rowbtn { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.eu-rowbtn:hover .eu-c { text-decoration: underline; }
.eu-t tr.eu-sel > * { box-shadow: inset 0 0 0 9999px rgba(7, 59, 145, .06); }
.eu-warn { color: #B42318; }

/* V563: the Europe key as a compact scale. */
.eu-key { max-width: min(300px, calc(100% - 140px)); }
.eu-scale { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; border-radius: 4px; overflow: hidden; }
.eu-scale > span { padding: 2px 0; text-align: center; font-size: 9.5px; font-weight: 700; color: #1D2939; white-space: nowrap; }
.eu-scale > span.dk { color: #fff; }
.eu-ends { display: flex; justify-content: space-between; margin: 2px 1px 4px; font-size: 9.5px; color: var(--text-2); }
.eu-key .eu-keys { display: flex; flex-wrap: wrap; gap: 2px 10px; }
@media (max-width: 599.98px) { .eu-key { max-width: calc(100% - 128px); } .eu-scale > span { font-size: 8.5px; } }

/* V564: the key top-left, over the Atlantic (the least covered there), clear of Iberia and the Mediterranean. */
.eu-key { top: 8px; bottom: auto; }

/* V571: the UK's pill is the benchmark, always brand blue (whatever marker colour scheme is chosen). */
.ex-eu .eu-am .mk.eu-ukpk, .ex-eu .eu-am .mk.eu-ukpk * { background: var(--brand) !important; border-color: var(--brand) !important; color: #fff !important; }
.ex-eu .eu-am .mk.eu-ukpk { box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(7, 59, 145, .35) !important; }

/* V572: Price £ | Price € | Price gap | Change over the map, top-left (as Areas'), the key below it. */
.eu-measure { position: absolute; z-index: 3; left: 8px; top: 8px; margin: 0 !important; }
.eu-measure button { min-width: 0; padding: 0 9px; font-size: 12.5px; }
.eu-key { top: 52px; }
.eu-keys.eu-keys5 { display: grid; grid-template-columns: repeat(2, auto); }
@media (max-width: 599.98px) { .eu-measure button { padding: 0 7px; font-size: 12px; height: 30px; } .eu-key { top: 48px; } }

/* V574: Areas' measure icons on the Europe buttons. */
.eu-measure button { display: inline-flex; align-items: center; }

/* V577: Europe's pills white with coloured figures, over any marker colour scheme. */
.ex-eu .eu-am .mk.eu-pk, .ex-eu .eu-am .mk.eu-pk * { background: #fff !important; border-color: #D0D5DD !important; }
.ex-eu .eu-am .mk.eu-pk { box-shadow: 0 1px 4px rgba(16, 24, 40, .22) !important; font-weight: 800 !important; }
.ex-eu .eu-am .mk.eu-pk.dn, .ex-eu .eu-am .mk.eu-pk.dn * { color: #0B6B4C !important; }
.ex-eu .eu-am .mk.eu-pk.up, .ex-eu .eu-am .mk.eu-pk.up * { color: #B42318 !important; }
.ex-eu .eu-am .mk.eu-pk.eq, .ex-eu .eu-am .mk.eu-pk.eq * { color: #344054 !important; }

/* V578: Europe's pills a little smaller. */
.ex-eu .eu-am .mk { font-size: 90% !important; }

/* V580: Europe's names above their pills, close. */
.ex-eu .eu-am { flex-direction: column-reverse; gap: 1px; }
.ex-eu .eu-am .ex-amn { line-height: 1.05; }

/* V588: Explore Pricing, US (fuel-test2 only) */
.ex-us .eu-key { top: auto; bottom: 26px; } /* bottom left, over the Pacific and Mexico (Europe's top left would cover the Northwest) */
.ex-us .us-rgname { text-transform: uppercase; letter-spacing: .04em; font-size: 88%; }
.ex-us .us-jump { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 4px; }
.ex-us .us-jump button { font: inherit; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid #D0D5DD; background: #fff; color: #344054; cursor: pointer; box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.ex-us .us-jump button:hover { border-color: var(--brand); color: var(--brand); }
.ex-us .us-k-rg { background: #fff; border: 1.5px solid #667085 !important; }
.ex-us .us-k-own { background: #fff; border: 1.5px solid #344054 !important; }
.ex-us .us-fallback { margin: 5px 0 3px; font-size: 10.5px; line-height: 1.3; color: #344054; font-weight: 600; }
/* V589: beside the title (the subtitle line is hidden on phones) */
.ex-us .eu-head h1 { display: inline; }
.ex-us .eu-head .eu-sub { margin-top: 2px; }
.ex-us .us-preview { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: #FEF0C7; color: #93370D; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.ex-us .us-snap { margin: 6px 0; }
.ex-us .us-cd-note { margin: 8px 0 0; font-size: 12.5px; color: #475467; line-height: 1.4; }
.ex-us .us-t tr.us-nus th .eu-c { font-weight: 800; }
@media (max-width: 599.98px) { .ex-us .us-jump { top: 44px; left: 8px; transform: none; } .ex-us .us-jump button { padding: 3px 7px; font-size: 11.5px; } .ex-us.eu-carded .eu-key { display: none; } }
.ex-body .top > .ex-back { display: flex; box-sizing: content-box; min-height: 44px; margin: 10px calc(-1 * var(--pad)) 0; padding: 9px var(--pad) 0; border-top: 1px solid var(--line, #D8DEE7); }
.tools2 > .fc-back .t-title { margin: 0; font-size: 26px; line-height: 1.1; color: var(--brand); }

/* V592: Explore Pricing: the title row is Tools' size; the Fuel and Insights row is gone (Insights is not on Explore any
   more; Fuel is a chip at the top of the map's controls). The row stays in the page for the script, hidden. */
.ex-body .top > .ex-back .t-title { margin: 0; font-size: 26px; line-height: 1.1; color: var(--brand); }
.ex-body .top > .ex-chips { display: none !important; }
.mode-ctrl > .ex-fuelchip { margin: 0 !important; max-width: 100%; }
body.ex-eu-on .ex-fuelchip, body.ex-us-on .ex-fuelchip { display: none !important; }
.ex-body .eu-head h1 { display: none !important; } /* the title is in the row above now */

/* V594: one layout for the four Explore Pricing maps (UK Areas, UK Places, Europe, US): the map views as one joined
   switch across the full width; under it the Fuel chip beside Price | Price gap | Change; anything else a map needs
   ($/gal, Lower 48 / Alaska / Hawaii, the week) in a row below. The UK's sit over its map; Europe's and US's in their head. */
.ex-body .maplibregl-ctrl.mode-ctrl { display: grid; justify-items: stretch; gap: 8px; width: calc(100% - 12px - 60px); max-width: 480px; }
@media (min-width: 900px) { .ex-body .maplibregl-ctrl.mode-ctrl { width: 440px; } .ex-body .maplibregl-ctrl-top-right { margin-top: 0; } }
.ex-row2, .eu-row2 { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; }
.ex-row2 > .ex-fuelchip, .eu-row2 > .eu-fuelchip { flex: none; margin: 0 !important; max-width: 46%; }
.ex-body .mode-ctrl .ex-pmode, .ex-body .mode-ctrl .ex-measure, .ex-eu .eu-pm, .ex-eu .eu-measure, .ex-eu .us-unit {
  display: flex !important; width: 100%; box-sizing: border-box; gap: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden;
  border: 1px solid #C9D3E3; border-radius: 12px; background: #fff !important; box-shadow: 0 1px 4px rgba(16, 24, 40, .14) !important; }
.ex-row2 > .ex-measure, .eu-row2 > .eu-measure { flex: 1 1 0; min-width: 0; width: auto; }
.ex-eu .eu-row2 .eu-measure { position: static; }
.ex-body .mode-ctrl .ex-pmode > button, .ex-body .mode-ctrl .ex-measure > button, .ex-body .mode-ctrl .ex-measure > .ch-wrap,
.ex-eu .eu-pm > button, .ex-eu .eu-measure > button, .ex-eu .eu-measure > .ch-wrap, .ex-eu .us-unit > button { flex: 1 1 0 !important; min-width: 0 !important; width: auto; height: 36px; padding: 0 4px !important; font-size: 13px; }
.ex-body .mode-ctrl .ex-pmode > button, .ex-body .mode-ctrl .ex-measure > button, .ex-eu .eu-pm > button, .ex-eu .eu-measure > button, .ex-eu .us-unit > button,
.ex-body .mode-ctrl .ex-measure > .ch-wrap > button, .ex-eu .eu-measure > .ch-wrap > button {
  border-radius: 0 !important; box-shadow: none !important; background: #fff; color: var(--brand); }
.ex-body .mode-ctrl .ex-measure > .ch-wrap, .ex-eu .eu-measure > .ch-wrap { display: flex; }
.ex-body .mode-ctrl .ex-measure > .ch-wrap > button, .ex-eu .eu-measure > .ch-wrap > button { flex: 1; width: 100%; height: 36px; }
.ex-body .mode-ctrl .ex-pmode > button + button, .ex-body .mode-ctrl .ex-measure > * + *, .ex-eu .eu-pm > button + button, .ex-eu .eu-measure > * + *, .ex-eu .us-unit > button + button { border-left: 1px solid #D8DEE7 !important; }
.ex-body .mode-ctrl .ex-pmode > button[aria-checked="true"], .ex-body .mode-ctrl .ex-measure button[aria-checked="true"], .ex-eu .eu-pm > button[aria-checked="true"],
.ex-eu .eu-measure button[aria-checked="true"], .ex-eu .us-unit > button[aria-checked="true"] { background: var(--brand) !important; color: #fff !important; }
.ex-eu .eu-top .eu-pm { margin-top: 12px !important; }
.ex-eu .eu-row2 { margin-top: 8px; }
.ex-eu:not(.eu-mapmode) .eu-measure { display: none !important; }
.ex-eu .us-extras { margin-top: 8px; align-items: center; }
.ex-eu .us-extras .us-unit { width: auto; flex: none; }
.ex-eu .us-extras .us-unit > button { padding: 0 12px !important; height: 32px; }
.ex-us .us-jump { position: static !important; transform: none !important; display: flex; gap: 6px; }
.ex-eu .eu-head { margin: 8px 2px 0; }
.ex-eu .eu-head:not(:has(.us-preview)) .eu-sub { display: none; }
.ex-body .maplibregl-ctrl.mode-ctrl { width: calc(100vw - 24px); max-width: 480px; }
.ex-body .maplibregl-ctrl.mode-ctrl > .ex-uksum { justify-self: start; width: auto !important; max-width: calc(100% - 60px); }
.ex-body .maplibregl-ctrl-top-right { margin-top: 100px; }
.ex-body .mode-ctrl .ex-measure > button, .ex-body .mode-ctrl .ex-measure > .ch-wrap > button, .ex-eu .eu-measure > button, .ex-eu .eu-measure > .ch-wrap > button { font-size: 12.5px; }
.ex-body .mode-ctrl .ex-measure .ms-ic, .ex-eu .eu-measure .ms-ic { width: 12px; height: 12px; margin-right: 3px; }
@media (min-width: 900px) { .ex-body .maplibregl-ctrl.mode-ctrl { width: 440px; } .ex-body .maplibregl-ctrl-top-right { margin-top: 0; } }
@media (max-width: 480px) {
  .ex-body .mode-ctrl .ex-measure > button, .ex-body .mode-ctrl .ex-measure > .ch-wrap > button, .ex-eu .eu-measure > button, .ex-eu .eu-measure > .ch-wrap > button { font-size: 12px; padding: 0 2px !important; white-space: nowrap; }
  .ex-body .mode-ctrl .ex-measure .ms-ic, .ex-eu .eu-measure .ms-ic { width: 11px; height: 11px; margin-right: 2px; }
}
.ex-eu .eu-week { flex-direction: row; align-items: center; gap: 8px; }
.ex-eu .eu-week select { height: 32px; }
.ex-eu .eu-ctl.us-weekrow { margin-top: 8px; align-items: center; }
.ex-eu .eu-ctl:not(.us-extras) { margin-top: 8px; }
@media (min-width: 900px) { .ex-body .top > .ex-back { grid-column: 1 / -1; margin: 0 -20px; padding: 9px 20px 0; } }

/* V596: Europe and US as the UK maps: the map is the background and the controls sit over it (map views, then Fuel beside
   Price | Price gap | Change, then a smaller row under them: Litre | US Gal under Fuel, £ | $ under Price, Lower 48 /
   Alaska / Hawaii under Price gap and Change). No week picker (the latest week). Zoom where the UK maps have it. */
.ex-eu.eu-mapmode .eu-in { position: relative; }
.ex-eu.eu-mapmode .eu-mapwrap { position: absolute; inset: 0; min-height: 0; }
.ex-eu.eu-mapmode .eu-headbox { position: absolute; z-index: 6; top: 0; left: 12px; width: calc(100vw - 24px); max-width: 480px; padding: 0; pointer-events: none; background: none; }
.ex-eu.eu-mapmode .eu-headbox > * { pointer-events: none; }
.ex-eu.eu-mapmode .eu-headbox :is(button, select, label, .mode-switch, .eu-line) { pointer-events: auto; }
@media (min-width: 900px) { .ex-eu.eu-mapmode .eu-headbox { left: 10px; width: 440px; } }
.ex-eu.eu-mapmode .eu-top { padding-top: 0; }
.ex-eu.eu-mapmode .eu-top .eu-pm { margin-top: 12px !important; }
.eu-cg { display: grid; grid-template-columns: auto 1fr 1fr 1fr; align-items: center; row-gap: 6px; margin-top: 8px; }
.eu-cg > .eu-fuelchip { grid-column: 1; grid-row: 1; margin: 0 8px 0 0 !important; max-width: none; }
.eu-cg > .eu-measure { grid-column: 2 / 5; grid-row: 1; width: auto; }
.eu-cg > .us-vol { grid-column: 1; grid-row: 2; margin-right: 8px !important; }
.eu-cg > .us-cur { grid-column: 2; grid-row: 2; }
.eu-cg > .us-jump { grid-column: 3 / 5; grid-row: 2; margin-left: 6px; justify-content: space-between; gap: 4px; }
.ex-eu .eu-cg .us-unit { width: 100%; }
.ex-eu .eu-cg .us-unit > button { height: 28px; font-size: 12px; padding: 0 2px !important; color: var(--brand); }
.ex-eu .eu-cg .us-unit > button[aria-checked="true"] { color: #fff; }
.ex-us .eu-cg .us-jump button { flex: 1 1 auto; font-size: 12px; font-weight: 700; padding: 0 6px; height: 28px; color: var(--brand); border: 1px solid #C9D3E3; background: #fff; border-radius: 999px; white-space: nowrap; }
.ex-eu.eu-mapmode .eu-line { display: inline-block; max-width: calc(100% - 64px); margin: 8px 0 0; padding: 5px 10px; border: 1px solid #C9D3E3; border-radius: 12px; background: #fff; box-shadow: 0 1px 4px rgba(16, 24, 40, .14); color: var(--brand); font-size: 12.5px; }
.ex-eu.eu-mapmode .eu-line .us-preview { margin-right: 4px; }
.ex-eu .maplibregl-ctrl-top-right { margin-top: 140px; }
@media (min-width: 900px) { .ex-eu .maplibregl-ctrl-top-right { margin-top: 0; } }
.ex-eu .eu-pm > button, .ex-eu .eu-measure button { color: var(--brand); }
.ex-us .eu-cg .us-jump { margin-left: 4px; gap: 3px; }
.ex-us .eu-cg .us-jump button { flex: 1 1 0; min-width: 0; font-size: 11px; padding: 0 3px; }
.ex-eu .eu-cg .eu-measure { position: static; left: auto; top: auto; }
.ex-us .eu-cg .us-jump { gap: 2px; }
.ex-us .eu-cg .us-jump button { flex: 1 1 auto; min-width: 0; padding: 0 2px; }
.ex-eu .eu-key { top: auto !important; bottom: 26px; }

/* V597: £ | $ (US) and £ | € (Europe) are the Price button's place, split; Litre | US Gal and Lower 48 / Alaska / Hawaii on the row below, all 28 px. */
.ex-eu .eu-measure > button[data-us-cur], .ex-eu .eu-measure > button[data-eu-unit] { flex: .5 1 0 !important; }
.eu-cg > .us-jump { grid-column: 2 / 5; }
.ex-eu .eu-cg .us-vol { height: 28px; box-sizing: border-box; }
.ex-eu .eu-cg .us-vol > button { height: 26px; }
.ex-us .eu-cg .us-jump button { height: 28px; box-sizing: border-box; }
.ex-us .eu-cg .us-jump { justify-content: flex-start; gap: 6px; }
.ex-us .eu-cg .us-jump button { flex: 0 1 auto; padding: 0 10px; font-size: 12px; }
.ex-eu.eu-mapmode .eu-line { display: block; width: fit-content; }
.ex-eu.eu-mapmode .eu-line + .eu-line { margin-top: 6px; }
.ex-eu .eu-line:empty { display: none !important; }

/* V600: the list views: Fuel and Show map (right) on the second row; no Litre / Lower 48 row (they only work on the map). */
.ex-eu.eu-mapmode .eu-showmap { display: none; }
.ex-eu:not(.eu-mapmode) .eu-cg > .eu-showmap { grid-column: 2 / 5; grid-row: 1; justify-self: end; margin: 0; }
.ex-eu:not(.eu-mapmode) .eu-cg > :is(.us-vol, .us-jump) { display: none !important; }
.ex-eu .eu-listbox .eu-mapbtn { display: none; }

/* V605: Route Pricing's My location row in the box's list, and the warning on the Confirm card. */
.suggest .sug-here b { color: var(--brand); }
.suggest .sug-here .sug-ic { color: var(--brand); }
.rt-share { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0 0; padding: 8px 10px; border: 1px solid #F2C46B; border-radius: 10px; background: #FFF6E0; color: #5C4100; font-size: 13px; line-height: 1.35; }
.rt-share b { color: #4A3300; }
.rt-share-ic { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #E8A317; color: #fff; font-weight: 800; font-size: 13px; }
.rt-card.has-warn { height: auto; max-height: 70%; overflow-y: auto; }

/* V607: Best Value (Location Pricing). The Price button's popover, the green winner marker and "+£0.74" markers, and the
   Best Value block in the panel (under the price filters on wide screens; in place of the filters and List Sites on a phone). */
.maplibregl-ctrl.mode-ctrl { position: relative; }
.mode-switch .ms-chev { flex: none; margin-left: 4px; opacity: .8; }
.mode-switch [data-mode="price"] { display: inline-flex; align-items: center; }
.mode-switch [data-mode="price"][aria-expanded="true"] .ms-chev { transform: rotate(180deg); }
.mode-pop { position: absolute; left: 0; top: 100%; z-index: 5; width: min(268px, calc(100vw - 88px)); margin-top: 6px; padding: 6px; display: grid; gap: 4px; border-radius: 12px; background: var(--bg); box-shadow: 0 4px 18px rgba(16, 24, 40, .22), inset 0 0 0 1px var(--line); }
.mode-pop[hidden] { display: none; }
.mode-pop button { display: grid; gap: 1px; width: 100%; padding: 8px 10px 8px 30px; position: relative; border: 0; border-radius: 9px; background: none; text-align: left; cursor: pointer; }
.mode-pop button::before { content: ""; position: absolute; left: 9px; top: 11px; width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--t2-line); }
.mode-pop button[aria-checked="true"]::before { box-shadow: inset 0 0 0 4px var(--brand); }
.mode-pop button:hover { background: var(--t2-bg); }
.mode-pop .mp-t { font-weight: 700; font-size: 14px; color: var(--text); }
.mode-pop .mp-d { font-size: 12px; line-height: 1.3; color: var(--text-2); }
@media (max-width: 899.98px) { .mode-pop { width: min(250px, calc(100vw - 24px)); } }

/* Markers: Best Value uses the existing five tier looks (the chosen Map Marker Style's CSS, marker-styles.js) as they are:
   no colour, size, shape or font of its own, only a money label instead of a price. */
.mk.bv-mk .bv-fig { white-space: nowrap; }

/* The panel block. */
.bv { margin: 12px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.sheet-body > .s-head + .bv { margin-top: 4px; padding-top: 0; border-top: 0; }
.bv-h { margin: 0 0 2px; font-size: 15px; color: var(--brand); }
.bv-ex { margin: 0 0 8px; font-size: 12.5px; line-height: 1.35; color: var(--text-2); }
.bv-ctl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bv-f label { display: block; margin: 0 0 3px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.bv-step { display: flex; align-items: stretch; height: 38px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); }
.bv-step button { flex: none; width: 38px; border: 0; background: var(--surface); font-size: 18px; font-weight: 700; color: var(--brand); cursor: pointer; }
.bv-step button:hover { background: var(--t2-bg); }
.bv-step input { flex: 1; min-width: 0; width: 100%; border: 0; text-align: center; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; background: transparent; }
.bv-step input[aria-invalid] { background: #FEF3F2; color: #B42318; }
.bv-err { margin: 4px 0 0; font-size: 12px; color: #B42318; }
.bv-err:empty { display: none; }
.bv-from { display: flex; align-items: center; gap: 5px; margin: 8px 0 0; font-size: 12.5px; color: var(--text-2); }
.bv-from svg { flex: none; color: var(--brand); }
.bv-best { display: grid; gap: 1px; margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #E8F5EE; box-shadow: inset 0 0 0 1.5px var(--down); }
.bv-lab { font-size: 11.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--down); }
.bv-bn { font-size: 15.5px; font-weight: 700; color: var(--text); }
.bv-bt { font-size: 14px; color: var(--down); } .bv-bt b { font-size: 20px; }
.bv-bs { font-size: 12.5px; color: var(--text-2); } .bv-bs b { color: var(--brand); }
.bv-note { margin: 8px 0 0; font-size: 12px; line-height: 1.35; color: var(--text-2); }
.bv-cap { margin: 10px 0 0; font-size: 12px; color: var(--text-2); }
.bv-list { margin-top: 6px; }
.bv-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px; align-items: center; width: 100%; }
.bv-rk { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); font-size: 12px; font-weight: 700; color: var(--text-2); }
.bv-row.win .bv-rk { background: var(--down); color: #fff; }
.bv-row.win { background: #E8F5EE; }
.bv-mid { min-width: 0; }
.bv-amt { display: grid; justify-items: end; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.bv-amt.win { color: var(--down); }
.bv-amt-l { font-size: 11px; font-weight: 500; color: var(--text-2); }
.bv-need { margin: 6px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--surface); }
.bv-need p { margin: 0 0 8px; font-size: 13.5px; }
.bv-need .btn { height: 40px; }
.bv-none { margin: 10px 0 0; font-size: 13.5px; }
.bv-fnote { margin: 8px 0 0; font-size: 12px; color: var(--text-2); }
.filters button:disabled { cursor: default; }

/* Phones: the panel scrolls (the map keeps its share); wide screens' panel already scrolls. */
@media (max-width: 899.98px) {
  .sheet.bv-mode:not(.choosing) { display: flex; flex-direction: column; max-height: calc(52% + var(--sa-b)); }
  .sheet.bv-mode:not(.choosing) .sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .sheet.bv-mode.folded { max-height: none; }
  .sheet.bv-mode .tiles { margin-top: 10px; }
}
/* V611, wide screens: Best Value's panel card is one unit (it scrolls only if the window is too short) and the ranked
   list is its own scrolling card under it, as Pump price's. */
@media (min-width: 900px) { .sheet.bv-mode.docked .sheet-body { max-height: calc(100% - 160px); } }

/* V612: Best Value panel, results first: the heading with its ⓘ, litres and MPG, where from, the result (the fill-up, what
   it saves against the cheapest pump price), and a compact legend. No pump price filters in this mode. */
.bv-hd { display: flex; align-items: center; gap: 2px; }
.bv-hd .bv-h { margin: 0; }
.bv-i.info { width: 32px; height: 32px; margin: -4px 0 -4px -2px; }
.bv-i svg { width: 17px; height: 17px; }
.bv-range { margin: 2px 0 8px; font-size: 12px; color: var(--text-2); }
.bv-range .pr { font-weight: 600; }
.bv .mk { position: static; cursor: default; font-size: 13px; line-height: 1; pointer-events: none; }
.bv-sum { margin: 10px 0 0; padding: 2px 0 0; }
.bv-sum p { margin: 0; }
.bv-sk { font-size: 12px; font-weight: 700; color: var(--text-2); letter-spacing: .02em; text-transform: uppercase; }
.bv-st { display: flex; align-items: center; gap: 8px; margin-top: 3px !important; font-size: 14px; color: var(--text-2); }
.bv-sum .bv-st .mk { font-size: 17px; padding: 5px 11px; }
.bv-sn { margin-top: 5px !important; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-sn b { font-weight: 700; }
.bv-sb { margin-top: 1px !important; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.bv-sv { margin-top: 4px !important; font-size: 13.5px; font-weight: 600; color: var(--brand); }
.bv-se { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px !important; font-size: 12px; color: var(--text-2); }
.bv-se .linkish { flex: none; min-height: 32px; font-size: 13px; }
.bv-lg { display: flex; flex-wrap: wrap; gap: 6px 6px; margin: 8px 0 0; }
.bv-lgi { display: inline-flex; }
.bv-lg .mk { font-size: 12.5px; padding: 3px 8px; min-height: 0; }
.bv-info p { margin: 0 0 8px; font-size: 13px; line-height: 1.4; }
.bv-info .bv-info-p { color: var(--text-2); font-size: 12.5px; }
/* Minimised on a phone (and wide): the answer stays in view. */
.s-fold.bv-fold { display: grid; gap: 2px; height: auto; min-height: 0; margin: 0; padding: 2px 0 6px; text-align: left; }
.bv-fold .bvf-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; font-size: 14px; }
.bv-fold .bvf-top b { color: var(--brand); }
.bv-fold .bvf-l { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text-2); }
.bv-fold .bvf-l b { font-size: 24px; line-height: 1.1; color: var(--brand); font-variant-numeric: tabular-nums; }
.bv-fold .bvf-n { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-fold .bvf-v { font-size: 13px; color: var(--brand); font-weight: 600; }
/* A phone: the pump price range is in the ⓘ (the panel stays short). */
@media (max-width: 899.98px) { .bv-range { display: none; } }
@media (max-width: 349.98px) { .bv-sum .bv-st .mk { font-size: 15px; } .bv-ctl { gap: 8px; } }
/* V612: compact (a phone's panel is not taller than before). */
.bv-ex { margin: 0 0 6px; font-size: 12.5px; line-height: 1.3; }
.bv-sum { margin: 6px 0 0; }
.bv-sn { margin-top: 3px !important; }
.bv-se { margin-top: 2px !important; }
.bv-lg { margin-top: 4px; }
.bv-step { height: 36px; }
.sheet-body > .s-head { margin-bottom: 2px; }
.bv-st { margin-top: 0 !important; }
/* V612: on the narrowest phones "Best Value" gives up its icon and arrow so the row still clears the map's + / - buttons. */
@media (max-width: 349.98px) { .mode-switch.is-value [data-mode="price"] .ms-ic, .mode-switch.is-value [data-mode="price"] .ms-chev { display: none; } .mode-switch.is-value [data-mode="price"] { padding: 0 8px; } }
@media (max-width: 349.98px) { .mode-switch.is-value { gap: 4px; } .mode-switch.is-value button { padding: 0 7px; min-width: 0; } .mode-row:has(.is-value) { gap: 5px; } }
@media (max-width: 349.98px) { .mode-switch.is-value .ms-ic { display: none; } }
.bv-lg { gap: 4px; }
.bv-lg .mk { font-size: 12px; padding: 3px 5px !important; }
.bv-lg { gap: 3px; }
.bv-lg .mk { font-size: 11.5px; padding: 3px 4px !important; }

/* V616: Price | Best Value | Price gap | •••. ••• (more.js) opens Change and Brand; it is blue while Change is on, with a dot
   when a brand is chosen. Location and Route Pricing. */
.mode-row { gap: 6px; }
.more-wrap { position: relative; display: inline-flex; flex: none; }
.more-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 32px; min-width: 40px; padding: 0 9px; border: 0; border-radius: 10px; background: var(--bg); color: var(--brand); box-shadow: inset 0 0 0 1px var(--t2-line), 0 1px 4px rgba(16, 24, 40, .14); cursor: pointer; }
.more-btn:hover { background: var(--t2-bg); }
.more-btn.on, .maplibregl-ctrl .more-btn.on { background: var(--brand); color: #fff; box-shadow: 0 1px 4px rgba(16, 24, 40, .18); }
.more-btn.has-dot::after { content: ""; position: absolute; top: 3px; right: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px #fff; }
.more-btn.on.has-dot::after { background: #fff; box-shadow: 0 0 0 2px var(--brand); }
.more-pop { left: auto; right: 0; width: min(272px, calc(100vw - 24px)); }
.mp-row { position: relative; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 10px; border-radius: 9px; cursor: pointer; }
.mp-row[hidden] { display: none; }
.mp-row:hover, .mp-row.on { background: var(--t2-bg); }
.mp-ic { flex: none; display: grid; color: var(--brand); }
.mp-lab { flex: 1; min-width: 0; display: grid; }
.mp-t { font-weight: 700; font-size: 14px; color: var(--text); }
.mp-d { font-size: 12px; line-height: 1.3; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-row.on .mp-d { color: var(--brand); font-weight: 600; }
.mp-v { flex: none; font-weight: 700; font-size: 13px; color: var(--text-2); }
.mp-row.on .mp-v { color: var(--brand); }
.mp-chev { flex: none; color: var(--text-2); }
.mp-sel { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.more-pop button.mp-clear { position: relative; z-index: 2; display: inline-flex; align-items: center; width: auto; min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font: 700 12px var(--font); color: var(--brand); cursor: pointer; }
.more-pop button.mp-clear::before { display: none; }
.more-pop button.mp-clear:hover { background: var(--t2-bg); }
.mp-row:has(.mp-sel:focus-visible) { outline: 3px solid var(--focus); outline-offset: -1px; }
/* Narrow phones: the labels in full, the icons given up, so all four buttons stay on one row beside the map's + and −. */
@media (max-width: 359.98px) { .mode-switch .ms-ic { display: none; } .mode-switch button { padding: 0 8px; min-width: 0; } .more-btn { min-width: 34px; padding: 0 6px; } .mode-row { gap: 4px; } }
/* V620: "Best value · Cheapest fill-up, including the return trip" on one row (the ⓘ at its end). */
.bv-hd { gap: 6px; margin-bottom: 6px; }
.bv-hd .bv-h { flex: none; }
.bv-hs { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--text-2); }
.bv-hd .bv-i.info { flex: none; margin-left: auto; }
/* V621: on Route Pricing the ••• button is near the left edge of the map, so its menu opens under the row, from its left edge. */
.rt-body .mode-row { position: relative; }
.rt-body .more-wrap { position: static; }
.rt-body .more-pop { left: 0; right: auto; }
