/* layouts/deck.css: GENERATED by scripts/build-css.mjs. Do not edit this file.
   Change tokens/primitives.json, tokens/semantic.json or tokens/components.css,
   then run: node scripts/build-css.mjs
   Theme: set data-theme="blue" or data-theme="green" on the deck root (<html>). Blue is the default. */

:root {
  /* Primitives: raw values. Components never use --p-color-* directly. */
  --p-color-ink: #010313;
  --p-color-paper: #F6F7FE;
  --p-color-gray-300: #B9BAC3;
  --p-color-gray-350: #A9A9A9;
  --p-color-gray-400: #999AA4;
  --p-color-gray-450: #7F7F83;
  --p-color-gray-500: #686A76;
  --p-color-gray-550: #5D5F6B;
  --p-color-gray-600: #4A4D59;
  --p-color-gray-700: #2D2E3E;
  --p-color-gray-800: #1F212F;
  --p-color-navy-900: #0B0D1C;
  --p-color-navy-850: #11132A;
  --p-color-navy-800: #1B1D2C;
  --p-color-navy-750: #24263A;
  --p-color-gray-880: #0D0F1F;
  --p-color-gray-830: #191B2A;
  --p-color-gray-780: #242634;
  --p-color-lineart: #444553;
  --p-color-lime: #C7FA50;
  --p-color-blue: #2237F1;
  --p-color-guide: #FF3B30;
  --p-color-illus-accent-side-r: #90B53F;
  --p-color-illus-accent-side-l: #6E8B35;
  --p-color-illus-field-structure: #6C7AF6;
  --p-color-illus-field-secondary: #97A1F8;
  --p-color-illus-field-primary: #C7CDFB;
  --p-size-16: 16px;
  --p-size-20: 20px;
  --p-size-24: 24px;
  --p-size-28: 28px;
  --p-size-36: 36px;
  --p-size-40: 40px;
  --p-size-48: 48px;
  --p-size-60: 60px;
  --p-size-64: 64px;
  --p-size-72: 72px;
  --p-size-88: 88px;
  --p-size-112: 112px;
  --p-size-128: 128px;
  --p-size-144: 144px;
  --p-size-256: 256px;
  --p-size-320: 320px;
  --p-line-solid: 1;
  --p-line-tight: 1.04;
  --p-line-snug: 1.1;
  --p-line-normal: 1.2;
  --p-line-relaxed: 1.3;
  --p-line-loose: 1.5;
  --p-track-minus-4: -0.04em;
  --p-track-minus-3: -0.03em;
  --p-track-minus-2: -0.02em;
  --p-track-minus-1: -0.01em;
  --p-track-minus-1px: -1px;
  --p-track-zero: 0em;
  --p-space-2: 2px;
  --p-space-4: 4px;
  --p-space-8: 8px;
  --p-space-12: 12px;
  --p-space-16: 16px;
  --p-space-20: 20px;
  --p-space-24: 24px;
  --p-space-32: 32px;
  --p-space-40: 40px;
  --p-space-48: 48px;
  --p-space-56: 56px;
  --p-space-64: 64px;
  --p-space-96: 96px;
  --p-space-128: 128px;
  --p-stroke-hairline: 1px;
  --p-radius-none: 0px;
  --font-stack: "TT Hoves", "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --font-weight: 400;

  /* Canvas and grid */
  --canvas-w: 1920px;
  --canvas-h: 1080px;
  --grid-columns: 12;
  --grid-margin: 56px;
  --grid-gutter: 32px;
  --grid-top: 56px;
  --grid-body-start: 300px;
  --grid-body-start-title: 240px;
  --grid-body-end: 968px;
  --grid-footer-rule: 1024px;
  --grid-footer-h: 56px;
  --grid-content-w: 1808px;
  --grid-col: 121.3333px;

  /* Type roles (same in both themes) */
  --type-cover-title-size: var(--p-size-128);
  --type-cover-title-line: var(--p-line-normal);
  --type-cover-title-track: var(--p-track-zero);
  --type-closing-size: var(--p-size-128);
  --type-closing-line: var(--p-line-normal);
  --type-closing-track: var(--p-track-zero);
  --type-headline-size: var(--p-size-88);
  --type-headline-line: var(--p-line-tight);
  --type-headline-track: var(--p-track-minus-2);
  --type-statement-size: var(--p-size-72);
  --type-statement-line: var(--p-line-normal);
  --type-statement-track: var(--p-track-minus-1px);
  --type-big-number-size: var(--p-size-144);
  --type-big-number-line: var(--p-line-solid);
  --type-big-number-track: var(--p-track-minus-4);
  --type-card-figure-size: var(--p-size-256);
  --type-card-figure-line: var(--p-line-solid);
  --type-card-figure-track: var(--p-track-minus-4);
  --type-hero-number-size: var(--p-size-320);
  --type-hero-number-line: var(--p-line-solid);
  --type-hero-number-track: var(--p-track-minus-4);
  --type-title-size: var(--p-size-60);
  --type-title-line: var(--p-line-normal);
  --type-title-track: var(--p-track-minus-1px);
  --type-eyebrow-size: var(--p-size-20);
  --type-eyebrow-line: var(--p-line-loose);
  --type-eyebrow-track: var(--p-track-zero);
  --type-card-title-size: var(--p-size-48);
  --type-card-title-line: var(--p-line-normal);
  --type-card-title-track: var(--p-track-minus-1px);
  --type-stage-title-size: var(--p-size-40);
  --type-stage-title-line: var(--p-line-snug);
  --type-stage-title-track: var(--p-track-minus-3);
  --type-index-size: var(--p-size-36);
  --type-index-line: var(--p-line-normal);
  --type-index-track: var(--p-track-zero);
  --type-stat-size: var(--p-size-40);
  --type-stat-line: var(--p-line-solid);
  --type-stat-track: var(--p-track-minus-2);
  --type-dek-size: var(--p-size-28);
  --type-dek-line: var(--p-line-relaxed);
  --type-dek-track: var(--p-track-zero);
  --type-item-title-size: var(--p-size-28);
  --type-item-title-line: var(--p-line-normal);
  --type-item-title-track: var(--p-track-zero);
  --type-body-size: var(--p-size-24);
  --type-body-line: var(--p-line-loose);
  --type-body-track: var(--p-track-zero);
  --type-small-size: var(--p-size-24);
  --type-small-line: var(--p-line-normal);
  --type-small-track: var(--p-track-zero);
  --type-caption-size: var(--p-size-20);
  --type-caption-line: var(--p-line-normal);
  --type-caption-track: var(--p-track-zero);
  --type-fine-size: var(--p-size-16);
  --type-fine-line: var(--p-line-loose);
  --type-fine-track: var(--p-track-zero);
}

/* Theme: blue */
:root,
[data-theme="blue"] {
  --ground: var(--p-color-ink);
  --text-primary: var(--p-color-paper);
  --text-secondary: var(--p-color-gray-400);
  --text-dim: var(--p-color-gray-500);
  --text-accent: var(--p-color-lime);
  --accent-small: var(--p-color-lime);
  --accent-fill: var(--p-color-blue);
  --text-on-accent-fill: var(--p-color-paper);
  --rule: var(--p-color-gray-700);
  --rule-strong: var(--p-color-gray-300);
  --card-surface: var(--p-color-ink);
  --card-border: var(--p-color-gray-550);
  --card-tint: var(--p-color-gray-880);
  --tag-surface: var(--p-color-navy-800);
  --tag-text: var(--p-color-paper);
  --tag-key-surface: var(--p-color-lime);
  --tag-key-text: var(--p-color-ink);
  --surface-1: var(--p-color-navy-900);
  --surface-2: var(--p-color-navy-850);
  --surface-3: var(--p-color-navy-750);
  --surface-nest-1: var(--p-color-gray-880);
  --surface-nest-2: var(--p-color-gray-830);
  --surface-nest-3: var(--p-color-gray-780);
  --footer-text: var(--p-color-paper);
  --footer-rule: var(--p-color-gray-350);
  --mark: var(--p-color-paper);
  --chart-axis: var(--p-color-gray-600);
  --chart-grid: var(--p-color-gray-800);
  --chart-area: var(--p-color-navy-900);
  --chart-line: var(--p-color-paper);
  --chart-label: var(--p-color-gray-400);
  --chart-series-base: var(--p-color-navy-750);
  --chart-series-muted: var(--p-color-navy-850);
  --chart-series-key: var(--p-color-blue);
  --chart-key-line: var(--p-color-lime);
  --chart-callout-surface: var(--p-color-navy-800);
  --chart-callout-text: var(--p-color-paper);
  --chart-callout-key-surface: var(--p-color-lime);
  --chart-callout-key-text: var(--p-color-ink);
  --placeholder-surface: var(--p-color-navy-900);
  --placeholder-border: var(--p-color-gray-600);
  --placeholder-text: var(--p-color-gray-400);
  --lineart: var(--p-color-lineart);
  --lineart-strong: var(--p-color-gray-450);
  --guide: var(--p-color-guide);
  --illus-accent-side-r: var(--p-color-illus-accent-side-r);
  --illus-accent-side-l: var(--p-color-illus-accent-side-l);
  --illus-field-structure: var(--p-color-illus-field-structure);
  --illus-field-secondary: var(--p-color-illus-field-secondary);
  --illus-field-primary: var(--p-color-illus-field-primary);
}

/* Theme: green */
[data-theme="green"] {
  --ground: var(--p-color-ink);
  --text-primary: var(--p-color-paper);
  --text-secondary: var(--p-color-gray-400);
  --text-dim: var(--p-color-gray-500);
  --text-accent: var(--p-color-lime);
  --accent-small: var(--p-color-lime);
  --accent-fill: var(--p-color-lime);
  --text-on-accent-fill: var(--p-color-ink);
  --rule: var(--p-color-gray-700);
  --rule-strong: var(--p-color-gray-300);
  --card-surface: var(--p-color-ink);
  --card-border: var(--p-color-gray-550);
  --card-tint: var(--p-color-gray-880);
  --tag-surface: var(--p-color-navy-800);
  --tag-text: var(--p-color-paper);
  --tag-key-surface: var(--p-color-lime);
  --tag-key-text: var(--p-color-ink);
  --surface-1: var(--p-color-navy-900);
  --surface-2: var(--p-color-navy-850);
  --surface-3: var(--p-color-navy-750);
  --surface-nest-1: var(--p-color-gray-880);
  --surface-nest-2: var(--p-color-gray-830);
  --surface-nest-3: var(--p-color-gray-780);
  --footer-text: var(--p-color-paper);
  --footer-rule: var(--p-color-gray-350);
  --mark: var(--p-color-paper);
  --chart-axis: var(--p-color-gray-600);
  --chart-grid: var(--p-color-gray-800);
  --chart-area: var(--p-color-navy-900);
  --chart-line: var(--p-color-paper);
  --chart-label: var(--p-color-gray-400);
  --chart-series-base: var(--p-color-navy-750);
  --chart-series-muted: var(--p-color-navy-850);
  --chart-series-key: var(--p-color-lime);
  --chart-key-line: var(--p-color-lime);
  --chart-callout-surface: var(--p-color-navy-800);
  --chart-callout-text: var(--p-color-paper);
  --chart-callout-key-surface: var(--p-color-lime);
  --chart-callout-key-text: var(--p-color-ink);
  --placeholder-surface: var(--p-color-navy-900);
  --placeholder-border: var(--p-color-gray-600);
  --placeholder-text: var(--p-color-gray-400);
  --lineart: var(--p-color-lineart);
  --lineart-strong: var(--p-color-gray-450);
  --guide: var(--p-color-guide);
  --illus-accent-side-r: var(--p-color-illus-accent-side-r);
  --illus-accent-side-l: var(--p-color-illus-accent-side-l);
  --illus-field-structure: var(--p-color-illus-field-structure);
  --illus-field-secondary: var(--p-color-illus-field-secondary);
  --illus-field-primary: var(--p-color-illus-field-primary);
}

/* Grid placement: .col-N sets the start column, .span-N the width in columns. */
.col-1 { grid-column-start: 1; }
.col-2 { grid-column-start: 2; }
.col-3 { grid-column-start: 3; }
.col-4 { grid-column-start: 4; }
.col-5 { grid-column-start: 5; }
.col-6 { grid-column-start: 6; }
.col-7 { grid-column-start: 7; }
.col-8 { grid-column-start: 8; }
.col-9 { grid-column-start: 9; }
.col-10 { grid-column-start: 10; }
.col-11 { grid-column-start: 11; }
.col-12 { grid-column-start: 12; }
.span-1 { grid-column-end: span 1; }
.span-2 { grid-column-end: span 2; }
.span-3 { grid-column-end: span 3; }
.span-4 { grid-column-end: span 4; }
.span-5 { grid-column-end: span 5; }
.span-6 { grid-column-end: span 6; }
.span-7 { grid-column-end: span 7; }
.span-8 { grid-column-end: span 8; }
.span-9 { grid-column-end: span 9; }
.span-10 { grid-column-end: span 10; }
.span-11 { grid-column-end: span 11; }
.span-12 { grid-column-end: span 12; }

/* ===== Components: copied from tokens/components.css ===== */

/* tokens/components.css: hand-written component rules.
   scripts/build-css.mjs copies this file to the end of layouts/deck.css.
   Use roles (var(--text-primary)), type roles (var(--type-body-size)),
   spacing primitives (var(--p-space-24)) and grid values only. The build
   fails on raw colors, radius, shadows, gradients, bold, italic, uppercase,
   filters and lines over 1px. Every state of every component is here and
   is listed in reference/components.md. */

/* ---------- Fonts ----------
   TT Hoves loads only from the machine it is installed on (local()).
   Never bundle, link or embed a TT Hoves file, and never use a file with
   "Trial" in its name. DM Sans is the fallback. This face (the bundled
   file) serves the layout files and the gallery; the deck shell drops it
   and loads DM Sans from Google Fonts instead (see reference/typography.md).
   No size-adjust: Google Slides shows DM Sans at its natural size, so every
   preview and every check uses that size too. opsz 32 is set on html below. */
@font-face {
  font-family: "TT Hoves";
  font-style: normal;
  font-weight: 400;
  src: local("TT Hoves Regular"), local("TTHoves-Regular"), local("TT Hoves Pro Regular"), local("TTHovesPro-Rg");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  src: url("../assets/fonts/dm-sans/DMSans-Variable.ttf") format("truetype"),
       url("https://fonts.gstatic.com/s/dmsans/v17/rP2Hp2ywxg089UriCZOIHTWEBlw.woff2") format("woff2"),
       local("DM Sans");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-family: var(--font-stack);
  font-weight: var(--font-weight);
  font-synthesis: none;
  font-variation-settings: "opsz" 32;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
  background: var(--ground);
  color: var(--text-primary);
}
h1, h2, h3, h4, h5, h6, p, th, strong, b { font-size: inherit; font-weight: 400; }
em, i { font-style: normal; }
ul, ol { list-style: none; }
svg { display: block; }
img { display: block; max-width: 100%; }

/* ---------- Slide frame ----------
   One slide = one .slide, 1920 x 1080. Content goes in .slide__body, a
   12-column grid from x 56 to 1864 and from y 56 to 968 (body end).
   With data-footer="none" the body runs to y 1024. */
.slide {
  position: relative;
  width: var(--canvas-w);
  height: var(--canvas-h);
  overflow: hidden;
  background: var(--ground);
  color: var(--text-primary);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
}
.slide__body {
  position: absolute;
  left: var(--grid-margin);
  top: var(--grid-top);
  width: var(--grid-content-w);
  height: calc(var(--grid-body-end) - var(--grid-top));
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gutter);
  align-content: start;
}
.slide[data-footer="none"] .slide__body,
.slide[data-footer="meta"] .slide__body {
  height: calc(var(--grid-footer-rule) - var(--grid-top));
}
/* Full-bleed art behind the grid (cover, section art). */
.slide__art {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  color: var(--lineart);
}

/* ---------- Footer ----------
   As the approved library's footer component: 16 px (the fine role), 1 px
   rule at y 1024 in the one footer-rule color, two-digit number at x 56,
   deck title at x 96, an optional section title in secondary gray 20 px
   after it, and the 29 px MW mark ending at x 1864.
   States: default; meta (cover: secondary meta text and the mark, no rule,
   no number); none (no footer; footerless diagram slides). */
.footer {
  position: absolute;
  left: var(--grid-margin);
  top: var(--grid-footer-rule);
  width: var(--grid-content-w);
  height: var(--grid-footer-h);
  display: flex;
  align-items: center;
  border-top: var(--p-stroke-hairline) solid var(--footer-rule);
  color: var(--footer-text);
  font-size: var(--type-fine-size);
  line-height: var(--type-fine-line);
  letter-spacing: var(--type-fine-track);
}
.footer__num { flex: none; width: var(--p-space-40); font-variant-numeric: tabular-nums; }
.footer__section { margin-left: var(--p-space-20); color: var(--text-secondary); }
.footer__mark { margin-left: auto; width: 29px; height: auto; color: var(--mark); }
.footer__mark svg { width: 100%; height: auto; }
.slide[data-footer="none"] .footer { display: none; }
.slide[data-footer="meta"] .footer { border-top-color: transparent; color: var(--text-secondary); column-gap: var(--p-space-32); }
.slide[data-footer="meta"] .footer__num { display: none; }

/* ---------- MW mark ---------- */
.mark { display: block; color: var(--mark); }
.mark svg { width: 100%; height: auto; }
.mark--cover { width: 48px; }
.mark--wordmark { width: 173px; justify-self: start; }

/* ---------- Headline ----------
   States: two-tone (default: line 1 bright, line 2 dim) and solid (both
   lines bright). Sizes: default 88, --closing 128. One or two lines; each
   line is its own .headline__line so breaks never depend on the font. */
.headline {
  /* Pulls the box up so the cap top of line 1 lands at y 64 when the
     headline is the first thing in .slide__body, as on JK's slides. */
  margin-top: -0.09em;
  font-size: var(--type-headline-size);
  line-height: var(--type-headline-line);
  letter-spacing: var(--type-headline-track);
  color: var(--text-primary);
}
.headline__line { display: block; }
.headline--two-tone .headline__line + .headline__line { color: var(--text-dim); }
.headline--solid .headline__line { color: var(--text-primary); }
.headline--closing {
  font-size: var(--type-closing-size);
  line-height: var(--type-closing-line);
  letter-spacing: var(--type-closing-track);
}

/* ---------- Cover title ----------
   One state: solid, bright, one or two lines, 128 px (library 128 / 120% / 0). */
.cover__title {
  font-size: var(--type-cover-title-size);
  line-height: var(--type-cover-title-line);
  letter-spacing: var(--type-cover-title-track);
  color: var(--text-primary);
}

/* ---------- Title header: eyebrow + title + dek ----------
   The approved library's header component, for dense slides: eyebrow 20 px
   (box y 56 to 86), 60 px title 4 px under it (box y 90 to 162), optional
   dek 16 px under the title. The eyebrow is plain text: never a square, dot
   or bar in front of it. Title Case is allowed in the title only. */
.header-block { display: flex; flex-direction: column; }
.eyebrow {
  font-size: var(--type-eyebrow-size);
  line-height: var(--type-eyebrow-line);
  letter-spacing: var(--type-eyebrow-track);
  color: var(--text-secondary);
}
.title {
  font-size: var(--type-title-size);
  line-height: var(--type-title-line);
  letter-spacing: var(--type-title-track);
  color: var(--text-primary);
}
.dek {
  font-size: var(--type-dek-size);
  line-height: var(--type-dek-line);
  letter-spacing: var(--type-dek-track);
  color: var(--text-secondary);
}
.header-block .eyebrow + .title { margin-top: var(--p-space-4); }
.header-block .title + .dek { margin-top: var(--p-space-16); }

/* ---------- Header switch ----------
   Content layouts carry both headers: the 88 px headline, two-tone or solid
   (marked data-for-header="headline", the default), and the title header
   (data-for-header="title"). data-header="headline|title" on the .slide picks
   one; a finished deck keeps only that one. With no data-header both would
   show, which QA reports. The body starts at y 300 under the headline and at
   y 240 under the title header; layouts read the line from --body-start. */
.slide { --body-start: var(--grid-body-start); }
.slide[data-header="title"] { --body-start: var(--grid-body-start-title); }
.slide[data-header="title"] [data-for-header="headline"],
.slide[data-header="headline"] [data-for-header="title"] { display: none; }

/* ---------- Body text and side note ----------
   States: body (secondary), body--primary (a lead line in bright text). */
.body {
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  letter-spacing: var(--type-body-track);
  color: var(--text-secondary);
  text-wrap: pretty;
}
.body--primary { color: var(--text-primary); }
/* Side note: one shared optional slot on every content layout, as in the
   library. Columns 9-12, top at y 56, 24 / 150% secondary gray, up to three
   lines. While it is on the slide, either header narrows to columns 1-8. */
.side-note {
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  letter-spacing: var(--type-body-track);
  color: var(--text-secondary);
  text-wrap: pretty;
}
.slide__body > .side-note { grid-column: 9 / span 4; grid-row: 1; align-self: start; }
.slide__body:has(> .side-note) > .headline,
.slide__body:has(> .side-note) > .header-block { grid-column-end: span 8; }

/* ---------- Thin rule ----------
   States: default (quiet divider), strong. Always 1px, always on the grid. */
.rule { height: 0; border: 0; border-top: var(--p-stroke-hairline) solid var(--rule); }
.rule--strong { border-top-color: var(--rule-strong); }

/* ---------- Card ----------
   States: default (outline, icon at top, title and body at the bottom),
   text only (.card--text: title at top, body at the bottom), full height
   (.card--full: the library's tall card, number or chip and title at the
   top, list at the bottom), tinted (.card--tint: white-at-5% fill, no
   outline), emphasized (.card--emph, accent fill). The outline is the
   library's quiet outline (card-border). One emphasized card per slide. */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: var(--p-space-40);
  background: var(--card-surface);
  border: var(--p-stroke-hairline) solid var(--card-border);
  color: var(--text-primary);
}
.card__top { display: flex; align-items: baseline; column-gap: var(--p-space-16); }
.card__num {
  font-size: var(--type-index-size);
  line-height: var(--type-index-line);
  letter-spacing: var(--type-index-track);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.card__icon { width: 64px; height: 64px; color: var(--text-primary); }
.card__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1; }

.card__title {
  margin-top: auto;
  font-size: var(--type-card-title-size);
  line-height: var(--type-card-title-line);
  letter-spacing: var(--type-card-title-track);
  color: var(--text-primary);
  text-wrap: pretty;
}
.card__body {
  margin-top: var(--p-space-24);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  letter-spacing: var(--type-body-track);
  color: var(--text-secondary);
  text-wrap: pretty;
}
.card__list {
  display: flex;
  flex-direction: column;
  row-gap: var(--p-space-8);
  margin-top: auto;
  padding-top: var(--p-space-24);
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-line);
  color: var(--text-secondary);
}
.card--text .card__icon { display: none; }
.card--text .card__title { margin-top: 0; }
.card--text .card__body { margin-top: auto; }
/* Full height: everything hangs from the top; the list rests on the bottom. */
.card--full .card__title { margin-top: var(--p-space-24); }
.card--full .card__top:not(:has(*)) + .card__title,
.card--full > .card__title:first-child { margin-top: 0; }
.card--full .card__body { margin-top: var(--p-space-16); }
.card--tint { background: var(--card-tint); border-color: var(--card-tint); }
.card--emph { background: var(--accent-fill); border-color: var(--accent-fill); }
.card--emph,
.card--emph .card__title,
.card--emph .card__body,
.card--emph .card__num,
.card--emph .card__list,
.card--emph .card__icon { color: var(--text-on-accent-fill); }

/* ---------- Stat ----------
   States: default (40 px value), big (--big, 144 px: the number is the
   message), inline (--inline, 28 px, for list rows), key (--key, the one
   highlighted value on the slide, lime text). A qualifier ("under") goes
   in .stat__qualifier before the value, a unit in .stat__unit after it.
   Never put <, ~ or + in a value. */
.stat { display: flex; flex-direction: column; row-gap: var(--p-space-16); }
.stat__figure {
  display: block;
  font-size: var(--type-stat-size);
  line-height: var(--type-stat-line);
  letter-spacing: var(--type-stat-track);
  color: var(--text-primary);
}
.stat__qualifier, .stat__unit {
  font-size: var(--type-small-size);
  letter-spacing: var(--type-small-track);
}
.stat__label {
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-line);
  color: var(--text-secondary);
}
.stat--big .stat__figure {
  font-size: var(--type-big-number-size);
  line-height: var(--type-big-number-line);
  letter-spacing: var(--type-big-number-track);
}
.stat--inline { row-gap: var(--p-space-12); }
.stat--inline .stat__figure {
  font-size: var(--type-item-title-size);
  line-height: var(--type-item-title-line);
  letter-spacing: var(--type-item-title-track);
}
.stat--inline .stat__qualifier, .stat--inline .stat__unit { font-size: inherit; letter-spacing: inherit; }
.stat--big .stat__unit { margin-left: var(--p-space-4); }
.stat--key .stat__figure { color: var(--text-accent); }

/* ---------- Numbered list row ----------
   States: default (number, title, description) and with stat (adds
   .list-row__stats under the description). Number sits in column 1,
   title in columns 2-6, description and stats in columns 7-12. A 1px rule
   tops every row; the list closes with a rule under the last row. */
.list { display: flex; flex-direction: column; border-bottom: var(--p-stroke-hairline) solid var(--rule); }
.list-row {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gutter);
  align-items: baseline;
  padding-block: var(--p-space-40);
  border-top: var(--p-stroke-hairline) solid var(--rule);
}
.list-row__num {
  grid-column: 1 / span 1;
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.list-row__title {
  grid-column: 2 / span 5;
  font-size: var(--type-item-title-size);
  line-height: var(--type-item-title-line);
  letter-spacing: var(--type-item-title-track);
  color: var(--text-primary);
}
.list-row__main { grid-column: 7 / span 6; display: flex; flex-direction: column; }
.list-row__desc {
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  color: var(--text-secondary);
  text-wrap: pretty;
}
.list-row__stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: var(--grid-gutter);
  margin-top: var(--p-space-40);
}
.list-row__stats > .stat { grid-column-end: span 2; }

/* ---------- Square node marker ----------
   Chart points and diagram nodes ONLY. Never in front of a label, eyebrow
   or list item. States: default (filled, chart line color), hollow (1px
   outline), key (accent-small, lime). Sizes: 20 (chart point, default),
   --diagram (28), --diagram-key (40). Works on HTML elements and SVG rects. */
.node { display: block; width: 20px; height: 20px; background: var(--chart-line); fill: var(--chart-line); }
.node--hollow { background: var(--ground); fill: var(--ground); border: var(--p-stroke-hairline) solid var(--rule-strong); stroke: var(--rule-strong); stroke-width: 1; }
.node--key { background: var(--accent-small); fill: var(--accent-small); }
.node--diagram { width: 28px; height: 28px; }
.node--diagram-key { width: 40px; height: 40px; background: var(--accent-small); fill: var(--accent-small); }
.node--fill { background: var(--accent-fill); fill: var(--accent-fill); }

/* ---------- Table ----------
   States: header row (caption size, secondary, strong rule under it),
   body row (quiet rule under it), emphasized row (tr.is-emph: accent fill,
   text on accent). Text is inset 16 px in every cell so emphasized and
   plain rows line up. Numbers right-aligned in .num cells. */
.table { width: 100%; border-collapse: collapse; font-size: var(--type-body-size); line-height: var(--type-body-line); }
.table th {
  padding: 0 var(--p-space-16) var(--p-space-16);
  border-bottom: var(--p-stroke-hairline) solid var(--rule-strong);
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-line);
  color: var(--text-secondary);
  text-align: left;
  vertical-align: bottom;
}
.table td {
  padding: var(--p-space-24) var(--p-space-16);
  border-bottom: var(--p-stroke-hairline) solid var(--rule);
  color: var(--text-secondary);
  vertical-align: top;
}
.table td:first-child { color: var(--text-primary); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.is-emph td { background: var(--accent-fill); color: var(--text-on-accent-fill); border-bottom-color: var(--accent-fill); }

/* ---------- Chart primitives ----------
   SVG classes. Axis and lines are 1px. No solid gridlines: use .chart__dot
   grids or dashed .chart__guide drop lines. One key series per chart.
   Labels are direct (next to the data); no legends. */
.chart { position: relative; }
.chart svg { overflow: visible; }
.chart__axis { fill: none; stroke: var(--chart-axis); stroke-width: 1; shape-rendering: crispEdges; }
.chart__guide { fill: none; stroke: var(--chart-axis); stroke-width: 1; stroke-dasharray: 4 4; shape-rendering: crispEdges; }
.chart__dot { fill: var(--chart-grid); }
.chart__area { fill: var(--chart-area); stroke: none; }
.chart__line { fill: none; stroke: var(--chart-line); stroke-width: 1; }
.chart__line--key { stroke: var(--chart-key-line); }
.chart__bar { fill: var(--chart-series-base); background: var(--chart-series-base); }
.chart__bar--muted { fill: var(--chart-series-muted); background: var(--chart-series-muted); }
.chart__bar--key { fill: var(--chart-series-key); background: var(--chart-series-key); }
/* Chart text is 20 px (the caption role): JK's ruling, 2026-11-18. The 16 px
   fine role belongs to the footer and tag chips only. */
.chart__label { fill: var(--chart-label); color: var(--chart-label); font-size: var(--type-caption-size); line-height: var(--type-caption-line); }
.chart__value { fill: var(--text-primary); color: var(--text-primary); font-size: var(--type-caption-size); line-height: var(--type-caption-line); }
.chart__grid { fill: none; stroke: var(--chart-axis); stroke-width: 1; stroke-dasharray: 2 6; shape-rendering: crispEdges; }
.chart__callout {
  display: inline-block;
  padding: var(--p-space-2) var(--p-space-12);
  background: var(--chart-callout-surface);
  color: var(--chart-callout-text);
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-line);
  white-space: nowrap;
}
.chart__callout--key { background: var(--chart-callout-key-surface); color: var(--chart-callout-key-text); }

/* ---------- Image or diagram placeholder ----------
   The state used when an asset is missing. Dashed 1px outline, quiet fill,
   one label at top-left saying what goes here. Never a stock photo, never
   invented art. Size it to the slot it stands in for. */
.placeholder {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: var(--p-space-24);
  background: var(--placeholder-surface);
  border: var(--p-stroke-hairline) dashed var(--placeholder-border);
}
.placeholder__label {
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-line);
  color: var(--placeholder-text);
}

/* ---------- Line art ----------
   1px outlines in the lineart role. Shapes may fill with the ground so
   nearer shapes hide the ones behind them. */
.lineart { width: 100%; height: 100%; }
.lineart * { fill: var(--ground); stroke: var(--lineart); stroke-width: 1; }
.lineart--open * { fill: none; }
.cover__band .lineart * { stroke: var(--lineart-strong); }
.cover__band .lineart rect { stroke: var(--mark); }
.cover__band svg { display: block; }

/* ---------- Grid overlay ----------
   Shown with ?grid=1 on the URL or data-grid on <html> or a .slide
   (layouts/deck.js draws it). Design aid only; never export it. */
.grid-overlay { position: absolute; inset: 0; z-index: 1000; pointer-events: none; }
.grid-overlay > * { position: absolute; }
.grid-overlay__margin { top: 0; bottom: 0; width: var(--grid-margin); background: color-mix(in srgb, var(--guide) 10%, transparent); }
.grid-overlay__margin--left { left: 0; }
.grid-overlay__margin--right { right: 0; }
.grid-overlay__top { left: 0; right: 0; top: 0; height: var(--grid-top); background: color-mix(in srgb, var(--guide) 10%, transparent); }
.grid-overlay__cols {
  left: var(--grid-margin);
  top: 0;
  bottom: 0;
  width: var(--grid-content-w);
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gutter);
}
.grid-overlay__cols > i {
  display: block;
  background: color-mix(in srgb, var(--guide) 9%, transparent);
  border-left: var(--p-stroke-hairline) solid color-mix(in srgb, var(--guide) 55%, transparent);
  border-right: var(--p-stroke-hairline) solid color-mix(in srgb, var(--guide) 55%, transparent);
}
.grid-overlay__line { left: 0; right: 0; height: 0; border-top: var(--p-stroke-hairline) dashed color-mix(in srgb, var(--guide) 80%, transparent); }
.grid-overlay__line--body-start { top: var(--grid-body-start); }
.grid-overlay__line--body-end { top: var(--grid-body-end); }
.grid-overlay__footer {
  left: 0;
  right: 0;
  top: var(--grid-footer-rule);
  height: var(--grid-footer-h);
  background: color-mix(in srgb, var(--guide) 14%, transparent);
  border-top: var(--p-stroke-hairline) solid var(--guide);
}
.grid-overlay__tag {
  padding: var(--p-space-4) var(--p-space-8);
  background: var(--guide);
  color: var(--text-primary);
  font-size: var(--type-caption-size);
  line-height: 1;
}

/* ---------- Export mode ----------
   The Slides and PowerPoint converter sets data-export-mode="slides" on
   <html>. Every slide then shows at 1:1, stacked in DOM order, with no
   transform, zoom or scaling wrapper, and preview helpers are hidden.
   The deck shell extends this block; keep slide content untouched here. */
html[data-export-mode="slides"],
html[data-export-mode="slides"] body {
  margin: 0;
  padding: 0;
  zoom: 1;
  transform: none;
  background: var(--ground);
}
html[data-export-mode="slides"] .slide {
  display: block;
  margin: 0;
  zoom: 1;
  transform: none;
}
html[data-export-mode="slides"] .grid-overlay { display: none; }

/* ---------- Print ---------- */
@page { size: 1920px 1080px; margin: 0; }
@media print {
  html, body { background: var(--ground); }
  .slide { break-after: page; }
  .grid-overlay { display: none; }
}

/* Chart additions
   SVG states that sit beside the chart primitives above. A muted series
   line for the comparison series, and the callout as an SVG tag (rect +
   text) so it can sit on the data and still convert to native shapes.
   Size the tag rect to its text: width = 0.51 x 20 x characters + 24,
   height 32; text inset 12 from the left, baseline 23 from the top. */
.chart__line--muted { stroke: var(--chart-label); }
.chart__tag { fill: var(--chart-callout-surface); stroke: none; }
.chart__tag--key { fill: var(--chart-callout-key-surface); }
.chart__tag-text { fill: var(--chart-callout-text); font-size: var(--type-caption-size); }
.chart__tag-text--key { fill: var(--chart-callout-key-text); }

/* Diagram
   SVG primitives for diagrams and illustrations (layered stacks, planes,
   leader lines). All lines 1px, square joins. States: plane (quiet
   outline on a near-ground fill), plane--strong (outline that must read),
   plane--focus (the one part in focus: lime outline, a small highlight),
   plane--key (large accent fill, follows the theme). line (leader or
   connector), line--strong (arrows), line--focus (leader to the part in
   focus). label (24 px primary), label--secondary, label--small (20 px),
   label--focus (lime; a layer number beside the focused part only). */
.diagram__plane { fill: var(--surface-1); stroke: var(--chart-axis); stroke-width: 1; stroke-linejoin: miter; }
.diagram__plane--strong { stroke: var(--rule-strong); }
.diagram__plane--focus { stroke: var(--accent-small); }
.diagram__plane--key { fill: var(--accent-fill); stroke: var(--accent-fill); }
.diagram__line { fill: none; stroke: var(--chart-axis); stroke-width: 1; }
.diagram__line--strong { stroke: var(--rule-strong); }
.diagram__line--focus { stroke: var(--accent-small); }
.diagram__label { fill: var(--text-primary); font-size: var(--type-small-size); }
.diagram__label--secondary { fill: var(--text-secondary); }
.diagram__label--small { font-size: var(--type-caption-size); }
.diagram__label--focus { fill: var(--text-accent); }

/* Scope boxes
   Nested scope boxes: each box is a 1px outlined block anchored to the
   bottom-left of the one around it, fills stepping lighter inward, the
   innermost box in the accent fill. Label 24 px, top-left, inset 24.
   States: box (outer, surface-nest-1), box--2 (surface-nest-2), box--3
   (surface-nest-3), box--key (accent fill, text on accent). Every fill is
   one flat token color; the three nest steps are even in lightness.
   One key box per slide. */
.scope__box {
  min-width: 0;
  min-height: 0;
  padding: var(--p-space-24);
  background: var(--surface-nest-1);
  border: var(--p-stroke-hairline) solid var(--card-border);
}
.scope__box--2 { background: var(--surface-nest-2); }
.scope__box--3 { background: var(--surface-nest-3); }
.scope__box--key { background: var(--accent-fill); border-color: var(--accent-fill); }
.scope__label {
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
  letter-spacing: var(--type-small-track);
  color: var(--text-primary);
}
.scope__box--key .scope__label { color: var(--text-on-accent-fill); }

/* Layer row
   One row beside a layered stack diagram: name and sub-label in the first
   3 of its 9 columns, supporting text in the last 6. Place it on the slide
   grid at col-4 span-9; it centers itself in its grid row so its middle
   lines up with the leader line drawn from the stack. */
.layer-row {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  column-gap: var(--grid-gutter);
  align-items: center;
  align-self: center;
}
.layer-row__label { grid-column: 1 / span 3; display: flex; flex-direction: column; row-gap: var(--p-space-4); }
.layer-row__name {
  font-size: var(--type-item-title-size);
  line-height: var(--type-item-title-line);
  letter-spacing: var(--type-item-title-track);
  color: var(--text-primary);
}
.layer-row__sub {
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
  letter-spacing: var(--type-small-track);
  color: var(--text-secondary);
}
.layer-row__detail {
  grid-column: 4 / span 6;
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  letter-spacing: var(--type-body-track);
  color: var(--text-secondary);
  text-wrap: pretty;
}

/* Solid headline
   A slide whose variant is "solid" shows a two-tone headline with both
   lines bright. Lets a layout offer two-tone and solid as variants
   without changing the markup (used by statement). */
.slide[data-variant="solid"] .headline--two-tone .headline__line + .headline__line { color: var(--text-primary); }

/* Table column emphasis
   Emphasized column: .is-emph on the column's <th> and on every <td> in
   it. Accent fill, text on accent, rules hidden inside the fill. One row
   or one column per table, never both. */
.table th.is-emph,
.table td.is-emph { background: var(--accent-fill); color: var(--text-on-accent-fill); border-bottom-color: var(--accent-fill); }
.table thead th.is-emph { padding-top: var(--p-space-16); }

/* Comparison table
   .table.table--compare: two sides compared on the same rows. Side
   headings at card-title size, cells at item-title size, row labels at
   body size in secondary. Text sits on its column edge (no inset); an
   emphasized side (.is-emph cells) becomes a filled block with the
   card's 40 px inset. Rows align on the first baseline. */
.table--compare { table-layout: fixed; }
.table--compare th {
  padding: 0 var(--grid-gutter) var(--p-space-24) 0;
  font-size: var(--type-stage-title-size);
  line-height: var(--type-stage-title-line);
  letter-spacing: var(--type-stage-title-track);
  color: var(--text-primary);
}
.table--compare td {
  padding: var(--p-space-32) var(--grid-gutter) var(--p-space-32) 0;
  font-size: var(--type-item-title-size);
  line-height: var(--type-item-title-line);
  letter-spacing: var(--type-item-title-track);
  color: var(--text-primary);
  vertical-align: baseline;
  text-wrap: pretty;
}
.table--compare th:first-child,
.table--compare td:first-child {
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  letter-spacing: var(--type-body-track);
  color: var(--text-secondary);
}
.table--compare th.is-emph,
.table--compare td.is-emph { padding-inline: var(--p-space-40); color: var(--text-on-accent-fill); }
.table--compare thead th.is-emph { padding-top: var(--p-space-40); }
.table--compare tbody tr:last-child td.is-emph { padding-bottom: var(--p-space-40); }

/* Lockup
   The full midwestern wordmark (assets/logos/mw-logo.svg, inline, fill
   currentColor), 218 px wide, off-white. Top right on closing slides: right
   edge on the right margin (x 1864), top at y 64, level with the cap top of
   a 128 px closing headline. Place it at col-11 span-2. */
.mark--lockup { width: 218px; justify-self: end; align-self: start; margin-top: var(--p-space-8); }

/* Flow
   A left-to-right process. Each stage is a square node on a 1px line, then
   a number, a title and one sentence flush left under the node. The line
   runs from each node to the next and stops at the last one. Stages space
   themselves by count, no classes needed: 3 take four columns each, 4 take
   three, 5 take two (columns 1-10) and set their titles at 28 px.
   States: stage (node is .node.node--diagram, 28 px off-white) and key
   stage (node is .node.node--diagram-key, 40 px lime; one per slide). */
.flow {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gutter);
  align-items: start;
}
.flow__stage { grid-column-end: span 4; display: flex; flex-direction: column; min-width: 0; }
.flow:has(> .flow__stage:nth-child(4)) > .flow__stage { grid-column-end: span 3; }
.flow:has(> .flow__stage:nth-child(5)) > .flow__stage { grid-column-end: span 2; }
.flow__track { display: flex; align-items: center; height: 40px; margin-bottom: var(--p-space-40); }
.flow__node { flex: none; }
.flow__line {
  flex: 1 1 auto;
  height: 0;
  margin-right: calc(-1 * var(--grid-gutter));
  border-top: var(--p-stroke-hairline) solid var(--chart-axis);
}
.flow__stage:last-child .flow__line { display: none; }
.flow__num {
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-line);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.flow__title {
  font-size: var(--type-stage-title-size);
  line-height: var(--type-stage-title-line);
  letter-spacing: var(--type-stage-title-track);
  color: var(--text-primary);
  text-wrap: pretty;
}
.flow__num + .flow__title { margin-top: var(--p-space-12); }
.flow:has(> .flow__stage:nth-child(5)) .flow__title {
  font-size: var(--type-item-title-size);
  line-height: var(--type-item-title-line);
  letter-spacing: var(--type-item-title-track);
}
.flow__body {
  margin-top: var(--p-space-16);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  letter-spacing: var(--type-body-track);
  color: var(--text-secondary);
  text-wrap: pretty;
}

/* Steps
   Rising bars for a phased plan. Each .step is a big figure (the stat--big
   component) above a filled bar with a label at the top and a title and one
   line at the bottom, inset 32. Steps space themselves by count: 3 take four
   columns each, 4 take three. The layout sets the bar heights. Fills step
   up by position: surface-2, then surface-3 (with 4 steps: surface-1,
   surface-2, surface-3). States: step (fill by position) and key
   (.step--key: accent fill, all text in text-on-accent-fill; the last or
   the current step, one per slide). Position rules sit in :where() so the
   key state always wins. */
.steps {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gutter);
  align-items: end;
}
.step { grid-column-end: span 4; display: flex; flex-direction: column; min-width: 0; }
.steps:has(> .step:nth-child(4)) > .step { grid-column-end: span 3; }
.step__figure { margin-bottom: var(--p-space-16); }
.step__bar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: var(--p-space-32);
  background: var(--surface-2);
  color: var(--text-primary);
}
:where(.steps > .step:nth-child(n+2)) .step__bar { background: var(--surface-3); }
:where(.steps:has(> .step:nth-child(4)) > .step:nth-child(1)) .step__bar { background: var(--surface-1); }
:where(.steps:has(> .step:nth-child(4)) > .step:nth-child(2)) .step__bar { background: var(--surface-2); }
.step__label {
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
  letter-spacing: var(--type-small-track);
  color: var(--text-primary);
}
.step__title {
  margin-top: auto;
  font-size: var(--type-stage-title-size);
  line-height: var(--type-stage-title-line);
  letter-spacing: var(--type-stage-title-track);
  color: var(--text-primary);
}
.step__body {
  margin-top: var(--p-space-12);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  letter-spacing: var(--type-body-track);
  color: var(--text-secondary);
  text-wrap: pretty;
}
.step--key .step__bar { background: var(--accent-fill); }
.step--key .step__label,
.step--key .step__title,
.step--key .step__body { color: var(--text-on-accent-fill); }

/* Next step
   The one ask on a closing slide: a small label (Next step), the ask at
   40 px, then owner, date and contact in a row across the 7 columns it
   spans (columns 1-2, 3-4 and 5-7). Each detail is a 20 px secondary key
   over a 24 px primary value. Place it at col-1 span-7. */
.next-step { display: flex; flex-direction: column; min-width: 0; }
.next-step__label {
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
  letter-spacing: var(--type-small-track);
  color: var(--text-secondary);
}
.next-step__ask {
  margin-top: var(--p-space-12);
  font-size: var(--type-stage-title-size);
  line-height: var(--type-stage-title-line);
  letter-spacing: var(--type-stage-title-track);
  color: var(--text-primary);
  text-wrap: pretty;
}
.next-step__details {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  column-gap: var(--grid-gutter);
  margin-top: var(--p-space-40);
}
.next-step__detail { grid-column-end: span 2; display: flex; flex-direction: column; row-gap: var(--p-space-8); min-width: 0; }
.next-step__detail--contact { grid-column-end: span 3; }
.next-step__key {
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-line);
  color: var(--text-secondary);
}
.next-step__value {
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  letter-spacing: var(--type-body-track);
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

/* Hero stat
   .stat--hero: the value at the hero-number role (320 px) for the one
   figure that is the whole message of a big-number slide. Qualifier and
   unit stay 24 px beside it on its baseline. Use with .stat--key. One per
   slide, and never on the same slide as another hero or big figure. */
.stat--hero .stat__figure {
  font-size: var(--type-hero-number-size);
  line-height: var(--type-hero-number-line);
  letter-spacing: var(--type-hero-number-track);
}
.stat--hero .stat__unit { margin-left: var(--p-space-4); }

/* Curve stages
   Stage columns under a curve (chart.html, stages variant): a two-digit
   number, a 40 px stage title and a short body, starting 40 px under the
   plot. Dividers are separate one-column boxes whose right border is the
   1px line, so each line sits on a column end and runs from the top of the
   plot to body end; stage text starts on the next column start. */
.curve-stage { display: flex; flex-direction: column; min-width: 0; padding-top: var(--p-space-40); }
.curve-stage__num {
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-line);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.curve-stage__title {
  margin-top: var(--p-space-24);
  font-size: var(--type-stage-title-size);
  line-height: var(--type-stage-title-line);
  letter-spacing: var(--type-stage-title-track);
  color: var(--text-primary);
}
.curve-stage__body {
  margin-top: var(--p-space-24);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  letter-spacing: var(--type-body-track);
  color: var(--text-secondary);
  text-wrap: pretty;
}
.curve-divider { min-width: 0; border-right: var(--p-stroke-hairline) solid var(--rule); }

/* Tag chip
   A small filled label box from the approved library: 16 px text (the fine
   role) in a 28 px box, square corners, never an outline, never a marker
   before a label. One to three words; at most three chips in one view.
   States: default (gray), key (lime with navy text), fill (accent-fill:
   blue with off-white text in the blue theme, lime with navy text in the
   green theme), on-fill (navy with off-white text, only on an accent fill;
   a chip inside an emphasized card or key step takes it automatically).
   No state puts blue text on navy. */
.tag {
  display: inline-block;
  align-self: start;
  justify-self: start;
  padding: var(--p-space-2) var(--p-space-12);
  background: var(--tag-surface);
  color: var(--tag-text);
  font-size: var(--type-fine-size);
  line-height: var(--type-fine-line);
  letter-spacing: var(--type-fine-track);
  white-space: nowrap;
}
.tag--key { background: var(--tag-key-surface); color: var(--tag-key-text); }
.tag--fill { background: var(--accent-fill); color: var(--text-on-accent-fill); }
.tag--on-fill,
.card--emph .tag,
.step--key .tag { background: var(--ground); color: var(--text-primary); }

/* Arrow pictogram
   The library's thin arrow, inline SVG paths in currentColor. States by
   direction: --ne (up right), --sw (down left), --e (right). Sizes: default
   64 px (2 px stroke, the library's corner pictogram), --small 24 px (1 px
   stroke, beside a figure or as the pair of arrows on a divider). Colors:
   text-primary, or --key (lime) beside a key figure only. */
.arrow { display: block; width: 64px; height: 64px; color: var(--text-primary); }
.arrow svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: square; stroke-linejoin: miter; }
.arrow--small { width: 24px; height: 24px; }
.arrow--small svg { stroke-width: 1; }
.arrow--key { color: var(--accent-small); }

/* Statement paragraph
   One 72 px paragraph of up to five lines (library L31), bright, flush left. */
.statement {
  font-size: var(--type-statement-size);
  line-height: var(--type-statement-line);
  letter-spacing: var(--type-statement-track);
  color: var(--text-primary);
  text-wrap: pretty;
}

/* CTA button
   The library's closing button (L28): a lime box with navy text and a small
   arrow, 28 px Regular in a box about 80 px tall (the library's Medium weight is not used). One per
   deck, on closing-cta only. It is the slide's one small highlight. */
.cta-button {
  display: inline-flex;
  align-items: center;
  column-gap: var(--p-space-12);
  align-self: start;
  justify-self: start;
  padding: var(--p-space-24) var(--p-space-32);
  background: var(--accent-small);
  color: var(--tag-key-text);
  font-size: var(--type-item-title-size);
  line-height: var(--type-item-title-line);
  white-space: nowrap;
}
.cta-button .arrow { color: inherit; }

/* Ledger
   A pricing ledger (price-panel, total variant; library L20, L22, L23): a
   header line, then rows that share the ledger's height, each with the item
   (24 px primary), a detail (20 / 1.5 secondary) and the cost (20 / 1.5
   secondary, right-aligned). Six columns wide: item in columns 1-2, detail
   3-4, cost 5-6. A 1 px quiet rule under the header and under every row. */
.ledger { display: flex; flex-direction: column; min-height: 0; }
.ledger__head,
.ledger__row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: var(--grid-gutter);
  border-bottom: var(--p-stroke-hairline) solid var(--rule);
}
.ledger__head {
  padding-bottom: var(--p-space-16);
  font-size: var(--type-eyebrow-size);
  line-height: var(--type-eyebrow-line);
  color: var(--text-secondary);
}
.ledger__head-item { grid-column: 1 / span 4; }
.ledger__head-cost { grid-column: 5 / span 2; text-align: right; }
.ledger__row { flex: 1 1 0; min-height: 0; align-items: start; padding-block: var(--p-space-16); }
.ledger__item {
  grid-column: 1 / span 2;
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  color: var(--text-primary);
  text-wrap: pretty;
}
.ledger__detail,
.ledger__cost {
  font-size: var(--type-eyebrow-size);
  line-height: var(--type-eyebrow-line);
  color: var(--text-secondary);
}
.ledger__detail { grid-column: 3 / span 2; text-wrap: pretty; }
.ledger__cost { grid-column: 5 / span 2; text-align: right; font-variant-numeric: tabular-nums; }

/* Price panel
   The filled total panel (library L19, L20, L22, L23): accent fill (blue
   with off-white text in the blue theme, lime with navy text in green), 40 px
   inset. Tag chip and 40 px title at the top; the 128 px figure, a 20 px note
   and up to two line items (label left, value right, under a 1 px rule in
   the on-fill color) rest on the bottom. A chip inside takes the on-fill
   state by itself. One per slide; it is the slide's one accent. */
.price-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: var(--p-space-40);
  background: var(--accent-fill);
  color: var(--text-on-accent-fill);
}
.price-panel .tag { background: var(--ground); color: var(--text-primary); }
.price-panel__title {
  margin-top: var(--p-space-24);
  font-size: var(--type-stage-title-size);
  line-height: var(--type-stage-title-line);
  letter-spacing: var(--type-stage-title-track);
  color: var(--text-on-accent-fill);
  text-wrap: pretty;
}
.price-panel__body { display: flex; flex-direction: column; margin-top: auto; }
.price-panel__figure {
  font-size: var(--type-closing-size);
  line-height: var(--type-big-number-line);
  letter-spacing: var(--type-closing-track);
  color: var(--text-on-accent-fill);
  white-space: nowrap;
}
.price-panel__note {
  margin-top: var(--p-space-24);
  font-size: var(--type-eyebrow-size);
  line-height: var(--type-eyebrow-line);
  color: var(--text-on-accent-fill);
  text-wrap: pretty;
}
.price-panel__lines {
  display: flex;
  flex-direction: column;
  row-gap: var(--p-space-24);
  margin-top: var(--p-space-24);
  padding-top: var(--p-space-24);
  border-top: var(--p-stroke-hairline) solid var(--text-on-accent-fill);
}
.price-panel__line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  column-gap: var(--p-space-24);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  color: var(--text-on-accent-fill);
}
.price-panel__line-value { flex: none; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Price list
   Rows of label and amount at the bottom of a full-height card (price-panel,
   two-ledgers variant; library L17). Label 24 px secondary, amount 28 px
   primary, 24 px above and below, a 1 px quiet rule on top of each row.
   Key amount: .tag.tag--key.tag--amount, the library's lime price chip at
   28 px; it counts as a tag chip (three per slide at most). */
.price-list { display: flex; flex-direction: column; margin-top: auto; padding-top: var(--p-space-24); }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: var(--p-space-24);
  padding-block: var(--p-space-24);
  border-top: var(--p-stroke-hairline) solid var(--rule);
}
.price-row:last-child { padding-bottom: 0; }
.price-row__label {
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  color: var(--text-secondary);
}
.price-row__amount {
  flex: none;
  font-size: var(--type-item-title-size);
  line-height: var(--type-item-title-line);
  letter-spacing: var(--type-item-title-track);
  color: var(--text-primary);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  padding-block: var(--p-space-2);
}
.price-row__amount.tag--key { color: var(--tag-key-text); }
.tag.tag--amount {
  align-self: center;
  font-size: var(--type-item-title-size);
  line-height: var(--type-item-title-line);
  letter-spacing: var(--type-item-title-track);
}

/* Option panel
   One way to buy (two-options; library L18, L21): a .card outline holding a
   tag chip, a 40 px title, then on the bottom a description beside one big
   figure (the stat--big component), a 1 px rule, and the price (72 px)
   beside its terms (20 / 1.5 secondary). Two panels sit side by side inside
   each panel's halves; three panels stack each pair. Recommended: the chip
   takes the fill state (.tag--fill); nothing else changes. */
.option-set {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gutter);
  min-height: 0;
}
.option { grid-column-end: span 6; }
.option-set:has(> .option:nth-child(3)) > .option { grid-column-end: span 4; }
.option__title {
  margin-top: var(--p-space-24);
  font-size: var(--type-stage-title-size);
  line-height: var(--type-stage-title-line);
  letter-spacing: var(--type-stage-title-track);
  color: var(--text-primary);
}
.option__term,
.option__price-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--p-space-40);
  align-items: end;
}
.option__term { margin-top: auto; }
.option__desc {
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  color: var(--text-secondary);
  text-wrap: pretty;
}
.option__term .stat__figure { white-space: nowrap; }
.option__price-row {
  margin-top: var(--p-space-40);
  padding-top: var(--p-space-40);
  border-top: var(--p-stroke-hairline) solid var(--rule);
}
.option__price {
  font-size: var(--type-statement-size);
  line-height: var(--type-statement-line);
  letter-spacing: var(--type-statement-track);
  color: var(--text-primary);
  white-space: nowrap;
}
.option__terms {
  font-size: var(--type-eyebrow-size);
  line-height: var(--type-eyebrow-line);
  color: var(--text-secondary);
  text-wrap: pretty;
}
.option-set:has(> .option:nth-child(3)) .option__term,
.option-set:has(> .option:nth-child(3)) .option__price-row { grid-template-columns: minmax(0, 1fr); row-gap: var(--p-space-24); }
.option-set:has(> .option:nth-child(3)) .option__price-row { margin-top: var(--p-space-32); padding-top: var(--p-space-32); }

/* Logo wall
   Client logos on navy in a quiet grid (logo-wall; library L12, L13). Each
   cell has a 1 px quiet rule on top (as L12), a 32 px gap to the next
   cell, and the logo flush left at its column edge, centered top to bottom.
   States: large (default, three columns) and small (.logo-cell--small, two
   columns; the first small cell starts a new row). A cell holds a supplied
   logo image (white or off-white, max 64 px tall, 40 px when small) or, when
   there is no logo, the company name as text (28 px, 24 px when small).
   Never a logo on a light box, never a drawn or recolored logo. */
.logo-wall {
  --logo-small-h: calc(var(--p-space-96) + var(--p-space-16));
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  gap: var(--grid-gutter);
  align-content: start;
  min-height: 0;
}
.logo-cell {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: calc(var(--p-space-128) + var(--p-space-48));
  padding-block: var(--p-space-24);
  border-top: var(--p-stroke-hairline) solid var(--rule);
}
.logo-wall > .logo-cell { grid-column-end: span 3; }
.logo-wall > .logo-cell--small { grid-column-end: span 2; min-height: var(--logo-small-h); }
.logo-wall > .logo-cell:not(.logo-cell--small) + .logo-cell--small { grid-column-start: 1; }
.logo-cell__logo { display: flex; align-items: center; min-width: 0; max-width: 100%; }
.logo-cell__logo img { display: block; width: auto; height: auto; max-width: 100%; max-height: var(--p-space-64); }
.logo-cell--small .logo-cell__logo img { max-height: var(--p-space-40); }
.logo-cell__name {
  font-size: var(--type-item-title-size);
  line-height: var(--type-item-title-line);
  letter-spacing: var(--type-item-title-track);
  color: var(--text-primary);
  text-wrap: pretty;
}
.logo-cell--small .logo-cell__name {
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
  letter-spacing: var(--type-small-track);
}

/* Client card
   A named client (logo-wall, cards variant; library L14 with the logo on
   navy instead of a light tile): a logo cell ruled top and bottom that grows
   to fill the card, then the engagement type (24 px primary) and one or two
   sentences (24 / 1.5 secondary, room for four lines kept so the type lines
   align). Cards run from body start to body end. Four cards take three
   columns each; three take four. */
.client-row {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gutter);
  align-items: stretch;
  min-height: 0;
}
.client-card { grid-column-end: span 3; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.client-row:not(:has(> .client-card:nth-child(4))) > .client-card { grid-column-end: span 4; }
.client-card > .logo-cell { flex: 1 1 auto; min-height: var(--p-space-128); border-bottom: var(--p-stroke-hairline) solid var(--rule); }
.client-card__type {
  margin-top: var(--p-space-32);
  font-size: var(--type-small-size);
  line-height: var(--type-small-line);
  letter-spacing: var(--type-small-track);
  color: var(--text-primary);
}
.client-card__desc {
  margin-top: var(--p-space-16);
  min-height: calc(4em * var(--type-body-line));
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  color: var(--text-secondary);
  text-wrap: pretty;
}

/* Image panel
   The library's dithered image panel (hero-image.html). A filled box in the
   theme's fill (blue in the blue theme, lime in the green theme) holding one
   <img> that covers it edge to edge, centered crop, square corners, no border,
   no caption. The image is a one-bit dither in two flat colors baked into the
   file; image-rendering keeps its dots hard when it scales, so no in-between
   colors appear. The panel converts to one picture (data-export="image").
   States: image (default), missing (swap the panel for a .placeholder of the
   same size). */
.image-panel { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--accent-fill); }
.image-panel > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  image-rendering: pixelated;
}

/* Lead
   One plain sentence at 40 px (stage-title role), bright, up to three lines:
   the point beside a picture on hero-image's split. */
.lead {
  font-size: var(--type-stage-title-size);
  line-height: var(--type-stage-title-line);
  letter-spacing: var(--type-stage-title-track);
  color: var(--text-primary);
  text-wrap: pretty;
}

/* Arrow pair
   Two small right arrows side by side, 32 px apart, resting on body end at
   the right margin: the library divider's "the deck moves on" mark. */
.arrow-pair { display: flex; column-gap: var(--p-space-32); justify-self: end; align-self: end; }

/* Chart forecast
   Chart primitives for a "today" marker and a forecast (chart.html, line and
   side-panel variants): a flat band behind the forecast, a 1px vertical line
   at today with a small off-white tag at its top, and the forecast part of a
   line drawn dashed with hollow markers. */
.chart__band { fill: var(--surface-2); stroke: none; }
.chart__today { fill: none; stroke: var(--rule-strong); stroke-width: 1; shape-rendering: crispEdges; }
.chart__line--forecast { stroke-dasharray: 6 6; }
.chart__tag--today { fill: var(--text-primary); }
.chart__tag-text--today { fill: var(--ground); }

/* Chart panel
   The text panel beside a chart (chart.html, side-panel variant): one big
   figure with its label at the top, a short paragraph resting on the bottom
   under a quiet 1px rule. Columns 9-12, from the chart title row to body end. */
.chart-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chart-panel__body {
  margin-top: auto;
  padding-top: var(--p-space-24);
  border-top: var(--p-stroke-hairline) solid var(--rule);
  font-size: var(--type-body-size);
  line-height: var(--type-body-line);
  letter-spacing: var(--type-body-track);
  color: var(--text-secondary);
  text-wrap: pretty;
}

/* Stat card
   The big-number slide's cards variant (library L32, "Our team"): two or
   three full-height outline cards, each with a two-digit number or a tag
   chip at the top, a 48 px title, a short body, and a very large figure at
   the bottom left with the arrow pictogram at the bottom right. Two cards
   take the halves and set the figure at 256 px (card-figure); three take
   thirds and set it at 144 px (big-number). The 64 px arrow sits on the
   card's bottom right in both. Figures
   stay Regular and off-white. The key card (.stat-card--key) turns its
   arrow lime: one key card per slide, and none beside a blue fill. */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gutter);
  min-height: 0;
}
.stat-card { grid-column-end: span 6; }
.stat-cards:has(> .stat-card:nth-child(3)) > .stat-card { grid-column-end: span 4; }
.stat-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  column-gap: var(--p-space-16);
  margin-top: auto;
  padding-top: var(--p-space-24);
}
.stat-card .stat__figure {
  font-size: var(--type-card-figure-size);
  line-height: var(--type-card-figure-line);
  letter-spacing: var(--type-card-figure-track);
  color: var(--text-primary);
  white-space: nowrap;
}
.stat-cards:has(> .stat-card:nth-child(3)) .stat__figure {
  font-size: var(--type-big-number-size);
  line-height: var(--type-big-number-line);
  letter-spacing: var(--type-big-number-track);
}
.stat-card .stat__unit { margin-left: var(--p-space-4); }
.stat-card .arrow { flex: none; }
.stat-card--key .arrow { color: var(--accent-small); }
