/* v6 "see the finish line": answer-first result bar, short steps, details tucked away.
   Loaded after pages.css / tools.css / calc2.css on the calculator and every /tools page. */

/* ---------- tighter top of page ---------- */
.hero-tight{padding-top:20px;padding-bottom:16px}
.hero-tight h1{font-size:1.875rem}
.hero-tight .sub{font-size:1rem;margin-top:8px}
.tp .hero{padding-top:20px;padding-bottom:12px}
.tp .hero h1{font-size:1.875rem}
.tp .hero .sub{font-size:1rem;margin-top:8px}
.block.calc-sec,.tp .block.calc-sec{padding-top:12px}

/* ---------- the result bar (sticky on phones, side column on desktop) ---------- */
.t-main{position:sticky;top:14px;z-index:50;display:grid;gap:12px;min-width:0;align-self:start}
.t-main .hero-stat{padding:12px 16px;border-radius:14px;display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;row-gap:2px;align-items:center;box-shadow:0 16px 34px -10px rgba(0,0,0,.75)}
.t-main .hero-stat::before{left:16px;right:16px}
.t-main .hero-stat .eyebrow{grid-column:1/-1;font-size:.8125rem;line-height:1.3;letter-spacing:.06em}
.t-main .hero-stat .eyebrow.result-label{font-size:.875rem;letter-spacing:0;text-transform:none;line-height:1.3;margin:0;color:#6b6c80}
.t-main .hero-stat .big-date{font-size:1.5rem;line-height:1.15;min-width:0;overflow-wrap:anywhere}
.t-main .hero-stat .big-sub{display:none}
.rb-chip{justify-self:end;background:var(--ink);color:var(--yellow);font-family:var(--display);font-weight:600;font-size:.875rem;line-height:1.2;padding:7px 12px;border-radius:999px;white-space:nowrap}
.rb-chip[hidden]{display:none}
.t-main .mini-stats,.t-main .note-line{display:none}
[data-mob-only] .mir{color:var(--text-2);font-size:1rem;line-height:1.55;margin:0}

/* ---------- layout ---------- */
.tcalc,.dcalc{gap:16px}
.dcalc{display:grid;align-items:start;grid-template-areas:"main" "in" "out"}
.dcalc>.t-main{grid-area:main}
.dcalc>.calc-in{grid-area:in;gap:14px}
.dcalc>.calc-out{grid-area:out}
.tp .calc-in,.calc-in{gap:14px}
.cstep,.tp .cstep{padding:18px 16px;gap:14px}
.tp .cstep h3,.cstep h3{font-size:1.25rem}
.cstep .help,.tp .cstep .help{font-size:1rem;line-height:1.5}
.t-rest{gap:12px}
.calc-out{gap:12px}

/* ---------- collapsible details ---------- */
.secs{display:grid;gap:12px}
details.sec{background:var(--surface);border:1px solid var(--line-2);border-radius:14px;padding:0 16px}
details.sec>summary{display:flex;align-items:center;min-height:56px;font-family:var(--display);font-weight:600;font-size:1.0625rem;color:var(--text);cursor:pointer;list-style:none}
details.sec>summary::-webkit-details-marker{display:none}
details.sec>summary::after{content:"+";margin-left:auto;padding-left:12px;font-size:1.5rem;line-height:1;color:var(--yellow)}
details.sec[open]>summary::after{content:"\2212"}
details.sec .dbody{padding:2px 0 18px;display:grid;gap:14px;color:var(--text-2);min-width:0}
details.sec .dbody .chart-card,details.sec .dbody .compare-card,details.sec .dbody .order-card,details.sec .dbody .whatif,details.sec .dbody .chart-card.callout{background:none;border:0;padding:0;border-radius:0;box-shadow:none}
details.sec .dbody .chart-card .cap{margin:0}
details.sec .dbody .chart-card.callout .big-line{font-size:1.375rem}
details.sec .dbody p.cap+p.big-line{margin-top:0}
details.how{margin-top:0}
details.how>summary{min-height:56px}
details.hlp>summary{min-height:56px}
.t-rest details.hlp{background:var(--surface);border-color:var(--line-2)}

/* next step then email */
.t-rest .next-step,.next-step{margin-top:8px}
.next-step::before{content:"Your next step";font-family:var(--display);font-weight:600;font-size:.8125rem;letter-spacing:.08em;text-transform:uppercase;color:var(--yellow)}
.tp .offer{padding:20px 16px}
.t-rest .edu{margin-top:4px}

/* debt calculator pieces */
.dcalc .debt{padding:14px}
.dcalc .cstep{background:var(--surface)}
.dcalc .calc-out .warn-box{margin:0}
.dcalc .mini-stats{grid-template-columns:1fr 1fr}
.dcalc .mini strong{font-size:1.25rem;color:var(--yellow)}
.dcalc .mini small{font-size:.75rem}
.dcalc .compare-card .trio{margin-top:4px}
.dcalc .num{font-size:1.625rem}
.dcalc .num-s{font-size:1.375rem}
.dcalc .num-t{font-size:1.0625rem}
.dcalc .seg{grid-template-columns:1fr 1fr}
.dcalc .seg-b{min-height:68px}
.dcalc .seg-b small{font-size:.8125rem}
.dcalc .help,.dcalc .strat-desc{font-size:1rem}
.dcalc .lbl{font-size:.9375rem}

/* ---------- desktop: result in a sticky side column ---------- */
@media(min-width:900px){
  .t-main{top:24px}
  .t-main .hero-stat{display:block;padding:28px 24px 24px;border-radius:18px}
  .t-main .hero-stat .eyebrow,.t-main .hero-stat .big-date{display:block}
  .t-main .hero-stat .eyebrow{font-size:.8125rem}
  .t-main .hero-stat .eyebrow.result-label{font-size:1rem;margin-bottom:6px}
  .t-main .hero-stat .big-date{font-size:3rem}
  .t-main .hero-stat .big-sub{display:block;margin-top:6px}
  .rb-chip{display:none}
  .t-main .mini-stats{display:grid}
  .t-main .note-line{display:block}
  [data-mob-only]{display:none!important}
  .tcalc{grid-template-columns:minmax(0,6fr) minmax(0,5fr);grid-template-areas:"in main" "rest main";gap:24px 40px}
  .hero-tight h1,.tp .hero h1{font-size:2.75rem}
  .hero-tight,.tp .hero{padding-top:36px;padding-bottom:16px}
}
@media(min-width:1000px){
  .calc.dcalc{grid-template-columns:minmax(0,6fr) minmax(0,5fr);grid-template-areas:"in main" "out main";gap:24px 40px}
  .dcalc .debt-grid{grid-template-columns:1fr 1fr}
  .dcalc .t-main .hero-stat .big-date{font-size:3rem}
}
@media(min-width:640px) and (max-width:999px){
  .dcalc .debt-grid{grid-template-columns:1fr 1fr 1fr}
}
@media print{
  .t-main{position:static}
  .rb-chip{display:none}
  .t-main .hero-stat .big-sub{display:block;color:#111}
  details.sec>summary::after{display:none}
}

/* ---------- v7 debt calculator: chart pinned with the result, nothing jumps ---------- */
.dcalc .t-main{gap:8px;font-variant-numeric:tabular-nums;top:8px}
.dcalc .t-main .hero-stat{min-height:62px;align-content:center}
.dcalc .t-main .hero-stat .eyebrow{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-height:1.3em}
.dcalc .t-main .hero-stat .big-date{height:1.75rem;line-height:1.75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal}
.dcalc .t-main .hero-stat .big-date.long{font-size:1.1875rem}
.dcalc .rb-chip{min-width:84px;text-align:center}
.dcalc .pin-chart{background:var(--surface);border:1px solid var(--line-2);border-radius:14px;padding:6px 6px 4px;box-shadow:0 16px 34px -14px rgba(0,0,0,.75);min-width:0}
.dcalc .pin-chart svg{display:block;width:100%;height:auto;max-height:34vh}
.dcalc #chart .ax{font-size:12px;fill:#B9BAD0}
.dcalc #chart .lg-t{fill:#E6E7F2;font-weight:600}
.dcalc #chart .mk-t{font-size:11px}
/* reserved space: hints, action buttons, extra hint */
.dcalc .debt .fhint{min-height:1.5em}
.dcalc .debt-actions[hidden]{display:grid!important;visibility:hidden}
.dcalc #extra-hint{min-height:1.5em}
.dcalc .mini strong{min-height:2.5rem;display:flex;align-items:center}
.dcalc .chart-note{margin:12px 0 0}
.dcalc .calc-out{overflow-anchor:none}
.dcalc .calc-in{overflow-anchor:none}
@media(max-height:700px) and (max-width:899px){
  .dcalc .pin-chart svg{max-height:26vh}
}
@media(min-width:900px){
  .dcalc .t-main .hero-stat{min-height:0}
  .dcalc .t-main .hero-stat .big-date{height:3.5rem;line-height:3.5rem;font-size:3rem}
  .dcalc .t-main .hero-stat .big-date.long{font-size:1.875rem}
  .dcalc .t-main .hero-stat .big-sub{min-height:4.5em;line-height:1.5;margin-top:6px}
  .dcalc .t-main .hero-stat .eyebrow{white-space:normal;min-height:0}
  .dcalc .t-main{gap:12px}
  .dcalc .pin-chart{padding:10px 10px 6px}
  .dcalc #chart .ax{font-size:13px}
}
@media(max-width:899px){
  html:has(.dcalc){scroll-padding-top:285px}
}
