/* severanceaftertax.com — editorial-warm */

:root {
  /* defaults — Tweaks may override via inline styles on :root */
  --bg: #F5F0E6;
  --surface: #FBF8F2;
  --surface-2: #EFE8D9;
  --ink: #1C1814;
  --ink-2: #3A332C;
  --muted: #6B6258;
  --muted-2: #948A7C;
  --rule: #DDD3C0;
  --rule-soft: #E8E0D0;
  --accent: oklch(0.42 0.04 150);
  --accent-soft: oklch(0.92 0.02 150);
  --accent-ink: oklch(0.30 0.05 150);

  --serif: "Newsreader", "Source Serif Pro", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 6px;
  --radius-lg: 10px;

  --gutter: 28px;
  --section-pad: 72px;
  --card-pad: 28px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  padding-bottom: 80px; /* room for mobile sticky on small viewports */
}

::selection { background: var(--accent-soft); color: var(--ink); }

/* Type */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.022em; font-weight: 450; }
h2 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; }
h3 { font-size: clamp(19px, 1.5vw, 22px); line-height: 1.25; }
h4 { font-size: 16px; line-height: 1.3; font-weight: 500; }
p { margin: 0; text-wrap: pretty; }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow.accent { color: var(--accent-ink); }

.num { font-family: var(--mono); font-feature-settings: "tnum" 1; }

a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

/* Layout */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Topbar */
.topbar {
  border-bottom: 1px solid var(--rule-soft);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
  background: color-mix(in oklch, var(--bg) 88%, transparent);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-mark {
  width: 28px; height: 28px;
  background: var(--ink);
  color: var(--bg);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  border-radius: 4px;
  letter-spacing: -0.02em;
}
.brand-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-name .tld { color: var(--muted); }
.topnav {
  display: flex;
  gap: 22px;
  font-size: 13.5px;
}
.topnav a { color: var(--muted); text-decoration: none; }
.topnav a:hover { color: var(--ink); }
@media (max-width: 720px) { .topnav { display: none; } }

/* Hero */
.hero {
  padding: 56px 0 28px;
}
.hero-eyebrow { margin-bottom: 18px; }
.hero h1 { max-width: 18ch; margin-bottom: 18px; }
.hero-lede {
  max-width: 56ch;
  font-size: 18.5px;
  color: var(--ink-2);
  margin-bottom: 36px;
}
.hero-lede em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--accent-soft) 62%);
  padding: 0 2px;
}

/* Value-prop cards */
.props {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 760px) {
  .props { grid-template-columns: 1fr; }
}
.prop-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 26px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  min-height: 200px;
}
.prop-card .prop-num {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: oldstyle-nums;
}
.prop-card h2 {
  font-size: 24px;
  line-height: 1.15;
}
.prop-card p {
  color: var(--ink-2);
  font-size: 15px;
  max-width: 44ch;
}
.prop-card .prop-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12.5px;
  color: var(--muted);
}
.prop-card .prop-foot strong { color: var(--ink); font-weight: 500; font-family: var(--mono); font-size: 13px; }

/* Acknowledgement (optional via tweak) */
.ack {
  margin: 28px 0 0;
  padding: 14px 18px;
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  font-size: 14.5px;
  color: var(--accent-ink);
  border-radius: 0 4px 4px 0;
}

/* Section heads */
.section {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--rule-soft);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 32px;
}
.section-head .lede {
  max-width: 48ch;
  color: var(--muted);
  font-size: 15px;
}

/* Calculator + results main grid */
.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  align-items: start;
}
@media (max-width: 1000px) {
  .app-grid { grid-template-columns: 1fr; }
  .sidebar-col { display: none; }
}

/* Form */
.form-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.form-section {
  padding: 22px var(--card-pad);
  border-bottom: 1px solid var(--rule-soft);
}
.form-section:last-child { border-bottom: 0; }
.form-section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 18px;
}
.form-section-head .step {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  width: 28px;
}
.form-section-head h3 { font-size: 18px; }
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
  padding-left: 38px;
}
.form-row.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-row.cols-1 { grid-template-columns: 1fr; }
@media (max-width: 600px) {
  .form-row, .form-row.cols-3 { grid-template-columns: 1fr; }
  .form-row { padding-left: 0; }
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12.5px;
  color: var(--ink-2);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.field .hint {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}
.field .help-tip {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--muted);
  font-size: 10px;
  display: inline-grid;
  place-items: center;
  cursor: help;
  font-family: var(--serif);
  font-style: italic;
}
.field .help-tip:hover { border-color: var(--muted); color: var(--ink); }

input[type="text"], input[type="number"], select {
  appearance: none;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 10px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  width: 100%;
  font-family: var(--mono);
  letter-spacing: -0.005em;
}
input[type="number"] { -moz-appearance: textfield; }
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

select {
  font-family: var(--sans);
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%236B6258' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.input-prefixed {
  position: relative;
}
.input-prefixed .prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 14px;
}
.input-prefixed input { padding-left: 24px; }

/* Segmented control */
.segmented {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 2px;
  width: fit-content;
  flex-wrap: wrap;
}
.segmented button {
  appearance: none;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 13px;
  padding: 7px 12px;
  color: var(--ink-2);
  cursor: pointer;
  border-radius: 4px;
  white-space: nowrap;
}
.segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.segmented.full { width: 100%; display: grid; grid-auto-columns: 1fr; grid-auto-flow: column; }
@media (max-width: 600px) {
  .segmented.full { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
}

/* Results card */
.results {
  display: grid;
  gap: 18px;
}
.result-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
}
.result-headline {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 720px) {
  .result-headline { grid-template-columns: 1fr; }
}
.big-num {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 76px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 450;
}
.big-num .cents { font-size: 0.45em; color: var(--muted); letter-spacing: 0; vertical-align: 0.3em; margin-left: 2px; }
.result-subline {
  font-size: 14px;
  color: var(--muted);
  margin-top: 10px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.result-subline span strong { color: var(--ink); font-weight: 500; font-family: var(--mono); }

/* Breakdown table */
.breakdown {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 4px 0;
}
.breakdown-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 9px 14px;
  font-size: 14px;
  border-bottom: 1px dashed var(--rule-soft);
}
.breakdown-row:last-child { border-bottom: 0; }
.breakdown-row.head { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; padding-top: 8px; padding-bottom: 8px; }
.breakdown-row.subtotal { border-top: 1px solid var(--rule); font-weight: 500; margin-top: 4px; padding-top: 11px; }
.breakdown-row .label-sub { color: var(--muted); font-size: 12px; margin-left: 8px; }
.breakdown-row .v { font-family: var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.breakdown-row .v.neg { color: var(--ink-2); }
.breakdown-row .v.neg::before { content: "−"; margin-right: 2px; color: var(--muted); }

/* WARN card */
.warn-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
}
.warn-verdict {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 18px;
}
.warn-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--muted-2);
  flex-shrink: 0;
}
.warn-dot.on { background: var(--accent); }
.warn-verdict h3 { flex: 1; font-size: 18px; }
.warn-verdict .amount {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* Side panels (health, 401k, ui) */
.side-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 720px) { .side-panels { grid-template-columns: 1fr; } }
.side-panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 22px var(--card-pad);
}
.side-panel h3 {
  font-size: 17px;
  margin-bottom: 10px;
}
.side-panel .panel-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--rule-soft);
  font-size: 13px;
}
.side-panel .panel-meta dt { color: var(--muted); font-size: 12px; }
.side-panel .panel-meta dd { margin: 0; font-family: var(--mono); color: var(--ink); }
.side-panel p { font-size: 14px; color: var(--ink-2); }
.side-panel .panel-tag {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

/* Negotiation list */
.neg-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: var(--card-pad);
}
.neg-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 14px;
}
@media (max-width: 720px) { .neg-list { grid-template-columns: 1fr; } }
.neg-item {
  padding: 14px 0;
  border-top: 1px solid var(--rule-soft);
  padding-right: 18px;
}
.neg-item:nth-child(odd) { border-right: 0; }
@media (min-width: 721px) {
  .neg-item:nth-child(odd) { border-right: 1px solid var(--rule-soft); padding-right: 22px; }
  .neg-item:nth-child(even) { padding-left: 22px; }
  .neg-item:nth-child(1), .neg-item:nth-child(2) { border-top: 0; padding-top: 4px; }
}
.neg-item h4 { font-size: 15px; margin-bottom: 4px; }
.neg-item p { font-size: 13.5px; color: var(--muted); }
.neg-item .neg-leverage {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-ink);
  margin-top: 6px;
  display: inline-block;
}

/* Sidebar (desktop) */
.sidebar-col {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Ad slots
   Reserved-space-only chrome until AdSense actually fills.
   See docs/ad_slots.md "Unfilled slot behavior". */
.ad-slot {
  background: transparent;
  border: 0;
  display: block;
  text-align: center;
  position: relative;
  margin: 0 auto;
}
.ad-slot .ad-slot-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
  display: none;
  margin-bottom: 6px;
}
/* Label shows only when AdSense actually filled the slot. */
.ad-slot:has(ins[data-ad-status="filled"]) .ad-slot-label { display: block; }
/* Hide unfilled <ins> outright so the reserved space stays clean. */
.ad-slot ins[data-ad-status="unfilled"] { display: none !important; }

.ad-top-banner { min-height: 100px; margin-top: 18px; }
.ad-pre-result { min-height: 250px; max-width: 300px; width: 100%; }
.ad-mid-content { min-height: 90px; }
.ad-sidebar { min-height: 600px; width: 300px; }

.ad-mobile-sticky {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  min-height: 60px;
  background: var(--bg);
  border-top: 1px solid var(--rule);
  z-index: 20;
  padding: 6px 12px;
  align-items: center;
  justify-content: center;
}
.ad-mobile-sticky-inner {
  min-height: 50px;
  width: 100%;
  max-width: 320px;
}
.ad-mobile-sticky .close-x {
  position: absolute;
  top: 4px; right: 6px;
  width: 22px; height: 22px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  z-index: 1;
}
@media (max-width: 1000px) {
  .ad-mobile-sticky { display: flex; }
}
@media (max-width: 720px) {
  .ad-top-banner { min-height: 100px; }
  .ad-mid-content { min-height: 250px; }
}

/* Explainer */
.explainer-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 56px;
}
@media (max-width: 860px) { .explainer-grid { grid-template-columns: 1fr; gap: 24px; } }
.toc {
  position: sticky;
  top: 80px;
  align-self: start;
  font-size: 13.5px;
}
@media (max-width: 860px) { .toc { position: static; } }
.toc h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 500;
}
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li {
  counter-increment: toc;
  padding: 4px 0;
  color: var(--ink-2);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  flex-shrink: 0;
  width: 18px;
}
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent-ink); text-decoration: underline; }

.prose h3 {
  font-size: 22px;
  margin-top: 36px;
  margin-bottom: 12px;
  scroll-margin-top: 80px;
}
.prose h3:first-child { margin-top: 0; }
.prose p {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 14px;
  max-width: 62ch;
}
.prose p + p { margin-top: 0; }
.prose ul {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 16px;
}
.prose ul li { margin-bottom: 4px; }
.prose .callout {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  padding: 16px 20px;
  margin: 18px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
}
.prose .callout p { font-size: 15px; }
.prose .source {
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
  margin-top: 4px;
}

/* FAQ */
.faq {
  border-top: 1px solid var(--rule-soft);
}
.faq-item {
  border-bottom: 1px solid var(--rule-soft);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--sans);
  font-size: 22px;
  color: var(--muted);
  font-weight: 300;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body {
  padding: 0 0 22px;
  color: var(--ink-2);
  font-size: 15.5px;
  max-width: 62ch;
  line-height: 1.6;
}
.faq-item .faq-body p + p { margin-top: 10px; }

/* Footer */
footer.site {
  margin-top: var(--section-pad);
  background: var(--surface-2);
  padding: 56px 0 32px;
  font-size: 14px;
  color: var(--ink-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 56px;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 4px 0; }
.footer-col a { color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--accent-ink); text-decoration: underline; }
.footer-brand .brand-name { font-size: 19px; }
.footer-tagline {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
  max-width: 32ch;
}
.footer-divider {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 40px 0 22px;
}
.footer-legal {
  font-size: 12.5px;
  color: var(--muted);
  max-width: 78ch;
  line-height: 1.6;
  margin-bottom: 22px;
}
.footer-legal strong { color: var(--ink-2); font-weight: 500; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-bottom button.privacy-trigger {
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--accent-ink);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}
button.inline-link {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--accent-ink);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
button.inline-link:hover { color: var(--ink); }

/* Privacy modal */
.modal-scrim {
  position: fixed;
  inset: 0;
  background: color-mix(in oklch, #1C1814 50%, transparent);
  backdrop-filter: blur(2px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  animation: fade 0.16s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-head {
  padding: 22px 28px;
  border-bottom: 1px solid var(--rule-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-head h2 { font-size: 22px; }
.modal-close {
  appearance: none;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 50%;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--muted);
}
.modal-body {
  padding: 22px 28px;
  overflow-y: auto;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.modal-body h3 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 22px 0 8px;
  font-weight: 500;
}
.modal-body h3:first-child { margin-top: 0; }
.modal-body p { margin-bottom: 10px; }
.modal-body ul { padding-left: 20px; margin-bottom: 10px; }
.modal-body .short-version {
  background: var(--bg);
  border-left: 2px solid var(--accent);
  padding: 14px 18px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 18px;
  font-size: 14.5px;
  color: var(--ink);
}
.modal-foot {
  padding: 16px 28px;
  border-top: 1px solid var(--rule-soft);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.modal-foot .last-updated { margin-right: auto; font-family: var(--mono); font-size: 11px; }
.modal-foot button.primary {
  background: var(--ink);
  color: var(--bg);
  border: 0;
  padding: 9px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  font-size: 13.5px;
}

/* Print */
.print-link {
  font-size: 12.5px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--sans);
}
.print-link:hover { color: var(--ink); }

@media print {
  @page {
    size: letter;
    margin: 0.6in 0.55in 0.7in;
  }

  /* Hide everything that isn't the printout */
  body > *:not(#root),
  .topbar,
  .hero,
  #calculator .section-head,
  .form-card,
  .ad-slot,
  .ad-mobile-sticky,
  .sidebar-col,
  footer.site,
  .tweaks-trigger,
  .twk-panel,
  .toc,
  .modal-scrim,
  #how,
  #faq,
  .print-link,
  .topnav {
    display: none !important;
  }

  html, body {
    background: white !important;
    color: #15110B !important;
    font-size: 11pt;
    line-height: 1.45;
  }

  .section {
    border: 0 !important;
    padding: 0 !important;
    page-break-before: auto;
  }

  .wrap, .wrap-narrow {
    max-width: none !important;
    padding: 0 !important;
  }

  .app-grid {
    display: block !important;
  }

  /* Print-only summary block */
  .print-only { display: block !important; }

  /* Print header */
  .print-header {
    display: flex !important;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 1.5pt solid #15110B;
    padding-bottom: 10pt;
    margin-bottom: 18pt;
  }
  .print-header .ph-brand {
    font-family: "Newsreader", Georgia, serif;
    font-size: 18pt;
    font-weight: 500;
    letter-spacing: -0.01em;
  }
  .print-header .ph-brand .tld { color: #67695E; }
  .print-header .ph-meta {
    font-family: "IBM Plex Mono", monospace;
    font-size: 9pt;
    color: #5C5448;
    text-align: right;
  }
  .print-header .ph-meta .ph-title {
    display: block;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 8.5pt;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 2pt;
  }

  /* Inputs recap (print-only) */
  .print-inputs {
    margin-bottom: 22pt;
    page-break-inside: avoid;
  }
  .print-inputs .pi-head {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 8.5pt;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #67695E;
    margin-bottom: 8pt;
  }
  .print-inputs .pi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6pt 18pt;
    font-size: 10pt;
    border-top: 0.5pt solid #C8BFA9;
    padding-top: 8pt;
  }
  .print-inputs .pi-cell {
    display: flex;
    flex-direction: column;
    gap: 1pt;
  }
  .print-inputs .pi-label {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 8pt;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #888173;
  }
  .print-inputs .pi-value {
    font-family: "IBM Plex Mono", monospace;
    font-variant-numeric: tabular-nums;
    color: #15110B;
    font-size: 10.5pt;
  }

  /* Results: clean cards, no shadows, thin rules */
  .result-card,
  .warn-card,
  .side-panel,
  .neg-card {
    background: white !important;
    border: 0.5pt solid #C8BFA9 !important;
    border-radius: 4pt !important;
    padding: 14pt 16pt !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  .results {
    display: block !important;
  }
  .results > * + * { margin-top: 12pt; }

  .result-headline {
    display: grid !important;
    grid-template-columns: 1fr 1.3fr;
    gap: 18pt;
    align-items: start;
  }

  .big-num {
    font-size: 38pt !important;
    line-height: 1 !important;
    color: #15110B !important;
  }
  .big-num .cents {
    font-size: 0.42em !important;
    color: #67695E !important;
  }
  .result-subline {
    font-size: 9pt !important;
    margin-top: 6pt !important;
    color: #5C5448 !important;
  }

  .breakdown {
    background: transparent !important;
    padding: 0 !important;
  }
  .breakdown-row {
    padding: 4pt 0 !important;
    font-size: 10pt !important;
    border-bottom: 0.5pt dashed #D2C7B2 !important;
  }
  .breakdown-row.head {
    font-size: 7.5pt !important;
    color: #888173 !important;
    padding-top: 2pt !important;
    padding-bottom: 4pt !important;
  }
  .breakdown-row.subtotal {
    border-top: 0.75pt solid #15110B !important;
    font-weight: 500;
  }
  .breakdown-row .v { color: #15110B !important; }

  .eyebrow, .panel-tag {
    font-size: 7.5pt !important;
    letter-spacing: 0.14em !important;
  }

  .side-panels {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10pt !important;
  }
  .side-panel h3 { font-size: 11pt !important; }
  .side-panel p { font-size: 9.5pt !important; color: #322B22 !important; }
  .side-panel .panel-meta { font-size: 9pt !important; }
  .side-panel .panel-meta dt { font-size: 7.5pt !important; }

  .warn-verdict h3 { font-size: 12pt !important; }
  .warn-verdict .amount { font-size: 16pt !important; }
  .warn-dot { display: none !important; }
  .warn-verdict { padding-bottom: 8pt !important; margin-bottom: 8pt !important; }

  .neg-card h2 { font-size: 14pt !important; margin-top: 4pt !important; }
  .neg-card > p { font-size: 9.5pt !important; }
  .neg-list { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 0 !important; }
  .neg-item { padding: 8pt 14pt 8pt 0 !important; border-top: 0.5pt solid #D2C7B2 !important; }
  .neg-item:nth-child(odd) { border-right: 0.5pt solid #D2C7B2 !important; padding-right: 12pt !important; }
  .neg-item:nth-child(even) { padding-left: 12pt !important; }
  .neg-item:nth-child(1), .neg-item:nth-child(2) { border-top: 0 !important; padding-top: 2pt !important; }
  .neg-item h4 { font-size: 10pt !important; }
  .neg-item p { font-size: 9pt !important; }
  .neg-item .neg-leverage { font-size: 7.5pt !important; }

  /* Print footer line */
  .print-foot {
    display: block !important;
    margin-top: 16pt;
    padding-top: 8pt;
    border-top: 0.5pt solid #C8BFA9;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 8pt;
    color: #888173;
    line-height: 1.4;
  }
  .print-foot strong { color: #322B22; font-weight: 500; }

  /* Avoid orphaned headings */
  h2, h3, h4 { page-break-after: avoid; }
}

/* Hide print-only blocks on screen */
.print-only { display: none; }

/* Density (tweak) */
:root[data-density="roomy"] {
  --section-pad: 96px;
  --card-pad: 36px;
  --gutter: 36px;
}
:root[data-density="compact"] {
  --section-pad: 56px;
  --card-pad: 22px;
}
