/* SPDX-License-Identifier: AGPL-3.0-or-later */
/*
 * Orchard — the reveal.js theme for canopy slide decks.
 *
 * Colors, type and radii follow the Orchard design system
 * (docs/modules/ROOT/pages/design/design-system.adoc). The fonts are the worker
 * portal's own files, published beside this stylesheet by
 * docs/extensions/slides-extension.js — nothing loads from a CDN.
 *
 * Slides are 1600x900 (see the deck header). A dark slide carries the `dark`
 * role for its content colors and `state=dark` so the deck chrome (brand mark,
 * controls, progress bar) follows it.
 */

@font-face { font-family: 'Montserrat'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/montserrat-400.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/montserrat-500.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/montserrat-600.woff2') format('woff2'); }
@font-face { font-family: 'Montserrat'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/montserrat-700.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/jetbrains-mono-400.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/jetbrains-mono-500.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 700; font-style: normal; font-display: swap; src: url('fonts/jetbrains-mono-700.woff2') format('woff2'); }

:root {
  --o-primary: #1e5146;
  --o-primary-hover: #2d7060;
  --o-primary-bright: #3a9080;
  --o-accent: #ecbf44;
  --o-surface: #f1f6f3;
  --o-raised: #ffffff;
  --o-sunken: #dde5e0;
  --o-tint: #e6efe9;
  --o-text: #031018;
  --o-body: #38424b;
  --o-muted: #4d6259;
  --o-border: #c8d9cf;
  --o-border-soft: #e2eae4;
  --o-deep: #0f2c26;
  --o-deep-raised: rgba(255, 255, 255, 0.06);
  --o-deep-line: rgba(168, 213, 197, 0.22);
  --o-on-deep: #d9e8e1;
  --o-on-deep-muted: #a8d5c5;
  --o-success: #2c9a5c;
  --o-success-bg: #d8f0e1;
  --o-success-text: #1c6b3e;
  --o-warning-bg: #fbe6c8;
  --o-warning-text: #8e510f;
  --o-error: #c8412e;
  --o-error-bg: #f5d6cf;
  --o-error-text: #8a2916;
  --o-info-bg: #d6ebec;
  --o-info-text: #275f63;
  --p-snap: #1f6e5a;
  --p-tanf: #205673;
  --p-medicaid: #7a3d52;
  --p-caps: #6a3f6c;
  --p-wic: #876430;
  --font-sans: 'Montserrat', 'Open Sans', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --shadow-card: 0 1px 2px rgba(3, 16, 24, 0.05), 0 18px 40px -26px rgba(30, 81, 70, 0.45);
}

/* ─── Canvas ─────────────────────────────────────────────────────────────── */

.reveal-viewport { background: var(--o-surface); }

.reveal {
  font-family: var(--font-sans);
  font-size: 28px;
  font-weight: 500;
  color: var(--o-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.reveal ::selection { background: var(--o-accent); color: var(--o-text); }

.reveal .slides { text-align: left; }

/* A main slide, or a vertical slide inside a stack. reveal.js marks the stack's wrapper
   `section.stack`; it is a container, not a slide, so it takes none of the slide padding. */
.reveal .slides > section:not(.stack),
.reveal .slides > section.stack > section {
  height: 100%;
  box-sizing: border-box;
  padding: 72px 104px 76px;
  flex-direction: column;
  line-height: 1.45;
}

.reveal .slides > section.stack { padding: 0; }

.reveal .slide-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.reveal .slides section.columns .slide-content { flex-direction: row; gap: 64px; }
.reveal .slides section.columns.is-vcentered .slide-content { align-items: center; }
.reveal .slides section.columns .slide-content > .column > * { padding: 0; }
.reveal .slides section.columns .slide-content > .column > .content { display: flex; flex-direction: column; gap: 26px; }

/* ─── Type ───────────────────────────────────────────────────────────────── */

.reveal h1, .reveal h2, .reveal h3, .reveal h4 {
  font-family: var(--font-sans);
  color: var(--o-text);
  margin: 0;
  text-transform: none;
  text-shadow: none;
  word-wrap: normal;
}

.reveal h2 {
  font-size: 54px;
  font-weight: 700;
  letter-spacing: -1.4px;
  line-height: 1.08;
}

.reveal h2 .overline {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 3.5px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--o-muted);
}

.reveal h2 .overline::before {
  content: '';
  flex: none;
  width: 36px;
  height: 3px;
  border-radius: 2px;
  background: var(--o-accent);
}

.reveal h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.2; }

.reveal p { margin: 0; }
.reveal strong, .reveal b { font-weight: 700; color: var(--o-text); }
/* Montserrat ships no italic here: emphasis is color, not slant. */
.reveal em { font-style: normal; font-weight: 600; color: var(--o-primary); }
.reveal small { font-size: 0.72em; color: var(--o-muted); }

.reveal a {
  color: var(--o-primary);
  text-decoration: underline;
  text-decoration-color: var(--o-accent);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.reveal code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  font-weight: 500;
  color: var(--o-primary);
  background: var(--o-tint);
  border-radius: 6px;
  padding: 0.06em 0.34em;
  font-variant-numeric: tabular-nums;
}

.reveal .lede p { font-size: 31px; line-height: 1.45; max-width: 1340px; color: var(--o-body); }
/* A lede directly under the title sits closer to it than the content gap below it. */
.reveal .slide-content > .lede:first-child { margin-top: -12px; }

.reveal .callout p {
  font-size: 23px;
  line-height: 1.5;
  color: var(--o-body);
  padding: 20px 28px;
  border-left: 4px solid var(--o-accent);
  background: var(--o-raised);
  border-radius: 0 12px 12px 0;
  box-shadow: var(--shadow-card);
}

.reveal .fineprint p, .reveal p.fineprint { font-size: 17px; color: var(--o-muted); }

.reveal .ref {
  display: inline-block;
  margin: 14px 6px 0 0;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  color: var(--o-muted);
  background: var(--o-surface);
  border: 1px solid var(--o-border-soft);
  border-radius: 6px;
}

/* ─── Lists ──────────────────────────────────────────────────────────────── */

.reveal ul, .reveal ol { margin: 0; padding: 0; list-style: none; }

.reveal .ulist > ul { display: flex; flex-direction: column; gap: 16px; }
.reveal .ulist > ul > li { position: relative; padding-left: 36px; }
.reveal .ulist > ul > li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.5em;
  width: 15px;
  height: 15px;
  border-radius: 0 80% 0 80%;
  background: var(--o-accent);
}

/* Points: a bold lead-in, then a line of explanation. */
.reveal .points > ul { gap: 22px; }
.reveal .points > ul > li { font-size: 23px; line-height: 1.45; }
.reveal .points > ul > li strong:first-child { color: var(--o-text); }

/* Cards: one list item per card; a leading <strong> becomes the card title. */
.reveal .cards > ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.reveal .cards.cols-2 > ul { grid-template-columns: repeat(2, 1fr); }
.reveal .cards.cols-4 > ul { grid-template-columns: repeat(4, 1fr); gap: 20px; }

.reveal .cards > ul > li {
  position: relative;
  padding: 30px 30px 30px;
  font-size: 22px;
  line-height: 1.5;
  color: var(--o-body);
  background: var(--o-raised);
  border: 1px solid var(--o-border-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.reveal .cards > ul > li::before {
  left: 30px;
  top: 0;
  width: 40px;
  height: 3px;
  border-radius: 0 0 2px 2px;
}

.reveal .cards > ul > li p > strong:first-child {
  display: block;
  margin-bottom: 10px;
  font-size: 26px;
  letter-spacing: -0.3px;
  line-height: 1.2;
  color: var(--o-text);
}

.reveal .cards.compact > ul > li { padding: 24px 22px 22px; font-size: 19px; }
.reveal .cards.compact > ul > li::before { left: 22px; }
.reveal .cards.compact > ul > li p > strong:first-child { font-size: 22px; }

/* Numbered cards: a muted numeral in the corner, for a list whose order is the argument. */
.reveal .cards.numbered > ul { counter-reset: card; }
.reveal .cards.numbered > ul > li { counter-increment: card; }
.reveal .cards.numbered > ul > li::after {
  content: counter(card);
  position: absolute;
  top: 22px;
  right: 26px;
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: var(--o-border);
}
.reveal .cards.numbered > ul > li p > strong:first-child { padding-right: 56px; }

/* Dense: a slide whose content needs the gaps tightened to fit. */
.reveal .slides section.dense .slide-content { gap: 22px; margin-top: 28px; }
.reveal .slides section.dense .points > ul { gap: 14px; }

/* ─── Program chips ──────────────────────────────────────────────────────── */

.reveal .chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.6px;
  line-height: 1.3;
  color: #fff;
  background: var(--o-primary);
  border-radius: 6px;
  white-space: nowrap;
}

.reveal .chip.snap { background: var(--p-snap); }
.reveal .chip.tanf { background: var(--p-tanf); }
.reveal .chip.medicaid { background: var(--p-medicaid); }
.reveal .chip.caps { background: var(--p-caps); }
.reveal .chip.wic { background: var(--p-wic); }

/* ─── Code listings ──────────────────────────────────────────────────────── */

.reveal .listingblock > .title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: var(--o-muted);
}

.reveal .listingblock > .content {
  background: var(--o-deep);
  border-radius: 14px;
  padding: 30px 34px;
  box-shadow: 0 30px 60px -34px rgba(3, 16, 24, 0.7);
}

.reveal pre {
  width: auto;
  margin: 0;
  font-size: 20px;
  line-height: 1.65;
  box-shadow: none;
  text-align: left;
  white-space: pre;
}

.reveal pre code {
  display: block;
  max-height: none;
  padding: 0;
  overflow: visible;
  font-size: 1em;
  color: var(--o-on-deep);
  background: none;
  border-radius: 0;
}

.reveal pre .k { color: var(--o-on-deep-muted); }
.reveal pre .v { color: #f0d58a; }
.reveal pre .c { color: #7fa294; }
.reveal pre .hl {
  color: #fff;
  font-weight: 700;
  border-radius: 3px;
  background: rgba(236, 191, 68, 0.16);
  box-shadow: inset 0 -2px 0 var(--o-accent);
}

/* ─── Deck chrome ────────────────────────────────────────────────────────── */

.deck-brand {
  position: fixed;
  left: 30px;
  bottom: 24px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--o-primary);
  pointer-events: none;
  transition: opacity 0.4s ease, color 0.4s ease;
}

.deck-brand svg { width: 22px; height: 24px; }
.deck-brand .leaf { fill: var(--o-primary-hover); transition: fill 0.4s ease; }
.deck-brand .leaf-center { fill: var(--o-accent); }
.deck-brand .stem { fill: var(--o-primary); transition: fill 0.4s ease; }

.reveal-viewport.dark .deck-brand { color: var(--o-on-deep); }
.reveal-viewport.dark .deck-brand .leaf { fill: #3a8070; }
.reveal-viewport.dark .deck-brand .stem { fill: #5ab5a0; }
.reveal-viewport.hero .deck-brand { opacity: 0; }

/* The mark is fixed-size chrome; on a small viewport (or the docs-page embed) it would crowd the scaled slide. */
@media (max-width: 1200px), (max-height: 700px) {
  .deck-brand { display: none; }
}

.reveal .progress { height: 4px; color: var(--o-accent); background-color: rgba(30, 81, 70, 0.12); }
.reveal .controls { color: var(--o-primary); }
.reveal-viewport.dark .reveal .controls { color: var(--o-accent); }

.reveal .slide-number {
  left: 50%;
  right: auto;
  bottom: 26px;
  transform: translateX(-50%);
  padding: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--o-muted);
  background: transparent;
}

.reveal .slide-number a { text-decoration: none; }
.reveal-viewport.dark .reveal .slide-number { color: var(--o-on-deep-muted); }
.reveal-viewport.hero .reveal .slide-number { opacity: 0; }

/* ─── Dark slides ────────────────────────────────────────────────────────── */

.reveal section.dark { color: var(--o-on-deep); }
.reveal section.dark h1, .reveal section.dark h2, .reveal section.dark h3, .reveal section.dark strong { color: #fff; }
.reveal section.dark h2 .overline { color: var(--o-on-deep-muted); }
.reveal section.dark em { color: var(--o-accent); }
.reveal section.dark a { color: #fff; }
.reveal section.dark code { color: #fff; background: rgba(255, 255, 255, 0.1); }

.reveal section.dark::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -170px;
  width: 760px;
  height: 780px;
  transform: translateY(-50%);
  background: url('leaf-watermark.svg') no-repeat center / contain;
  opacity: 0.11;
  pointer-events: none;
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */

.reveal section.hero { justify-content: center; padding-left: 140px; }
.reveal section.hero .slide-content { flex: none; margin: 0; }
/* Exactly the slide height, so the watermark never scrolls the section. */
.reveal section.hero::after { right: -180px; width: 900px; height: 900px; opacity: 0.14; }
.reveal section.closing::after { right: -300px; top: 44%; opacity: 0.08; }

.reveal .hero { display: flex; flex-direction: column; align-items: flex-start; }
.reveal .hero-mark { width: 104px; height: 106px; margin-bottom: 40px; }
.reveal .hero-mark .leaf { fill: #3a8070; }
.reveal .hero-mark .leaf-center { fill: var(--o-accent); }
.reveal .hero-mark .stem { fill: #5ab5a0; }

.reveal .hero-overline {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--o-on-deep-muted);
}

.reveal .hero-overline::before { content: ''; width: 40px; height: 3px; border-radius: 2px; background: var(--o-accent); }

.reveal .hero .wordmark {
  margin: 10px 0 18px -8px;
  font-size: 220px;
  font-weight: 700;
  letter-spacing: -9px;
  line-height: 1;
  color: #fff;
}

.reveal .hero-tagline { font-size: 40px; font-weight: 500; line-height: 1.3; letter-spacing: -0.5px; max-width: 980px; color: var(--o-on-deep); }

.reveal .hero .programs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 56px; }
.reveal .hero .programs .chip { font-size: 19px; padding: 8px 18px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }

/* ─── Federal data table ─────────────────────────────────────────────────── */

.reveal .law { display: flex; flex-direction: column; background: var(--o-raised); border: 1px solid var(--o-border-soft); border-radius: 14px; box-shadow: var(--shadow-card); overflow: hidden; }
.reveal .law-row { display: grid; grid-template-columns: 1.05fr 1.6fr 0.9fr; gap: 32px; align-items: center; padding: 20px 34px; border-top: 1px solid var(--o-border-soft); }
.reveal .law-row:first-child { border-top: 0; }
.reveal .law-head { padding-top: 18px; padding-bottom: 16px; background: var(--o-primary); }
.reveal .law-head span { font-size: 14px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--o-on-deep-muted); }
.reveal .law-src { font-size: 24px; font-weight: 700; color: var(--o-text); line-height: 1.25; }
.reveal .law-src small { display: block; margin-top: 4px; font-size: 15px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--o-muted); }
.reveal .law-auth { font-size: 21px; line-height: 1.45; color: var(--o-body); }
.reveal .law-svc { display: flex; flex-wrap: wrap; gap: 8px; }

/* ─── Shared data vs shared outcomes (SVG) ───────────────────────────────── */

.reveal svg.diagram { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--font-sans); }
.reveal .diagram .panel { fill: var(--o-raised); stroke: var(--o-border-soft); stroke-width: 1.5; }
.reveal .diagram .panel-old { fill: #e8ece9; stroke: none; }
.reveal .diagram .over { font-size: 14px; font-weight: 700; letter-spacing: 2.8px; fill: var(--o-muted); }
.reveal .diagram .title { font-size: 26px; font-weight: 700; letter-spacing: -0.4px; fill: var(--o-text); }
.reveal .diagram .label { font-size: 17px; font-weight: 700; fill: var(--o-text); }
.reveal .diagram .label-inv { font-size: 17px; font-weight: 700; fill: #fff; }
.reveal .diagram .note { font-size: 16px; font-weight: 500; fill: var(--o-muted); }
.reveal .diagram .note-inv { font-size: 15px; font-weight: 500; fill: var(--o-on-deep-muted); }
.reveal .diagram .mono { font-family: var(--font-mono); }
.reveal .diagram .gold { fill: var(--o-accent); }
.reveal .diagram .gold-line { stroke: var(--o-accent); }
.reveal .diagram .box { fill: var(--o-raised); stroke: var(--o-border); stroke-width: 1.5; }
.reveal .diagram .box-primary { fill: var(--o-primary); }
.reveal .diagram .wire { fill: none; stroke: var(--o-primary-hover); stroke-width: 2.5; }
.reveal .diagram .wire-muted { fill: none; stroke: #9fb3aa; stroke-width: 2; }
.reveal .diagram .arrowhead { fill: var(--o-primary-hover); }
.reveal .diagram .arrowhead-muted { fill: #9fb3aa; }
.reveal .diagram .db-top { fill: #f6f8f7; }
.reveal .diagram .db-body { fill: #d7dfdb; stroke: #b4c3bc; stroke-width: 1.5; }
.reveal .diagram .db-row { fill: #fff; stroke: #c9d3ce; stroke-width: 1; }
.reveal .diagram .tag { font-family: var(--font-mono); font-size: 13px; font-weight: 700; }
.reveal .diagram .warn { font-size: 17px; font-weight: 600; fill: var(--o-error-text); }
.reveal .diagram .warn-bg { fill: var(--o-error-bg); }
.reveal .diagram .f-snap { fill: var(--p-snap); }
.reveal .diagram .f-tanf { fill: var(--p-tanf); }
.reveal .diagram .f-medicaid { fill: var(--p-medicaid); }
.reveal .diagram .f-caps { fill: var(--p-caps); }
.reveal .diagram .f-wic { fill: var(--p-wic); }
.reveal .diagram .s-snap { stroke: var(--p-snap); }
.reveal .diagram .s-tanf { stroke: var(--p-tanf); }
.reveal .diagram .s-medicaid { stroke: var(--p-medicaid); }
.reveal .diagram .s-caps { stroke: var(--p-caps); }
.reveal .diagram .s-wic { stroke: var(--p-wic); }
.reveal .diagram .db-own { fill: var(--o-surface); stroke-width: 2; }
.reveal .diagram .badge { fill: var(--o-tint); }
.reveal .diagram .badge-text { font-family: var(--font-mono); font-size: 15px; font-weight: 700; fill: var(--o-primary); }
.reveal .diagram .badge-none { font-family: var(--font-mono); font-size: 15px; font-weight: 500; fill: var(--o-muted); }

/* ─── License ────────────────────────────────────────────────────────────── */

.reveal .license { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; }
.reveal .license-col { padding: 32px 36px; border-radius: 14px; background: var(--o-raised); border: 1px solid var(--o-border-soft); box-shadow: var(--shadow-card); }
.reveal .license-col.deny { background: var(--o-primary); border-color: var(--o-primary); color: var(--o-on-deep); }
.reveal .col-over { margin-bottom: 18px !important; font-size: 15px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--o-muted); }
.reveal .license-col.deny .col-over { color: var(--o-on-deep-muted); }
.reveal .license-col ul { display: flex; flex-direction: column; gap: 12px; }
.reveal .license-col li { position: relative; padding-left: 34px; font-size: 22px; line-height: 1.4; }
.reveal .license-col li::before { content: ''; position: absolute; left: 2px; top: 0.3em; width: 12px; height: 7px; border-left: 3px solid var(--o-success); border-bottom: 3px solid var(--o-success); transform: rotate(-45deg); }
.reveal .license-no { font-size: 30px; font-weight: 700; line-height: 1.3; letter-spacing: -0.4px; color: #fff; }
.reveal .license-note { margin-top: 22px !important; font-size: 19px; line-height: 1.45; color: var(--o-on-deep-muted); }

/* ─── Stats ──────────────────────────────────────────────────────────────── */

.reveal .stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.reveal .stat-row.single { grid-template-columns: 1fr; }
.reveal .stat { display: flex; flex-direction: column; gap: 6px; padding: 24px 30px 26px; border-top: 3px solid var(--o-accent); background: var(--o-raised); border-radius: 0 0 14px 14px; box-shadow: var(--shadow-card); }
.reveal .stat .num { font-family: var(--font-mono); font-size: 64px; font-weight: 700; letter-spacing: -2px; line-height: 1; color: var(--o-primary); font-variant-numeric: tabular-nums; }
.reveal .stat .label { font-size: 20px; font-weight: 600; line-height: 1.35; color: var(--o-text); }
.reveal .stat .cite { font-family: var(--font-mono); font-size: 14px; color: var(--o-muted); }

/* ─── Match rates ────────────────────────────────────────────────────────── */

/* flex: none, so a crowded slide overflows visibly instead of clipping the last rows. */
.reveal .rates { flex: none; display: flex; flex-direction: column; background: var(--o-raised); border: 1px solid var(--o-border-soft); border-radius: 14px; box-shadow: var(--shadow-card); overflow: hidden; }
.reveal .rate { display: grid; grid-template-columns: 200px 1fr 430px; gap: 24px; align-items: center; padding: 22px 32px; border-top: 1px solid var(--o-border-soft); }
.reveal .rate:first-child { border-top: 0; }
.reveal .rate-num { font-family: var(--font-mono); font-size: 44px; font-weight: 700; letter-spacing: -1px; line-height: 1; color: var(--o-primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.reveal .rate-num small { font-size: 20px; font-weight: 700; letter-spacing: 0; color: var(--o-muted); }
.reveal .rate-what { font-size: 22px; line-height: 1.4; color: var(--o-body); }
.reveal .rate-what b { margin-right: 6px; color: var(--o-text); }
.reveal .rate-cite { font-family: var(--font-mono); font-size: 17px; line-height: 1.4; color: var(--o-muted); text-align: right; }

/* ─── Determination flow ─────────────────────────────────────────────────── */

.reveal .flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 26px; counter-reset: stage; }

.reveal .flow .stage {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 22px 24px;
  background: var(--o-raised);
  border: 1px solid var(--o-border-soft);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.reveal .flow .stage:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 44px;
  right: -21px;
  width: 16px;
  height: 16px;
  border-top: 3px solid var(--o-primary-hover);
  border-right: 3px solid var(--o-primary-hover);
  transform: rotate(45deg);
}

.reveal .flow .stage-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  color: var(--o-primary);
  border: 2px solid var(--o-accent);
  border-radius: 50%;
}

.reveal .flow h3 { font-size: 30px; letter-spacing: -0.6px; }
.reveal .flow .svcs { display: flex; flex-wrap: wrap; gap: 6px; min-height: 60px; align-content: flex-start; }
.reveal .flow .svcs code { font-size: 14px; padding: 3px 8px; }
.reveal .flow .stage > p:not(.svcs) { font-size: 17px; line-height: 1.45; color: var(--o-body); }
.reveal .flow .stage.program { background: var(--p-snap); border-color: var(--p-snap); }
.reveal .flow .stage.program h3, .reveal .flow .stage.program .stage-num, .reveal .flow .stage.program > p { color: #fff !important; }
.reveal .flow .stage.program code { color: #fff; background: rgba(255, 255, 255, 0.14); }

.reveal .bus {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 26px;
  padding: 16px 22px;
  margin-top: 30px;
  background: var(--o-primary);
  border-radius: 12px;
}

.reveal .bus::before {
  content: 'What the system announces as the case moves';
  position: absolute;
  top: -30px;
  left: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--o-muted);
}

.reveal .bus .evt { font-family: var(--font-sans); font-size: 16px; font-weight: 600; color: var(--o-on-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reveal .bus .evt::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--o-accent); vertical-align: 1px; }
.reveal .bus .evt.sync { color: var(--o-on-deep-muted); font-family: var(--font-sans); font-style: normal; }
.reveal .bus .evt.sync::before { background: transparent; box-shadow: inset 0 0 0 2px var(--o-on-deep-muted); }

/* ─── Signed determination ───────────────────────────────────────────────── */

.reveal .det-figure { margin: 0; }

.reveal .det {
  position: relative;
  padding: 30px 34px 28px;
  background: var(--o-raised);
  border: 1px solid var(--o-border-soft);
  border-left: 5px solid var(--p-snap);
  border-radius: 14px;
  box-shadow: 0 34px 70px -40px rgba(3, 16, 24, 0.55);
}

.reveal .det-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.reveal .det-head .det-title { margin-left: auto; font-family: var(--font-mono); font-size: 14px; color: var(--o-muted); }
.reveal .det-status { padding: 4px 12px; font-size: 15px; font-weight: 700; border-radius: 999px; color: var(--o-success-text); background: var(--o-success-bg); }
.reveal .det-fields { display: grid; grid-template-columns: auto 1fr; gap: 9px 26px; margin: 0; }
.reveal .det-fields dt { font-family: var(--font-mono); font-size: 17px; font-weight: 500; color: var(--o-muted); }
.reveal .det-fields dd { margin: 0; font-family: var(--font-mono); font-size: 17px; font-weight: 700; color: var(--o-text); font-variant-numeric: tabular-nums; }
.reveal .det-sig { display: flex; align-items: center; gap: 16px; margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--o-border); }
.reveal .det-sig .seal { flex: none; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; font-family: var(--font-mono); font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--o-primary); background: var(--o-accent); border-radius: 50%; box-shadow: 0 0 0 5px rgba(236, 191, 68, 0.25); }
.reveal .det-sig code { display: block; font-size: 15px; background: none; padding: 0; color: var(--o-text); }
.reveal .det-sig small { display: block; margin-top: 4px; font-size: 15px; }
.reveal .det-caption { margin-top: 14px !important; font-size: 15px; color: var(--o-muted); }

/* ─── Event trail ────────────────────────────────────────────────────────── */

.reveal .trail { margin: 0; padding: 26px 30px 24px; background: var(--o-raised); border: 1px solid var(--o-border-soft); border-radius: 14px; box-shadow: var(--shadow-card); }
.reveal .trail figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; font-size: 14px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--o-muted); }
.reveal .trail figcaption .verified { padding: 3px 10px; font-size: 13px; letter-spacing: 0.5px; text-transform: none; color: var(--o-success-text); background: var(--o-success-bg); border-radius: 999px; }
.reveal .trail ol { position: relative; display: flex; flex-direction: column; }
.reveal .trail ol::before { content: ''; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; background: var(--o-border); }
.reveal .trail li { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 7px 0 7px 32px; }
.reveal .trail li::before { content: ''; position: absolute; left: 1px; top: 15px; width: 14px; height: 14px; border-radius: 50%; background: var(--o-raised); border: 3px solid var(--o-primary-hover); box-sizing: border-box; }
.reveal .trail li.snap::before { background: var(--p-snap); border-color: var(--p-snap); }
.reveal .trail li.medicaid::before { background: var(--p-medicaid); border-color: var(--p-medicaid); }
.reveal .trail li code { font-size: 17px; background: none; padding: 0; color: var(--o-text); font-weight: 700; }
.reveal .trail li.snap code { color: var(--p-snap); }
.reveal .trail li.medicaid code { color: var(--p-medicaid); }
.reveal .trail li span { font-family: var(--font-mono); font-size: 14px; color: var(--o-muted); white-space: nowrap; }

/* ─── Topology ───────────────────────────────────────────────────────────── */

.reveal .topo { display: grid; grid-template-columns: 1fr 300px; gap: 22px; }
.reveal .topo-main { display: flex; flex-direction: column; gap: 14px; }
.reveal .tier { padding: 14px 22px 16px; border-radius: 14px; background: var(--o-raised); border: 1px solid var(--o-border-soft); box-shadow: var(--shadow-card); }
.reveal .tier-label { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px !important; font-size: 14px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--o-muted); }
.reveal .tier-label span { font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; }

.reveal .tier-bff { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.reveal .tier-bff .tier-label { grid-column: 1 / -1; }
.reveal .bff { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: baseline; padding: 10px 16px; border-radius: 10px; background: var(--o-surface); }
.reveal .bff code { grid-row: span 2; align-self: center; font-size: 18px; font-weight: 700; color: #fff; background: var(--o-primary); padding: 6px 12px; }
.reveal .bff .who { font-size: 17px; font-weight: 700; color: var(--o-text); }
.reveal .bff .tech { font-size: 15px; color: var(--o-muted); }

.reveal .svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.reveal .svc-grid code { display: block; padding: 7px 0; text-align: center; font-size: 16px; color: var(--o-text); background: var(--o-surface); border: 1px solid var(--o-border-soft); border-radius: 8px; }
.reveal .svc-grid code.hub { color: #fff; background: var(--o-primary); border-color: var(--o-primary); }
/* The hub says what it is in text, not only in fill. */
.reveal .svc-grid code small { display: block; margin-top: 2px; font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: inherit; opacity: 0.85; }

.reveal .prog-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.reveal .prog { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 12px; color: #fff; border-radius: 10px; background: var(--p-snap); }
.reveal .prog.tanf { background: var(--p-tanf); }
.reveal .prog.medicaid { background: var(--p-medicaid); }
.reveal .prog.caps { background: var(--p-caps); }
.reveal .prog.wic { background: var(--p-wic); }
.reveal .prog b { font-size: 18px; color: #fff; }
.reveal .prog .db { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; opacity: 0.92; }
.reveal .prog .db::before { content: ''; flex: none; width: 13px; height: 16px; border-radius: 50% / 22%; background: rgba(255, 255, 255, 0.85); box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.18); }
.reveal .prog .restricted { align-self: flex-start; padding: 2px 8px; font-family: var(--font-mono); font-size: 13px; font-weight: 700; border-radius: 5px; background: rgba(0, 0, 0, 0.22); }

.reveal .topo-rail { display: flex; flex-direction: column; gap: 10px; }
.reveal .rail-item { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 12px 18px; border-radius: 12px; background: var(--o-raised); border: 1px solid var(--o-border-soft); box-shadow: var(--shadow-card); }
.reveal .rail-item b { font-size: 18px; }
.reveal .rail-item span { font-size: 15px; line-height: 1.35; color: var(--o-muted); }
.reveal .rail-item.accent { background: var(--o-primary); border-color: var(--o-primary); }
.reveal .rail-item.accent b { color: #fff; }
.reveal .rail-item.accent span { color: var(--o-on-deep-muted); }

/* ─── Deployment profiles ────────────────────────────────────────────────── */

.reveal .profiles { display: flex; flex-direction: column; gap: 22px; }
.reveal .profile-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.reveal .profile-pills code { font-size: 18px; padding: 8px 16px; color: var(--o-muted); background: var(--o-raised); border: 1px solid var(--o-border); border-radius: 999px; }
.reveal .profile-pills code.on { color: #fff; background: var(--o-primary); border-color: var(--o-primary); }

.reveal .profile-board { display: grid; grid-template-columns: 1.25fr 2fr; gap: 22px; }
.reveal .core { padding: 20px 26px 22px; border-radius: 14px; background: var(--o-primary); color: var(--o-on-deep); }
.reveal .core .col-over { color: var(--o-on-deep-muted); }
/* The list items size to their 15px chips, not to the deck's 28px line box. */
.reveal .core ul { display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; line-height: 1.4; }
.reveal .core li code { display: inline-block; font-size: 15px; color: #fff; background: rgba(255, 255, 255, 0.12); }
.reveal .core .core-note { margin-top: 16px !important; font-size: 17px; line-height: 1.45; color: var(--o-on-deep-muted); }

.reveal .toggles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.reveal .toggle { display: flex; flex-direction: column; justify-content: flex-start; gap: 10px; padding: 20px 18px; border-radius: 14px; border: 2px dashed var(--o-border); background: transparent; color: var(--o-muted); }
.reveal .toggle b { font-size: 20px; color: inherit; }
/* The deployed / not deployed state is text; the switch under it is decoration. */
.reveal .toggle .state { margin-top: auto; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: inherit; }
.reveal .toggle .switch { position: relative; margin-top: 6px; width: 52px; height: 28px; border-radius: 999px; background: var(--o-sunken); }
.reveal .toggle .switch::after { content: ''; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); }
.reveal .toggle.on { border-style: solid; color: #fff; background: var(--p-snap); border-color: var(--p-snap); box-shadow: var(--shadow-card); }
.reveal .toggle.on .switch { background: var(--o-accent); }
.reveal .toggle.on .switch::after { left: 28px; }

/* ─── Gates ──────────────────────────────────────────────────────────────── */

.reveal .gates { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.reveal .gate-group { padding: 20px 26px 20px; border-radius: 14px; background: var(--o-raised); border: 1px solid var(--o-border-soft); box-shadow: var(--shadow-card); }
.reveal .gate-group.first { grid-column: 1 / -1; display: grid; grid-template-columns: 380px 1fr; gap: 20px; align-items: center; padding: 16px 26px; background: var(--o-primary); border-color: var(--o-primary); }
.reveal .gate-group h3 { font-size: 22px; margin-bottom: 4px; }
.reveal .gate-group p { font-size: 16px; line-height: 1.4; color: var(--o-muted); margin-bottom: 10px !important; }
.reveal .gate-group.first h3 { color: #fff; }
.reveal .gate-group.first p { color: var(--o-on-deep-muted); margin-bottom: 0 !important; }
.reveal .gate-list { display: flex; flex-wrap: wrap; gap: 8px; }
.reveal .gate-list li { padding: 5px 12px; font-size: 16px; font-weight: 600; color: var(--o-text); background: var(--o-surface); border: 1px solid var(--o-border-soft); border-radius: 8px; }
.reveal .gate-group.first .gate-list li { color: #fff; background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.14); }

/* ─── Closing ────────────────────────────────────────────────────────────── */

.reveal section.closing { justify-content: center; }
.reveal section.closing .slide-content { flex: none; margin: 0; }
.reveal .closing-block { display: flex; flex-direction: column; gap: 44px; }
.reveal .closing-line { font-size: 50px; font-weight: 700; letter-spacing: -1.4px; line-height: 1.2; max-width: 1240px; color: var(--o-on-deep-muted); }
/* The closing line is the slide's heading; keep its muted first half on the dark ground. */
.reveal section.dark .closing-line { color: var(--o-on-deep-muted); }
.reveal .closing-line strong { display: block; color: #fff; }
.reveal .closing-offer { margin-top: -8px !important; font-size: 27px; font-weight: 600; line-height: 1.35; color: var(--o-on-deep); }
.reveal .closing-stat { display: flex; align-items: baseline; gap: 22px; }
.reveal .closing-stat .num { font-family: var(--font-mono); font-size: 96px; font-weight: 700; letter-spacing: -4px; line-height: 1; color: var(--o-accent); font-variant-numeric: tabular-nums; }
.reveal .closing-stat .label { font-size: 26px; font-weight: 600; line-height: 1.3; color: var(--o-on-deep); }
.reveal .closing-links { display: grid; grid-template-columns: 1fr 1.45fr 1fr; gap: 22px; max-width: 1240px; }
.reveal .closing-links > div { display: flex; flex-direction: column; gap: 10px; padding: 22px 26px; border-radius: 14px; background: rgba(10, 31, 26, 0.4); border: 1px solid var(--o-deep-line); }
.reveal .closing-links .col-over { margin: 0 !important; color: var(--o-accent); }
.reveal .closing-links span, .reveal .closing-links a { font-size: 19px; line-height: 1.4; color: var(--o-on-deep); }
.reveal .closing-links a { text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ─── Big-idea main slides ───────────────────────────────────────────────── */
/* The main line carries one idea per slide as a picture and a few words; the prose is in the
   speaker notes. `.ideas` is a row of pictured ideas: a graphic panel, a short label, a short line. */

.reveal .slides section.idea-slide .slide-content { justify-content: center; margin-top: 24px; }

.reveal .ideas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.reveal .ideas.four { grid-template-columns: repeat(4, 1fr); gap: 24px; }
.reveal .idea { display: flex; flex-direction: column; gap: 22px; margin: 0; }
.reveal .viz {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 300px;
  border-radius: 18px;
  background: var(--o-raised);
  border: 1px solid var(--o-border-soft);
  box-shadow: var(--shadow-card);
}
.reveal .ideas.four .idea .viz { height: 240px; }
.reveal .idea figcaption { display: flex; flex-direction: column; gap: 6px; padding: 0 4px; }
.reveal .idea figcaption b { font-size: 34px; font-weight: 700; letter-spacing: -0.8px; line-height: 1.15; color: var(--o-text); }
.reveal .ideas.four .idea figcaption b { font-size: 28px; letter-spacing: -0.5px; }
.reveal .idea figcaption span { font-size: 21px; line-height: 1.4; color: var(--o-muted); }

/* A glyph drawn from type: a figure, a numeral or a mark. */
.reveal .glyph { text-align: center; font-family: var(--font-mono); font-size: 120px; font-weight: 700; letter-spacing: -6px; line-height: 1; color: var(--o-primary); }
.reveal .glyph.sans { font-family: var(--font-sans); letter-spacing: -4px; }
.reveal .glyph small { display: block; margin-top: 10px; font-family: var(--font-sans); font-size: 17px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; text-align: center; color: var(--o-muted); }
.reveal .viz svg { width: 78%; height: 78%; overflow: visible; }
.reveal .viz .ln { fill: none; stroke: var(--o-primary); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.reveal .viz .ln-gold { fill: none; stroke: var(--o-accent); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.reveal .viz .fill { fill: var(--o-primary); }
.reveal .viz .fill-gold { fill: var(--o-accent); }
.reveal .viz .t { font-family: var(--font-sans); font-size: 26px; font-weight: 700; fill: var(--o-muted); letter-spacing: 1px; }

/* Rising bars: every change costs more than the last. */
.reveal .viz-bars { display: flex; align-items: flex-end; gap: 16px; height: 200px; }
.reveal .viz-bars i { display: block; width: 36px; border-radius: 6px 6px 2px 2px; background: var(--o-primary-hover); }
.reveal .viz-bars i:last-child { background: var(--o-error); }

/* Fifty identical systems: one tile per state. */
.reveal .fifty { display: grid; grid-template-columns: repeat(10, 1fr); gap: 7px; }
.reveal .fifty i { display: block; width: 28px; height: 28px; border-radius: 5px; background: var(--o-primary-hover); }
.reveal .fifty.small i { width: 12px; height: 12px; border-radius: 3px; background: var(--o-accent); }

/* One front door: a household applies once; each program decides; one answer returns. */
.reveal .door { display: grid; grid-template-columns: 1fr 70px 1.1fr 70px 1fr 70px 1fr; align-items: center; }
.reveal .door-node { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.reveal .door-node .viz { width: 100%; height: 260px; }
.reveal .door-node b { font-size: 30px; letter-spacing: -0.6px; line-height: 1.15; color: var(--o-text); }
.reveal .door-node > span { font-size: 19px; color: var(--o-muted); }
.reveal .door-node.hub .viz { background: var(--o-primary); border-color: var(--o-primary); }
.reveal .door-node.hub .viz svg { width: 50%; }
.reveal .door-node.hub .leaf { fill: #3a8070; }
.reveal .door-node.hub .leaf-center { fill: var(--o-accent); }
.reveal .door-node.hub .stem { fill: #5ab5a0; }
.reveal .door-arrow { height: 6px; margin: 0 12px 64px; border-radius: 3px; background: var(--o-primary-hover); position: relative; }
.reveal .door-arrow::after { content: ''; position: absolute; right: -4px; top: -9px; border: 12px solid transparent; border-left: 16px solid var(--o-primary-hover); border-right: 0; }
.reveal .door-programs { display: flex; flex-direction: column; justify-content: center; gap: 8px; width: 100%; height: 260px; }
.reveal .door-programs .chip.existing { color: var(--o-muted); background: transparent; border: 2px dashed var(--o-border); padding: 7px 0; }
.reveal .door-programs .chip { justify-content: center; padding: 9px 0; font-size: 22px; border-radius: 10px; color: #fff; }

/* Layers: every jurisdiction's policy directory sits on one shared system. */
.reveal .layers { display: flex; flex-direction: column; gap: 18px; }
.reveal .layer-states { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.reveal .layer-state { display: flex; flex-direction: column; gap: 8px; padding: 24px 28px; border-radius: 16px; background: var(--o-raised); border: 2px solid var(--o-primary-hover); box-shadow: var(--shadow-card); }
.reveal .layer-state code { align-self: flex-start; font-size: 20px; font-weight: 700; white-space: nowrap; }
.reveal .layer-state span { font-size: 18px; color: var(--o-muted); }
.reveal .layer-state.open { border-style: dashed; border-color: var(--o-border); background: transparent; box-shadow: none; }
.reveal .layer-state.open code { color: var(--o-muted); background: var(--o-sunken); }
.reveal .layer-base { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 30px 36px; border-radius: 16px; color: var(--o-on-deep); background: var(--o-primary); }
.reveal .layer-base b { font-size: 34px; letter-spacing: -0.6px; color: #fff; }
.reveal .layer-base span { font-size: 21px; color: var(--o-on-deep-muted); }

/* Takeaways: a few words each, marked by a leaf. */
.reveal .takeaways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.reveal .coexist + .takeaways { grid-template-columns: 1fr 1.1fr 1fr; gap: 28px; }
/* Under the centred how-it-fits cards, each takeaway centres under its card, its leaf inline. */
.reveal .coexist + .takeaways li { padding-left: 0; text-align: center; }
.reveal .coexist + .takeaways li::before { position: static; display: inline-block; margin-right: 12px; vertical-align: 0.05em; }
.reveal .takeaways li { position: relative; padding: 0 0 0 36px; font-size: 24px; font-weight: 700; line-height: 1.3; color: var(--o-text); }
.reveal .takeaways li::before { content: ''; position: absolute; left: 2px; top: 0.3em; width: 18px; height: 18px; border-radius: 0 80% 0 80%; background: var(--o-accent); }

/* Build once: development paid fifty times, against development paid once. */
.reveal .once { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.reveal .once-panel { display: flex; flex-direction: column; gap: 22px; padding: 30px 36px 32px; border-radius: 18px; background: var(--o-raised); border: 1px solid var(--o-border-soft); box-shadow: var(--shadow-card); }
.reveal .once-panel.old { background: #e8ece9; border-color: transparent; box-shadow: none; }
.reveal .once-panel .col-over { margin: 0 !important; }
.reveal .once-panel h3 { font-size: 34px; letter-spacing: -0.7px; }
.reveal .once-art { display: flex; align-items: flex-end; gap: 28px; height: 250px; }
.reveal .once-art .fifty i { width: 36px; height: 36px; background: var(--o-primary-hover); }
.reveal .once-big { display: flex; align-items: flex-end; justify-content: center; width: 170px; height: 170px; padding-bottom: 14px; box-sizing: border-box; border-radius: 12px; background: var(--o-primary); color: #fff; font-size: 17px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.reveal .once-art .fifty.small { align-self: flex-end; }
.reveal .once-art .fifty.small i { width: 14px; height: 14px; background: var(--o-accent); }
.reveal .once-key { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 18px; font-weight: 600; color: var(--o-muted); }
.reveal .once-key span { display: inline-flex; align-items: center; gap: 8px; }
.reveal .once-key span::before { content: ''; width: 14px; height: 14px; border-radius: 3px; background: var(--o-primary-hover); }
.reveal .once-key span.cfg::before { background: var(--o-accent); }

.reveal .rule-line { display: flex; align-items: baseline; justify-content: space-between; gap: 28px; padding: 22px 30px; border-left: 4px solid var(--o-accent); border-radius: 0 12px 12px 0; background: var(--o-raised); box-shadow: var(--shadow-card); }
.reveal .rule-line b { font-size: 27px; letter-spacing: -0.4px; line-height: 1.3; }
.reveal .rule-line code { flex: none; font-size: 16px; color: var(--o-muted); background: none; }

/* The same shape: fifty separate builds per domain, against one shared answer. */
.reveal .shape { display: flex; flex-direction: column; gap: 16px; }
.reveal .shape-row { display: grid; grid-template-columns: 1fr 240px 340px; gap: 40px; align-items: center; padding: 24px 34px; border-radius: 18px; background: var(--o-raised); border: 1px solid var(--o-border-soft); box-shadow: var(--shadow-card); }
.reveal .shape-name, .reveal .shape-answer { display: flex; flex-direction: column; gap: 4px; }
.reveal .shape-name b { font-size: 34px; letter-spacing: -0.7px; line-height: 1.1; }
.reveal .shape-name span { font-size: 17px; color: var(--o-muted); }
.reveal .shape .times small { display: block; margin-top: 6px; font-family: var(--font-sans); font-size: 15px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--o-muted); }
.reveal .shape .times { font-family: var(--font-mono); font-size: 72px; font-weight: 700; letter-spacing: -3px; line-height: 1; text-align: center; color: var(--o-muted); }
.reveal .shape-answer { padding: 16px 22px; border-radius: 12px; background: var(--o-primary); }
.reveal .shape-answer b { font-size: 28px; letter-spacing: -0.5px; color: #fff; }
.reveal .shape-answer span { font-size: 16px; color: var(--o-on-deep-muted); }
.reveal .shape-answer.open { align-items: center; justify-content: center; min-height: 86px; box-sizing: border-box; background: transparent; border: 2px dashed var(--o-border); }
.reveal .shape-answer.open b { font-size: 40px; color: var(--o-muted); }


/* A worker's desk: time spent gathering facts and interpreting policy, against the time verified rules give back. */
.reveal .desk { display: flex; flex-direction: column; gap: 22px; }
.reveal .desk-row { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; }
.reveal .desk-label { font-size: 15px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--o-muted); }
.reveal .desk-bar { display: grid; grid-template-columns: 45fr 55fr; height: 92px; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card); }
.reveal .desk-bar span { display: flex; align-items: center; padding: 0 30px; font-size: 26px; font-weight: 700; letter-spacing: -0.4px; }
.reveal .desk-bar .facts { color: #fff; background: var(--o-primary-hover); }
.reveal .desk-bar .policy { color: var(--o-error-text); background: var(--o-error-bg); }
.reveal .desk-bar .freed { color: var(--o-primary); background: var(--o-accent); }
.reveal .gains-label { margin: 6px 0 -14px 328px !important; }
.reveal .gains { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-left: 328px; }
.reveal .gain { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 24px 30px; border-radius: 16px; background: var(--o-raised); border: 1px solid var(--o-border-soft); box-shadow: var(--shadow-card); }
.reveal .gain .chip { font-size: 17px; }
.reveal .gain b { font-size: 36px; letter-spacing: -0.8px; line-height: 1.1; }
.reveal .gain > span:last-child { font-size: 19px; color: var(--o-muted); }


/* Where a determination can go wrong: inputs, process, outcome. The worker owns the first; proof closes the other two. */
.reveal .fail-label { margin: 0 !important; }
.reveal .fail-path { display: grid; grid-template-columns: 1fr 64px 1fr 64px 1fr; align-items: center; }
.reveal .fail-stage { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px 26px 28px; text-align: center; border-radius: 18px; background: var(--o-raised); border: 1px solid var(--o-border-soft); box-shadow: var(--shadow-card); }
.reveal .fail-stage .viz { width: 100%; height: 170px; background: none; border: 0; box-shadow: none; }
.reveal .fail-stage .viz svg { height: 100%; }
.reveal .stage-over { font-size: 15px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--o-muted); }
.reveal .fail-stage h3 { font-size: 34px; letter-spacing: -0.7px; }
.reveal .fail-badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px !important; padding: 10px 22px; font-size: 21px; font-weight: 700; border-radius: 999px; color: var(--o-success-text); background: var(--o-success-bg); }
.reveal .fail-badge::before { content: ''; width: 14px; height: 8px; margin-top: -4px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(-45deg); }
.reveal .fail-stage.worker { border: 2px solid var(--o-accent); }
.reveal .fail-stage.worker .fail-badge { color: var(--o-primary); background: var(--o-accent); }
.reveal .fail-stage.worker .fail-badge::before { width: 12px; height: 12px; margin-top: 0; border: 0; border-radius: 50%; transform: none; background: var(--o-primary); }
.reveal .fail-arrow { height: 6px; margin: 0 14px; border-radius: 3px; background: var(--o-primary-hover); position: relative; }
.reveal .fail-arrow::after { content: ''; position: absolute; right: -4px; top: -9px; border: 12px solid transparent; border-left: 16px solid var(--o-primary-hover); border-right: 0; }

/* How proof is possible: many calculations that each end, against one that may not. */
.reveal .how { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.reveal .how-panel { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px 34px 30px; border-radius: 18px; background: var(--o-raised); border: 1px solid var(--o-border-soft); box-shadow: var(--shadow-card); }
.reveal .how-panel.old { background: #e8ece9; border-color: transparent; box-shadow: none; }
.reveal .how-panel .col-over { margin: 0 !important; }
.reveal .how-panel h3 { font-size: 30px; letter-spacing: -0.6px; }
.reveal .how-art { align-self: stretch; height: 250px; }
.reveal .how-art svg { width: 100%; height: 100%; overflow: visible; }
.reveal .how-paths path { fill: none; stroke: var(--o-primary-hover); stroke-width: 3; }
.reveal .how-ends circle { fill: var(--o-success); }
.reveal .how-loop { fill: none; stroke: #8a9c94; stroke-width: 4; stroke-linecap: round; }
.reveal .how-loop.fade { stroke-dasharray: 2 10; }
.reveal .how-start { fill: var(--o-primary); }
.reveal .fail-badge.no { color: var(--o-error-text); background: var(--o-error-bg); }
.reveal .fail-badge.no::before { width: 14px; height: 3px; margin-top: 0; border: 0; transform: none; background: currentColor; }

/* How it fits: an existing system and Canopy side by side, with applications moving both ways. */
.reveal .coexist { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 28px; align-items: center; }
.reveal .sys { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 28px 32px; text-align: center; border-radius: 18px; background: var(--o-raised); border: 1px solid var(--o-border-soft); box-shadow: var(--shadow-card); }
.reveal .sys .viz { width: 100%; height: 170px; background: none; border: 0; box-shadow: none; }
.reveal .sys .viz svg { height: 100%; }
.reveal .sys .col-over { margin: 8px 0 0 !important; }
.reveal .sys h3 { font-size: 32px; letter-spacing: -0.6px; }
.reveal .sys.existing { background: transparent; border: 2px dashed var(--o-border); box-shadow: none; }
.reveal .sys.canopy { background: var(--o-primary); border-color: var(--o-primary); }
.reveal .sys.canopy .col-over { color: var(--o-on-deep-muted); }
.reveal .sys.canopy h3 { color: #fff; }
.reveal .sys.canopy .leaf { fill: #3a8070; }
.reveal .sys.canopy .leaf-center { fill: var(--o-accent); }
.reveal .sys.canopy .stem { fill: #5ab5a0; }
.reveal .handoff { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.reveal .handoff svg { width: 100%; height: 120px; overflow: visible; }
.reveal .handoff .ln { fill: none; stroke: var(--o-primary); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.reveal .handoff .ln-gold { fill: none; stroke: var(--o-accent); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.reveal .handoff b { font-size: 30px; letter-spacing: -0.6px; line-height: 1.2; }
.reveal .handoff span { font-size: 19px; color: var(--o-muted); }

/* Line breaks: headlines and short labels balance their lines; body text avoids a single stranded word. */
.reveal h2, .reveal .hero-tagline, .reveal .idea figcaption b, .reveal .idea figcaption span, .reveal .takeaways li { text-wrap: balance; }
.reveal .slides p, .reveal .slides li, .reveal .law-auth, .reveal .bff span { text-wrap: pretty; }

/* ─── Fragments and motion ───────────────────────────────────────────────── */

.reveal .fragment { transition-duration: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  .reveal .slides section, .reveal .fragment, .deck-brand { transition: none !important; }
}

/* ─── Print (?print-pdf) ─────────────────────────────────────────────────── */

html.print-pdf .deck-brand { display: none; }
