/* ============================================================
   Web funnel stylesheet — truecost.aphelionengineering.com.au
   Restyle per the 2026-09-03 design handoff (README §"Design tokens",
   "Screens"): Aphelion house style with editorial pacing — mono section
   numbering, one Bricolage headline per page, hairlines instead of boxes
   wherever a box is not a control. Tokens are the Aphelion brand file
   verbatim (CLAUDE.md §12: no invented hex). The five bridge tokens
   chrome.css consumes (--text, --text-muted, --text-faint, --border-mid,
   --border-hair) keep their canonical names so the vendored header and
   footer inherit the palette with no shims.

   Typography: Bricolage Grotesque for display/headings only; Geist for
   everything read; Geist Mono for eyebrows, section numbers, table heads
   and metadata. Every figure uses tabular numerals.

   The production CSP is style-src 'self' with no style-src-attr: nothing in
   the builders may carry a style attribute. All presentation lives here.
   ============================================================ */

/* Self-hosted, open-licensed faces (SIL OFL 1.1). Self-hosting is a
   precondition of the site's privacy line. Geist and Geist Mono are the same
   files the vendored chrome loads from /fonts/ — browsers de-dupe identical
   @font-face sources, so declaring them here costs nothing. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/fonts/geist.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/fonts/geist-mono.woff2") format("woff2");
}

:root {
  --bg: #07080A;
  --surface: #0E1014;
  --surface-2: #0B0D11;
  --border-mid: #1A1D22;
  --border-hair: rgba(236, 237, 238, 0.08);
  --text: #ECEDEE;
  --text-mid: #B8BBC2;
  /* Decorative only (README): section numerals, separators, the chrome's own
     captions. Anything read uses --text-mid. */
  --text-muted: #8B8E94;
  /* The studio's --text-faint is #5A5D63 (3.0:1 on --bg). chrome.css reads it
     as var(--text-faint, #5A5D63), so it is pinned here to the canonical
     --text-muted value — the fallback can never paint the failing colour. */
  --text-faint: #8B8E94;
  /* Interactive control boundaries need 3:1 (WCAG 1.4.11). The canonical
     --text-muted value in a boundary role, not a new hex. */
  --border-control: #8B8E94;
  --accent: #F4A340;
  --accent-hot: #FFE3B5;
  --accent-strong: var(--accent);
  --accent-ink: #C17618;
  --paper: #F2EEE7;
  --ink: #0E1014;
  --pass: #4AA86B;
  --fail: #DB4F47;
  --warn: #E6A626;
  --btn-bg: #F4A340;
  --btn-fg: #0E1014;
  --btn-bg-hover: #FFE3B5;
  --link: var(--accent);
  --link-ul: rgba(244, 163, 64, 0.45);
  --link-hover: var(--accent-hot);

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;

  --maxw: 1240px;
  --pad-x: clamp(20px, 3.2vw, 40px);
  --radius: 14px;
  --radius-control: 8px;
}

/* Light theme — proposed in the handoff, applied only if the chrome toggle is
   adopted (body.dark-only removed). Tokens only; every rule below reads them.
   --accent-ink is 3.09:1 on paper: large figures, rings, underlines and the
   edited border only. */
body.theme-light {
  --bg: #F2EEE7;
  --surface: color-mix(in srgb, #F2EEE7 50%, #FFFFFF);
  --surface-2: color-mix(in srgb, #F2EEE7 93%, #0E1014);
  --border-mid: rgba(14, 16, 20, 0.14);
  --border-hair: rgba(14, 16, 20, 0.09);
  --border-control: rgba(14, 16, 20, 0.55);
  --text: #0E1014;
  --text-mid: rgba(14, 16, 20, 0.76);
  --text-muted: rgba(14, 16, 20, 0.6);
  --text-faint: rgba(14, 16, 20, 0.6);
  --accent: #C17618;
  --accent-hot: #0E1014;
  --btn-bg: #0E1014;
  --btn-fg: #F2EEE7;
  --btn-bg-hover: rgba(14, 16, 20, 0.82);
  --link: #0E1014;
  --link-ul: #C17618;
  --link-hover: #0E1014;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

/* The `hidden` attribute must win over any layout display value. */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: .75rem 1rem;
  z-index: 100;
  border: 1px solid var(--border-mid);
  border-radius: 0 0 var(--radius-control) 0;
}
.skip-link:focus-visible { left: 0; }

/* ---- Page frame ---- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(104px, 11vw, 152px) var(--pad-x) 0;
}
main.is-index { padding-top: clamp(112px, 13vw, 176px); }
/* The chrome owns the footer; the page owns the gap above it. */
footer.site-footer { margin-top: clamp(80px, 10vw, 128px); }

/* ---- Type ---- */
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  text-wrap: balance;
  margin: 0;
  color: var(--text);
}
h1 {
  font-size: clamp(34px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -.025em;
  max-width: 20ch;
  margin-top: 14px;
}
main.is-index h1 {
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: .98;
  letter-spacing: -.03em;
  max-width: 13ch;
  margin-top: 16px;
}
h2 {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.12;
  letter-spacing: -.02em;
}
h3 {
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -.01em;
}

p { margin: 0; max-width: 62ch; color: var(--text-mid); text-wrap: pretty; }
p + p { margin-top: 14px; }
a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: var(--link-ul);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--link-hover); text-decoration-color: currentColor; }
strong { color: var(--text); font-weight: 600; }
code { font-family: var(--mono); font-size: .9em; color: var(--text); }

.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--text-mid);
  max-width: 60ch;
  margin-top: clamp(18px, 2vw, 26px);
}
.hint {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-mid);
  max-width: 70ch;
}
.hint + .hint { margin-top: 10px; }

/* Eyebrows and section numbers: mono, spaced, upper. The "§ 0N —" prefix is
   decorative and takes --text-muted; the label itself is read and stays
   --text-mid. */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin: 0;
  max-width: none;
}
.eyebrow .sect { color: var(--text-muted); }
.eyebrow-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 14px;
}
.eyebrow-row .sep { color: var(--text-muted); font-family: var(--mono); font-size: 11px; }
.meta-line {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mid);
  max-width: none;
}
.meta-line code { text-transform: none; letter-spacing: 0; font-size: 12px; }

/* The privacy line, moved up under the lede on the state page (README). */
.privacy-line {
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-mid);
  max-width: 70ch;
  padding-left: 14px;
  border-left: 1px solid var(--border-mid);
}

/* ---- Every figure uses tabular numerals ---- */
.num, .money, output, td.num, th.num, caption, .working-formula,
.result-value, .working-value, .field-state, table {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ---- Index hero: headline left, lede beside it on desktop ---- */
.hero {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 3vw, 48px) clamp(32px, 5vw, 80px);
  align-items: flex-end;
}
.hero-head { flex: 1 1 520px; min-width: 0; }
.hero .lede { flex: 1 1 300px; max-width: 44ch; margin-top: 0; }

/* Brand lockup (rendered only once the name is cleared — clearedBrand()). */
.lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  text-decoration: none;
  color: var(--text);
}
.lockup svg { width: 24px; height: 24px; }
.lockup .wordmark { font: 600 28px/1 var(--display); letter-spacing: -.025em; }
.lockup.is-small { gap: 7px; margin: 0; }
.lockup.is-small svg { width: 16px; height: 16px; }
.lockup.is-small .wordmark { font-size: 17px; letter-spacing: -.02em; }

/* ---- Sections: numbered, two-column reference pattern ---- */
.section { margin-top: clamp(48px, 6vw, 80px); }
.section.is-first { margin-top: clamp(48px, 6vw, 96px); }
.ref {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 56px;
  margin-top: clamp(48px, 6vw, 80px);
}
.ref.is-ruled {
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--border-hair);
}
.ref-head { flex: 1 1 280px; min-width: 0; }
.ref-head h2 { margin-top: 10px; }
.ref-body { flex: 2 1 420px; min-width: 0; }
.ref-body > p:first-child { margin-top: 0; }
.ref-body .table-wrap { margin-top: 20px; }
.ref-body .meta-line { margin-top: 18px; }

/* ---- Index state list ---- */
ol.state-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  border-top: 1px solid var(--border-mid);
}
.state-list a {
  display: grid;
  /* Each row is its own grid, so the code column takes a fixed width in the
     code's own em (below) to line the names up across rows. */
  grid-template-columns: 2.4em auto 1fr auto;
  align-items: baseline;
  gap: clamp(12px, 2.4vw, 36px);
  padding: clamp(16px, 2vw, 26px) 12px;
  margin: 0 -12px;
  border-bottom: 1px solid var(--border-hair);
  border-radius: var(--radius-control);
  text-decoration: none;
  color: var(--text);
  transition: background-color .15s ease;
}
.state-list a:hover { background: var(--surface); color: var(--text); }
.state-list .idx {
  font: 400 11px/1 var(--mono);
  letter-spacing: .12em;
  color: var(--text-muted);
}
.state-list .code {
  font: 600 clamp(26px, 3.2vw, 44px)/1 var(--display);
  letter-spacing: -.025em;
  min-width: 3.1em;
}
.state-list .name {
  font: 400 clamp(15px, 1.4vw, 18px)/1.4 var(--body);
  color: var(--text-mid);
  min-width: 0;
}
.state-list .state-sub {
  display: block;
  margin-top: 2px;
  font: 400 11px/1.6 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.state-list .arrow {
  font: 400 clamp(18px, 1.6vw, 22px)/1 var(--body);
  color: var(--text-mid);
}

/* ---- State page: form column + figures column ---- */
.page-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(40px, 5vw, 72px);
  align-items: flex-start;
}
.form-col { flex: 1 1 360px; min-width: 0; }
.results { flex: 2 1 520px; min-width: 0; }
.results h2 { margin-top: 10px; }

/* ---- Form ---- */
.calc-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px 20px;
  margin: 16px 0 0;
  padding: clamp(18px, 2vw, 24px);
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.span-all { grid-column: 1 / -1; }
.field label, .field .label, legend {
  font: 500 14px/1.3 var(--body);
  color: var(--text);
}
.field .hint { font-size: 13px; line-height: 1.5; color: var(--text-mid); }

input[type="text"], input[type="number"], input[type="date"], select {
  font: 500 16px/1.3 var(--body);
  font-variant-numeric: tabular-nums;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-control);
  border-radius: var(--radius-control);
  width: 100%;
  transition: border-color .15s ease;
}
input:hover, select:hover { border-color: var(--text); }
input[aria-invalid="true"] { border-color: var(--fail); }
input.edited, select.edited {
  border-color: var(--accent);
  color: var(--accent-hot);
  font-weight: 600;
}

/* Money inputs carry a "$" prefix drawn beside the value. */
.money-input { position: relative; }
.money-input .currency {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font: 500 16px var(--body);
  color: var(--text-mid);
  pointer-events: none;
}
.money-input input { padding-left: 28px; }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; margin: 0 0 8px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-row label {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-control);
  border-radius: var(--radius-control);
  font: 400 15px var(--body);
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s ease;
}
.radio-row label:hover, .radio-row label:focus-within { border-color: var(--text); }
.radio-row input[type="radio"] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  margin: 0;
  flex: none;
}

/* Assumptions panel: a working panel directly under the form. */
#assumptions { margin-top: 12px; }
#assumption-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  gap: 16px 18px;
  margin-top: 16px;
  padding: 0;
  background: transparent;
  border: 0;
}
#assumption-fields label { font-size: 13px; }
#assumption-fields input { font-size: 15px; background: var(--surface); }
.field-state {
  font: 400 12px/1.4 var(--body);
  color: var(--text-mid);
}
.field-state.is-edited { color: var(--accent); }
.field-state.is-invalid { color: var(--fail); }
.reset-button {
  align-self: flex-start;
  min-height: 44px;
  padding: 0 12px;
  background: none;
  border: 1px solid var(--border-control);
  color: var(--text-mid);
  border-radius: 6px;
  font: 400 13px var(--body);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.reset-button:hover { border-color: var(--accent); color: var(--accent); }

/* ---- Notices ---- */
#notices { display: grid; gap: 10px; margin-top: 18px; }
#notices:empty { display: none; }
.notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: baseline;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--border-mid);
  border-radius: 10px;
  background: var(--surface);
  font: 400 15px/1.5 var(--body);
  color: var(--text-mid);
  max-width: none;
}
noscript .notice { margin-top: 18px; }
.notice .kind {
  font: 500 11px/1.6 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-mid);
}
.notice.is-estimate .kind { color: var(--accent); }
.notice.is-blocking { border-color: var(--warn); color: var(--text); }
.notice.is-blocking .kind { color: var(--warn); }
.notice strong { color: var(--text); }

/* ---- Result cards ---- */
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
  margin-top: 18px;
}
.result-card {
  background: var(--surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: clamp(16px, 1.8vw, 22px);
  min-width: 0;
}
.result-card.is-primary { grid-column: 1 / -1; }
.result-label {
  font: 400 14px/1.4 var(--body);
  color: var(--text-mid);
  margin: 0;
}
.result-value {
  display: block;
  margin-top: 10px;
  font-family: var(--body);
  font-weight: 600;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1;
  letter-spacing: -.025em;
  color: var(--text);
}
.result-value.is-accent {
  color: var(--accent);
  font-size: clamp(44px, 4.6vw, 64px);
}
.result-value .unit {
  display: inline-block;
  white-space: nowrap;
  margin-left: .3em;
  font-size: .44em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-mid);
}
.result-sub {
  font: 400 13px/1.45 var(--body);
  color: var(--text-mid);
  margin: 10px 0 0;
}

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; margin-top: 28px; }
table {
  border-collapse: collapse;
  width: 100%;
  font: 400 15px/1.4 var(--body);
}
caption {
  text-align: left;
  caption-side: top;
  padding: 0 0 12px;
  font: 400 11px/1.4 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mid);
}
thead th {
  text-align: left;
  padding: 0 16px 10px 0;
  font: 500 11px/1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border-mid);
}
tbody th, tbody td {
  text-align: left;
  padding: 11px 16px 11px 0;
  border-bottom: 1px solid var(--border-hair);
  vertical-align: top;
  font-weight: 400;
}
tbody th[scope="row"] { color: var(--text-mid); }
tbody td { color: var(--text-mid); }
tbody td:first-child { color: var(--text); white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: none; }
td.num, th.num { text-align: right; white-space: nowrap; color: var(--text); }
tbody th:last-child, tbody td:last-child, thead th:last-child { padding-right: 0; }
tfoot th, tfoot td { padding: 12px 0 0; font-weight: 600; color: var(--text); text-align: left; }
tfoot td.num { text-align: right; }

/* ---- Working panels ---- */
#result-detail { display: grid; gap: 10px; margin-top: 22px; }
#result-detail:empty { display: none; }
#result-detail .table-wrap { margin-top: 6px; }
details.working {
  background: var(--surface-2);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 0;
  margin: 0;
}
details.working > summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  color: var(--accent);
  font: 500 14px/1.3 var(--body);
  list-style: none;
  transition: color .15s ease;
}
details.working > summary:hover { color: var(--accent-hot); }
details.working > summary::-webkit-details-marker { display: none; }
details.working > summary::before {
  content: "›";
  display: inline-block;
  font: 400 16px/1 var(--mono);
  transition: transform .15s ease;
}
details.working[open] > summary::before { transform: rotate(90deg); }
.working-body { padding: 0 18px 18px; }
.working-section-heading {
  font: 500 11px/1.4 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin: 18px 0 4px;
  max-width: none;
}
.working-body > .working-section-heading:first-child { margin-top: 6px; }
.working-node { border-top: 1px solid var(--border-hair); padding: 12px 0 6px; }
.working-node-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.working-label { font: 600 15px/1.4 var(--body); color: var(--text); }
.working-value { font: 500 15px/1.4 var(--body); color: var(--text); white-space: nowrap; }
.working-node[data-depth="0"] > .working-node-head > .working-value { color: var(--accent); }
.working-formula {
  font: 400 13px/1.5 var(--body);
  color: var(--text-mid);
  margin: 4px 0 0;
  max-width: none;
}
.working-formula.is-edited { color: var(--accent); }
.working-inputs {
  margin: 8px 0 0;
  padding: 8px 10px;
  background: var(--surface);
  border-radius: var(--radius-control);
  font: 400 13px/1.6 var(--body);
}
.working-inputs div { display: flex; justify-content: space-between; gap: 16px; }
.working-inputs .k { color: var(--text-mid); }
.working-inputs .v { color: var(--text); font-variant-numeric: tabular-nums; text-align: right; }
.working-rates {
  font: 400 11px/1.5 var(--mono);
  letter-spacing: .04em;
  color: var(--accent);
  margin: 6px 0 0;
  max-width: none;
}
.working-children { margin-left: 16px; }

.source-row { border-top: 1px solid var(--border-hair); padding: 10px 0; }
.source-title { font: 600 13px/1.5 var(--body); color: var(--accent); }
a.source-title { color: var(--link); }
.source-meta {
  margin-top: 2px;
  font: 400 12px/1.5 var(--mono);
  color: var(--text-mid);
}

/* ---- Save row ---- */
#save-campaign-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin: 22px 0 0;
  max-width: none;
}
#save-campaign-row .hint { flex: 1 1 260px; }
button.primary, #save-campaign {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 500 15px var(--body);
  cursor: pointer;
  transition: background-color .15s ease;
}
button.primary:hover, #save-campaign:hover { background: var(--btn-bg-hover); }

/* ---- CTA band ---- */
.cta {
  margin-top: clamp(48px, 6vw, 88px);
  padding: clamp(28px, 3.2vw, 40px) 0;
  border-top: 1px solid var(--border-mid);
  border-bottom: 1px solid var(--border-mid);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 20px 48px;
  align-items: start;
}
.cta h2 { margin: 0; }
.cta p { margin: 0; }
.cta .status {
  margin-top: 12px;
  font: 400 11px/1.4 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-mid);
}

/* ---- Reference items: concessions and questions ---- */
.rate-item, .faq-item { border-top: 1px solid var(--border-hair); padding: 16px 0; }
.rate-item h3, .faq-item h3 { margin: 0; }
.rate-item p, .faq-item p { margin-top: 8px; font-size: 15px; }
.rate-item .hint { font-size: 13px; }
.rate-item .table-wrap { margin-top: 12px; }
.rate-item dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 20px;
  margin: 12px 0 0;
  font: 400 14px/1.5 var(--body);
}
.rate-item dt { color: var(--text-mid); }
.rate-item dd { margin: 0; color: var(--text); }

/* ---- /sources ---- */
.source-section {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 24px 56px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-mid);
}
.source-section.is-first { margin-top: clamp(48px, 6vw, 72px); }
.source-section h2 {
  font-size: clamp(24px, 2.4vw, 30px);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.status-line { font: 400 14px/1.5 var(--body); color: var(--text-mid); max-width: 38ch; margin-top: 12px; }
.source-body .hint strong { color: var(--text); }
.source-body .hint + .hint { margin-top: 8px; }
.source-body .source-rows { margin-top: 16px; border-bottom: 1px solid var(--border-hair); }
@media (max-width: 760px) {
  .source-section { grid-template-columns: 1fr; }
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--border-mid);
  border-radius: 999px;
  font: 500 11px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mid);
  vertical-align: middle;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}
.badge.is-verified::before { background: var(--pass); }
.badge.is-estimate::before { background: var(--warn); }
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--text-muted);
}
.dot.is-verified { background: var(--pass); }
.dot.is-estimate { background: var(--warn); }

/* ---- /changes ---- */
.log-entry {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 16px 56px;
  padding: 22px 0;
  border-top: 1px solid var(--border-hair);
}
.log-entry:last-child { border-bottom: 1px solid var(--border-hair); }
.log-entry h3 { font-size: 26px; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.log-entry ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.log-entry li { font: 400 16px/1.6 var(--body); color: var(--text-mid); }
@media (max-width: 780px) {
  .log-entry { grid-template-columns: 1fr; }
}
.log-list { margin-top: 18px; }
.changes-table tbody td { color: var(--text-mid); white-space: normal; }
.changes-table tbody td:first-child { white-space: normal; }
.changes-table .source-title { color: var(--text); }
.changes-table .source-meta { font-family: var(--body); font-size: 13px; }
.changes-table td.num { color: var(--text); }
.changes-table code { font-size: 13px; color: var(--text-mid); }

/* ---- Methodology pages and other prose ---- */
.source-list { list-style: none; padding: 0; margin: 16px 0 0; }
.source-list li { border-top: 1px solid var(--border-hair); padding: 10px 0; font-size: 15px; }
.source-list .source-meta { display: block; }
.prose h2 { margin-top: clamp(40px, 5vw, 56px); }
.prose p { margin-top: 14px; }

.advice-boundary { display: block; margin-bottom: .4rem; }
.col-label-spaced { margin-top: 28px; }
.footer-legal .advice-boundary { margin-bottom: .5rem; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
