:root {
  --bg: #f4f1ea;
  --ink: #12202e;
  --muted: #5c6570;
  --card: #fff;
  --line: #ddd6c8;
  --navy: #0b1f33;
  --navy-2: #16324d;
  --gold: #c9a227;
  --cta: #0b1f33;
  --cta-text: #fff;
  --save: #0b6b3a;
  --save-bg: #e3f5ea;
  --bad: #8a2c12;
  --bad-bg: #fbe8e2;
  --flat: #5c6570;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(11, 31, 51, 0.08);
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.45;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
#content { flex: 1 0 auto; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 80;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
}
.site-head__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
  padding: 10px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.brand__mark { display: flex; line-height: 0; }
.brand__text { display: grid; line-height: 1.15; }
.brand__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
.brand__tag {
  color: #d8c27a;
  font-weight: 600;
  font-size: 0.72rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.site-nav a {
  color: #e8eef4;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  padding: 8px 8px;
}
.site-nav a:not(.btn-nav):not(.nav-car) { display: none; }
.site-nav .nav-car { display: inline; }
.site-nav a.is-current { box-shadow: inset 0 -2px 0 var(--gold); }
.btn-nav {
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy) !important;
  font-size: 0.92rem;
  font-weight: 700;
}

[hidden] { display: none !important; }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.hero { padding: 28px 0 8px; }
.eyebrow {
  margin: 0 0 10px;
  color: #8a6d1a;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.hero h1,
.city-page h1,
#resultsTitle {
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
  text-transform: none;
  font-weight: 700;
}
.lede {
  font-size: clamp(1.05rem, 2.6vw, 1.28rem);
  font-weight: 600;
  margin: 0 0 22px;
  max-width: 38rem;
  color: #2a3642;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 20px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-weight: 750;
  font-size: 1rem;
  letter-spacing: 0;
  text-decoration: none;
  cursor: pointer;
}
.btn-find,
.btn-primary,
.btn-directions {
  width: 100%;
  min-height: 58px;
  background: var(--cta);
  color: var(--cta-text);
  font-size: 1.08rem;
  box-shadow: var(--shadow);
}
.btn-map {
  width: 100%;
  margin: 8px 0 24px;
  background: var(--ink);
  color: #fff;
}
.btn:disabled { opacity: 0.55; cursor: wait; }

.status { margin: 14px 0 0; font-weight: 650; }

.brand-strip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 28px 0 8px;
}
.brand-strip__note {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 76px;
  padding: 0 10px;
  border-radius: 5px;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1;
}
.brand-mark__word { transform: translateY(0.5px); }
.brand-mark--shell { background: #fbce07; color: #dd1d21; }
.brand-mark--tesco { background: #00539f; color: #fff; box-shadow: inset 0 -4px 0 #ee1c2e; }
.brand-mark--asda { background: #68a51c; color: #fff; }
.brand-mark--bp { background: #00965e; color: #fff; }
.brand-mark--esso { background: #0066b3; color: #fff; box-shadow: inset 0 -4px 0 #ed1c24; }
.brand-mark--texaco { background: #e31837; color: #fff; }
.brand-mark--morrisons { background: #00563f; color: #fff; }
.brand-mark--sainsburys { background: #f06b00; color: #fff; }
.brand-mark--gulf { background: #003da5; color: #f36621; }
.brand-mark--jet { background: #e30613; color: #fff; }
.brand-mark--costco { background: #005daa; color: #fff; }
.brand-mark--murco { background: #c8102e; color: #fff; }
.brand-mark--valero { background: #003da5; color: #fff; }
.brand-mark--applegreen { background: #6cbe45; color: #16320a; }
.brand-mark--eg { background: #00a0e3; color: #fff; }
.brand-mark--mfg { background: #1b365d; color: #fff; }
.brand-mark--generic { background: #e8e2d6; color: var(--ink); letter-spacing: 0.04em; }

.fuels, .radius {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 22px 0 0;
}
.radius { grid-template-columns: repeat(4, 1fr); margin: 0 0 14px; }
.fuel-btn, .radius-btn {
  min-height: 50px;
  border: 1px solid #c9c2b4;
  background: #fff;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 750;
  font-size: 0.98rem;
  cursor: pointer;
  color: var(--ink);
}
.fuel-btn.is-on, .radius-btn.is-on {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.postcode-box {
  margin-top: 24px;
  background: #fff;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.postcode-box h2 { margin: 0 0 12px; font-size: 1.15rem; font-family: var(--serif); }
.postcode-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.postcode-row input {
  min-height: 52px;
  border: 1px solid #c9c2b4;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 1.05rem;
  width: 100%;
  font-family: inherit;
}

.car {
  background: #fff;
  border-radius: var(--radius);
  padding: 4px 16px 12px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}
.car--page {
  padding: 20px 18px 16px;
  margin: 20px 0 28px;
}
.car-grid {
  display: grid;
  gap: 16px;
  padding-bottom: 8px;
}
.car label { display: grid; gap: 6px; font-weight: 650; }
.car input[type="range"] { width: 100%; accent-color: var(--navy); }
.car-hint {
  font-size: 0.92rem;
  font-weight: 550;
  color: var(--muted);
  line-height: 1.4;
}
.car-save {
  margin: 8px 0 0;
  font-size: 0.95rem;
  color: var(--save);
  font-weight: 650;
}
.car-teaser {
  display: grid;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--gold);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
}
.car-teaser__copy {
  display: grid;
  gap: 4px;
}
.car-teaser__copy strong {
  font-size: 1.05rem;
}
.car-teaser__copy span {
  color: var(--muted);
  font-weight: 550;
  line-height: 1.4;
}
.car-teaser__stats {
  display: flex;
  gap: 16px;
  font-weight: 750;
  color: var(--navy);
}
.car-teaser__stats b { font-size: 1.2rem; }
.car-example {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 8px;
  margin: 0 0 24px;
}
.car-example h2 { margin-top: 0; }
.car-example__stats {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}
.car-example__stats div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.car-example__stats dt {
  font-weight: 550;
  color: var(--muted);
}
.car-example__stats dd {
  margin: 0;
  font-weight: 800;
}
.car-example__verdict {
  font-weight: 750;
  margin: 0 0 12px;
}
.car-example__verdict.is-good { color: var(--save); }
.car-example__verdict.is-bad { color: var(--bad); }

.ad-slot { margin: 18px 0; }
.ad-slot__label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 6px;
}
.ad-slot__box {
  min-height: 90px;
  border: 1px dashed #cfc6b2;
  border-radius: 12px;
  background: rgba(255,255,255,0.45);
}
.ad-slot__box--live {
  min-height: 0;
  border: 0;
  background: transparent;
  display: flex;
  justify-content: center;
}
.ad-banner {
  display: block;
  line-height: 0;
}
.ad-banner img {
  display: block;
  width: 468px;
  max-width: 100%;
  height: auto;
  border: 0;
}
.ad-slot--sidebar { display: none; }

.cards { display: grid; gap: 16px; }
.station-card {
  background: var(--card);
  border-radius: 18px;
  padding: 20px 18px 18px;
  box-shadow: var(--shadow);
  border: 1px solid #eee8dc;
}
.station-card__top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.station-card__brand {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.station-card__name {
  margin: 2px 0 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.station-card__price { margin: 0 0 12px; }
.price-num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 10vw, 4.2rem);
  line-height: 0.92;
  font-weight: 700;
  letter-spacing: -0.04em;
}
.per { font-weight: 650; color: var(--muted); }
.station-card__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-weight: 650;
  font-size: 1rem;
  margin: 0 0 10px;
}
.station-card__drive,
.station-card__fill {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 650;
}
.station-card__saving {
  margin: 14px 0 16px;
  padding: 14px 14px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.3;
}
.saving--good { background: var(--save-bg); color: var(--save); }
.saving--bad { background: var(--bad-bg); color: var(--bad); }
.saving--flat { background: #eeeae2; color: var(--flat); }
.station-card__facts {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.map {
  height: 420px;
  border-radius: 16px;
  overflow: hidden;
  background: #ddd;
  margin-bottom: 16px;
}
.leaflet-div-icon.price-marker {
  background: var(--navy);
  color: #f3e3a6;
  font-weight: 750;
  border: 0;
  border-radius: 999px;
  text-align: center;
  line-height: 28px;
  font-size: 12px;
  width: 58px !important;
  height: 28px !important;
}

.cities { padding: 28px 0 64px; }
.cities h2, .city-page h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  margin: 0 0 8px;
}
.city-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.city-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  min-height: 52px;
  border: 1px solid var(--line);
}
.updated, .city-note, .results-sub { color: var(--muted); font-weight: 600; }
.city-stats {
  display: grid;
  gap: 10px;
  margin: 20px 0 24px;
}
.city-stats article {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  border: 1px solid var(--line);
}
.big-price {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 8vw, 3.1rem);
  font-weight: 700;
  margin: 6px 0;
  letter-spacing: -0.03em;
}
.city-page { padding-top: 20px; padding-bottom: 40px; }
.crumb a { color: var(--ink); }
.site-foot {
  background: var(--navy);
  color: #c5cdd6;
  padding: 40px 0 28px;
  margin-top: 36px;
  font-weight: 550;
}
.site-foot a { color: #e4c76a; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot__inner { display: grid; gap: 22px; }
.site-foot__name {
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
}
.site-foot__pitch {
  margin: 8px 0 0;
  color: #d8c27a;
  font-size: 1.02rem;
  max-width: 22rem;
}
.site-foot__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.site-foot__cols h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}
.site-foot__cols a {
  display: block;
  padding: 8px 0;
  min-height: 44px;
}
.site-foot__note,
.site-foot__copy {
  margin: 0;
  font-size: 0.9rem;
  color: #8b96a3;
}
.page-copy {
  padding: 24px 0 48px;
  max-width: 720px;
}
.page-copy h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-transform: none;
  margin: 0 0 16px;
}
.page-copy h2 {
  font-size: 1.2rem;
  margin: 28px 0 8px;
}
.page-copy p, .page-copy li {
  font-size: 1.08rem;
  font-weight: 550;
  line-height: 1.5;
}
.page-copy .btn-find {
  margin-top: 20px;
  width: 100%;
}
.steps {
  padding-left: 1.2em;
  display: grid;
  gap: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.error { color: var(--bad); font-weight: 750; }
.ok { color: var(--save); font-weight: 750; }
.admin-form { display: grid; gap: 12px; max-width: 360px; }
.admin-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #c9c2b4;
  border-radius: 10px;
  padding: 0 12px;
  font-family: inherit;
}
.log { white-space: pre-wrap; background: #fff; padding: 12px; border-radius: 12px; max-height: 280px; overflow: auto; }

@media (min-width: 760px) {
  .site-nav a:not(.btn-nav) { display: inline; }
  .car-teaser {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .car-example__stats { grid-template-columns: repeat(3, 1fr); }
  .car-example__stats div {
    display: grid;
    gap: 4px;
    border-bottom: 0;
    padding-bottom: 0;
  }
  .site-head__inner { min-height: 76px; }
  .hero { padding-top: 40px; }
  .site-foot__inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
  .site-foot__note,
  .site-foot__copy { grid-column: 1 / -1; }
  .btn-find { width: auto; min-width: 280px; }
  .car-grid { grid-template-columns: 1fr 1fr; }
  .city-stats { grid-template-columns: repeat(3, 1fr); }
  .city-list { grid-template-columns: repeat(2, 1fr); }
  .ad-slot--sidebar { display: block; }
  .results-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
  }
  .btn-map { display: none; }
  .map:not([hidden]) { display: block; height: 640px; position: sticky; top: 92px; }
}
