/* Hunterson Standard Inference: the price pages. */
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --paper: #f6f7f9;
  --surface: #ffffff;
  --ink: #0f1729;
  --ink-2: #475066;
  --muted: #646d80;
  --rule: #e2e6ec;
  --rule-strong: #c9cfd9;
  --accent: #1d3a6b;
  --line: #2a78d6;
  --shadow-line: #596273;
  --notice-bg: #fff4d6;
  --notice-ink: #5c4300;
  /* Fixed grade colours, for any chart that compares grades. Never reassigned. */
  --grade-standard: #2a78d6; --grade-heavy: #eb6834; --grade-frontier: #1baf7a;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0f1420; --surface: #161c2a; --ink: #eef1f6; --ink-2: #c3c9d4; --muted: #9aa2b2;
    --rule: #262e3f; --rule-strong: #38425a; --accent: #9dbbef; --line: #3987e5; --shadow-line: #aab2c1;
    --notice-bg: #3a2f10; --notice-ink: #f3d68a;
    --grade-standard: #3987e5; --grade-heavy: #d95926; --grade-frontier: #199e70;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f1420; --surface: #161c2a; --ink: #eef1f6; --ink-2: #c3c9d4; --muted: #9aa2b2;
  --rule: #262e3f; --rule-strong: #38425a; --accent: #9dbbef; --line: #3987e5; --shadow-line: #aab2c1;
  --notice-bg: #3a2f10; --notice-ink: #f3d68a;
  --grade-standard: #3987e5; --grade-heavy: #d95926; --grade-frontier: #199e70;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); padding: 0 16px 64px; }
.wrap { max-width: 1040px; margin: 0 auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
h2 { font-size: 21px; line-height: 1.3; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding: 22px 0 14px; border-bottom: 1px solid var(--rule-strong); }
.site-head .brand { font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; }
.site-head nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; }
.site-head nav a { color: var(--ink-2); text-decoration: none; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

.notice { margin-top: 20px; background: var(--notice-bg); color: var(--notice-ink); border-radius: 4px; padding: 10px 14px; font-size: 15px; }
.notice a { color: inherit; font-weight: 600; }

/* The day's figure */
.fix { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, 1fr); gap: 32px 56px; padding: 44px 0 8px; align-items: start; }
@media (max-width: 820px) { .fix { grid-template-columns: 1fr; padding-top: 28px; } }
.fix-date { font-size: 19px; color: var(--ink-2); }
.fix-figure { font-size: clamp(68px, 17vw, 132px); font-weight: 500; line-height: 0.95; letter-spacing: -0.035em; margin: 14px 0 10px; color: var(--ink); white-space: nowrap; }
.fix-figure .cur { font-size: 0.5em; vertical-align: 0.62em; letter-spacing: 0; margin-right: 0.04em; color: var(--ink-2); font-weight: 400; }
.fix-figure.closed { font-size: clamp(44px, 9vw, 72px); letter-spacing: -0.02em; }
.fix-pair { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 44px; margin: 10px 0 8px; }
.fix > div:first-child { container-type: inline-size; }
/* Two figures side by side: each is about 3.45em wide, so both fit the column with the gap between. */
.fix-pair .fix-figure { font-size: clamp(40px, 5.4vw, 76px); font-size: clamp(40px, calc((100cqi - 44px) / 7.1), 96px); margin: 2px 0 0; }
.fix-label { font-size: 17px; color: var(--ink-2); }
@media (max-width: 480px) { .fix-pair { grid-template-columns: 1fr; gap: 10px; } .fix-pair .fix-figure { font-size: clamp(52px, 19vw, 84px); } }
.fix-unit { font-size: 21px; color: var(--ink-2); }
.fix-change { font-size: 17px; margin-top: 14px; }
.fix-change .dir { color: var(--ink-2); margin-right: 4px; }
.cite { margin-top: 28px; border-left: 3px solid var(--accent); padding: 4px 0 4px 14px; display: grid; gap: 6px; max-width: 60ch; }
.cite p { font-size: 15px; color: var(--ink-2); }
.cite button { justify-self: start; font: inherit; font-size: 14px; color: var(--accent); background: none; border: 1px solid var(--rule-strong); border-radius: 5px; padding: 3px 10px; cursor: pointer; }
.cite button:hover { border-color: var(--accent); }

dl.record { margin: 0; display: grid; grid-template-columns: auto 1fr; border-top: 1px solid var(--rule-strong); }
dl.record dt, dl.record dd { padding: 11px 0; border-bottom: 1px solid var(--rule); }
dl.record dt { color: var(--ink-2); font-size: 15px; padding-right: 20px; }
dl.record dd { margin: 0; font-size: 17px; text-align: right; }
dl.record dd small { display: block; font-size: 13px; color: var(--muted); }

.about { padding: 36px 0 0; display: grid; gap: 12px; max-width: 70ch; }
.about p { font-size: 17px; color: var(--ink-2); }
.about .links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }

/* Sections */
section.block { margin-top: 56px; padding-top: 18px; border-top: 1px solid var(--rule-strong); display: grid; gap: 14px; }
section.block > p { color: var(--ink-2); max-width: 70ch; }

/* Chart */
.chart-controls { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.seg { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: 6px; overflow: hidden; background: var(--surface); }
.seg button { font: inherit; font-size: 14px; border: 0; border-right: 1px solid var(--rule); background: transparent; color: var(--ink-2); padding: 6px 13px; cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); font-weight: 500; }
.chart-unit { font-size: 14px; color: var(--muted); }
.chart-box { position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 8px 4px 2px; }
.chart-box svg { display: block; width: 100%; height: auto; }
.chart-box svg:focus-visible { outline-offset: -2px; }
.grid line { stroke: var(--rule); stroke-width: 1; }
.tick { fill: var(--muted); font: 12.5px var(--sans); font-variant-numeric: tabular-nums; }
.line { fill: none; stroke: var(--line); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.line.shadow { stroke: var(--shadow-line); stroke-width: 1.6; stroke-dasharray: 5 4; }
.line.solo { fill: var(--line); stroke: none; }
.line.shadow.solo { fill: var(--shadow-line); }
.end-dot { fill: var(--line); stroke: var(--surface); stroke-width: 2; }
.end-dot.shadow { fill: var(--shadow-line); }
.end-label { fill: var(--ink); font: 600 13.5px var(--sans); font-variant-numeric: tabular-nums; }
.mark-line { stroke: var(--rule-strong); stroke-width: 1; }
.mark-label, .shadow-label { fill: var(--ink-2); font: 12.5px var(--sans); }
.cross { stroke: var(--ink-2); stroke-width: 1; }
.cross-dot { fill: var(--line); stroke: var(--surface); stroke-width: 2; }
.chart-tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 6px; padding: 8px 11px; display: grid; gap: 1px; font-size: 13.5px; box-shadow: 0 2px 10px rgba(15, 23, 41, 0.08); min-width: 150px; }
.chart-tip[hidden] { display: none; }
.chart-tip strong { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Tables */
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
caption { text-align: left; }
th, td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font-size: 13.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
th[scope="row"] { font-size: 15px; font-weight: 500; color: var(--ink); white-space: normal; }
td .why, th .why { display: block; color: var(--muted); font-size: 13.5px; font-weight: 400; }
.res-m, td .why.res-m, th .why.res-m { display: none; }
@media (max-width: 600px) {
  th, td { padding: 9px 10px; }
  .res { display: none; }
  .res-m, td .why.res-m, th .why.res-m { display: block; }
  .wide { display: none; }
}
tr.out td { color: var(--ink-2); }
.table-foot { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; }

/* Footer */
footer.site-foot { margin-top: 64px; padding-top: 18px; border-top: 1px solid var(--rule-strong); display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
footer.site-foot p { max-width: 80ch; }
footer.site-foot .foot-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.notice.note { background: var(--surface); color: var(--ink); border: 1px solid var(--rule-strong); }

/* The about page */
.prose { max-width: 70ch; display: grid; gap: 14px; padding: 36px 0 0; }
.prose h1 { font-size: 30px; font-weight: 600; }
.prose h2 { font-size: 19px; font-weight: 600; margin-top: 10px; }
.prose p { font-size: 17px; color: var(--ink-2); }

@media print {
  body { background: #fff; }
  .site-head nav, .chart-controls, .cite button { display: none; }
}

/* The documents: methodology, statements, licence, evidence, data and archive (sitepages.py). */
.doc { gap: 12px; grid-template-columns: minmax(0, 1fr); }
.doc p, .doc li { overflow-wrap: break-word; }
.doc h1 { font-size: 30px; font-weight: 600; line-height: 1.2; }
.doc h2 { font-size: 21px; font-weight: 600; margin-top: 18px; scroll-margin-top: 12px; }
.doc h3 { font-size: 17px; font-weight: 600; margin-top: 8px; }
.doc p, .doc li { font-size: 17px; color: var(--ink-2); }
.doc ul, .doc ol { margin: 0; padding-left: 1.4em; display: grid; gap: 6px; }
.doc hr { border: 0; border-top: 1px solid var(--rule-strong); margin: 12px 0; width: 100%; }
.doc code { font-size: 0.92em; background: var(--surface); border: 1px solid var(--rule); border-radius: 3px; padding: 0 4px; overflow-wrap: anywhere; }
.doc pre { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 12px 14px; overflow-x: auto; }
.doc pre code { border: 0; padding: 0; background: none; overflow-wrap: normal; white-space: pre; }
.doc .table-scroll { overflow-x: auto; margin: 4px 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--rule); }
.doc thead th { color: var(--ink); font-weight: 600; border-bottom-color: var(--rule-strong); }
.doc td { color: var(--ink-2); }
.doc table.archive th[scope="row"] { font-weight: 400; white-space: nowrap; }
.doc .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc .contents { border: 1px solid var(--rule); border-radius: 4px; padding: 12px 16px; background: var(--surface); }
.doc .contents-h { font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.doc .contents ul { gap: 2px; list-style: none; padding-left: 0; }
.doc .contents li { font-size: 15px; }
.doc td code { overflow-wrap: normal; white-space: nowrap; }
.doc tbody tr:last-child th { border-bottom: 0; }
.doc q { quotes: "\201C" "\201D"; }
.doc .notice { margin-top: 0; }
