/* ═══════════════════════════════════════════════════════════════
   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; }

/* ══ Introduction to AIDLC — talk overrides ══
   Goal: visually looks like a PPT presentation — everything fits
   within a 14-inch screen (1512×982 viewport). Bigger type, no
   overflow. Strict talk density budget.
   ══════════════════════════════════════════════════════════════ */

/* ══ Introduction to AIDLC — type scale guideline ══
   Talk deck at 1512×982 projector scale. Every value is one step
   larger than the Journey publication defaults.

   Token        Value     Use for
   --text-xs    1rem      Chrome/nav UI only — never slide content
   --text-sm    1.1rem    Minimum content (captions, attribution, sub-labels)
   --text-base  1.25rem   Secondary body (supporting text, item descriptions)
   --text-md    1.4rem    Primary body (card body, chat bubbles, callout body)
   --text-lg    1.6rem    Section titles, card titles, role labels
   --text-xl    1.85rem   Major callouts, bridge lines, slide-level emphasis
   h2 (slide title) → clamp(2rem, 3.2vw, 2.8rem)
   h1 (title slide) → clamp(2.8rem, 4.5vw, 4rem)
   ══════════════════════════════════════════════════ */

:root {
  --text-xs:   1rem;
  --text-sm:   1.1rem;
  --text-base: 1.25rem;
  --text-md:   1.4rem;
  --text-lg:   1.6rem;
  --text-xl:   1.85rem;
}

/* Hard overflow constraint — nothing bleeds outside the slide frame */
.slide {
  overflow: hidden;
}

/* Heading clamps — talk/projector scale */
h1 { font-size: clamp(2.8rem, 4.5vw, 4rem);  font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(2rem,   3.2vw, 2.8rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.4rem, 2vw,   2rem);   font-weight: 600; }

/* Base font-size floor */
body,
.slide { font-size: 1.25rem; }

/* ══ Introduction to AIDLC — PPT nav overrides ══
   Replaces left side strip with bottom-corner controls.
   Controls fade in on mouse activity; hidden at rest.
   ══════════════════════════════════════════════════ */

/* 1. Kill the side strip entirely */
#strip-right { display: none !important; }

/* 2. Bottom-corner nav container — three zones */
#ppt-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
#ppt-nav.visible {
  opacity: 1;
  pointer-events: all;
}

/* 3. Prev / Next buttons */
#ppt-prev,
#ppt-next {
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 20px;
  font-size: var(--text-sm);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s;
  letter-spacing: 0.03em;
}
#ppt-prev:hover, #ppt-next:hover {
  background: rgba(14,165,233,0.25);
  border-color: var(--accent);
}
#ppt-prev:disabled, #ppt-next:disabled {
  opacity: 0.25;
  cursor: default;
}

/* Light theme */
[data-theme="light"] #ppt-prev,
[data-theme="light"] #ppt-next {
  background: rgba(255,255,255,0.75);
  border-color: var(--border);
  color: var(--text);
}

/* 4. Slide counter — centred */
#ppt-counter {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  min-width: 60px;
  text-align: center;
}

/* 5. Theme toggle — sits right of counter, subtle */
#ppt-theme {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: var(--text-base);
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 4px 8px;
}
#ppt-theme:hover { opacity: 1; }

/* 6. Hide Part N labels — not needed for a talk */
.part-label { display: none !important; }

/* 7. Reclaim the left gutter that strip-right was occupying */
#deck {
  left: 0 !important;
  width: 100% !important;
}

/* ══ F5: Allianz brand tokens — Introduction to AIDLC ══
   Light theme is default for this talk (Allianz brand: white bg / dark blue text).
   Purple/indigo completely removed per brand guide accessibility rules.
   4-color palette: #003781 text | #0096D6 accent | #F08000 warn | #D60073 danger
   ══════════════════════════════════════════════════════ */

/* Force light theme as default for this talk */
html { color-scheme: light; }
html:not([data-theme="dark"]) {
  --bg:             #FFFFFF;
  --surface:        #F4F7FA;
  --surface2:       #E8EFF6;
  --border:         #C8D8E8;
  --text:           #003781;
  --text-secondary: #1A4A8A;
  --muted:          #5A7A9A;
  --accent:         #0096D6;
  --accent2:        #0096D6;  /* F8: teal #007A8A merged → alias to --accent */
  --accent3:        #F08000;
  --warn:           #F08000;
  --danger:         #D60073;
  --indigo:         #0096D6;
  --code-bg:        #E8EFF6;
  --code-text:      #003781;
}

/* Dark theme — brand-aligned, no purple on dark bg per brand guide */
[data-theme="dark"] {
  --bg:             #001A40;
  --surface:        #002255;
  --surface2:       #002E6E;
  --border:         #1A4A8A;
  --text:           #FFFFFF;
  --text-secondary: #BDD4EC;
  --muted:          #7A9ABD;
  --accent:         #0096D6;
  --accent2:        #F08000;
  --accent3:        #007A8A;
  --warn:           #F08000;
  --danger:         #D60073;
  --indigo:         #0096D6;
  --code-bg:        #001230;
  --code-text:      #7DD3FC;
}

/* PPT nav buttons — light theme */
html:not([data-theme="dark"]) #ppt-prev,
html:not([data-theme="dark"]) #ppt-next {
  background: rgba(0,55,129,0.08);
  border-color: rgba(0,150,214,0.3);
  color: #003781;
}
html:not([data-theme="dark"]) #ppt-prev:hover,
html:not([data-theme="dark"]) #ppt-next:hover {
  background: rgba(0,150,214,0.15);
  border-color: #0096D6;
}

/* ══ VF1 T2 fixes — Introduction to AIDLC ══ */

/* 1. Nav bar pill contrast — raise button visibility against slide bg */
#ppt-prev, #ppt-next {
  background: rgba(255,255,255,0.10) !important;
  border: 1px solid rgba(255,255,255,0.30) !important;
}
html:not([data-theme="dark"]) #ppt-prev,
html:not([data-theme="dark"]) #ppt-next {
  background: rgba(0,55,129,0.10) !important;
  border: 1px solid rgba(0,150,214,0.40) !important;
}

/* 2. "Next →" disabled state — raise contrast so it's visible */
#ppt-prev:disabled, #ppt-next:disabled {
  opacity: 0.40 !important;
}

/* 3. Remove hyperlink underline on projected citations */
.slide a,
.slide cite a {
  text-decoration: none !important;
  border-bottom: none !important;
}

/* 4. Tag pills consistency — .tag-blue uses filled style */
/* F8: .tag-green rules removed — "Any role" tag eliminated from p1-s01-title.js */

/* 5. Card line-height — tighten cards across the deck */
.intro-silo-item,
.intro-vc-bubble,
.intro-sm-hickey-text,
.intro-cons-desc {
  line-height: 1.55 !important;
}

/* 6. "[2 hours later]" caption — raise size and contrast */
.intro-vc-final {
  font-size: var(--text-sm) !important;
  color: var(--text-secondary) !important;
  font-style: normal !important;
  font-weight: 500 !important;
}

/* 7. Quote block italic floor — prevent italic at sub-1rem */
.intro-sm-arthropod blockquote {
  font-size: var(--text-sm) !important;
  font-style: normal !important;
  font-weight: 450 !important;
}

/* 8. Byline contrast — raise sub-byline text on title slide */
.presenter-info span {
  color: #A8C0D8 !important;
}
html:not([data-theme="dark"]) .presenter-info span {
  color: #1A4A8A !important;
}

/* 9. Badge pill text — ensure white text inside pills on dark theme */
html:not([data-theme="dark"]) .tag {
  font-weight: 700 !important;
}
.tag-blue {
  color: #FFFFFF !important;
}
html:not([data-theme="dark"]) .tag-blue {
  color: var(--accent) !important;
}
/* F8: .tag-green color rules removed — "Any role" tag eliminated */

/* 10. Dev bubble — solid accent fill for legibility */
.intro-vc-bubble.dev {
  color: #FFFFFF !important;
  background: var(--accent) !important;
}
/* F8: .intro-sm-con #FF4DA6 override removed — card bg raised to var(--surface2) in p1-s04-slot-machine.js; var(--danger) achieves AA contrast on that surface */
.intro-sm-arthropod {
  background: rgba(0,150,214,0.06) !important;
}

/* 11+12: overrides removed — handled in slide JS */
