/* ============================================================================
   DivorceCostCalculator — Design System
   Direction: "Quiet-luxury legal counsel." White paper, deep navy ink,
   restrained brass accent, Fraunces serif display, IBM Plex Mono for the
   financial figures. Signature = the engraved Estimated Cost Statement.
   ============================================================================ */
:root{
  --paper:#ffffff;
  --ivory:#faf8f3;
  --ivory-2:#f4f1e8;
  --ink:#0e1b2e;          /* deep navy */
  --ink-2:#1c2c43;
  --slate:#48566d;        /* body secondary */
  --brass:#a47e3c;        /* accent */
  --brass-2:#876531;
  --brass-tint:#f3ecdd;
  --hair:#e7e2d6;         /* warm hairline */
  --hair-cool:#e3e8f0;
  --green:#1a5e3a;        /* totals */
  --shadow:28px 28px 80px -40px rgba(14,27,46,.45);
  --max:1140px;
  --serif:"Fraunces", Georgia, "Times New Roman", serif;
  --sans:"Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono:"IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important}}
body{
  font-family:var(--sans);color:var(--ink);background:var(--paper);
  font-size:16.5px;line-height:1.68;-webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
.wrap{max-width:var(--max);margin:0 auto;padding:0 26px}
a{color:var(--brass-2);text-decoration:none}
a:hover{color:var(--brass);text-decoration:underline;text-underline-offset:3px}
:focus-visible{outline:2.5px solid var(--brass);outline-offset:3px;border-radius:3px}
.sr-only,.skip-link{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.skip-link:focus{position:fixed;top:10px;left:10px;width:auto;height:auto;clip:auto;background:var(--ink);color:#fff;padding:10px 16px;border-radius:6px;z-index:200}
.hp{position:absolute;left:-9999px}

/* eyebrow / labels */
.eyebrow{display:inline-block;font-size:.72rem;font-weight:600;letter-spacing:.2em;text-transform:uppercase;color:var(--slate)}
.eyebrow.gold{color:var(--brass)}

/* ---------- topbar ---------- */
.topbar{background:var(--ink);color:#c4ccda;font-size:.76rem;letter-spacing:.02em}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;height:36px}
.topbar-note.dim{color:#7e8aa0}
@media(max-width:620px){.topbar-note.dim{display:none}}

/* ---------- header ---------- */
.site-header{position:sticky;top:0;z-index:80;background:rgba(255,255,255,.9);backdrop-filter:saturate(140%) blur(10px);border-bottom:1px solid var(--hair)}
.site-header .wrap{display:flex;align-items:center;gap:30px;height:74px}
.brand{display:flex;align-items:center;gap:12px;color:var(--ink)}
.brand:hover{text-decoration:none}
.brand-mark{font-family:var(--serif);font-weight:700;font-size:.95rem;letter-spacing:.04em;color:#fff;background:var(--ink);width:38px;height:38px;display:grid;place-items:center;border-radius:8px;border:1px solid var(--ink)}
.brand-name{font-family:var(--serif);font-weight:600;font-size:1.16rem;letter-spacing:-.01em;color:var(--ink)}
.brand-name span{color:var(--brass)}
.main-nav{display:flex;gap:28px;margin-left:auto;font-size:.92rem;font-weight:500}
.main-nav a{color:var(--slate)}
.main-nav a:hover{color:var(--ink);text-decoration:none}
.nav-cta{font-size:.88rem;font-weight:600;color:#fff;background:var(--ink);padding:10px 18px;border-radius:8px;border:1px solid var(--ink)}
.nav-cta:hover{background:var(--brass);border-color:var(--brass);color:#fff;text-decoration:none}
@media(max-width:880px){.main-nav{display:none}.nav-cta{margin-left:auto}}

/* ---------- hero ---------- */
.hero{position:relative;background:
  radial-gradient(120% 90% at 85% -10%, var(--ivory-2) 0%, transparent 55%),
  linear-gradient(180deg,var(--ivory) 0%, #fff 70%);
  border-bottom:1px solid var(--hair);overflow:hidden}
.hero .wrap{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center;padding:66px 26px 74px}
@media(max-width:940px){.hero .wrap{grid-template-columns:1fr;gap:38px;padding:48px 26px 56px}}
.hero-kicker{display:flex;align-items:center;gap:12px;margin-bottom:20px}
.hero-kicker .rule{height:1px;width:46px;background:var(--brass)}
h1{font-family:var(--serif);font-weight:600;font-size:clamp(2.2rem,4.6vw,3.5rem);line-height:1.08;letter-spacing:-.02em}
h1 em{font-style:italic;color:var(--brass)}
.hero .lede{margin-top:20px;font-size:1.12rem;color:var(--slate);max-width:48ch}
.hero-points{margin-top:26px;display:grid;gap:11px}
.hero-points li{list-style:none;padding-left:30px;position:relative;font-size:.94rem;color:var(--slate)}
.hero-points li::before{content:"";position:absolute;left:0;top:2px;width:18px;height:18px;border-radius:50%;border:1.5px solid var(--brass);
  background:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"><path fill="none" stroke="%23a47e3c" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" d="M2.5 6.2l2.3 2.3 4.5-5"/></svg>') center/11px no-repeat}
.hero-meta{margin-top:30px;display:flex;gap:30px;flex-wrap:wrap}
.hero-stat .n{font-family:var(--serif);font-weight:600;font-size:1.7rem;color:var(--ink);line-height:1}
.hero-stat .l{font-size:.74rem;letter-spacing:.06em;text-transform:uppercase;color:var(--slate);margin-top:5px}

/* ---------- calculator card ---------- */
.calc-card{background:#fff;border:1px solid var(--hair);border-radius:16px;box-shadow:var(--shadow);overflow:hidden}
.calc-head{background:var(--ink);color:#fff;padding:18px 24px;display:flex;align-items:center;justify-content:space-between;
  border-bottom:3px solid var(--brass)}
.calc-head h2{font-family:var(--serif);font-weight:600;font-size:1.12rem;letter-spacing:.01em}
.calc-head .chip{font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;color:var(--brass-tint);border:1px solid rgba(164,126,60,.5);padding:4px 10px;border-radius:99px}
.calc-body{padding:26px 24px}
.field{margin-bottom:18px}
.field > label{display:block;font-size:.78rem;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--slate);margin-bottom:8px}
select{width:100%;padding:13px 14px;font-family:var(--sans);font-size:1rem;color:var(--ink);background:#fff;
  border:1px solid #cdd5e0;border-radius:10px;appearance:none;
  background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12"><path fill="%2348566d" d="M6 8L2 4h8z"/></svg>');
  background-repeat:no-repeat;background-position:right 14px center;background-size:11px}
.seg{display:flex;border:1px solid #cdd5e0;border-radius:10px;overflow:hidden;background:#fff}
.seg button{flex:1;padding:12px 8px;font-family:var(--sans);font-size:.9rem;font-weight:500;color:var(--slate);background:#fff;border:none;cursor:pointer;transition:background .15s,color .15s}
.seg button+button{border-left:1px solid #cdd5e0}
.seg button[aria-pressed="true"]{background:var(--ink);color:#fff;font-weight:600}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.btn-primary{width:100%;margin-top:8px;padding:16px;font-family:var(--sans);font-size:1.02rem;font-weight:600;letter-spacing:.01em;
  color:#fff;background:var(--brass);border:none;border-radius:10px;cursor:pointer;transition:background .18s}
.btn-primary:hover{background:var(--brass-2)}

/* ---------- the signature: estimated cost statement ---------- */
.statement{display:none;margin-top:24px;border:1px solid var(--hair);border-radius:12px;background:
  repeating-linear-gradient(0deg,transparent 0,transparent 33px,rgba(164,126,60,.05) 33px,rgba(164,126,60,.05) 34px),
  #fffdf8;overflow:hidden;animation:rise .45s ease both}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.statement.show{display:block}
.stmt-head{display:flex;align-items:center;gap:14px;padding:18px 20px;background:var(--ink);color:#fff;border-bottom:2px solid var(--brass)}
.stmt-monogram{font-family:var(--serif);font-weight:700;font-size:.82rem;letter-spacing:.06em;width:42px;height:42px;display:grid;place-items:center;
  border:1.5px solid var(--brass);border-radius:50%;color:var(--brass-tint);flex-shrink:0}
.stmt-title{font-family:var(--serif);font-weight:600;font-size:1.05rem}
.stmt-sub{font-size:.78rem;color:#aab4c6;letter-spacing:.03em;margin-top:2px}
.stmt-stamp{margin-left:auto;font-size:.62rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase;color:var(--brass);
  border:1.5px solid var(--brass);border-radius:5px;padding:5px 9px;transform:rotate(-3deg)}
.ledger{width:100%;border-collapse:collapse;font-size:.92rem;padding:0}
.ledger td{padding:11px 20px;border-bottom:1px dotted #d8cfb8;vertical-align:top;color:var(--ink-2)}
.ledger td:last-child{text-align:right;font-family:var(--mono);font-size:.86rem;white-space:nowrap;color:var(--ink)}
.ledger tr.total td{border-bottom:none;border-top:2px solid var(--ink);font-family:var(--serif);font-weight:600;font-size:1.06rem;padding-top:14px;padding-bottom:14px}
.ledger tr.total td:last-child{font-family:var(--mono);font-weight:500;color:var(--green);font-size:1rem}
.stmt-meta{padding:8px 20px 4px;display:grid;gap:9px}
.stmt-meta > div{display:flex;justify-content:space-between;gap:16px;font-size:.86rem;padding-bottom:9px;border-bottom:1px solid var(--hair)}
.stmt-meta > div:last-child{border-bottom:none}
.stmt-meta dt{color:var(--slate)}
.stmt-meta dd{color:var(--ink);font-weight:500;text-align:right;max-width:60%}
.stmt-fine{padding:12px 20px 18px;font-size:.72rem;line-height:1.55;color:#8d8470}

/* ---------- sections ---------- */
section.band{padding:74px 0}
section.band.ivory{background:var(--ivory);border-top:1px solid var(--hair);border-bottom:1px solid var(--hair)}
.section-head{max-width:680px;margin-bottom:38px}
.section-head .eyebrow{margin-bottom:14px}
h2.section-title{font-family:var(--serif);font-weight:600;font-size:clamp(1.7rem,3.2vw,2.4rem);line-height:1.16;letter-spacing:-.015em}
.section-head p{margin-top:14px;color:var(--slate);font-size:1.04rem}

/* state cards */
.state-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(228px,1fr));gap:18px}
.state-card{display:block;border:1px solid var(--hair);border-radius:13px;padding:22px 22px 20px;background:#fff;color:var(--ink);transition:transform .18s,box-shadow .18s,border-color .18s}
.state-card:hover{text-decoration:none;transform:translateY(-3px);border-color:var(--brass);box-shadow:0 18px 40px -26px rgba(14,27,46,.4)}
.state-card .st-name{font-family:var(--serif);font-weight:600;font-size:1.18rem;letter-spacing:-.01em}
.state-card .st-fee{margin-top:10px;font-size:.86rem;color:var(--slate);line-height:1.5}
.state-card .st-fee b{font-family:var(--mono);color:var(--ink);font-weight:500}
.state-card .st-link{display:inline-flex;align-items:center;gap:6px;margin-top:14px;font-size:.82rem;font-weight:600;color:var(--brass-2)}
.state-card .st-link::after{content:"→";transition:transform .18s}
.state-card:hover .st-link::after{transform:translateX(4px)}

/* comparison table */
.table-scroll{overflow-x:auto;border:1px solid var(--hair);border-radius:13px;background:#fff}
table.cmp{width:100%;border-collapse:collapse;font-size:.92rem;}
table.cmp caption{text-align:left;padding:16px 18px 0;color:var(--slate);font-size:.84rem}
table.cmp th{background:var(--ink);color:#fff;text-align:left;padding:14px 18px;font-weight:600;font-size:.82rem;letter-spacing:.03em}
table.cmp th:first-child{border-right:2px solid var(--brass)}
table.cmp td{padding:13px 18px;border-top:1px solid var(--hair)}
table.cmp td:not(:first-child){font-family:var(--mono);font-size:.84rem;color:var(--ink-2)}
table.cmp tbody tr:hover td{background:var(--ivory)}
table.cmp .rank{font-family:var(--serif);color:var(--brass);font-weight:600;margin-right:8px}

/* bar chart (filing fee comparison) */
.barchart{display:grid;gap:12px;margin-top:8px}
.bar-row{display:grid;grid-template-columns:120px 1fr 64px;align-items:center;gap:14px;font-size:.88rem}
.bar-row .bl{color:var(--ink);font-weight:500}
.bar-track{height:14px;background:var(--ivory-2);border-radius:99px;overflow:hidden}
.bar-fill{height:100%;background:linear-gradient(90deg,var(--ink),var(--brass));border-radius:99px}
.bar-val{font-family:var(--mono);font-size:.82rem;color:var(--slate);text-align:right}

/* FAQ */
.faq{max-width:800px}
details{border:1px solid var(--hair);border-radius:11px;background:#fff;margin-bottom:12px;overflow:hidden}
details[open]{border-color:var(--brass)}
summary{cursor:pointer;padding:18px 22px;font-weight:600;font-size:.98rem;list-style:none;display:flex;justify-content:space-between;gap:16px;align-items:center}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";font-family:var(--serif);font-size:1.5rem;line-height:1;color:var(--brass);flex-shrink:0}
details[open] summary::after{content:"–"}
details .ans{padding:0 22px 20px;color:var(--slate);font-size:.94rem}

/* ---------- article (state pages) ---------- */
.crumbs{font-size:.82rem;color:var(--slate);padding:22px 0 0}
.crumbs a{color:var(--slate)}
.crumbs .sep{margin:0 8px;color:#c3bca8}
.layout{display:grid;grid-template-columns:1fr 300px;gap:56px;padding:48px 0 20px}
@media(max-width:980px){.layout{grid-template-columns:1fr;gap:0}}
.article{max-width:760px;min-width:0}
.article h2{font-family:var(--serif);font-weight:600;font-size:1.6rem;letter-spacing:-.01em;margin:44px 0 14px;scroll-margin-top:90px}
.article h2:first-child{margin-top:0}
.article h3{font-family:var(--serif);font-weight:600;font-size:1.2rem;margin:26px 0 10px}
.article p{margin-bottom:15px;color:#33415a}
.article ul{margin:0 0 16px 4px;color:#33415a;list-style:none}
.article ul li{position:relative;padding-left:24px;margin-bottom:9px}
.article ul li::before{content:"";position:absolute;left:2px;top:11px;width:7px;height:7px;background:var(--brass);transform:rotate(45deg)}
.article strong{color:var(--ink)}

.fact-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px;margin:8px 0 4px}
.fact{background:#fff;border:1px solid var(--hair);border-radius:12px;padding:18px 18px 16px;position:relative}
.fact::before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:3px;background:var(--brass);border-radius:0 3px 3px 0}
.fact .f-label{font-size:.68rem;text-transform:uppercase;letter-spacing:.1em;color:var(--slate);font-weight:600}
.fact .f-value{font-family:var(--serif);font-weight:600;font-size:1.5rem;margin-top:6px;color:var(--ink);line-height:1.1}
.fact .f-value.brass{color:var(--brass)}

/* sidebar (sticky on state pages) */
.aside{align-self:start}
@media(min-width:981px){.aside{position:sticky;top:96px}}
.aside-card{border:1px solid var(--hair);border-radius:13px;background:var(--ivory);padding:22px;margin-bottom:20px}
.aside-card h4{font-family:var(--serif);font-weight:600;font-size:1.05rem;margin-bottom:12px}
.aside-card ul{list-style:none}
.aside-card li{margin-bottom:9px;font-size:.9rem}
.toc a{color:var(--slate)}
.toc a:hover{color:var(--brass-2)}

/* notices */
.disclaimer-box{background:var(--brass-tint);border:1px solid #e2d3ac;border-left:4px solid var(--brass);border-radius:10px;padding:16px 20px;font-size:.88rem;color:#6e5a2c;margin:30px 0}
.updated{font-size:.8rem;color:var(--slate);margin-top:8px;font-style:italic}
.ad-slot{border:1px dashed #cdd5e0;border-radius:11px;background:var(--ivory);color:#9aa3b2;font-size:.7rem;letter-spacing:.16em;text-transform:uppercase;text-align:center;padding:40px 10px;margin:34px 0}

/* ---------- email capture ---------- */
.capture{background:var(--ink);color:#fff;position:relative;overflow:hidden}
.capture::after{content:"";position:absolute;inset:0;background:radial-gradient(80% 140% at 100% 0,rgba(164,126,60,.22),transparent 60%);pointer-events:none}
.capture-inner{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center;padding:60px 26px}
@media(max-width:860px){.capture-inner{grid-template-columns:1fr;gap:28px;padding:48px 26px}}
.capture h2{font-family:var(--serif);font-weight:600;font-size:1.9rem;line-height:1.15;margin:10px 0 12px}
.capture-copy p{color:#b9c2d2;max-width:42ch}
.capture-form{display:grid;gap:12px}
.capture-form input[type=email]{padding:15px 16px;font-family:var(--sans);font-size:1rem;border:1px solid #2f3e57;background:#16243a;color:#fff;border-radius:10px}
.capture-form input::placeholder{color:#7e8aa0}
.capture-form button{padding:15px 16px;font-family:var(--sans);font-size:1rem;font-weight:600;color:#fff;background:var(--brass);border:none;border-radius:10px;cursor:pointer;transition:background .18s}
.capture-form button:hover{background:var(--brass-2)}
.capture-fine{font-size:.76rem;color:#8d97a9;margin-top:2px}

/* ---------- footer ---------- */
.site-footer{background:#0a1422;color:#aab4c6}
.site-footer .wrap{padding:56px 26px 30px}
.foot-grid{display:grid;grid-template-columns:2.2fr 1fr 1fr 1fr;gap:40px}
@media(max-width:840px){.foot-grid{grid-template-columns:1fr 1fr}}
.foot-logo{color:#fff;font-size:1.2rem}
.foot-logo span{color:var(--brass)}
.foot-disclaimer{font-size:.82rem;line-height:1.65;margin-top:14px;color:#8896aa;max-width:42ch}
.foot-updated{font-size:.78rem;color:var(--brass);margin-top:10px;font-style:italic}
.site-footer h4{color:#fff;font-size:.74rem;text-transform:uppercase;letter-spacing:.12em;margin-bottom:14px}
.site-footer ul{list-style:none}
.site-footer li{margin-bottom:10px;font-size:.88rem}
.site-footer a{color:#aab4c6}
.site-footer a:hover{color:#fff}
.foot-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:40px;padding-top:20px;font-size:.8rem;color:#7e8aa0;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}
.foot-bottom a{color:#aab4c6}

/* simple content pages */
.page-narrow{max-width:760px;margin:0 auto;padding:50px 0 10px}
.page-narrow h1{font-size:clamp(1.9rem,4vw,2.6rem);margin-bottom:8px}
.page-narrow .lead{color:var(--slate);font-size:1.08rem;margin-bottom:8px}
.page-narrow h2{font-family:var(--serif);font-weight:600;font-size:1.4rem;margin:32px 0 12px}
.page-narrow p{margin-bottom:14px;color:#33415a}
.page-narrow ul{margin:0 0 16px 22px;color:#33415a}
.page-narrow li{margin-bottom:8px}
.contact-form{display:grid;gap:14px;max-width:520px;margin-top:8px}
.contact-form label{font-size:.84rem;font-weight:600;color:var(--ink)}
.contact-form input,.contact-form textarea{width:100%;padding:12px 14px;font-family:var(--sans);font-size:1rem;border:1px solid #cdd5e0;border-radius:9px}
.contact-form button{justify-self:start;padding:13px 26px;font-weight:600;color:#fff;background:var(--ink);border:none;border-radius:9px;cursor:pointer}
.contact-form button:hover{background:var(--brass)}

/* flash messages */
.flash{padding:14px 18px;border-radius:10px;margin:20px 0;font-size:.92rem}
.flash.ok{background:#eaf5ee;border:1px solid #bfe0cb;color:#1a5e3a}
.flash.err{background:#fbecec;border:1px solid #e6c2c2;color:#8a2b2b}

/* ---------- SEO / AIO additions: answer box, byline, blog ---------- */
.answer-box{background:linear-gradient(180deg,var(--brass-tint),#fff);border:1px solid #e2d3ac;border-left:4px solid var(--brass);
  border-radius:12px;padding:18px 22px;margin:8px 0 26px;font-size:1.02rem;line-height:1.6;color:#3a3122}
.answer-box strong{display:block;color:var(--ink);font-family:var(--serif);font-size:1.12rem;margin-bottom:6px}

.byline{display:flex;align-items:center;gap:13px;margin:0 0 26px;padding-bottom:20px;border-bottom:1px solid var(--hair)}
.byline-avatar{width:42px;height:42px;border-radius:50%;background:var(--ink);color:var(--brass-tint);font-family:var(--serif);font-weight:600;
  font-size:.82rem;display:grid;place-items:center;border:1.5px solid var(--brass);flex-shrink:0}
.byline-name{display:block;font-weight:600;font-size:.95rem;color:var(--ink)}
.byline-meta{display:block;font-size:.8rem;color:var(--slate)}

/* post cards */
.post-card{display:flex;flex-direction:column}
.post-cat{font-size:.68rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase;color:var(--brass)}
.post-meta{font-size:.78rem;color:var(--slate);margin-top:10px}
.post-card .st-fee{flex:1}

/* post body: tables & lists inherit article styles, ensure spacing */
.post-body table.cmp{margin:18px 0}
.post-body h2{font-family:var(--serif);font-weight:600;font-size:1.5rem;margin:34px 0 12px;scroll-margin-top:90px}
.post-body h3{font-family:var(--serif);font-weight:600;font-size:1.18rem;margin:24px 0 10px}

/* ============================================================
   LOGO + MOBILE MENU + RESPONSIVE (added for launch)
   ============================================================ */
.site-header .wrap{position:relative}
.brand-logo{display:block;height:100px;width:auto;max-width:210px}
.brand-mark,.brand-name{display:none} /* replaced by logo image */

.nav-toggle{display:none;flex-direction:column;justify-content:center;gap:5px;
  width:46px;height:42px;margin-left:auto;background:#fff;border:1px solid var(--hair);
  border-radius:9px;cursor:pointer;padding:0 11px}
.nav-toggle span{display:block;height:2px;width:100%;background:var(--ink);border-radius:2px;
  transition:transform .25s ease,opacity .2s ease}
.nav-toggle.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle.open span:nth-child(2){opacity:0}
.nav-toggle.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.nav-cta-mobile{display:none}

@media(max-width:880px){
  .site-header .wrap{gap:14px;height:64px}
  .brand-logo{height:70px}
  .nav-toggle{display:flex}
  .nav-cta{display:none}                 /* desktop CTA hidden; in-menu CTA used */
  .main-nav{
    display:flex;flex-direction:column;gap:0;margin-left:0;
    position:absolute;left:0;right:0;top:100%;
    background:#fff;border-top:1px solid var(--hair);border-bottom:1px solid var(--hair);
    box-shadow:0 20px 44px -26px rgba(14,27,46,.55);
    max-height:0;overflow:hidden;transition:max-height .3s ease;z-index:90}
  .main-nav.open{max-height:600px}
  .main-nav a{padding:15px 26px;border-top:1px solid var(--hair);font-size:1rem;width:100%;color:var(--ink)}
  .main-nav a:first-child{border-top:none}
  .nav-cta-mobile{display:block;margin:14px 26px 20px;text-align:center;background:var(--brass); max-width:90%;
    color:#fff;border-radius:9px;padding:13px;font-weight:600;border:none}
  .nav-cta-mobile:hover{background:var(--brass);text-decoration:none}
}

/* general mobile polish */
@media(max-width:620px){
  .wrap{padding-left:18px;padding-right:18px}
  table.cmp{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .answer-box{padding:15px 16px}
  h1{font-size:1.7rem;line-height:1.18}
  .section-title{font-size:1.5rem}
  .byline{flex-wrap:wrap}
}


/* Mobile */
@media (max-width: 576px) {

  #calc-result {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #calc-result .ledger {
    min-width: 500px; /* adjust as needed */
    width: 100%;
    border-collapse: collapse;
  }

  /* Optional: prevent text wrapping */
  #calc-result .ledger td {
    white-space: nowrap;
  }

  /* Stack meta items nicely */
  #calc-result .stmt-meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Smaller header */
  #calc-result .stmt-head {
    flex-wrap: wrap;
    gap: 10px;
  }

  #calc-result .stmt-title {
    font-size: 1rem;
  }

  #calc-result .stmt-sub,
  #calc-result .stmt-fine {
    font-size: 0.85rem;
  }
  
}




/* ===========================================================================
   BLOG DETAIL PAGE — reading typography + new components
   Append to the END of assets/css/styles.css so these override earlier rules.

   WHY THE TEXT LOOKED SMALL
   .post-body was set to font-size:.95rem = 15.2px, with tables at .875rem
   (14px) and the answer box at .9rem (14.4px). On a 17-minute article that is
   genuinely hard going. Body copy for long-form reading wants 18-19px.
   Medium uses 21px, Substack 20px, Wikipedia 16px.

   Everything below is scoped to .post-body / the new components, so nothing
   else on the site changes.
   =========================================================================== */

/* --- Measure -------------------------------------------------------------- */
/* 68ch keeps lines at roughly 70-80 characters, which is the comfortable
   range for sustained reading. Wider than that and the eye loses the line. */
.post-body {
  font-size: 1.125rem;        /* 18px, up from 15.2px */
  line-height: 1.75;
  color: #2c3444;             /* was #374151 — slightly darker for contrast */
  max-width: 68ch;
  letter-spacing: -0.003em;
}

.post-body p {
  margin: 0 0 1.35em;
}

/* Lead paragraph — the first one after the H1 carries the summary. */
.post-body > p:first-of-type {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #1a2230;
}

/* --- Headings ------------------------------------------------------------- */
/* Bigger steps between levels so the structure is scannable. A 17-minute
   article lives or dies on whether readers can skim its shape. */
.post-body h2 {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.25;
  color: #0e1b2e;
  margin: 2.6em 0 0.7em;
  padding-top: 0.6em;
  border-top: 1px solid #eef1f5;
  scroll-margin-top: 90px;
  letter-spacing: -0.015em;
}
.post-body h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }

.post-body h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: #16233a;
  margin: 2em 0 0.5em;
  scroll-margin-top: 90px;
}

.post-body h4 {
  font-size: 1.08rem;
  font-weight: 700;
  color: #16233a;
  margin: 1.6em 0 0.4em;
}

/* --- Lists ---------------------------------------------------------------- */
.post-body ul,
.post-body ol {
  margin: 0 0 1.35em 0;
  padding-left: 1.5em;
}
.post-body li {
  margin-bottom: 0.55em;
  padding-left: 0.25em;
}
.post-body li::marker { color: #9aa5b5; }
.post-body li > ul,
.post-body li > ol { margin-top: 0.5em; margin-bottom: 0.5em; }

/* --- Links ---------------------------------------------------------------- */
/* Underline offset stops descenders colliding with the rule. */
.post-body a {
  color: #14417d;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(20, 65, 125, 0.35);
}
.post-body a:hover { text-decoration-color: currentColor; }

/* --- Tables --------------------------------------------------------------- */
/* Were 14px, which is unreadable next to 18px body text. Also made scrollable
   on mobile — your cost tables have 3-4 columns and were overflowing. */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.8em 0;
  font-size: 1rem;
  border: 1px solid #e3e8ef;
  border-radius: 10px;
  overflow: hidden;
}
.post-body table th {
  background: #0F2744;
  color: #fff;
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.post-body table td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #eef1f5;
  line-height: 1.6;
}
.post-body table tr:last-child td { border-bottom: 0; }
.post-body table tr:nth-child(even) td { background: #fafbfc; }
.post-body table tr:hover td { background: #f4f7fa; }

/* Horizontal scroll wrapper for narrow screens */
.post-body .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 1.8em 0; }
.post-body .table-scroll table { margin: 0; min-width: 480px; }

/* --- Answer box ----------------------------------------------------------- */
.post-body .answer-box {
  background: #eef4fd;
  border-left: 4px solid #1e40af;
  padding: 1.15rem 1.35rem;
  margin: 1.8em 0;
  border-radius: 0 10px 10px 0;
  font-size: 1.06rem;
  line-height: 1.7;
}
.post-body .answer-box strong { color: #0e1b2e; }

/* --- Blockquote / callout ------------------------------------------------- */
.post-body blockquote {
  margin: 1.8em 0;
  padding: 0.2em 0 0.2em 1.4em;
  border-left: 3px solid var(--brass, #c8b78a);
  color: #4a5568;
  font-style: italic;
}

/* --- Byline (new component) ----------------------------------------------- */
.byline {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 0 18px;
  margin: 0 0 28px;
  border-top: 1px solid #e6e9ef;
  border-bottom: 1px solid #e6e9ef;
}
.byline-photo {
  width: 44px; height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  background: #e9edf3;
}
.byline-text p { margin: 0 0 3px; font-size: 0.94rem; line-height: 1.5; }
.byline-name { color: #1a2230; font-weight: 500; }
.byline-name a { color: #0e1b2e; text-decoration: none; border-bottom: 1px solid #cfd6e0; }
.byline-note { color: #8892a4; font-weight: 400; font-size: 0.86rem; }
.byline-review { font-size: 0.88rem; color: #4a5568; }
.byline-unreviewed { color: #8892a4; }
.byline-unreviewed a { color: #6b7688; }
.byline-dates { font-size: 0.84rem; color: #8892a4; }
.byline-dates strong { color: #1a6b3c; font-weight: 600; }

/* --- Fee verification badge ----------------------------------------------- */
.fee-badge {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 0.94rem; line-height: 1.6;
  padding: 13px 15px; border-radius: 8px; margin: 0 0 26px;
  max-width: 68ch;
}
.fee-badge .badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0; margin-top: 8px;
}
.fee-badge.verified   { background: #eef7f1; border: 1px solid #cfe6d9; color: #1c4c33; }
.fee-badge.verified .badge-dot { background: #1a6b3c; }
.fee-badge.unverified { background: #fdf6ec; border: 1px solid #f0e0c4; color: #6b5320; }
.fee-badge.unverified .badge-dot { background: #c8901f; }
.fee-badge a { color: inherit; text-decoration: underline; }
.badge-note { display: block; opacity: .8; font-size: 0.86rem; margin-top: 2px; }

/* --- Breadcrumbs (new component) ------------------------------------------ */
/* Critical: reset the list styling. Without this it renders as a numbered
   ordered list with blue underlined links, which is what you were seeing. */
.breadcrumbs { margin: 0 0 18px; font-size: 0.85rem; }
.breadcrumbs ol {
  list-style: none !important;
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 !important; padding: 0 !important;
}
.breadcrumbs li {
  display: flex; align-items: center; gap: 6px;
  color: #6b7688; margin: 0 !important; padding: 0 !important;
}
.breadcrumbs li::marker { content: none; }
.breadcrumbs li:not(:last-child)::after { content: "›"; color: #b6becb; }
.breadcrumbs a { color: #4a5568; text-decoration: none; }
.breadcrumbs a:hover { color: #0e1b2e; text-decoration: underline; }
.breadcrumbs [aria-current] { color: #0e1b2e; font-weight: 500; }

/* --- Related links -------------------------------------------------------- */
.related-links {
  margin: 3em 0 0; padding: 26px 28px;
  background: #f7f8fa; border-radius: 12px;
  max-width: 68ch;
}
.related-links h2 {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: .08em;
  color: #6b7688; margin: 0 0 14px; font-weight: 600;
  border: 0; padding: 0; font-family: inherit;
}
.related-links ul { list-style: none; margin: 0; padding: 0; }
.related-links li {
  padding: 11px 0; font-size: 0.98rem; line-height: 1.6; color: #5a6473;
  border-bottom: 1px solid #e9ecf1;
}
.related-links li:last-child { border-bottom: 0; }
.related-links a { color: #0e1b2e; font-weight: 500; text-decoration: none; }
.related-links a:hover { text-decoration: underline; }

/* --- Autolinked state names ----------------------------------------------- */
.post-body a[href*="/state/"] {
  text-decoration-color: var(--brass, #c8b78a);
}

/* --- Mobile --------------------------------------------------------------- */
@media (max-width: 720px) {
  .post-body { font-size: 1.0625rem; max-width: 100%; }   /* 17px */
  .post-body > p:first-of-type { font-size: 1.1rem; }
  .post-body h2 { font-size: 1.5rem; margin-top: 2.2em; }
  .post-body h3 { font-size: 1.18rem; }
  .post-body table { font-size: 0.94rem; display: block; overflow-x: auto; }
  .byline { flex-direction: column; gap: 10px; }
  .related-links { padding: 20px 18px; }
}

/* --- Print / reader ------------------------------------------------------- */
@media print {
  .byline-photo, .related-links, .ad-slot { display: none; }
  .post-body { font-size: 11pt; max-width: 100%; }
}