/* ==========================================================================
   Eleos benefits calculator
   Every value below resolves to a token in tokens.css.
   ========================================================================== */

/* --- Fonts -----------------------------------------------------------------
   Brand faces, matching eleoslife.com: Poppins for display, Work Sans for
   body. Work Sans is variable (400-700, one file); Poppins ships static per
   weight. IBM Plex Mono is not a brand face — it is here because currency
   needs tabular figures that line up in the ledger columns. */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/worksans-400-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Work Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/worksans-400-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plexmono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/plexmono-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plexmono-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/plexmono-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/plexmono-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/plexmono-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --- Reset ---------------------------------------------------------------- */

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

* {
  margin: 0;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-300);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

/* Any class that sets `display` outranks the UA rule for [hidden], so state
   the intent once, here, rather than per-component. */
[hidden] {
  display: none !important;
}

button,
input {
  font: inherit;
  color: inherit;
}

/* One focus treatment for the whole page. */
:where(a, button, input, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Type primitives ------------------------------------------------------ */

.eyebrow {
  font-size: var(--fs-100);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--muted);
  line-height: var(--lh-snug);
}

.note {
  font-size: var(--fs-200);
  line-height: var(--lh-normal);
  color: var(--muted);
  max-width: var(--measure);
}

.num {
  font-family: var(--font-mono);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--ls-tight);
}

/* --- Page shell ----------------------------------------------------------- */

.page {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--sp-7) var(--sp-4) var(--sp-8);
}

@media (min-width: 30rem) {
  .page {
    padding-inline: var(--sp-5);
  }
}

.masthead {
  display: flex;
  justify-content: center;
  margin-bottom: var(--sp-6);
}

.masthead img {
  height: 34px;
  width: auto;
}

.page-eyebrow {
  font-size: var(--fs-100);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--employer);
  margin-bottom: var(--sp-3);
}

.title {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: var(--fs-700);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  max-width: 20ch;
  margin-bottom: var(--sp-3);
  text-wrap: balance;
}

.title em {
  font-style: normal;
  color: var(--employer);
}

.subtitle {
  font-size: var(--fs-400);
  line-height: var(--lh-snug);
  color: var(--ink);
  max-width: var(--measure);
  margin-bottom: var(--sp-3);
  text-wrap: pretty;
}

.lede {
  color: var(--muted);
  max-width: var(--measure);
}

.lede a {
  color: var(--employer);
  text-underline-offset: 0.2em;
}

/* --- Setup ----------------------------------------------------------------
   Headcount sits ahead of the numbered steps: it is not part of "what you
   offer", and every figure further down is scaled by it. */

.setup {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: var(--sp-6);
}

/* --- Steps ----------------------------------------------------------------
   Two levels of separation, and the ratio between them is the point:
     fields inside a step  --sp-6 (32)
     between steps         --sp-7 (48) of padding either side of a hairline */

.steps {
  margin-top: var(--sp-6);
  border-top: 1px solid var(--border);
}

.step {
  display: flex;
  flex-direction: column;
  gap: var(--sp-7);
  padding-block: var(--sp-7);
  border-bottom: 1px solid var(--border);
}

.step__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.step__index {
  inline-size: 1.5rem;
  block-size: 1.5rem;
  flex: none;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  font-weight: var(--fw-semibold);
  background: var(--employer-tint);
  color: var(--employer-strong);
}

.step--employee .step__index {
  background: var(--employee-tint);
  color: var(--employee);
}

.step__title {
  font-family: var(--font-display);
  font-size: var(--fs-400);
  font-weight: var(--fw-bold);
  line-height: var(--lh-solid);
}

.step__aside {
  font-size: var(--fs-200);
  color: var(--muted);
}

/* --- Questions ------------------------------------------------------------
   A numbered sub-part of a step. The number is earned: it marks something
   the reader decides, so steps 3 and 4 — which only report — carry none. */

.question {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.question__head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.question__num {
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  font-weight: var(--fw-semibold);
  color: var(--employer);
  flex: none;
}

.step--employee .question__num {
  color: var(--employee);
}

/* --- Field groups --------------------------------------------------------- */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.field__hint {
  font-size: var(--fs-200);
  color: var(--muted);
  max-width: var(--measure);
}

.field--headcount {
  max-width: 12rem;
}

.input {
  inline-size: 100%;
  min-block-size: var(--tap);
  font-family: var(--font-mono);
  font-size: var(--fs-400);
  font-weight: var(--fw-medium);
  font-variant-numeric: tabular-nums;
  padding: var(--sp-2) var(--sp-3);
  border: var(--bw) solid var(--border-control);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease);
}

.input:hover {
  border-color: var(--border-strong);
}

.input:focus-visible {
  border-color: var(--employer);
  outline: none;
  box-shadow: var(--ring);
}

/* --- Info disclosure ------------------------------------------------------
   The visible dot is 20px; the button is a full 44px tap target with the
   overflow absorbed by negative margin so it does not disturb the row. */

.info {
  inline-size: var(--tap);
  block-size: var(--tap);
  margin: calc((var(--tap) - 1.25rem) / -2);
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.info::before {
  content: "i";
  inline-size: 1.25rem;
  block-size: 1.25rem;
  border-radius: var(--r-full);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  font-weight: var(--fw-semibold);
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  background: var(--surface-sunken);
  color: var(--muted);
  transition: background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.info:hover::before {
  background: var(--employer-tint);
  color: var(--employer);
}

.info[aria-expanded="true"]::before {
  background: var(--employer);
  color: var(--surface);
}

.callout {
  font-size: var(--fs-200);
  line-height: var(--lh-normal);
  padding: var(--sp-3);
  border-radius: var(--r-md);
  background: var(--employer-tint);
  color: var(--ink);
  max-width: var(--measure);
}

.callout--standalone {
  margin-top: var(--sp-5);
}

/* --- Plan grid ------------------------------------------------------------
   Both grids use the same markup and the same row height, so step 1 and
   step 2 stay visually parallel. */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: var(--sp-2);
}

.plan {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-block-size: var(--tap);
  padding: var(--sp-2) var(--sp-3);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface-raised);
  cursor: pointer;
  text-align: start;
  transition: background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.plan:hover {
  border-color: var(--border-strong);
}

.plan:has(:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.plan__box {
  inline-size: 1rem;
  block-size: 1rem;
  flex: none;
  border-radius: var(--r-sm);
  border: var(--bw) solid var(--border-control);
  background: var(--surface);
  display: grid;
  place-items: center;
  transition: background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.plan__box svg {
  inline-size: 0.625rem;
  block-size: 0.625rem;
  stroke: var(--surface);
  stroke-width: 3;
  fill: none;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease);
}

.plan__icon {
  flex: none;
  color: var(--muted);
}

.plan__text {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  min-width: 0;
}

.plan__name {
  font-size: var(--fs-200);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
}

/* The rate is supporting detail, not a second title. It stays quiet in every
   state — selecting a plan no longer promotes it to a brand colour. */
.plan__rate {
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  font-weight: var(--fw-regular);
  font-variant-numeric: tabular-nums;
  color: var(--muted-soft);
  /* Wraps rather than overflowing when the grid is at its narrowest
     two-column width (around 500px viewport). */
  overflow-wrap: anywhere;
}

/* Checked — employer side */
.plans--offer .plan:has(:checked) {
  background: var(--employer-tint-faint);
  border-color: var(--employer-tint);
}
.plans--offer .plan:has(:checked) .plan__box {
  background: var(--employer);
  border-color: var(--employer);
}
.plans--offer .plan:has(:checked) .plan__icon {
  color: var(--employer);
}

/* Checked — employee side */
.plans--pick .plan:has(:checked) {
  background: var(--employee-tint-faint);
  border-color: var(--employee-tint);
}
.plans--pick .plan:has(:checked) .plan__box {
  background: var(--employee);
  border-color: var(--employee);
}
.plans--pick .plan:has(:checked) .plan__icon {
  color: var(--employee);
}

.plan:has(:checked) .plan__box svg {
  opacity: 1;
}

/* Unavailable — the employer has not offered this plan */
.plan:has(:disabled) {
  cursor: not-allowed;
  background: transparent;
  border-style: dashed;
  opacity: 0.55;
}

.plan:has(:disabled) .plan__name {
  font-weight: var(--fw-regular);
}

/* --- Allowance slider -----------------------------------------------------
   The value bubble tracks the thumb but is clamped inside the track, so it
   cannot hang off either end at $0 or $150. */

.allowance {
  max-width: 26rem;
}

.allowance__readout {
  position: relative;
  block-size: 2rem;
}

/* `left` is set in pixels by app.js, clamped so the bubble cannot hang off
   either end of the track at $0 or $150. */
.allowance__value {
  position: absolute;
  bottom: 0;
  left: 0;
  translate: -50% 0;
  font-family: var(--font-mono);
  font-size: var(--fs-500);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
  line-height: var(--lh-solid);
  color: var(--employer);
  white-space: nowrap;
  transition: left var(--dur-fast) var(--ease);
}

.slider {
  inline-size: 100%;
  block-size: var(--tap);
  margin: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.slider:focus-visible {
  outline: none;
}

.slider::-webkit-slider-runnable-track {
  block-size: 0.375rem;
  border-radius: var(--r-full);
  background: linear-gradient(
    to right,
    var(--employer) 0 var(--fill, 20%),
    var(--border) var(--fill, 20%) 100%
  );
}

.slider::-moz-range-track {
  block-size: 0.375rem;
  border-radius: var(--r-full);
  background: linear-gradient(
    to right,
    var(--employer) 0 var(--fill, 20%),
    var(--border) var(--fill, 20%) 100%
  );
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  inline-size: 1.375rem;
  block-size: 1.375rem;
  margin-top: -0.5rem;
  border-radius: var(--r-full);
  background: var(--surface);
  border: var(--bw) solid var(--employer);
  box-shadow: 0 1px 3px rgb(27 27 41 / 0.18);
  transition: box-shadow var(--dur-fast) var(--ease);
}

.slider::-moz-range-thumb {
  inline-size: 1.375rem;
  block-size: 1.375rem;
  border-radius: var(--r-full);
  background: var(--surface);
  border: var(--bw) solid var(--employer);
  box-shadow: 0 1px 3px rgb(27 27 41 / 0.18);
}

.slider:focus-visible::-webkit-slider-thumb {
  box-shadow: var(--ring);
}
.slider:focus-visible::-moz-range-thumb {
  box-shadow: var(--ring);
}

.scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--fs-100);
  color: var(--muted);
}

/* --- Split bar ------------------------------------------------------------
   The one place the two party colours meet. Segments fall back to a stacked
   legend when either side gets too narrow to label in place. */

.split {
  display: flex;
  gap: 2px;
  block-size: 3.5rem;
}

.split--empty {
  border-radius: var(--r-md);
  background: var(--surface-sunken);
}

.split__seg {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding-inline: var(--sp-3);
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  border-radius: var(--r-md);
  transition: flex-basis var(--dur-med) var(--ease);
}

.split__seg:not(:first-child) {
  border-start-start-radius: 0;
  border-end-start-radius: 0;
}

.split__seg:not(:last-child) {
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}

.split__seg--employer {
  background: var(--employer-tint);
  color: var(--employer-strong);
}

.split__seg--employee {
  background: var(--employee-tint);
  color: var(--employee);
}

.split__who {
  font-size: var(--fs-100);
  font-weight: var(--fw-semibold);
}

.split__amount {
  font-family: var(--font-mono);
  font-size: var(--fs-200);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
}

.split__seg[data-narrow] .split__who {
  display: none;
}

.split__seg[data-narrow="tiny"] .split__amount {
  display: none;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  font-size: var(--fs-200);
  color: var(--muted);
}

.legend__item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.legend__swatch {
  inline-size: 0.75rem;
  block-size: 0.75rem;
  border-radius: var(--r-sm);
  flex: none;
}

.legend__swatch--employer {
  background: var(--employer-tint);
  border: var(--bw) solid var(--employer-fill);
}

.legend__swatch--employee {
  background: var(--employee-tint);
  border: var(--bw) solid var(--employee-fill);
}

/* --- Figures --------------------------------------------------------------
   Three tiers, so the reader can rank them at a glance:
     .figure--lead  the obligation      — fs-600, employer violet
     .figure        the two savings     — fs-500, matched pair
   The old page set all three at one size and one weight. */

.figure {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.figure__label {
  font-size: var(--fs-100);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--muted);
}

.figure__value {
  font-family: var(--font-mono);
  font-size: var(--fs-500);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
}

.figure__note {
  font-size: var(--fs-200);
  color: var(--muted);
  max-width: var(--measure);
}

.figure--lead .figure__value {
  font-size: var(--fs-600);
}

.figure--employer .figure__value {
  color: var(--employer);
}

.figure--employee .figure__value {
  color: var(--employee);
}

.figure-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--sp-5);
}

/* --- Breakdown ------------------------------------------------------------ */

.breakdown {
  border-top: 1px solid var(--border);
  padding-top: var(--sp-4);
}

.breakdown__summary {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-block-size: var(--tap);
  font-size: var(--fs-100);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}

.breakdown__summary::-webkit-details-marker {
  display: none;
}

.breakdown__summary::before {
  content: "";
  inline-size: 0.5rem;
  block-size: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  rotate: -45deg;
  translate: 0 -1px;
  transition: rotate var(--dur-fast) var(--ease);
}

.breakdown[open] .breakdown__summary::before {
  rotate: 45deg;
}

.breakdown__body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--sp-5);
  padding-top: var(--sp-4);
}

.ledger {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.ledger__title {
  font-size: var(--fs-200);
  font-weight: var(--fw-bold);
}

.ledger--employer .ledger__title {
  color: var(--employer);
}

.ledger--employee .ledger__title {
  color: var(--employee);
}

.ledger__rows {
  display: flex;
  flex-direction: column;
}

.ledger__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-3);
  padding-block: var(--sp-2);
  border-bottom: 1px solid var(--border);
}

/* The final rule in a column would otherwise dangle above the footnote. */
.ledger__row:last-child {
  border-bottom: 0;
}

.ledger__label {
  font-size: var(--fs-100);
  line-height: var(--lh-snug);
  color: var(--muted);
}

.ledger__value {
  font-family: var(--font-mono);
  font-size: var(--fs-200);
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ledger__value--credit {
  color: var(--employer);
}

.ledger--employee .ledger__value--credit {
  color: var(--employee);
}

.ledger__foot {
  font-size: var(--fs-100);
  line-height: var(--lh-normal);
  color: var(--muted);
  padding-top: var(--sp-1);
}

/* --- Rate assumptions -----------------------------------------------------
   Stacked rows rather than a table: four columns of this much text cannot
   survive 320px without horizontal scroll, and the basis matters more than
   column alignment. */

.assumptions {
  border-top: 1px solid var(--border);
  padding-top: var(--sp-4);
}

.assumptions__title {
  font-size: var(--fs-100);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-2);
}

.assumptions__intro {
  font-size: var(--fs-200);
  line-height: var(--lh-normal);
  color: var(--muted);
  max-width: var(--measure);
  margin-bottom: var(--sp-4);
}

.assumptions__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.assumption {
  padding-block: var(--sp-3);
  border-bottom: 1px solid var(--border);
}

.assumption:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.assumption__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-1);
}

.assumption__name {
  font-size: var(--fs-200);
  font-weight: var(--fw-bold);
}

.assumption__rate {
  font-size: var(--fs-200);
  color: var(--employer);
  white-space: nowrap;
}

.assumption__per {
  font-family: var(--font-body);
  font-weight: var(--fw-regular);
  color: var(--muted-soft);
}

.assumption__buys,
.assumption__ages {
  font-size: var(--fs-100);
  line-height: var(--lh-normal);
  color: var(--muted);
  max-width: var(--measure);
}

.assumption__ages {
  color: var(--muted-soft);
}

/* --- Disclaimer ----------------------------------------------------------- */

.disclaimer {
  font-size: var(--fs-100);
  line-height: var(--lh-normal);
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: var(--sp-4);
}
