/* ============================================================
   RetireSmarter — print / Save-as-PDF stylesheet.
   Loaded with media="print" (zero render cost on screen).
   Turns any calculator page into a clean one-or-two-page report:
   keeps the inputs panel (what was entered), verdict, stats and
   tables; hides chrome, heroes, FAQs, explainers and CTAs; adds
   the SavePdf component's report header + compliance footer.
   Relies on the site's uniform class conventions:
   *-hero, *-explainer, *-faq, *-chips, *-verdict, [data-calc-inputs].
   ============================================================ */

@page {
  margin: 1.4cm;
}

html, body {
  background: #fff !important;
}

/* ---------- Chrome and non-report content off ---------- */
header,
footer,
nav,
.rs-topbar,
.rs-pdf-fab,
#te-tt,
.rs-aff,
[class*="-hero"],
[class*="-explainer"],
[class*="-faq"],
[class*="-disc"],
[class*="-chips"],
[class*="-next"],
[class*="-note-card"],
details,
button,
.te-btn,
[data-save-calculation],
#rs-save-bar,
.rs-account-item,
[aria-label="breadcrumb"] {
  display: none !important;
}

/* ---------- Report header / footer on ---------- */
.rs-pdf-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 12px;
  border-bottom: 2px solid #1776c8;
  margin-bottom: 18px;
}
.rs-pdf-meta { text-align: right; }
.rs-pdf-h1 {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 16pt;
  font-weight: 800;
  color: #0f172a;
}
.rs-pdf-sub {
  display: block;
  font-size: 9pt;
  color: #475569;
  margin-top: 2px;
}
.rs-pdf-footer {
  display: block !important;
  margin-top: 22px;
  padding-top: 10px;
  border-top: 1px solid #cbd5e1;
  font-size: 8pt;
  line-height: 1.5;
  color: #475569;
  font-style: italic;
}

/* ---------- Layout: stack inputs above results ---------- */
main [class*="-grid"] {
  display: block !important;
}
[data-calc-inputs] {
  position: static !important;
  margin-bottom: 16px;
  break-inside: avoid;
}

/* ---------- Cards: flatten for paper ---------- */
.te-card,
[class*="-stat"],
[class*="-table-card"] {
  box-shadow: none !important;
  border: 1px solid #cbd5e1 !important;
  break-inside: avoid;
}

/* ---------- Verdict card: gradient → bordered ---------- */
[class*="-verdict"] {
  background: #fff !important;
  border: 2px solid #1776c8 !important;
  break-inside: avoid;
}
[class*="-verdict-kicker"],
[class*="-verdict-headline"],
[class*="-verdict-sub"] {
  color: #0f172a !important;
}
[class*="-verdict-icon"] {
  background: #eef5fc !important;
}
[class*="-verdict-icon"] i {
  color: #1776c8 !important;
}

/* ---------- Inputs: show values cleanly ---------- */
[data-calc-inputs] input,
[data-calc-inputs] select {
  border: none !important;
  font-weight: 700;
}
[class*="-money-input"] {
  border: none !important;
  border-bottom: 1px solid #cbd5e1 !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* ---------- Tables: let long ones flow across pages ---------- */
[class*="-table-scroll"] {
  max-height: none !important;
  overflow: visible !important;
}
table {
  break-inside: auto;
}
tr {
  break-inside: avoid;
}

/* ---------- Tooltip triggers are noise on paper ---------- */
[data-tooltip],
.rs-term-bubble {
  display: none !important;
}
.rs-term {
  text-decoration: none !important;
}

/* ---------- Type tuning ---------- */
main {
  font-size: 10.5pt;
}
a {
  color: #0f172a !important;
  text-decoration: none !important;
}
