/* Motor Snappy – brand guide v1.0 (24 Oct 2026). Mobile first. */
:root {
  --brand-green: #00B83F;
  --brand-navy: #00213D;
  --brand-green-dark: #007A2A;
  --surface-mint: #EAF8EF;
  --text-muted: #52616B;
  --surface: #F5F7F8;
  --line: #DDE3E7;
  --amber: #B25E00;
  --red: #B42318;
  --font-brand: "Nunito", Arial, sans-serif;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/26px var(--font-brand);
  color: var(--brand-navy);
  background: #fff;
}
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { margin: 0 0 .5rem; letter-spacing: normal; }
h1 { font-weight: 800; font-size: 32px; line-height: 38px; }
h2 { font-weight: 800; font-size: 26px; line-height: 34px; }
h3 { font-weight: 700; font-size: 20px; line-height: 28px; }
p { margin: 0 0 1rem; }

a { color: var(--brand-green-dark); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--brand-navy); }
:focus-visible { outline: 3px solid var(--brand-navy); outline-offset: 3px; box-shadow: 0 0 0 3px #fff; border-radius: 4px; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.section { padding: 32px 16px; }
.muted { color: var(--text-muted); font-size: 14px; line-height: 20px; }
.lead { font-size: 18px; line-height: 28px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { border-top: 6px solid var(--brand-green); border-bottom: 1px solid var(--line); background: #fff; }
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 8px; padding-bottom: 8px; }
.brand img { height: 48px; width: auto; }

/* Search */
.search { display: flex; gap: 8px; width: 100%; }
.search input {
  flex: 1; min-width: 0; min-height: 52px; padding: 12px 16px;
  font: 400 16px/24px var(--font-brand); color: var(--brand-navy);
  border: 1.5px solid var(--text-muted); border-radius: var(--radius); background: #fff;
}
.search input::placeholder { color: var(--text-muted); }
button, .btn {
  min-height: 48px; padding: 12px 24px; border: 0; border-radius: var(--radius); cursor: pointer;
  font: 700 16px/24px var(--font-brand); background: var(--brand-green); color: var(--brand-navy);
}
button:hover, .btn:hover { background: var(--brand-green-dark); color: #fff; }
.search--compact { flex: 1 1 260px; }
.search--compact input { min-height: 48px; }
.btn-link {
  background: none; color: var(--brand-green-dark); padding: 8px 0; min-height: 48px;
  text-decoration: underline; text-underline-offset: 2px;
}
.btn-link:hover { background: none; color: var(--brand-navy); }

/* Home hero */
.hero { padding: 16px 0 8px; }
.hero__inner { text-align: center; }
.hero__logo { width: min(320px, 80%); margin: 0 auto 8px; }
.hero .lead { color: var(--text-muted); }
.panel { background: var(--surface); border-radius: var(--radius); padding: 20px 16px; }
.panel--search { max-width: 720px; margin: 16px auto 0; text-align: left; }
.alert { background: #FFF4E5; border-left: 4px solid var(--amber); padding: 10px 12px; border-radius: 6px; }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0; }
.tile {
  display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: var(--radius);
  background: var(--surface-mint); color: var(--brand-navy); text-decoration: none;
}
a.tile:hover { outline: 2px solid var(--brand-green); color: var(--brand-navy); }
.tile__label { font-size: 14px; line-height: 20px; color: var(--text-muted); font-weight: 700; }
.tile__value { font-size: 28px; line-height: 34px; font-weight: 800; }
.tile__detail { font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }
.tiles--snapshot .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }


/* Area page */
.crumbs { font-size: 14px; line-height: 20px; color: var(--text-muted); padding: 16px 0 8px; }
.summary { background: var(--surface); border-radius: var(--radius); padding: 14px 16px; }
.sections, .side { display: grid; gap: 16px; align-content: start; }
.sections { padding-bottom: 40px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; background: #fff; scroll-margin-top: 16px; }
.card h2 { font-size: 22px; line-height: 30px; }
.source { margin: 12px 0 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }

.stations, .chargers { list-style: none; padding: 0; margin: 0; }
.station, .chargers li { padding: 12px 0; border-top: 1px solid var(--line); }
.station__head { display: flex; justify-content: space-between; gap: 8px; }
.station__addr { margin-bottom: 6px; }
.station__dir { font-weight: 700; font-size: 14px; display: inline-block; padding: 6px 0; }
.prices { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.prices > div { background: var(--surface); border-radius: 8px; padding: 4px 10px; }
.prices dt { font-size: 12px; line-height: 16px; color: var(--text-muted); font-weight: 700; }
.prices dd { margin: 0; font-weight: 800; font-size: 18px; line-height: 24px; }
.prices .is-cheapest { background: var(--brand-green); }
.prices .is-cheapest dt { color: var(--brand-navy); }

.warnings { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.warning { display: grid; gap: 4px; padding: 12px; border-radius: 8px; border-left: 6px solid #F2C200; background: #FFFBE6; }
.warning--amber { border-color: #F08C00; background: #FFF4E5; }
.warning--red { border-color: var(--red); background: #FDECEA; }

.partner {
  display: grid; gap: 2px; padding: 16px; border-radius: var(--radius);
  border: 2px dashed var(--brand-green); background: var(--surface-mint);
}
.partner__label { font-size: 12px; line-height: 16px; text-transform: uppercase; font-weight: 700; color: var(--text-muted); }

.news { padding-left: 20px; margin: 0; }
.news li { margin-bottom: 8px; }
.facts { margin: 0; display: grid; gap: 8px; }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 8px; }
.facts dt { color: var(--text-muted); font-weight: 700; }
.facts dd { margin: 0; }
.plain { padding-left: 20px; }
.plain li { margin-bottom: 8px; }

/* Sources table */
.table-scroll { overflow-x: auto; margin-bottom: 24px; }
.status { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.status th, .status td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
.pill { font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pill--ok { background: var(--surface-mint); color: var(--brand-green-dark); }
.pill--warn { background: #FFF4E5; color: var(--amber); }
.pill--bad { background: #FDECEA; color: var(--red); }

/* Footer */
.site-footer { background: var(--brand-navy); color: #fff; padding: 32px 0; }
.site-footer a { color: #fff; }
.site-footer .muted { color: #C9D3DA; }
.site-footer nav { display: flex; gap: 16px; margin-bottom: 12px; font-weight: 700; }
.footer-tagline { font-weight: 800; font-size: 20px; }

@media (min-width: 768px) {
  body { font-size: 18px; line-height: 28px; }
  h1 { font-size: 48px; line-height: 52px; }
  h2 { font-size: 32px; line-height: 40px; }
  h3 { font-size: 22px; line-height: 30px; }
  .brand img { height: 56px; }
  .site-header__inner { flex-wrap: nowrap; }
  .search--compact { max-width: 480px; margin-left: auto; }
  .panel { padding: 32px; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiles--snapshot { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .tiles--snapshot .tile:last-child:nth-child(odd) { grid-column: auto; }
  .sections { grid-template-columns: 3fr 2fr; align-items: start; }
  .card { padding: 24px; }
}

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

/* Region pages and link blocks */
.main { display: grid; gap: 16px; align-content: start; }
.station__links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-weight: 700; font-size: 14px; }
.station__links a { display: inline-block; padding: 6px 0; }
.league { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; }
.league th, .league td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.league th { font-size: 14px; color: var(--text-muted); }
.league td.good { color: var(--brand-green-dark); font-weight: 800; }
.link-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 4px 16px; }
.link-grid li { padding: 6px 0; }
.place-list { list-style: none; padding: 0; margin: 0; columns: 2 220px; column-gap: 24px; }
.place-list li { break-inside: avoid; padding: 6px 0; }
.place-list a { display: inline-block; padding: 2px 0; }
.nation-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.nation-links a {
  display: flex; align-items: center; min-height: 56px; padding: 12px 16px; border-radius: var(--radius);
  background: var(--surface-mint); color: var(--brand-navy); font-weight: 800; text-decoration: none;
}
.nation-links a:hover { outline: 2px solid var(--brand-green); }
@media (min-width: 768px) { .nation-links { grid-template-columns: repeat(4, 1fr); } }

.subhead { margin-top: 24px; }

/* Search disambiguation */
.choices { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; max-width: 720px; }
.choice {
  display: grid; gap: 2px; min-height: 56px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--radius);
  color: var(--brand-navy); text-decoration: none; background: #fff;
}
.choice strong { font-size: 18px; line-height: 26px; }
.choice span { color: var(--text-muted); font-size: 14px; line-height: 20px; }
.choice:hover { border-color: var(--brand-green); background: var(--surface-mint); color: var(--brand-navy); }

/* Affiliate banners */
.partner--banner { justify-items: center; text-align: center; gap: 8px; padding: 12px; width: 100%; max-width: 360px; margin: 0 auto; }
.partner__link { display: block; width: 100%; max-width: 300px; border-radius: 8px; overflow: hidden; }
.partner__link img { width: 100%; height: auto; }
.partner__link:focus-visible { outline-offset: 4px; }
.partner__disclosure { margin: 0; font-size: 14px; line-height: 20px; color: var(--text-muted); }
.partner-row { margin: 24px 0 0; }

/* Cookie banner */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; color: var(--brand-navy);
  border-top: 4px solid var(--brand-green); box-shadow: 0 -6px 24px rgba(0, 33, 61, 0.18);
  max-height: 85vh; overflow-y: auto;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner { padding-top: 16px; padding-bottom: 16px; }
.cookie-banner__title { font-size: 20px; line-height: 28px; margin-bottom: 4px; }
.cookie-banner p { font-size: 16px; line-height: 24px; margin-bottom: 12px; }
.cookie-banner__options { border: 0; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.cookie-banner__options label { display: grid; grid-template-columns: 24px 1fr; column-gap: 8px; align-items: start; }
.cookie-banner__options input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--brand-green-dark); }
.cookie-banner__options span { grid-column: 2; color: var(--text-muted); font-size: 14px; line-height: 20px; }
.cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookie-banner__actions [data-consent="manage"], .cookie-banner__actions [data-consent="save"] { grid-column: 1 / -1; }
.btn-secondary { background: #fff; color: var(--brand-navy); border: 2px solid var(--brand-navy); }
.btn-secondary:hover { background: var(--brand-navy); color: #fff; }
.link-button {
  background: none; border: 0; padding: 0; min-height: 0; font: inherit; color: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 2px;
}
.link-button:hover { background: none; color: inherit; }
.prose .link-button { color: var(--brand-green-dark); font-weight: 700; }
.site-footer .link-button { color: #fff; font-weight: 700; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 32px; }
.prose h3 { margin-top: 20px; }
.toc { font-size: 14px; line-height: 24px; margin-bottom: 8px; }
@media (min-width: 768px) {
  .cookie-banner__actions { display: flex; flex-wrap: wrap; }
  .cookie-banner__actions [data-consent="manage"], .cookie-banner__actions [data-consent="save"] { grid-column: auto; }
}

/* Never let a display rule override the hidden attribute */
[hidden] { display: none !important; }

/* EV charging */
.ev-mix { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.ev-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.speed, .tag { font-size: 13px; line-height: 18px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--surface); }
.speed--ultra { background: var(--brand-navy); color: #fff; }
.speed--rapid { background: var(--brand-green); color: var(--brand-navy); }
.speed--fast { background: var(--surface-mint); color: var(--brand-green-dark); }
.speed--slow { background: var(--surface); color: var(--text-muted); }
.partner--wide { max-width: 1100px; }
.partner--wide .partner__link { max-width: 100%; }

/* Motoring news list */
.news-list { list-style: none; padding: 0; margin: 0; }
.news-list li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.news-list li:first-child { border-top: 0; padding-top: 0; }
.news-list a { font-weight: 700; }

/* "Use my location": a clear second action under the search box */
.hero__actions { margin-top: 12px; }
.btn-locate {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 52px;
  padding: 12px 24px; border: 0; border-radius: var(--radius); cursor: pointer;
  background: var(--brand-navy); color: #fff; font: 700 17px/24px var(--font-brand);
  box-shadow: 0 4px 12px rgba(0, 33, 61, 0.18);
}
.btn-locate svg { color: var(--brand-green); flex: none; }
.btn-locate:hover { background: var(--brand-green-dark); color: #fff; }
.btn-locate:hover svg { color: #fff; }
.btn-locate:disabled { opacity: 0.8; cursor: progress; }
@media (min-width: 768px) {
  .hero__actions { text-align: center; }
  .btn-locate { display: inline-flex; width: auto; min-width: 280px; }
}

/* Vehicle crime trend */
.crime-trend { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; max-width: 420px; }
.crime-trend li { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; }
.crime-trend__month { color: var(--text-muted); font-weight: 700; }
.crime-trend__bar { height: 12px; background: var(--surface); border-radius: 6px; overflow: hidden; }
.crime-trend__bar span { display: block; height: 100%; background: var(--brand-navy); border-radius: 6px; min-width: 2px; }
.crime-trend li:last-child .crime-trend__bar span { background: var(--brand-green-dark); }
.crime-trend__count { font-weight: 800; text-align: right; }

/* Sticky "jump to section" menu on result pages */
html { scroll-behavior: smooth; }
.section-nav {
  position: sticky; top: 0; z-index: 20; margin: 0 0 16px;
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0, 33, 61, 0.06);
}
.section-nav__bar { display: flex; align-items: center; gap: 6px; }
.section-nav__inner {
  --fade-start: 0px; --fade-end: 0px;
  position: relative; flex: 1; min-width: 0;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-start), #000 calc(100% - var(--fade-end)), transparent 100%);
}
.section-nav__inner.more-before { --fade-start: 44px; }
.section-nav__inner.more-after { --fade-end: 44px; }
.section-nav__inner::-webkit-scrollbar { display: none; }
.section-nav a {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); color: var(--brand-navy); font-weight: 700; font-size: 14px; line-height: 20px;
  text-decoration: none; white-space: nowrap;
}
.section-nav a:hover { background: var(--surface-mint); color: var(--brand-navy); }
.section-nav a[aria-current="true"] { background: var(--brand-navy); color: #fff; }
/* Arrows only where there's a mouse; touch screens swipe the strip. */
.section-nav__arrow {
  display: none; flex: none; width: 36px; height: 36px; min-height: 0; padding: 0; border-radius: 50%;
  border: 1.5px solid var(--line); background: #fff; color: var(--brand-navy); font: 800 22px/1 var(--font-brand);
}
.section-nav__arrow:hover { background: var(--brand-navy); color: #fff; border-color: var(--brand-navy); }
@media (hover: hover) and (pointer: fine) {
  .section-nav__arrow:not([hidden]) { display: inline-flex; align-items: center; justify-content: center; }
}
@media (min-width: 1100px) {
  .section-nav__inner { gap: 6px; }
  .section-nav a { min-height: 40px; padding: 6px 12px; }
}
.sections .card { scroll-margin-top: var(--section-nav-offset, 76px); }
@media (min-width: 1100px) {
  .section-nav__inner { gap: 6px; }
  .section-nav a { min-height: 40px; padding: 6px 12px; }
}

/* Quick answers */
.qa-list { display: grid; gap: 14px; }
.qa h3 { font-size: 17px; line-height: 24px; margin: 0 0 4px; }
.qa p { margin: 0; }
.qa + .qa { padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- Design refresh: icons, place header band, price boards, number plates ---------- */

/* Brand icons */
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }
.card h2 { display: flex; align-items: center; gap: 10px; }
.card h2 .i {
  width: 34px; height: 34px; padding: 6px; border-radius: 10px;
  color: var(--brand-green-dark); background: var(--surface-mint);
}
.section-nav a { gap: 6px; }
.section-nav a .i { width: 18px; height: 18px; color: var(--brand-green-dark); }
.section-nav a[aria-current="true"] .i { color: var(--brand-green); }

/* Header band on area, location, county and council pages */
.place-hero {
  position: relative; color: #fff; margin-bottom: 16px;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(0, 184, 63, 0.22) 0%, rgba(0, 184, 63, 0) 55%),
    linear-gradient(160deg, #00284a 0%, var(--brand-navy) 60%, #001a31 100%);
}
.place-hero__inner { padding-top: 6px; padding-bottom: 22px; }
.place-hero h1 { color: #fff; margin: 4px 0 6px; }
.place-hero__lead { color: #C9D3DA; margin: 0 0 18px; font-size: 16px; line-height: 24px; }
.place-hero .crumbs { color: #C9D3DA; }
.place-hero .crumbs a { color: #fff; }
.place-hero .crumbs a:hover { color: var(--brand-green); }
.place-hero :focus-visible { outline-color: #fff; box-shadow: 0 0 0 3px var(--brand-navy); }

/* Forecourt-style price boards */
.price-boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.price-board {
  display: grid; gap: 2px; padding: 12px 14px 14px; border-radius: 14px; text-decoration: none; color: #fff;
  background: linear-gradient(180deg, #021a2e 0%, #00111f 100%);
  border: 2px solid rgba(0, 184, 63, 0.55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
a.price-board:hover { transform: translateY(-2px); border-color: var(--brand-green); color: #fff; }
.price-board__label { display: flex; align-items: center; gap: 6px; font-size: 12px; line-height: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: #C9D3DA; }
.price-board__label .i { color: var(--brand-green); width: 16px; height: 16px; }
.price-board__value {
  font-size: 40px; line-height: 44px; font-weight: 800; color: var(--brand-green);
  font-variant-numeric: tabular-nums; text-shadow: 0 0 18px rgba(0, 184, 63, 0.35);
}
.price-board__value small { font-size: 0.5em; margin-left: 2px; color: #9fe8b9; text-shadow: none; }
.price-board__detail { font-size: 13px; line-height: 18px; color: #C9D3DA; overflow-wrap: anywhere; }

/* Road line from the logo, closing the header band */
.road-line {
  height: 10px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.9) 0 26px, transparent 26px 52px) center / 100% 3px no-repeat,
    #001a31;
  border-top: 3px solid var(--brand-green);
}

/* UK number plate badges for postcodes */
.plate {
  display: inline-block; padding: 0 0.45em; border-radius: 0.28em; vertical-align: 0.06em;
  background: #FFD23F; color: #111; border: 2px solid #111;
  font-weight: 800; font-size: 0.82em; line-height: 1.35; letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}
.place-hero h1 .plate { font-size: 0.7em; vertical-align: 0.12em; border-color: #000; }
a.plate-link { text-decoration: none; }
a.plate-link:hover .plate { background: #FFE27A; }
.place-list a.plate-link { padding: 3px 0; }

@media (min-width: 768px) {
  .place-hero__inner { padding-bottom: 28px; }
  .price-boards { grid-template-columns: repeat(2, minmax(0, 260px)); }
  .price-board__value { font-size: 48px; line-height: 52px; }
}
@media (prefers-reduced-motion: reduce) { a.price-board:hover { transform: none; } }

/* ---------- Design refresh, part 2 ---------- */

/* Forecourt-sign prices in station lists: green digits on a dark sign; the cheapest is lit up in Snappy Green */
.prices { gap: 6px; }
.prices > div {
  background: linear-gradient(180deg, #021a2e 0%, #00111f 100%); border: 1px solid rgba(0, 184, 63, 0.35);
  border-radius: 8px; padding: 4px 10px 5px; min-width: 78px;
}
.prices dt { color: #C9D3DA; font-size: 11px; line-height: 15px; text-transform: uppercase; letter-spacing: 0.04em; }
.prices dd { color: var(--brand-green); font-size: 20px; line-height: 26px; font-variant-numeric: tabular-nums; }
.prices .is-cheapest {
  background: var(--brand-green); border-color: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(0, 184, 63, 0.25), 0 4px 12px rgba(0, 122, 42, 0.3);
}
.prices .is-cheapest dt, .prices .is-cheapest dd { color: var(--brand-navy); }

/* A colour per section: top accent on the card and a matching icon tile (UK parking-sign blue, etc.) */
.card { --accent: var(--brand-green-dark); --accent-soft: var(--surface-mint); border-top: 4px solid var(--accent); }
.card h2 .i { color: var(--accent); background: var(--accent-soft); }
#fuel, #unleaded, #diesel, #nearest { --accent: #007A2A; --accent-soft: #EAF8EF; }
#ev { --accent: #0E7C86; --accent-soft: #E2F3F4; }
#parking { --accent: #0B5CAD; --accent-soft: #E6EEF8; }
#conditions { --accent: #3D6A8A; --accent-soft: #E9F0F5; }
#crime { --accent: #B45309; --accent-soft: #FDF1E3; }
#answers { --accent: #6D28D9; --accent-soft: #F1EBFD; }
#news, #councils { --accent: #00213D; --accent-soft: #EDF0F3; }
#about { --accent: #52616B; --accent-soft: #F0F2F4; }
#nearby, #areas, #towns { --accent: #007A2A; --accent-soft: #EAF8EF; }

/* Mascot: empty states, footer badge and the 404 page */
.empty { display: flex; align-items: center; gap: 14px; padding: 6px 0; }
.empty img { width: 84px; height: auto; flex: none; }
.empty p { margin: 0; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-brand__badge { flex: none; background: #fff; border-radius: 14px; padding: 6px 8px; line-height: 0; }
.footer-brand__badge img { width: 72px; height: auto; }
.footer-brand .footer-tagline { margin: 0; }
.not-found { text-align: center; max-width: 640px; margin: 0 auto; }
.not-found img { width: min(280px, 70%); height: auto; margin: 8px auto 12px; }
.not-found .search { margin: 20px auto 12px; max-width: 520px; }

/* Subtle motion: entrance of the price boards and a hover lift on things you can click. Content is never hidden
   waiting for an animation, so search engines and assistive tech always see it. */
/* Slide only, never fade: content must be fully visible even if a browser pauses animations. */
@keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.price-board { animation: rise 0.45s ease-out; }
.price-board:nth-child(2) { animation-duration: 0.55s; }
.price-board:nth-child(3) { animation-duration: 0.65s; }
.price-board:nth-child(4) { animation-duration: 0.75s; }
.not-found img { animation: bob 3.2s ease-in-out infinite; }
a.tile, .choice, .nation-links a, .link-grid a, .section-nav a, .partner__link {
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
a.tile:hover, .choice:hover, .nation-links a:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 33, 61, 0.1); }
.partner__link:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 33, 61, 0.18); }

@media (prefers-reduced-motion: reduce) {
  .price-board, .not-found img { animation: none; }
  a.tile:hover, .choice:hover, .nation-links a:hover, .partner__link:hover { transform: none; }
}

/* ---------- Design refresh, part 3: home, nation pages, league tables, tiles ---------- */

/* Header band variants */
.place-hero__title { color: #fff; margin: 4px 0 6px; }
.place-hero__note { margin: 14px 0 0; color: #C9D3DA; font-size: 14px; line-height: 20px; }
.place-hero--four .price-boards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) {
  .place-hero--four .price-boards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.partner-row--home { margin: 8px 0 24px; }

/* Home page layout */
.home-grid { display: grid; gap: 16px; padding-bottom: 40px; }
#cheapest { --accent: #007A2A; --accent-soft: #EAF8EF; }
#browse, #nations { --accent: #0B5CAD; --accent-soft: #E6EEF8; }
#league { --accent: #007A2A; --accent-soft: #EAF8EF; }
@media (min-width: 900px) {
  .home-grid { grid-template-columns: 1.15fr 1fr; align-items: start; }
  .home-grid #news { grid-column: 1 / -1; }
}
.nation-links a { gap: 10px; }
.nation-links a .i { width: 22px; height: 22px; color: var(--brand-green-dark); }
.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); color: var(--brand-navy); font-weight: 700; font-size: 15px; text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.chip-list a:hover { background: var(--surface-mint); border-color: var(--brand-green); }

/* Ranked league table */
.rank-table { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.rank-row {
  display: grid; align-items: center; gap: 4px 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface);
  grid-template-columns: 34px minmax(0, 1fr) auto;
  grid-template-areas: "pos name price" "pos bar diesel";
}
.rank-row--top { background: var(--surface-mint); }
.rank-row__pos {
  grid-area: pos; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1.5px solid var(--line); font-weight: 800; font-size: 14px;
}
.rank-row--top .rank-row__pos { background: var(--brand-green); border-color: var(--brand-green); color: var(--brand-navy); }
.rank-row__name { grid-area: name; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.rank-row__name small { display: block; color: var(--text-muted); font-weight: 400; font-size: 13px; line-height: 18px; }
.rank-row__bar { grid-area: bar; height: 8px; background: #fff; border-radius: 4px; overflow: hidden; }
.rank-row__bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--brand-green), #F2C200 60%, #E8590C); background-size: 300px 100%; }
.rank-row__price { grid-area: price; text-align: right; line-height: 1.1; }
.rank-row__price strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.rank-row__price small, .rank-row__count small { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.rank-row__price--diesel { grid-area: diesel; }
.rank-row__price--diesel strong { font-size: 15px; color: var(--text-muted); }
.rank-row__count { display: none; }
.rank-table__more { margin-top: 8px; }
@media (min-width: 768px) {
  .rank-row { grid-template-columns: 34px minmax(140px, 1.2fr) 1fr 90px 90px 80px; grid-template-areas: "pos name bar price diesel count"; }
  .rank-row__count { display: block; grid-area: count; text-align: right; font-weight: 700; }
  .rank-row__price--diesel strong { font-size: 18px; color: var(--brand-navy); }
}

/* Tiles: a touch more character */
.tile { border: 1px solid #d5efdf; position: relative; overflow: hidden; }
.tile::after {
  content: ""; position: absolute; right: -18px; top: -18px; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(0, 184, 63, 0.08);
}
a.tile .tile__label::after { content: " →"; color: var(--brand-green-dark); }

/* Summary callout */
.summary { border-left: 4px solid var(--brand-green); background: var(--surface); }

/* ---------- Search: icon field everywhere, and the home search panel ---------- */
.search__field { position: relative; flex: 1; min-width: 0; display: flex; }
.search__field .i {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--text-muted); pointer-events: none;
}
.search__field input { width: 100%; padding-left: 44px; }
.search button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.search button .i { width: 20px; height: 20px; transition: transform 0.15s ease; }
.search button:hover .i { transform: translateX(3px); }

.search-panel {
  position: relative; overflow: hidden; max-width: 760px; margin: 20px auto 0; padding: 20px 18px 34px; text-align: left;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(0, 184, 63, 0.10) 0%, rgba(0, 184, 63, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, #F3FBF6 100%);
  border: 2px solid #CDEFD9; border-radius: 22px;
  box-shadow: 0 22px 48px rgba(0, 33, 61, 0.13), inset 0 1px 0 #fff;
}
.search-panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 14px; }
.search-panel__kicker { margin: 0; font-weight: 800; font-size: 20px; line-height: 26px; color: var(--brand-navy); }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px;
  background: var(--brand-navy); color: #fff; font-size: 13px; line-height: 20px; font-weight: 700;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-green); box-shadow: 0 0 0 0 rgba(0, 184, 63, 0.7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 184, 63, 0.6); } 70% { box-shadow: 0 0 0 8px rgba(0, 184, 63, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 184, 63, 0); } }

.search-panel .search input {
  min-height: 60px; font-size: 18px; border: 2px solid #9FB3BF; border-radius: 14px; background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-panel .search input:focus { border-color: var(--brand-green-dark); box-shadow: 0 0 0 4px rgba(0, 184, 63, 0.18); outline: none; }
.search-panel .search__field .i { left: 16px; width: 22px; height: 22px; color: var(--brand-green-dark); }
.search-panel .search__field input { padding-left: 48px; }
.search-panel .search button { min-height: 60px; padding: 0 22px; font-size: 17px; border-radius: 14px; box-shadow: 0 6px 14px rgba(0, 122, 42, 0.25); }

.search-panel__or { display: flex; align-items: center; gap: 12px; margin: 14px 0 12px; color: var(--text-muted); font-size: 14px; font-weight: 700; }
.search-panel__or::before, .search-panel__or::after { content: ""; flex: 1; height: 1px; background: #CFE3D7; }
.search-panel .hero__actions { margin-top: 0; }

.search-panel__features { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.search-panel__features li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 1px solid #D5EFDF; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--brand-navy);
}
.search-panel__features .i { width: 18px; height: 18px; color: var(--brand-green-dark); }
.search-panel__road { position: absolute; left: 0; right: 0; bottom: 0; }

@media (min-width: 768px) {
  .search-panel { padding: 26px 30px 38px; }
  .search-panel__kicker { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
/* Narrow phones: the home Search button becomes an arrow-only square so the text box gets the room.
   The word "Search" stays in the button for screen readers. */
@media (max-width: 479px) {
  .search-panel .search button { width: 60px; padding: 0; flex: none; }
  .search-panel .search button span {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
  .search-panel .search button .i { width: 24px; height: 24px; }
}

/* Partner banners: always centred in their row; smaller affiliate disclosure */
.partner-row { display: flex; justify-content: center; }
.partner-row > .partner { margin-left: auto; margin-right: auto; }
.partner--wide { max-width: 1060px; justify-items: center; }
.partner__disclosure { font-size: 12px; line-height: 16px; }
/* Home grid: columns may shrink below their content's natural width, so nothing spills off the page */
@media (min-width: 900px) {
  .home-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .home-grid .nation-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Explanation under "Use my location" when the browser can't share a position */
.locate-note {
  margin: 10px auto 0; max-width: 520px; padding: 10px 12px; border-radius: 10px; text-align: left;
  background: #FFF4E5; border-left: 4px solid var(--amber); color: var(--brand-navy); font-size: 14px; line-height: 20px;
}
