:root {
  --brand: #00c9a7;
  /* Accessible brand shade for text/links/CTA. The light value comes from the
     adviser's brandInk; dark mode swaps to --brand-ink-dark (brandOnDark). */
  --brand-ink-light: #0f766e;
  --brand-ink-dark: #5aa8e0;
  --brand-ink: var(--brand-ink-light);
  --accent: #eb7732;
  --background: #ffffff;
  --surface: #f8fafc;
  --text: #111827;
  --muted-text: #6b7280;
  /* Muted text that still clears 4.5:1 on the tinted fieldset band (--soft)
     and the hero/disclosure tints, where plain --muted-text measured 4.26:1.
     Used for field labels and fine print; it follows --muted-text and --text,
     so dark mode adapts with no extra rule. */
  --muted-strong: color-mix(in srgb, var(--muted-text) 72%, var(--text));
  --border: #d1d5db;
  --danger: #c0392b;
  /* Field surface + text-on-dark, tokenised so nothing hard-codes white. */
  --field-bg: #ffffff;
  --on-brand: #ffffff;
  /* Hairline that reads softer than the control border. */
  --hairline: color-mix(in srgb, var(--border) 70%, var(--background));
  /* Dark-mode chrome (warm-tinted, not flat black). Applied by mode below;
     values live here once so the two dark selectors just remap the roles. */
  --dark-background: #14161a;
  --dark-surface: #1d2026;
  --dark-text: #ecebe6;
  --dark-muted: #a7adb5;
  --dark-border: #30343c;
  --dark-hairline: #24272e;
  --dark-danger: #ef5f57;
  --dark-on-brand: #14161a;
  --body-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --heading-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Metric figures use the heading font unless the adviser picks another. */
  --figure-font: var(--heading-font);
  --calc-radius-card: 10px;
  --calc-radius-control: 8px;
  --calc-radius-button: var(--calc-radius-control);
  /* Optional adviser presentation (applyCalculatorTheme). Light-only colors
     arrive as "-light" variables and are switched off in dark mode below; an
     unset token leaves each element on its own default via var() fallback. */
  --calc-heading-ink: var(--calc-heading-ink-light);
  --calc-btn-hover: var(--calc-btn-hover-light);
  --calc-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  /* Spacing scale (4px base) for deliberate vertical rhythm. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  /* Suite-style layered surfaces + brand-tinted depth. Derived from --brand so
     every adviser gets the treatment in their own color. */
  --paper: color-mix(in srgb, var(--brand) 2%, var(--background));
  --soft: color-mix(in srgb, var(--brand) 6%, var(--surface));
  --surface-strong: var(--background);
  --brand-shadow: color-mix(in srgb, var(--brand) 26%, transparent);
}

/* Dark chrome: apply on OS preference (unless the user forced light) or when the
   user picks dark via the toggle. Only the neutral roles + brand ink swap; the
   accent auto-adapts because the hero value is color-mixed with --text. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --brand-ink: var(--brand-ink-dark);
    --calc-heading-ink: initial;
    --calc-btn-hover: initial;
    --background: var(--dark-background);
    --surface: var(--dark-surface);
    --field-bg: var(--dark-surface);
    --text: var(--dark-text);
    --muted-text: var(--dark-muted);
    --border: var(--dark-border);
    --hairline: var(--dark-hairline);
    --danger: var(--dark-danger);
    --on-brand: var(--dark-on-brand);
    --paper: var(--dark-background);
    --soft: color-mix(in srgb, var(--brand) 12%, var(--dark-surface));
    --surface-strong: color-mix(in srgb, var(--brand) 8%, var(--dark-surface));
    --brand-shadow: color-mix(in srgb, #000 42%, transparent);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --brand-ink: var(--brand-ink-dark);
  --calc-heading-ink: initial;
  --calc-btn-hover: initial;
  --background: var(--dark-background);
  --surface: var(--dark-surface);
  --field-bg: var(--dark-surface);
  --text: var(--dark-text);
  --muted-text: var(--dark-muted);
  --border: var(--dark-border);
  --hairline: var(--dark-hairline);
  --danger: var(--dark-danger);
  --on-brand: var(--dark-on-brand);
  --paper: var(--dark-background);
  --soft: color-mix(in srgb, var(--brand) 12%, var(--dark-surface));
  --surface-strong: color-mix(in srgb, var(--brand) 8%, var(--dark-surface));
  --brand-shadow: color-mix(in srgb, #000 42%, transparent);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--body-font);
  color: var(--text);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 5%, var(--paper)) 0, var(--paper) 360px),
    var(--paper);
  line-height: 1.5;
  font-feature-settings: "cv05", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body {
    background:
      radial-gradient(circle at 8% 0, color-mix(in srgb, var(--brand) 16%, transparent), transparent 34rem),
      linear-gradient(180deg, var(--dark-surface) 0, var(--dark-background) 420px),
      var(--dark-background);
  }
}
:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 8% 0, color-mix(in srgb, var(--brand) 16%, transparent), transparent 34rem),
    linear-gradient(180deg, var(--dark-surface) 0, var(--dark-background) 420px),
    var(--dark-background);
}

/* Embedded with a plain background (adviser presentation embed.background):
   the calculator sits on the host page's white section, with no brand tint or
   gradient drawing a faint box inside it. */
:root[data-embed-bg="plain"] body { background: var(--background); }

/* Embedded with a compact header (adviser presentation embed.header): the host
   page already shows the title and intro, so the firm name and description are
   hidden and the title stays only for screen readers. The tax-year pill stays. */
:root[data-embed-header="compact"] .calc__firm,
:root[data-embed-header="compact"] .calc > h1 + .calc__desc { display: none; }
:root[data-embed-header="compact"] .calc h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Forced light mode (adviser presentation colorScheme): no toggle. */
:root[data-theme-locked] .theme-toggle { display: none; }

/* All figures align in columns: tabular, lining numerals everywhere numbers show. */
.metric__value,
.kv td,
.calc__year,
.input-wrap input { font-variant-numeric: tabular-nums; }

.calc {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-5);
}

/* Inputs | results side by side on wide layouts; stacks below. Responds to the
   width the host page gives the embed.
   Wide: row 1 is the inputs beside the Key Results head (the hero and the
   first result groups); row 2, #results-more, runs the remaining groups full
   width below both, so a long readout no longer leaves a tall empty column
   under short inputs. The form controller decides how many groups sit beside
   the inputs from the visible field and card counts (calculator-form.js,
   besideGroupCount); no layout is measured. DOM and focus order are the
   reading order in every state: inputs, head, more groups, actions.
   Below 1024px everything stacks in that same order. */
.calc__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-5);
}
/* #results wraps the head and the full-width more groups; it has no box of
   its own, so both are items of the column grid (and #results still holds
   the whole readout for scripts and tests). */
.results-area { display: contents; }
.results-more:empty { display: none; }
.calc__cols > .calc-actions { margin-top: calc(var(--space-3) - var(--space-6)); }
@media (min-width: 1024px) {
  .calc__cols {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: start;
  }
  .calc__inputs { grid-column: 1; grid-row: 1; }
  .calc__results { grid-column: 2; grid-row: 1; }
  .results-more { grid-column: 1 / -1; }
  /* The actions follow the last result: full width under the more groups,
     or in the results column when every group fits beside the inputs. */
  .calc__cols > .calc-actions { grid-column: 1 / -1; }
  .calc__cols:has(.results-more:empty) > .calc-actions { grid-column: 2; }
}
/* Grid items default to min-width:auto, so one wide child (a long select, a
   results table) would push its column past a phone screen. Let them shrink. */
.calc__cols > * { min-width: 0; }
.calc__inputs fieldset { margin-bottom: 0; }
.calc__inputs fieldset + fieldset { margin-top: var(--space-4); }

/* Light/dark toggle, top-right of the calculator. */
.theme-toggle {
  position: absolute;
  top: var(--space-5);
  right: var(--space-5);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--calc-radius-control);
  background: var(--surface);
  color: var(--muted-text);
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}
.theme-toggle:hover {
  color: var(--text);
  border-color: color-mix(in srgb, var(--brand) 42%, var(--border));
}
.theme-toggle:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.theme-toggle svg { width: 17px; height: 17px; }

.calc__firm {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-ink);
  font-weight: 600;
  margin: 0 0 4px;
}

h1 {
  font-family: var(--heading-font);
  font-size: 1.375rem;
  font-weight: var(--calc-heading-weight, 700);
  text-transform: var(--calc-heading-transform, none);
  color: var(--calc-heading-ink, var(--text));
  margin: 0 0 6px;
  text-wrap: balance;
}

.calc__desc { color: var(--muted-text); margin: 0 0 12px; text-wrap: pretty; }

.calc__year {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: var(--space-4);
}

/* Visitor-language note when ?dataYear asked for a year with no figures. */
/* Shared draft-review notice (calculator-shell.js draftReviewNotice): plain
   text near the results, readable at body size, never color alone. */
.review-notice { margin: var(--space-3) 0 0; font-size: 0.9375rem; color: var(--muted-strong); }
.print-review-notice { margin: 6pt 0 0; font-size: 9pt; }
.calc__year-note { margin: calc(-1 * var(--space-2)) 0 var(--space-4); font-size: 0.875rem; color: var(--muted-strong); }

/* "Figures for" year switch (year-toggle.js), shown only when a projection
   year is offered. Sits under the year pill; wraps on phones. */
.calc .calc-year-toggle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  border: 0;
  padding: 0;
  margin: calc(-1 * var(--space-2)) 0 var(--space-4);
  font-size: 0.875rem;
}
.calc .calc-year-toggle__legend { float: left; padding: 0; margin-right: var(--space-2); font-weight: 600; color: var(--muted-strong); }
.calc .calc-year-toggle__option { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer; color: var(--text); }
/* On a phone the legend becomes screen-reader-only (each option already reads
   "Tax year ...") so the two options share one row; the toggle then costs one
   44px line and the result shortcut (#calc-jump) stays in the first screen
   (tests-e2e/shell-ux.spec.mjs S7, top under 400px). */
@media (max-width: 480px) {
  .calc .calc-year-toggle__legend {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0; float: none;
  }
  .calc .calc-year-toggle { position: relative; row-gap: 0; }
}
@media print { .calc .calc-year-toggle { display: none; } }

/* Small brand-colored dot anchors the tax-year pill. */
.calc__year::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

fieldset {
  /* Browsers default fieldset to min-inline-size:min-content, which keeps it
     as wide as its widest control and clips inputs on phones. */
  min-inline-size: 0;
  border: 1px solid var(--border);
  border-radius: var(--calc-radius-card);
  padding: var(--space-4);
  margin: 0 0 var(--space-5);
  background: var(--soft);
  box-shadow: 0 1px 3px var(--brand-shadow);
}

legend {
  padding: 0 0 var(--space-2);
  font-family: var(--heading-font);
  font-size: 0.875rem;
  font-weight: var(--calc-heading-weight, 600);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--calc-heading-ink, var(--brand-ink));
}

.field { display: flex; flex-direction: column; margin-bottom: var(--space-3); }
.field[hidden] { display: none; }
/* The label row is 24px tall (the help button's target). The label's FIRST
   line is centered in that 24px band by its top padding, and the help button
   sits at the top of the row, so the icon lines up with the first line even
   when a long label wraps to two lines (centering the whole block put the
   icon beside the middle of a wrapped label). */
.field__head { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 4px; }
.field__head { min-height: 24px; --field-label-lh: calc(0.8125rem * 1.4); }
.field__head label {
  font-size: 0.8125rem;
  line-height: var(--field-label-lh);
  padding-top: calc((24px - var(--field-label-lh)) / 2);
  color: var(--muted-strong);
  margin: 0;
}
.field__head .hint { margin: 0; }
.req { color: var(--danger); margin-left: 2px; font-weight: 700; }
.form-note { font-size: 0.875rem; color: var(--muted-strong); margin: 6px 2px 0; }
.field-readout { font-size: 0.8125rem; color: var(--brand-ink); margin: 5px 2px 0; font-weight: 500; }
.field__error { font-size: 0.8125rem; color: var(--danger); margin: 4px 2px 0; }

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-3);
}
.form-foot .form-note { margin: 0; }

.btn-reset {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-ink);
  background: transparent;
  border: 0;
  padding: 6px 8px;
  border-radius: var(--calc-radius-control);
  cursor: pointer;
  transition: background-color 140ms ease;
}
.btn-reset:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.btn-reset:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }

/* The help button: a 24px target (WCAG 2.5.8) drawing a 16px "i" circle.
   Not a link and not a form control: hover, focus, or tap shows the tooltip;
   Escape (or a second click or tap) hides it. */
.hint {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin: -4px 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  font: inherit;
  cursor: help;
  user-select: none;
}
/* A true circle (border) with an upright SVG "i" centered by flex. The glyph
   is SVG, not a letter, so the adviser's font never skews or offsets it. */
.hint__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--muted-text) 70%, var(--border));
  font-style: normal;
  line-height: 1;
}
.hint__icon svg { display: block; width: 10px; height: 10px; flex: 0 0 auto; }
.hint:hover .hint__icon,
.hint[aria-expanded="true"] .hint__icon { border-color: var(--brand); color: var(--brand-ink); }

.hint:focus { outline: none; }
.hint:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 0; border-radius: 50%; }

/* position: fixed so the bubble escapes the stat panel's overflow:hidden (and
   any viewport edge). JS sets left/top and --arrow-x on hover/focus. */
.hint__bubble {
  position: fixed;
  left: 0;
  top: 0;
  width: max-content;
  /* Never wider than a phone screen minus the 6px edge clamp positionHint uses. */
  max-width: min(230px, calc(100vw - 12px));
  /* The adviser's primary color (brand settings), never a hardcoded one. */
  background: var(--brand);
  color: var(--on-brand);
  font: 400 0.75rem/1.35 var(--body-font);
  text-align: left;
  padding: 8px 10px;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.22);
  opacity: 0;
  visibility: hidden;
  transition: opacity 140ms var(--calc-ease-out);
  pointer-events: none;
  z-index: 50;
}

.hint__bubble::after {
  content: "";
  position: absolute;
  left: var(--arrow-x, 50%);
  transform: translateX(-50%);
  border: 5px solid transparent;
}

/* Arrow points down when the bubble sits above the icon (default) … */
.hint:not(.hint--below) .hint__bubble::after {
  top: 100%;
  border-top-color: var(--brand);
}
/* … and up when flipped below. */
.hint--below .hint__bubble::after {
  bottom: 100%;
  border-bottom-color: var(--brand);
}

/* :focus-visible, not :focus: a click leaves focus on the button, and :focus kept
   the bubble open after the pointer left (it "stuck"). Pointer opening is the
   click toggle (aria-expanded); keyboard focus still opens it. */
.hint:hover .hint__bubble,
.hint:focus-visible .hint__bubble,
.hint[aria-expanded="true"] .hint__bubble {
  opacity: 1;
  visibility: visible;
}
/* Hoverable (WCAG 1.4.13): a mouse can move onto the bubble to read it. Only
   for hover pointers: on touch screens an open bubble must never catch a tap
   meant for the field under it (iPhone kept it open over the next input). */
@media (hover: hover) {
  .hint:hover .hint__bubble,
  .hint:focus-visible .hint__bubble,
  .hint[aria-expanded="true"] .hint__bubble { pointer-events: auto; }
}
/* Escape (or a second click or tap) dismisses it even while hovered or focused. */
.hint.hint--dismissed .hint__bubble {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* Bridges the gap between icon and bubble so moving onto it keeps it open. */
.hint__bubble::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
}
.hint:not(.hint--below) .hint__bubble::before { top: 100%; }
.hint--below .hint__bubble::before { bottom: 100%; }

.input-wrap {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--calc-radius-control);
  background: var(--field-bg);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.input-wrap:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 22%, transparent);
}

.input-wrap .adorn { color: var(--muted-text); font-size: 0.875rem; user-select: none; }

.input-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: var(--text);
  padding: 8px 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.field select,
.field > input {
  min-width: 0;
  max-width: 100%;
  font: inherit;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--calc-radius-control);
  background: var(--field-bg);
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.field select:focus,
.field > input:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 22%, transparent);
}

/* Invalid state for required fields, only after the user has interacted
   (:user-invalid) so the form never yells before it's been touched. */
.input-wrap:has(input:user-invalid),
.field select:user-invalid,
.field > input:user-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--danger) 18%, transparent);
}

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
/* A wide searchable pick list (the local tax picker, `wide: true`) takes the
   whole row: its entries run long ("Typical Maryland rate (3.20%)",
   85-character locality names) and were cut off in a half-width box. Any
   search entry that still does not fit its box is repeated, wrapped, under
   it (.field-fullvalue, calculator-form.js). */
.grid > .field:has(> input[data-wide]) { grid-column: 1 / -1; }

/* Every box in a row lines up (founder report, 2026-11-13). Beside a label
   that wraps to two lines, a one-line neighbor's box used to sit higher. Each
   field is a subgrid over its row's tracks: track 1 holds the label rows of
   the whole grid row, so they share one height; the label sits at the bottom
   of it (any extra space goes ABOVE a short label, never between a label and
   its own box); track 2 holds the boxes, so they share one top; the tracks
   after it take the error, readout and helper lines, one per track, so a
   message under one box never moves its neighbor. 8 tracks cover the head,
   the box and up to six lines under it. The grid's row gap moves into each
   field's bottom margin (same 22px / 12px rhythm as before), so the empty
   tracks add no space. One column at phone width works the same way. */
@supports (grid-template-rows: subgrid) {
  .grid { row-gap: 0; }
  .grid > * { grid-row: span 8; }
  /* :not([hidden]) so a showWhen field the controller hides stays hidden. */
  .grid > .field:not([hidden]) {
    display: grid;
    grid-template-rows: subgrid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    margin-bottom: calc(var(--space-3) + 10px);
  }
  .grid > .field > .field__head { align-self: end; }
}

/* One height for every box: text inputs, adorned inputs and selects. */
:root { --control-h: 42px; }
.input-wrap,
.field select,
.field > input { height: var(--control-h); }
.field-fullvalue { margin: 4px 2px 0; font-size: 0.8125rem; line-height: 1.4; color: var(--muted-strong); overflow-wrap: anywhere; }
.field-fullvalue[hidden] { display: none; }

h2 {
  font-family: var(--heading-font);
  font-size: 0.8125rem;
  font-weight: var(--calc-heading-weight, 700);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--calc-heading-ink, var(--muted-text));
  margin: var(--space-6) 0 var(--space-3);
  text-wrap: balance;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* The phone shortcut moves focus here; no ring on a heading that is not a control. */
#results-heading:focus { outline: none; }

/* Trailing hairline gives each section a clean editorial break. */
h2::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hairline);
}

.results {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

/* Secondary metrics are a responsive row of bordered cards, each label + value
   + a short plain-English caption. Cards wrap at about 180px and every row,
   the last included, shares its full width, so a short last row leaves no
   empty cells. (Long captions move to a note under the group.) */
.stat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.stat-grid > .metric { flex: 1 1 180px; min-width: 0; }
.stat-group__notes {
  margin: var(--space-2) 0 0;
  padding-left: 18px;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted-strong);
  text-wrap: pretty;
}
.stat-group__notes li + li { margin-top: var(--space-1); }
.stat-group__note-label { font-weight: 600; color: var(--text); }

.metric {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--calc-radius-card);
  box-shadow: 0 1px 3px var(--brand-shadow);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.metric__label { font-size: 0.875rem; color: var(--muted-strong); margin-bottom: var(--space-1); }

.metric__caption {
  margin: var(--space-1) 0 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted-strong);
  text-wrap: pretty;
}

.metric__value {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--figure-font);
  color: var(--calc-heading-ink, var(--text));
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.metric--hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 46%, var(--border));
  border-radius: var(--calc-radius-card);
  /* Neutral, tight lift — no colored bleed past the border. */
  box-shadow: 0 1px 2px color-mix(in srgb, var(--text) 6%, transparent);
  padding: var(--space-5);
}

/* A hint of the accent over the AA-safe muted tone: mixing with plain
   --muted-text failed 4.5:1 on the hero tint for light accents (adviserCMO
   orange, jeff tan). --muted-strong flips with the theme, so dark mode holds. */
.metric--hero .metric__label { color: color-mix(in srgb, var(--accent) 20%, var(--muted-strong)); }

.metric--hero__body { min-width: 0; }

.metric--hero .metric__value {
  /* Darkened accent so the headline number clears WCAG AA (~4.6:1) on the tint. */
  color: color-mix(in srgb, var(--accent) 65%, var(--text));
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

/* Plain-language takeaway under the headline number. */
.metric--hero__takeaway {
  margin: var(--space-2) 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: color-mix(in srgb, var(--muted-text) 78%, var(--text));
  max-width: 48ch;
  text-wrap: pretty;
}

/* Titled groups of supporting metrics. */
.stat-group + .stat-group { margin-top: var(--space-3); }
.stat-group__title {
  margin: 0 0 var(--space-2);
  font-family: var(--heading-font);
  font-size: 0.8125rem;
  font-weight: var(--calc-heading-weight, 600);
  text-transform: var(--calc-heading-transform, none);
  color: var(--muted-strong);
}

/* Shown in place of numbers when a required input is blank. */
.results__notice {
  margin: 0;
  padding: var(--space-4);
  font-size: 0.8125rem;
  color: var(--muted-strong);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--calc-radius-card);
}
.results__notice .req { color: var(--danger); }

.metric__label { display: flex; align-items: center; gap: 6px; }

.metric__action {
  flex: 0 0 auto;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  background: var(--brand-ink);
  color: var(--on-brand);
  text-decoration: none;
  font-weight: var(--calc-btn-weight, 600);
  text-transform: var(--calc-btn-transform, none);
  letter-spacing: var(--calc-btn-tracking, normal);
  padding: 11px 18px;
  border-radius: var(--calc-radius-button);
  transition: transform 140ms var(--calc-ease-out), background-color 160ms ease, box-shadow 160ms ease;
}

.cta:focus-visible {
  outline: 2px solid var(--brand-ink);
  outline-offset: 2px;
}

.cta:active { transform: scale(0.97); }

/* Secondary result actions: email-yourself + print. */
.calc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}
/* display:flex above beats the UA [hidden] rule, so restate it: the actions
   must genuinely disappear while the estimate is incomplete. */
.calc-actions[hidden] { display: none; }
.link-action {
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--brand-ink);
  background: transparent;
  border: 0;
  padding: 6px 8px;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--calc-radius-control);
  transition: background-color 140ms ease;
}
.link-action:hover { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.link-action:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }

.kv { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.kv th,
.kv td { padding: 6px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.kv th {
  color: var(--muted-strong);
  padding-right: 12px;
  text-align: left;
  font-weight: 400;
}
.kv td { text-align: right; font-weight: 500; overflow-wrap: anywhere; }
/* Labels keep a fixed share so a long value wraps instead of squeezing the
   label column into a narrow strip. */
.kv th { width: 38%; }

.disclosure {
  margin-top: var(--space-5);
  font-size: 0.875rem;
  color: var(--muted-strong);
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 34%, var(--border));
  border-radius: var(--calc-radius-control);
  padding: var(--space-3) var(--space-4);
  text-wrap: pretty;
  /* Source notes can carry long unbroken strings (citations, URLs); wrap them
     rather than widening the page on phones. */
  overflow-wrap: anywhere;
}

.disclosure ul { margin: var(--space-2) 0 0; padding-left: 18px; }
/* A link in a source note keeps the note's own (AA-checked) color on the
   tinted box and is told apart by its underline, never by color alone. */
.disclosure a { color: inherit; text-decoration: underline; }

/* Sources: a link to the primary source of each published figure
   (source-links.js). Muted, compact, wrapping long titles on phones. */
.calc-sources { margin-top: var(--space-5); }
.calc-sources__note { margin: 0 0 var(--space-2); font-size: 0.875rem; color: var(--muted-strong); }
.source-links {
  margin: 0;
  padding-left: 18px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-strong);
  overflow-wrap: anywhere;
}
.source-links li { margin: 2px 0; }
.source-links a {
  color: var(--brand-ink);
  display: inline-block;
  min-height: 24px;
  padding: 2px 0;
}
.source-links__host { font-size: 0.8125rem; color: var(--muted-strong); }
.source-links__states { margin-top: var(--space-2); font-size: 0.875rem; color: var(--muted-strong); }
.source-links__states summary { cursor: pointer; min-height: 24px; padding: 2px 0; color: var(--brand-ink); }
/* The adviser's firm disclosure (broker-dealer, advisory entity): its own
   paragraph after the calculator's disclosure, same text as the email. */
.disclosure .firm-disclosure { margin: var(--space-2) 0 0; }

/* Optional per-adviser consulting disclosure (consultingDisclosureMarkup):
   bold, at least 12 points. */
.calc-consulting-disclosure {
  margin-top: var(--space-5);
  font-weight: 700;
  font-size: max(12pt, 1rem);
  overflow-wrap: anywhere;
}

details.proof {
  margin-top: var(--space-5);
  border: 1px dashed var(--border);
  border-radius: var(--calc-radius-control);
  padding: var(--space-2) var(--space-4);
  font-size: 0.75rem;
  color: var(--muted-text);
}

details.proof summary { cursor: pointer; font-weight: 600; }
details.proof .kv td:last-child { font-family: ui-monospace, "SF Mono", Menlo, monospace; }

@media (hover: hover) and (pointer: fine) {
  .input-wrap:hover,
  .field select:hover,
  .field > input:hover {
    border-color: color-mix(in srgb, var(--brand) 42%, var(--border));
    background: color-mix(in srgb, var(--brand) 3%, var(--field-bg));
  }

  .cta:hover {
    background: var(--calc-btn-hover, color-mix(in srgb, var(--brand-ink) 90%, #000));
    box-shadow: 0 2px 6px color-mix(in srgb, var(--text) 14%, transparent);
  }
}

/* Touch devices: meet the 44px minimum tap target for controls and the hint. */
@media (pointer: coarse) {
  .input-wrap,
  .field select,
  .field > input { min-height: 44px; }
  :root { --control-h: 44px; }
  .hint__icon { width: 20px; height: 20px; }
  .hint__icon svg { width: 12px; height: 12px; }
  /* Transparent 44px hit area around the 24px button (pointer events route to .hint). */
  .hint::after { content: ""; position: absolute; inset: -10px; }
}

@media (max-width: 640px) {
  .calc { padding: var(--space-4); }
  h1 { font-size: 1.25rem; }
  fieldset { padding: var(--space-3); }
  /* minmax(0, 1fr), not 1fr: a 1fr track floors at its widest item's
     min-content, so a select with a long option label widened the page. */
  .grid { grid-template-columns: minmax(0, 1fr); }
  .metric--hero .metric__value { font-size: 1.6875rem; }
  .metric--hero {
    align-items: stretch;
    flex-direction: column;
  }
  .cta { width: 100%; }
  .kv th,
  .kv td {
    display: block;
    border-bottom: 0;
    padding: 4px 0;
  }
  .kv tr {
    display: block;
    border-bottom: 1px solid var(--border);
    padding: 6px 0;
  }
  .kv td { text-align: left; }
  .kv th { width: auto; }
}

/* Folds (phone-fold.js): long secondary sections collapse behind a native
   <details>, closed at every width (founder decision, 2026-11-03), with the
   summary shown at every width. The summary is a
   44px tap target in brand ink on the field surface (the same pairing as the
   phone result shortcut, The Adviser-Ink Contract Rule), with a chevron that
   turns, and a focus ring for keyboard users. */
.phone-fold > .phone-fold__summary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-3);
  list-style: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-ink);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--calc-radius-control);
}
.phone-fold > .phone-fold__summary::-webkit-details-marker { display: none; }
.phone-fold > .phone-fold__summary::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 140ms var(--calc-ease-out, ease);
}
.phone-fold[open] > .phone-fold__summary::before { transform: rotate(45deg); }
.phone-fold > .phone-fold__summary:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.phone-fold[open] > .phone-fold__body { margin-top: var(--space-2); }
.stat-group__more { margin-top: var(--space-2); }
.stat-group__more .stat-group__notes { margin-top: 0; }
.disclosure .phone-fold { margin-top: var(--space-2); }
.disclosure .phone-fold__body > ul { margin-top: 0; }

/* Section accordions (sectionFoldMarkup, phone-fold.js): Sources and
   Assumptions are closed at every width, and the section's own heading is
   the summary: the same uppercase heading with its hairline, led by the
   fold's chevron. The whole row is the control (at least 44px tall), with a
   focus ring for keyboard users. */
.section-fold > .section-fold__summary {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  margin: var(--space-6) 0 0;
  list-style: none;
  cursor: pointer;
  color: var(--calc-heading-ink, var(--muted-text));
  border-radius: var(--calc-radius-control);
}
.section-fold > .section-fold__summary::-webkit-details-marker { display: none; }
.section-fold > .section-fold__summary::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin: 0 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 140ms var(--calc-ease-out, ease);
}
.section-fold[open] > .section-fold__summary::before { transform: rotate(45deg); }
.section-fold > .section-fold__summary:hover > h2 { color: var(--brand-ink); }
.section-fold > .section-fold__summary:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.section-fold > .section-fold__summary > h2 { flex: 1; margin: 0; }
.section-fold__count { font-variant-numeric: tabular-nums; }
.section-fold[open] > .section-fold__body { margin-top: var(--space-3); }
.calc-sources { margin-top: 0; }

/* Phone: shorter pages. Result cards become rows of one list (label left,
   figure right, caption under both) instead of a stack of tall cards, and the
   vertical rhythm tightens. Nothing is hidden here; the folds above are the
   only collapsing. */
@media (max-width: 640px) {
  .calc__cols { gap: var(--space-5); }
  h2 { margin: var(--space-5) 0 var(--space-2); }
  .section-fold > .section-fold__summary { margin-top: var(--space-3); }
  .calc__inputs fieldset + fieldset { margin-top: var(--space-3); }
  .grid { row-gap: 4px; }
  .field { margin-bottom: var(--space-2); }
  /* With subgrid rows (above) the row gap rides in the field's margin. */
  @supports (grid-template-rows: subgrid) {
    .grid { row-gap: 0; }
    .grid > .field:not([hidden]) { margin-bottom: calc(var(--space-2) + 4px); }
  }
  .stat-group + .stat-group { margin-top: var(--space-2); }
  .stat-grid {
    gap: 0;
    background: var(--surface-strong);
    border: 1px solid var(--border);
    border-radius: var(--calc-radius-card);
    box-shadow: 0 1px 3px var(--brand-shadow);
  }
  .stat-grid > .metric {
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, max-content);
    column-gap: var(--space-3);
    row-gap: 0;
    align-items: baseline;
    padding: 10px var(--space-3);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .stat-grid > .metric + .metric { border-top: 1px solid var(--border); }
  .stat-grid > .metric > .metric__label { margin: 0; }
  .stat-grid > .metric > .metric__value { font-size: 1.0625rem; text-align: right; max-width: 11em; }
  .stat-grid > .metric > .metric__caption { grid-column: 1 / -1; margin-top: 2px; font-size: 0.8125rem; }
}

/* Visually hidden, still read by screen readers (the #calc-status region). */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Phone shortcut from the top of the form to the result. In the page flow on
   purpose (never sticky or fixed): it cannot cover an input, and it stays
   clear of the host page's own floating back-to-top button. Wide layouts
   show the result beside the form, so it is hidden there. */
.calc-jump {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  min-height: 44px;
  border: 1px solid color-mix(in srgb, var(--accent) 46%, var(--border));
  border-radius: var(--calc-radius-card);
  /* The field surface, not the hero's accent tint: brand ink is only
     guaranteed 4.5:1 on white (The Adviser-Ink Contract Rule). */
  background: var(--surface-strong);
  color: var(--text);
  text-decoration: none;
}
.calc-jump__text { display: flex; flex-direction: column; min-width: 0; }
.calc-jump__label { font-size: 0.8125rem; color: var(--muted-strong); }
.calc-jump__value {
  font-family: var(--figure-font);
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--accent) 65%, var(--text));
  overflow-wrap: anywhere;
}
.calc-jump__go { flex: 0 0 auto; font-size: 0.875rem; font-weight: 600; color: var(--brand-ink); }
.calc-jump--pending .calc-jump__value { display: none; }
.calc-jump:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
@media (min-width: 1024px) {
  .calc-jump { display: none; }
}

/* Bootstrap fallback (calculator-fallback.js). */
.calc-fallback__contact { margin: 0; color: var(--muted-strong); }
.calc-fallback__contact a { color: var(--brand-ink); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .hint__bubble,
  .input-wrap,
  .field select,
  .field > input,
  .cta {
    transition-duration: 0ms;
  }

  .cta:active { transform: none; }
  .phone-fold > .phone-fold__summary::before,
  .section-fold > .section-fold__summary::before { transition: none; }
}

/* The print report is built into #print-doc; hidden on screen. */
.print-doc { display: none; }

/* Print: swap the interactive calculator for a purpose-built, branded estimate
   report. Uses the adviser's brand ink/accent/font (already themed on :root). */
@media print {
  @page { margin: 1.6cm; }
  html, body { background: #fff; }

  /* Always print light, even when the screen is in dark mode. Must match the
     dark selectors' specificity (they use [data-theme]) to override them; this
     block is later in source order, so equal specificity resolves in its favour. */
  :root,
  :root:not([data-theme="light"]),
  :root[data-theme="dark"] {
    color-scheme: light;
    --brand-ink: var(--brand-ink-light);
    --background: #ffffff;
    --surface: #f8fafc;
    --field-bg: #ffffff;
    --text: #111827;
    --muted-text: #6b7280;
    --border: #d1d5db;
    --hairline: #dfe2e6;
    --on-brand: #ffffff;
  }

  .calc { display: none !important; }

  .print-doc {
    display: block;
    color: var(--text);
    font-family: var(--body-font);
    font-size: 10.5pt;
    line-height: 1.5;
  }
  .print-doc,
  .print-doc * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Table structure carries the running header (thead) + footer spacer (tfoot). */
  .print-report { width: 100%; border-collapse: collapse; }
  .print-report > thead td,
  .print-report > tbody td,
  .print-report > tfoot td { padding: 0; border: 0; vertical-align: top; }

  /* Masthead: firm in brand ink, over a brand rule. Repeats on every page. */
  .print-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12pt;
    padding-bottom: 8pt;
    margin-bottom: 16pt;
    border-bottom: 2pt solid var(--brand-ink);
  }
  .print-firm {
    font-family: var(--heading-font);
    font-size: 15pt;
    font-weight: var(--calc-heading-weight, 700);
    letter-spacing: -0.01em;
    color: var(--brand-ink);
  }
  .print-meta { font-size: 9pt; color: var(--muted-text); white-space: nowrap; }

  .print-title {
    font-family: var(--heading-font);
    font-size: 21pt;
    font-weight: var(--calc-heading-weight, 700);
    letter-spacing: -0.02em;
    margin: 0 0 2pt;
  }
  .print-sub { margin: 0 0 16pt; color: var(--muted-text); }

  /* Hero figure — the headline result as a branded callout. */
  .print-hero {
    background: color-mix(in srgb, var(--accent) 8%, #fff);
    border: 1pt solid color-mix(in srgb, var(--accent) 40%, var(--border));
    border-radius: 6pt;
    padding: 14pt 16pt;
    margin-bottom: 18pt;
    break-inside: avoid;
  }
  .print-hero__label {
    font-size: 9pt;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted-text);
  }
  .print-hero__value {
    font-family: var(--figure-font);
    font-size: 30pt;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 3pt 0 6pt;
    color: color-mix(in srgb, var(--accent) 65%, var(--text));
  }
  .print-hero__take {
    margin: 0;
    font-size: 10.5pt;
    max-width: 46em;
    color: color-mix(in srgb, var(--muted-text) 78%, var(--text));
  }

  /* Inputs + Assumptions sit side by side to keep the report tight. */
  .print-cols { display: flex; gap: 22pt; }
  .print-cols .print-section { flex: 1; }

  .print-section { margin-bottom: 16pt; break-inside: avoid; }
  .print-h2 {
    font-family: var(--heading-font);
    font-size: 9.5pt;
    font-weight: var(--calc-heading-weight, 700);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-ink);
    margin: 0 0 5pt;
    padding-bottom: 3pt;
    border-bottom: 0.75pt solid var(--hairline);
  }

  .print-kv { width: 100%; border-collapse: collapse; }
  .print-kv th,
  .print-kv td {
    padding: 3.5pt 0;
    font-size: 9.5pt;
    vertical-align: baseline;
    border-bottom: 0.5pt solid var(--hairline);
  }
  .print-kv th { text-align: left; font-weight: 400; color: var(--muted-text); padding-right: 10pt; }
  .print-kv td { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

  .print-results .print-group th {
    padding-top: 9pt;
    text-transform: none;
    font-weight: 700;
    font-size: 9pt;
    color: var(--text);
    border-bottom: 0.75pt solid var(--border);
  }
  .print-results .print-group:first-child th { padding-top: 0; }

  .print-disclosure {
    font-size: 8.5pt;
    color: var(--muted-text);
    background: color-mix(in srgb, var(--accent) 5%, var(--surface));
    border: 0.5pt solid var(--border);
    border-radius: 5pt;
    padding: 8pt 10pt;
    break-inside: avoid;
  }
  .print-disclosure ul { margin: 4pt 0 0; padding-left: 14pt; }
  .print-disclosure a, .print-sources a { color: inherit; text-decoration: none; }
  .print-sources li { break-inside: avoid; }
  .print-sources {
    margin: 0;
    padding-left: 14pt;
    font-size: 7.5pt;
    line-height: 1.3;
    columns: 2;
    column-gap: 14pt;
    color: var(--muted-text);
    overflow-wrap: anywhere;
  }
  .print-disclosure .firm-disclosure { margin: 4pt 0 0; }
  .print-consulting-disclosure {
    font-weight: 700;
    font-size: 12pt;
    margin: 0 0 8pt;
    overflow-wrap: anywhere;
    break-inside: avoid;
  }

  /* Reserves room at the bottom of every page so content never runs under the
     fixed footer (the tfoot repeats on each page). */
  .print-foot-spacer { height: 32pt; }

  /* Running footer: pinned to the bottom of every page, including a short last
     page — not trailing the last line of text. */
  .print-foot {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding-top: 6pt;
    border-top: 0.5pt solid var(--border);
    font-size: 8pt;
    color: var(--muted-text);
    text-align: center;
    background: #fff;
  }
}

/* Optional slider under a numeric field (field-format.js sliderMarkup). */
.field__slider { margin-top: 6px; }
.field__slider input[type="range"] { width: 100%; margin: 0; accent-color: var(--brand); }
.field__slider input[type="range"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Quick estimate / Detailed switch (quick-mode.js). Two native toggle
   buttons; the pressed one is filled with the brand ink (the same ink links
   use, so its contrast is already checked on --background), and also set in
   bold, so the state never rests on color alone. */
.mode-switch { margin: 0 0 16px; }
.mode-switch__group {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--calc-radius-control);
  background: var(--field-bg);
  padding: 3px;
  gap: 3px;
}
.mode-switch__btn {
  font: inherit;
  font-size: 0.95rem;
  min-height: 40px;
  padding: 6px 16px;
  border: 0;
  border-radius: calc(var(--calc-radius-control) - 2px);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.mode-switch__btn[aria-pressed="true"] {
  background: var(--brand-ink);
  color: var(--background);
  font-weight: 700;
}
.mode-switch__btn:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.mode-switch__note {
  margin: 8px 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-strong);
}
@media print { .mode-switch { display: none; } }
