/* EasyFuelPrices
   Visual language borrowed from UK roads: motorway-sign blue plates with an
   inset white border, and the amber digits of a forecourt price totem. */
:root {
  --blue: #0a58a8;       /* motorway sign */
  --blue-ink: #08427f;
  --night: #0e2240;      /* totem panel */
  --amber: #ffb21a;      /* totem digits */
  --kerb: #eef2f6;       /* page */
  --white: #fff;
  --ink: #1b2733;
  --muted: #566577;
  --line: #d6dee7;
  --go: #12855a;         /* cheaper */
  --dear: #b8402b;       /* dearer */
  --mid: #8a5a00;
  --radius: 10px;
  --font: "Overpass", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --step--1: .875rem;
  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.1rem;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--ink);
  background: var(--kerb);
  font-variant-numeric: tabular-nums;
}
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-ink); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 1.6em 0 .5em; }
h1 { font-size: var(--step-3); font-weight: 800; margin-top: .3em; }
h2 { font-size: var(--step-2); font-weight: 750; }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
.small { font-size: var(--step--1); color: var(--muted); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: .5rem 1rem; z-index: 2000; }
.skip:focus { left: .5rem; top: .5rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.demo-banner { background: var(--amber); color: var(--night); text-align: center; font-weight: 700; padding: .4rem 1rem; font-size: var(--step--1); }

/* ---------- header: a sign plate ---------- */
.site-header { background: var(--blue); color: var(--white); position: relative; z-index: 1001; }
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 58px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--white); text-decoration: none; font-size: 1.3rem; font-weight: 500; letter-spacing: -.02em; }
.logo:hover { color: var(--white); }
.logo b { font-weight: 800; }
.site-nav { margin-left: auto; display: flex; gap: .25rem; }
.site-nav a { color: var(--white); text-decoration: none; padding: .45rem .7rem; border-radius: 6px; font-weight: 600; }
.site-nav a:hover { background: rgba(255,255,255,.12); }
.site-nav a[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--white); }
.nav-toggle { display: none; margin-left: auto; background: none; color: var(--white); border: 2px solid var(--white); border-radius: 6px; font: inherit; font-weight: 700; padding: .3rem .8rem; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--blue); flex-direction: column; padding: .5rem 1.25rem 1rem; box-shadow: 0 8px 18px rgba(14,34,64,.25); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .75rem .5rem; }
}

/* ---------- buttons ---------- */
.btn, .btn-locate, .search button, .totem-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; border-radius: 8px; cursor: pointer; text-decoration: none;
  background: var(--blue); color: var(--white); border: 0; padding: .7rem 1.1rem; min-height: 44px;
}
.btn:hover, .search button:hover { background: var(--blue-ink); color: var(--white); }
.btn-ghost { background: var(--white); color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn-ghost:hover { background: var(--kerb); color: var(--blue-ink); }

/* ---------- the totem (signature element) ---------- */
.totem {
  background: var(--night); color: var(--white); border-radius: var(--radius);
  padding: 1rem 1.15rem 1.1rem; position: relative;
  box-shadow: inset 0 0 0 3px var(--night), inset 0 0 0 5px rgba(255,255,255,.85);
}
.totem-title { margin: 0 0 .1rem; font-weight: 700; font-size: var(--step-0); color: #dfe7f1; }
.totem-price { margin: 0; line-height: 1; color: var(--amber); font-weight: 800; letter-spacing: -.03em; display: flex; align-items: baseline; }
.totem-price .digits { font-size: clamp(3.2rem, 12vw, 4.4rem); text-shadow: 0 0 18px rgba(255,178,26,.35); }
.totem-price .unit { font-size: 1.6rem; margin-left: .15rem; }
.totem-line { margin: .35rem 0 0; color: #dfe7f1; font-size: var(--step--1); }
.totem-line strong { color: var(--white); }
.totem-cta { margin-top: .8rem; background: var(--amber); color: var(--night); }
.totem-cta:hover { background: #ffc54d; color: var(--night); }
.totem-sm .totem-price .digits { font-size: clamp(2rem, 7vw, 2.4rem); }
.totem-sm .totem-price .unit { font-size: 1.2rem; }
.totem-sm { padding: .85rem 1rem; }
.totem-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.totem-actions .totem-cta { flex: 1 1 auto; }
.totem-actions .totem-cta.alt { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px rgba(255,255,255,.6); }
.boards { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); margin: 1rem 0; }
.boards.two { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- finder ---------- */
.finder { display: grid; grid-template-columns: minmax(340px, 440px) 1fr; height: calc(100vh - 58px); height: calc(100dvh - 58px); min-height: 560px; background: var(--white); border-bottom: 1px solid var(--line); }
.finder-panel { overflow-y: auto; padding: 1.1rem 1.25rem 1.5rem; display: flex; flex-direction: column; gap: .9rem; }
.finder-head h1 { font-size: 1.9rem; margin: 0; }
.finder-head .lede { margin: .15rem 0 0; color: var(--muted); }
.finder-map { position: relative; background: #dfe6ee; }
#map { position: absolute; inset: 0; }
.controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; }
.btn-locate { width: 100%; font-size: 1.15rem; min-height: 56px; border-radius: 10px; box-shadow: inset 0 0 0 3px var(--blue), inset 0 0 0 5px rgba(255,255,255,.9); }
.btn-locate:hover { background: var(--blue-ink); }
.btn-locate[aria-busy="true"] { opacity: .75; cursor: progress; }
.search { display: flex; gap: .4rem; position: relative; }
.suggest { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 1200; list-style: none; margin: 0; padding: 4px; background: var(--white); border: 2px solid var(--line); border-radius: 8px; box-shadow: 0 8px 20px rgba(14,34,64,.18); }
.suggest button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: .7rem .75rem; border-radius: 6px; cursor: pointer; font-weight: 600; }
.suggest button:hover, .suggest button:focus-visible { background: var(--kerb); }
.search input { flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; padding: .65rem .8rem; border: 2px solid var(--line); border-radius: 8px; min-height: 48px; background: var(--white); color: var(--ink); }
.search input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(10,88,168,.2); }
.search button { min-height: 48px; }
.fuel-switch { border: 0; margin: 0; padding: 3px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--kerb); border-radius: 10px; gap: 3px; }
.fuel-switch label, .sort label { position: relative; }
.fuel-switch input, .sort input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.fuel-switch span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 46px; padding: .3rem .25rem; border-radius: 8px; font-weight: 700; font-size: .92rem; line-height: 1.1; color: var(--muted); }
.fuel-switch input:checked + span { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(14,34,64,.18), inset 0 -3px 0 var(--amber); }
.fuel-switch input:focus-visible + span, .sort input:focus-visible + span { outline: 3px solid var(--amber); }
.options { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.opt { display: flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--muted); }
.opt select { font: inherit; font-weight: 700; color: var(--ink); padding: .4rem .5rem; border: 2px solid var(--line); border-radius: 8px; background: var(--white); min-height: 42px; }
.sort { display: flex; background: var(--kerb); border-radius: 8px; padding: 3px; gap: 3px; }
.sort span { display: block; padding: .45rem .8rem; border-radius: 6px; font-weight: 700; color: var(--muted); font-size: .95rem; }
.sort input:checked + span { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(14,34,64,.18); }
.status { margin: 0; color: var(--muted); font-size: var(--step--1); min-height: 1.2em; }
.status.error { color: var(--dear); font-weight: 600; }
.view-switch { display: none; }

/* results list: rows, not cards */
.results { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.result { border-bottom: 1px solid var(--line); }
.result > button { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 5.2rem 1fr auto; gap: .8rem; align-items: center; padding: .75rem .25rem; cursor: pointer; }
.result > button:focus-visible { outline: 3px solid var(--amber); }
.result.active > button, .result > button:hover { background: #f5f8fb; }
.pill { display: inline-flex; justify-content: center; align-items: baseline; font-weight: 800; font-size: 1.35rem; padding: .3rem .4rem; border-radius: 7px; color: var(--white); background: var(--muted); letter-spacing: -.02em; }
.pill small { font-size: .8rem; margin-left: 1px; }
.pill.low { background: var(--go); }
.pill.mid { background: #b07400; }
.pill.high { background: var(--dear); }
.r-name { font-weight: 700; line-height: 1.2; display: block; }
.r-sub { color: var(--muted); font-size: var(--step--1); display: block; margin-top: .15rem; }
.r-dist { font-weight: 700; text-align: right; white-space: nowrap; }
.r-dist small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; }
.r-detail { padding: 0 .25rem 1rem; }
.r-prices { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0 0 .8rem; padding: 0; list-style: none; }
.r-prices li { font-size: var(--step--1); color: var(--muted); }
.r-prices strong { display: block; color: var(--ink); font-size: 1.1rem; }
.r-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.r-actions .btn { padding: .55rem .9rem; }
.closed-note { color: var(--dear); font-weight: 600; }
.r-report { margin: .6rem 0 0; font-size: var(--step--1); }
.notice { background: #fff6e0; border-left: 4px solid var(--amber); padding: .7rem .9rem; border-radius: 6px; }

.search-area { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 500; font: inherit; font-weight: 700; background: var(--white); color: var(--blue); border: 0; border-radius: 999px; padding: .6rem 1.1rem; box-shadow: 0 2px 10px rgba(14,34,64,.3); cursor: pointer; }

/* map markers */
.pm { background: none; border: 0; }
.pm span { display: inline-block; transform: translate(-50%, -100%); white-space: nowrap; font: 800 13px/1 var(--font); color: var(--white); background: var(--muted); padding: 5px 6px 4px; border-radius: 6px; box-shadow: 0 1px 4px rgba(0,0,0,.35); position: relative; }
.pm span::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: inherit; }
.pm .low { background: var(--go); border-color: var(--go); }
.pm .mid { background: #b07400; border-color: #b07400; }
.pm .high { background: var(--dear); border-color: var(--dear); }
.pm .none { background: #7d8a99; border-color: #7d8a99; }
.pm span { border-color: var(--muted); }
.pm.sel span { outline: 3px solid var(--amber); z-index: 10; }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--blue); border: 3px solid var(--white); box-shadow: 0 0 0 6px rgba(10,88,168,.25); }
.leaflet-container { font-family: var(--font); }

@media (max-width: 860px) {
  .finder { display: block; height: auto; min-height: 0; }
  .finder-panel { overflow: visible; padding: 1rem 1rem 1.25rem; }
  .finder-head h1 { font-size: 1.6rem; }
  .finder-map { height: 62vh; display: none; }
  .finder.show-map .finder-map { display: block; }
  .finder.show-map .results { display: none; }
  .view-switch { display: flex; background: var(--kerb); border-radius: 8px; padding: 3px; gap: 3px; }
  .view-switch button { flex: 1; font: inherit; font-weight: 700; border: 0; background: none; color: var(--muted); padding: .55rem; border-radius: 6px; min-height: 42px; }
  .view-switch button[aria-selected="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(14,34,64,.18); }
  .view-switch[hidden] { display: none; }
}

/* ---------- content pages ---------- */
.below { padding-top: 1.5rem; padding-bottom: 3rem; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; gap: 0; } }
.link-cloud { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.link-cloud a { display: inline-block; padding: .35rem .7rem; background: var(--white); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-weight: 600; }
.link-cloud a:hover { border-color: var(--blue); }
.link-cloud .sub { color: var(--muted); font-size: .8rem; }
.guide-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.guide-list li { padding: .9rem 0; border-bottom: 1px solid var(--line); }
.guide-list a { font-weight: 700; font-size: 1.1rem; }
.guide-list span { display: block; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; margin: 1rem 0 0; font-size: var(--step--1); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .3rem; color: #9aa7b5; }
.page-head { margin-bottom: 1rem; }
.page-head .lede, .lede { color: var(--muted); font-size: 1.1rem; }
.summary { font-size: 1.08rem; max-width: 70ch; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { display: inline-block; font-size: .85rem; font-weight: 700; padding: .2rem .55rem; border-radius: 5px; background: var(--white); border: 1px solid var(--line); }
.tag-warn { border-color: var(--dear); color: var(--dear); }
main > .wrap { padding-bottom: 3rem; }
.prose-wrap { max-width: 760px; }
.prose { max-width: 68ch; }
.prose li { margin-bottom: .45rem; }
.prose .lede { font-size: 1.15rem; }
.more { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.contact-mail { font-size: 1.4rem; font-weight: 700; }
.faq dt { font-weight: 750; font-size: 1.15rem; margin-top: 1.4rem; }
.faq dd { margin: .3rem 0 0; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.5rem; margin: 0; }
.facts dt { font-weight: 700; color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; gap: 0; } .facts dd { margin-bottom: .6rem; } }
.dir-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.minimap { height: 320px; border-radius: var(--radius); overflow: hidden; margin: 1.2rem 0; background: #dfe6ee; border: 1px solid var(--line); }
.az { display: flex; flex-wrap: wrap; gap: .3rem; margin: 1rem 0; }
.az a { display: inline-flex; width: 2.2rem; height: 2.2rem; align-items: center; justify-content: center; background: var(--blue); color: var(--white); border-radius: 6px; text-decoration: none; font-weight: 800; }
.town-cols { columns: 4 200px; list-style: none; padding: 0; margin: 0; }
.town-cols li { padding: .15rem 0; break-inside: avoid; }
.town-cols .sub { color: var(--muted); font-size: .8rem; }

/* tables */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin: .5rem 0 .6rem; }
table.data { border-collapse: collapse; width: 100%; font-size: .95rem; }
table.data caption { text-align: left; padding: .7rem .9rem .3rem; color: var(--muted); font-size: var(--step--1); }
table.data th, table.data td { padding: .6rem .9rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data thead th { border-top: 0; font-size: .85rem; color: var(--muted); white-space: nowrap; }
table.data tbody th { font-weight: 600; min-width: 13rem; }
table.data .num { text-align: right; white-space: nowrap; font-weight: 700; }
table.data td.na { color: #9aa7b5; text-align: right; }
table.data td.low { color: var(--go); }
table.data td.high { color: var(--dear); }
table.data .sub { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
table.data tr.closed { opacity: .6; }

/* chart */
.chart { margin: 0 0 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { font: 12px var(--font); fill: var(--muted); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .ln { fill: none; stroke-width: 2.5; stroke-linejoin: round; }
.chart .ln-unleaded { stroke: var(--go); }
.chart .ln-diesel { stroke: var(--night); }
.chart figcaption { font-size: var(--step--1); color: var(--muted); margin-top: .3rem; }
.key { display: inline-block; width: 14px; height: 4px; border-radius: 2px; vertical-align: middle; margin: 0 .3rem 0 .6rem; }
.key-unleaded { background: var(--go); margin-left: 0; }
.key-diesel { background: var(--night); }

/* ads: space reserved to avoid layout shift */
.ad { margin: 2rem 0; min-height: 120px; text-align: center; }
.ad-label { display: block; font-size: .72rem; color: var(--muted); margin-bottom: .25rem; }

/* footer */
.site-footer { background: var(--night); color: #c9d4e2; padding: 2.5rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid nav { display: flex; flex-direction: column; gap: .45rem; }
.footer-grid nav a { text-decoration: none; }
.footer-grid nav a:hover { text-decoration: underline; }
.footer-brand { font-weight: 800; color: var(--white); font-size: 1.2rem; margin-bottom: .4rem; }
.footer-head { font-weight: 700; color: var(--amber); margin: 0 0 .2rem; }
.site-footer .small { color: #9fb0c4; }
.footer-base { margin-top: 2rem; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
