:root {
  --bg: #f7f9f8;
  --surface: #ebf0ee;
  --paper: #fff;
  --ink: #172c2e;
  --action: #06525c;
  --muted: #506568;
  --line: #dce6e3;
  --line-strong: #a5bab7;
  --green: #176a54;
  --red: #9e372e;
  --amber: #8b4b0b;
  --tone-ink: #435f61;
  --tone-line: #cadbd7;
  --tone-fill: #edf4f2;
  --tone-solid: #476768;
  --ser95: #08796e;
  --seron: #243f61;
  --ser98: #b95623;
  --dark: #0a3035;
  --dark-muted: #b8d0cf;
  --radius: 18px;
  --s-2: 8px;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-synthesis: none;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, ul { margin: 0; }
a { color: inherit; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid #c86a33; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(1120px, calc(100% - 72px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; z-index: 3; top: 8px; left: 8px; padding: 12px 16px; background: var(--paper); }
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.header-row { height: 70px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 22px; }
.brand, .official, nav a { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; }
.brand { gap: 11px; width: fit-content; font-size: 20px; font-weight: 760; letter-spacing: -.045em; }
.brand-icon { display: grid; place-items: center; width: 36px; height: 36px; background: var(--action); color: #fff; border-radius: 9px; }
.brand-icon svg { width: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
nav { display: flex; gap: 7px; }
nav a { font-size: 14px; font-weight: 650; color: var(--muted); border-radius: 8px; padding: 0 13px; }
nav a[aria-current], nav a:hover { color: var(--action); background: var(--surface); }
.official { justify-self: end; gap: 8px; color: var(--action); font-weight: 650; font-size: 13px; }
.official:hover { text-decoration: underline; text-underline-offset: 4px; }
.source-dot { width: 7px; height: 7px; border-radius: 50%; background: #218269; }
[data-tone="down"] {
  --tone-ink: #145641; --tone-line: #b7d9c8; --tone-fill: #e4f4eb; --tone-solid: #1c694f;
}
[data-tone="up"] {
  --tone-ink: #8f3028; --tone-line: #eac0b9; --tone-fill: #fbeae6; --tone-solid: #a23e34;
}
[data-tone="same"] {
  --tone-ink: #804409; --tone-line: #e7c79e; --tone-fill: #fcf0de; --tone-solid: #925213;
}
[data-tone="mixed"] {
  --tone-ink: #305970; --tone-line: #bdd5df; --tone-fill: #eaf3f7; --tone-solid: #355f77;
}
.hero {
  padding: clamp(29px, 4vw, 56px) 0 32px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tone-fill) 62%, var(--bg)), var(--bg) 72%);
}
.hero-intro { text-align: center; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--action); text-transform: uppercase; letter-spacing: .14em; font-weight: 730; font-size: 11px; }
.hero-intro .eyebrow { justify-content: center; }
.dash { width: 19px; height: 2px; border-radius: 2px; background: #c36833; flex: none; }
h1 { font-size: clamp(36px, 5.2vw, 66px); font-weight: 730; line-height: 1.02; letter-spacing: -.058em; margin: 13px 0 13px; }
.intro { font-size: clamp(14px, 2.2vw, 17px); color: var(--muted); }
.intro span { margin-inline: 5px; }
.signal {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  margin-top: 24px; padding: 18px 20px;
  color: var(--tone-ink); background: var(--tone-fill);
  border: 1px solid var(--tone-line); border-radius: var(--radius);
}
.signal-copy { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.signal-icon {
  display: grid; place-items: center; flex: none; width: 43px; height: 43px; border-radius: 11px;
  background: var(--tone-solid); color: #fff; font-size: 27px; font-weight: 720; line-height: 1;
}
.signal-label {
  display: flex; flex-wrap: wrap; gap: 3px 8px; align-items: center;
  margin-bottom: 3px; font-size: 10px; font-weight: 740; letter-spacing: .09em; text-transform: uppercase;
}
#signal-period:not(:empty)::before { content: '·'; margin-right: 8px; }
#signal-title { font-size: clamp(23px, 3.15vw, 36px); line-height: 1.06; letter-spacing: -.045em; color: var(--tone-ink); }
#signal-description { margin-top: 5px; font-size: 14px; line-height: 1.36; max-width: 56ch; }
.signal-fuels { display: flex; gap: 7px; padding: 0; list-style: none; flex: none; }
.signal-fuel {
  display: grid; grid-template-columns: auto 1fr; column-gap: 5px; align-items: center;
  padding: 6px 9px; color: var(--tone-ink);
  background: color-mix(in srgb, var(--tone-fill) 48%, #fff);
  border: 1px solid var(--tone-line); border-radius: 9px; min-width: 80px;
}
.signal-fuel-icon { font-size: 15px; font-weight: 750; line-height: 1; }
.signal-fuel-code { font-size: 13px; font-weight: 740; line-height: 1.2; }
.signal-fuel-text { grid-column: 1 / -1; font-size: 11px; font-weight: 610; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .hero, .signal, .signal-icon { transition: background-color .24s ease, border-color .24s ease, color .24s ease; }
}
.price-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 16px; }
.day-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 22px 25px 0; min-width: 0; }
.day-card--today { color: #f8fcfb; background: var(--dark); border-color: var(--dark); }
.day-card--today[data-tone="same"] { background: #302820; border-color: #302820; }
.day-card--today[data-tone="up"] { background: #3b2526; border-color: #3b2526; }
.day-card--today[data-tone="same"] .day-label { color: #ffdbab; }
.day-card--today[data-tone="up"] .day-label { color: #ffc1b8; }
.day-card--today:is([data-tone="same"], [data-tone="up"]) :is(.price-row,.day-note) { border-color: #ffffff30; }
.day-card--tomorrow:not([data-tone="unknown"]) {
  border-color: var(--tone-line);
  background: color-mix(in srgb, var(--tone-fill) 25%, #fff);
}
.day-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 15px; }
.day-label { display: flex; align-items: center; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .15em; font-weight: 750; color: var(--action); }
.day-card--today .day-label { color: #8fdec9; }
.day-label svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.day-head h2 { font-size: clamp(18px, 2.6vw, 26px); font-weight: 680; line-height: 1.18; letter-spacing: -.04em; margin-top: 6px; }
.day-status { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 50px; font-size: 11px; font-weight: 700; background: #f8ede3; color: #884720; }
.day-status[data-state="known"] { background: #e0f2e9; color: #175d49; }
.day-card--today .day-status[data-state="known"] { background: #194b4a; color: #b5f0dc; }
.day-status::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.price-row { min-height: 61px; display: grid; grid-template-columns: minmax(0,1fr) 112px minmax(88px, .65fr); align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.day-card--today .price-row, .day-card--today .day-note { border-color: #2c5053; }
.fuel { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fuel-code { display: inline-grid; place-items: center; min-width: 44px; height: 28px; padding-inline: 4px; border-radius: 6px; color: #145c50; background: #e5f4ed; font-size: 12px; font-weight: 760; }
.fuel-code.on { color: #2f4766; background: #e9edf4; }
.fuel-code.pb98 { color: #89471f; background: #f8ece0; }
.day-card--today .fuel-code.pb95 { color: #b1f3d8; background: #1a4c49; }
.day-card--today .fuel-code.on { color: #d0dff6; background: #284653; }
.day-card--today .fuel-code.pb98 { color: #ffd6b4; background: #4c3d34; }
.fuel-label { color: var(--muted); font-size: 13px; }
.day-card--today .fuel-label, .day-card--today .day-note, .day-card--today .unit { color: var(--dark-muted); }
.amount { font-size: clamp(27px, 3.3vw, 39px); line-height: 1; letter-spacing: -.055em; font-weight: 735; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amount.is-missing { color: #637878; }
.day-card--today .amount.is-missing { color: var(--dark-muted); }
.unit { color: var(--muted); font-size: 12px; letter-spacing: 0; font-weight: 580; margin-left: 4px; }
.delta { text-align: right; font-size: 12px; font-weight: 590; color: var(--muted); font-variant-numeric: tabular-nums; }
.delta.down { color: var(--green); }
.delta.up { color: var(--red); }
.delta.same { color: var(--amber); }
.price-row .delta {
  justify-self: end; white-space: nowrap; padding: 4px 8px; border-radius: 6px; font-weight: 700;
}
.price-row .delta.down { color: #145641; background: #e4f4eb; }
.price-row .delta.up { color: #8f3028; background: #fbeae6; }
.price-row .delta.same { color: #804409; background: #fcf0de; }
.day-card--today .delta.unknown { color: var(--dark-muted); }
.day-note { min-height: 49px; display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.day-note a { min-height: 44px; display: inline-flex; align-items: center; gap: 7px; text-underline-offset: 3px; }
.day-note a:hover { text-decoration-thickness: 2px; }
.data-note { margin-top: 10px; color: var(--muted); text-align: right; font-size: 12px; min-height: 18px; }
.history { border-top: 1px solid var(--line); padding: 43px 0 68px; background: var(--surface); }
.history-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 15px; margin-bottom: 22px; }
.history-head h2 { font-size: clamp(32px, 4vw, 46px); line-height: 1.04; letter-spacing: -.058em; margin: 10px 0; }
.ranges { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); flex: none; }
.ranges button { min-height: 44px; padding: 0 12px; font-size: 12px; font-weight: 690; color: var(--muted); cursor: pointer; border: 0; border-radius: 8px; background: transparent; }
.ranges button[aria-pressed="true"] { background: var(--action); color: #fff; }
.ranges button[aria-pressed="false"]:hover { background: var(--surface); }
.history-card { border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.chart-head { padding: 22px 25px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.chart-head h3 { font-size: 19px; letter-spacing: -.035em; }
.chart-head p { font-size: 12px; color: var(--muted); margin-top: 4px; }
.legend { list-style: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; padding: 0; font-weight: 680; font-size: 12px; }
.legend li { display: inline-flex; align-items: center; gap: 5px; }
.legend li::before { content: ''; width: 13px; border-top: 3px solid var(--ser95); }
.legend .on::before { border-color: var(--seron); border-top-style: dashed; }
.legend .pb98::before { border-color: var(--ser98); border-top-style: dotted; }
.chart { display: block; width: calc(100% - 50px); height: 200px; margin: 14px 25px 16px; overflow: visible; }
.chart .gridline { stroke: var(--line); }
.chart text { fill: var(--muted); font-size: 11px; }
.chart .trace { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th, td { padding: 10px 12px; text-align: right; vertical-align: middle; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
th:first-child { width: 33%; }
th:first-child, td:first-child { text-align: left; padding-left: 25px; }
th:last-child, td:last-child { padding-right: 25px; }
thead th { background: #f7faf9; font-size: 12px; color: var(--muted); }
tbody th { font-size: 14px; font-weight: 640; }
tbody tr:hover { background: #f7faf9; }
td .rate { font-size: 15px; font-weight: 710; white-space: nowrap; }
td .delta { display: inline-block; margin-left: 7px; white-space: nowrap; }
tbody a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
tbody a:hover { text-decoration-color: var(--action); }
.table-controls { border-top: 1px solid var(--line); min-height: 68px; display: flex; justify-content: space-between; align-items: center; padding: 10px 25px; gap: 10px; font-size: 12px; color: var(--muted); }
.table-controls button { border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 12px; min-height: 44px; background: var(--paper); color: var(--action); font-weight: 700; cursor: pointer; }
.table-controls button:hover { background: var(--surface); }
.table-controls button span { margin-left: 5px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-row { min-height: 100px; padding-block: 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; color: var(--muted); }
.footer-row strong { color: var(--ink); }
.footer-row a { color: var(--action); }
@media (max-width: 900px) {
  .wrap { width: min(100% - 44px, 1120px); }
  .day-card { padding-inline: 17px; }
  .fuel-label { display: none; }
  td .delta { display: block; margin-left: 0; }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 32px); }
  .header-row { grid-template-columns: 1fr auto; height: 60px; gap: 6px; }
  .official { display: none; }
  .brand { font-size: 18px; gap: 7px; }
  .brand-icon { width: 31px; height: 31px; }
  .brand-icon svg { width: 22px; }
  nav { gap: 3px; }
  nav a { padding-inline: 9px; }
  .hero { padding-top: 19px; padding-bottom: 23px; }
  .hero-intro .intro { font-size: 12px; }
  h1 { font-size: clamp(29px, 9.1vw, 36px); letter-spacing: -.056em; margin-block: 7px 6px; }
  .signal { display: block; margin-top: 15px; padding: 12px; border-radius: 14px; }
  .signal-copy { gap: 9px; }
  .signal-icon { width: 34px; height: 34px; border-radius: 8px; font-size: 22px; }
  #signal-title { font-size: clamp(21px, 5.9vw, 29px); }
  #signal-description { font-size: 12px; }
  .signal-label { font-size: 9px; letter-spacing: .045em; gap: 2px 6px; }
  #signal-period:not(:empty)::before { margin-right: 6px; }
  .signal-fuels { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 9px; gap: 5px; }
  .signal-fuel { padding: 4px 6px; min-width: 0; }
  .signal-fuel-code { font-size: 12px; }
  .signal-fuel-text { font-size: 10px; }
  .price-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 11px; }
  .day-card { padding: 11px 12px 0; border-radius: 14px; }
  .day-head { margin-bottom: 7px; }
  .day-head h2 { font-size: 19px; margin-top: 3px; }
  .price-row { min-height: 42px; gap: 7px; grid-template-columns: minmax(0,1fr) 81px minmax(76px,.64fr); }
  .day-note { min-height: 40px; }
  .day-note a { min-height: 44px; }
  .amount { font-size: 29px; }
  .fuel-label { display: initial; font-size: 11px; }
  .fuel { gap: 6px; }
  .fuel-code { min-width: 39px; }
  .delta { font-size: 11px; }
  .price-row .delta { padding-inline: 5px; }
  .data-note { font-size: 11px; }
  .history { padding-block: 31px 39px; }
  .history-head { flex-direction: column; align-items: flex-start; gap: 13px; margin-bottom: 13px; }
  .ranges { width: 100%; }
  .ranges button { flex: 1; padding-inline: 6px; }
  .ranges button:last-child { flex: 1.8; }
  .chart-head { padding: 15px 13px 0; flex-direction: column; }
  .legend { justify-content: flex-start; }
  .chart { width: calc(100% - 26px); height: 162px; margin: 10px 13px 12px; }
  th, td { padding: 6px 7px; }
  th:first-child, td:first-child { padding-left: 12px; }
  th:last-child, td:last-child { padding-right: 12px; }
  th:first-child { width: 31%; }
  tbody th { font-size: 12px; }
  td .rate { font-size: 13px; }
  td .delta { font-size: 10px; }
  .table-controls { padding-inline: 12px; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-row a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
}
@media (max-width: 355px) {
  .fuel-label { display: none; }
}

nav a[aria-current="page"] { color: var(--action); background: var(--surface); }
.extra-section { padding: 54px 0; }
.extra-section h1, .extra-section h2 { margin: 8px 0 18px; line-height: 1.08; letter-spacing: -.045em; }
.extra-section h2 { font-size: clamp(25px, 4vw, 44px); }
.extra-card, .price-extra {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  padding: 20px 24px;
}
.extra-card p { margin: 8px 0; }
.extra-card a, .price-extra a { color: var(--action); text-underline-offset: 3px; font-weight: 650; }
.prose { max-width: 760px; }
.prose h2 { font-size: 23px; margin-top: 24px; }
.price-extra { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.price-extra p, .source-line { color: var(--muted); font-size: 14px; }
.price-extra h2 { font-size: 20px; margin-bottom: 5px; }
.cost-diff { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; list-style: none; }
.brent-rate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 15px; }
.brent-rate strong { font-size: clamp(38px, 7vw, 64px); line-height: 1.05; letter-spacing: -.055em; }
.brent-rate span { color: var(--muted); font-weight: 650; }
.brent-chart { display: block; width: 100%; max-height: 325px; margin: 14px 0; }
.brent-chart text { font-size: 12px; fill: var(--muted); }
.brent-chart .trace { stroke: #7b3e78; stroke-width: 2.5; fill: none; }
.brent-chart .gridline { stroke: var(--line); }
.brent-card caption { text-align: left; margin: 18px 0 8px; font-weight: 700; }
.brent-toggle { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; min-height: 44px; margin: 5px 25px 0; font-size: 13px; }
.brent-toggle small { color: var(--muted); }
.brent-toggle input { width: 17px; height: 17px; accent-color: var(--action); }
.legend .brent-legend::before { border-color: #7b3e78; border-top-style: dashed; }
.alert-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-block: 14px; }
.alert-controls button { min-height: 44px; padding: 8px 13px; background: var(--action); color: white; border: 0; border-radius: 8px; cursor: pointer; font-weight: 700; }
.alert-controls button:disabled { opacity: .65; cursor: progress; }
@media (max-width: 600px) {
  .header-row { gap: 5px; }
  .site-header nav { gap: 0; }
  .site-header nav a { font-size: 12px; padding-inline: 5px; }
  .brand { font-size: 16px; white-space: nowrap; }
  .extra-section { padding-block: 32px; }
  .extra-card, .price-extra { padding: 14px; }
  .price-extra { align-items: flex-start; flex-direction: column; gap: 4px; }
  .price-extra a, .footer-row nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-row nav { flex-wrap: wrap; }
  .brent-toggle { margin-inline: 13px; }
}
@media (max-width: 355px) {
  .brand { font-size: 14px; gap: 5px; }
  .brand-icon { width: 27px; height: 27px; }
  .site-header nav a { font-size: 11px; padding-inline: 4px; }
}
