:root {
  /* Site palette (styles.css) plus the report's chart tokens */
  --paper: var(--bg);
  --surface: #1d1a17;
  --ink-2: #c9c1b5;
  --axis: #4a443d;
  --accent-wash: #2a241d;
  --cheaper: #7fb3a6;
  --dearer: #e0705c;
  --today: #a39b8f;
  --series: #d9a05b;
  --chip-ink: #161412;
  --font-display: var(--serif);
  --font-body: var(--sans);
  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: 2.125rem;
  --step-4: clamp(2.25rem, 5.5vw, 3.5rem);
  color-scheme: dark;
}
* { box-sizing: border-box; }
.report { max-width: 1080px; margin: 0 auto; padding-bottom: 8px; display: grid; gap: 56px; }
.prose { max-width: 68ch; }
.report h1, .report h2, .report h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; line-height: 1.08; }
.report h1 { font-size: var(--step-4); font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.report h2 { font-size: var(--step-3); font-weight: 600; color: var(--ink); }
.report h3 { font-size: var(--step-1); font-weight: 600; color: var(--ink); }
.report p { margin: 0; }
.report a { color: var(--accent); }
.eyebrow { font-family: var(--font-body); font-size: var(--step--1); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-stretch: 110%; }
.lede { font-family: var(--font-display); font-style: italic; font-size: 1.3rem; color: var(--ink-2); max-width: 62ch; }
.small { font-size: var(--step--1); color: var(--muted); }
.report section { display: grid; gap: 20px; }
.num { font-variant-numeric: tabular-nums; }

header.top { padding-top: 48px; display: grid; gap: 18px; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--step--1); color: var(--muted); }

/* the standard-drink label: the badge printed on every Australian alcohol container */
.sd { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid currentColor; border-radius: 6px;
  padding: 1px 7px 1px 5px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-2); white-space: nowrap; line-height: 1.5; }
.sd svg { width: 9px; height: 13px; }

.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 22px; display: grid; gap: 18px; min-width: 0; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: var(--step--1); color: var(--ink-2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 6px; }
.legend i.ring { background: transparent; border: 2px solid var(--today); border-radius: 50%; }

.chart { width: 100%; overflow-x: auto; }
.chart svg { display: block; width: 100%; height: auto; }
.chart text { fill: var(--ink-2); font-family: var(--font-body); font-size: 12px; }
.chart .lab { fill: var(--ink); font-size: 12.5px; }
.chart .cat { fill: var(--muted); font-family: var(--font-display); font-weight: 700; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.chart .grid { stroke: var(--rule); stroke-width: 1; }
.chart .base { stroke: var(--axis); stroke-width: 1; }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover + .hl, .chart .row:hover .hl { opacity: 1; }
.chart .hl { fill: var(--accent-wash); opacity: 0; }

.callouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.callout { border-top: 2px solid var(--ink); padding-top: 10px; display: grid; gap: 4px; align-content: start; }
.callout b { font-family: var(--font-display); font-size: var(--step-3); font-weight: 750; font-stretch: 85%; line-height: 1; }

/* explorer */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button { font: inherit; font-size: var(--step--1); font-weight: 600; color: var(--ink); background: var(--surface);
  border: 1px solid var(--axis); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.tabs button:hover { border-color: var(--accent); }
.tabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--chip-ink); }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: var(--step--1); color: var(--ink-2); cursor: pointer; }
.toggle input { width: 16px; height: 16px; accent-color: var(--accent); }
.opt-summary { display: grid; gap: 6px; }
.opt-summary .rates { font-size: var(--step--1); color: var(--ink-2); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { border: 1px solid var(--rule); border-radius: 8px; padding: 12px 14px; display: grid; gap: 2px; background: var(--paper); }
.tile .k { font-size: var(--step--1); color: var(--muted); }
.tile .v { font-family: var(--font-display); font-size: var(--step-2); font-weight: 750; font-stretch: 88%; }
.tile .s { font-size: var(--step--1); color: var(--ink-2); }
.twocol { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 18px; }
.twocol > * { min-width: 0; }

.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: var(--step--1); font-variant-numeric: tabular-nums; }
th, td { padding: 8px 10px; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; white-space: normal; min-width: 210px; }
th { font-weight: 600; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
td.up { color: var(--dearer); font-weight: 600; }
td.down { color: var(--cheaper); font-weight: 600; }
td .prod { display: block; color: var(--ink); }
td .meta { display: block; color: var(--muted); }

/* slider */
.slider-row { display: grid; gap: 8px; }
.slider-row label { font-weight: 600; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.ticks { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted); }
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.chip { border: 1px solid var(--rule); border-radius: 8px; padding: 10px 12px; display: grid; gap: 2px; }
.chip .p { font-family: var(--font-display); font-weight: 750; font-size: var(--step-1); font-stretch: 90%; }

/* evidence */
.evidence { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.ev { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 18px; display: grid; gap: 10px; align-content: start; }
.ev .where { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.ev .big { font-family: var(--font-display); font-size: var(--step-3); font-weight: 750; font-stretch: 85%; line-height: 1; }
.ev .src { font-size: 0.75rem; color: var(--muted); }

.tip { position: fixed; z-index: 20; pointer-events: none; background: var(--ink); color: var(--paper); font-size: 12.5px;
  padding: 7px 10px; border-radius: 6px; max-width: 260px; line-height: 1.4; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.tip b { display: block; }
ol.method { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) { .bar { transition: width .35s ease, x .35s ease; } }

.report-end { max-width: 1080px; margin: 56px auto 0; padding-top: 24px; border-top: 1px solid var(--rule); }
.report-end a { color: var(--accent); font-weight: 600; font-size: 15px; text-decoration: none; }
.report-end a:hover { text-decoration: underline; }
