:root{--navy:#011F5B;--red:#990000;--gold:#C9A227;--ink:#14213d;--muted:#4a5468;--line:#dfe3ea;--bg:#fff;--soft:#f5f7fb;--radius:14px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font:16px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;color:var(--ink);background:var(--bg)}
.wrap{max-width:1040px;margin:0 auto;padding:0 20px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-999px;top:8px;background:var(--navy);color:#fff;padding:8px 14px;border-radius:8px;z-index:9}
.skip:focus{left:12px}
:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
a{color:var(--navy)}
h1,h2,h3{color:var(--navy);line-height:1.15}
h2{font-size:1.45rem;margin:0 0 6px}
.sub{color:var(--muted);margin:0 0 18px}

.top{border-bottom:1px solid var(--line);background:#fff;position:sticky;top:0;z-index:5}
.top-in{display:flex;align-items:center;justify-content:space-between;height:60px}
.brand{display:flex;gap:10px;align-items:center;font-weight:800;color:var(--navy);font-size:1.1rem;letter-spacing:.2px}
.top-tag{font-size:.85rem;color:var(--muted)}

.hero{padding:48px 0 10px}
.hero h1{font-size:clamp(2rem,5vw,3.3rem);margin:0 0 14px;letter-spacing:-.5px}
.hero h1::after{content:"";display:block;width:84px;height:5px;background:var(--red);margin-top:16px;border-radius:3px}
.lede{font-size:1.12rem;color:var(--muted);max-width:680px;margin:0 0 26px}
.inputs{display:grid;grid-template-columns:repeat(2,minmax(0,320px));gap:18px}
.field label{display:block;font-weight:700;margin-bottom:6px}
.field small{color:var(--muted)}
.money{display:flex;align-items:center;border:2px solid var(--navy);border-radius:12px;padding:0 14px;background:#fff}
.money span{font-size:1.4rem;color:var(--navy);font-weight:700}
.money input{border:0;font-size:1.6rem;font-weight:700;color:var(--navy);padding:10px 8px;width:100%;background:transparent;font-variant-numeric:tabular-nums}
.money input:focus{outline:none}
.money:focus-within{box-shadow:0 0 0 4px rgba(201,162,39,.45)}

.reveal{margin:34px 0 10px;padding:26px;border-radius:var(--radius);background:var(--soft);border:1px solid var(--line)}
.verdict .big{font-size:clamp(1.3rem,3vw,1.9rem);margin:0;color:var(--navy);font-weight:600}
.verdict .big strong{color:var(--red)}
.verdict .small{margin:6px 0 0;font-size:1.08rem}
.verdict.is-short .small strong{color:var(--red)}
.verdict.is-ok .small strong{color:var(--navy)}
.verdict .icon{display:inline-block;width:1.4em}
.warn{margin:8px 0 0;color:var(--red);font-weight:600}
.bar-wrap{position:relative;margin:30px 0 10px;padding-top:26px}
.bar{display:flex;height:58px;border-radius:10px;overflow:hidden;background:#e9edf4}
.bar>div{display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;white-space:nowrap;overflow:hidden;transition:width .7s cubic-bezier(.2,.8,.2,1)}
.seg-down{background:var(--navy)}
.seg-extra{background:repeating-linear-gradient(135deg,var(--red) 0 12px,#8a0000 12px 24px)}
.bar span{padding:0 8px;font-size:.95rem}
.savings-line{position:absolute;top:0;bottom:-8px;width:0;border-left:3px dashed var(--gold);transition:left .7s cubic-bezier(.2,.8,.2,1)}
.savings-line span{position:absolute;top:0;transform:translateX(-50%);background:#fff;border:2px solid var(--gold);color:var(--ink);font-weight:700;font-size:.82rem;padding:1px 8px;border-radius:20px;white-space:nowrap}
.legend{display:flex;flex-wrap:wrap;gap:18px;list-style:none;padding:0;margin:10px 0 0;color:var(--muted);font-size:.9rem}
.sw{display:inline-block;width:14px;height:14px;border-radius:3px;margin-right:6px;vertical-align:-2px}
.sw-down{background:var(--navy)}.sw-extra{background:repeating-linear-gradient(135deg,var(--red) 0 4px,#8a0000 4px 8px)}.sw-save{border:2px dashed var(--gold)}
.meter{margin-top:22px;max-width:560px}
.meter-head{display:flex;justify-content:space-between;font-weight:700;color:var(--navy)}
.meter-head strong{color:var(--red);font-size:1.2rem}
.meter-track{height:10px;background:#e3e7ef;border-radius:6px;overflow:hidden;margin:6px 0}
.meter-fill{height:100%;background:linear-gradient(90deg,var(--gold),var(--red));transition:width .7s}
.meter p{margin:6px 0 0;color:var(--muted);font-size:.95rem}

section{margin-top:44px}
.toggles .tog-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
fieldset{border:1px solid var(--line);border-radius:12px;padding:14px 16px;margin:0}
legend{font-weight:700;padding:0 6px;color:var(--navy)}
fieldset small{display:block;color:var(--muted);margin-top:8px;font-size:.88rem}
.seg{display:flex;flex-wrap:wrap;gap:8px}
.seg input{position:absolute;opacity:0;pointer-events:none}
.seg label{flex:1;min-width:110px;text-align:center;padding:10px 12px;border:2px solid var(--line);border-radius:10px;cursor:pointer;font-weight:600;color:var(--ink);background:#fff}
.seg-4 label{min-width:70px}
.seg input:checked+label{border-color:var(--navy);background:var(--navy);color:#fff}
.seg input:checked+label::before{content:"\2713  "}
.seg input:focus-visible+label{outline:3px solid var(--gold);outline-offset:2px}
.seg input:disabled+label{opacity:.45;cursor:not-allowed;text-decoration:line-through}

.stages{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;position:relative}
.stage{all:unset;box-sizing:border-box;cursor:pointer;display:flex;flex-direction:column;gap:3px;padding:14px 12px;border:2px solid var(--line);border-radius:12px;background:#fff;position:relative}
.stage .dot{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--navy);font-weight:800;border:2px solid var(--navy)}
.stage .st-name{font-weight:700;color:var(--navy);font-size:.95rem}
.stage .st-out{color:var(--red);font-weight:700;font-variant-numeric:tabular-nums}
.stage .st-bal{color:var(--muted);font-size:.85rem}
.stage.neg .st-bal{color:var(--red);font-weight:700}
.stage.neg .st-bal::before{content:"\26A0  "}
.stage[aria-selected=true]{border-color:var(--navy);box-shadow:0 6px 18px rgba(1,31,91,.12)}
.stage[aria-selected=true] .dot{background:var(--navy);color:#fff}
.stage:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.stage-panel{margin-top:14px;border:1px solid var(--line);border-left:5px solid var(--navy);border-radius:12px;padding:16px 20px;background:#fff}
.stage-panel h3{margin:0 0 8px}
.stage-panel h3 small{color:var(--muted);font-weight:500;font-size:.9rem;margin-left:8px}
.stage-panel ul{list-style:none;padding:0;margin:0}
.stage-panel li{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px dashed var(--line)}
.stage-panel .bal{margin:10px 0 0;font-weight:700;color:var(--navy)}

.items{list-style:none;padding:0;margin:0;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.item+.item{border-top:1px solid var(--line)}
summary{display:grid;grid-template-columns:1fr auto auto;gap:14px;align-items:center;padding:14px 18px;cursor:pointer;list-style:none}
summary::-webkit-details-marker{display:none}
summary::before{content:"+";grid-row:1;position:absolute;margin-left:-14px;color:var(--navy);font-weight:800}
details[open] summary::before{content:"\2212"}
summary .lbl{font-weight:600;padding-left:6px}
summary em{font-style:normal;font-size:.78rem;color:var(--muted);border:1px solid var(--line);border-radius:10px;padding:0 6px;margin-left:4px}
summary .amt{font-weight:800;font-variant-numeric:tabular-nums;min-width:90px;text-align:right;color:var(--navy)}
summary:hover{background:var(--soft)}
.tag{font-size:.78rem;font-weight:700;padding:3px 9px;border-radius:20px;white-space:nowrap}
.tag-cash{background:#fbeaea;color:var(--red);border:1px solid #e9b9b9}
.tag-cash::before{content:"$ "}
.tag-loan{background:#eef1f8;color:var(--navy);border:1px solid #c7d0e4}
.tag-loan::before{content:"\21AA  "}
.tag-down{background:#fff7dd;color:#5c4a00;border:1px solid var(--gold)}
.tag-down::before{content:"\2302  "}
.why{padding:0 18px 16px 24px;color:var(--muted)}
.why p{margin:0 0 10px;max-width:720px}
.edits{display:flex;flex-wrap:wrap;gap:14px}
.edit{font-size:.9rem;font-weight:600;color:var(--ink)}
.edit input{width:120px;margin-left:6px;padding:6px 8px;border:2px solid var(--line);border-radius:8px;font:inherit}
.total{display:flex;justify-content:space-between;padding:16px 18px;background:var(--navy);color:#fff;font-size:1.1rem}
.total strong{color:#fff}
.actions{display:flex;gap:12px;align-items:center;margin-top:16px;flex-wrap:wrap}
.btn{font:inherit;font-weight:700;padding:11px 18px;border-radius:10px;border:2px solid var(--navy);background:var(--navy);color:#fff;cursor:pointer}
.btn-ghost{background:#fff;color:var(--navy)}
.btn:hover{filter:brightness(1.1)}
.copied{color:var(--navy);font-weight:600}

.method .cols{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.method h3{font-size:1.05rem;margin:10px 0 6px}
.method ul{padding-left:18px;color:var(--muted)}
.src li{margin:3px 0}
.fine{font-size:.9rem;color:var(--muted);border-left:3px solid var(--gold);padding-left:10px}
.foot{margin-top:56px;border-top:1px solid var(--line);padding:22px 0;color:var(--muted);font-size:.9rem}

@media (max-width:760px){
  .inputs,.toggles .tog-grid,.method .cols{grid-template-columns:1fr}
  .stages{grid-template-columns:1fr}
  .stage{flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px 12px}
  .stage .st-bal{margin-left:auto}
  summary{grid-template-columns:1fr auto}
  summary .tag{grid-column:1;grid-row:2;justify-self:start;margin-left:6px}
  summary .amt{grid-row:1;grid-column:2}

}
@media (prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{
  .top,.hero .lede,.toggles,.actions,.bar-wrap,.legend,.meter,.timeline-sec,.skip,.foot a{display:none!important}
  .reveal{background:#fff;border:0;padding:0}
  details .why{display:block}
  body{font-size:12pt}
}
.seg-4 label{padding:10px 4px;min-width:64px;white-space:nowrap;font-size:.92rem}
.savings-line.edge span{transform:translateX(-100%)}
.savings-line.start span{transform:translateX(0)}

.gap .gap-grid{display:grid;grid-template-columns:1fr 1.3fr;gap:18px}
.gap-card{border:1px solid var(--line);border-radius:12px;padding:18px 20px;background:#fff}
.gap-card h3{margin:0 0 8px;font-size:1.05rem}
.gap-big{font-size:1.6rem;font-weight:800;color:var(--navy);margin:0}
.gap-note{color:var(--muted);margin:4px 0 12px}
.lever{display:grid;grid-template-columns:1fr 170px;gap:4px 12px;align-items:center;font-weight:700;margin-bottom:12px}
.lever small{grid-column:1;grid-row:2;font-weight:400;color:var(--muted)}
.lever .money{grid-column:2;grid-row:1/3}
.money.sm{border-width:2px;padding:0 10px}
.money.sm span{font-size:1rem}
.money.sm input{font-size:1.1rem;padding:8px 6px}
.gap-result{margin:6px 0 0;font-weight:700;color:var(--navy)}
.gap-result.short{color:var(--red)}
.gap.ok .gap-grid{opacity:.9}
@media (max-width:760px){.gap .gap-grid{grid-template-columns:1fr}.lever{grid-template-columns:1fr}.lever .money{grid-column:1;grid-row:auto}}
@media print{.gap{display:none}}

/* ---------- Collegiate theme (shared across Cash to Close, Doc Quest, Receipt Window, Shoebox) ---------- */

:root{
  color-scheme:light;

  /* Brand */
  --navy:#011F5B;        /* 15.6:1 on white */
  --navy-600:#2A4580;    /* hover text/borders, 9.3:1 */
  --navy-300:#9AA8C4;    /* decorative only */
  --navy-100:#DDE3EF;
  --navy-050:#EEF1F8;    /* selected fill; navy text on it 13.8:1 */
  --red:#990000;         /* 8.9:1 on white, white text on it 8.9:1 */
  --red-700:#7A0000;     /* primary hover */
  --red-100:#F3D6D2;
  --red-050:#FBEEEC;     /* red text on it 7.9:1 */
  --gold:#C9A227;        /* DECORATIVE ONLY: 2.4:1 on white. Rules, hairlines */
  --gold-deep:#8A6A14;   /* antique gold: focus ring, icons; 5.1 white / 4.8 ivory */
  --gold-text:#7A5C0F;   /* gold text: 6.2 white / 5.9 ivory */
  --gold-050:#FAF3DE;

  /* Neutrals (warm, to sit with ivory) */
  --ivory:#FBF8F1;
  --ivory-2:#F4EEE1;
  --ink:#1A2133;         /* 16:1 white, 15.1 ivory */
  --muted:#4F586B;       /* 7.1 white, 6.7 ivory, 6.2 ivory-2 */
  --line:#DDD5C4;        /* dividers, panel borders */
  --line-soft:#ECE6D8;   /* table rows */
  --line-strong:#B9AE96; /* unselected choice borders */
  --field:#7C879E;       /* input borders: 3.6:1 white (meets 1.4.11) */
  --bg:#fff;
  --soft:var(--ivory);   /* remaps every existing var(--soft) to ivory */

  /* Type */
  --serif:Georgia,"Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua","Times New Roman",serif;
  --sans:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --fs-xs:.75rem;      /* 12 eyebrow labels, uppercase tracked */
  --fs-sm:.875rem;     /* 14 help text, table cells */
  --fs-base:1rem;      /* 16 body */
  --fs-md:1.125rem;    /* 18 lede */
  --fs-h3:1.125rem;    /* 18 serif */
  --fs-h2:clamp(1.3rem,1.1rem + .8vw,1.6rem);
  --fs-h1:clamp(1.875rem,1.2rem + 2.4vw,2.75rem);
  --fs-display:clamp(2.125rem,1.2rem + 3.6vw,3.25rem);
  --lh-tight:1.15;
  --lh-body:1.6;
  --track-eyebrow:.08em;

  /* Space (4px base) */
  --s1:4px; --s2:8px; --s3:12px; --s4:16px; --s5:24px; --s6:32px; --s7:48px; --s8:64px;

  /* Shape */
  --r-sm:4px;    /* buttons, inputs */
  --r:6px;       /* panels, cards */
  --r-lg:10px;   /* large feature panels only */
  --r-pill:999px;

  /* Elevation: navy-tinted, never grey-black */
  --sh-1:0 1px 2px rgba(1,31,91,.06),0 1px 1px rgba(1,31,91,.04);
  --sh-2:0 2px 4px rgba(1,31,91,.05),0 10px 24px -10px rgba(1,31,91,.18);
  --ring:0 0 0 3px var(--gold-deep);
}

/* ---------- Base ---------- */
body{font-family:var(--sans);color:var(--ink);background:var(--bg)}
h1,h2,h3,legend,.brand{font-family:var(--serif);font-weight:700;color:var(--navy);letter-spacing:0}
h1,h2,h3{line-height:var(--lh-tight);text-wrap:balance}
h3{font-size:var(--fs-h3)}
a{color:var(--navy);text-decoration-thickness:1px;text-underline-offset:.18em}
a:hover{color:var(--red)}
.lede{color:var(--muted);font-size:var(--fs-md);line-height:var(--lh-body);max-width:62ch}

/* Hero H1 with the cover's thin red rule */
.hero h1,.intro h1{font-size:var(--fs-h1);letter-spacing:-.005em;line-height:1.12}
.hero h1::after,.intro h1::after,.plan-head h1::after{
  content:"";display:block;width:64px;height:3px;margin-top:var(--s4);
  background:var(--red);border-radius:0}

/* ---------- Header: ivory, red rule, gold hairline ---------- */
.top{
  color:var(--ink);border:0;box-shadow:none;padding-bottom:5px;
  background:
    linear-gradient(var(--red),var(--red)) 0 calc(100% - 3px)/100% 2px no-repeat,
    linear-gradient(var(--gold),var(--gold)) 0 100%/100% 1px no-repeat,
    var(--ivory);
}
.top-in{min-height:64px}
.brand{font-size:1.2rem;color:var(--navy)}
legend small{font-family:var(--sans);font-weight:400}
.brand img{background:none;padding:0;border-radius:0}
.top-tag,.yr{font-size:var(--fs-xs);font-weight:600;letter-spacing:var(--track-eyebrow);
  text-transform:uppercase;color:var(--muted);opacity:1}

/* ---------- Focus ring (antique gold, 3:1+ on white and ivory) ---------- */
:focus-visible,
.seg input:focus-visible+label,
.opts input:focus-visible+span,
.stage:focus-visible,
input[type=file]:focus-visible+*{outline:3px solid var(--gold-deep);outline-offset:2px}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:var(--s2);
  min-height:44px;padding:10px 20px;
  font:600 var(--fs-base)/1.2 var(--sans);letter-spacing:.01em;text-decoration:none;
  color:#fff;background:var(--red);border:1px solid var(--red);border-radius:var(--r-sm);
  box-shadow:inset 0 -2px 0 rgba(0,0,0,.22),var(--sh-1);
  cursor:pointer;filter:none;transition:background-color .15s,border-color .15s,box-shadow .15s}
.btn:hover{background:var(--red-700);border-color:var(--red-700);filter:none}
.btn:active{box-shadow:inset 0 2px 0 rgba(0,0,0,.22)}
.btn.big{min-height:52px;padding:13px 28px;font-size:var(--fs-md);background:var(--red);border-color:var(--red)}
.btn.small{min-height:36px;padding:6px 14px;font-size:.9rem;color:#fff;background:var(--red);border-color:var(--red)}

/* Secondary: white, navy text, navy hairline; gold underline on hover */
.btn-ghost,.btn.ghost,.btn.small.ghost{
  color:var(--navy);background:#fff;border-color:var(--navy);box-shadow:var(--sh-1)}
.btn-ghost:hover,.btn.ghost:hover,.btn.small.ghost:hover{
  color:var(--navy);background:var(--navy-050);border-color:var(--navy);
  box-shadow:inset 0 -2px 0 var(--gold),var(--sh-1)}

/* Text buttons */
.link,.linkbtn{color:var(--navy);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.18em}
.link:hover,.linkbtn:hover{color:var(--red)}

/* ---------- Inputs ---------- */
input:where(:not([type=checkbox],[type=radio],[type=file],[type=range])),select,
.edit input,.tx select,.pct{
  font:inherit;color:var(--ink);background:#fff;
  border:1px solid var(--field);border-radius:var(--r-sm);
  transition:border-color .15s,box-shadow .15s}
input:where(:not([type=checkbox],[type=radio],[type=file],[type=range])),select{min-height:44px;padding:9px 12px}
.edit input{min-height:36px;padding:6px 10px}
.tx select,.pct{min-height:32px;padding:4px 8px}
input:where(:not([type=checkbox],[type=radio],[type=file],[type=range])):hover,select:hover,
.edit input:hover,.tx select:hover,.pct:hover{border-color:var(--navy-600)}
input:where(:not([type=checkbox],[type=radio],[type=file],[type=range])):focus,select:focus,
.edit input:focus,.tx select:focus,.pct:focus{border-color:var(--navy);outline:3px solid var(--gold-deep);outline-offset:2px}
input[type=checkbox],input[type=radio]{accent-color:var(--navy)}

/* ---------- Choice controls: segmented, option pills, filter chips ---------- */
.seg label,.opts span,.chip{
  background:#fff;color:var(--ink);font-weight:600;
  border:1px solid var(--line-strong);border-radius:var(--r-sm);
  transition:background-color .15s,border-color .15s,box-shadow .15s}
.chip{border-radius:var(--r-pill);padding:6px 14px}
.seg label:hover,.opts span:hover,.chip:hover{border-color:var(--navy-600);background:var(--ivory)}
/* Selected = navy tint + navy edge + gold underline. Never a flat navy fill. */
.seg input:checked+label,.opts input:checked+span{
  color:var(--navy);background:var(--navy-050);border-color:var(--navy);font-weight:700;
  box-shadow:inset 0 0 0 1px var(--navy),inset 0 -4px 0 var(--gold)}
.chip.on{color:var(--navy);background:var(--navy-050);border-color:var(--navy);font-weight:700;
  box-shadow:inset 0 0 0 1px var(--navy)}
.chip.on::before{content:"\2713\00a0"}

/* ---------- Panels and cards ---------- */
/* Standard: white, warm hairline, soft navy shadow */
.panel,.card,.gap-card,.stage-panel,.items,.toggles fieldset{
  background:#fff;border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh-1)}
/* Feature (replaces every 2px navy outline): ivory, red top rule, gold hairline */
.reveal,.result,.after,.how,.done-all,aside.sum{
  background:var(--ivory);border:1px solid var(--line);border-top:2px solid var(--red);
  border-radius:var(--r);box-shadow:inset 0 1px 0 var(--gold),var(--sh-1)}
/* Left accent stripes: thin, never thick slabs */
.card{border-left:3px solid var(--navy)}
.card.slow{border-left-color:var(--red)}
.stage-panel{border-left:3px solid var(--navy)}

/* Stat tiles: ivory, gold eyebrow, navy tabular figures */
.big>div,.stat{background:var(--ivory);border:1px solid var(--line-soft);border-radius:var(--r)}
.big .k,.stat span,.compare figcaption{
  font:700 var(--fs-xs)/1.3 var(--sans);letter-spacing:var(--track-eyebrow);
  text-transform:uppercase;color:var(--gold-text)}
.big b,.stat b{font-family:var(--sans);font-weight:700;color:var(--navy);font-variant-numeric:tabular-nums}
.big b.red,.stat b.red{color:var(--red)}

/* Numbered steps: navy disc, white numeral, gold ring */
.step,.mini .n,.card .n,.qn,.how li::before{
  width:28px;height:28px;border-radius:50%;
  background:var(--navy);color:#fff;font:700 .875rem/1 var(--sans);
  display:inline-grid;place-items:center;
  box-shadow:0 0 0 2px #fff,0 0 0 3px var(--gold)}

/* ---------- Tables: ledger style ---------- */
.rc th,.tx th,.sum thead th,.byp thead th{
  font:700 var(--fs-xs)/1.3 var(--sans);letter-spacing:.06em;text-transform:uppercase;
  color:var(--muted);text-align:left;border-bottom:1px solid var(--navy)}
.rc td,.tx td,.sum th,.sum td,.byp td{border-bottom:1px solid var(--line-soft)}
.tx tbody tr:hover td{background:var(--ivory)}
.r,.sum td,.byp td{font-variant-numeric:tabular-nums}
/* Totals: accounting double rule */
.sum tfoot th,.sum tfoot td,.sum tr.t th,.sum tr.t td{
  color:var(--navy);font-weight:800;border-top:3px double var(--navy);border-bottom:0}

/* ---------- Tags, badges ---------- */
.tag,.badge{
  display:inline-flex;align-items:center;gap:4px;
  font:700 var(--fs-xs)/1.4 var(--sans);letter-spacing:.02em;
  padding:2px 9px;border-radius:var(--r-pill);
  color:var(--red);background:var(--red-050);border:1px solid var(--red-100)}
.tag-loan,.tag.you,.badge.quick{color:var(--navy);background:var(--navy-050);border-color:var(--navy-100)}
.tag-down{color:var(--gold-text);background:var(--gold-050);border-color:var(--gold)}

/* ---------- Callouts, disclosure, footer ---------- */
.note,.fine,.exnote,.partner-note{border-left:2px solid var(--gold);padding-left:var(--s3)}
.exnote,.partner-note{background:var(--ivory);padding:10px 14px;border-radius:0 var(--r-sm) var(--r-sm) 0}
.more summary{font-family:var(--serif);font-weight:700;color:var(--navy)}
.more summary::marker{color:var(--gold-deep)}
.foot{border-top:1px solid var(--gold);color:var(--muted);font-size:var(--fs-sm)}

@media print{.top{background:none}.reveal,.result,.after,.how,.done-all,aside.sum{box-shadow:none}}

/* ---------- Cash to Close ---------- */

/* 1. Money fields become ledger entries: hairline box, navy baseline, gold $ */
.money{border:1px solid var(--field);border-radius:var(--r-sm);background:#fff;
  box-shadow:inset 0 -2px 0 var(--navy)}
.money:hover{border-color:var(--navy-600)}
.money:focus-within{box-shadow:inset 0 -2px 0 var(--navy);outline:3px solid var(--gold-deep);outline-offset:2px}
.money span{color:var(--gold-deep);font-family:var(--serif)}
.money input{min-height:0}
@media (max-width:520px){.top-tag{font-size:.6875rem;letter-spacing:.04em;text-align:right;max-width:10em;line-height:1.3}}

/* 2. Verdict reads like the cover title; total row loses the navy slab */
.hero h1{font-size:var(--fs-display)}
.verdict .big{font-family:var(--serif);font-weight:700;line-height:1.25}
.total{background:var(--ivory);color:var(--navy);border-top:3px double var(--navy);
  font-family:var(--serif);font-weight:700}
.total strong{color:var(--navy);font-family:var(--sans);font-variant-numeric:tabular-nums}

/* 3. Timeline stages: selected = ivory + red top rule, not a navy dot */
.stage{border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--sh-1)}
.stage[aria-selected=true]{border-color:var(--navy);background:var(--ivory);
  box-shadow:inset 0 2px 0 var(--red),var(--sh-2)}
.stage .dot{width:26px;height:26px;border:1.5px solid var(--navy);background:#fff;font:700 .85rem/1 var(--sans)}
.stage[aria-selected=true] .dot{background:var(--navy);color:#fff;box-shadow:0 0 0 2px #fff,0 0 0 3px var(--gold)}

/* ---------- Collegiate theme, round 2 ---------- */
.reveal,.result,.after,.how,.done-all,aside.sum{border-radius:0 0 var(--r) var(--r)}
@media (hover:none){
  .btn-ghost:hover,.btn.ghost:hover,.btn.small.ghost:hover{background:#fff;box-shadow:var(--sh-1)}
  .btn:not(.ghost):not(.btn-ghost):hover{background:var(--red);border-color:var(--red)}
  .chip:not(.on):hover,
  .seg input:not(:checked)+label:hover,
  .opts input:not(:checked)+span:hover{background:#fff;border-color:var(--line-strong)}
}
.hero,.intro{padding-top:40px}
@media (max-width:600px){.hero,.intro{padding-top:24px}}
@media (max-width:520px){
  .top-in{flex-wrap:nowrap}
  .yr,.top-tag{font-size:.6875rem;letter-spacing:.04em;text-align:right;max-width:11em;line-height:1.3}
}
.stage{border-radius:2px 2px var(--r) var(--r)}
.bar{height:48px;background:var(--ivory-2);border-radius:var(--r-sm);box-shadow:inset 0 0 0 1px var(--line)}
.seg-down{background:linear-gradient(180deg,#0B2C6F 0%,var(--navy) 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.14)}
.meter-track{background:var(--ivory-2);box-shadow:inset 0 0 0 1px var(--line);border-radius:var(--r-sm)}
.hero{margin-top:0}
