:root {
  --ink: #17232e;
  --muted: #60717f;
  --surface: #ffffff;
  --surface-soft: #f5f8f6;
  --line: #dce6e1;
  --green: #138a4b;
  --green-dark: #096334;
  --yellow: #ffbd18;
  --blue: #1267a5;
  --shadow: 0 18px 45px rgba(20, 47, 35, .09);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 5% 0%, rgba(255, 189, 24, .13), transparent 28rem),
    radial-gradient(circle at 95% 8%, rgba(19, 138, 75, .10), transparent 30rem),
    var(--surface-soft);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: var(--green-dark); text-underline-offset: 3px; }
a:hover { color: var(--green); }
img { max-width: 100%; }
button, input, select { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(220, 230, 225, .85);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px);
}
.nav-shell, .page-shell, .footer-shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.nav-shell { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a { padding: 9px 13px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 650; }
.site-nav a:hover { background: #eaf5ee; color: var(--green-dark); }

.page-shell { padding-block: 10px 0; }
.page-heading { margin-bottom: 28px; }
.eyebrow { margin: 0 0 8px; color: var(--green-dark); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1 { max-width: 900px; margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.07; letter-spacing: -.045em; }
.lede { max-width: 720px; margin: 14px 0 0; color: var(--muted); font-size: 1.08rem; }
.content-card, .chart-card { min-width: 0; max-width: 100%; margin: 22px 0; padding: clamp(18px, 3vw, 30px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.chart-card { height: min(700px, 70vh); min-height: 420px; }
.action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 20px; }
.btn, .btn-back, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.btn:hover, .btn-back:hover, button:hover { transform: translateY(-1px); border-color: #acd1ba; background: #eef8f1; color: var(--green-dark); }
.btn-primary { border-color: var(--green); background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }

.notice { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; padding: 14px 18px; border: 1px solid #cfe3d6; border-radius: 16px; background: #eef8f1; }
.notice a { font-weight: 760; text-decoration: none; }
.warn { margin: 18px 0; padding: 13px 16px; border: 1px solid #f0ce73; border-radius: 14px; background: #fff7dc; color: #6c5207; }

.table-wrap {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sticky-first-column {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
th, td { min-width: 112px; padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: center; }
th { background: #eef4f1; color: #314238; font-size: .86rem; letter-spacing: .02em; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: #f2faf5; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child, th:first-child { min-width: 190px; text-align: left; background-color: #FFF}
.dateheader th { background: #203b2d; color: #fff; text-align: left; }
tr[data-region] { cursor: pointer; }
td[bgcolor="green"] { background: #dff5e7; color: #075b2d; font-weight: 800; }
.sticky-first-column thead tr:not(.dateheader) th:first-child,
.sticky-first-column tbody td:first-child:not([colspan]) {
  position: -webkit-sticky;
  position: sticky;
  left: 0;
  z-index: 2;
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: normal;
  background: #fff;
  box-shadow: 8px 0 12px -12px rgba(23, 35, 46, .55);
}
.sticky-first-column thead tr:not(.dateheader) th:first-child {
  z-index: 3;
  background: #eef4f1;
}
.sticky-first-column tbody tr:hover td:first-child:not([colspan]) { background: #f2faf5; }
.table-wrap.js-sticky-column .sticky-first-column thead tr:not(.dateheader) th:first-child,
.table-wrap.js-sticky-column .sticky-first-column tbody td:first-child:not([colspan]) {
  position: relative;
  left: auto;
  will-change: transform;
}
.range-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 18px 0; }
.range-form label { display: grid; gap: 5px; color: var(--muted); font-size: .86rem; font-weight: 700; }
input, select { min-height: 42px; padding: 8px 12px; border: 1px solid #cddbd4; border-radius: 11px; background: #fff; color: var(--ink); }
input:focus, select:focus { outline: 3px solid rgba(19, 138, 75, .16); border-color: var(--green); }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(28px, 6vw, 80px); min-height: 440px; padding: clamp(36px, 7vw, 80px) 0; }
.hero-logo { width: min(100%, 430px); justify-self: center; filter: drop-shadow(0 24px 35px rgba(20, 47, 35, .12)); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.section-heading { margin: 0 0 18px; font-size: clamp(1.55rem, 3vw, 2.2rem); letter-spacing: -.035em; }
.company-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.company-card { position: relative; display: grid; gap: 16px; min-height: 210px; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease; }
.company-card::after { content: "View prices  →"; align-self: end; color: var(--green-dark); font-weight: 800; }
.company-card:hover { transform: translateY(-4px); border-color: #a7d0b6; color: var(--ink); }
.company-card img { width: 150px; height: 76px; object-fit: contain; object-position: left center; }
.company-name { font-size: 1.25rem; font-weight: 850; letter-spacing: -.025em; }
.fuel-card { background: linear-gradient(145deg, #173c2a, #0c6c39); color: #fff; }
.fuel-card:hover { color: #fff; }
.fuel-card::after { color: #ffe087; content: "Open fuel prices  →"; }
.fuel-card p { margin: 0; color: #d4eadc; }

.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-shell { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px; padding-block: 30px; }
.support { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.support img { display: block; height: 33px; width: auto; }
.referral { margin: 0; color: var(--muted); }
.referral a { font-weight: 800; }
.copyright { color: var(--muted); font-size: .88rem; text-align: right; }

@media (max-width: 760px) {
  .nav-shell { min-height: 66px; }
  .brand span { display: none; }
  .brand img { width: 46px; height: 46px; }
  .site-nav { gap: 2px; }
  .site-nav a { padding: 8px 9px; font-size: .85rem; }
  .page-shell { padding-block: 28px 46px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 32px; }
  .hero-logo { grid-row: 1; width: min(72vw, 310px); }
  .notice, .footer-shell { align-items: flex-start; grid-template-columns: 1fr; }
  .notice { flex-direction: column; }
  .copyright { text-align: left; }
  th, td { padding: 11px 12px; }
  .sticky-first-column thead tr:not(.dateheader) th:first-child,
  .sticky-first-column tbody td:first-child:not([colspan]) {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
  }
  .chart-card { min-height: 360px; height: 58vh; padding: 12px; }
}
