/* Buffett Accounts, buffettaccounts.com — REVAMP A + RWB.
   The Annual Report editorial skin (cream paper, Playfair Display,
   Barlow Condensed labels, thin rules and double rules) with the
   red-white-blue color format from the v3 RWB mock: dusty navy
   #274b6d header and hero, cream paper #f7f1dd, muted brick red
   #8f2d2d used sparingly (Berkshire arc, card/petition top rules,
   callout rules, glossary links, focus rings). No gradients, no hard
   shadows, no Alfa Slab One, no Bungee. No brass/gold anywhere.
   Class names and markup are unchanged from live, so the calculator
   markup and buffett-accounts.js work unchanged. */
@font-face{font-family:"Playfair Display";src:url("fonts/playfair-display-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Playfair Display";src:url("fonts/playfair-display-700.woff2") format("woff2");font-weight:900;font-style:normal;font-display:swap}
@font-face{font-family:"Playfair Display";src:url("fonts/playfair-display-700-italic.woff2") format("woff2");font-weight:700;font-style:italic;font-display:swap}
@font-face{font-family:"Barlow Condensed";src:url("fonts/barlow-condensed-500.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Barlow Condensed";src:url("fonts/barlow-condensed-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Barlow Condensed";src:url("fonts/barlow-condensed-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
:root{
  --navy-0:#16283a; --navy-1:#274b6d; --navy-2:#31597d; --navy-3:#3d6a8f;
  --red:#8f2d2d; --red-deep:#732323; --red-bright:#a33a3a;
  --cream:#f7eed3; --cream-hi:#fdf6dd; --paper:#f7f1dd; --card:#fffdf6;
  --ink:#1c2b3a; --ink-soft:#33465a; --muted:#5a6b7c; --faint:#7c8a99;
  --line:#d8c9a8; --tan:#c98a4b;
  --poster:"Playfair Display",Georgia,"Times New Roman",serif;
  --fig:"Playfair Display",Georgia,"Times New Roman",serif;
  --disp:"Barlow Condensed","Arial Narrow","Helvetica Neue",sans-serif;
  --sans:Georgia,"Times New Roman",serif;
}
*{box-sizing:border-box;-webkit-text-size-adjust:100%}
html,body{max-width:100%;overflow-x:hidden}
body{margin:0;background-color:var(--paper);color:var(--ink);font:17px/1.6 var(--sans);-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums}
a{color:#732323}
a:focus-visible{outline:3px solid #8f2d2d;outline-offset:2px;border-radius:6px}
h1,h2,h3{color:#274b6d}
.num{font-variant-numeric:tabular-nums;font-weight:600}
.muted{color:var(--faint)}

/* ---------- site header ---------- */
header{background:#274b6d;color:#f7eed3;padding:20px 20px 18px;border-bottom:4px double #f7eed3}
header:focus-within{outline:none}
.hrow{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.hrow a.brand{display:block;padding:0}
.brand-logo{display:block;width:min(560px,100%);height:auto}
.hrow a.brand:focus-visible{outline:3px solid var(--cream-hi);outline-offset:2px}
.hrow span.tag{color:var(--cream-hi);font-family:var(--disp);font-size:16px;font-weight:600;letter-spacing:.14em;text-transform:uppercase}
.hnav{display:flex;gap:6px;overflow-x:auto;margin:10px -8px 0;padding:0 8px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.hnav::-webkit-scrollbar{display:none}
.hnav a{color:#f7eed3;text-decoration:none;font-family:var(--disp);font-size:17px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;white-space:nowrap;padding:12px 14px;border-radius:0;min-height:44px;line-height:1.2}
.hnav a:hover{background:rgba(247,238,211,.16);color:#fdf6dd}
.hnav a:focus-visible{outline:3px solid var(--cream-hi);outline-offset:2px}
/* Desktop: header content shares the main column (1080px, centered), so the
   logo, subtitle, tag and nav line up with the hero and directory below
   instead of stretching full-width while the page sits narrower. The navy
   band itself stays full-bleed. Placed after the .hnav rules so its auto
   margins win over the base -8px side margins. */
.hrow,.hnav{max-width:1080px;margin-left:auto;margin-right:auto}
a.skiplink{position:absolute;top:-48px;left:8px;background:#16283a;color:#f7eed3;text-decoration:none;padding:10px 14px;border:0;border-radius:0;z-index:1000}
a.skiplink:focus{top:8px;border:1px solid #f7eed3}

main{max-width:1080px;margin:0 auto;padding:28px 20px 64px}
footer{text-align:center;padding:26px 20px 40px;font-size:13px;color:var(--faint);border-top:3px double #274b6d}

/* ---------- hero ---------- */
.hero{margin:-28px -20px 8px;padding:36px 20px 16px;background-color:#274b6d;color:#f7eed3;border-bottom:4px double #f7eed3}
.eyebrow{color:#f7eed3;opacity:.9;font-family:var(--disp);font-size:15px;font-weight:700;letter-spacing:.22em;text-transform:uppercase;margin:0 0 12px}
.hero h1{color:#f7eed3;font-family:var(--poster);font-weight:700;font-size:clamp(36px,5.6vw,60px);letter-spacing:0;line-height:1.05;margin:0;max-width:22ch}
.hero-sub{color:var(--ink);max-width:68ch;margin:0 0 16px;font-size:clamp(16px,2vw,19px)}
.hero-petition{margin:0 0 16px}.hero-petition a{color:#8f2d2d;font-weight:800;text-decoration:underline;text-underline-offset:3px}
.hero-note{margin:0 0 20px}
.badge{display:inline-block;background:#f7eed3;color:#274b6d;border:1px solid #16283a;border-radius:0;padding:7px 14px;font-family:var(--disp);font-size:16px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.toc{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 4px}
.toc a{display:inline-block;background:transparent;border:1px solid #274b6d;border-radius:0;padding:8px 14px;font-family:var(--disp);font-size:16px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#274b6d;text-decoration:none;min-height:36px}
.toc a:hover{border-color:#8f2d2d;color:#732323;background:#f7eed3}

/* ---------- hero chart: the compounding arc, gold-framed plate ---------- */
.hero-chart{margin:26px 0 18px;background:#f7eed3;border:1px solid #274b6d;border-radius:0;padding:18px 18px 12px}
.hero-chart svg{display:block;width:100%;height:auto}
.hero-chart figcaption{color:#33465a;font-size:15px;font-weight:600;line-height:1.5;padding:8px 4px 4px}
.hero-chart figcaption::before{content:"THE ARC";display:block;color:#732323;font-family:var(--disp);font-size:13px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;margin-bottom:4px}
.hero-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 0 20px}
.hs{background:#fffdf6;border:1px solid #274b6d;border-radius:0;padding:18px 20px}
.hs-v{font-family:var(--fig);font-weight:700;font-size:clamp(28px,4vw,40px);line-height:1.05;color:#274b6d}
.hs-s{font-size:14px;font-weight:600;margin-top:6px;line-height:1.45;color:var(--muted)}
.hs-gold{background:var(--cream)}
.hs-red{background:#8f2d2d}
.hs-red .hs-v{color:#f7eed3}
.hs-red .hs-s{color:#f7eed3}
.hs-white{background:#31597d}
.hs-white .hs-v{color:#f7eed3}
.hs-white .hs-s{color:#f7eed3;opacity:.9}

/* ---------- where the idea came from ---------- */
.origin{background:#fffdf6;color:var(--ink);border:1px solid #274b6d;border-radius:0;padding:20px 22px;margin:24px 0}
.origin-label{font-family:var(--disp);font-size:14px;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:#732323;margin:0 0 10px}
.origin blockquote{margin:0}
.origin blockquote p{font-family:var(--poster);font-weight:700;font-size:clamp(19px,2.4vw,23px);line-height:1.45;color:#1c2b3a;margin:0 0 10px}
.origin-attr{font-size:14.5px;color:var(--muted);margin:0}
.origin-attr a{color:#732323}

/* ---------- legacy ---------- */
h1.big{font-family:var(--poster);font-weight:700;font-size:clamp(30px,4vw,46px);letter-spacing:0;line-height:1.05;margin:6px 0 10px}
.subline{color:var(--muted);max-width:76ch;margin:0 0 10px;font-size:clamp(16px,2vw,19px)}
.signup{margin:0 0 16px;font-size:18px}
.signup a{font-weight:800;text-decoration:underline;text-underline-offset:3px}
.subline b{color:#274b6d}
.crosslink{font-size:15px;color:var(--faint);margin:0 0 14px}
.herostat{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0 12px}
.herostat>div{background:#fffdf6;border:1px solid #274b6d;border-radius:0;padding:16px 18px}
.stat-v{font-family:var(--poster);font-weight:700;font-size:clamp(26px,2.8vw,33px);letter-spacing:0;line-height:1.1;color:#274b6d}
.stat-s{font-size:13.5px;color:var(--muted);margin-top:4px;line-height:1.45}
.herostat.legacy>div{background:#274b6d;border:1px solid #16283a}
.herostat.legacy .stat-v{color:#f7eed3}
.herostat.legacy .stat-s{color:#f7eed3;opacity:.85}

/* ---------- the legend, minimized by default ---------- */
.legend-details{border-top:3px double #8f2d2d;margin-top:10px}
.legend-summary{cursor:pointer;list-style:none;display:block;padding:22px 0 14px}
.legend-summary::-webkit-details-marker{display:none}
.legend-summary:focus-visible{outline:3px solid #8f2d2d;outline-offset:2px;border-radius:6px}
.legend-top{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.legend-summary h2.sec.legend-title{margin:0;padding-top:0;border-top:0}
.legend-toggle{display:inline-block;background:#274b6d;color:#f7eed3;border:1px solid #16283a;border-radius:0;padding:9px 18px;font-family:var(--disp);font-size:16px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.legend-summary:hover .legend-toggle{background:#31597d}
.legend-details[open ] .toggle-closed{display:none}
.legend-details:not([open ]) .toggle-open{display:none}
.legend-teaser{display:block;color:var(--faint);font-size:16px;margin-top:8px;max-width:72ch}
.legend-body{padding-top:12px}

/* ---------- a few final thoughts (verbatim Buffett quote; its em dashes are his own) ---------- */
.final-thoughts{background:#fffdf6;color:var(--ink);border:1px solid #274b6d;border-radius:0;padding:20px 22px;margin:18px 0 6px}
.final-thoughts h3{margin:0 0 12px;font-family:var(--disp);font-size:15px;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:#732323}
.final-thoughts p{font-size:clamp(16px,2vw,18px);line-height:1.6;color:var(--ink);margin:0 0 12px}
.final-thoughts footer{font-size:14.5px;color:var(--muted);margin-top:4px;text-align:left;padding:0;border-top:0}
.final-thoughts .src{font-size:14.5px;color:var(--muted);margin:0 0 12px}
.legend-hero-row{display:flex;gap:20px;align-items:flex-start}
.legend-portrait{flex:none;width:300px;max-width:38%;height:auto;border-radius:0;border:1px solid #274b6d;display:block}
.legend-summary-text{flex:1;min-width:0}
@media (max-width:560px){
  .legend-hero-row{flex-direction:column;gap:14px}
  .legend-portrait{width:100%;max-width:360px;margin:0 auto}
}

/* ---------- account stat blocks: plain white panels, navy figures ---------- */
.herostat:not(.legacy)>div:nth-child(1){background:#f7eed3;border:1px solid #274b6d}
.herostat:not(.legacy)>div:nth-child(1) .stat-v{color:#274b6d}
.herostat:not(.legacy)>div:nth-child(1) .stat-s{color:#5a6b7c}
.herostat:not(.legacy)>div:nth-child(2){background:#274b6d;border:1px solid #16283a}
.herostat:not(.legacy)>div:nth-child(2) .stat-v{color:#f7eed3}
.herostat:not(.legacy)>div:nth-child(2) .stat-s{color:#f7eed3;opacity:.88}
.herostat:not(.legacy)>div:nth-child(3){background:#8f2d2d;border:1px solid #732323}
.herostat:not(.legacy)>div:nth-child(3) .stat-v{color:#f7eed3}
.herostat:not(.legacy)>div:nth-child(3) .stat-s{color:#f7eed3}
.herostat:not(.legacy)>div:nth-child(4){background:#fffdf6;border:1px solid #274b6d}
.herostat:not(.legacy)>div:nth-child(4) .stat-v{color:#732323}
.herostat:not(.legacy)>div:nth-child(4) .stat-s{color:#5a6b7c}

/* ---------- explainer ---------- */
h2.sec{font-family:var(--poster);font-weight:700;font-size:clamp(24px,3.4vw,34px);letter-spacing:0;line-height:1.05;margin:34px 0 8px;padding-top:22px;border-top:3px double #8f2d2d}
h2.sec:first-of-type{margin-top:10px}
h3{font-family:var(--poster);font-weight:700;font-size:19px;letter-spacing:0;margin:0 0 6px}
.lede{font-size:17px;max-width:72ch;color:var(--ink-soft)}
p{margin:0 0 10px}
ul.tight,ol.tight{margin:6px 0 12px;padding-left:22px}
ul.tight li,ol.tight li{margin-bottom:5px}
.src{font-size:12.5px;color:var(--faint);margin-top:10px}
.src a{color:var(--faint)}
.flag{display:inline-block;font-family:var(--disp);font-size:12.5px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;background:#8f2d2d;color:#f7eed3;border:1px solid #732323;border-radius:0;padding:2px 9px 1px;margin-left:8px;vertical-align:2px}
.callout{background:#fffdf6;border:1px solid var(--line);border-left:3px solid #8f2d2d;border-radius:0;padding:16px 20px;margin:16px 0}
.callout.teal{border-left-color:#8f2d2d}
.callout p:last-child{margin-bottom:0}

/* ---------- explainer toggles ---------- */
.know-hint{font-size:13.5px;color:var(--faint);margin:0 0 8px}
.know-more{margin:0 0 4px}
.know-more summary{cursor:pointer;list-style:none;display:flex;align-items:baseline;gap:10px;padding:10px 0}
.know-more summary::-webkit-details-marker{display:none}
.know-more summary::before{content:"+";flex:none;font-size:19px;font-weight:800;line-height:1;color:#732323}
.know-more[open ] summary::before{content:"\2013"}
.know-more summary h3{margin:0;font-size:18px}
.know-more summary:hover h3{color:#732323}
.know-more summary:focus-visible{outline:3px solid #8f2d2d;outline-offset:2px;border-radius:6px}

/* ---------- tables ---------- */
table{border-collapse:collapse;width:100%;font-size:14.5px}
th,td{padding:8px 10px;text-align:left;border-bottom:1px solid var(--line);color:var(--ink)}
th{font-family:var(--disp);font-size:13.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--faint)}
td:first-child,th:first-child{text-align:left}
tr:last-child td{border-bottom:none}
.cap-table td:nth-child(2),.cap-table th:nth-child(2){text-align:right}
.ladder td:nth-child(n+2),.ladder th:nth-child(n+2){text-align:right}
.scrollx{overflow-x:auto}

/* ---------- calculator cards ---------- */
.grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.card{background:#fffdf6;border:1px solid #274b6d;border-top:5px solid #8f2d2d;border-radius:0;padding:22px 24px}
.card h3{font-size:19px}
.card .ct{font-family:var(--disp);font-size:13.5px;letter-spacing:.16em;font-weight:700;color:#732323;text-transform:uppercase}
.cardhead{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:6px}
.cardhead .sub2{font-family:var(--disp);font-size:13px;letter-spacing:.1em;color:var(--faint);font-weight:600;padding-top:4px;white-space:nowrap;text-transform:uppercase}
.cols11{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
.cols11>*,.cols111>*{min-width:0}
.cols111{display:grid;grid-template-columns:1fr 1fr 1fr;gap:16px;align-items:start}
@media (max-width:960px){.cols11,.cols111{grid-template-columns:1fr}}
.ctl{margin-bottom:14px}
.ctl label{display:block;font-size:13px;font-weight:700;color:var(--ink);margin-bottom:4px}
.ctl label .val{float:right;color:#732323;font-weight:700}
.ctl input[type=number],.ctl select{width:100%;font:inherit;font-size:15px;padding:9px 10px;border:1px solid #c9b48a;border-radius:0;background:#fffdf4;color:var(--ink);min-height:44px}
.ctl input[type=number]:focus,.ctl select:focus{border-color:#8f2d2d;outline:none;box-shadow:0 0 0 3px rgba(143,45,45,.25)}
.ctl input[type=range]{width:100%;accent-color:#8f2d2d}
.ctl input[type=checkbox]{accent-color:#8f2d2d;width:17px;height:17px}
.ctl .hint{font-size:12.5px;color:var(--faint);margin-top:3px}
.out{border-top:1px solid var(--line);margin-top:6px;padding-top:12px}
.outrow{display:flex;justify-content:space-between;gap:12px;padding:5px 0;font-size:15px}
.outrow .k{color:var(--muted)}
.outrow .v{font-weight:700;text-align:right;white-space:nowrap;color:#274b6d}
.outrow.big .v{font-family:var(--fig);font-weight:700;font-size:28px;letter-spacing:0;color:#274b6d}
.outrow.good .v{color:#274b6d}
.outrow.bad .v{color:var(--red)}
.slicebar{display:flex;height:26px;border:1px solid #274b6d;border-radius:0;overflow:hidden;margin:8px 0 4px}
.slicebar div{height:100%}
.slice-free{background:#274b6d}
.slice-child{background:#c98a4b}
.slice-parent{background:#8f2d2d}
.legend{display:flex;gap:16px;flex-wrap:wrap;font-size:12.5px;color:var(--faint);margin-bottom:6px}
.legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:5px;vertical-align:-1px}
.ladder{max-height:340px;overflow-y:auto}
.assume{font-size:13px;color:var(--faint);margin-top:10px}
.assume b{color:#274b6d}
.foot{margin-top:40px;padding-top:16px;border-top:3px double #274b6d;font-size:13px;color:var(--faint);line-height:1.65}

@media (max-width:860px){
  .herostat{grid-template-columns:1fr 1fr}
}
@media (max-width:560px){
  .hero{margin:-20px -16px 8px;padding:20px 16px 12px}
  .hero h1{font-size:28px}
  .brand-logo{width:min(300px,100%)}
  .brandsub{font-size:17px;line-height:1.3}
  .hnav a{padding:10px 8px;min-height:40px}
  main{padding:20px 16px 56px}
  .card{padding:18px}
  .outrow.big .v{font-size:24px}
  .herostat{grid-template-columns:1fr}
  .hero-stats{grid-template-columns:1fr}
  .hero-chart{padding:12px 10px 8px}
  .hero-chart figcaption{font-size:14px}
  .stat-v{font-size:28px}
  .hrow span.tag{display:none}
  header{padding:16px 16px 14px}
  /* Narrow phones: nav is one row of four (grid, stable regardless of font
     state, so the header height is identical before and after fonts load).
     Links keep white-space:nowrap so each stays whole; the font is sized
     so all four fit at 390px and 360px. */
  .hnav{flex-wrap:wrap;overflow-x:visible;margin:10px 0 0;padding:0}
}

/* ---------- petition ---------- */
.petition{background:#fffdf6;border:1px solid #274b6d;border-top:6px solid #8f2d2d;border-radius:0;padding:26px 28px;margin:34px 0}
.petition h2{font-family:var(--poster);font-weight:700;font-size:clamp(22px,3vw,30px);letter-spacing:0;margin:0 0 10px;color:#274b6d}
.petition-statement{font-size:19px;font-weight:600;color:var(--ink);max-width:64ch;line-height:1.5}
.petition-note{color:var(--muted);max-width:72ch}
.petition-embed{margin:18px 0 6px;border:1px dashed #274b6d;border-radius:0;background:#f7eed3;padding:20px 22px}
.embed-empty{color:var(--faint);margin:0}
.petition-cta{margin:16px 0 6px;border-left:3px solid #8f2d2d;padding-left:12px}
.petition-signup{margin:14px 0 0}
.btn-gold{display:inline-block;background:#274b6d;color:#f7eed3;border:1px solid #16283a;border-radius:0;padding:12px 26px;font-family:var(--disp);font-size:16px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;cursor:pointer;min-height:48px;text-decoration:none}
.btn-gold:hover{background:#31597d}
.btn-gold:focus-visible{outline:3px solid #8f2d2d;outline-offset:2px}
.petition-proto{margin-top:16px}
@media (max-width:560px){
  .petition{padding:20px}
}

/* ---------- hero chart controls: legend + log toggle (v2.3) ---------- */
.chart-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:26px 0 10px}
.chart-controls + .hero-chart{margin-top:0}
.chart-legend{display:flex;gap:18px;flex-wrap:wrap}
.lg{color:#274b6d;font-family:var(--disp);font-size:15px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;display:inline-flex;align-items:center;gap:8px}
.sw{display:inline-block;width:24px;height:4px;border-radius:2px}
.sw-gold{background:#8f2d2d}
.sw-white{background:#274b6d}
.scale-toggle{background:#f7eed3;color:#274b6d;border:1px solid #274b6d;border-radius:0;padding:8px 16px;font-family:var(--disp);font-size:14px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;cursor:pointer}
.scale-toggle:hover{background:#fffdf6}
.scale-toggle:focus-visible{outline:3px solid #8f2d2d;outline-offset:2px}

/* ---------- header subtitle (static; the logo is an image now) ----------
   The subtitle is a full-width sibling under the brand row so it fits three
   lines on a 360px phone and one line on desktop. */
.hrow a.brand{flex:1 1 auto;min-width:0}
.brandsub{flex:1 1 100%;font-family:var(--disp);font-size:22px;font-weight:600;letter-spacing:.08em;color:var(--cream-hi);line-height:1.35;padding:4px 2px 0}
@media (max-width:560px){.brandsub{font-size:19px}}

/* ---------- v2.9: petition outline + earned-income notes ---------- */
.petition-what{color:var(--ink-soft);font-size:15.5px}
.hero-petition .petition-what{display:inline}
.petition .petition-what{color:var(--ink-soft);max-width:72ch;margin:0 0 10px}
.earn-note p{font-size:16px}

/* ---------- v2.9: tap-for-definition glossary ---------- */
.gloss{appearance:none;background:none;border:0;padding:0 1px;font:inherit;color:#732323;border-bottom:1.5px dotted #732323;cursor:pointer;border-radius:3px}
.gloss:hover{color:#274b6d}
.gloss:focus-visible{outline:3px solid #8f2d2d;outline-offset:2px}
.gloss[aria-expanded="true"]{color:#274b6d;background:rgba(143,45,45,.12)}
#gloss-pop{position:fixed;z-index:2000;width:min(340px,calc(100vw - 24px));background:#f7eed3;color:var(--ink);border:1px solid #274b6d;border-radius:0;padding:16px 18px 14px}
#gloss-pop .gp-term{font-family:var(--disp);font-size:15px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#732323;margin:0 0 6px;padding-right:44px}
#gloss-pop .gp-def{font-size:15.5px;line-height:1.55;color:var(--ink);margin:0}
#gloss-pop .gp-close{position:absolute;top:8px;right:8px;width:44px;height:44px;background:#8f2d2d;color:#f7eed3;border:1px solid #16283a;font-size:20px;font-weight:700;cursor:pointer;border-radius:0;line-height:1}
#gloss-pop .gp-close:hover{background:#a33a3a}
#gloss-pop .gp-close:focus-visible{outline:3px solid #16283a;outline-offset:2px}
/* Glossary buttons on the white live box use the same navy as elsewhere. */
.live-box .gloss{color:#732323;border-bottom-color:#732323}
.live-box .gloss:hover{color:#274b6d}
.live-box .gloss[aria-expanded="true"]{color:#274b6d;background:rgba(143,45,45,.12)}

/* ---------- v2.9: live strategy numbers in a light box ----------
   White plate with a 1px ink border. The box holds the adjustable numbers
   plus the line saying they are calculated from the entries above. Static
   figures never go in. */
.live-box{background:#fffdf6;color:var(--ink);border:1px solid #274b6d;border-radius:0;padding:20px 22px;margin:18px 0 22px}
.live-box-line{font-size:16.5px;line-height:1.55;color:var(--ink);margin:0 0 14px}
.live-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 20px;margin:0}
.live-cell{display:flex;flex-direction:column;gap:2px;border-top:1px solid rgba(39,75,109,.25);padding-top:8px;min-width:0}
.live-k{font-family:var(--disp);font-size:13px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:#5a6b7c}
.live-v{font-size:17px;font-weight:700;color:#274b6d}
.live-num{font-weight:700}
@media (max-width:560px){
  .live-box{padding:16px 18px}
  .live-v{font-size:16px}
  /* Phones: header nav is one row of four in an explicit grid, stable
     regardless of font state, so the header height is identical before
     and after fonts load. */
  .hnav{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;overflow:visible;margin:10px 0 0;padding:0}
  .hnav a{display:flex;align-items:center;justify-content:center;text-align:center;font-size:13px;letter-spacing:.05em;padding:12px 2px;min-height:44px}
  /* Tables: tighter on phones, and wrappers contain horizontal scrolling
     so a swipe on a table never moves the page. */
  table{font-size:13.5px}
  th,td{padding:6px 8px}
}
.scrollx,.ladder{overscroll-behavior-x:contain}

/* Glossary buttons on the navy hero stay cream (RWB). */
.hero .gloss{color:#fdf6dd;border-bottom-color:#fdf6dd}
.hero .gloss:hover{color:#ffffff}
.hero .gloss[aria-expanded="true"]{color:#ffffff;background:rgba(247,238,211,.18)}

/* ---------- one-screen directory: the whole site, mapped in four tiles ----------
   Now its own band on the off-white paper, directly below the navy hero:
   the hero ends, the directory begins. All four tiles share ONE treatment —
   white plates, navy text, brick-red top rule. No more different-colored
   tiles. Desktop: four across. Phones: two columns, two rows — the sign-up
   tile sits next to the legend tile. */
.directory{margin:10px 0 4px}
.dir-label{color:#274b6d;font-family:var(--disp);font-size:14px;font-weight:700;letter-spacing:.22em;text-transform:uppercase;margin:0 0 10px}
.dir-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.tile{display:block;background:#fffdf6;border:1px solid #274b6d;border-top:3px solid #8f2d2d;border-radius:0;padding:14px 14px 12px;color:#274b6d;text-decoration:none;min-height:118px}
.tile:hover{background:#f7eed3;border-color:#274b6d;color:#274b6d}
.tile:focus-visible{outline:3px solid #8f2d2d;outline-offset:2px}
.tile-num{display:block;font-family:var(--disp);font-size:13px;font-weight:700;letter-spacing:.18em;color:#732323;margin-bottom:4px}
.tile-title{display:block;font-family:var(--poster);font-weight:700;font-size:19px;line-height:1.15;color:#274b6d;margin-bottom:5px}
.tile-desc{display:block;font-size:13.5px;line-height:1.45;color:#33465a}
@media (max-width:860px){
  .dir-grid{grid-template-columns:1fr 1fr}
  .tile{min-height:0;padding:8px 12px}
  .tile-num{font-size:12px;margin-bottom:2px}
  .tile-title{font-size:17px}
  .tile-desc{font-size:12.5px;line-height:1.4}
}

/* ---------- calculators collapsed: strong headers, one-click open ----------
   Each calculator is a <details> whose <summary> is its full cardhead
   (Calculator N label + title + 2026 RULES) plus a one-line description.
   A brick-red + / - marker at the far right says it opens. Closed by
   default; one click opens, one click closes again. */
.calc-more summary{cursor:pointer;list-style:none}
.calc-more summary::-webkit-details-marker{display:none}
/* The header is a grid: title block (wraps) + 2026 RULES + marker. The two
   right columns are fixed to their content, so the 2026 RULES labels line
   up at the same x in every card, closed or open. */
.calc-more .cardhead{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:start}
.calc-more summary h3{font-size:23px;font-weight:900}
.calc-more summary .ct{font-size:15px}
.calc-more summary::after{content:"+";width:28px;text-align:center;font-size:30px;font-weight:800;line-height:1;color:#8f2d2d;padding-top:2px}
.calc-more[open ] summary::after{content:"\2013"}
.calc-more summary:hover h3{color:#732323}
.calc-more summary:focus-visible{outline:3px solid #8f2d2d;outline-offset:2px}
.calc-desc{margin:6px 0 0;font-size:15px;line-height:1.45;color:#33465a}
