/* ProtectMyPortfolio — components. */

/* ================= NAV =================================================== */
.nav {
  border-bottom: 1px solid var(--rule);
  background: var(--bond);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: 64px;
  padding-block: var(--s-2);
}
.nav-links {
  display: flex;
  gap: var(--s-5);
  margin-left: auto;
  list-style: none;
  padding: 0;
  margin-block: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap-min);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* Locked copy: "Get your free plan". The ONLY permitted short form is
 * "Free plan" (BUILD-FIXES M1). Never "Get your plan" — "free" is the
 * highest-value word in the button. */
.nav-cta .cta-long  { display: inline; }
.nav-cta .cta-short { display: none; }

/* ---- Lockup ------------------------------------------------------------- */
.lockup { display: inline-flex; align-items: center; gap: var(--s-2); text-decoration: none; }
.lockup .wordmark {
  font-family: var(--font-wordmark);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: .005em;
  color: var(--ink);
  white-space: nowrap;
}
/* Brass appears EXACTLY ONCE per light lockup, and never on a surface showing
 * band colour — brass and the Watch band are 2.3 L* apart under red-green
 * colour blindness (design v3 §10). */
.lockup .lozenge { width: 7px; height: 7px; background: var(--brass); border-radius: 1.5px; flex: none; }
.lockup .divider { width: 1px; height: 18px; background: var(--slate); flex: none; }
.band-dark .lockup .wordmark { color: var(--bond); }

@media (max-width: 420px) {
  .nav-inner { gap: var(--s-2); }
  .nav-links { display: none; }
  .lockup .lozenge, .lockup .divider { display: none; }   /* brass drops out first */
  .lockup .wordmark { font-size: 17px; }
  .nav-cta { font-size: 15px; padding-inline: var(--s-4); }
  .nav-cta .cta-long  { display: none; }
  .nav-cta .cta-short { display: inline; }
}

/* ================= HERO ================================================== */
.hero { padding-top: var(--s-8); }
.hero-grid { display: grid; gap: var(--s-8); }
.hero h1 { margin-bottom: var(--s-4); }
.hero .lead { margin-bottom: var(--s-6); }

.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.score-card {
  background: var(--card);
  border: var(--e0-border);
  border-radius: var(--r-score);
  padding: var(--s-7) var(--s-6);
  box-shadow: var(--e2);
  text-align: center;
}
[data-band="defensive"] .score-card,
[data-band="alert"] .score-card {
  box-shadow: none;
  border: 1px solid var(--mark-current, var(--rule-strong));
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 420px);
    align-items: center;
    gap: var(--s-10);
  }
}

/* ================= BAND-CROSSING BANNER ==================================
 * One per page, at the top. The next step is in the first sentence.
 * No urgency theatrics, no exclamation points (design v3 §7). */
.crossing-banner {
  border: 1px solid var(--rule-strong);
  border-left: 4px solid var(--mark, var(--ink));
  border-radius: var(--r-plate);
  background: var(--card);
  padding: var(--s-4) var(--s-5);
  margin-bottom: var(--s-6);
}
.crossing-banner .label { display: block; margin-bottom: var(--s-2); }
.crossing-banner p { margin: 0; }

/* ================= SIGNAL CARDS ==========================================
 * Anatomy, identical for all seven components:
 *   icon · name · status caps · ink numeral over a 3px mark rule ·
 *   stress bar (fill value, 1px ink keyline at 30%) · plain-language blurb ·
 *   20-year sparkline (MARK value, 1.75px) · methodology expander · source line. */
.signal-grid { display: grid; gap: var(--s-4); }
@media (min-width: 768px)  { .signal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .signal-grid { grid-template-columns: repeat(3, 1fr); } }

.signal-card { display: flex; flex-direction: column; gap: var(--s-3); }

.signal-head { display: flex; align-items: center; gap: var(--s-3); }
.signal-name { font-family: var(--font-body); font-weight: 600; font-size: 19px; color: var(--ink); margin: 0; }
.signal-weight {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-meta);
}

.signal-readout { display: flex; align-items: baseline; gap: var(--s-3); }
.signal-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
  border-bottom: 3px solid var(--mark, var(--rule-strong));
  padding-bottom: var(--s-1);
}
.signal-status {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;               /* the 13px floor — colour never carries meaning alone */
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Stress bar: fill value, with a 1px ink keyline at 30% opacity. */
.stress-bar {
  height: 10px;
  background: var(--plate);
  border: 1px solid rgba(18, 31, 42, .3);
  border-radius: 2px;
  overflow: hidden;
}
.stress-bar > span {
  display: block;
  height: 100%;
  background: var(--fill, var(--rule-strong));
  transition: width var(--t-needle) var(--ease-measuring);
}

.signal-blurb { font-size: 16px; line-height: 26px; color: var(--text); margin: 0; }
.sparkline { display: block; width: 100%; height: 40px; }
.signal-source { font-family: var(--font-mono); font-size: 12.5px; line-height: 18px; color: var(--text-meta); margin: 0; }

/* ---- Expander: single-open accordion, 48px hit height ------------------- */
.expander { border-top: 1px solid var(--rule); }
.expander summary {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-height: var(--tap-primary);
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.expander summary::-webkit-details-marker { display: none; }
.expander summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--harbor);
}
.expander[open] summary::after { content: "−"; }
.expander .expander-body { padding-bottom: var(--s-4); font-size: 16px; line-height: 26px; }
.expander .why {
  border-left: 2px solid var(--rule-strong);
  padding-left: var(--s-3);
  margin-bottom: var(--s-3);
  color: var(--text-secondary);
}

/* ================= WEIGHT BAR ============================================
 * SEVEN entries — the Combination Engine is a component, not a footnote
 * (BUILD-FIXES C1). */
.weight-bar { display: flex; height: 34px; border-radius: var(--r-plate); overflow: hidden; border: 1px solid var(--rule-strong); }
.weight-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--bond);
  background: var(--ink);
  border-right: 1px solid var(--bond);
}
.weight-seg:last-child { border-right: 0; }
.weight-seg:nth-child(even) { background: #24374A; }

.weight-key { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-3); padding: 0; list-style: none; }
.weight-key li { font-size: 15px; color: var(--text-secondary); }
.weight-key b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ================= CROSS-MARKET PATTERNS =================================
 * New surface (BUILD-FIXES #8) — reuses signal-card anatomy. */
.patterns-card .pattern-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 30px;
  color: var(--ink);
  margin: 0;
}
.patterns-card .pattern-none {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 28px;
  color: var(--text-secondary);
  margin: 0;
}
.pattern-list { list-style: none; padding: 0; margin: 0; }
.pattern-list li { padding-block: var(--s-3); border-top: 1px solid var(--rule); }
.pattern-list li:first-child { border-top: 0; }
.pattern-list .pn { font-weight: 600; color: var(--ink); display: block; }
.pattern-list .pi { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-meta); }

/* ================= HISTORY CHART =========================================
 * Band fills ARE the chart background, so the line's height is the reading —
 * no legend. Axis labels are HTML at fixed size OUTSIDE the SVG. */
.history { position: relative; }
.history-plot { display: block; width: 100%; height: 260px; }
.history-axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-meta);
  margin-top: var(--s-2);
}
.history-bands { display: flex; flex-direction: column; font-family: var(--font-mono); font-size: 12.5px; }

/* ================= PPS LADDER ============================================
 * Five rungs with the dashed 63 · SAFETY LINE row between Sheltered and
 * Exposed. 63 opens the safety zone at SHELTERED — never Protected. */
.ladder { border: 1px solid var(--rule-strong); border-radius: var(--r-plate); overflow: hidden; }
.ladder-rung {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-top: 1px solid var(--rule);
  background: var(--card);
  min-height: var(--tap-min);
}
.ladder-rung:first-child { border-top: 0; }
.ladder-rung .swatch { width: 14px; height: 14px; border-radius: 3px; background: var(--fill); flex: none; }
.ladder-rung .name { font-weight: 600; color: var(--ink); }
.ladder-rung .range { margin-left: auto; font-family: var(--font-mono); font-size: 12.5px; color: var(--text-meta); }
.ladder-rung[aria-current="true"] { background: var(--plate); }
.ladder-rung .you { font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: var(--ink); }

.safety-line {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  border-top: 2px dashed var(--ink);
  border-bottom: 2px dashed var(--ink);
  background: var(--plate);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ================= FOUNDING COUNTER ======================================
 * Ink only. Never red, never a countdown clock. */
.founding-counter {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-pill);
  padding: var(--s-2) var(--s-4);
  background: var(--plate);
}
.founding-counter b { font-weight: 600; font-variant-numeric: tabular-nums; }
.founding-counter[data-state="closed"] { color: var(--text-secondary); }

/* ================= PILLARS =============================================== */
.pillar-grid { display: grid; gap: var(--s-4); }
@media (min-width: 768px)  { .pillar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pillar-grid { grid-template-columns: repeat(3, 1fr); } }

.pillar-card { display: flex; flex-direction: column; gap: var(--s-3); text-decoration: none; color: inherit; }
.pillar-card .hook { font-family: var(--font-display); font-size: 21px; line-height: 28px; color: var(--ink); margin: 0; }

/* Full-row retake chip: the WHOLE row is the target (audit D1). */
.retake-chip {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  min-height: 52px;
  padding: var(--s-3) var(--s-4);
  background: var(--card);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-button);
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.retake-chip:hover { border-color: var(--ink); }
.retake-chip .score { margin-left: auto; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ================= QUIZ ================================================== */
.quiz { max-width: 620px; margin-inline: auto; }
.progress { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-6); }
.progress-ticks { display: flex; gap: var(--s-1); flex: 1; }
.progress-ticks span { height: 4px; flex: 1; background: var(--rule); border-radius: 2px; }
.progress-ticks span[data-done="true"] { background: var(--ink); }

.question { font-family: var(--font-display); font-weight: 600; font-size: 25px; line-height: 32px; color: var(--ink); margin: 0 0 var(--s-3); }
.helper { color: var(--text-secondary); margin-bottom: var(--s-5); }

.options { display: flex; flex-direction: column; gap: var(--s-3); list-style: none; padding: 0; margin: 0 0 var(--s-5); }
.option {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 56px;              /* generous — this audience taps with a thumb */
  padding: var(--s-3) var(--s-4);
  background: var(--card);
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--r-button);
  cursor: pointer;
  font-size: 17px;
  line-height: 25px;
  color: var(--text);
  text-align: left;
  width: 100%;
}
.option:hover { border-color: var(--ink); }
.option .dot { width: 18px; height: 18px; border: 2px solid var(--rule-strong); border-radius: 50%; flex: none; }
.option[aria-pressed="true"] { border-color: var(--ink); }
.option[aria-pressed="true"] .dot { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 3px var(--card); }

.prev-link { background: none; border: 0; padding: var(--s-2) 0; font: inherit; font-size: 16px; color: var(--harbor); text-decoration: underline; cursor: pointer; min-height: var(--tap-min); }

/* Flip-reveal: 300ms out · 80ms hold · 380ms in. The hold IS the effect. */
.flip { transition: opacity 300ms var(--ease-opening), transform 300ms var(--ease-opening); }
.flip[data-flip="out"]    { opacity: 0; transform: translateY(-8px); }
.flip[data-flip="in"]     { opacity: 1; transform: none; transition-duration: 380ms; }
.flip[data-flip="reveal"] { opacity: 1; transform: none; }

/* ================= TIERED PLAN =========================================== */
.tier { margin-bottom: var(--s-7); }
.tier > h3 { padding-bottom: var(--s-2); border-bottom: 2px solid var(--mark); margin-bottom: var(--s-4); }
.tier-items { list-style: none; padding: 0; margin: 0; }
.tier-items li { display: flex; gap: var(--s-3); padding-block: var(--s-3); border-top: 1px solid var(--rule); }
.tier-items li:first-child { border-top: 0; }
.tier-items input[type="checkbox"] { width: 22px; height: 22px; margin: 3px 0 0; flex: none; accent-color: var(--ink); }

/* ================= FOOTER ================================================ */
.site-footer { border-top: 1px solid var(--rule); padding-block: var(--s-8); }
.site-footer .disclosure { font-size: 15px; line-height: 24px; color: var(--text-secondary); }
.footer-links { display: flex; flex-wrap: wrap; gap: var(--s-4); list-style: none; padding: 0; margin: 0 0 var(--s-4); }
.footer-links a { font-size: 15px; }

/* ================= PRINT ================================================= */
@media print {
  .nav, .site-footer, .btn, .no-print { display: none !important; }
  body { background: #fff; font-size: 11pt; line-height: 1.45; }
  .card { box-shadow: none; border: 1px solid #999; }
}

/* ================= SCORE GAUGE ===========================================
 * The 0-100 banded scale under the numeral. Hatch density carries the band
 * (see banded-scale.js) so the ramp survives both greyscale and a chart
 * background. Axis labels are HTML at fixed size, OUTSIDE the SVG — a single
 * scaling SVG cannot hold a legibility floor. */
.gauge { margin-top: var(--s-6); }
.gauge-axis {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-meta);
  margin-top: var(--s-1);
}
.score-of {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 400;
  color: var(--text-meta);
  margin-left: var(--s-2);
  vertical-align: baseline;
}

/* ================= HOMEPAGE ============================================== */
.two-things { display: flex; flex-direction: column; gap: var(--s-5); margin-top: var(--s-6); }
.two-things .thing { display: flex; gap: var(--s-4); align-items: flex-start; }
.two-things .thing p { margin: 0; }
.two-things .thing .heading-s { margin-bottom: var(--s-1); }

.how-grid { display: grid; gap: var(--s-5); list-style: none; padding: 0; margin: var(--s-6) 0 0; counter-reset: step; }
.how-grid li { display: flex; flex-direction: column; gap: var(--s-2); }
.how-grid p { margin: 0; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--rule-strong);
  font-family: var(--font-mono); font-size: 15px; font-weight: 600; color: var(--ink);
}
@media (min-width: 768px) { .how-grid { grid-template-columns: repeat(3, 1fr); gap: var(--s-7); } }

.trust-grid { display: grid; gap: var(--s-4); }
@media (min-width: 768px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

.founder-video { display: flex; gap: var(--s-5); align-items: center; flex-wrap: wrap; }
.video-poster {
  width: 140px; height: 96px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--plate); border: 1px solid var(--rule-strong); border-radius: var(--r-button);
  color: var(--text-secondary);
}

/* ---- Model portfolio allocation ---------------------------------------- */
.alloc { width: 100%; border-collapse: collapse; }
.alloc th { text-align: left; font-weight: 500; font-size: 16px; color: var(--text); padding: var(--s-2) var(--s-3) var(--s-2) 0; white-space: nowrap; }
.alloc th .meta { font-size: 11.5px; }
.alloc .alloc-bar { width: 100%; padding: var(--s-2) 0; }
.alloc .alloc-bar span {
  display: block; height: 12px; background: var(--ink); border-radius: 2px; min-width: 2px;
  transition: width var(--t-donut) var(--ease-measuring);
}
.alloc .alloc-pct {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  text-align: right; padding-left: var(--s-3); color: var(--ink); white-space: nowrap;
}

.pillar-card .label { color: var(--text-secondary); }
.pillar-card:hover { border-color: var(--rule-strong); box-shadow: var(--e2); }

/* ================= FORMS ================================================= */
.input {
  display: block; width: 100%;
  font: inherit; font-size: 17px;
  min-height: 2.82em;                       /* 48px at 17px — em, per Dynamic Type */
  padding: var(--s-3) var(--s-4);
  margin-top: var(--s-2);
  background: var(--card);
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--r-button);
  color: var(--ink);
}
.input:focus { border-color: var(--harbor); }

.checkbox {
  display: flex; gap: var(--s-3); align-items: flex-start;
  margin-top: var(--s-4); cursor: pointer;
  font-size: 16px; line-height: 24px; color: var(--text);
  min-height: var(--tap-min);
}
.checkbox input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }

.pillar-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-3); }

/* ================= LONG-FORM DOCUMENTS =================================== */
.doc { padding-block: var(--s-8); }
.doc h1 { margin-bottom: var(--s-5); }
.doc h2 { margin-top: var(--s-8); margin-bottom: var(--s-3); font-size: 26px; line-height: 32px; }
.doc h3 { margin-top: var(--s-6); margin-bottom: var(--s-2); font-size: 20px; line-height: 27px; }
.doc p { margin-bottom: var(--s-4); }
.doc-list { padding-left: var(--s-5); margin: 0 0 var(--s-4); }
.doc-list li { margin-bottom: var(--s-2); }

/* Unresolved legal blanks. Loud on purpose — these must not ship unnoticed. */
.todo {
  background: var(--band-2-fill);
  color: var(--ink);
  padding: 1px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: .9em;
  font-weight: 600;
}
.doc-quote {
  margin: 0 0 var(--s-5);
  padding-left: var(--s-4);
  border-left: 3px solid var(--rule-strong);
  color: var(--text-secondary);
}
.doc-quote p:last-child { margin-bottom: 0; }

/* ================= COMPARISON TABLE ====================================== */
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: var(--s-3) var(--s-4); text-align: left; vertical-align: top; }
.compare thead th {
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary);
  border-bottom: 1px solid var(--rule-strong);
}
.compare tbody th { font-weight: 500; font-size: 16px; color: var(--text); }
.compare tbody td { font-size: 16px; color: var(--text); }
.compare tbody tr { border-top: 1px solid var(--rule); }
.compare tbody tr:first-child { border-top: 0; }
.compare tbody td:last-child { color: var(--ink); }

/* A disabled-looking action must still be reachable by keyboard — it explains
   itself on activation rather than silently doing nothing. */
[data-stripe-link][aria-disabled="true"] { opacity: .75; }

/* History chart frame: plot plus the band scale beside it. The scale is an
   axis (where the thresholds sit), never a colour legend. */
.history-frame { display: flex; gap: var(--s-3); align-items: flex-start; }
.history-col { flex: 1; min-width: 0; }
.history-col .history-plot { width: 100%; }
.history-scale {
  display: flex; flex-direction: column;
  width: 74px; flex: none;
  list-style: none; margin: 0; padding: 0;
  height: 260px;
}
.history-scale li {
  display: flex; flex-direction: column; justify-content: center;
  border-top: 1px solid var(--rule-strong);
  padding-left: var(--s-2);
  overflow: hidden;
}
.history-scale li:last-child { border-bottom: 1px solid var(--rule-strong); }
.hs-word { font-size: 11.5px; font-weight: 600; color: var(--ink); line-height: 14px; }
.hs-num  { font-family: var(--font-mono); font-size: 11px; color: var(--text-meta); line-height: 14px; }
@media (max-width: 560px) { .history-scale { width: 62px; } }

/* ================= CALCULATORS ===========================================
 * The currency and percent marks sit INSIDE the field. As separate lines they
 * read as stray characters, and at this text size a stray "$" above an input
 * is genuinely confusing. */
.calc-field { margin-bottom: var(--s-5); }
.calc-field > label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  line-height: 26px;
  color: var(--ink);
  margin-bottom: var(--s-1);
}
.calc-help { font-size: 15px; line-height: 23px; color: var(--text-secondary); margin: 0 0 var(--s-2); }

.calc-input-wrap { position: relative; display: block; }
.calc-input-wrap .input { margin-top: 0; }
.calc-input-wrap .prefix,
.calc-input-wrap .suffix {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--text-meta);
  pointer-events: none;
}
.calc-input-wrap .prefix { left: var(--s-4); }
.calc-input-wrap .suffix { right: var(--s-4); }
.calc-field.has-prefix .input { padding-left: 30px; }
.calc-field.has-suffix .input { padding-right: 34px; }

/* Hide the spinner arrows — they invite fiddling and steal tap area on a
   field a retiree is typing a real number into. */
.calc-input-wrap .input::-webkit-outer-spin-button,
.calc-input-wrap .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-input-wrap .input[type=number] { -moz-appearance: textfield; }

/* The answer is a sentence first, a table second. */
.calc-answer { border-color: var(--rule-strong); }
.calc-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  color: var(--ink);
  margin: 0;
}
.calc-detail { font-size: 17px; line-height: 28px; color: var(--text); margin: var(--s-4) 0 0; }
.calc-answer .alloc th { font-weight: 500; white-space: normal; }
.calc-error { border-left: 4px solid var(--band-3-mark); }
