/* ═══════════════════════════════════════════════════════════════
   deck.css — presentation engine (layout, transitions, components)
   Fonts declared in talk's style.css, loaded before this file.
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after {
  box-sizing: border-box; margin: 0; padding: 0;
  transition: background 0.3s, background-color 0.3s, border-color 0.3s, color 0.3s;
}

:root {
  /* Dark theme — softened to reduce halation in low-light environments.
     Lifted from near-black (#0a0e1a) to a richer dark navy (#12172a).
     Contrast ratios maintained; pure black avoided throughout. */
  --bg:             #12172a;
  --surface:        #1a2035;
  --surface2:       #212840;
  --border:         #2a3a55;
  --accent:         #0ea5e9;
  --accent2:        #6366f1;
  --accent3:        #10b981;
  --warn:           #f59e0b;
  --danger:         #ef4444;
  --text:           #e2e8f0;
  --text-secondary: #94a3b8;
  --muted:          #64748b;
  --indigo:         #818cf8;
  --code-bg:        #141a2e;
  --code-text:      #7dd3fc;

  /* ── Type scale — edit here to resize the whole deck ── */
  --text-xs:   0.8rem;
  --text-sm:   0.9rem;
  --text-base: 1rem;
  --text-md:   1.1rem;
  --text-lg:   1.2rem;
  --text-xl:   1.35rem;
}

/* ── Light theme token overrides ── */
[data-theme="light"] {
  --bg:             #f1f5f9;
  --surface:        #ffffff;
  --surface2:       #e8edf2;
  --border:         #94a3b8;
  --text:           #0f172a;
  --text-secondary: #334155;   /* darker — was #475569 */
  --muted:          #475569;   /* darker — was #94a3b8 */
  --code-bg:        #e2e8f0;
  --code-text:      #0369a1;
  --indigo:         #4338ca;   /* darker indigo */
  /* Darker variants for WCAG AA on white/light surfaces */
  --accent:         #0369a1;
  --accent2:        #4f46e5;
  --accent3:        #047857;
  --warn:           #b45309;
  --danger:         #b91c1c;
}

/* Light theme: callout boxes — bump alpha for visibility on white */
[data-theme="light"] .box-accent {
  background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(99,102,241,0.12));
  border-color: rgba(14,165,233,0.45);
}
[data-theme="light"] .box-warn   { background: rgba(245,158,11,0.12);  border-color: rgba(245,158,11,0.35); }
[data-theme="light"] .box-danger { background: rgba(239,68,68,0.10);   border-color: rgba(239,68,68,0.35); }
[data-theme="light"] .box-purple { background: rgba(99,102,241,0.10);  border-color: rgba(99,102,241,0.35); }

/* Mechanism slide footer — surface2 gives clean separation on white */
[data-theme="light"] .mech-holds {
  background: var(--surface2);
  border-color: var(--border);
}

/* Light theme: card shadow for bg/surface separation */
[data-theme="light"] .card,
[data-theme="light"] .vibe-panel,
[data-theme="light"] .chapter-card,
[data-theme="light"] .feature-panel,
[data-theme="light"] .finding-card,
[data-theme="light"] .stat-card { box-shadow: 0 1px 4px rgba(0,0,0,0.08); }

/* Light theme: overlay elements */
[data-theme="light"] #num-jump {
  background: rgba(255,255,255,0.96);
  color: var(--accent);
}
[data-theme="light"] #overview-backdrop { background: rgba(15,23,42,0.35); }
[data-theme="light"] #overview-panel    { background: var(--surface); }

/* Light theme: part button active — reduce saturation */
[data-theme="light"] .part-btn.active { background: rgba(3,105,161,0.12); }

/* Light theme: fix hardcoded pale colours in components */

/* Chat bubbles — ai line was #a5b4fc (invisible on white) */
[data-theme="light"] .chat-ai  { color: #3730a3; background: rgba(79,70,229,0.10); }
[data-theme="light"] .chat-user { background: rgba(3,105,161,0.08); }

/* .woty-quote, .arthropod-quote, any #94a3b8 / #c4b5fd hardcodes in slides */
[data-theme="light"] p,
[data-theme="light"] .vibe-ai,
[data-theme="light"] .woty-quote { color: var(--text-secondary); }

/* slot machine / danger box text was #fca5a5 — replace with readable dark red */
[data-theme="light"] .box-danger,
[data-theme="light"] .box-danger * { color: #991b1b; }

/* arthropod quote box */
[data-theme="light"] .arthropod-quote blockquote { color: #3730a3; }
[data-theme="light"] .arthropod-quote cite { color: var(--muted); }

/* file-list text */
[data-theme="light"] .file-list { color: var(--text-secondary); }

/* status badges — background tints readable on light */
[data-theme="light"] .status-ok  { background: rgba(4,120,87,0.12);  color: #047857; }
[data-theme="light"] .status-bad { background: rgba(185,28,28,0.10); color: #b91c1c; }

/* .pro / .con are already token-based, just verify */
[data-theme="light"] .con { color: var(--danger); }
[data-theme="light"] .pro { color: var(--accent3); }

/* tag pills — bump alpha */
[data-theme="light"] .tag-blue   { background: rgba(3,105,161,0.10);   color: #0369a1; border-color: rgba(3,105,161,0.3); }
[data-theme="light"] .tag-purple { background: rgba(79,70,229,0.10);   color: #4338ca; border-color: rgba(79,70,229,0.3); }
[data-theme="light"] .tag-green  { background: rgba(4,120,87,0.10);    color: #047857; border-color: rgba(4,120,87,0.3); }
[data-theme="light"] .tag-warn   { background: rgba(180,83,9,0.10);    color: #b45309; border-color: rgba(180,83,9,0.3); }

/* ── Dark mode: lift messenger/chat bubble bg for contrast (F30) ── */
.demo-bubble.aidlc,
.chat-ai {
  background: var(--surface2); /* default = dark theme */
}
[data-theme="light"] .demo-bubble.aidlc { background: #f1f5f9; color: #0f172a; border: 1px solid var(--border); }
[data-theme="light"] .demo-bubble.user {
  background: rgba(3,105,161,0.10);
  color: #0369a1;
  border: 1px solid rgba(3,105,161,0.25);
}
[data-theme="light"] .chat-ai           { background: rgba(79,70,229,0.10); color: #3730a3; }

html, body {
  width: 100%; height: 100%;
  font-size: 17px;
  background: var(--bg);
  color: var(--text);
  font-family: 'AllianzNeo', 'Segoe UI', system-ui, -apple-system, sans-serif;
  overflow: hidden;
}

/* ── Side strips ── */
:root {
  --strip-left: 80px;   /* left nav strip width */
}

/* ── Deck container — inset on the left only ── */
#deck {
  position: fixed;
  top: 6px; /* below progress bar */
  left: var(--strip-left);
  right: 0;
  bottom: 0;
  /* allow vertical scroll for tall slide content */
  overflow-y: auto;
  overflow-x: hidden;
}

/* ── Slide base ── */
.slide {
  position: absolute;
  inset: 0;
  /* min-height lets the slide grow taller than the viewport */
  min-height: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 5vh 4vw 10vh;
  transform-origin: center center;
  opacity: 0;
  transform: translateX(60px);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
  will-change: opacity, transform;
}
.slide.active { opacity: 1; transform: translateX(0); pointer-events: all; }
.slide.exit   { opacity: 0; transform: translateX(-60px); }

/* ── Staggered fade-in for child elements ── */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease, transform 0.4s ease; }
.slide.active .fade-in                { opacity: 1; transform: translateY(0); }
.slide.active .fade-in:nth-child(1)   { transition-delay: 0.05s; }
.slide.active .fade-in:nth-child(2)   { transition-delay: 0.15s; }
.slide.active .fade-in:nth-child(3)   { transition-delay: 0.25s; }
.slide.active .fade-in:nth-child(4)   { transition-delay: 0.35s; }
.slide.active .fade-in:nth-child(5)   { transition-delay: 0.45s; }
.slide.active .fade-in:nth-child(6)   { transition-delay: 0.55s; }

/* ── Progress bar (starts after left rail to avoid bleed over home icon) ── */
#progress-bar {
  position: fixed; top: 0; left: var(--strip-left); height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transition: width 0.4s ease;
  z-index: 90; /* below strip-right so the top of the rail sits clean */
  pointer-events: none;
}

/* ════════════════════════════════════════════
   LEFT NAV STRIP
   ════════════════════════════════════════════ */

/* Ghost strip-left no longer needed */
#strip-left { display: none; }

#strip-right {
  position: fixed; top: 6px; left: 0;
  width: var(--strip-left); height: calc(100% - 6px);
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between;
  padding: 10px 0 14px;
  z-index: 100;
  border-right: 1px solid var(--border);
}

/* Top: home + divider + part jump */
.strip-top {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; width: 100%;
}

#home-btn {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 4px; width: calc(100% - 16px);
  text-decoration: none; font-size: var(--text-lg); line-height: 1;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  color: var(--muted);
}
#home-btn:hover,
#home-btn:focus-visible { background: var(--surface2); border-color: var(--accent); color: var(--accent); outline: none; }

/* Part jump */
#part-jump {
  display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 0 8px;
}
.part-btn {
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 4px; cursor: pointer; width: 100%;
  transition: background 0.2s, border-color 0.2s;
}
.part-btn:hover,
.part-btn:focus-visible { background: var(--surface2); border-color: var(--accent); outline: none; }
.part-btn.active        { border: 2px solid var(--accent); background: rgba(14,165,233,0.2); }
.part-btn-label  { font-size: var(--text-base); font-weight: 700; color: var(--accent); }
.part-btn-title  { display: none; }

/* Divider */
.strip-divider {
  width: 60%; height: 1px; background: var(--border); flex-shrink: 0;
}

/* Part button flyout-open state */
.part-btn.flyout-open {
  border: 2px solid var(--accent2);
  background: rgba(99,102,241,0.15);
}

/* ── Part slide flyout ── */
#part-flyout {
  position: fixed;
  width: 240px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  padding: 8px 0;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
#part-flyout.open {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}

.flyout-heading {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  padding: 6px 14px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
}

.flyout-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  padding: 7px 14px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}
.flyout-item:hover        { background: var(--surface2); }
.flyout-item.active       { background: rgba(14,165,233,0.1); }
.flyout-item.active .flyout-num   { color: var(--accent); }
.flyout-item.active .flyout-label { color: var(--text); font-weight: 600; }

.flyout-num {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--muted);
  min-width: 22px;
  flex-shrink: 0;
}
.flyout-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-transform: capitalize;
  line-height: 1.4;
}

/* Bottom: prev + next + theme + hint */
.strip-bottom {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}

#btn-prev,
#btn-next {
  writing-mode: vertical-rl;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 12px 9px; border-radius: 8px;
  cursor: pointer; font-size: var(--text-sm);
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap; letter-spacing: 0.04em;
  /* Both labels read top-to-bottom (same direction) — arrow glyph indicates direction */
  transform: rotate(0deg);
}
#btn-prev:hover, #btn-prev:focus-visible,
#btn-next:hover, #btn-next:focus-visible { background: var(--surface2); border-color: var(--accent); outline: none; }
#btn-prev:disabled,
#btn-next:disabled { opacity: 0.25; cursor: default; }

/* Theme toggle — match sizing/treatment of other rail buttons (F63) */
#theme-toggle {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 4px; cursor: pointer;
  font-size: var(--text-lg); line-height: 1;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  width: calc(100% - 16px); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
}
#theme-toggle:hover,
#theme-toggle:focus-visible { background: var(--surface2); border-color: var(--accent); color: var(--accent); outline: none; }

/* Counter — hidden; hint visible */
#counter { display: none; }
#overview-hint {
  font-size: var(--text-xs); color: var(--muted);
  writing-mode: vertical-rl; letter-spacing: 0.04em; opacity: 0.5;
}
#overview-hint kbd {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 4px; padding: 2px 4px; font-size: var(--text-xs);
  writing-mode: horizontal-tb;
}

/* ── Number jump overlay ── */
#num-jump {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(10,14,26,0.92); border: 1px solid var(--accent);
  border-radius: 12px; padding: 20px 40px;
  font-size: 2rem; font-weight: 700; color: var(--accent);
  letter-spacing: 0.05em; z-index: 200;
  opacity: 0; pointer-events: none;
  transition: opacity 0.15s;
}
#num-jump.visible { opacity: 1; }

/* ── Overview panel ── */
#overview-backdrop {
  position: fixed; inset: 0;
  background: rgba(10,14,26,0.7);
  z-index: 150; opacity: 0; pointer-events: none;
  transition: opacity 0.25s;
}
#overview-backdrop.open { opacity: 1; pointer-events: all; }

#overview-panel {
  position: fixed; top: 0; right: -420px; width: 400px; height: 100%;
  background: var(--surface); border-left: 1px solid var(--border);
  z-index: 160; overflow-y: auto; padding: 24px 20px 80px;
  transition: right 0.3s ease;
}
#overview-panel.open { right: 0; }

.overview-part-heading {
  font-size: var(--text-xs); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent); margin: 20px 0 10px;
}
.overview-part-heading:first-child { margin-top: 0; }

.overview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

.overview-item {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 10px; cursor: pointer; text-align: left;
  transition: background 0.15s, border-color 0.15s;
}
.overview-item:hover       { background: rgba(14,165,233,0.08); border-color: var(--accent); }
.overview-item.active      { background: rgba(14,165,233,0.15); border-color: var(--accent); }
.overview-num  { font-size: var(--text-sm); font-weight: 700; color: var(--accent); min-width: 24px; }
.overview-id   { font-size: var(--text-xs); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Dot navigation — hidden (replaced by part jump) ── */
#dot-nav { display: none; }

/* ═══════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════ */
h1 { font-size: clamp(2rem,   4vw,  3.5rem); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(1.4rem, 2.8vw, 2.4rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1rem,   1.8vw, 1.5rem); font-weight: 600; }
p  { font-size: clamp(0.85rem,1.4vw, 1.1rem); line-height: 1.65; color: var(--text-secondary); }

.part-label {
  /* F60: slightly bolder & wider tracking for projector legibility */
  font-size: var(--text-md); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px; font-weight: 700;
}
.slide-title { text-align: center; margin-bottom: 6px; }
.subtitle    { font-size: clamp(1rem, 1.8vw, 1.5rem); color: var(--muted); margin-top: 12px; font-weight: 400; }

/* ═══════════════════════════════
   ATOMS / SHARED COMPONENTS
   ═══════════════════════════════ */

/* Tag pills */
.tag {
  display: inline-block; padding: 5px 16px; border-radius: 100px;
  font-size: var(--text-sm); font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; margin: 4px;
}
.tag-blue   { background: rgba(14,165,233,0.15); color: var(--accent);  border: 1px solid rgba(14,165,233,0.3); }
.tag-purple { background: rgba(99,102,241,0.15); color: var(--indigo);  border: 1px solid rgba(99,102,241,0.3); }
.tag-green  { background: rgba(16,185,129,0.15); color: var(--accent3); border: 1px solid rgba(16,185,129,0.3); }
.tag-warn   { background: rgba(245,158,11,0.15); color: var(--warn);    border: 1px solid rgba(245,158,11,0.3); }

/* Code block */
.code-block {
  background: var(--code-bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 16px;
  font-family: 'Cascadia Code', 'JetBrains Mono', 'Fira Code', monospace;
  font-size: var(--text-base); color: var(--code-text); line-height: 1.6; white-space: pre;
}
.code-block .cursor { animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Pro / Con lines */
.pro { color: var(--accent3); font-size: var(--text-md); }
.con { color: var(--danger);  font-size: var(--text-md); }
.pro-con { display: flex; flex-direction: column; gap: 6px; }

/* Section title */
.section-title {
  font-size: var(--text-base); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--muted); margin-bottom: 10px;
}

/* Generic card */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 22px; transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }

/* Callout boxes */
.box-accent  { background: linear-gradient(135deg,rgba(14,165,233,0.08),rgba(99,102,241,0.08)); border: 1px solid rgba(14,165,233,0.25); border-radius: 12px; padding: 18px 24px; }
.box-warn    { background: rgba(245,158,11,0.07);  border: 1px solid rgba(245,158,11,0.2);  border-radius: 10px; padding: 14px 20px; }
.box-danger  { background: rgba(239,68,68,0.06);   border: 1px solid rgba(239,68,68,0.2);   border-radius: 10px; padding: 14px 20px; }
.box-purple  { background: rgba(99,102,241,0.07);  border: 1px solid rgba(99,102,241,0.2);  border-radius: 10px; padding: 14px 20px; }

/* Big number (transition slides) */
.big-number {
  font-size: clamp(4rem, 10vw, 9rem); font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.divider-line {
  width: 80px; height: 3px; margin: 28px auto;
  background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 2px;
}

/* Presenter info */
.presenter-info { margin-top: 40px; font-size: var(--text-md); color: var(--muted); }
.presenter-info span { display: block; margin: 4px 0; }

/* Chat bubbles */
.chat-user { background: rgba(14,165,233,0.1); border: 1px solid rgba(14,165,233,0.2); border-radius: 8px; padding: 10px 14px; color: var(--accent); font-size: var(--text-md); }
.chat-ai   { background: rgba(99,102,241,0.1); border: 1px solid rgba(99,102,241,0.2); border-radius: 8px; padding: 10px 14px; color: var(--indigo); font-size: var(--text-md); }
.chat-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; font-weight: 700; }

/* File list */
.file-list { font-family: monospace; font-size: var(--text-base); color: var(--text-secondary); line-height: 1.8; }
.file-list span { display: block; }
.file-list .new { color: var(--accent3); }

/* Status badges */
.status-ok  { display:inline-block; padding:3px 9px; border-radius:4px; font-size:var(--text-sm); font-weight:600; background:rgba(16,185,129,0.15); color:var(--accent3); }
.status-bad { display:inline-block; padding:3px 9px; border-radius:4px; font-size:var(--text-sm); font-weight:600; background:rgba(239,68,68,0.15);  color:var(--danger); }

/* ═══════════════════════════════════════════════════════════════
   PROJECTOR-LEGIBILITY PATCHES (v13 proposal — F32, F33, F45, F59)
   ═══════════════════════════════════════════════════════════════ */

/* F33 — Demo progress dots: bolder glyphs, bigger active state */
.demo-step              { font-size: var(--text-sm); font-weight: 600; padding: 5px 12px; }
.demo-step.done         { color: var(--muted); font-weight: 500; }
.demo-step.pending      { color: var(--muted); opacity: 0.6; }
.demo-step.active       { font-weight: 800; font-size: var(--text-md); letter-spacing: 0.02em; }

/* Light theme: remove opacity suppression — muted token handles contrast */
[data-theme="light"] .demo-step.pending,
[data-theme="light"] .demo-step.done { opacity: 1; }

/* F32 — Lift monospace blocks inside AIDLC bubbles for back-row legibility */
.demo-bubble.aidlc      { font-size: var(--text-md); line-height: 1.65; }
.demo-bubble.aidlc .heading,
.demo-bubble.aidlc .filename { font-size: var(--text-md); }

/* F45 — Dark mode inline code spans */
code { color: var(--accent); background: rgba(14,165,233,0.08); padding: 1px 4px; border-radius: 3px; }
[data-theme="light"] code { color: #0369a1; background: rgba(3,105,161,0.10); }

/* AIDLC file reference highlight — .aidlc-file wraps spec artefact filenames in prose bubbles */
.aidlc-file {
  color: var(--accent3);
  background: rgba(16,185,129,0.10);
  padding: 1px 5px;
  border-radius: 3px;
  font-family: 'Cascadia Code', 'JetBrains Mono', 'Fira Code', monospace;
  font-size: 0.92em;
}
[data-theme="light"] .aidlc-file {
  color: #047857;
  background: rgba(4,120,87,0.09);
}

/* F59 — Demo role emoji avatars: pill background so silhouette survives dark render stacks */
.demo-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface2); border: 1px solid var(--border);
  font-size: var(--text-md);
}

/* F57 — Slide 13 italic-grey teaser: one notch bigger and higher-contrast */
.teaser-line {
  font-size: var(--text-sm); color: var(--text-secondary);
  font-style: italic; margin-top: 8px;
}

/* F56 — Slide 68 descender breathing room */
.fp-role-name { padding-block: 4px; }

/* ═══════════════════════════════════════════════════════════════
   LINK AFFORDANCE (v15 proposal — F76, F77)
   Links inside cards / bold text / plain paragraphs must show the
   underline + accent so audience can tell they're clickable.
   ═══════════════════════════════════════════════════════════════ */
.slide a,
.slide strong a,
.slide .card a,
.slide .arthropod-quote a,
.slide cite a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 0.2s, border-bottom-color 0.2s;
}
.slide a:hover,
.slide a:focus-visible {
  color: var(--accent2);
  border-bottom-color: var(--accent2);
}
/* Light theme: stronger link blue for WCAG AA */
[data-theme="light"] .slide a { color: #0369a1; }
[data-theme="light"] .slide a:hover,
[data-theme="light"] .slide a:focus-visible { color: #0c4a6e; }

/* F82/F83 — Slide 17 red/pink and italic-quote contrast bumps */
[data-theme="light"] .evidence-card.red,
[data-theme="light"] .evidence-model,
[data-theme="light"] .evidence-model * { color: #991b1b; }
[data-theme="light"] .theorem-footer,
[data-theme="light"] .theorem-quote { color: #334155; }
