/* Common presentation, loaded last. Page calculators retain their layouts. */
:root {
 --site-section-heading-size: 22px;
 --bg: var(--site-bg) !important;
 --surface: var(--site-surface) !important; --paper: var(--site-surface) !important; --card: var(--site-surface) !important;
 --surface-2: var(--site-surface-2) !important; --field: var(--site-bg) !important; --chip-bg: var(--site-surface-2) !important;
 --ink: var(--site-ink) !important;
 --ink-2: var(--site-muted) !important; --muted: var(--site-muted) !important; --ink-soft: var(--site-muted) !important;
 --ink-3: var(--site-faint) !important; --faint: var(--site-faint) !important; --ink-faint: var(--site-faint) !important;
 --line: var(--site-line) !important; --line-strong: var(--site-line) !important; --grid: var(--site-line) !important; --axis: var(--site-faint) !important;
 --shadow: var(--site-shadow) !important;
}
body { line-height: 1.55; }
.site-container { box-sizing: border-box !important; width: 100% !important; max-width: 1060px !important; margin-left: auto !important; margin-right: auto !important; padding: 28px 20px 56px !important; }
body h1 { font-size: 36px !important; line-height: 1.15 !important; font-weight: 700; max-width: none !important; }
body .intro, body .intro-copy, body header.page-head, body .lede,
body .intro p, body .intro-copy p, body header.page-head p,
body .info-page__lead { width: auto; max-width: none !important; }
body .intro p, body .intro-copy p, body header.page-head p,
body .lede, body .info-page__lead { font-size: 18px; line-height: 1.55; }
/* These are section headings; chart verdict/result typography remains separate. */
body h2:not(.result-heading), body h3 { font-size: var(--site-section-heading-size, 22px) !important; line-height: 1.3 !important; font-weight: 600 !important; }
body .verdict h2 { font-size: 26px !important; }
body table th, body table td, body table td.num, body table th.num,
body .wealth-panel th, body .wealth-panel td.money,
body .data-row, body .data-row > *, body .table-head { font-size: 15px !important; }
/* Chart labels have their own size, independent of table/data text.
   Includes SVG axes, years, annotations and colored end-of-line values. */
:root { --site-chart-label-size: 15px; }
body .axis-label, body svg text { font-size: var(--site-chart-label-size, 15px) !important; }
body input:not([type="range"]):not([type="checkbox"]):not([type="radio"]),
body select, body textarea, body button { font-size: 15px !important; }
body .settings-close { font-size: 24px !important; }
body footer { text-align: justify; font-size: 14px; line-height: 1.55; }
body footer p { text-align: justify; }
.site-copyright { margin: 20px 0 0 !important; color: var(--site-faint); font: 14px/1.55 "IBM Plex Sans", system-ui, sans-serif !important; text-align: left !important; }
body .site-links { text-align: left; }
@media (max-width: 560px) { .site-container { padding: 20px 14px 44px !important; } }

body .hero-copy { max-width: none !important; font-size: 18px; line-height: 1.55; }

body .hero { grid-template-columns: 1fr; gap: 14px; }

/* Paint the page canvas directly, independently of page-specific aliases.
   Fallbacks preserve the homepage colors if an older site.css is cached. */
html, body {
  background-color: var(--site-bg, #f6f6f3) !important;
  color: var(--site-ink, #17211c);
}
@media (prefers-color-scheme: dark) {
  html, body {
    background-color: var(--site-bg, #10140f) !important;
    color: var(--site-ink, #eef2ec);
  }
}

/* Expandable section titles use heading typography, not form-button sizing. */
body h2 .sec-toggle, body h3 .sec-toggle {
  font-size: var(--site-section-heading-size, 22px) !important;
  line-height: inherit;
  font-weight: inherit;
}

/* Shared color-setting label typography; sizes remain page-specific pending selection. */
.hue-head label, .hue-head .lbl { font-weight: 600; line-height: 1.3; }
.hue-head label small, .hue-head .lbl small { font-weight: 400; }

/* Shared text roles: change each size here, once for the whole site.
   Q&A, introductions, headings and numeric data keep their existing rules. */
:root {
 --site-text-paragraph: 15px;
 --site-text-label: 13px;
 --site-text-hint: 13px;
 --site-text-legend: 13px;
 --site-text-note: 13px;
 --site-text-settings-description: 13px;
 --site-text-settings-label: 14px;
 --site-text-settings-help: 12px;
}
body .expl p,
body .fact p,
body .plain-card p,
body .plain-card li,
body .compare p,
body .verdict p,
body .insight,
body .context p,
body .method p,
body .method,
body .sources p,
body .source-body,
body details.src .body,
body .notice,
body .verdict-copy,
body .info-page section p,
body .info-page section li { font-size: var(--site-text-paragraph); }
body label,
body .field label,
body .calc-field label,
body .stay-row label,
body .controls label,
body label.flabel,
body .slider-wrap label,
body .controls .lbl,
body .ctl-label,
body .control-group > span:first-child { font-size: var(--site-text-label); }
body label .hint,
body .hint,
body .field .hint,
body .readout .hint,
body .dist-filter-note,
body .spec-note,
body .settings-actions p { font-size: var(--site-text-hint); }
body .legend,
body .trend-legend,
body .skew-legend,
body .bar-legend { font-size: var(--site-text-legend); }
body .card .sub,
body .sub,
body .sec-head .sub,
body .card-note,
body .chart-note,
body .table-note,
body .section-note,
body .pay-note,
body .chart-head p,
body .chart-caption,
body .section-head p,
body .chart-title-row span,
body .note,
body .cat-desc,
body .dual-summary,
body .aggregate .n { font-size: var(--site-text-note); }
body .settings-note { font-size: var(--site-text-settings-description); }
body .hue-head label,
body .hue-head .lbl,
body .spec-end-label { font-size: var(--site-text-settings-label); }
body .hue-head label small,
body .hue-head .lbl small { font-size: var(--site-text-settings-help); }

/* Mobile SVG labels are compensated for chart scale by chart-label-layout.js. */
:root { --site-mobile-chart-label-size: 12px; }
.mobile-chart-values { display: none; }
@media (max-width: 640px) {
  .mobile-chart-values:not([hidden]) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin-top: 10px; font: 400 12px/1.4 "IBM Plex Sans", system-ui, sans-serif; color: var(--site-ink); }
  .mobile-chart-values > div { min-width: 0; overflow-wrap: anywhere; }
  .mobile-chart-value-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
}
