/* ══════════════════════════════════════════════════════════════════
   toca.legal · calculator CSS
   ------------------------------------------------------------------
   Deltas on top of the existing site.css / legal.css. Uses the same
   tokens; adds nothing to the palette or the type scale.

   ONE DELETION TO MAKE IN legal.css:
   there is a stray copy of the mobile rule

       .calc-band .workings > summary .wk-hint{ display: none; }

   sitting OUTSIDE its media query, just above the @media (max-width:
   60rem) block. It hides the "and three more assumptions" hint at
   every width, so nothing tells anyone the extra assumptions exist.
   Delete that line; the copy inside @media (max-width: 600px) is the
   one that was intended.
   ══════════════════════════════════════════════════════════════════ */

/* ── The published ceiling, made visible ───────────────────────── */
.calc-cap {
  margin: 0 0 var(--space-lg);
  padding: var(--space-sm) var(--space-md);
  border-left: 2px solid var(--color-accent-solid);
  background: var(--color-paper-3);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-ink-2);
  max-width: 46ch;
}
.calc-cap b { color: var(--color-ink); font-weight: 500; font-variant-numeric: tabular-nums; }

/* ── Evidence badge ────────────────────────────────────────────── */
.calc-ev {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-ink-2);
  max-width: 48ch;
  margin: var(--space-lg) 0 0;
}
.calc-ev b { color: var(--color-ink); font-weight: 500; }

/* ── Workings actions ──────────────────────────────────────────── */
.wk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-lg);
  margin-top: var(--space-md);
}

/* ── Screen-reader-only live region ────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ── Homepage proof cards ──────────────────────────────────────────
   Three measured results. No sliders, no interaction, no commitment.
   Clicking one drops the visitor into the calculator preloaded on
   that step. Measured only — never a modelled figure here.
   ──────────────────────────────────────────────────────────────── */
.proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}
.proof-card {
  display: grid;
  align-content: start;
  gap: var(--space-sm);
  padding: var(--space-lg) 0 0;
  border-top: 2px solid var(--color-ink);
  text-decoration: none;
  color: inherit;
}
.proof-card .fig {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  line-height: 1;
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
}
.proof-card .what {
  font-size: var(--text-base);
  line-height: 1.4;
  color: var(--color-ink);
  max-width: 26ch;
}
.proof-card .who { font-size: var(--text-sm); color: var(--color-muted); }
.proof-card .go {
  font-size: var(--text-sm);
  color: var(--color-accent-text);
  border-bottom: 1px solid transparent;
  justify-self: start;
  margin-top: var(--space-xs);
  transition: border-color var(--dur-micro) var(--ease-out);
}
.proof-card:hover .go { border-bottom-color: var(--color-accent-text); }
.proof-card:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 6px; }

@media (max-width: 60rem) {
  .proof { grid-template-columns: 1fr; gap: var(--space-lg); }
}

/* ── Print ─────────────────────────────────────────────────────────
   The FD conversation happens in a meeting. Open the workings, drop
   the chrome, keep the numbers.
   ──────────────────────────────────────────────────────────────── */
@media print {
  .calc-band { background: #fff; padding: 0; }
  .trust-result { display: block; }
  .trust-facts { margin-bottom: 2rem; }
  .workings { display: block !important; }
  .workings > summary { display: none; }
  .workings > *:not(summary) { display: block !important; }
  .assump input[type="range"] { display: none; }
  .assump label { margin-bottom: .6rem; }
  /* LANDED-IN-REPO FIX (2 defects, reported to Mat):
     1. .wk-actions and .bc-actions sit inside .workings, so the
        !important rule three lines above out-specifies this one and
        the buttons printed. Re-stated with !important.
     2. This repo's footer class is .foot, not .site-footer. */
  .workings > .wk-actions, .bc-actions { display: none !important; }
  .nav, .site-footer, .foot { display: none; }
  .wk-chain { border: 1px solid #999; padding: .75rem; }
  .calc-cap { border-left: 2px solid #333; }
  a[href]::after { content: ""; }
}

/* ── Reduced motion ────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .proof-card .go, .chip { transition: none; }
}
