:root {
  color-scheme: light;
  --ink: #1d2529;
  --muted: #566268;
  --line: #9aaab3;
  --line-soft: #d4dde1;
  --paper: #eef3f5;
  --surface: #ffffff;
  --header: #174968;
  --header-dark: #0f3048;
  --nav: #d7e6ee;
  --green: #1f6d3f;
  --green-soft: #dff0dc;
  --yellow: #fff8d7;
  --rose: #a6363f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.52) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.52) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  border-bottom: 1px solid #7e919b;
  background: #fff;
}

.utility-bar,
.nav,
.masthead,
.controls,
.table-wrap,
.fuel-band,
.disclaimer-band,
footer {
  width: min(1040px, calc(100% - 28px));
  margin: 0 auto;
}

.utility-bar {
  min-height: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 6px 0;
  color: #34434a;
  font-size: 12px;
}

.utility-bar span {
  white-space: nowrap;
}

.utility-bar strong {
  color: #0f3048;
}

.nav {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
  border: 1px solid #0c2b42;
  border-bottom: 0;
  background: linear-gradient(#236b91, var(--header-dark));
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0;
}

.nav-actions {
  display: flex;
  align-items: end;
  gap: 0;
  padding-right: 12px;
}

.nav-actions a {
  min-width: 82px;
  border: 1px solid #7695a5;
  border-bottom: 0;
  background: linear-gradient(#f8fbfc, var(--nav));
  color: #17364b;
  padding: 9px 14px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}

.nav-actions a:hover {
  background: #fff;
  color: #000;
}

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.48fr);
  gap: 18px;
  padding: 18px 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #fff;
}

.masthead-copy {
  padding: 0 18px 4px;
}

.header-contact {
  margin: 0 18px 0 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
}

.header-ads {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.header-contact .section-kicker,
.header-contact h2,
.header-contact p {
  margin-left: 0;
}

.header-contact .section-kicker {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #edf4f7;
  padding: 8px 10px;
}

.header-contact h2,
.header-contact p {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px;
}

.header-contact h2 {
  font-size: 1.15rem;
}

.header-contact p {
  color: #34434a;
  font-size: 0.92rem;
}

.header-ads a {
  display: inline-block;
  border: 1px solid #b9c7ce;
  background: #eef4f7;
  color: #17364b;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 6px 9px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.header-ads a:hover {
  background: #fffde8;
  color: #000;
}

.header-contact strong {
  color: #102b3a;
}

.eyebrow,
.section-kicker {
  margin: 0 0 5px;
  color: #8a1f28;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: #102b3a;
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
}

h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.55rem;
}

.lede {
  max-width: 650px;
  margin: 12px 0 0;
  color: #3f4b51;
  font-size: 1.05rem;
}

.controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  padding: 16px 0 8px;
}

.control-row {
  display: flex;
  gap: 10px;
  align-items: end;
}

.select-field {
  display: grid;
  gap: 4px;
  color: #4c5960;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 33px;
  border: 1px solid #8fa0a8;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 5px 7px;
}

.select-field {
  width: min(210px, 32vw);
}

.section-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #fff;
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

th,
td {
  padding: 9px 10px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}

thead th {
  position: sticky;
  top: 0;
  border-bottom: 1px solid #7e919b;
  background: linear-gradient(#f8fbfc, #cfdee6);
  color: #172f3f;
  font-size: 12px;
  text-transform: uppercase;
}

tbody th {
  background: #fbfcfd;
}

tbody tr:nth-child(even) td,
tbody tr:nth-child(even) th {
  background-color: #f4f7f8;
}

tbody tr:hover td,
tbody tr:hover th {
  background-color: #fffde8;
}

.item-name {
  font-weight: 700;
}

.item-size {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.price-cell {
  font-weight: 700;
}

.price-low,
tbody tr:nth-child(even) .price-low {
  background: var(--green-soft);
  color: #123f25;
}

.price-missing {
  color: #8a969b;
  font-weight: 400;
}

.badge {
  display: inline-block;
  border: 1px solid #b9c7ce;
  background: #eef4f7;
  color: #203640;
  padding: 2px 5px;
  font-size: 12px;
  font-weight: 700;
}

.trend-up {
  color: var(--rose);
  font-weight: 700;
}

.trend-down {
  color: var(--green);
  font-weight: 700;
}

.fuel-band,
.disclaimer-band {
  padding: 26px 0 8px;
}

.fuel-band {
  display: grid;
  grid-template-columns: 0.45fr 1fr;
  gap: 16px;
}

.fuel-grid,
.disclaimer-panel {
  display: grid;
  gap: 0;
}

.fuel-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.fuel-card {
  min-height: 190px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #12364c;
  color: #fff;
  padding: 12px;
}

.fuel-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
  padding-bottom: 8px;
}

.fuel-card-head span {
  color: #c9dde8;
  font-size: 13px;
  font-weight: 700;
}

.fuel-card-head small {
  color: #e7eff3;
  text-align: right;
}

.fuel-prices {
  margin: 10px 0 0;
}

.fuel-prices div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin: 0;
  padding: 6px 7px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.fuel-prices dt,
.fuel-prices dd {
  margin: 0;
}

.fuel-prices dt {
  color: #e9f2f6;
}

.fuel-prices dd {
  font-weight: 700;
}

.fuel-prices .fuel-low {
  background: #dff0dc;
  color: #123f25;
}

.fuel-prices .fuel-low dt {
  color: #123f25;
}

.disclaimer-panel {
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: #fff;
}

.disclaimer-panel p {
  margin: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  padding: 14px;
  font-size: 14px;
}

footer {
  padding: 22px 0 38px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #46565d;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 840px) {
  .utility-bar,
  .nav,
  .masthead,
  .controls,
  .table-wrap,
  .fuel-band,
  .disclaimer-band,
  footer {
    width: min(100% - 20px, 1040px);
  }

  .nav {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .masthead {
    grid-template-columns: 1fr;
  }

  .header-contact {
    margin: 0 18px;
  }

  .brand {
    padding-bottom: 10px;
  }

  .nav-actions {
    padding: 0 10px 10px;
  }

  .nav-actions a {
    flex: 1;
  }

  .fuel-grid,
  .disclaimer-panel {
    grid-template-columns: 1fr;
  }

  .controls,
  .fuel-band {
    grid-template-columns: 1fr;
  }

  .control-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .select-field {
    width: 100%;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 14px;
  }

  .utility-bar span {
    white-space: normal;
  }

  .brand {
    font-size: 1.65rem;
  }

  h1 {
    font-size: 1.85rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .nav-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-actions a {
    min-width: 0;
    padding-left: 7px;
    padding-right: 7px;
  }
}
