/* ═══════════════════════════════════════════════════════════════
   CFS Design System v1.0 — calculatorforsavers.com
   ONE file. All pages import this. Page-specific overrides inline.
   Tokens → Base → Layout → Components → Insights → Responsive
═══════════════════════════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --navy:     #0f2340;
  --navy-mid: #1a3558;
  --navy-lt:  #1e4068;
  --blue:     #1e6eb5;
  --teal:     #0ea5a0;
  --teal-lt:  rgba(14,165,160,.12);
  --gold:     #e8a920;
  --green:    #16a34a;
  --red:      #dc2626;
  --orange:   #d97706;
  --purple:   #7c3aed;
  --fire:     #f97316;

  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --white:    #ffffff;

  --shadow-xs: 0 1px 3px rgba(0,0,0,.07);
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.13);

  --radius:    12px;
  --radius-sm: 8px;
  --radius-xs: 5px;

  --focus-ring: 0 0 0 3px rgba(30,110,181,.42);
  --focus-ring-gold: 0 0 0 3px rgba(232,169,32,.55);

  --page-max: 1200px;
  --sidebar-w: 300px;
  --gap: 24px;

  /* per-page accent — override in page <style> */
  --accent: var(--teal);
  --accent-lt: var(--teal-lt);
  --badge-bg: var(--teal);
  --badge-color: #fff;
  --hero-start: var(--navy);
  --hero-end: #1a4a7a;
  --strip-start: var(--teal);
  --strip-end: var(--blue);
  --strip-color: #fff;
  --btn-start: var(--blue);
  --btn-end: var(--teal);
  --btn-color: #fff;
}

/* ── RESET / BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font-family: inherit; }

/* ── SKIP LINK ── */
.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; width: auto; height: auto;
  padding: 10px 18px; background: var(--navy); color: #fff;
  font-weight: 700; font-size: 14px; border-radius: 6px;
  z-index: 9999; text-decoration: none;
  outline: 3px solid var(--gold); outline-offset: 2px;
}

/* ── FOCUS STYLES (WCAG 2.2) ── */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 3px; }
button:focus-visible, a:focus-visible, [role="button"]:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; border-color: var(--blue) !important; box-shadow: var(--focus-ring) !important;
}

/* ── HEADER ── */
header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff; padding: 0 20px;
}
.header-inner {
  max-width: var(--page-max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 14px; flex-wrap: wrap;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: #fff; flex-shrink: 0;
}
.logo:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.logo-icon {
  width: 38px; height: 38px; background: var(--teal);
  border-radius: 9px; display: flex; align-items: center;
  justify-content: center; font-size: 18px; flex-shrink: 0;
}
.logo-text h1 { font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 700; line-height: 1.2; }
.logo-text p  { font-size: 11px; opacity: .7; margin-top: 1px; }

/* ── NAV ── */
nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nav-group { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-group + .nav-group { border-left: 1.5px solid rgba(255,255,255,.18); padding-left: 8px; }
nav a {
  color: rgba(255,255,255,.82); text-decoration: none;
  font-size: 11.5px; font-weight: 500;
  padding: 5px 10px; border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,.2);
  transition: background .18s, border-color .18s, color .18s;
  white-space: nowrap; min-height: 34px;
  display: inline-flex; align-items: center;
}
nav a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.38); color: #fff; }
nav a.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.nav-cat-label {
  font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.42); white-space: nowrap;
}

/* ── HERO STRIP ── */
.hero-strip {
  background: linear-gradient(90deg, var(--strip-start) 0%, var(--strip-end) 100%);
  color: var(--strip-color);
  text-align: center; padding: 8px 20px;
  font-size: 13px; font-weight: 500;
}

/* ── PAGE LAYOUT ── */
.page-wrap {
  max-width: var(--page-max); margin: 0 auto;
  padding: 24px 20px 60px;
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: var(--gap);
  align-items: start;
}
.main-col  { min-width: 0; }
.sidebar   { min-width: 0; }

/* ── CARD COMPONENT ── */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-md); overflow: hidden; margin-bottom: 18px;
}
.card-hd {
  background: var(--navy); color: #fff;
  padding: 13px 20px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; user-select: none; min-height: 50px;
}
.card-hd:hover { background: var(--navy-lt); }
.card-hd .badge {
  background: var(--badge-bg); color: var(--badge-color);
  border-radius: var(--radius-xs); padding: 3px 9px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; flex-shrink: 0;
}
.card-hd h2 { font-family: 'Playfair Display', serif; font-size: 17px; flex: 1; }
.card-hd .chev { font-size: 16px; opacity: .75; transition: transform .3s; flex-shrink: 0; }
.card-hd.closed .chev { transform: rotate(-90deg); }
.card-hd .chev::before { content: '▾'; }
.card-body { padding: 20px; }
.card-body-pad { padding: 16px; }

/* ── FIELD COMPONENT ── */
.fg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fg3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.fg4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label {
  font-size: 11.5px; font-weight: 700;
  color: var(--gray-700); text-transform: uppercase;
  letter-spacing: .04em; line-height: 1.3;
}
.field input, .field select {
  border: 1.5px solid var(--gray-300); border-radius: var(--radius-sm);
  padding: 9px 11px; font-size: 15px; color: var(--gray-900);
  background: var(--white); width: 100%;
  min-height: 44px;
  transition: border-color .18s, box-shadow .18s;
}
.field input:hover, .field select:hover { border-color: var(--gray-500); }
.iw { position: relative; }
.iw .pre {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: var(--gray-600); pointer-events: none; font-weight: 600;
}
.iw .suf {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: var(--gray-600); pointer-events: none;
}
.iw input.hp { padding-left: 22px; }
.iw input.hs { padding-right: 30px; }
.hint { font-size: 11.5px; color: var(--gray-500); line-height: 1.4; }
.live-hint { font-size: 11.5px; color: var(--teal); font-weight: 600; line-height: 1.4; }
.sec {
  font-size: 11px; font-weight: 700; color: var(--gray-600);
  text-transform: uppercase; letter-spacing: .07em;
  margin: 18px 0 12px;
  display: flex; align-items: center; gap: 8px;
}
.sec::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
.sec:first-child { margin-top: 0; }

/* ── RANGE SLIDERS ── */
.sl-wrap { margin-top: 5px; }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 4px; border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--accent) var(--fill, 50%),
    var(--gray-200) var(--fill, 50%)
  );
  outline: none; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); cursor: pointer;
  border: 2.5px solid #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,.22);
  transition: transform .15s;
}
input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); cursor: pointer;
  border: 2.5px solid #fff;
  box-shadow: 0 1px 5px rgba(0,0,0,.22);
}
input[type="range"]:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 2px;
}

/* ── TOGGLE BUTTON GROUP ── */
.btn-group { display: flex; gap: 6px; flex-wrap: wrap; }
.tgl {
  padding: 7px 14px; border-radius: 20px;
  border: 1.5px solid var(--gray-300); background: #fff;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  cursor: pointer; color: var(--gray-700);
  transition: all .18s; min-height: 40px;
}
.tgl:hover { border-color: var(--accent); color: var(--accent); }
.tgl.on { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── QUICK ACTIONS ── */
.qa-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 11px 15px; background: var(--gray-50);
  border-radius: var(--radius-sm); border: 1px solid var(--gray-200);
  margin-bottom: 14px;
}
.qa-label {
  font-size: 11px; font-weight: 700; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: .06em; white-space: nowrap;
}
.qa-btn {
  padding: 5px 12px; border-radius: 16px;
  border: 1.5px solid var(--accent); background: transparent;
  color: var(--accent); font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all .15s; min-height: 32px;
}
.qa-btn:hover { background: var(--accent); color: #fff; }

/* ── LIVE BADGE ── */
.live-badge {
  display: flex; align-items: center; justify-content: center;
  gap: 5px; font-size: 11px; font-weight: 600; color: var(--teal);
  margin-bottom: 14px;
}
.live-dot {
  width: 7px; height: 7px; background: var(--teal);
  border-radius: 50%; animation: pulse 1.5s infinite;
}
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.45; transform:scale(.8); } }

/* ── CALCULATE BUTTON ── */
.btn-calc {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--btn-start) 0%, var(--btn-end) 100%);
  color: var(--btn-color); border: none; border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 700;
  cursor: pointer; margin-top: 16px;
  transition: opacity .2s, transform .1s; min-height: 52px;
}
.btn-calc:hover { opacity: .92; }
.btn-calc:active { transform: scale(.99); }

/* ── INFO BOXES ── */
.ibox {
  padding: 12px 15px; border-radius: var(--radius-sm);
  font-size: 13px; line-height: 1.6; margin-bottom: 14px;
}
.ibox.warn { background: #fef9ec; border: 1.5px solid #d4a017; color: #6b4200; }
.ibox.info { background: #f0f7ff; border: 1.5px solid var(--blue); color: #1e3a5f; }
.ibox.success { background: #f0fdf4; border: 1.5px solid var(--green); color: #14532d; }
.ibox.danger { background: #fff1f2; border: 1.5px solid var(--red); color: #7f1d1d; }

/* ── RESULTS HERO ── */
.results-hero {
  background: linear-gradient(135deg, var(--hero-start) 0%, var(--hero-end) 100%);
  border-radius: var(--radius); padding: 22px; color: #fff; margin-bottom: 18px;
}
.rh-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; opacity: .75; margin-bottom: 6px;
}
.rh-val {
  font-family: 'Playfair Display', serif;
  font-size: 42px; font-weight: 700; line-height: 1;
}
.rh-sub { font-size: 13px; opacity: .82; margin-top: 7px; line-height: 1.5; }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.chip {
  background: rgba(255,255,255,.13); border-radius: 9px;
  padding: 11px 16px; flex: 1; min-width: 110px; text-align: center;
}
.chip-val { font-size: 18px; font-weight: 700; }
.chip-lbl { font-size: 11px; opacity: .8; margin-top: 2px; }

/* ── STAT GRID ── */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.stat-card {
  background: var(--white); border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm); padding: 13px 15px;
}
.stat-card.hi { border-color: var(--accent); background: var(--accent-lt); }
.stat-card.warn-c { border-color: var(--orange); background: rgba(217,119,6,.05); }
.stat-card.good-c { border-color: var(--green); background: rgba(22,163,74,.05); }
.stat-lbl {
  font-size: 11px; font-weight: 700; color: var(--gray-600);
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px;
}
.stat-val { font-size: 19px; font-weight: 700; color: var(--navy); }
.stat-card.hi   .stat-val { color: var(--accent); }
.stat-card.good-c .stat-val { color: var(--green); }
.stat-card.warn-c .stat-val { color: var(--orange); }
.stat-sub { font-size: 12px; color: var(--gray-500); margin-top: 2px; line-height: 1.4; }

/* ── SECTION TITLE ── */
.sec-title {
  font-family: 'Playfair Display', serif; font-size: 17px;
  color: var(--navy); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.sec-title::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }

/* ── CHART WRAPPER ── */
.chart-wrap {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 20px; margin-bottom: 18px;
}
.chart-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ── PROGRESS BAR ── */
.progress-section {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 20px; margin-bottom: 18px;
}
.progress-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.progress-title { font-family: 'Playfair Display', serif; font-size: 16px; color: var(--navy); }
.progress-pct { font-size: 22px; font-weight: 700; color: var(--accent); }
.progress-track {
  height: 22px; background: var(--gray-100); border-radius: 11px; overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%; border-radius: 11px;
  transition: width .8s cubic-bezier(.4,0,.2,1);
  background: linear-gradient(90deg, var(--accent), var(--green));
  position: relative;
}
.progress-fill::after {
  content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 3px;
  background: rgba(255,255,255,.4); border-radius: 0 11px 11px 0;
}
.progress-markers {
  display: flex; justify-content: space-between;
  margin-top: 5px; font-size: 11px; color: var(--gray-500);
}

/* ── GAUGE / RING (net worth health score) ── */
.gauge-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 12px;
}
.gauge-ring { position: relative; width: 140px; height: 140px; }
.gauge-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-bg { fill: none; stroke: var(--gray-100); stroke-width: 12; }
.gauge-fill { fill: none; stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset .9s cubic-bezier(.4,0,.2,1); }
.gauge-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.gauge-score { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1; }
.gauge-sub   { font-size: 11px; color: var(--gray-500); font-weight: 600; margin-top: 3px; }
.gauge-label { font-size: 12px; font-weight: 700; color: var(--gray-700); text-align: center; }

/* ── INSIGHT CARDS ── */
.insights-section { margin-bottom: 18px; }
.insights-hdg {
  font-family: 'Playfair Display', serif; font-size: 17px;
  color: var(--navy); margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.insights-hdg::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
.insights-grid { display: flex; flex-direction: column; gap: 10px; }
.ic {
  display: flex; gap: 12px; background: var(--white);
  border-radius: var(--radius-sm); padding: 14px 16px;
  border-left: 4px solid var(--gray-300);
  box-shadow: var(--shadow-xs);
  transition: box-shadow .2s;
}
.ic:hover { box-shadow: var(--shadow-sm); }
.ic-tip       { border-left-color: var(--blue); }
.ic-milestone { border-left-color: var(--green); }
.ic-warning   { border-left-color: var(--orange); }
.ic-action    { border-left-color: var(--teal); }
.ic-compare   { border-left-color: var(--purple); }
.ic-icon { font-size: 22px; flex-shrink: 0; line-height: 1.2; margin-top: 1px; }
.ic-body { flex: 1; }
.ic-title { font-size: 13px; font-weight: 700; color: var(--navy); display: block; margin-bottom: 3px; }
.ic-text  { font-size: 12.5px; color: var(--gray-700); line-height: 1.55; }
.ic-btn {
  margin-top: 8px; padding: 5px 12px;
  background: var(--teal); color: #fff; border: none;
  border-radius: 16px; font-size: 12px; font-weight: 700;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  display: inline-block;
}
.ic-btn:hover { opacity: .88; }

/* ── TABLES ── */
.tbl-wrap { overflow-x: auto; }
.cfs-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 380px; }
.cfs-table th {
  background: var(--navy); color: #fff;
  padding: 10px 12px; text-align: left;
  font-size: 12px; font-weight: 700;
}
.cfs-table th:not(:first-child) { text-align: right; }
.cfs-table td { padding: 9px 12px; border-bottom: 1px solid var(--gray-100); color: var(--gray-700); }
.cfs-table td:not(:first-child) { text-align: right; font-weight: 600; }
.cfs-table tr:nth-child(even) td { background: var(--gray-50); }
.cfs-table tr.hi td { background: var(--accent-lt) !important; color: var(--navy); font-weight: 700; }
.cfs-table tr:hover td { background: var(--gray-50); }
.tag-pos { background: rgba(22,163,74,.12); color: var(--green); font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; margin-left: 4px; }
.tag-neg { background: rgba(220,38,38,.1); color: var(--red); font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; margin-left: 4px; }

/* ── SIDEBAR ── */
.sc {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-md); overflow: hidden; margin-bottom: 18px;
}
.sc-h { background: var(--navy-mid); color: #fff; padding: 12px 15px; font-weight: 700; font-size: 13.5px; }
.sc-b { padding: 13px 15px; }
.qs {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 7px 0; border-bottom: 1px solid var(--gray-100);
  font-size: 13px; gap: 8px;
}
.qs:last-child { border-bottom: none; }
.qs-l { color: var(--gray-600); }
.qs-v { font-weight: 700; text-align: right; }

/* ── SCENARIO COMPARISON ── */
.scenario-trio { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.scene-card {
  background: var(--white); border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200); padding: 15px 18px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap; transition: border-color .2s;
}
.scene-card:hover { border-color: var(--gray-400); }
.scene-card.best  { border-color: var(--green);  background: rgba(22,163,74,.04); }
.scene-card.mid   { border-color: var(--blue);   background: rgba(30,110,181,.04); }
.scene-card.base  { border-color: var(--gray-300); }
.scene-label { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.scene-val   { font-size: 20px; font-weight: 700; color: var(--navy); }
.scene-card.best .scene-val  { color: var(--green); }
.scene-card.mid  .scene-val  { color: var(--blue); }
.scene-sub   { font-size: 12px; color: var(--gray-500); margin-top: 3px; }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  text-align: center; padding: 22px;
  font-size: 12px; line-height: 1.9;
}
footer a { color: rgba(255,255,255,.8); }
footer strong { color: #fff; }

/* ── SR ONLY ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ── RESPONSIVE ── */
@media (max-width: 1000px) {
  .page-wrap { grid-template-columns: 1fr; }
  .sidebar   { order: 2; }
  .main-col  { order: 1; }
  .fg4       { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .fg2, .fg3, .fg4 { grid-template-columns: 1fr; }
  .stat-grid        { grid-template-columns: 1fr 1fr; }
  .chart-row        { grid-template-columns: 1fr; }
  .rh-val           { font-size: 34px; }
  .header-inner     { padding: 12px 0; }
  .logo-text h1     { font-size: 16px; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr; }
  .chip-row  { flex-direction: column; }
}

/* ── FORCED COLORS (Windows HC mode) ── */
@media (forced-colors: active) {
  .tgl.on, .btn-calc, nav a.active, .ic-btn {
    forced-color-adjust: none;
    background: Highlight; color: HighlightText; border-color: Highlight;
  }
  input[type="range"]::-webkit-slider-thumb { forced-color-adjust: none; background: Highlight; }
  .progress-fill, .gauge-fill { forced-color-adjust: none; stroke: Highlight; background: Highlight; }
}

/* ── DISCLAIMER BOX ── */
.disclaimer-box {
  background: #fef9ec;
  border: 1.5px solid #d4a017;
  border-left: 5px solid var(--orange, #d97706);
  border-radius: var(--radius-sm, 8px);
  padding: 14px 18px;
  font-size: 12.5px;
  line-height: 1.65;
  color: #5a3a00;
  margin: 12px 0 20px;
}
.disclaimer-box .disclaimer-hdg {
  font-size: 13px;
  font-weight: 700;
  color: #7c4700;
  margin-bottom: 6px;
}

/* ── LEGACY ALIASES ── */
.card-header { background: var(--navy); color: #fff; padding: 13px 20px; display: flex;
  align-items: center; gap: 10px; cursor: pointer; user-select: none; min-height: 50px; }
.card-header:hover { background: var(--navy-lt, #1a3558); }
.card-header .badge { background: var(--badge-bg, var(--teal)); color: #fff;
  border-radius: 6px; padding: 3px 9px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; flex-shrink: 0; }
.card-header h2 { font-family: 'Playfair Display', serif; font-size: 17px; flex: 1; }
.card-header .chev { font-size: 16px; opacity: .75; transition: transform .3s; flex-shrink: 0; }
.card-header .chev::before { content: '▾'; }
.card-header.closed .chev { transform: rotate(-90deg); }
.quick-stat { display: flex; justify-content: space-between; align-items: baseline;
  padding: 7px 0; border-bottom: 1px solid var(--gray-100); font-size: 13px; gap: 8px; }
.quick-stat:last-child { border-bottom: none; }
.qs-label { color: var(--gray-600, #475569); }
.qs-val   { font-weight: 700; text-align: right; }
.sidebar-card { background: #fff; border-radius: var(--radius, 12px);
  box-shadow: var(--shadow-md); overflow: hidden; margin-bottom: 18px; }
.sidebar-card-header { background: var(--navy-mid, #1a3558); color: #fff;
  padding: 12px 16px; font-weight: 700; font-size: 13.5px; }
.sidebar-card-body { padding: 14px 16px; }
.section-title { font-family: 'Playfair Display', serif; font-size: 18px;
  color: var(--navy); margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
.collapsible { overflow: hidden; transition: max-height .35s ease, opacity .25s; }
.collapsible.closed { max-height: 0 !important; opacity: 0; }
.ad-zone { background: var(--gray-100); border: 1.5px dashed var(--gray-300);
  border-radius: var(--radius-sm, 8px); display: flex; align-items: center;
  justify-content: center; color: var(--gray-500); font-size: 12px;
  letter-spacing: .04em; text-transform: uppercase; font-weight: 500; }
.ad-leaderboard { width: 100%; height: 90px; margin: 0 auto 24px; max-width: 728px; }
.ad-sidebar { width: 100%; height: 250px; }
.ad-inline { width: 100%; height: 90px; margin: 28px 0; max-width: 728px; }
