/* Readability, responsive navigation, and compact-screen layouts. */
.legal-page { max-width: 850px; padding-block: 64px 80px; }
.legal-page h1 { font: 700 clamp(42px, 8vw, 68px)/1.1 var(--display); letter-spacing: -.055em; margin: 0 0 24px; }
.legal-page h2 { font: 600 23px/1.3 var(--display); margin-top: 38px; }
.legal-page p { line-height: 1.8; }
.legal-page a { overflow-wrap: anywhere; text-underline-offset: 3px; }
.legal-intro { color: #58624f; font-size: 18px; }
.legal-date { color: #58624f; font-size: 13px; margin-top: 42px; }
.legal-footer { padding-block: 25px; display: flex; flex-wrap: wrap; gap: 16px 28px; font-size: 12px; }
:root { --muted-readable: #535d52; }
:focus-visible { outline: 3px solid #647c27; outline-offset: 5px; }
.site-footer :focus-visible, .section-odds :focus-visible { outline-color: var(--lime); }
.hero-copy, .section-head > *, .stats-panel > *, .budget-card > * { min-width: 0; }
.hero h1, .section h2 { letter-spacing: -.06em; }
.hero-note { font-size: 12px; color: var(--muted-readable); max-width: 400px; }
.eyebrow { font-size: 11px; }
.section-deck { font-size: 15px; color: var(--muted-readable); }
.button, .text-link { font-size: 13px; }
.micro-label { font-size: 11px; line-height: 1.6; }
.micro-label.muted { color: #616a5b; }
.source-line, .table-note, .stats-caveat, .budget-note { font-size: 12px; color: #5b6556; line-height: 1.7; }
.generator-bottom p { font-size: 13px; color: #5b6556; }
.odds-footnote { font-size: 12px; color: #bac7be; }
.odds-grid b { font-size: 15px; }
.odds-grid p { font-size: 13px; color: #b8c6bc; }
.odds-table { font-size: 15px; font-variant-numeric: tabular-nums; }
.odds-table caption { font-size: 17px; }
.odds-table thead { font-size: 11px; color: #535f4e; }
.odds-table th:last-child, .odds-table td:last-child { text-align: right; white-space: nowrap; }
.table-note { padding: 0 22px 18px; }
.stats-intro .micro-label { color: #c5d1b0; }
.stats-intro p { font-size: 15px; }
.stats-highlights span { font-size: 12px; }
.stats-links a { font-size: 13px; }
.strategy-card { display: flex; flex-direction: column; }
.strategy-card h3 { font-size: 21px; line-height: 1.25; }
.strategy-card p { font-size: 15px; }
.strategy-tag { align-self: flex-start; margin-top: auto; font-size: 11px; text-transform: none; }
.strategy-note { grid-template-columns: 100px minmax(0, 1fr) auto; gap: 22px; }
.strategy-note p { font-size: 13px; }
.strategy-note a { font-size: 12px; }
.budget-inputs > label { font-size: 14px; }
.range-label output, .result-meta { font-size: 12px; }
.budget-result p { font-size: 14px; }
.year-total { font-variant-numeric: tabular-nums; font-size: clamp(34px, 5vw, 64px); overflow-wrap: anywhere; letter-spacing: -.055em; }
.check-item h3 { font-size: 20px; }
.check-item p { font-size: 14px; color: #535e4f; }
.check-mark { width: 42px; height: 42px; }
.help-banner strong { font-size: 15px; }
.help-banner p, .help-banner > a { font-size: 13px; }
.source-links b { font-size: 15px; }
.source-links small { font-size: 12px; color: #5b6556; line-height: 1.55; }
.footer-notice span, .footer-notice p, .footer-legal a, .footer-bottom, .footer-bottom a { font-size: 12px; }
.footer-notice p { color: #c1cdc3; }
.footer-bottom { color: #bccabd; flex-wrap: wrap; }
.main-nav { gap: clamp(15px, 1.6vw, 25px); }
.main-nav a, .header-link { font-size: 12px; }
.site-header { gap: 24px; }
.ticker-track { gap: 10px 24px; padding-inline: 18px; font-size: 10px; animation: none; flex-wrap: wrap; white-space: normal; width: auto; justify-content: center; }

@media (max-width: 1100px) {
  .site-header .header-link { display: none; }
  .main-nav { margin-left: auto; }
  .stats-panel { grid-template-columns: 1fr; gap: 28px; }
  .stats-highlights { max-width: 520px; }
  .strategy-note { grid-template-columns: 90px minmax(0, 1fr); }
  .strategy-note a { grid-column: 2; justify-self: start; }
}

@media (max-width: 850px) {
  html { scroll-padding-top: 88px; }
  .site-header { height: 72px; }
  .main-nav { display: none; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; width: 44px; height: 44px; padding: 10px; margin-left: auto; cursor: pointer; }
  .menu-toggle span { width: 23px; height: 2px; background: var(--ink); display: block; }
  .mobile-nav:not([hidden]) { display: flex; position: fixed; top: 72px; left: 0; right: 0; z-index: 9; padding: 10px 22px 20px; background: var(--paper); flex-direction: column; border-bottom: 1px solid var(--line); box-shadow: 0 18px 28px #17232612; max-height: calc(100dvh - 72px); overflow-y: auto; }
  .mobile-nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
  .odds-layout { grid-template-columns: 1fr; }
  .hero { gap: 14px; }
  .hero-copy { padding-right: 0; }
  .hero h1 { font-size: clamp(42px, 6vw, 54px); }
  .hero-visual { height: 340px; }
  .hero-visual .visual-caption { left: 10%; font-size: 7px; }
  .hero-number { width: 56px; height: 56px; font-size: 21px; }
  .super-ball { width: 52px; height: 52px; }
  .ticker-track { justify-content: center; width: auto; }
}

@media (max-width: 650px) {
  html { scroll-padding-top: 82px; }
  .site-header { height: 66px; }
  .mobile-nav:not([hidden]) { top: 66px; max-height: calc(100dvh - 66px); }
  .hero { padding-top: 45px; padding-bottom: 62px; }
  .hero h1 { font-size: clamp(46px, 13vw, 64px); }
  .hero-intro { font-size: 16px; }
  .hero-note { font-size: 12px; }
  .hero-visual { width: min(100%, 390px); height: min(88vw, 370px); }
  .hero-number { width: clamp(48px, 15vw, 65px); height: clamp(48px, 15vw, 65px); }
  .hero-number-6 { left: 73%; }
  .visual-stamp { bottom: 11%; right: 15%; }
  .hero-bottom { gap: 16px; font-size: 9px; }
  .ticker-track { animation: none; width: auto; gap: 7px; }
  .ticker-track span { width: 100%; text-align: center; }
  .ticker-track b { display: none; }
  .eyebrow, .micro-label { font-size: 10px; letter-spacing: .06em; }
  .section-deck { font-size: 15px; max-width: none; }
  .button, .text-link { font-size: 13px; }
  .number-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
  .draw-number { width: 100%; min-width: 0; max-width: none; font-size: clamp(14px, 3.6vw, 18px); }
  .draw-separator { display: none; }
  .draw-number.draw-super { margin-left: 0; }
  .generator-top { gap: 12px; }
  .generator-top .micro-label { font-size: 9px; }
  .generator-bottom p { font-size: 12px; }
  .generator-bottom .button { width: 100%; min-height: 46px; }
  .odds-copy > p:not(.eyebrow) { font-size: 15px; }
  .odds-ratio span { font-size: 66px; }
  .odds-ratio strong { font-size: clamp(20px, 6vw, 30px); }
  .odds-footnote, .odds-grid p { font-size: 12px; }
  .odds-table { min-width: 0; font-size: 13px; table-layout: auto; }
  .odds-table caption { padding: 18px 12px; font-size: 15px; }
  .odds-table th, .odds-table td { padding: 12px 10px; }
  .odds-table thead { font-size: 10px; letter-spacing: 0; text-transform: none; }
  .odds-table tbody th { width: auto; }
  .odds-table thead th:last-child { white-space: normal; }
  .table-note { padding: 0 12px 16px; font-size: 12px; }
  .stats-intro p { font-size: 14px; }
  .stats-highlights span { font-size: 11px; }
  .stats-links a, .stats-caveat { font-size: 12px; }
  .strategy-card h3 { font-size: 20px; }
  .strategy-card p { font-size: 15px; }
  .strategy-tag { font-size: 11px; }
  .strategy-note { grid-template-columns: 1fr; gap: 10px; }
  .strategy-note a { grid-column: 1; white-space: normal; }
  .budget-inputs > label { font-size: 14px; }
  .budget-note, .range-label output, .result-meta { font-size: 12px; }
  .range-label { flex-wrap: wrap; gap: 8px; }
  .year-total { font-size: clamp(30px, 10vw, 52px); }
  .check-item { grid-template-columns: 24px minmax(0, 1fr) 42px; padding: 22px 0; }
  .check-item h3 { font-size: 18px; }
  .check-item p { font-size: 14px; }
  .help-banner strong { font-size: 14px; }
  .help-banner p, .help-banner > a { font-size: 12px; }
  .help-banner > div { min-width: 160px; }
  .source-links b { font-size: 14px; }
  .source-links small { font-size: 12px; }
  .footer-main > p { font-size: 13px; }
  .footer-bottom, .footer-bottom a { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}
