/* toc-source 0.3.5-staging: GD tokens.css v2.1 with @font-face moved to partials/toc/fonts.hbs ({{asset}} URLs, same as the preloads). */
/* ==========================================================================
   Tables of Content · F Table Rules v2.1 · design tokens · 2026-11-11
   Heritage blue only (no tomato, no red anywhere). Generated by _src/build_tokens.py; edit there.
   Prefix: --toc-. Load order in toc-source: toc-fonts.css → tokens.css → (tokens.legacy-aliases.css) → toc-overrides.css.
   Contrast (WCAG 2.x, computed from hex):
         white on blue        9.98:1  AAA                    Filled cell text, result cell, Join-free fill
          blue on paper       9.01:1  AAA                    Links on the site ground
          blue on white       9.98:1  AAA                    Links on white panels
         white on blue-deep  12.40:1  AAA                    Hover/pressed fills
           ink on blue-tint  13.09:1  AAA                    Text in selected rows
          blue on blue-tint   8.20:1  AAA                    Link inside a selected row
           ink on paper      14.38:1  AAA                    Body text
           ink on white      15.93:1  AAA                    Body text on panels/inputs
         slate on paper       5.61:1  AA                     Meta text on paper
         slate on white       6.22:1  AA                     Meta text on white
         slate on blue-tint   5.11:1  AA                     Meta text in a selected row
         green on paper       5.68:1  AA                     ✓ On target
         green on white       6.29:1  AA                     ✓ On target on white
         amber on paper       5.35:1  AA                     ▲ Close to target
         amber on white       5.93:1  AA                     ▲ Close to target on white
         white on ink        15.93:1  AAA                    Text on ink (primary button)
         paper on blue        9.01:1  AAA                    Paper text/cell on the blue panel
           ink on paper      14.38:1  pass (non-text ≥ 3:1)  Focus ring on paper (2 px ink)
           ink on white      15.93:1  pass (non-text ≥ 3:1)  Focus ring on white
         white on blue        9.98:1  pass (non-text ≥ 3:1)  Focus ring on the blue panel (white)
           ink on blue-tint  13.09:1  pass (non-text ≥ 3:1)  Focus ring in a selected row
          blue on paper       9.01:1  pass (non-text ≥ 3:1)  Filled cell edge vs. paper (non-text)
          edge on white       4.30:1  pass (non-text ≥ 3:1)  Input boundary on white
          edge on paper       3.88:1  pass (non-text ≥ 3:1)  Input boundary vs. paper ground
          blue on ink         1.60:1  FAIL as text           NOT ALLOWED: blue cell on ink (turn it paper/white)
          blue on blue        1.00:1  FAIL as text           NOT ALLOWED: blue on blue
     blue-tint on paper       1.10:1  FAIL (non-text)        Tint vs. paper: background only, never meaning alone
   ========================================================================== */

/* ---- Fonts: 2 files, self-hosted, OFL. Paths are relative to this file; in the theme use assets/fonts/. ---- */
/* Metric-adjusted local fallbacks keep CLS near 0 during swap. Tune size-adjust against the live render if CLS > 0.02. */

:root{
  /* Palette (core) */
  --toc-ink:#1b2230;         /* Text, rules, primary button, focus ring */
  --toc-paper:#f6f3ec;       /* Site ground */
  --toc-white:#ffffff;       /* Panels, inputs, text on fills */
  --toc-blue:#143e8d;        /* Heritage blue: the ONE filled cell per screen, and links */
  --toc-blue-tint:#e4e9f3;   /* Selected / current row background (never meaning alone) */
  --toc-blue-deep:#0f3170;   /* Hover and pressed state of blue fills; link hover */
  --toc-slate:#5a6170;       /* Meta text, captions, column heads */
  --toc-edge:#767a83;        /* Input/control boundary: ink at 60% on white (v2.1 spec fix: the mock’s 35% edge was 2.13:1) */
  --toc-green:#2f6b4f;       /* Status: ✓ On target / ✓ Saved */
  --toc-amber:#8a5a00;       /* Status: ▲ Close to target / Unsaved changes dot */
  --toc-hair:rgba(27,34,48,.16);       /* hairline rule (decorative, ink at 16%) */
  --toc-hover:rgba(27,34,48,.035);     /* row hover wash */

  /* Semantic aliases: components use ONLY these */
  --toc-color-text:var(--toc-ink);           /* Body and headings */
  --toc-color-text-muted:var(--toc-slate);   /* Meta, captions, helper text (AA on paper and white) */
  --toc-color-bg:var(--toc-paper);           /* Page ground */
  --toc-color-surface:var(--toc-white);      /* Inputs, panels on paper */
  --toc-color-selected:var(--toc-blue-tint); /* Current/selected row */
  --toc-color-link:var(--toc-blue);          /* Links (always underlined) */
  --toc-color-link-hover:var(--toc-blue-deep);/* Link hover */
  --toc-color-fill:var(--toc-blue);          /* The one filled cell */
  --toc-color-fill-text:var(--toc-white);    /* Text on the filled cell */
  --toc-color-fill-hover:var(--toc-blue-deep);/* Filled button hover/pressed */
  --toc-color-button:var(--toc-ink);         /* Primary button */
  --toc-color-button-text:var(--toc-white);  /* Primary button label */
  --toc-color-rule:var(--toc-ink);           /* 1 px and 3 px table rules */
  --toc-color-control-edge:var(--toc-edge);  /* Input and select boundary (non-text ≥ 3:1) */
  --toc-color-focus:var(--toc-ink);          /* Focus ring on light grounds */
  --toc-color-focus-on-dark:var(--toc-white);/* Focus ring on ink/blue grounds */
  --toc-color-status-ok:var(--toc-green);    /* ✓ word + icon */
  --toc-color-status-warn:var(--toc-amber);  /* ▲ word + icon */
  --toc-color-status-error:var(--toc-ink);   /* ⚠ word + icon, semibold. No red */
  --toc-color-panel-dark:var(--toc-blue);    /* Blue Operations panel ground */
  --toc-color-panel-dark-cell:var(--toc-white);/* The cell on the blue panel turns white (never blue on blue) */

  /* Type */
  --toc-font-serif:'Shippori Mincho', 'TOC Mincho Fallback', Georgia, serif;
  --toc-font-sans:'Public Sans', 'TOC Sans Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --toc-text-display:5.25rem; --toc-text-display-m:2.875rem; --toc-leading-display:1.04; --toc-tracking-display:-0.012em; /* 84/46 px · serif 400 · Home H1 only */
  --toc-text-title-1:4.5rem; --toc-text-title-1-m:2.5rem; --toc-leading-title-1:1.04; --toc-tracking-title-1:-0.012em; /* 72/40 px · serif 400 · Article H1 */
  --toc-text-title-2:4rem; --toc-text-title-2-m:2.5rem; --toc-leading-title-2:1.05; --toc-tracking-title-2:-0.01em; /* 64/40 px · serif 400 · Tool H1, tag/contents H1 */
  --toc-text-title-3:2.75rem; --toc-text-title-3-m:2rem; --toc-leading-title-3:1.1; --toc-tracking-title-3:0; /* 44/32 px · serif 400 · Section heads (Contents), email heading */
  --toc-text-title-4:2.125rem; --toc-text-title-4-m:1.688rem; --toc-leading-title-4:1.15; --toc-tracking-title-4:0; /* 34/27 px · serif 400 · Article H2 */
  --toc-text-lead:1.625rem; --toc-text-lead-m:1.312rem; --toc-leading-lead:1.5; --toc-tracking-lead:0;    /* 26/21 px · serif 400 · Article first paragraph */
  --toc-text-row:1.312rem; --toc-text-row-m:1.125rem; --toc-leading-row:1.3; --toc-tracking-row:0;     /* 21/18 px · serif 400 · Contents/leader row titles, calculator labels */
  --toc-text-row-sm:1rem; --toc-text-row-sm-m:1rem; --toc-leading-row-sm:1.3; --toc-tracking-row-sm:0;  /* 16/16 px · serif 400 · On-this-page rail */
  --toc-text-body-lg:1.188rem; --toc-text-body-lg-m:1.062rem; --toc-leading-body-lg:1.72; --toc-tracking-body-lg:0; /* 19/17 px · sans 400 · Article prose, home lede */
  --toc-text-body:1.062rem; --toc-text-body-m:1rem; --toc-leading-body:1.6; --toc-tracking-body:0;    /* 17/16 px · sans 400 · Default text */
  --toc-text-ui:0.9375rem; --toc-text-ui-m:0.9375rem; --toc-leading-ui:1.4; --toc-tracking-ui:0;      /* 15/15 px · sans 600 · Buttons, footer links */
  --toc-text-small:0.875rem; --toc-text-small-m:0.875rem; --toc-leading-small:1.5; --toc-tracking-small:0;   /* 14/14 px · sans 400 · Helper text, messages, crumbs */
  --toc-text-meta:0.8125rem; --toc-text-meta-m:0.8125rem; --toc-leading-meta:1.3; --toc-tracking-meta:0;    /* 13/13 px · sans 400 · Row numbers, fine print */
  --toc-text-eyebrow:0.75rem; --toc-text-eyebrow-m:0.75rem; --toc-leading-eyebrow:1.0; --toc-tracking-eyebrow:0.09em; /* 12/12 px · sans 600 · Uppercase labels, table heads (11 px in dense tables) */
  --toc-text-caps:0.9375rem; --toc-text-caps-m:0.875rem; --toc-leading-caps:1.4; --toc-tracking-caps:0.26em;    /* 15/14 px · serif 400 · Uppercase serif chapter labels; wordmark tracking */
  --toc-text-nav:0.8125rem; --toc-text-nav-m:0.75rem; --toc-leading-nav:1.0; --toc-tracking-nav:0.12em;     /* 13/12 px · sans 500 · Uppercase nav cells */
  --toc-weight-regular:400; --toc-weight-medium:500; --toc-weight-semibold:600;  /* Shippori: 400 ONLY. Public Sans: 400 text, 500 nav, 600 UI/labels */
  --toc-tracking-wordmark:0.26em;      /* wordmark and serif caps */
  --toc-numeric:tabular-nums lining-nums; /* all figures in tables, results, read times */

  /* Spacing (4 px base) */
  --toc-space-0:0px;  --toc-space-1:4px;  --toc-space-2:8px;  --toc-space-3:12px;  --toc-space-4:16px;  --toc-space-5:20px;  --toc-space-6:24px;  --toc-space-7:32px;  --toc-space-8:40px;  --toc-space-9:48px;  --toc-space-10:64px;  --toc-space-11:72px;  --toc-space-12:96px;  --toc-space-13:128px;

  /* Layout */
  --toc-wrap:1200px; --toc-pad:48px; --toc-pad-m:20px; --toc-gutter:96px; --toc-gutter-tight:56px; --toc-measure:680px; --toc-columns:12;
  /* Breakpoints (reference only; custom properties do not work in @media): mobile-first, --toc-bp-md 720px (Web Ops contract: layout, calculator cards), --toc-bp-lg 1024px (calculator two-column), --toc-bp-nav 1200px (ruled nav row vs. Contents bar), --toc-bp-xl 1440px */

  /* Table rules (the system): heavy = table top/bottom, rule = header underline / section, hair = between rows */
  --toc-rule-heavy:3px solid var(--toc-color-rule);
  --toc-rule:1px solid var(--toc-color-rule);
  --toc-rule-hair:1px solid var(--toc-hair);
  --toc-rule-current:inset 3px 0 0 var(--toc-ink);  /* current row bar (box-shadow) */
  --toc-rule-heavy-w:3px; --toc-rule-w:1px;
  --toc-leader:1px solid var(--toc-hair);  /* row leader; turns ink on hover */

  /* Radii: square. Everything is a cell. */
  --toc-radius:0;

  /* Focus: 2 px ink ring, 2 px gap (white on dark). Inputs inside framed fields use an inset ring (-4px). */
  --toc-focus-width:2px; --toc-focus-offset:2px; --toc-focus-offset-inset:-4px;
  --toc-focus-ring:var(--toc-focus-width) solid var(--toc-color-focus);

  /* Links: always underlined, 1 px, 3 px offset. Fills are never underlined. */
  --toc-link-thickness:1px; --toc-link-thickness-hover:2px; --toc-link-offset:3px;

  /* Controls */
  --toc-control-h:48px; --toc-control-h-lg:56px; --toc-control-h-sm:42px; --toc-target-min:44px; /* min touch target */
  --toc-input-border:inset 0 0 0 1px var(--toc-edge); --toc-input-border-hover:inset 0 0 0 1px var(--toc-ink); --toc-input-border-error:inset 0 0 0 2px var(--toc-ink);

  /* Motion: only where it explains (leader draws on row hover; result cell fills on recalc). Off under reduced motion. */
  --toc-duration-fast:120ms;  --toc-duration-fill:160ms;  --toc-ease:cubic-bezier(.2, 0, 0, 1);
}

@media (max-width:719.98px){:root{--toc-pad:var(--toc-pad-m)}}

/* Base wiring every page needs */
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:var(--toc-focus-ring);outline-offset:var(--toc-focus-offset)}
:where(.toc-on-dark) :where(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline-color:var(--toc-color-focus-on-dark)}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
