/* ============================================================
   Fertilizer Savings ROI Calculator — Sound Agriculture
   Palette + type roles follow the Sound Agriculture Design System
   (digital palette; tracking minimums per tokens.json).
   ============================================================ */

/* ---------- Type ---------- */
@font-face {
  font-family: 'Roc Grotesk';
  src: url('fonts/roc-grotesk-medium.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'ABC Favorit';
  src: url('fonts/abc-favorit-regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'ABC Favorit';
  src: url('fonts/abc-favorit-bold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'ABC Favorit Mono';
  src: url('fonts/abc-favorit-mono-regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}

/* Values below are taken verbatim from the design system's styles/tokens.css
   (claude.ai/design, project b3f01aef-9c83-4ce0-b189-3e0abd156c14). Local
   names are kept as aliases so the rest of this file didn't have to change. */
:root {
  /* digital palette */
  --navy:        #1C222E;                  /* dark-blue-primary */
  --cream:       #FDF6E9;                  /* neutral-primary */
  --cream-deep:  #EDDFC5;                  /* --surface-beige (Neutral Dark) */
  --orange:      #D05327;                  /* orange-secondary */
  --orange-aa:   #E95B29;                  /* AA orange for text on white */
  --yellow:      #EBA723;                  /* yellow-secondary */
  --purple:      #5A4C9F;                  /* purple-secondary */
  --white:       #ffffff;
  --green:       #2f7d4f;

  /* derived ink + rules, per the system's "muted variants use opacity" rule */
  --navy-80:     #55606E;                  /* --ink-muted */
  --navy-50:     rgba(28, 34, 46, 0.55);
  --rule:        rgba(28, 34, 46, 0.14);   /* --hairline */
  --rule-on-dark: rgba(253, 246, 233, 0.18);

  --display: 'Roc Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --body:    'ABC Favorit', 'Favorit', Calibri, 'Helvetica Neue', Arial, sans-serif;
  --mono:    'ABC Favorit Mono', 'Favorit Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --tr-display: -0.01em;   /* --tracking-display */
  --tr-mono:     0.14em;   /* --tracking-eyebrow */
  --tr-body:     0.01em;

  --radius: 10px;          /* --radius-card */
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(28,34,46,0.06), 0 6px 20px rgba(28,34,46,0.08);
}

*, *::before, *::after { box-sizing: border-box; }

/* The UA's [hidden] rule loses to any author `display`, and several toggled
   blocks here are flex containers. Keep the attribute authoritative. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: var(--tr-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: var(--tr-display); margin: 0; }

sup { font-size: .55em; vertical-align: super; line-height: 0; }

/* ---------- Masthead ---------- */
.masthead {
  background: var(--white); color: var(--navy);
  padding: 20px; border-bottom: 3px solid var(--navy);
}
.masthead-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
/* The canonical SVG declares only a viewBox — no width/height — so as an <img>
   it has no intrinsic size and `height: auto` collapses it. aspect-ratio
   restores the viewBox proportions without touching the asset.
   It also carries whitespace inside that viewBox, so the mark renders ~85% of
   the box width: 205px box => ~174px mark, clear of the 144px floor below
   which the ® has to come off the art. */
.logo { width: 205px; aspect-ratio: 365.95 / 126.5; display: block; }

.crop-mark { display: flex; align-items: center; gap: 10px; }
.crop-icon { width: 38px; height: 38px; display: block; flex: none; }
.masthead-text { min-width: 0; flex: 1 1 auto; }
.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: var(--tr-mono);
  text-transform: uppercase; color: var(--orange-aa); margin: 0 0 3px;
}
.masthead h1 { font-size: clamp(19px, 3vw, 29px); text-transform: uppercase; line-height: 1.1; }

/* crop / product badge, per the design system's .hero__crop pill */
.crop-badge {
  font-family: var(--mono); font-size: 11px; letter-spacing: var(--tr-mono);
  text-transform: uppercase; color: var(--navy-80);
  border: 1px solid var(--rule); border-radius: var(--radius-pill);
  padding: 6px 15px; white-space: nowrap;
}

/* ---------- Shell ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 30px 20px 60px; }

.lede {
  font-size: 17px; line-height: 1.55; max-width: 68ch; margin: 0 0 26px;
  color: var(--navy-80);
}

/* ---------- Cross-link between the calculators ---------- */
.toolnav { margin: -4px 0 18px; }
.toolnav a {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: var(--tr-mono);
  text-transform: uppercase; color: var(--navy-80);
  text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: 2px;
}
.toolnav a:hover { color: var(--navy); border-bottom-color: var(--navy); }
.toolnav a:focus-visible { outline: 2.5px solid var(--yellow); outline-offset: 3px; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 22px; align-items: start; }
.col-inputs, .col-results { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px 22px;
}
.card-meta { margin-bottom: 20px; padding-bottom: 20px; }
.card-title {
  font-size: 13px; text-transform: uppercase; letter-spacing: var(--tr-display);
  color: var(--navy); margin: 0 0 4px;
  padding-bottom: 10px; border-bottom: 2px solid var(--yellow);
  display: inline-block;
}
.card-note { font-size: 13px; color: var(--navy-50); margin: 12px 0 0; line-height: 1.45; }
.card-note strong { color: var(--navy-80); font-weight: 700; }

/* ---------- Fields ---------- */
.field-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 16px; }
.field { flex: 1 1 190px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: var(--tr-mono);
  text-transform: uppercase; color: var(--navy-80);
}
.opt { color: var(--navy-50); text-transform: none; letter-spacing: 0; font-style: italic; }

input[type=text], input[type=number] {
  font-family: var(--body); font-size: 16px; color: var(--navy);
  background: var(--cream);
  border: 1px solid var(--rule); border-radius: 6px;
  padding: 9px 11px; width: 100%; min-width: 0;
}
input:focus-visible { outline: 2.5px solid var(--yellow); outline-offset: 1px; background: var(--white); }
input::placeholder { color: #b4aa97; }

.prefixed { position: relative; display: flex; align-items: center; }
.prefix {
  position: absolute; left: 11px; color: var(--navy-50); font-size: 15px; pointer-events: none;
}
.prefixed input { padding-left: 24px; }

/* ---------- DTN price loader ---------- */
.dtn {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 14px; padding: 11px 13px;
  background: var(--cream); border: 1px solid var(--cream-deep);
  border-left: 3px solid var(--purple); border-radius: 6px;
}
.dtn-note { font-size: 12px; color: var(--navy-50); margin: 0; flex: 1 1 190px; line-height: 1.4; }
.dtn-note strong { color: var(--navy-80); font-weight: 700; white-space: nowrap; }
.dtn-note a { color: var(--purple); text-decoration: underline; text-underline-offset: 2px; }
.dtn-note a:hover { color: var(--navy); }

/* ---------- Goal picker ---------- */
.goals { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.goal {
  text-align: left; cursor: pointer; font-family: var(--body);
  background: var(--white); border: 1.5px solid var(--rule);
  border-radius: 8px; padding: 11px 14px;
  transition: border-color .12s ease, background .12s ease;
}
.goal:hover { border-color: var(--navy-50); }
.goal:focus-visible { outline: 2.5px solid var(--yellow); outline-offset: 2px; }
.goal.is-on { border-color: var(--navy); background: var(--cream); border-width: 2px; padding: 10.5px 13.5px; }
.goal-t {
  display: block; font-family: var(--display); font-size: 15px;
  letter-spacing: var(--tr-display); color: var(--navy);
}
.goal.is-on .goal-t { color: var(--navy); }
.goal-d { display: block; font-size: 12.5px; color: var(--navy-50); margin-top: 3px; line-height: 1.4; }

/* ---------- Plan entry: sub-head + mode toggle ---------- */
.subhead {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: var(--tr-mono);
  text-transform: uppercase; color: var(--navy-80);
  margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--rule);
}
.toggle { display: inline-flex; margin-top: 10px; border: 1.5px solid var(--rule); border-radius: 6px; overflow: hidden; }
.toggle-btn {
  font-family: var(--mono); font-size: 10px; letter-spacing: var(--tr-mono); text-transform: uppercase;
  padding: 8px 13px; border: none; background: var(--white); color: var(--navy-50); cursor: pointer;
}
.toggle-btn + .toggle-btn { border-left: 1.5px solid var(--rule); }
.toggle-btn:hover { color: var(--navy); }
.toggle-btn.is-on { background: var(--navy); color: var(--white); }
.toggle-btn:focus-visible { outline: 2.5px solid var(--yellow); outline-offset: -3px; }

.computed {
  font-size: 13.5px; color: var(--navy-80); margin: 13px 0 0;
  padding: 9px 12px; background: var(--cream); border-left: 3px solid var(--yellow); border-radius: 5px;
}
.computed strong { font-weight: 700; color: var(--navy); }

.field-half { flex: 0 1 220px; }

/* ---------- Price table ---------- */
.price-table { width: 100%; border-collapse: collapse; margin-top: 16px; }
.price-table th, .price-table td { padding: 7px 6px; text-align: left; vertical-align: middle; }
.price-table thead th {
  font-family: var(--mono); font-size: 10px; letter-spacing: var(--tr-mono);
  text-transform: uppercase; color: var(--navy-50); font-weight: 400;
  border-bottom: 1px solid var(--rule); padding-bottom: 8px;
}
.price-table tbody th {
  font-weight: 700; font-size: 15px; white-space: nowrap; padding-left: 0;
}
.price-table .analysis {
  display: block; font-family: var(--mono); font-size: 9.5px; font-weight: 400;
  letter-spacing: var(--tr-mono); color: var(--navy-50); text-transform: uppercase;
}
.price-table td { width: 30%; }
.price-table th:first-child { width: 40%; }
.price-table .num { text-align: right; }
.price-table td.out {
  font-variant-numeric: tabular-nums; font-size: 15px; color: var(--navy-80); padding-right: 0;
}
.price-table td.out.on { color: var(--navy); font-weight: 700; }
.price-in { text-align: right; }

/* ---------- Derived nutrient prices ---------- */
.derived {
  display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap;
}
.derived-item {
  flex: 1 1 150px; background: var(--cream); border: 1px solid var(--rule);
  border-left: 3px solid var(--yellow); border-radius: 6px; padding: 10px 12px;
}
.derived-label {
  display: block; font-family: var(--mono); font-size: 10px; letter-spacing: var(--tr-mono);
  text-transform: uppercase; color: var(--navy-80);
}
.derived-val {
  display: block; font-family: var(--display); font-size: 23px; letter-spacing: var(--tr-display);
  margin: 2px 0 0; font-variant-numeric: tabular-nums;
}
.derived-sub { display: block; font-size: 11px; color: var(--navy-50); }

/* ---------- Buttons ---------- */
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  font-family: var(--mono); font-size: 11px; letter-spacing: var(--tr-mono); text-transform: uppercase;
  padding: 12px 20px; border-radius: var(--radius-pill); cursor: pointer;
  border: 2px solid var(--navy); background: transparent; color: var(--navy);
  transition: background .15s ease, color .15s ease, border-color .15s ease, filter .15s ease;
}
.btn:hover { background: var(--navy); color: var(--cream); }
.btn-primary { background: var(--yellow); border-color: var(--yellow); color: var(--navy); }
.btn-primary:hover { filter: brightness(0.9); background: var(--yellow); color: var(--navy); }
.btn-quiet { border-color: var(--rule); color: var(--navy-50); }
.btn-quiet:hover { background: var(--navy); border-color: var(--navy); color: var(--cream); }
.btn:focus-visible { outline: 2.5px solid var(--yellow); outline-offset: 2px; }
.btn.done { background: var(--green); border-color: var(--green); color: var(--white); }
.btn-small { font-size: 10px; padding: 9px 16px; }

/* ---------- Alert ---------- */
.alert {
  background: #fdf1e6; border: 1px solid var(--orange); border-left: 4px solid var(--orange);
  color: #8f3416; border-radius: 6px; padding: 12px 14px; margin: 0; font-size: 14.5px;
}

/* ---------- Scenarios ---------- */
.scenario { padding-top: 22px; border-top: 5px solid var(--navy); }
.scenario-hold { border-top-color: var(--yellow); }
.scenario-take { border-top-color: var(--orange); }

.scenario-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: var(--tr-mono);
  text-transform: uppercase; color: var(--navy-50); margin: 0 0 5px;
}
.scenario-title { font-size: clamp(21px, 2.6vw, 27px); text-transform: uppercase; line-height: 1.1; }
.scenario-sub { font-size: 14px; color: var(--navy-80); margin: 7px 0 0; line-height: 1.45; max-width: 46ch; }

/* Hero number */
.hero { border-radius: 8px; padding: 18px 20px; margin: 18px 0 4px; }
.hero-hold { background: var(--cream); border: 1px solid var(--cream-deep); }
.hero-take { background: var(--navy); }
.hero-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: var(--tr-mono);
  text-transform: uppercase; margin: 0 0 4px; color: var(--navy-80);
}
.hero-take .hero-label { color: var(--yellow); }
.hero-num {
  font-family: var(--display); font-size: clamp(38px, 7vw, 54px); line-height: 1;
  letter-spacing: var(--tr-display); margin: 0; font-variant-numeric: tabular-nums;
}
.hero-take .hero-num { color: var(--yellow); }
.hero-num.neg { color: var(--orange); }
.hero-unit { font-size: .42em; letter-spacing: var(--tr-display); margin-left: 3px; }
.hero-foot { font-size: 13px; margin: 7px 0 0; color: var(--navy-80); }
.hero-take .hero-foot { color: var(--cream); opacity: .72; }
.hero-take .hero-foot span { color: var(--cream); font-weight: 700; }

/* Hold-your-spend hero: the cut itself is the headline */
.hero-cut { background: var(--cream); border: 1px solid var(--cream-deep); }
.cut-pair { display: flex; gap: 14px; margin-top: 10px; }
.cut-cell {
  flex: 1 1 0; min-width: 0; background: var(--white);
  border: 1px solid var(--cream-deep); border-top: 3px solid var(--yellow);
  border-radius: 6px; padding: 11px 13px 12px;
}
.cut-num {
  display: block; font-family: var(--display); font-size: clamp(31px, 5.4vw, 42px);
  line-height: 1; letter-spacing: var(--tr-display); font-variant-numeric: tabular-nums;
}
.cut-unit {
  display: block; font-family: var(--mono); font-size: 10px; letter-spacing: var(--tr-mono);
  text-transform: uppercase; color: var(--navy-50); margin-top: 6px;
}
.hero-cut .hero-foot span { font-weight: 700; color: var(--navy); }

/* What you apply, before -> after, in units */
.planshift {
  margin-top: 14px; padding: 12px 15px;
  background: var(--white); border: 1px solid var(--rule); border-radius: 7px;
}
.planshift-label {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: var(--tr-mono);
  text-transform: uppercase; color: var(--navy-50); margin: 0 0 8px;
}
.shift-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 4px 0;
}
.shift-row + .shift-row { border-top: 1px dotted var(--rule); }
.shift-k { font-size: 14px; color: var(--navy-80); }
.shift-v { font-size: 14px; color: var(--navy-50); font-variant-numeric: tabular-nums; white-space: nowrap; }
.shift-v b { font-family: var(--display); font-size: 18px; letter-spacing: var(--tr-display); color: var(--navy); }
.shift-v i { color: var(--yellow); font-style: normal; margin: 0 3px; }

/* Line items */
.lines { margin: 16px 0 0; }
.line {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 7px 0; border-bottom: 1px dotted var(--rule);
}
.line dt { font-size: 14.5px; color: var(--navy-80); margin: 0; }
.line dd {
  font-size: 15.5px; font-weight: 700; margin: 0; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dt-sub {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: var(--tr-mono);
  text-transform: uppercase; color: var(--white); background: var(--navy-50);
  padding: 1px 5px; border-radius: 3px; margin-left: 5px;
}
.line-sub dt, .line-sub dd { font-size: 13px; color: var(--navy-50); font-weight: 400; }
.line-neg dd { color: var(--orange); }
.line-total dt { font-weight: 700; color: var(--navy); }
.line-rule {
  border-bottom: none; border-top: 2px solid var(--navy); margin-top: 6px; padding-top: 11px;
}
.line-rule dt { font-family: var(--display); font-size: 15px; text-transform: uppercase; color: var(--navy); letter-spacing: var(--tr-display); }
.line-rule dd { font-family: var(--display); font-size: 21px; letter-spacing: var(--tr-display); }

/* Before / after */
.beforeafter {
  display: flex; align-items: center; gap: 14px; margin-top: 16px;
  background: var(--cream); border: 1px solid var(--cream-deep); border-radius: 8px; padding: 13px 16px;
}
.ba-col { flex: 1 1 0; min-width: 0; }
.ba-label {
  display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: var(--tr-mono);
  text-transform: uppercase; color: var(--navy-50);
}
.ba-val {
  display: block; font-family: var(--display); font-size: 21px; letter-spacing: var(--tr-display);
  font-variant-numeric: tabular-nums;
}
.ba-arrow { color: var(--yellow); font-size: 22px; flex: 0 0 auto; }

/* Takeaway */
.takeaway {
  font-size: 14.5px; line-height: 1.5; margin: 16px 0 0; padding-top: 14px;
  border-top: 1px solid var(--rule); color: var(--navy-80);
}
.takeaway strong { color: var(--navy); font-weight: 700; }

/* ---------- Footer ---------- */
.foot { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--rule); }
.foot-brand {
  font-family: var(--display); font-size: 15px; letter-spacing: var(--tr-display);
  text-transform: lowercase; margin: 0 0 6px; color: var(--navy);
}
.foot-note { font-size: 11.5px; color: var(--navy-50); line-height: 1.5; margin: 0; max-width: 92ch; }
.foot-date { font-size: 11.5px; color: var(--navy-50); margin: 8px 0 0; }

/* ---------- Early-test switch between the corn page and the whole-farm page.
   Deliberately quiet: mono, muted, tucked under the footer date. ---------- */
.viewswitch {
  display: inline-flex; margin-top: 18px;
  border: 1px solid var(--rule); border-radius: var(--radius-pill); overflow: hidden;
}
.viewswitch a {
  font-family: var(--mono); font-size: 9px; letter-spacing: var(--tr-mono); text-transform: uppercase;
  color: var(--navy-50); text-decoration: none; padding: 5px 11px; white-space: nowrap;
}
.viewswitch a + a { border-left: 1px solid var(--rule); }
.viewswitch a:hover { color: var(--navy); }
.viewswitch a.is-on { color: var(--navy); background: var(--cream-deep); }
.viewswitch a span { color: var(--orange-aa); margin-left: 4px; }
.viewswitch a:focus-visible { outline: 2.5px solid var(--yellow); outline-offset: -3px; }

/* ---------- Print-only blocks ---------- */
.print-only { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .wrap { padding: 22px 15px 45px; }
  .card { padding: 17px 16px 19px; }
  .masthead { padding: 18px 15px; }
  /* 176px box => ~150px of mark, keeping it above the 144px floor that
     governs whether the ® may stay on the art */
  .logo { width: 176px; }
  .actions .btn { flex: 1 1 100%; }
  .price-table tbody th { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ============================================================
   PRINT — one clean leave-behind page
   ============================================================ */
@media print {
  @page { size: letter portrait; margin: 0.35in 0.45in; }

  html, body {
    background: var(--white) !important;
    font-size: 10pt;
    print-color-adjust: exact; -webkit-print-color-adjust: exact;
  }
  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }

  /* hide the interactive chrome */
  .actions, .alert, .lede, .toolnav, .card-note, .derived-sub, .foot-note, .viewswitch { display: none !important; }
  .print-only { display: block !important; }

  .masthead { padding: 0 0 8pt; background: var(--white) !important; border-bottom: 2.5pt solid var(--navy); }
  /* at 7.6in the three masthead items wrap to a second row; keep them on one */
  .masthead-inner { gap: 12pt; flex-wrap: nowrap; }
  /* The SVG's viewBox pads the mark (ink spans y 32-86 of 126.5), which costs
     ~38px of dead height in a print header. Negative margins collapse the
     padding without shrinking the artwork. */
  .logo { width: 132pt; margin: -12pt 0 -15pt; }
  .crop-mark { gap: 6pt; }
  .crop-icon { width: 22pt; height: 22pt; }
  .masthead h1 { color: var(--navy); font-size: 13.5pt; }
  .eyebrow { color: var(--orange) !important; font-size: 7pt; }
  .crop-badge { font-size: 6.5pt; padding: 3pt 9pt; }

  .wrap { padding: 9pt 0 0; max-width: none; }

  /* meta line: grower + prepared by, as fill-in rules rather than form fields */
  .card-meta { border: none; box-shadow: none; padding: 0 0 7pt; margin: 0 0 8pt; border-bottom: .75pt solid var(--rule); border-radius: 0; }
  .card-meta .field-row { margin: 0; gap: 30pt; }
  .card-meta input {
    border: none; border-bottom: .75pt solid var(--rule); background: none;
    padding: 1pt 0; font-size: 10.5pt; font-weight: 700; border-radius: 0;
  }
  .card-meta input::placeholder { color: transparent; }   /* leave a blank rule to write on */
  .card-meta .field-label { font-size: 7pt; }

  /* one result card now: give it the left column and stand the recap beside it */
  .layout {
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 14pt; align-items: start;
  }
  .col-results { display: block; }
  .col-inputs { display: none; }

  /* the input cards are replaced by the compact recap table */
  .col-inputs .card { display: none !important; }

  .card {
    border: .75pt solid var(--rule); box-shadow: none; border-radius: 4pt;
    padding: 7pt 9pt 9pt; break-inside: avoid;
  }
  .scenario { border-top-width: 3pt; }
  .scenario-title { font-size: 13pt; }
  .scenario-sub { font-size: 8pt; margin-top: 3pt; }
  .scenario-tag { font-size: 7pt; }

  .hero { padding: 7pt 9pt; margin: 7pt 0 2pt; }
  .hero-num { font-size: 23pt; }
  .hero-label { font-size: 7pt; }
  .hero-foot { font-size: 7.5pt; margin-top: 3pt; }

  .cut-pair { gap: 7pt; margin-top: 6pt; }
  .cut-cell { padding: 6pt 8pt 7pt; border-top-width: 2pt; }
  .cut-num { font-size: 20pt; }
  .cut-unit { font-size: 6.5pt; margin-top: 2pt; }

  .planshift { margin-top: 7pt; padding: 7pt 9pt; }
  .planshift-label { font-size: 6.5pt; margin-bottom: 4pt; }
  .shift-row { padding: 2pt 0; }
  .shift-k, .shift-v { font-size: 8pt; }
  .shift-v b { font-size: 11pt; }

  .lines { margin-top: 8pt; }
  .line { padding: 2.5pt 0; }
  .line dt { font-size: 8pt; }
  .line dd { font-size: 9pt; }
  .line-sub dt, .line-sub dd { font-size: 7pt; }
  .line-rule { padding-top: 8pt; }
  .line-rule dt { font-size: 9pt; }
  .line-rule dd { font-size: 12pt; }
  .beforeafter { padding: 5pt 8pt; margin-top: 7pt; }
  .ba-val { font-size: 11pt; }
  .takeaway { font-size: 8pt; margin-top: 5pt; padding-top: 5pt; }

  /* recap of inputs — auto-places into the layout's second column, beside the
     result card, because .col-inputs is display:none and drops out of the grid */
  .print-recap { margin-top: 0; break-inside: avoid; }
  .print-recap h2 {
    font-size: 8pt; text-transform: uppercase; color: var(--navy);
    border-bottom: 1.5pt solid var(--yellow); padding-bottom: 2.5pt; margin-bottom: 5pt;
  }
  .recap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4pt 10pt; }
  .recap-item { border-bottom: .5pt dotted var(--rule); padding-bottom: 2pt; }
  .recap-k {
    display: block; font-family: var(--mono); font-size: 5.5pt; letter-spacing: var(--tr-mono);
    text-transform: uppercase; color: var(--navy-50);
  }
  .recap-v { display: block; font-size: 8pt; font-weight: 700; font-variant-numeric: tabular-nums; }

  .foot { margin-top: 5pt; padding-top: 3pt; border-top: .75pt solid var(--rule); }
  .foot-brand { font-size: 8.5pt; margin-bottom: 2pt; }
  .foot-date { font-size: 6.5pt; margin-top: 4pt; }
  .print-disclaimer { display: block !important; font-size: 6.5pt; color: var(--navy-50); line-height: 1.35; margin: 3pt 0 0; }
}
