/* Financial Freaks — site-v3130.css (v3.13.0 Workbench redesign). Base rules carried from the v3.12.3 stylesheet with the palette remapped by build_v3130_css.py; the v3.13 layer is appended at the end. */
/* Financial Freaks — site-v24.css (v2.4.2: dark mode as a header toggle — light palette stays the default identity; carries v2.4.1) */
:root{
  --ink:#0e1726; --ink-soft:#4f5b6b; --bg:#f4f5f7; --surface:#ffffff; --surface-muted:#eef1f5;
  --border:#dde1e7; --accent:#d7372d; --accent-dark:#b42a21; --accent-deep:#8f1f18; --dark:#0e1726; --dark-2:#162033;
  --gold:#c98a2d; --green:#1d7a4f; --radius:14px; --max:1120px;
  --shadow:0 8px 28px rgba(14,23,38,.10);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--ink);line-height:1.65;font-size:17px}
a{color:var(--accent-dark)} a:hover{text-decoration-thickness:2px}
img{max-width:100%}
.wrap{max-width:var(--max);margin:0 auto;padding:0 20px}
/* Header */
.site-header{background:#fff;border-bottom:1px solid var(--border);position:sticky;top:0;z-index:50}
.header-in{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 20px;max-width:var(--max);margin:0 auto}
.brand{display:flex;align-items:center;text-decoration:none}
.brand img{height:44px;width:252px;object-fit:contain;object-position:left center}
.main-nav{display:flex;gap:4px;flex-wrap:wrap}
.main-nav a{color:var(--ink);text-decoration:none;font-size:15px;font-weight:600;padding:8px 10px;border-radius:8px}
.main-nav a:hover{background:var(--surface-muted);color:var(--accent-dark)}
.nav-toggle{display:none;background:none;border:1px solid var(--border);border-radius:8px;padding:8px 12px;font-size:20px;cursor:pointer;color:var(--ink)}
.nav-toggle svg{display:block}
.nav-toggle .ico-close{display:none}
.nav-toggle[aria-expanded="true"] .ico-open{display:none}
.nav-toggle[aria-expanded="true"] .ico-close{display:block}
@media(max-width:900px){
  .nav-toggle{display:block}
  .main-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;flex-direction:column;padding:0;border-bottom:1px solid var(--border);box-shadow:0 18px 34px rgba(14,23,38,.16);max-height:calc(100vh - 60px);max-height:calc(100dvh - 60px);overflow-y:auto}
  .main-nav.open{display:flex}
  .brand img{height:38px;width:218px}
}
/* Hero */
.hero{background-color:#0e1726;background-image:radial-gradient(ellipse at 20% 10%,rgba(201,138,45,.25),transparent 55%);color:#fff;padding:72px 0 64px}
.hero h1{font-size:clamp(34px,5.4vw,58px);line-height:1.08;margin:0 0 18px;letter-spacing:-.5px;text-wrap:balance}
.hero .sub{font-size:clamp(17px,2.2vw,21px);color:#d6deea;max-width:720px;margin:0 0 28px}
.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:13px;font-weight:700;color:var(--gold);margin:0 0 14px}
.btn{display:inline-block;background:var(--accent-dark);color:#fff!important;text-decoration:none;font-weight:700;padding:13px 24px;border-radius:10px;border:none;cursor:pointer;font-size:16px}
.btn:hover{background:var(--accent-deep)}
.btn.secondary{background:transparent;border:2px solid #fff;color:#fff!important}
.btn.dark{background:var(--ink)}
.hero-ctas{display:flex;gap:12px;flex-wrap:wrap}
.hero-note{margin-top:18px;font-size:14px;color:#aab5c4}
/* Sections & cards */
.section{padding:52px 0}
.section.alt{background:var(--surface-muted)}
.section.dark{background:var(--dark);color:#e6eaf0}
.section.dark a{color:#8ccbff}
.section h2{font-size:30px;line-height:1.2;margin:0 0 12px}
.section .lede{color:var(--ink-soft);max-width:760px}
.section.dark .lede{color:#aab5c4}
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:18px;margin-top:26px}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:22px;box-shadow:0 2px 10px rgba(14,23,38,.04)}
.section.dark .card{background:var(--dark-2);border-color:#243042;color:#e6eaf0}
.card h3{margin:0 0 8px;font-size:19px;line-height:1.3}
.card p{margin:0 0 10px;color:var(--ink-soft);font-size:15.5px}
.section.dark .card p{color:#aab5c4}
.card a{font-weight:700;text-decoration:none}
.tag{display:inline-block;background:var(--surface-muted);border:1px solid var(--border);color:var(--ink-soft);font-size:12.5px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;padding:3px 9px;border-radius:99px;margin-bottom:10px}
.section.dark .tag{background:#1a2434;color:#c9d3e0;border-color:#2a3850}
/* Article */
.article-hero{padding:44px 0 8px}
.article-hero h1{font-size:clamp(30px,4.4vw,44px);line-height:1.15;margin:8px 0 12px}
.byline{color:var(--ink-soft);font-size:14.5px;margin-bottom:6px}
.article-body{max-width:780px}
.article-body h2{font-size:26px;margin:34px 0 10px;line-height:1.25}
.article-body h3{font-size:20px;margin:24px 0 8px}
.article-body table,.tool-wrap table{width:100%;border-collapse:collapse;margin:16px 0;font-size:15.5px;display:block;overflow-x:auto}
/* The SS estimator's earnings table sits outside .tool-wrap (its panel follows the wrap),
   so it needs its own scroll container: at 390px the table runs ~10px past its container
   and the last column is otherwise unreachable. */
#ss-est-table-wrap{overflow-x:auto}
.article-body th,.article-body td,.tool-wrap th,.tool-wrap td{border:1px solid var(--border);padding:9px 11px;text-align:left;background:#fff}
.article-body th,.tool-wrap th{background:var(--surface-muted)}
@media (max-width:640px){.article-body table,.tool-wrap table{font-size:14.5px}.article-body th,.article-body td,.tool-wrap th,.tool-wrap td{padding:8px 8px}}
.callout{background:#fff;border:1px solid var(--border);border-left:5px solid var(--accent);border-radius:10px;padding:18px 20px;margin:22px 0}
.callout h3{margin-top:0}
.mathbox{background:var(--dark);color:#e6eaf0;border-radius:10px;padding:18px 20px;margin:22px 0;font-size:15.5px;overflow-x:auto}
.mathbox code{color:#ffd9a8}
.disclaimer{font-size:14px;color:var(--ink-soft);border-top:1px solid var(--border);margin-top:36px;padding-top:16px}
.refs{font-size:15px} .refs li{margin-bottom:6px}
/* Tools */
.tool-wrap{max-width:900px}
.tool-panel{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:22px;margin:20px 0;box-shadow:0 2px 10px rgba(14,23,38,.04)}
.tool-panel h3{margin-top:0}
.field-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
label.fl{display:block;font-size:14px;font-weight:600;margin-bottom:10px}
label.fl input,label.fl select{width:100%;padding:9px 10px;border:1px solid var(--border);border-radius:8px;font-size:15px;margin-top:4px;background:#fff;color:var(--ink)}
label.ck{display:flex;gap:8px;align-items:flex-start;font-size:14.5px;font-weight:600;margin-bottom:10px}
label.ck input{margin-top:4px;width:18px;height:18px}
.result-box{background:var(--surface-muted);border:1px solid var(--border);border-radius:var(--radius);padding:22px;margin:20px 0}
.winner{background:#fdeeec;border:2px solid var(--accent);border-radius:var(--radius);padding:20px;margin:18px 0}
.trap{background:#fff7e6;border:1px solid #e8c877;border-left:5px solid var(--gold);border-radius:8px;padding:12px 16px;margin:10px 0;font-size:15px}
.credit-row{display:grid;grid-template-columns:1fr 110px 170px;gap:10px;align-items:center;margin-bottom:8px}
.credit-row input,.credit-row select{padding:8px;border:1px solid var(--border);border-radius:8px;font-size:15px;width:100%}
@media(max-width:640px){.credit-row{grid-template-columns:1fr}}
/* Search */
.search-input{width:100%;padding:13px 16px;font-size:17px;border:1px solid var(--border);border-radius:10px;background:#fff;color:var(--ink)}
.search-results{margin-top:20px}
/* Footer */
.site-footer{background:var(--dark);color:#dfe5ee;padding:30px 0 22px;margin-top:0}
.site-footer a{color:#dfe5ee;text-decoration:none;font-size:15px}
.site-footer a:hover{text-decoration:underline}
.footer-top{display:flex;align-items:center;gap:26px;flex-wrap:wrap}
.footer-logo-card{background:#fff;border-radius:12px;padding:12px;display:inline-block}
.footer-logo-card img{width:200px;height:auto;display:block}
.footer-tagline{font-size:15px;line-height:1.55;margin:0;max-width:540px}
.footer-nav{margin-top:20px;font-size:15px;line-height:2}
.footer-nav button{background:none;border:none;color:#dfe5ee;cursor:pointer;font-size:15px;padding:0;font-family:inherit}
.footer-nav button:hover{text-decoration:underline}
.footer-bottom{border-top:1px solid #243042;margin-top:18px;padding-top:14px;font-size:13.5px;color:#9aa6b6}
.footer-bottom p{margin:0}
@media (max-width:640px){.footer-top{flex-direction:column;align-items:flex-start;gap:14px}.footer-logo-card img{width:180px}}
/* Consent */
.consent-banner{position:fixed;left:16px;right:16px;bottom:16px;z-index:100;background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);padding:18px 20px;display:none;max-width:760px;margin:0 auto}
.consent-banner.show{display:block}
.consent-banner p{margin:0 0 12px;font-size:14.5px}
.consent-actions{display:flex;gap:10px;flex-wrap:wrap}
.consent-actions .btn{padding:9px 18px;font-size:14.5px}
.consent-actions .btn.decline{background:var(--surface-muted);color:var(--ink)!important;border:1px solid var(--border)}
.strip{background:var(--ink);color:#fff;padding:18px 0;font-size:15.5px}
.strip a{color:#8ccbff;font-weight:700}
@media print{.site-header,.site-footer,.consent-banner,.no-print{display:none!important}}

/* Government & Military pillar (v1.1) */
.tag.gov{background:#e9edf3;border-color:#c4cfdf;color:#2e4059}
.card .tag.gov{margin-bottom:10px}

/* v1.2: breadcrumbs, situation cards, beneficiary audit */
.breadcrumbs{padding:18px 0 0}
.breadcrumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;font-size:13.5px;color:var(--ink-soft)}
.breadcrumbs li+li:before{content:"›";margin-right:6px;color:var(--gold)}
.breadcrumbs a{color:var(--ink-soft);text-decoration:none;font-weight:600}
.breadcrumbs a:hover{color:var(--accent-dark);text-decoration:underline}
.ba-card legend{font-size:17px;padding:0 6px}
.ba-note{color:var(--ink-soft);font-size:14.5px;margin:4px 0 10px}
.ba-include{display:block;font-weight:600;margin-bottom:10px}
.ba-status{margin-top:12px;font-weight:600}
.ba-badge{display:inline-block;padding:2px 10px;border-radius:99px;font-size:13px;border:1px solid var(--border)}
.ba-ok{background:#e5f3ec;color:#14532d}
.ba-review{background:#fef6e4;color:#7a4d00}
.ba-atrisk{background:#fdeceb;color:#8c1d13}
.ba-overall{font-size:19px}
.ba-fine{font-size:13.5px;color:var(--ink-soft)}
@media print{ .site-header,.site-footer,.consent-banner,.breadcrumbs,#ba-run{display:none!important} }

/* ===== v1.3 tool UI layer ===== */
.tool-hero{background:radial-gradient(ellipse at 15% 0%,rgba(201,138,45,.35),transparent 55%),radial-gradient(ellipse at 90% 100%,rgba(226,58,46,.22),transparent 50%),repeating-linear-gradient(115deg,#0e1726 0 34px,#0b111b 34px 68px);color:#fff;border-radius:18px;padding:34px 30px 28px;margin:16px 0 4px;box-shadow:0 14px 34px rgba(14,23,38,.22)}
.tool-hero .tag{background:#1a2434;color:#c9d3e0;border-color:#2a3850}
.tool-hero h1{color:#fff;font-size:clamp(30px,4.4vw,44px);line-height:1.12;margin:8px 0 12px}
.tool-hero .byline{color:#aab5c4}
.tool-hero .byline a{color:#8ccbff}
.tool-hero .tool-lede{color:#d6deea;font-size:17px;max-width:760px;margin:4px 0 0}
.tool-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}
.tool-chip{border:1px solid #2a3850;background:rgba(255,255,255,.07);color:#d6deea;border-radius:99px;padding:5px 13px;font-size:13px;font-weight:700}
.tool-wrap .tool-panel{box-shadow:0 10px 30px rgba(14,23,38,.08);border-radius:16px;padding:26px}
.tool-panel h3{display:flex;align-items:center;gap:10px;font-size:20px}
.tp-icon{width:36px;height:36px;border-radius:10px;background:var(--surface-muted);display:inline-flex;align-items:center;justify-content:center;color:var(--accent-dark);flex:none}
.tp-icon svg{width:21px;height:21px}
.tool-wrap label.fl input,.tool-wrap label.fl select{padding:12px;font-size:16px;border-radius:10px;min-height:48px}
.tool-wrap label.fl input:focus,.tool-wrap label.fl select:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent)}
.num-wrap{position:relative;display:block;margin-top:4px}
.num-wrap input{margin-top:0!important;width:100%}
.num-sym{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--ink-soft);font-weight:700;pointer-events:none;font-size:15px}
.num-unit{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:var(--ink-soft);font-weight:600;pointer-events:none;font-size:13.5px}
.num-wrap.has-sym input{padding-left:27px!important}
.num-wrap.has-unit input{padding-right:44px!important}
input[type=range]{-webkit-appearance:none;appearance:none;width:100%;height:8px;border-radius:99px;background:var(--surface-muted);outline-offset:4px}
input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:26px;height:26px;border-radius:50%;background:var(--accent);border:3px solid #fff;box-shadow:0 2px 8px rgba(14,23,38,.3);cursor:pointer}
input[type=range]::-moz-range-thumb{width:22px;height:22px;border-radius:50%;background:var(--accent);border:3px solid #fff;box-shadow:0 2px 8px rgba(14,23,38,.3);cursor:pointer}
.pill-group{display:flex;gap:7px;flex-wrap:wrap}
.pill{position:relative;display:inline-block}
.pill input{position:absolute;inset:0;opacity:0;cursor:pointer;margin:0}
.pill span{display:inline-flex;align-items:center;padding:9px 14px;border:1.5px solid var(--border);border-radius:99px;font-size:13.5px;font-weight:700;background:#fff;color:var(--ink-soft);min-height:42px;transition:background .15s,color .15s,border-color .15s}
.pill input:checked+span{background:var(--ink);color:#fff;border-color:var(--ink)}
.pill[data-tone="good"] input:checked+span{background:var(--green);border-color:var(--green)}
.pill[data-tone="warn"] input:checked+span{background:#996812;border-color:#996812}
.pill[data-tone="bad"] input:checked+span{background:var(--accent-dark);border-color:var(--accent-dark)}
.pill input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
.credit-row{display:grid;grid-template-columns:1fr 130px;gap:8px 10px;padding:14px;border:1px solid var(--border);border-radius:12px;background:#fff;margin-bottom:12px;align-items:center}
.credit-row input[type=text],.credit-row input[type=number]{padding:10px;border:1px solid var(--border);border-radius:8px;font-size:15px;width:100%;min-height:44px}
.credit-row .cr-pills{grid-column:1/-1}
@media(max-width:640px){.credit-row{grid-template-columns:1fr 110px}}
.verdict-panel{background:linear-gradient(135deg,#18243a,#0e1726);color:#e6eaf0;border-radius:16px;padding:26px;margin:20px 0;box-shadow:0 14px 34px rgba(14,23,38,.20)}
.verdict-panel h3{color:#fff;margin-top:0}
.verdict-badge{display:inline-block;padding:5px 14px;border-radius:99px;font-weight:800;font-size:13px;text-transform:uppercase;letter-spacing:.6px}
.vb-good{background:#1d7a4f;color:#fff}
.vb-warn{background:#c98a2d;color:#0e1726}
.vb-bad{background:#b42a21;color:#fff}
.verdict-big{font-size:clamp(38px,6vw,54px);font-weight:800;line-height:1.05;margin:10px 0 6px;color:#fff}
.verdict-big .vb-sub{font-size:19px;font-weight:600;color:#aab5c4}
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin-top:16px}
.stat{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.15);border-radius:12px;padding:12px 14px}
.stat .sv{font-size:21px;font-weight:800;color:#fff;line-height:1.25}
.stat .sl{font-size:12px;color:#aab5c4;text-transform:uppercase;letter-spacing:.6px;font-weight:700}
.stat.light{background:var(--surface-muted);border-color:var(--border)}
.stat.light .sv{color:var(--ink)}
.stat.light .sl{color:var(--ink-soft)}
.meter{height:14px;background:#243042;border-radius:99px;position:relative;margin:16px 0 6px}
.meter .fill{height:100%;border-radius:99px;background:linear-gradient(90deg,var(--gold),var(--accent));transition:width .4s ease}
.meter .need{position:absolute;top:-4px;bottom:-4px;width:3px;background:#fff;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.35)}
.meter-labels{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;color:#aab5c4;flex-wrap:wrap}
.tool-wrap .winner{background:linear-gradient(135deg,#18243a,#0e1726);color:#e6eaf0;border:none;border-radius:16px;padding:26px;box-shadow:0 14px 34px rgba(14,23,38,.20)}
.tool-wrap .winner h3{color:#fff}
.tool-wrap .winner strong{color:#ffd9a8}
.tool-wrap tr.winner-row td{background:#fdeeec}
.save-bar{height:6px;background:#e3e7ed;border-radius:99px;margin-top:5px;min-width:90px}
.save-bar span{display:block;height:100%;background:var(--green);border-radius:99px}
.timeline{display:flex;height:26px;border-radius:8px;overflow:hidden;margin:14px 0 8px;background:#243042}
.timeline div{height:100%;transition:width .4s ease}
.tl-leave{background:#c98a2d}.tl-sev{background:#d7372d}.tl-save{background:#1d7a4f}
.tl-legend{display:flex;gap:16px;flex-wrap:wrap;font-size:13px;color:#aab5c4}
.tl-legend .dot{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px}
.donut{width:124px;height:124px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none;transition:background .4s ease}
.donut-in{background:#fff;width:90px;height:90px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:800;color:var(--ink)}
.ba-badge{padding:4px 12px;font-size:13.5px;font-weight:800}
.ba-card{border-top:4px solid var(--border)}
.sticky-bar{position:fixed;left:50%;transform:translateX(-50%);bottom:14px;z-index:40;background:var(--dark);color:#e6eaf0;border:1px solid #2a3850;border-radius:99px;box-shadow:0 12px 30px rgba(23,16,11,.4);padding:10px 12px 10px 20px;display:none;align-items:center;gap:14px;max-width:min(680px,calc(100vw - 24px));font-size:14.5px}
.sticky-bar.show{display:flex}
.sticky-bar strong{color:#ffd9a8;white-space:nowrap}
.sticky-bar .sb-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sticky-bar button{background:rgba(255,255,255,.12);color:#fff;border:none;border-radius:99px;padding:6px 12px;font-weight:700;cursor:pointer;flex:none}
.tool-card{overflow:hidden;padding:0;display:flex;flex-direction:column}
.tool-thumb{height:104px;display:flex;align-items:center;justify-content:center;color:#fff}
.tool-thumb svg{width:46px;height:46px}
.tool-card .tc-body{padding:20px 22px 22px;display:flex;flex-direction:column;gap:8px;flex:1}
.tool-card .tc-body h3{margin:0}
.tool-card .tc-body p{margin:0}
.tool-card .tc-learn{font-size:13.5px;color:var(--ink-soft);border-top:1px dashed var(--border);padding-top:10px;margin-top:auto}
@media (prefers-reduced-motion: reduce){.meter .fill,.timeline div,.donut{transition:none!important}}
@media print{.sticky-bar{display:none!important}}

/* ===== v1.4 taxonomy: category nav, dropdowns, accordion, chips, allocator ===== */
.main-nav{align-items:center}
.main-nav>a{white-space:nowrap}
.nav-group{position:relative;display:flex;align-items:center}
.nav-cat{color:var(--ink);text-decoration:none;font-size:15px;font-weight:600;padding:8px 6px 8px 10px;border-radius:8px;white-space:nowrap}
.nav-cat:hover{background:var(--surface-muted);color:var(--accent-dark)}
.nav-expand{display:none;background:#eef1f5;border:none;border-radius:50%;color:var(--ink);padding:0;cursor:pointer;width:44px;height:44px;min-width:44px;min-height:44px;align-items:center;justify-content:center}
.nav-expand:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.nav-expand .nav-chev{display:block;transition:transform .18s ease}
.nav-expand[aria-expanded="true"] .nav-chev{transform:rotate(180deg)}
.nav-drop{display:none;position:absolute;top:calc(100% + 2px);left:0;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow);padding:6px;min-width:230px;flex-direction:column;z-index:60}
.nav-drop a{white-space:nowrap;padding:10px 12px;border-radius:8px}
.nav-drop a + a{border-top:1px solid #e8ebf0}
@media(min-width:901px){
  .nav-group:hover .nav-drop,.nav-group:focus-within .nav-drop{display:flex}
}
@media(max-width:900px){
  /* v1.4.1 mobile menu: ONE row system — every row left-aligned on the same
     20px grid, 52px tall, 17px/600, 1px dividers. No centered text. */
  .main-nav{align-items:stretch;gap:0}
  .main-nav>a{display:flex;align-items:center;min-height:52px;padding:0 20px;font-size:17px;font-weight:600;border-bottom:1px solid #e3e7ed;border-radius:0}
  .main-nav>a:last-child{border-bottom:none}
  .nav-group{flex-wrap:wrap;width:100%;align-items:center;border-bottom:1px solid #e3e7ed}
  .main-nav .nav-cat{flex:1 1 auto;display:flex;align-items:center;min-height:52px;padding:0 4px 0 20px;font-size:17px;font-weight:600;border-radius:0}
  .nav-expand{display:flex;flex:none;margin-right:10px}
  .nav-drop{position:static;box-shadow:none;border:none;border-top:1px solid #e3e7ed;border-radius:0;padding:0;min-width:0;width:100%;background:var(--bg)}
  .nav-drop a{display:flex;align-items:center;min-height:44px;padding:6px 20px 6px 36px;font-size:16px;font-weight:500;border-radius:0;white-space:normal}
  .nav-drop a + a{border-top:1px solid #e3e7ed}
  .nav-group.open .nav-drop{display:flex}
}
.part-of{font-size:13.5px;color:var(--ink-soft);margin:10px 0 0}
.part-of a{font-weight:700}
.cat-chips{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 4px}
.cat-chip{border:1.5px solid var(--border);background:#fff;color:var(--ink-soft);border-radius:99px;padding:8px 15px;font-size:14px;font-weight:700;cursor:pointer;min-height:40px}
.cat-chip:hover{border-color:var(--ink-soft)}
.cat-chip.active{background:var(--ink);color:#fff;border-color:var(--ink)}
.cat-card .cat-subs{list-style:none;margin:12px 0 0;padding:12px 0 0;border-top:1px dashed var(--border)}
.cat-card .cat-subs li{margin-bottom:7px}
.cat-card .cat-subs a{font-weight:700}
.nd-debt-row{display:grid;grid-template-columns:1.4fr 1fr 0.8fr;gap:10px;margin-bottom:10px}
.nd-debt-row input{padding:11px;border:1px solid var(--border);border-radius:8px;font-size:15px;width:100%;min-height:46px}
@media(max-width:640px){.nd-debt-row{grid-template-columns:1fr 1fr}.nd-debt-row input:first-child{grid-column:1/-1}}
.plan-list{list-style:none;margin:6px 0 0;padding:0}
.plan-step{display:flex;gap:14px;padding:16px 14px;border:1px solid var(--border);border-radius:12px;margin-bottom:10px;background:#fff}
.plan-num{width:34px;height:34px;border-radius:50%;background:var(--surface-muted);color:var(--ink-soft);font-weight:800;display:flex;align-items:center;justify-content:center;flex:none;font-size:15px}
.plan-done .plan-num{background:var(--green);color:#fff}
.plan-current{border:2px solid var(--accent);background:#fdf1ef}
.plan-current .plan-num{background:var(--accent-dark);color:#fff}
.plan-skip{opacity:.62}
.plan-body{flex:1;min-width:0}
.plan-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:16.5px}
.plan-state{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.6px;color:var(--ink-soft)}
.plan-here{font-size:11.5px;padding:3px 10px}
.plan-why{margin:6px 0 4px;color:var(--ink);font-size:15px}
.plan-detail{margin:0 0 6px;color:var(--ink-soft);font-size:14.5px}
.plan-link{margin:0;font-size:14.5px}

/* ===== v1.5 homepage: market strip, compact hero, tools showcase, today band, situations, trust band ===== */
.market-strip{background:#fff;border-bottom:1px solid var(--border)}
.tv-holder{position:relative;height:46px;overflow:hidden}
.tv-fallback{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;gap:9px;margin:0;padding:0 14px;font-size:13.5px;color:var(--ink-soft);text-align:center;background:#fff}
.tv-fallback .tv-fb-label{flex:none;font-weight:800;text-transform:uppercase;letter-spacing:1.2px;font-size:11px;color:var(--ink);background:var(--surface-muted);border:1px solid var(--border);padding:2px 8px;border-radius:99px}
.tv-fallback a{font-weight:700;white-space:nowrap}
.tv-holder.tv-on .tv-fallback{display:none}
.tv-holder .tradingview-widget-container,.tv-holder .tradingview-widget-container__widget{height:46px}
.market-caption{max-width:var(--max);margin:0 auto;padding:1px 20px 4px;font-size:11px;line-height:1.5;color:var(--ink-soft)}
.market-caption a{color:var(--ink-soft);font-weight:600}
.hero-compact{padding:44px 0 40px}
.hero-compact .sub{margin:0 0 22px}
.trust-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}
.trust-chips span{font-size:12.5px;font-weight:700;letter-spacing:.3px;color:#d6deea;border:1px solid rgba(255,255,255,.38);padding:4px 11px;border-radius:99px}
body.home .section{padding:42px 0}
.showcase-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:18px;margin-top:26px}
/* v1.6.1: showcase card spans exist ONLY at desktop widths. Below 901px no grid-column
   rule applies to the cards at all, so the <=900px / <=600px grids can never grow an
   implicit column from a leaked span. */
@media(min-width:901px){
  .showcase-grid .tool-card{grid-column:span 2}
}
.tc-outcome{font-weight:700;color:var(--accent-dark);font-size:15px}
@media(max-width:900px){
  .showcase-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:600px){
  .showcase-grid{grid-template-columns:1fr}
  .showcase-grid .tool-thumb{height:76px}
}
.rate-big{font-size:46px;font-weight:800;line-height:1.02;letter-spacing:-1px;color:#fff;margin:2px 0 6px}
.rate-big small{font-size:17px;font-weight:700;letter-spacing:0;color:#c9d3e0}
.rate-delta{color:#8fd6ae;font-weight:700}
.deadline{color:#8ccbff;font-weight:800}
.sit-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:26px}
.sit-card{display:flex;gap:12px;align-items:flex-start;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:15px 16px;text-decoration:none;color:var(--ink);box-shadow:0 2px 10px rgba(14,23,38,.04)}
.sit-card:hover{border-color:var(--gold);text-decoration:none;box-shadow:var(--shadow)}
.sit-ico{flex:none;width:40px;height:40px;border-radius:10px;background:linear-gradient(135deg,#243042,#0e1726);color:#fff;display:flex;align-items:center;justify-content:center}
.sit-ico svg{width:21px;height:21px}
.sit-card h3{font-size:15.5px;margin:0 0 2px;line-height:1.25;color:var(--ink)}
.sit-card p{font-size:13px;margin:0;color:var(--ink-soft);line-height:1.45}
@media(max-width:900px){.sit-grid{grid-template-columns:repeat(2,1fr)}}
.cat-card .cat-subs-inline{margin:0;font-size:14.5px;color:var(--ink-soft)}
.cat-card .cat-subs-inline a{font-weight:700}
.read-time{font-size:12.5px;color:var(--ink-soft);font-weight:600;white-space:nowrap}
.card .tag-row{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.card .tag-row .tag{margin-bottom:0}
.trust-band{background:var(--dark);color:#e6eaf0;padding:30px 0}
.trust-band .tb-head{margin:0 0 6px;font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:2px;color:var(--gold)}
.trust-band .tb-text{margin:0;font-size:16.5px;max-width:820px;color:#d6deea}

/* ===== v1.5 compaction pass (homepage density) ===== */
body.home .section{padding:34px 0}
.hero-compact{padding:36px 0 34px}
.hero-compact h1{font-size:clamp(32px,4.6vw,50px)}
.market-caption{display:flex;justify-content:space-between;gap:4px 16px;flex-wrap:wrap}
.showcase-grid .tool-thumb{height:88px}
.showcase-grid .tc-body{padding:16px 18px 18px;gap:6px}
.trust-band{padding:24px 0}
@media(max-width:600px){
  .showcase-grid .tool-card{flex-direction:row}
  .showcase-grid .tool-thumb{height:auto;width:84px}
  .showcase-grid .tool-thumb svg{width:34px;height:34px}
  .showcase-grid .tc-body{padding:14px 16px}
}

/* ===== v1.5 compaction pass 2: horizontal showcase cards, tighter hero ===== */
.hero-compact h1{margin-bottom:12px}
.hero-compact .sub{font-size:18.5px;margin-bottom:18px}
.showcase-grid .tool-card{flex-direction:row}
.showcase-grid .tool-thumb{width:96px;height:auto;flex:none}
body.home .card h3{font-size:18px}
.cat-grid{grid-template-columns:repeat(3,1fr)}
@media(max-width:900px){.cat-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){
  .cat-grid{grid-template-columns:1fr}
  .showcase-grid .tool-thumb{width:84px}
}

/* v1.5 fix: .card p (0,1,1) was beating .rate-big (0,1,0) — restore the big rate */
.card p.rate-big{font-size:46px;line-height:1.02;letter-spacing:-1px;color:#fff}

/* ===== v1.6: six-tool showcase grid + vehicle calculator ===== */
/* v1.6.1: the v1.6 nth-child span rules that lived here were removed — all showcase
   spans are now scoped to @media(min-width:901px) in the v1.5 section above. */
.vp-mode-note{font-size:14.5px;color:var(--ink-soft);margin:10px 0 0}
.vp-converter{display:flex;gap:14px;flex-wrap:wrap;align-items:flex-end}
.vp-converter .fl{flex:1;min-width:180px;margin-bottom:0}

/* ===== v1.7: header search, centered nav rows, category accents, single-line tags ===== */
.vh{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* Fix 2: each wrapped desktop nav row centers as a group within the nav width */
@media(min-width:901px){
  .main-nav{justify-content:center}
}
/* Fix 1: header search — toggle button + expanding panel (desktop); field inside mobile menu */
.search-toggle{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex:none;background:#fff;border:1px solid var(--border);border-radius:9px;color:var(--ink);cursor:pointer;padding:0}
.search-toggle:hover{background:var(--surface-muted);color:var(--accent-dark)}
.search-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.header-search{display:none;border-top:1px solid var(--border);background:#fff}
.header-search.open{display:block}
.header-search-form{display:flex;gap:10px;align-items:center;max-width:var(--max);margin:0 auto;padding:12px 20px}
.header-search-form input{flex:1;min-width:0;font:inherit;font-size:16px;color:var(--ink);padding:10px 14px;border:1.5px solid var(--border);border-radius:10px;background:var(--bg)}
.header-search-form input:focus{outline:2px solid var(--accent);outline-offset:1px;border-color:var(--accent)}
.header-search-btn{padding:10px 20px;flex:none}
.nav-search{display:none}
@media(max-width:900px){
  .search-toggle{display:none}
  .main-nav .nav-search{display:flex;gap:8px;align-items:center;padding:14px 20px;border-bottom:1px solid #e3e7ed;background:#fff}
  .main-nav .nav-search input{flex:1;min-width:0;font:inherit;font-size:16px;color:var(--ink);padding:9px 12px;border:1.5px solid var(--border);border-radius:9px;background:var(--bg)}
  .main-nav .nav-search button{flex:none;font:inherit;font-size:15px;font-weight:700;color:#fff;background:var(--accent-dark);border:none;border-radius:9px;padding:10px 16px;cursor:pointer}
}
/* Fix 4: tag pills never wrap; one consistent pill height; meta row centered */
.tag{white-space:nowrap;font-size:11.5px;letter-spacing:.4px;padding:3px 9px;line-height:1.5}
.card .tag-row{gap:7px}
.card .tag-row .tag{font-size:10.5px;letter-spacing:.1px;padding:3px 7px}
.read-time{font-size:11.5px}
.card:has(> .tag-row){padding-left:14px;padding-right:14px}
/* Fix 3: Browse-by-category cards — per-category accent, icon chip, counts */
.cat-card{position:relative;overflow:hidden;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.cat-card::before{content:"";position:absolute;top:0;left:0;right:0;height:4px;background:var(--cat,#c98a2d)}
.cat-card:hover{transform:translateY(-3px);box-shadow:var(--shadow);border-color:var(--cat,#c98a2d)}
.cat-head{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.cat-ico{flex:none;width:42px;height:42px;border-radius:11px;background:var(--cat-tint,#eef1f5);color:var(--cat,#c98a2d);display:flex;align-items:center;justify-content:center}
.cat-ico svg{width:23px;height:23px}
.cat-card .cat-head h3{margin:0}
.cat-card h3 a{color:var(--ink);text-decoration:none}
.cat-card h3 a:hover{color:var(--cat-ink,#b42a21);text-decoration:underline}
.cat-card .cat-subs-inline a{color:var(--cat-ink,#b42a21)}
.cat-card .cat-meta{margin:12px 0 0;padding-top:10px;border-top:1px dashed var(--border);font-size:13px;font-weight:700;color:var(--ink-soft);letter-spacing:.2px}

/* === v1.8: best-credit-cards roundup === */
.pick-chips{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 4px}
.pick-chips a{border:1.5px solid var(--ink);border-radius:999px;padding:6px 13px;font-size:13.5px;font-weight:700;color:var(--ink);text-decoration:none;background:var(--surface);white-space:nowrap}
.pick-chips a:hover{background:var(--dark);color:#eef1f5}
.compare-scroll{overflow-x:auto;margin:18px 0 4px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface)}
.compare-table{border-collapse:collapse;width:100%;min-width:660px;font-size:14px}
.compare-table th,.compare-table td{padding:9px 12px;text-align:left;border-bottom:1px solid var(--border);vertical-align:top}
.compare-table thead th{background:var(--dark);color:#f4f5f7;font-size:12px;letter-spacing:.07em;text-transform:uppercase;border-bottom:none}
.compare-table tbody tr:last-child td{border-bottom:none}
.compare-table td:first-child{position:sticky;left:0;background:var(--surface);font-weight:700;white-space:nowrap;box-shadow:1px 0 0 var(--border)}
.compare-table td:first-child a{color:var(--ink);text-decoration-color:var(--accent)}
.table-notes{font-size:13px;color:var(--ink-soft);margin:8px 0 4px}
.card-module{display:grid;grid-template-columns:300px minmax(0,1fr);gap:26px;padding:28px 0;border-top:1px solid var(--border);scroll-margin-top:96px;align-items:start}
.card-module.compact{grid-template-columns:300px minmax(0,1fr);gap:20px;padding:22px 0}
.cc-face{aspect-ratio:1.586;border-radius:14px;padding:15px 17px;color:#fff;display:flex;flex-direction:column;justify-content:space-between;box-shadow:0 10px 24px rgba(23,16,11,.28);position:relative;overflow:hidden}
.cc-face::after{content:"";position:absolute;inset:0;background:linear-gradient(115deg,rgba(255,255,255,.16),rgba(255,255,255,0) 45%);pointer-events:none}
.cc-f-acash{background:linear-gradient(135deg,#8f1d22,#5c1114)}
.cc-f-dcash{background:linear-gradient(135deg,#2557a7,#16386f)}
.cc-f-flex{background:linear-gradient(135deg,#12294d,#081426)}
.cc-f-bcp{background:linear-gradient(135deg,#3d6f9e,#224465)}
.cc-f-auto{background:linear-gradient(135deg,#3a3a3f,#1c1c1f)}
.cc-f-pref{background:linear-gradient(135deg,#1d4e9e,#0e2a5e)}
.cc-f-vx{background:linear-gradient(135deg,#3f454d,#131619)}
.cc-f-res{background:linear-gradient(135deg,#2c2a55,#16122e)}
.cc-f-plat{background:linear-gradient(135deg,#efe3c2,#d8c28a)}
.cc-f-diam{background:linear-gradient(135deg,#eef0f2,#c6ccd3)}
.cc-f-disc{background:linear-gradient(135deg,#a8480a,#6f2c07)}
.cc-light{color:var(--ink)}
.cc-top{display:flex;justify-content:space-between;align-items:flex-start;position:relative;z-index:1}
.cc-issuer{font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;opacity:.85}
.cc-wave{width:22px;height:22px;opacity:.85;flex:none}
.cc-chip{width:40px;height:30px;color:#d9b45b;position:relative;z-index:1}
.cc-light .cc-chip{color:#7a5c14}
.cc-bottom{display:flex;flex-direction:column;gap:3px;position:relative;z-index:1}
.cc-num::before{content:"\2022\2022\2022\2022  \2022\2022\2022\2022  \2022\2022\2022\2022  \2022\2022\2022\2022";letter-spacing:.22em;font-size:12px;opacity:.75}
.cc-cname{font-size:19px;font-weight:800;line-height:1.15}
.pick-badge{display:inline-block;background:var(--dark);color:#eef1f5;font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;padding:5px 11px;border-radius:999px;margin:0 0 9px}
.cm-main h2{margin:0 0 6px}
.cm-main h3{margin:0 0 6px;font-size:21px}
.cm-verdict{font-size:16.5px;color:var(--ink-soft);margin:0 0 14px}
.cm-verdict strong{color:var(--ink)}
.spec-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(148px,1fr));gap:1px;background:var(--border);border:1px solid var(--border);border-radius:10px;overflow:hidden;margin:0 0 14px}
.spec-grid>div{background:var(--surface);padding:9px 12px;min-width:0}
.spec-grid dt{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--ink-soft)}
.spec-grid dd{margin:2px 0 0;font-size:14.5px;font-weight:650;overflow-wrap:break-word}
.pros-cons{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 0 12px}
.pc{background:var(--surface-muted);border-radius:10px;padding:10px 14px 8px}
.pc::before{content:"Pros";display:block;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--green);margin:0 0 4px}
.pc.cons::before{content:"Cons";color:var(--accent-dark)}
.pc ul{margin:0;padding-left:17px}
.pc li{margin:3px 0;font-size:14px}
.skip-line{font-size:14.5px;margin:0 0 10px}
.watch-line{border-left:3px solid var(--gold);background:var(--surface-muted);padding:9px 13px;border-radius:0 10px 10px 0;font-size:14.5px;margin:0}
@media(max-width:760px){
  .card-module,.card-module.compact{grid-template-columns:minmax(0,1fr);gap:16px}
  .cc-face{max-width:340px}
  .pros-cons{grid-template-columns:minmax(0,1fr)}
}

/* ===== v1.9: disability gap calculator results + homepage showcase 7th card ===== */
.dg-warn{background:#fdeeec;border:2px solid var(--accent);border-radius:var(--radius);padding:20px 22px;margin:20px 0}
.dg-warn h3{margin-top:0}
.dg-table td{padding:7px 8px;border-bottom:1px solid var(--border)}
.dg-table td:last-child{text-align:right;white-space:nowrap;font-weight:600}
.dg-table tr.dg-total td{border-top:2px solid var(--ink);border-bottom:none}
/* v1.9: with 7 showcase cards, center the last one in its row — desktop only,
   fenced exactly like the v1.6.1 span rules so no span can leak below 901px. */
@media(min-width:901px){
  .showcase-grid .tool-card.center-last{grid-column:3/span 2}
}

/* ——— v2.0: complete-index lists, site map, cluster strips ——— */
.index-list{list-style:none;padding:0;margin:0 0 20px;columns:2;column-gap:40px}
.index-list li{margin:0 0 7px;break-inside:avoid;font-size:.97rem}
.all-guides h3{margin:22px 0 8px}
.cluster-strip{margin:30px 0 6px}
.cluster-strip h3{margin-top:0}
.cluster-strip p{margin:0;line-height:1.9}
@media (max-width:640px){.index-list{columns:1}}

/* === v2.1: balance-transfer + Roth ladder tools === */
.rl-sched td:not(:first-child),.rl-sched th:not(:first-child){text-align:right}
.rl-sched td:first-child{position:static;box-shadow:none}
.verdict-panel.verdict-lose{background:linear-gradient(135deg,#3b1d21,#2a1418)}
.verdict-panel.verdict-flat{background:linear-gradient(135deg,#1e2838,#131b28)}
.tool-panel label.ck{margin-top:12px}

/* ——— v2.2: situation hubs + 11-card showcase pair centering ——— */
.hub-moves{list-style:none;counter-reset:move;padding:0;margin:18px 0 8px}
.hub-moves li{counter-increment:move;display:flex;gap:16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px 20px;margin:0 0 12px;box-shadow:0 2px 10px rgba(14,23,38,.04)}
.hub-moves li::before{content:counter(move);flex:none;width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,#243042,#0e1726);color:#fff;font-weight:800;font-size:18px;display:flex;align-items:center;justify-content:center}
.hub-moves .move-text{margin:2px 0 6px;font-size:16.5px}
.hub-moves .move-link{margin:0;font-weight:700}
.curr-list{margin:14px 0 8px;padding-left:22px}
.curr-list li{margin:0 0 9px;font-size:16px}
.curr-list .curr-note{color:var(--ink-soft);font-size:14px}
.hub-landing{margin:20px 0 4px}
.sit-group{margin:34px 0 0}
.sit-grid-3{grid-template-columns:repeat(3,1fr)}
@media(max-width:900px){.sit-grid-3{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.sit-grid-3{grid-template-columns:1fr}}
.sit-more{margin:16px 0 0;font-weight:700;font-size:15.5px}
@media(min-width:901px){
  .showcase-grid .tool-card.center-pair{grid-column:2/span 2}
}

/* ——— v2.4: federal hub, glossary, annuity estimator ——— */
.fed-path{list-style:none;counter-reset:move;padding:0;margin:18px 0 8px}
.fed-path li{counter-increment:move;display:flex;gap:16px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px 20px;margin:0 0 10px;box-shadow:0 2px 10px rgba(14,23,38,.04)}
.fed-path li::before{content:counter(move);flex:none;width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#243042,#0e1726);color:#fff;font-weight:800;font-size:16px;display:flex;align-items:center;justify-content:center}
.fed-path .fp-t{margin:2px 0 4px;font-weight:700;font-size:16.5px}
.fed-path .fp-d{margin:0;color:var(--ink-soft);font-size:15px}
.gloss{margin:18px 0}
.gloss dt{font-weight:800;font-size:16.5px;margin:20px 0 2px;color:var(--ink)}
.gloss dd{margin:0 0 6px 0;color:var(--ink-soft);font-size:15.5px}
.gloss dd a{font-weight:600}
.gloss-nav{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0 4px}
.gloss-nav a{font-size:13px;font-weight:700;border:1px solid var(--border);border-radius:99px;padding:4px 11px;text-decoration:none;color:var(--ink-soft);background:var(--surface)}
.warn-panel{background:#fef7ea;border:2px solid var(--gold);border-radius:var(--radius);padding:18px 22px;margin:20px 0}
.warn-panel h3{margin-top:0}
.warn-panel p{margin:6px 0}
.cmp-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0}
@media(max-width:700px){.cmp-grid{grid-template-columns:1fr}}
.cmp-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px 20px}
.cmp-card h3{margin-top:0;font-size:17px}
.cmp-card .cmp-big{font-size:26px;font-weight:800;line-height:1.2}
.cmp-card .cmp-sub{color:var(--ink-soft);font-size:14.5px;margin:4px 0 0}
@media(min-width:901px){
  .showcase-grid .tool-card.center-last-13{grid-column:3/span 2}
}

/* ===== v2.4.2: header theme toggle + dark mode =====
   The light palette above is the site's default identity and is NOT modified.
   Dark applies only under [data-theme="dark"] on <html>, set before paint by a
   tiny inline head script: stored choice (localStorage "ff-theme") wins, else
   the system preference. The toggle flips it and stores the choice.
   Masthead rule: .site-header and .market-strip stay LIGHT in both themes —
   the wordmark artwork is dark ink on transparent and the market widget is a
   light third-party embed — pinned by re-scoping the light variables there. */
.theme-toggle{display:flex;align-items:center;justify-content:center;width:40px;height:40px;flex:none;background:#fff;border:1px solid var(--border);border-radius:9px;color:var(--ink);cursor:pointer;padding:0}
.theme-toggle:hover{background:var(--surface-muted);color:var(--accent-dark)}
.theme-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.theme-toggle .ico-sun{display:none}
[data-theme="dark"] .theme-toggle .ico-sun{display:block}
[data-theme="dark"] .theme-toggle .ico-moon{display:none}
@media(max-width:900px){
  /* keep the two right-side header controls grouped (brand left, controls right) */
  .nav-toggle{margin-left:auto}
}
[data-theme="dark"]{
  --ink:#e6eaf0; --ink-soft:#aab5c4; --bg:#0b111b; --surface:#131b28; --surface-muted:#1a2434;
  --border:#2a3850; --shadow:0 8px 28px rgba(0,0,0,.45);
  color-scheme:dark;
}
[data-theme="dark"] body{background:var(--bg);color:var(--ink)}
/* pinned-light masthead + market strip (variables re-scoped to the light set) */
[data-theme="dark"] .site-header,[data-theme="dark"] .market-strip{
  --ink:#0e1726; --ink-soft:#4f5b6b; --bg:#f4f5f7; --surface:#ffffff; --surface-muted:#eef1f5;
  --border:#dde1e7; --accent:#d7372d; --accent-dark:#b42a21; --accent-deep:#8f1f18;
  --shadow:0 8px 28px rgba(14,23,38,.10); color-scheme:light;
}
[data-theme="dark"] .site-header a{color:var(--ink)}
[data-theme="dark"] .site-header a:hover{color:var(--accent-dark)}
[data-theme="dark"] .site-footer a{color:#dfe5ee}
[data-theme="dark"] .market-caption a,[data-theme="dark"] .tv-fallback a{color:var(--accent-dark)}
/* links on dark surfaces */
[data-theme="dark"] a{color:#8ccbff}
[data-theme="dark"] .sit-card{color:var(--ink)}
[data-theme="dark"] .breadcrumbs a{color:var(--ink-soft)}
[data-theme="dark"] .breadcrumbs a:hover{color:#8ccbff}
[data-theme="dark"] .gloss-nav a{color:var(--ink-soft)}
[data-theme="dark"] .pick-chips a{color:var(--ink)}
[data-theme="dark"] .cat-card .cat-subs-inline a{color:#8ccbff}
[data-theme="dark"] .cat-card h3 a:hover{color:#8ccbff}
[data-theme="dark"] .tc-outcome{color:#8ccbff}
[data-theme="dark"] .tp-icon{color:#8ccbff}
[data-theme="dark"] :focus-visible{outline:2px solid var(--gold);outline-offset:2px}
/* surfaces that hard-code a light background */
[data-theme="dark"] .article-body td,[data-theme="dark"] .tool-wrap td{background:var(--surface)}
[data-theme="dark"] .article-body th,[data-theme="dark"] .tool-wrap th{background:var(--surface-muted);color:var(--ink)}
[data-theme="dark"] .callout{background:var(--surface)}
[data-theme="dark"] .tool-panel{background:var(--surface)}
[data-theme="dark"] .plan-step{background:var(--surface)}
[data-theme="dark"] .plan-current{background:#3a1e22}
[data-theme="dark"] .credit-row{background:var(--surface)}
[data-theme="dark"] .consent-banner{background:var(--surface);color:var(--ink)}
[data-theme="dark"] .winner{background:#3b1d21}
[data-theme="dark"] .tool-wrap .winner{background:linear-gradient(135deg,#18243a,#0e1726)}
[data-theme="dark"] .tool-wrap tr.winner-row td{background:#3b1d21}
[data-theme="dark"] .dg-warn{background:#3b1d21}
[data-theme="dark"] .trap{background:#33270f;border-color:#8a6d1f}
[data-theme="dark"] .warn-panel{background:#33270f}
[data-theme="dark"] .strip{background:var(--dark)}
[data-theme="dark"] .btn.dark{background:#080d15}
/* components */
[data-theme="dark"] .tag.gov{background:#2b3a4d;border-color:#46586e;color:#c7d6e8}
[data-theme="dark"] .ba-ok{background:#14301f;color:#8fd6ae}
[data-theme="dark"] .ba-review{background:#3a2c10;color:#ffd9a8}
[data-theme="dark"] .ba-atrisk{background:#3b1d21;color:#8ccbff}
[data-theme="dark"] .donut-in{background:var(--dark-2)}
[data-theme="dark"] .save-bar{background:#243042}
[data-theme="dark"] .cc-light{color:#0e1726}
[data-theme="dark"] .cat-ico{background:#1a2434;color:#c9d3e0}
[data-theme="dark"] .pc::before{color:#63c98f}
[data-theme="dark"] .pc.cons::before{color:#8ccbff}
[data-theme="dark"] .pill span{background:var(--surface)}
[data-theme="dark"] .pill input:checked+span{background:#e6eaf0;color:#0e1726;border-color:#e6eaf0}
[data-theme="dark"] .pill[data-tone="good"] input:checked+span{background:var(--green);color:#fff;border-color:var(--green)}
[data-theme="dark"] .pill[data-tone="warn"] input:checked+span{background:#996812;color:#fff;border-color:#996812}
[data-theme="dark"] .pill[data-tone="bad"] input:checked+span{background:var(--accent-dark);color:#fff;border-color:var(--accent-dark)}
[data-theme="dark"] .cat-chip{background:var(--surface)}
[data-theme="dark"] .cat-chip.active{background:#b42a21;border-color:#b42a21;color:#fff}
/* form controls (page content only — the pinned-light header keeps its own) */
[data-theme="dark"] main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
[data-theme="dark"] main select,[data-theme="dark"] main textarea{
  background-color:#0b111b;color:var(--ink);border-color:var(--border);
}
/* print always renders light, whatever the theme */
@media print{
  html[data-theme="dark"]{--ink:#0e1726;--ink-soft:#4f5b6b;--bg:#ffffff;--surface:#ffffff;--surface-muted:#eef1f5;--border:#dde1e7;--accent-dark:#b42a21;color-scheme:light}
  html[data-theme="dark"] body{background:#fff;color:#0e1726}
  html[data-theme="dark"] a{color:#b42a21}
  html[data-theme="dark"] .article-body td,html[data-theme="dark"] .article-body th,
  html[data-theme="dark"] .tool-wrap td,html[data-theme="dark"] .tool-wrap th{background:#fff;color:#0e1726}
  html[data-theme="dark"] .callout,html[data-theme="dark"] .tool-panel,
  html[data-theme="dark"] .plan-step,html[data-theme="dark"] .credit-row,
  html[data-theme="dark"] .consent-banner{background:#fff}
}

/* ===== v2.6: Net-Worth Tracker (Tool #15) ===== */
.nw-subtotal{font-size:15px;color:var(--ink-soft);margin:14px 0 0}
.nw-subtotal strong{color:var(--ink);font-size:17px}
.nw-state-msg{font-size:16.5px;line-height:1.55;color:#d6deea;max-width:720px}
.nw-state-links{margin-top:10px;font-size:15px}
.nw-state-links a{color:#8ccbff;font-weight:600}
.nw-privacy{border-left:4px solid var(--accent);background:var(--surface-muted)}
.btn-small{padding:7px 13px;font-size:13.5px;border-radius:8px}
.nw-history-table td,.nw-statement td{white-space:nowrap}
.nw-total-row td{border-top:2px solid var(--ink)}
#nw-print-sheet{display:none}
@media print{
  /* v3.12.2: the .tool-wrap hide is scoped to the Net-Worth page (the only
     page with a #nw-print-sheet, which lives OUTSIDE .tool-wrap). Unscoped,
     it blanked the print sheet of every other tool — their .print-head,
     .print-inputs and verdict panels all live INSIDE .tool-wrap. */
  .tool-hero,.breadcrumb{display:none!important}
  body:has(#nw-print-sheet) .tool-wrap{display:none!important}
  #nw-print-sheet{display:block!important;background:#fff;color:#0e1726;font-size:14px}
  #nw-print-sheet h2{color:#0e1726}
  #nw-print-sheet table{width:100%;border-collapse:collapse;margin:12px 0}
  #nw-print-sheet th,#nw-print-sheet td{border-bottom:1px solid #ccc;padding:6px 8px;text-align:left;color:#0e1726}
}
.verdict-panel .ba-note{color:#c3cdd9}

/* ===== v2.7: verified-figure stamps, example presets, share bar, print sheets =====
   Stamps are filled at runtime from assets/figures-v8.js (one registry file);
   an unfilled stamp hides itself so a registry miss never leaves a gap. */
.fig-stamp{font-size:12.5px;line-height:1.5;color:var(--ink-soft);border-left:3px solid var(--gold);
  padding:2px 0 2px 9px;margin:10px 0 4px;max-width:760px}
.fig-stamp:empty{display:none}
.fig-stamp a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.fig-stamp strong{color:var(--ink);font-weight:700}
.preset-bar{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;background:var(--surface-muted);
  border:1px solid var(--border);border-radius:12px;padding:12px 16px;margin:0 0 18px}
.preset-btn{background:var(--surface);color:var(--accent-dark);border:1.5px solid var(--accent-dark);
  border-radius:99px;padding:9px 18px;font-size:14.5px;font-weight:700;cursor:pointer;min-height:44px}
.preset-btn:hover{background:var(--accent-dark);color:#fff}
.preset-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.preset-note{font-size:13.5px;color:var(--ink-soft);flex:1 1 260px}
.share-bar{border:1px dashed var(--border);border-radius:12px;padding:14px 16px;margin:18px 0;background:var(--surface)}
.share-btn{background:var(--ink);color:#fff;border:none;border-radius:99px;padding:10px 20px;
  font-size:14.5px;font-weight:700;cursor:pointer;min-height:44px}
.share-btn:hover{background:var(--accent-deep)}
.share-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.share-note{font-size:13.5px;color:var(--ink-soft);margin:8px 0 0}
.share-status{font-size:13.5px;font-weight:700;color:var(--green);margin-left:10px}
[data-theme="dark"] .share-status{color:#8fd6ae}
[data-theme="dark"] .preset-btn{color:#8ccbff;border-color:#8ccbff}
[data-theme="dark"] .share-btn,[data-theme="dark"] .compare-save-a{background:#e6eaf0;color:#0e1726}
[data-theme="dark"] .share-btn:hover,[data-theme="dark"] .compare-save-a:hover{background:var(--accent-deep);color:#fff}
.print-head,.print-inputs{display:none}
.sev-breakdown{font-size:14.5px;background:var(--surface-muted);border:1px solid var(--border);
  border-radius:10px;padding:12px 14px;margin:10px 0 0}
.sev-breakdown:empty{display:none}
@media print{
  body.has-print-sheet{background:#fff!important;color:#0e1726!important}
  body.has-print-sheet .tool-hero,body.has-print-sheet .tool-panel,body.has-print-sheet .preset-bar,
  body.has-print-sheet .share-bar,body.has-print-sheet .cluster-strip,body.has-print-sheet .fig-stamp,
  body.has-print-sheet h2,body.has-print-sheet .disclaimer{display:none!important}
  body.has-print-sheet .print-head{display:block;border-bottom:2.5px solid #0e1726;padding-bottom:10px;margin-bottom:14px}
  body.has-print-sheet .print-head .ph-site{font-size:13px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#4f5b6b}
  body.has-print-sheet .print-head h1{font-size:24px;margin:4px 0 2px;color:#0e1726}
  body.has-print-sheet .print-head .ph-date{font-size:13px;color:#4f5b6b;margin:0}
  body.has-print-sheet .print-inputs{display:block;margin-bottom:16px}
  body.has-print-sheet .print-inputs h3{font-size:16px;margin:0 0 8px;color:#0e1726}
  body.has-print-sheet .print-inputs table{width:100%;border-collapse:collapse}
  body.has-print-sheet .print-inputs th,body.has-print-sheet .print-inputs td{border-bottom:1px solid #d5dbe3;
    padding:5px 8px;text-align:left;font-size:13.5px;color:#0e1726;background:#fff!important}
  body.has-print-sheet .verdict-panel{background:#fff!important;color:#0e1726!important;box-shadow:none;
    border:1.5px solid #0e1726;border-radius:10px}
  body.has-print-sheet .verdict-panel h3,body.has-print-sheet .verdict-panel .verdict-big{color:#0e1726!important}
  body.has-print-sheet .verdict-panel p,body.has-print-sheet .verdict-panel .sl{color:#4f5b6b!important}
  body.has-print-sheet .verdict-panel strong{color:#0e1726!important}
  body.has-print-sheet .result-box{box-shadow:none;border:1px solid #d5dbe3;background:#fff!important;color:#0e1726!important}
  body.has-print-sheet .result-box td,body.has-print-sheet .result-box th{background:#fff!important;color:#0e1726!important}
  body.has-print-sheet a{color:#0e1726!important;text-decoration:none}
}

/* ===== v2.8: Visual System v1 — chart kit (ff-charts-v4.js) =====
   Charts are inline SVG in .ff-chart-wrap. Colors come from the kit reading
   CSS variables at render time; the kit re-renders on theme change. Labels
   use --ink (passes 4.5:1 in both themes); series colors are never the sole
   carrier of meaning — every series has a direct label and a data table. */
.ff-chart-wrap{margin:22px 0 8px}
.ff-chart-title{margin:0 0 10px;font-size:17px}
.ff-chart-svg{width:100%;height:auto;display:block;background:var(--surface);border:1px solid var(--border);border-radius:12px}
.ff-chart-svg:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.ff-chart-note{font-size:14px;color:var(--ink-soft);margin:8px 0 0}
.ff-chart-empty{font-size:15px;color:var(--ink-soft);background:var(--surface-muted);border:1px dashed var(--border);border-radius:12px;padding:16px 18px;margin:0}
.ff-chart-data{margin-top:10px;font-size:14px}
.ff-chart-data summary{cursor:pointer;color:var(--accent-dark);font-weight:700}
[data-theme="dark"] .ff-chart-data summary{color:#8ccbff}
.ff-chart-data summary:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.ff-chart-data .ff-data-table{margin-top:10px;font-size:14px}
.ff-data-table{width:100%;border-collapse:collapse}
.ff-data-table th,.ff-data-table td{border:1px solid var(--border);padding:7px 10px;text-align:left;background:var(--surface)}
.ff-data-table th{background:var(--surface-muted)}
@media(max-width:440px){
  .ff-chart-title{font-size:16px}
  .ff-chart-data .ff-data-table{font-size:13px}
}
@media print{
  .ff-chart-svg{background:#fff}
  .ff-chart-data{display:block}
}

/* ===== v2.9: Assist Layer — synced sliders + state fills ===== */
.ff-slider{display:block;width:100%;margin:10px 0 2px;accent-color:#b42a21;cursor:pointer}
.ff-slider:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
.ff-slider-row{display:flex;justify-content:space-between;font-size:12.5px;color:var(--ink-soft);margin:0 0 2px}
[data-theme="dark"] .ff-slider{accent-color:#e2574b}
.ff-assist-note{font-size:14px;color:var(--ink-soft);margin:8px 0 0}
.ff-assist-note strong{color:var(--ink)}
@media(max-width:440px){
  .ff-slider{margin-top:8px}
}
@media print{
  .ff-slider,.ff-slider-row{display:none}
}

/* Phase 3 (v3.7): scenario A/B compare panel + dual share buttons */
.compare-bar{border:1px dashed var(--border);border-radius:12px;padding:14px 16px;margin:18px 0;background:var(--surface)}
.compare-bar .btn,.compare-bar .share-btn{margin-right:8px;margin-bottom:6px}
.compare-save-a,.compare-clear-a{background:var(--ink);color:#fff;border:none;border-radius:99px;padding:10px 20px;font-size:15px;font-weight:700;cursor:pointer;margin-right:8px;margin-bottom:6px}
.compare-clear-a{background:transparent;color:var(--ink);border:1px solid var(--border)}
.compare-save-a:hover{background:var(--accent-deep)}
.compare-clear-a:hover{border-color:var(--ink)}
.compare-save-a:focus-visible,.compare-clear-a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.compare-status{font-size:13.5px;color:var(--ink-soft)}
.compare-panel{margin:18px 0}
.compare-inner{border:1px solid var(--border);border-radius:12px;padding:14px 16px;background:var(--surface)}
.compare-inner h4{margin:0 0 6px;font-size:16px}
.compare-note{font-size:13.5px;color:var(--ink-soft);margin:0 0 10px}
.compare-inner .compare-table{width:100%;border-collapse:collapse;font-size:14px}
.compare-inner .compare-table th,.compare-inner .compare-table td{padding:8px 10px;text-align:left;border-bottom:1px solid var(--border)}
.compare-inner .compare-table thead th{font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:var(--ink-soft)}
.compare-inner .compare-table tbody tr:last-child th,.compare-inner .compare-table tbody tr:last-child td{border-bottom:none}
.delta-pos{color:#1e7d32;font-weight:700}
.delta-neg{color:#b42a21;font-weight:700}
[data-theme="dark"] .delta-pos{color:#7ddb8a}
[data-theme="dark"] .delta-neg{color:#8ccbff}
.share-btn.alt{background:transparent;color:var(--ink);border:1px solid var(--border)}
.share-btn.alt:hover{border-color:var(--ink);background:transparent}
.share-note-extra{font-weight:700}
@media print{
  body.has-print-sheet .compare-bar{display:none}
  body.has-print-sheet .compare-panel{display:none}
}

/* ============================================================
   v3.12 NAV — mega-menu (nav2), rollout build.
   Approved adjustments baked in: no guide/tool counts anywhere
   in the menu; on mobile (<=900px) the menu lists categories and
   subcategories only (featured links + tools rail are desktop
   only, hidden by the media rule at the end of this section).
   The .t2 tool visual system ships in a later phase and will be
   appended to this file in its own delimited section.
   ============================================================ */

/* ---------- A. Mega-menu ---------- */
.nav2-drop{background:#fff;border:1px solid var(--border);border-radius:16px;
  box-shadow:0 24px 48px rgba(14,23,38,.18);padding:20px 22px;z-index:70}
.nav2-cells{display:grid;gap:18px 26px}
.nav2-cells--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.nav2-cells--2{grid-template-columns:repeat(2,minmax(0,1fr))}
.nav2-cell{min-width:0}
.main-nav a.nav2-sub{display:flex;flex-direction:column;gap:1px;padding:2px 0 7px;white-space:normal;
  font-size:15.5px;font-weight:800;color:var(--ink);border-radius:0}
.main-nav a.nav2-sub:hover{background:none;color:var(--accent-dark)}
.main-nav a.nav2-feat{display:block;padding:3.5px 0;font-size:13.5px;font-weight:500;
  color:var(--ink-soft);white-space:normal;border-radius:0;line-height:1.35}
.main-nav a.nav2-feat:hover{background:none;color:var(--accent-dark);text-decoration:underline}
.nav2-rail{border-left:1px solid var(--border);padding-left:22px}
.nav2-rail-h{margin:2px 0 8px;font-size:12px;font-weight:800;letter-spacing:1.2px;
  text-transform:uppercase;color:var(--ink-soft)}
.main-nav a.nav2-tool{display:block;padding:4.5px 0;font-size:14px;font-weight:700;color:var(--ink);border-radius:0;white-space:normal}
.main-nav a.nav2-tool:hover{background:none;color:var(--accent-dark)}
.main-nav a.nav2-all{display:inline-block;margin-top:10px;padding:7px 13px;font-size:13.5px;
  font-weight:800;color:#fff;background:var(--accent-dark);border-radius:99px}
.main-nav a.nav2-all:hover{background:var(--accent-deep);color:#fff}
@media (min-width:901px){
  .nav2-drop{position:absolute;top:calc(100% + 10px);width:min(920px,94vw);
    grid-template-columns:minmax(0,1fr) 218px;column-gap:26px}
  .nav2-drop--left{left:0}
  .nav2-drop--center{left:50%;transform:translateX(-50%)}
  .nav2-drop--right{right:0;left:auto}
  .nav2-group:focus-within .nav2-drop{display:grid}
}
@media (min-width:901px) and (hover:hover){
  .nav2-group:hover .nav2-drop,.nav2-group:focus-within .nav2-drop{display:grid}
}
@media (max-width:900px){
  .nav2-drop{position:static;width:auto;box-shadow:none;border:none;border-radius:0;
    border-top:1px solid #e3e7ed;padding:4px 0 10px;background:var(--bg)}
  .nav2-group.open .nav2-drop{display:flex;flex-direction:column}
  .nav2-cells{display:flex;flex-direction:column;gap:0}
  .nav2-cell{border-bottom:1px solid #e8ebf0;padding:2px 0 6px}
  .main-nav a.nav2-sub{flex-direction:column;align-items:flex-start;justify-content:center;gap:1px;
    min-height:52px;padding:8px 20px 7px 36px;font-size:16.5px;line-height:1.25}
  .main-nav a.nav2-feat{min-height:40px;padding:7px 20px 7px 52px;font-size:14.5px;display:flex;align-items:center}
  .nav2-rail{border-left:none;border-top:1px solid #e3e7ed;padding:10px 0 2px;margin-top:4px}
  .nav2-rail-h{padding:0 20px 0 36px}
  .main-nav a.nav2-tool{min-height:42px;padding:8px 20px 8px 36px;display:flex;align-items:center;font-size:15px}
  .main-nav a.nav2-all{margin:8px 20px 4px 36px;text-align:center;padding:10px 13px}
}
/* Dark mode: the masthead (and its panels) stay light — no nav2 dark overrides. */

@media (max-width:900px){
  /* Mobile menu: categories and subcategories only. */
  .main-nav a.nav2-feat{display:none}
  .nav2-rail{display:none}
}

/* ============================================================
   v3.12 release-QA fixes — D1 + D2 (nav layout only; no markup
   or JS changes, drop content/typography untouched).
   D1: the base .main-nav rule sets flex-wrap:wrap for the old
   desktop row layout. The <=900px column block never reset it,
   so an opened accordion group wrapped sideways into off-screen
   flex columns instead of scrolling. nowrap restores the
   intended vertical scroll (overflow-y:auto already set there).
   (.nav-group keeps its deliberate wrap: its drop wraps below
   the category row inside the group — that IS the accordion.)
   D2: (a) drops are re-anchored from their narrow parent group
   to the sticky header (.nav-group becomes position:static on
   desktop, so .site-header is the containing block) and every
   drop is viewport-centered — at width min(920px,94vw) a
   centered drop cannot overflow either edge at any width
   >=901px, and the page scrollWidth never grows.
   (b) the top-level nav stays on ONE row at >=901px: a stacked
   masthead tier (901–1269px: brand + toggles on row 1, nav on
   its own full-width row) and a compact single-line tier
   (>=1270px: header widens to 1440px, brand capped at the
   ~190px it already rendered at via flex-shrink, nav type
   13.5px). Hover/focus-within open rules stay scoped to
   @media (min-width:901px) and (hover:hover) above — none here.
   ============================================================ */
@media (max-width:900px){
  .main-nav{flex-wrap:nowrap}
}
@media (min-width:901px){
  .main-nav{flex-wrap:nowrap}
  .nav-group{position:static}
  .nav2-drop.nav2-drop--left,.nav2-drop.nav2-drop--center,.nav2-drop.nav2-drop--right{
    left:50%;right:auto;transform:translateX(-50%)}
}
@media (min-width:901px) and (max-width:1269px){
  .header-in{flex-wrap:wrap}
  .main-nav{order:3;flex:1 1 100%}
  .search-toggle{order:1;margin-left:auto}
  .theme-toggle{order:2}
}
@media (min-width:901px) and (max-width:1099px){
  .header-in{padding:10px 12px;gap:12px}
  .main-nav{gap:2px}
  .main-nav a{font-size:13px;padding:8px 7px}
  .main-nav a.nav-cat{font-size:13px;padding:8px 3px 8px 6px}
}
@media (min-width:1100px) and (max-width:1269px){
  .main-nav{gap:3px}
  .main-nav a{font-size:14px;padding:8px 8px}
  .main-nav a.nav-cat{font-size:14px;padding:8px 4px 8px 8px}
}
@media (min-width:1270px){
  .header-in{max-width:1440px}
  .header-search-form{max-width:1440px}
  .brand{flex:none}
  .brand img{width:190px;height:33px}
  .main-nav{gap:2px}
  .main-nav a{font-size:13.5px;padding:8px 7px}
  .main-nav a.nav-cat{font-size:13.5px;padding:8px 4px 8px 8px}
}

/* ============================================================
   v3.12.1 HOTFIX — mobile accordion drop width (iOS Safari).
   Diagnosis: research/v3121-hotfix-diagnosis.md. The nav2
   <=900px block above set .nav2-drop{width:auto}, overriding
   the v1.4 drop's width:100%; with the default flex:0 1 auto
   inside the row/wrap .nav-group, the drop's main size was its
   intrinsic CONTENT width (247-322px, never the panel width),
   and flex line breaking over content-measured hypothetical
   sizes — which depend on platform font metrics — decided
   whether it wrapped below the category row or squeezed onto
   the same line beside the label (Debt & Credit on iOS).
   Fix: pin the drop to a definite flex-basis of 100% with
   shrink disabled, so it always occupies its own full-width
   line below the category row in every engine, independent
   of content size and font metrics. Desktop rules untouched.
   ============================================================ */
@media (max-width:900px){
  .main-nav .nav2-drop{flex:0 0 100%;width:100%;max-width:100%}
}

/* ============================================================
   v3.12 phase 2 — Tool visual system (t2), rolled out to all
   29 tools from the approved Balance Transfer prototype.
   Adaptations vs the prototype block are marked [rollout]:
   label.fl field variants, select/textarea/date coverage,
   h3 step chips, run-button ID group, .stat.light scoping.
   Step chips are opt-in via a .t2s class on the tool wrapper:
   they fire only on the 12 tools whose panel headings carry no
   numbering of their own. Tools with hand-numbered headings
   (mortgage, vehicle, TSP planner, SS, CD, FIRE, etc.), the
   Beneficiary Audit (legend-titled cards), Debt Payoff (debt
   cards carry their own numbers) and Next-Dollar (its result
   panel is a .tool-panel) keep the .t2 treatment without chips.
   ============================================================ */

/* ---------- B. Tool visual system (t2) ---------- */
.t2{counter-reset:t2step}
.t2 .tool-panel{
  background:linear-gradient(180deg,#ffffff 0%,#f8f9fb 100%);
  border:1px solid #dde1e7;border-top:4px solid var(--gold);border-radius:16px;
  padding:24px 24px 26px;margin:22px 0;box-shadow:0 10px 26px rgba(14,23,38,.07)}
/* [rollout] a verdict panel that also carries .tool-panel (Job-Loss
   Runway's generated result) keeps its dark verdict surface — the
   light .t2 panel gradient must not wash out its cream text. */
.t2 .tool-panel.verdict-panel{background:linear-gradient(135deg,#18243a,#0e1726);color:#e6eaf0}
.t2 .tool-panel.verdict-panel.verdict-lose{background:linear-gradient(135deg,#3b1d21,#2a1418)}
.t2 .tool-panel.verdict-panel.verdict-flat{background:linear-gradient(135deg,#1e2838,#131b28)}
/* [rollout] children of a verdict panel that carry their own light
   surfaces keep verdict-context colors: callouts stay translucent
   with the base verdict note color, and chart data tables (light
   cell backgrounds) take ink text instead of inherited cream. */
.t2 .verdict-panel .ba-note{background:rgba(255,255,255,.05);color:#c3cdd9}
.t2 .verdict-panel .ff-data-table{color:var(--ink)}
.t2 .verdict-panel .ff-chart-note{color:#aab5c4}
.t2 .verdict-panel .ff-chart-data summary{color:#8ccbff}
.t2 .verdict-panel a{color:#8ccbff}
.t2 .tool-panel>h2{
  display:flex;align-items:center;gap:12px;margin:0 0 16px;
  font-size:20px;line-height:1.25;letter-spacing:-.2px}
.t2s .tool-panel:not(.verdict-panel)>h2::before{
  counter-increment:t2step;content:counter(t2step);
  flex:none;width:32px;height:32px;border-radius:50%;
  background:var(--ink);color:#fff;font-size:16px;font-weight:800;
  display:inline-flex;align-items:center;justify-content:center;
  box-shadow:0 3px 8px rgba(14,23,38,.25)}
/* [rollout] h3-headed panels (tp-icon family) get the same step chip
   under the same .t2s opt-in. */
.t2 .tool-panel>h3{
  display:flex;align-items:center;gap:12px;margin:0 0 16px;
  font-size:20px;line-height:1.25;letter-spacing:-.2px}
.t2s .tool-panel:not(.verdict-panel)>h3::before{
  counter-increment:t2step;content:counter(t2step);
  flex:none;width:32px;height:32px;border-radius:50%;
  background:var(--ink);color:#fff;font-size:16px;font-weight:800;
  display:inline-flex;align-items:center;justify-content:center;
  box-shadow:0 3px 8px rgba(14,23,38,.25)}
.t2 .field-grid{gap:18px}
.t2 .field label{display:block;font-size:14.5px;font-weight:700;color:var(--ink);
  line-height:1.35;margin-bottom:7px}
.t2 .field input[type=number],.t2 .field input[type=text],.t2 .field input[type=date],
.t2 .field select,.t2 .field textarea{
  width:100%;background:#fff;border:1.5px solid #cfd6df;border-radius:12px;
  padding:13px 14px;font-size:17px;font-weight:600;color:var(--ink);min-height:52px;
  box-shadow:inset 0 1px 3px rgba(14,23,38,.05)}
.t2 .field input:focus,.t2 .field select:focus,.t2 .field textarea:focus{
  outline:none;border-color:var(--accent);
  box-shadow:0 0 0 3.5px rgba(226,58,46,.20)}
/* [rollout] label.fl variant — same tokens for label-wrapped fields */
.t2 label.fl{font-size:14.5px;font-weight:700;line-height:1.35}
.t2 label.fl input[type=number],.t2 label.fl input[type=text],.t2 label.fl input[type=date],
.t2 label.fl select,.t2 label.fl textarea{
  width:100%;background:#fff;border:1.5px solid #cfd6df;border-radius:12px;
  padding:13px 14px;font-size:17px;font-weight:600;color:var(--ink);min-height:52px;
  box-shadow:inset 0 1px 3px rgba(14,23,38,.05)}
.t2 label.fl input:focus,.t2 label.fl select:focus,.t2 label.fl textarea:focus{
  outline:none;border-color:var(--accent);
  box-shadow:0 0 0 3.5px rgba(226,58,46,.20)}
.t2 input[type=range].ff-slider{height:10px;margin-top:12px;border-radius:99px;
  background:linear-gradient(90deg,#e8d5ae,#dfc493);cursor:pointer}
.t2 input[type=range].ff-slider::-webkit-slider-thumb{-webkit-appearance:none;width:30px;height:30px;
  border-radius:50%;background:var(--accent);border:3.5px solid #fff;
  box-shadow:0 3px 10px rgba(14,23,38,.35);cursor:grab}
.t2 input[type=range].ff-slider::-moz-range-thumb{width:26px;height:26px;border-radius:50%;
  background:var(--accent);border:3.5px solid #fff;box-shadow:0 3px 10px rgba(14,23,38,.35);cursor:grab}
.t2 input[type=range].ff-slider:focus-visible{outline:2.5px solid var(--accent-dark);outline-offset:5px}
.t2 .ff-slider-row{display:flex;justify-content:space-between;margin-top:5px;
  font-size:12.5px;font-weight:700;color:var(--ink-soft);letter-spacing:.3px}
.t2 .ba-note{background:#fef6e4;border-left:4px solid var(--gold);border-radius:0 10px 10px 0;
  padding:12px 15px;font-size:14.5px;line-height:1.55;color:var(--ink-soft);margin:16px 0 4px}
.t2 label.ck{display:flex;gap:11px;align-items:flex-start;background:#fff;
  border:1.5px solid #cfd6df;border-radius:12px;padding:13px 15px;margin-top:14px;
  font-size:15px;font-weight:600;line-height:1.45;cursor:pointer}
.t2 label.ck input[type=checkbox]{width:22px;height:22px;flex:none;margin:1px 0 0;
  accent-color:var(--accent-dark);cursor:pointer}
.t2 .preset-bar{display:flex;gap:14px;align-items:center;flex-wrap:wrap;
  background:var(--surface-muted);border:1px dashed #cdbb96;border-radius:12px;
  padding:13px 16px;margin:18px 0 4px}
.t2 .preset-btn{background:var(--ink);color:#fff;border:none;border-radius:99px;
  padding:10px 20px;font-size:14.5px;font-weight:800;cursor:pointer;
  box-shadow:0 5px 14px rgba(14,23,38,.22)}
.t2 .preset-btn:hover{background:var(--accent-deep);color:#fff}
.t2 .preset-note{font-size:13.5px;color:var(--ink-soft);line-height:1.5;flex:1;min-width:220px}
/* [rollout] the prototype's #bt-run rule, generalized to every tool's
   primary run/calculate button (IDs are engine-queried and stable).
   Secondary module buttons (e.g. #ss-est-paste-run) are excluded. */
.t2 #bt-run,.t2 #ba-run,.t2 #optimizer-run,.t2 #cd-run,.t2 #ci-run,.t2 #cb_run,
.t2 #dp-run,.t2 #dg-run,.t2 #ef-run,.t2 #lp-run,.t2 #runway-run,.t2 #fa-run,
.t2 #fs-run,.t2 #fire-run,.t2 #gr-run,.t2 #ha-run,.t2 #jr-run,.t2 #li-run,
.t2 #mc-run,.t2 #nd-run,.t2 #rvb_run,.t2 #rl-run,.t2 #sg-run,.t2 #ss-run,
.t2 #ss_recon_run,.t2 #thp_run,.t2 #tp-run,.t2 #vp-run{
  width:100%;padding:17px 24px;font-size:18px;border-radius:13px;margin-top:6px;
  box-shadow:0 12px 26px rgba(185,37,26,.30);letter-spacing:.1px}
.t2 #bt-run::after,.t2 #ba-run::after,.t2 #optimizer-run::after,.t2 #cd-run::after,
.t2 #ci-run::after,.t2 #cb_run::after,.t2 #dp-run::after,.t2 #dg-run::after,
.t2 #ef-run::after,.t2 #lp-run::after,.t2 #runway-run::after,.t2 #fa-run::after,
.t2 #fs-run::after,.t2 #fire-run::after,.t2 #gr-run::after,.t2 #ha-run::after,
.t2 #jr-run::after,.t2 #li-run::after,.t2 #mc-run::after,.t2 #nd-run::after,
.t2 #rvb_run::after,.t2 #rl-run::after,.t2 #sg-run::after,.t2 #ss-run::after,
.t2 #ss_recon_run::after,.t2 #thp_run::after,.t2 #tp-run::after,.t2 #vp-run::after{
  content:" \2192"}
.t2 .fig-stamp{border-top:1px solid var(--border);padding-top:10px;margin-top:18px;
  font-size:12.5px;color:var(--ink-soft);letter-spacing:.3px}
/* Result stack */
.t2 .verdict-panel{border-top:5px solid var(--gold);padding:28px 28px 24px}
.t2 .verdict-panel h3{font-size:21px;letter-spacing:-.2px}
.t2 .verdict-panel p{font-size:16.5px;line-height:1.6}
/* [rollout] gold top border parity for the .winner verdict variant */
.t2 .winner{border-top:5px solid var(--gold)}
.t2 .stat-grid{grid-template-columns:repeat(auto-fit,minmax(168px,1fr));gap:13px;margin-top:20px}
/* [rollout] dark-context stats only — .stat.light keeps its light
   ground and ink text, gaining just the gold top rule. */
.t2 .stat:not(.light){background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.16);
  border-top:3px solid var(--gold);border-radius:13px;padding:15px 16px 13px}
.t2 .stat:not(.light) .sv{font-size:29px;font-weight:800;letter-spacing:-.4px;color:#fff;line-height:1.15}
.t2 .stat:not(.light) .sl{font-size:11.5px;margin-top:5px}
.t2 .stat.light{border-top:3px solid var(--gold)}
.t2 .result-box{background:#fff;border:1px solid #dde1e7;border-top:4px solid var(--ink);
  border-radius:15px;padding:22px 24px;box-shadow:0 8px 22px rgba(14,23,38,.06)}
.t2 .result-box h3{margin:0 0 12px;font-size:18.5px;line-height:1.35}
.t2 .dg-table{font-size:15px}
.t2 .dg-table td{padding:9px 8px}
.t2 .dg-warn{background:#fef6e4;border-left:4px solid var(--gold);border-radius:0 10px 10px 0;
  padding:11px 14px;font-size:14.5px;color:var(--ink-soft)}
.t2 .share-bar,.t2 .compare-bar{background:var(--surface-muted);border:1px solid var(--border);
  border-radius:13px;padding:15px 17px;margin:16px 0}
.t2 .share-btn,.t2 .compare-save-a{box-shadow:0 5px 14px rgba(14,23,38,.20)}
.t2 .share-note{font-size:13px;color:var(--ink-soft);line-height:1.55;margin:10px 0 0}
/* [rollout] coupon-book credit rows: harmonize field borders */
.t2 .credit-row input[type=text],.t2 .credit-row input[type=number]{
  border:1.5px solid #cfd6df;border-radius:10px}
@media (max-width:640px){
  .t2 .tool-panel{padding:19px 16px 21px}
  .t2 .verdict-panel{padding:22px 18px 18px}
  .t2 .result-box{padding:18px 16px}
  .t2 .stat:not(.light) .sv{font-size:25px}
}
/* Dark: overrides only; panels/inputs follow the standing dark palette */
[data-theme="dark"] .t2 .tool-panel{background:var(--surface);border-color:var(--border);
  border-top-color:var(--gold);box-shadow:0 10px 26px rgba(0,0,0,.35)}
[data-theme="dark"] .t2 .tool-panel.verdict-panel{background:linear-gradient(135deg,#18243a,#0e1726);color:#e6eaf0}
[data-theme="dark"] .t2 .tool-panel.verdict-panel.verdict-lose{background:linear-gradient(135deg,#3b1d21,#2a1418)}
[data-theme="dark"] .t2 .tool-panel.verdict-panel.verdict-flat{background:linear-gradient(135deg,#1e2838,#131b28)}
[data-theme="dark"] .t2 .verdict-panel .ba-note{background:rgba(255,255,255,.05);color:#c3cdd9}
[data-theme="dark"] .t2s .tool-panel>h2::before,
[data-theme="dark"] .t2s .tool-panel>h3::before{background:#e6eaf0;color:#0e1726}
[data-theme="dark"] .t2 .field input[type=number],[data-theme="dark"] .t2 .field input[type=text],
[data-theme="dark"] .t2 .field input[type=date],[data-theme="dark"] .t2 .field select,
[data-theme="dark"] .t2 .field textarea{
  background:#0b111b;border-color:#2a3850;color:var(--ink);box-shadow:inset 0 1px 3px rgba(0,0,0,.5)}
[data-theme="dark"] .t2 .field input:focus,[data-theme="dark"] .t2 .field select:focus,
[data-theme="dark"] .t2 .field textarea:focus{border-color:var(--accent);
  box-shadow:0 0 0 3.5px rgba(226,58,46,.35)}
[data-theme="dark"] .t2 label.fl input[type=number],[data-theme="dark"] .t2 label.fl input[type=text],
[data-theme="dark"] .t2 label.fl input[type=date],[data-theme="dark"] .t2 label.fl select,
[data-theme="dark"] .t2 label.fl textarea{
  background:#0b111b;border-color:#2a3850;color:var(--ink);box-shadow:inset 0 1px 3px rgba(0,0,0,.5)}
[data-theme="dark"] .t2 label.fl input:focus,[data-theme="dark"] .t2 label.fl select:focus,
[data-theme="dark"] .t2 label.fl textarea:focus{border-color:var(--accent);
  box-shadow:0 0 0 3.5px rgba(226,58,46,.35)}
[data-theme="dark"] .t2 input[type=range].ff-slider{background:linear-gradient(90deg,#2a3850,#3a5578)}
[data-theme="dark"] .t2 .ff-slider-row{color:var(--ink-soft)}
[data-theme="dark"] .t2 .ba-note,[data-theme="dark"] .t2 .dg-warn{background:#33270f;color:var(--ink-soft)}
[data-theme="dark"] .t2 label.ck{background:#0b111b;border-color:#2a3850;color:var(--ink)}
[data-theme="dark"] .t2 .preset-bar{background:var(--surface-muted);border-color:#2a3850}
[data-theme="dark"] .t2 .preset-btn{background:#e6eaf0;color:#0e1726}
[data-theme="dark"] .t2 .result-box{background:var(--surface);border-color:var(--border);border-top-color:#e6eaf0}
[data-theme="dark"] .t2 .share-bar,[data-theme="dark"] .t2 .compare-bar{background:var(--surface-muted)}
[data-theme="dark"] .t2 .credit-row{background:var(--surface);border-color:var(--border)}
[data-theme="dark"] .t2 .credit-row input[type=text],[data-theme="dark"] .t2 .credit-row input[type=number]{
  background:#0b111b;border-color:#2a3850;color:var(--ink)}

/* ============================================================
   v3.12.2 PRINT — result containers that don't use .verdict-panel
   markup get the same print treatment the .verdict-panel rules
   above give the standard tools (white sheet, ink text), so the
   result content reaches paper even with background graphics off.
   - Beneficiary Audit renders its score + fix list into a plain
     .tool-panel inside #ba-results; the print-sheet block hides
     .tool-panel, so the fix list never printed. Re-shown here,
     print-styled; its on-screen print button is hidden.
   - Benefits Optimizer renders into .winner (a dark gradient
     panel with cream text on screen) and .trap callouts; both
     are normalized to the sheet treatment.
   ============================================================ */
@media print{
  body.has-print-sheet #ba-results .tool-panel{display:block!important;background:#fff!important;
    color:#0e1726!important;box-shadow:none;border:1.5px solid #0e1726;border-radius:10px}
  body.has-print-sheet #ba-results .tool-panel h3,body.has-print-sheet #ba-results .tool-panel h4{color:#0e1726!important}
  body.has-print-sheet #ba-results .tool-panel p,body.has-print-sheet #ba-results .tool-panel li{color:#0e1726!important}
  body.has-print-sheet #ba-results .tool-panel .ba-fine{color:#4f5b6b!important}
  body.has-print-sheet #ba-results button{display:none!important}
  body.has-print-sheet .tool-wrap .winner{background:#fff!important;color:#0e1726!important;
    box-shadow:none;border:1.5px solid #0e1726;border-radius:10px}
  body.has-print-sheet .tool-wrap .winner h3,body.has-print-sheet .tool-wrap .winner .verdict-big{color:#0e1726!important}
  body.has-print-sheet .tool-wrap .winner .verdict-big .vb-sub{color:#4f5b6b!important}
  body.has-print-sheet .tool-wrap .winner p{color:#0e1726!important}
  body.has-print-sheet .tool-wrap .winner strong{color:#0e1726!important}
  body.has-print-sheet .tool-wrap .trap{background:#fff!important;color:#0e1726!important}
}

/* ============================================================
   v3.12.2 NAV — hover pill centering (desktop >=901px only).
   Measured defect: .nav-cat horizontal padding was asymmetric
   (8px 3px 8px 6px at 901-1099px; 8px 4px 8px 8px at >=1100px),
   which pushed the link text 1.5-2px right of the pill's center;
   and the top-level links inherited the body line-height (1.65),
   inflating the pill ~22px of line box around ~15px of text so
   the highlight floated loose around the glyphs. Fix: split each
   tier's left+right padding sum evenly (item widths unchanged,
   so the one-row layout and the drop anchoring are untouched)
   and give the top-level items a tight line-height with flex
   centering. The <=900px accordion rules are not touched.
   ============================================================ */
@media (min-width:901px){
  .main-nav > a, .main-nav .nav-group > a.nav-cat{display:inline-flex;align-items:center;line-height:1.2}
}
@media (min-width:901px) and (max-width:1099px){
  .main-nav .nav-group > a.nav-cat{padding:8px 4.5px}
}
@media (min-width:1100px){
  .main-nav .nav-group > a.nav-cat{padding:8px 6px}
}

/* ============================================================
   v3.12.3 hotfix (Nov 24, 2026)
   H1 — desktop mega-menu closed before the pointer reached it.
   Root cause: drops are anchored to the sticky header
   (top: calc(100% + 10px)), leaving a dead band between the
   category label and the drop (20px in the stacked 901–1269px
   tier, 24px in the single-line >=1270px tier). The open rule
   is .nav2-group:hover, and that band belongs to neither the
   label nor the drop, so a real mouse moving down lost :hover
   and the drop vanished. Every drop, every desktop width.
   Fix: an invisible bridge on the drop itself (a child of the
   group, so hovering it keeps :hover) filling exactly that
   band — sized per tier so it never overlaps the category
   labels (lateral menu switching is unchanged). Scoped to the
   hover-capable desktop query like the open rule.
   H2 — in-article logo (About page) rendered dark ink on the
   dark background. Rule: the wordmark is never placed on dark.
   Fix: .logo-plate gives it the same white plate the footer
   logo already uses, in both themes.
   ============================================================ */
@media (min-width:901px) and (hover:hover){
  .nav2-drop::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:20px}
}
@media (min-width:1270px) and (hover:hover){
  .nav2-drop::before{height:24px}
}
.logo-plate{display:inline-block;background:#fff;border-radius:14px;padding:18px 22px;border:1px solid #dde1e7}
.logo-plate img{display:block;width:100%;height:auto}
/* H1b — hover intent (with the shared site script). When the script is active
   (html.js-nav2), the open state is the .is-hover class it manages,
   not raw :hover; keyboard :focus-within still opens. Without the
   script the :hover rule above (plus the bridge) applies unchanged. */
@media (min-width:901px) and (hover:hover){
  html.js-nav2 .nav2-group:not(.is-hover):not(:focus-within) .nav2-drop{display:none}
  html.js-nav2 .nav2-group.is-hover .nav2-drop{display:grid}
}

/* ============================================================
   v3.13.0 — Workbench redesign layer (Nov 2026)
   Direction B2, approved by the owner on the redesign canvas:
   cool neutral grays, slate ink, logo red for primary actions,
   blue links, Plus Jakarta Sans headings over Inter body,
   tabular numbers. Dark mode is slate (no browns, no pink) and
   the masthead goes dark with the reversed wordmark
   (logo-horizontal-reverse-v1.png), replacing the old
   pinned-light masthead rule. Visual layer only: no content,
   heading, link or URL changes ride on this file.
   ============================================================ */

/* ---------- 0. Fonts (self-hosted, SIL OFL 1.1) ---------- */
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;
  src:url(/assets/fonts/inter-var-latin-v1.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Plus Jakarta Sans";font-style:normal;font-weight:200 800;font-display:swap;
  src:url(/assets/fonts/jakarta-var-latin-v1.woff2) format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ---------- 1. Tokens ---------- */
:root{
  --ink:#0e1726; --ink-soft:#4f5b6b; --bg:#f4f5f7; --surface:#ffffff; --surface-muted:#eef1f5;
  --border:#dde1e7; --border-strong:#c9cfd8; --accent:#d7372d; --accent-dark:#b42a21; --accent-deep:#8f1f18;
  --dark:#0e1726; --dark-2:#162033; --link:#0b5cad; --link-hover:#084a8c; --good:#0f7a55; --gold:#a86a12;
  --radius:14px; --max:1200px;
  --font-body:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --font-head:"Plus Jakarta Sans","Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  --shadow:0 10px 30px rgba(14,23,38,.08); --shadow-lg:0 20px 44px rgba(14,23,38,.14);
}
[data-theme="dark"]{
  --ink:#e6eaf0; --ink-soft:#aab5c4; --bg:#0b111b; --surface:#131b28; --surface-muted:#1a2434;
  --border:#243042; --border-strong:#33425a; --accent:#d23c31; --accent-dark:#b42a21; --accent-deep:#8f1f18;
  --dark:#080d15; --dark-2:#131b28; --link:#8ccbff; --link-hover:#b9deff; --good:#7ee2b8; --gold:#e3b05c;
  --shadow:0 10px 30px rgba(0,0,0,.45); --shadow-lg:0 20px 44px rgba(0,0,0,.55); color-scheme:dark;
}
/* The pre-v3.13 masthead rule re-scoped light variables onto the header in
   dark mode. Re-scope the dark set back so header + market strip go dark. */
[data-theme="dark"] .site-header,[data-theme="dark"] .market-strip{
  --ink:#e6eaf0; --ink-soft:#aab5c4; --bg:#0b111b; --surface:#131b28; --surface-muted:#1a2434;
  --border:#243042; --accent:#d23c31; --accent-dark:#b42a21; --accent-deep:#8f1f18; color-scheme:dark;
}

/* ---------- 2. Base type ---------- */
body{font-family:var(--font-body);font-size:17px;line-height:1.65;background:var(--bg);color:var(--ink);
  -webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-feature-settings:"cv11"}
h1,h2,h3,h4,.rate-big,.tool-hero h1,.article-hero h1{font-family:var(--font-head);letter-spacing:-.02em}
h1{font-weight:800} h2{font-weight:800} h3{font-weight:700}
a{color:var(--link);text-underline-offset:2px}
a:hover{color:var(--link-hover)}
[data-theme="dark"] a{color:var(--link)}
[data-theme="dark"] a:hover{color:var(--link-hover)}
table,.rate-big,.stat,.ff-num,td,th{font-variant-numeric:tabular-nums}
.wrap{max-width:var(--max);padding:0 24px}
:focus-visible{outline:2px solid var(--link);outline-offset:2px}
[data-theme="dark"] :focus-visible{outline:2px solid var(--link);outline-offset:2px}
::selection{background:#cfe3fb;color:#0e1726}

/* ---------- 3. Buttons, tags, chips ---------- */
.btn{background:var(--accent);color:#fff!important;font-weight:600;border-radius:10px;padding:13px 22px;font-size:16px;
  transition:background-color .15s ease;font-family:var(--font-body)}
.btn:hover{background:var(--accent-dark)}
.btn.secondary{background:var(--surface);border:1px solid var(--border-strong);color:var(--ink)!important;padding:12px 21px}
.btn.secondary:hover{background:var(--surface-muted)}
.btn.dark{background:var(--ink);color:var(--bg)!important}
.tag{background:var(--surface-muted);border:1px solid var(--border);color:var(--ink-soft);font-size:12px;font-weight:700;
  letter-spacing:.5px;border-radius:99px;padding:3px 10px}
.eyebrow{color:var(--ink);background:var(--surface);border:1px solid var(--border);display:inline-block;
  text-transform:none;letter-spacing:0;font-size:13.5px;font-weight:600;padding:4px 12px;border-radius:99px}
.chip,.tool-chips span,.trust-chips span{background:var(--surface);border:1px solid var(--border);color:var(--ink);
  font-size:13px;font-weight:600;letter-spacing:0;border-radius:99px;padding:5px 12px}

/* ---------- 4. Header ---------- */
.site-header{background:var(--surface);border-bottom:1px solid var(--border)}
[data-theme="dark"] .site-header{background:#0f1622}
.brand .brand-dark{display:none}
[data-theme="dark"] .brand .brand-light{display:none}
[data-theme="dark"] .brand .brand-dark{display:block}
.main-nav a,.nav-cat{color:var(--ink);font-weight:600;border-radius:8px}
.main-nav a:hover,.nav-cat:hover{background:var(--surface-muted);color:var(--ink)}
[data-theme="dark"] .site-header a{color:var(--ink)}
[data-theme="dark"] .site-header a:hover{color:var(--ink)}
.search-toggle,.theme-toggle{width:44px;height:44px;border-radius:10px;background:var(--surface);border:1px solid var(--border);color:var(--ink)}
.search-toggle:hover,.theme-toggle:hover{background:var(--surface-muted);color:var(--ink)}
.header-search{background:var(--surface)}
.header-search-form input{background:var(--bg);color:var(--ink);border-color:var(--border-strong)}
.header-search-btn{background:var(--ink)!important;color:var(--bg)!important}
@media (min-width:901px){
  /* The top-level Tools link reads as the header's primary action. */
  .main-nav>a[href="/tools/"]{background:var(--ink);color:var(--bg)!important;padding-left:14px;padding-right:14px}
  .main-nav>a[href="/tools/"]:hover{background:#1e2a3d;color:#fff!important}
  [data-theme="dark"] .main-nav>a[href="/tools/"]{background:var(--ink);color:#0b111b!important}
  .nav2-group.is-hover>.nav-cat,.nav2-group:focus-within>.nav-cat{background:var(--surface-muted)}
}
@media (max-width:900px){
  .main-nav{background:var(--surface)}
  .main-nav>a,.nav-group{border-bottom-color:var(--border)}
  .nav-expand{background:var(--surface-muted);color:var(--ink)}
  .nav2-drop{background:var(--bg);border-top-color:var(--border)}
  .nav2-cell{border-bottom-color:var(--border)}
  .nav-toggle{background:var(--ink);color:var(--bg);border-color:var(--ink);width:44px;height:44px;padding:0;display:flex;align-items:center;justify-content:center}
  [data-theme="dark"] .nav-toggle{background:var(--ink);color:#0b111b}
}

/* ---------- 5. Mega-menu (desktop): tools rail on the left ---------- */
@media (min-width:901px){
  .nav2-drop{padding:0;overflow:visible;border-radius:14px;border:1px solid var(--border);background:var(--surface);
    box-shadow:var(--shadow-lg);grid-template-columns:260px minmax(0,1fr);column-gap:0}
  .nav2-cells{padding:22px 26px;gap:18px 28px;align-content:start}
  .nav2-rail{order:-1;border-left:none;background:#0e1726;padding:22px 22px 24px;border-radius:13px 0 0 13px}
  /* no overflow:hidden on the drop: it would clip the ::before hover bridge above it */
  [data-theme="dark"] .nav2-rail{background:#080d15}
  .nav2-rail-h{color:#9fb0c8;font-size:12px;letter-spacing:1.2px}
  .main-nav a.nav2-tool{color:#fff;font-size:14.5px;font-weight:600;padding:7px 10px;margin:0 -10px;border-radius:8px}
  .main-nav a.nav2-tool:hover{background:rgba(255,255,255,.08);color:#fff}
  .main-nav a.nav2-all{background:#fff;color:#0e1726!important;margin-top:14px;font-weight:700}
  .main-nav a.nav2-all:hover{background:#e6eaf0;color:#0e1726!important}
  .main-nav a.nav2-sub{font-family:var(--font-head);font-size:16px;font-weight:700;color:var(--ink)}
  .main-nav a.nav2-sub:hover{color:var(--link);background:none}
  .main-nav a.nav2-feat{font-size:14px;color:var(--ink-soft)}
  .main-nav a.nav2-feat:hover{color:var(--link);background:none}
}

/* ---------- 6. Market ticker ---------- */
.market-strip{background:var(--surface);border-bottom:1px solid var(--border)}
[data-theme="dark"] .market-strip{background:#0f1622}
.tv-fallback{background:var(--surface);color:var(--ink-soft)}
[data-theme="dark"] .tv-fallback{background:#0f1622}
.tv-fallback .tv-fb-label{background:var(--surface-muted);border-color:var(--border);color:var(--ink)}
.tv-fallback a,.market-caption a{color:var(--link)}
.market-caption{color:var(--ink-soft);max-width:var(--max);padding:2px 24px 5px}

/* ---------- 7. Sections, cards, breadcrumbs ---------- */
.section h2{font-size:clamp(26px,3vw,32px);letter-spacing:-.025em;line-height:1.2}
.section.alt{background:transparent}
.section.dark{background:var(--dark);color:#e6eaf0}
.section.dark .card{background:#162033;border-color:#26344b;color:#e6eaf0}
.section.dark .card p{color:#c3cedd}
.section.dark .tag{background:#1e2b40;border-color:#2d3d57;color:#c9d3e0}
.section.dark a{color:#8ccbff}
.card{border-radius:14px;border-color:var(--border);box-shadow:none;transition:border-color .15s ease,box-shadow .15s ease}
.card:hover{border-color:var(--border-strong)}
.card h3{font-size:18px}
.card a{color:var(--link)}
.card h3 a{color:var(--ink)}
.card h3 a:hover{color:var(--link)}
[data-theme="dark"] .card h3 a{color:var(--ink)}
.breadcrumbs ol{font-size:14px}
.breadcrumbs li+li:before{color:var(--ink-soft)}
.breadcrumbs a{color:var(--ink-soft);font-weight:500}
.breadcrumbs a:hover{color:var(--link)}
[data-theme="dark"] .breadcrumbs a:hover{color:var(--link)}
.lede,.section .lede{color:var(--ink-soft)}
.trust-band{background:var(--dark);color:#e6eaf0}
.trust-band .tb-head{color:#9fb0c8}
.trust-band .tb-text{color:#d6deea}
.strip{background:var(--dark)}
.strip a{color:#8ccbff}
.callout{background:var(--surface);border:1px solid var(--border);border-left:1px solid var(--border);border-radius:14px;
  box-shadow:inset 4px 0 0 var(--link)}
[data-theme="dark"] .callout{background:var(--surface)}
.mathbox{background:#0e1726;color:#e6eaf0;border-radius:12px}
.mathbox code{color:#ffd9a8}
.disclaimer{color:var(--ink-soft);border-top-color:var(--border)}

/* ---------- 8. Homepage ---------- */
body.home .hero-b{padding:56px 0 44px}
.hero-b .wrap{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:48px;align-items:center}
.hero-b h1{font-size:clamp(36px,5vw,56px);line-height:1.06;margin:14px 0 0;letter-spacing:-.035em;text-wrap:balance;color:var(--ink)}
.hero-b .sub{font-size:clamp(17px,1.6vw,19.5px);color:var(--ink-soft);max-width:560px;margin:18px 0 0}
.hero-b .hero-ctas{margin-top:26px}
.hero-b .trust-chips{margin-top:18px}
.hero-b .trust-chips span{background:transparent;color:var(--ink-soft);border-color:var(--border)}
.hcalc{background:var(--surface);border:1px solid var(--border);border-radius:16px;box-shadow:var(--shadow);padding:22px 24px}
.hcalc-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.hcalc-head h2{font-size:19px;margin:0;letter-spacing:-.01em}
.hcalc-head span{font-size:13px;color:var(--ink-soft)}
.hcalc-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}
.hcalc label{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:500;color:var(--ink-soft)}
.hcalc input,.hcalc select{font:inherit;font-size:16px;color:var(--ink);background:var(--surface);border:1px solid var(--border-strong);
  border-radius:8px;padding:9px 10px;min-height:44px;width:100%;font-variant-numeric:tabular-nums}
[data-theme="dark"] .hcalc input,[data-theme="dark"] .hcalc select{background:#0b111b}
.hcalc-out{margin-top:16px;background:var(--bg);border-radius:12px;padding:14px 18px;display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:6px}
.hcalc-out span{font-size:14px;color:var(--ink-soft)}
.hcalc-out output{font-family:var(--font-head);font-size:34px;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--ink)}
.hcalc-out output small{font-size:15px;font-weight:500;color:var(--ink-soft);letter-spacing:0}
.hcalc-more{display:inline-block;margin-top:12px;font-size:14.5px;font-weight:600}
.hcalc-note{margin:8px 0 0;font-size:12.5px;color:var(--ink-soft)}
@media (max-width:900px){
  .hero-b .wrap{grid-template-columns:1fr;gap:30px}
  body.home .hero-b{padding:34px 0 30px}
}
@media (max-width:520px){
  .hcalc-fields{grid-template-columns:1fr 1fr}
  .hcalc-fields label:first-child{grid-column:1/-1}
  .hero-b .hero-ctas .btn{display:block;text-align:center;width:100%}
}
body.home .section{padding:30px 0}
.sec-intro{margin:6px 0 0;color:var(--ink-soft)}
.sit-grid{gap:12px;margin-top:20px}
.sit-card{border-radius:14px;padding:18px;box-shadow:none;gap:14px;background:var(--surface);border-color:var(--border)}
.sit-card:hover{border-color:var(--border-strong);box-shadow:var(--shadow)}
.sit-ico{background:var(--surface-muted);color:var(--ink);border-radius:10px}
.sit-card:nth-child(4n+1) .sit-ico{background:#fdeceb;color:#b42a21}
.sit-card:nth-child(4n+2) .sit-ico{background:#e8f0fb;color:#0b5cad}
.sit-card:nth-child(4n+3) .sit-ico{background:#eef1f5;color:#0e1726}
.sit-card:nth-child(4n+4) .sit-ico{background:#e8f0fb;color:#0b5cad}
[data-theme="dark"] .sit-card .sit-ico{background:#1a2434;color:#e6eaf0}
[data-theme="dark"] .sit-card:nth-child(4n+1) .sit-ico{background:#3b1d21;color:#ffb4ab}
[data-theme="dark"] .sit-card:nth-child(4n+2) .sit-ico,[data-theme="dark"] .sit-card:nth-child(4n+4) .sit-ico{background:#16304d;color:#8ccbff}
.sit-card h3{font-size:16px}
.sit-card p{font-size:14px}
.sit-more{margin:14px 0 0;font-weight:600}
/* "Today" band as light stat tiles (markup unchanged for the weekly rate update) */
body.home .section.today{background:transparent;color:var(--ink)}
body.home .section.today .card{background:var(--surface);border-color:var(--border);color:var(--ink)}
body.home .section.today .card p{color:var(--ink-soft)}
body.home .section.today .tag{background:var(--surface-muted);border-color:var(--border);color:var(--ink-soft)}
body.home .section.today a{color:var(--link)}
body.home .section.today .card p.rate-big,.rate-big{color:var(--ink);font-family:var(--font-head);font-weight:800;font-size:44px}
.rate-big small{color:var(--ink-soft);font-family:var(--font-body)}
.rate-delta{color:var(--good)}
.deadline{color:var(--accent-dark)}
[data-theme="dark"] .deadline{color:#ff9a8f}
/* Tool showcase: slate icon tiles (inline legacy gradients overridden) */
.showcase-grid{gap:14px}
.showcase-grid .tool-card{border-radius:14px;overflow:hidden;padding:0}
.showcase-grid .tool-thumb{background:var(--ink)!important;width:76px;color:#fff}
[data-theme="dark"] .showcase-grid .tool-thumb{background:#1e2b40!important}
.showcase-grid .tool-thumb svg{width:30px;height:30px}
.showcase-grid .tc-body .tag{display:none}
.tc-outcome{color:var(--ink);font-weight:600}
[data-theme="dark"] .tc-outcome{color:var(--ink)}
.showcase-grid .tc-body h3 a{color:var(--ink)}
.cat-card .cat-ico{background:var(--surface-muted)!important;color:var(--ink)!important}
[data-theme="dark"] .cat-card .cat-ico{background:#1a2434!important;color:#e6eaf0!important}
.cat-card{border-top:3px solid var(--cat,var(--border))}
.cat-card .cat-subs-inline a,[data-theme="dark"] .cat-card .cat-subs-inline a{color:var(--link)}
.cat-meta{color:var(--ink-soft);font-size:14px;margin:8px 0 0}

/* ---------- 9. Guides: hero, body, On-this-page contents ---------- */
.article-hero{padding:30px 0 6px}
.article-hero h1{font-size:clamp(30px,4.2vw,46px);line-height:1.1;letter-spacing:-.03em;max-width:900px;text-wrap:balance}
.byline{color:var(--ink-soft)}
.article-body{font-size:17.5px}
.article-body h2{font-size:clamp(23px,2.4vw,28px);letter-spacing:-.02em;margin:40px 0 10px;scroll-margin-top:96px}
.article-body h3{font-size:20px}
.article-body p,.article-body li{line-height:1.72}
.article-body strong{color:var(--ink)}
.article-body table{border-radius:12px;border:1px solid var(--border);border-collapse:separate;border-spacing:0;overflow:auto}
.article-body th,.article-body td,.tool-wrap th,.tool-wrap td{border:0;border-bottom:1px solid var(--border);background:var(--surface)}
.article-body th,.tool-wrap th{background:var(--surface-muted);font-weight:600}
.article-body tr:last-child td{border-bottom:0}
.toc{margin:18px 0 6px;background:var(--surface);border:1px solid var(--border);border-radius:14px;font-size:15px}
.toc>summary{list-style:none;cursor:pointer;padding:12px 16px;font-size:12.5px;font-weight:700;letter-spacing:1.1px;text-transform:uppercase;color:var(--ink-soft);display:flex;justify-content:space-between;align-items:center;min-height:44px}
.toc>summary::-webkit-details-marker{display:none}
.toc>summary::after{content:"";width:9px;height:9px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin:-4px 4px 0 0;transition:transform .15s ease}
.toc[open]>summary::after{transform:rotate(-135deg);margin-top:4px}
.toc ol{list-style:none;margin:0;padding:0 8px 10px}
.toc li a{display:block;padding:6px 8px;border-radius:8px;color:var(--ink-soft);text-decoration:none;line-height:1.4}
.toc li a:hover{color:var(--ink);background:var(--surface-muted)}
.toc li a.is-active{color:var(--ink);font-weight:600;box-shadow:inset 2px 0 0 var(--accent)}
@media (min-width:1100px){
  main>.wrap:has(>.toc){display:grid;grid-template-columns:minmax(0,780px) 270px;column-gap:56px;align-items:start}
  main>.wrap:has(>.toc)>*{grid-column:1}
  main>.wrap:has(>.toc)>.toc{grid-column:2;grid-row:3 / span 2;position:sticky;top:96px;margin-top:28px;max-height:calc(100vh - 120px);overflow:auto}
  main>.wrap:has(>.toc)>.article-body{grid-row:3}
}

/* ---------- 10. Calculator pages ---------- */
.tool-hero{background:var(--surface)!important;color:var(--ink);border-bottom:1px solid var(--border);padding:26px 0 26px}
[data-theme="dark"] .tool-hero{background:#0f1622!important}
.tool-hero h1{color:var(--ink);font-size:clamp(30px,4vw,44px);letter-spacing:-.03em}
.tool-hero .tag{background:var(--surface-muted);color:var(--ink-soft);border-color:var(--border)}
.tool-hero .byline{color:var(--ink-soft)}
.tool-hero .byline a,[data-theme="dark"] .tool-hero .byline a{color:var(--link)}
.tool-hero .tool-lede{color:var(--ink-soft);font-size:17px;max-width:780px}
.tool-hero .tool-lede a{color:var(--link)}
.tool-wrap{max-width:920px}
.t2 .tool-panel,.tool-panel{background:var(--surface);border:1px solid var(--border);border-top:1px solid var(--border);border-radius:16px;
  box-shadow:0 1px 2px rgba(14,23,38,.04);padding:22px 24px 24px}
[data-theme="dark"] .t2 .tool-panel,[data-theme="dark"] .tool-panel{background:var(--surface)}
.t2 .tool-panel>h2,.t2 .tool-panel>h3,.tool-panel>h3{font-family:var(--font-head);font-size:19px;letter-spacing:-.01em}
.t2s .tool-panel:not(.verdict-panel)>h2::before,.t2s .tool-panel:not(.verdict-panel)>h3::before{background:var(--ink);color:var(--bg);box-shadow:none;width:30px;height:30px;font-size:14.5px}
.tp-icon{color:var(--ink)}
[data-theme="dark"] .tp-icon{color:var(--link)}
label.fl{color:var(--ink);font-weight:600}
label.fl input,label.fl select,.t2 input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),.t2 select,.t2 textarea{
  border:1px solid var(--border-strong);border-radius:8px;min-height:44px;font-variant-numeric:tabular-nums}
label.fl input:focus,label.fl select:focus,.t2 input:focus,.t2 select:focus{outline:2px solid var(--link);outline-offset:1px;border-color:var(--link)}
[data-theme="dark"] main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
[data-theme="dark"] main select,[data-theme="dark"] main textarea{background-color:#0b111b;color:var(--ink);border-color:var(--border-strong)}
.preset-bar,.t2 .preset-bar{background:var(--surface);border:1px solid var(--border);border-radius:14px}
[data-theme="dark"] .t2 .preset-bar{background:var(--surface);border-color:var(--border)}
.preset-btn{background:var(--ink)!important;color:var(--bg)!important;border-radius:10px!important;font-weight:600!important}
.pill span{border-radius:10px}
.pill input:checked+span{background:var(--ink);color:var(--bg);border-color:var(--ink)}
[data-theme="dark"] .pill input:checked+span{background:var(--ink);color:#0b111b;border-color:var(--ink)}
.result-box,.t2 .result-box{background:var(--surface-muted);border-color:var(--border);border-radius:14px}
.winner{background:var(--surface);border:2px solid var(--accent);border-radius:14px}
.trap{background:#fef6e4;border-color:#efd08a;box-shadow:inset 4px 0 0 #c98a2d;border-left:1px solid #efd08a}

/* ---------- 11. Footer ---------- */
.site-footer{background:#0e1726;color:#d6deea;padding:38px 0 26px}
[data-theme="dark"] .site-footer{background:#080d15;border-top:1px solid #1a2434}
.site-footer a,.footer-nav button,[data-theme="dark"] .site-footer a{color:#d6deea}
.footer-logo-card{background:transparent;padding:0;border-radius:0}
.footer-logo-card img{width:190px}
.footer-tagline{color:#c3cdd9}
.footer-bottom{border-top-color:#26344b;color:#9aa6b6}

/* ---------- 12. Consent banner ---------- */
.consent-banner{border-radius:16px;box-shadow:var(--shadow-lg)}
.consent-actions .btn.decline{background:var(--surface-muted);color:var(--ink)!important}

/* ---------- 13. Print stays light and plain ---------- */
@media print{
  html[data-theme="dark"]{--link:#0b5cad;--link-hover:#084a8c;--border-strong:#c9cfd8;--accent:#d7372d;--good:#0f7a55;--gold:#a86a12}
  body{font-family:var(--font-body);background:#fff;color:#0e1726}
  .toc{display:none!important}
  main>.wrap:has(>.toc){display:block}
  .tool-hero{background:#fff!important;border:0}
}

/* ---------- 14. Review pass 1 fixes ---------- */
h1,.hero-b h1,.article-hero h1,.tool-hero h1{letter-spacing:-.022em;word-spacing:.02em}
h2,.section h2,.article-body h2{letter-spacing:-.015em}
.tool-hero{border-radius:0!important;margin:0!important;box-shadow:none!important}
.t2 .tool-panel:not(.verdict-panel),[data-theme="dark"] .t2 .tool-panel:not(.verdict-panel){border-top:1px solid var(--border);box-shadow:0 1px 2px rgba(14,23,38,.04)}
.t2 .ba-note{background:var(--surface-muted);border-left:0;border-radius:10px;box-shadow:inset 3px 0 0 var(--link);color:var(--ink-soft)}
[data-theme="dark"] .t2 .ba-note{background:var(--surface-muted);color:var(--ink-soft)}
[data-theme="dark"] .t2 .dg-warn{background:#33290f}
[data-theme="dark"] .market-caption a,[data-theme="dark"] .tv-fallback a{color:var(--link)}
@media (max-width:600px){ .tv-fallback>span:not(.tv-fb-label){display:none} }
@media (min-width:1100px){
  main>.wrap:has(>.toc)>.breadcrumbs,main>.wrap:has(>.toc)>.article-hero{grid-column:1 / -1}
}
/* tool showcase: compact icon tile instead of a full-height color column */
.showcase-grid .tool-card{flex-direction:row;align-items:flex-start;gap:14px;padding:18px}
.showcase-grid .tool-thumb{width:44px!important;height:44px!important;min-height:0;flex:none;border-radius:10px;display:flex;align-items:center;justify-content:center}
.showcase-grid .tool-thumb svg{width:22px;height:22px}
.showcase-grid .tc-body{padding:0!important}
@media(max-width:600px){ .showcase-grid .tool-thumb{width:40px!important;height:40px!important} .showcase-grid .tool-card{padding:16px} }
/* ba-note is used for notes, live-status lines, field labels and inline hints:
   only real notes get the note box. */
.tool-wrap{max-width:900px}
.t2 .ba-note:empty{padding:0;margin:0;background:none;box-shadow:none}
.t2 p.ba-note[style*="margin-top:12px"]{background:none;box-shadow:none;padding:0;font-size:14px;font-weight:600;color:var(--ink);margin-bottom:6px}
.t2 span.ba-note{background:none;box-shadow:none;padding:0;margin:0;display:inline;font-weight:500}
/* situation cards on phones: two columns, icon above the text (as the B2 phone mockup) */
.sit-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:900px){.sit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){
  .sit-card{flex-direction:column;gap:8px;padding:14px;min-width:0}
  .sit-card h3{font-size:15px;overflow-wrap:anywhere}
  .sit-card p{font-size:13.5px}
  .sit-ico{width:36px;height:36px}
}
/* 12 tools use an older shell (main#main with no .wrap): the live site
   rendered them flush to the window edge. Give them the site container,
   and their hero a bordered card (it cannot bleed full-width inside it). */
main#main{max-width:var(--max);margin:0 auto;padding:0 24px 8px;box-sizing:border-box}
main#main>.tool-hero{border:1px solid var(--border);border-radius:16px!important;padding:26px 28px!important;margin:12px 0 4px!important}
.breadcrumb{padding:18px 0 0;font-size:14px;color:var(--ink-soft)}
.breadcrumb a{color:var(--ink-soft);text-decoration:none;font-weight:500}
.breadcrumb a:hover{color:var(--link);text-decoration:underline}
.tool-hero .tool-sub{color:var(--ink-soft);font-size:17px;max-width:780px;margin:6px 0 0}
.tool-hero .tool-chip{background:var(--surface);border:1px solid var(--border);color:var(--ink);font-size:13px;font-weight:600;border-radius:99px;padding:5px 12px}
.tool-hero .eyebrow{margin:0 0 4px}
@media (max-width:600px){ main#main{padding:0 16px 8px} main#main>.tool-hero{padding:20px 18px!important} }
/* every tool card (tools index, landings): compact slate icon tile, no per-category gradients */
.tool-card .tool-thumb{background:var(--ink)!important;width:44px!important;height:44px!important;min-height:0!important;flex:none;border-radius:10px;
  display:flex;align-items:center;justify-content:center;margin:20px 20px 0;color:#fff}
.tool-card .tool-thumb svg{width:22px;height:22px}
[data-theme="dark"] .tool-card .tool-thumb{background:#1e2b40!important}
.showcase-grid .tool-card .tool-thumb{margin:0}
/* hover bridge re-measured for the v3.13 header: 20px (901–1269), 26px (>=1270) */
@media (min-width:1270px) and (hover:hover){ .nav2-drop::before{height:26px} }
/* menu dividers: subtle on the slate rail, theme border elsewhere */
@media (min-width:901px){
  .main-nav .nav2-rail a+a{border-top:1px solid rgba(255,255,255,.07)}
  .main-nav .nav2-cell a+a{border-top:1px solid var(--border)}
}
/* slider tracks: neutral slate instead of the old gold gradient */
.t2 input[type=range].ff-slider{background:linear-gradient(90deg,#c9d3e0,#aab8cb)}
[data-theme="dark"] .t2 input[type=range].ff-slider{background:linear-gradient(90deg,#2a3850,#3a5578)}
