/* ═══════════════════════════════════════════════════
   EXIN AI Foundation — Slide Presentation Theme
   Built on shared.css design tokens.
   No frameworks. Just CSS that works.
   ═══════════════════════════════════════════════════ */

/* ── Slide-specific variables ────────────────────── */
:root {
  --slide-font-size: 18px;
  --strip-height: 48px;
}

/* ── Body ────────────────────────────────────────── */
body {
  margin: 0;
  overflow: hidden;
  background: var(--bg-primary);
}

/* ── Progress Strip ──────────────────────────────── */
.progress-strip {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--strip-height);
  background: var(--navy);
  display: flex;
  align-items: center;
  z-index: 100;
  padding: 0 var(--space-4);
  gap: var(--space-4);
  box-shadow: var(--shadow-md);
  font-family: var(--font-sans);
}

.progress-home {
  color: var(--gold);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-2) var(--space-3);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.progress-home:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--gold);
}

.progress-topics {
  display: flex;
  flex: 1;
  gap: 2px;
  justify-content: center;
  overflow-x: auto;
}

.progress-topic {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}

.progress-topic:hover {
  color: rgba(255,255,255,0.8);
}

.progress-topic.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  font-weight: 700;
}

.progress-topic.completed {
  color: rgba(255,255,255,0.6);
}

.progress-topic.completed::after {
  content: ' \2713';
  color: var(--gold);
  font-size: 0.8em;
}

.progress-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.slide-counter {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-xs);
  font-weight: 500;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.progress-strip .theme-toggle {
  position: static;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-md);
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--transition-fast);
}

.progress-strip .theme-toggle:hover {
  background: rgba(255,255,255,0.2);
  color: white;
}

/* ── Slide Viewport ──────────────────────────────── */
.slide-viewport {
  position: fixed;
  top: var(--strip-height);
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

/* ── Slide Base ──────────────────────────────────── */
.slide {
  display: none;
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: var(--space-10) var(--space-16);
  font-size: var(--slide-font-size);
  line-height: 1.6;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-primary);
}

.slide.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ALL slide children: full width, centered, no exceptions */
.slide > * {
  max-width: 1100px;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box;
  text-align: inherit;
}

/* Pill badges and icons: don't stretch, center themselves */
.slide > .topic-badge,
.slide > .badge-weight {
  width: auto !important;
  max-width: none;
  align-self: center;
}

/* ── Slide Type: Section Title ───────────────────── */
.slide[data-type="section-title"] {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  text-align: center;
}

.slide[data-type="section-title"] h1,
.slide[data-type="section-title"] h2,
.slide[data-type="section-title"] h3 {
  color: white;
}

.slide[data-type="section-title"] p {
  color: rgba(255,255,255,0.8);
}

.slide[data-type="section-title"] .topic-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-2) var(--space-4);
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
  width: auto !important;
}

.slide[data-type="section-title"] .badge-weight {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: var(--gold);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: 9999px;
  margin-left: var(--space-2);
  width: auto !important;
}

.slide[data-type="section-title"] .pace-hint {
  color: rgba(255,255,255,0.5);
  font-size: var(--text-sm);
  font-style: italic;
  margin-top: var(--space-4);
}

.slide[data-type="section-title"] .highlight-text {
  color: var(--gold);
  font-weight: 600;
}

/* ── Typography ──────────────────────────────────── */
.slide h1 {
  font-size: 2.4em;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: var(--space-4);
  line-height: 1.15;
}

.slide h2 {
  font-size: 1.6em;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 3px solid var(--gold);
}

.slide h3 {
  font-size: 1.2em;
  font-weight: 600;
  color: var(--navy-light);
  margin-bottom: var(--space-3);
}

.slide p {
  margin-bottom: var(--space-3);
  color: var(--text-secondary);
}

.slide strong {
  color: var(--navy);
  font-weight: 700;
}

.slide em {
  color: var(--gold-dark);
}

.slide ul, .slide ol {
  margin-left: 1.2em;
  margin-bottom: var(--space-4);
}

.slide li {
  margin-bottom: var(--space-2);
  color: var(--text-secondary);
}

.slide li::marker {
  color: var(--gold);
}

[data-theme="dark"] .slide h1,
[data-theme="dark"] .slide h2 { color: var(--text-primary); }
[data-theme="dark"] .slide h3 { color: var(--text-secondary); }
[data-theme="dark"] .slide strong { color: var(--text-primary); }
[data-theme="dark"] .slide h2 { border-bottom-color: var(--gold); }

/* ── Highlight text ──────────────────────────────── */
.highlight-text {
  color: var(--gold-dark);
  font-weight: 600;
}

[data-theme="dark"] .highlight-text {
  color: var(--gold);
}

/* ── Icon large ──────────────────────────────────── */
.icon-large {
  font-size: 3em;
  line-height: 1.2;
  margin-bottom: var(--space-3);
  text-align: center;
}

/* ── Slide Type: Grid ────────────────────────────── */
.slide[data-type="grid"] .grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.grid-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: all var(--transition-normal);
}

.grid-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.grid-card.highlight {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), var(--shadow-sm);
}

.grid-card-title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.05em;
  margin-bottom: var(--space-2);
}

.grid-card.highlight .grid-card-title {
  color: var(--gold-dark);
}

[data-theme="dark"] .grid-card.highlight .grid-card-title {
  color: var(--gold);
}

.grid-card-body {
  color: var(--text-secondary);
  font-size: 0.9em;
  line-height: 1.5;
}

/* ── Slide Type: Split ───────────────────────────── */
.slide[data-type="split"] .split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-top: var(--space-4);
}

@media (max-width: 768px) {
  .slide[data-type="split"] .split-layout { grid-template-columns: 1fr; }
}

/* ── Slide Type: Comparison ──────────────────────── */
.slide[data-type="comparison"] .comparison-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-6);
  align-items: start;
  margin-top: var(--space-4);
}

.vs-left, .vs-right {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.vs-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  font-weight: 800;
  color: var(--text-muted);
  align-self: center;
}

@media (max-width: 768px) {
  .slide[data-type="comparison"] .comparison-layout {
    grid-template-columns: 1fr;
  }
  .vs-divider { display: none; }
}

/* ── Slide Type: Quote ───────────────────────────── */
.slide[data-type="quote"] {
  text-align: center;
}

.quote-text {
  font-size: 1.5em;
  font-weight: 300;
  font-style: italic;
  color: var(--text-primary);
  max-width: 80%;
  line-height: 1.5;
  position: relative;
  padding: 0.5em 1em;
  margin: 0 auto;
}

.quote-text::before {
  content: '\201C';
  position: absolute;
  left: -0.3em;
  top: -0.2em;
  font-size: 3.5em;
  color: var(--gold);
  font-weight: 800;
  line-height: 1;
  opacity: 0.3;
}

.quote-source {
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.quote-source::before { content: '\2014\00a0'; }

/* ── Slide Type: Exam ────────────────────────────── */
.exam-q-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  margin-bottom: var(--space-4);
}

.exam-q-box h3 {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-light);
  margin-bottom: var(--space-3);
  font-weight: 700;
}

[data-theme="dark"] .exam-q-box {
  border-left-color: var(--accent);
}

[data-theme="dark"] .exam-q-box h3 {
  color: var(--accent);
}

.exam-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.exam-option {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-size: 0.95em;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.exam-option:hover {
  border-color: var(--accent);
  background: var(--bg-secondary);
  transform: translateX(4px);
}

.exam-option strong {
  color: var(--navy-light);
  font-weight: 700;
  margin-right: var(--space-2);
}

/* Answer reveal */
.exam-reveal {
  margin-top: var(--space-4);
}

.answer-toggle {
  background: var(--navy);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.answer-toggle:hover {
  background: var(--navy-light);
}

.exam-answer {
  display: none;
  margin-top: var(--space-4);
  background: var(--success-bg);
  border: 1px solid var(--success);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  color: var(--success);
  font-weight: 600;
}

.exam-answer.visible {
  display: block;
  animation: fadeIn 0.3s ease;
}

.exam-explanation {
  color: var(--text-secondary);
  font-weight: 400;
  font-style: italic;
  margin-top: var(--space-2);
  font-size: 0.9em;
}

/* ── Slide Type: Key Fact ────────────────────────── */
.slide[data-type="keyfact"] {
  text-align: center;
}

.slide[data-type="keyfact"] p {
  font-size: 1.5em;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.slide[data-type="keyfact"] strong {
  color: var(--gold-dark);
}

[data-theme="dark"] .slide[data-type="keyfact"] strong {
  color: var(--gold);
}

/* ── Slide Type: Memory Trick ────────────────────── */
.slide[data-type="memory"] {
  background: var(--highlight-bg);
  text-align: center;
  align-items: center;
}

[data-theme="dark"] .slide[data-type="memory"] {
  background: #1a1535;
}

.mnemonic {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2em;
  font-size: 1.5em;
  font-weight: 700;
  margin: var(--space-4) 0;
}

.mnemonic-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--navy-dark);
  font-weight: 800;
  width: 1.5em;
  height: 1.5em;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.mnemonic-word {
  display: block;
  font-size: 0.45em;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: var(--space-2);
  width: 100%;
}

/* ── Slide Type: Hero ────────────────────────────── */
.slide[data-type="hero"] {
  text-align: center;
}

/* ── Slide Type: Example ─────────────────────────── */
.slide[data-type="example"] {
  border-left: 4px solid var(--info);
}

/* ── Definition Cards ────────────────────────────── */
.def-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--navy-light);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-3);
  transition: border-color var(--transition-fast);
}

.def-card.highlight {
  border-left-color: var(--gold);
}

[data-theme="dark"] .def-card {
  border-left-color: var(--accent);
}

.def-term {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-light);
  margin-bottom: var(--space-2);
}

[data-theme="dark"] .def-term {
  color: var(--accent);
}

.def-text {
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.5;
}

/* ── Callout Boxes (extend shared.css) ───────────── */
.slide .callout {
  margin: var(--space-4) 0;
  width: 100%;
  box-sizing: border-box;
}

/* ── Timeline ────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2.5em;
  margin: var(--space-4) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.7em;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--navy), var(--gold));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: var(--space-5);
  padding-left: 1.5em;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2em;
  top: 0.3em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--gold);
  z-index: 1;
}

.timeline-item:nth-child(even)::before {
  background: var(--navy-light);
  box-shadow: 0 0 0 2px var(--navy-light);
}

.timeline-year {
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: var(--space-1);
}

[data-theme="dark"] .timeline-year { color: var(--gold); }

.timeline-item:nth-child(even) .timeline-year {
  color: var(--navy-light);
}

[data-theme="dark"] .timeline-item:nth-child(even) .timeline-year {
  color: var(--accent);
}

.timeline-event {
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Stakeholder Grid ────────────────────────────── */
.stakeholder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.stakeholder-grid > div {
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  border: 1px solid var(--border-color);
}

.sq-hh { background: var(--highlight-bg); border-color: var(--gold) !important; }
.sq-hh strong { color: var(--gold-dark); }
.sq-hl { background: var(--info-bg); }
.sq-hl strong { color: var(--info); }
.sq-lh { background: var(--success-bg); }
.sq-lh strong { color: var(--success); }
.sq-ll { background: var(--bg-secondary); }
.sq-ll strong { color: var(--text-muted); }

/* ── Two-Column Layout ───────────────────────────── */
.two-col {
  display: flex;
  gap: var(--space-8);
  align-items: flex-start;
}

.col { flex: 1; min-width: 0; }

@media (max-width: 768px) {
  .two-col { flex-direction: column; gap: var(--space-4); }
}

/* ── Tables ──────────────────────────────────────── */
.slide table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  margin: var(--space-4) 0;
}

.slide table th {
  background: var(--navy);
  color: white;
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 600;
  font-size: 0.9em;
}

.slide table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.slide table tr:nth-child(even) {
  background: var(--bg-secondary);
}

.slide table tr:hover {
  background: var(--highlight-bg);
}

.slide table tr:last-child td { border-bottom: none; }

/* ── Weight Bar ──────────────────────────────────── */
.weight-bar {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--navy), var(--gold));
  margin-top: var(--space-2);
}

/* ── Font Controls ───────────────────────────────── */
.font-controls {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  z-index: 100;
  background: var(--bg-card);
  padding: var(--space-2);
  border-radius: 9999px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.font-controls button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.font-controls button:hover {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

/* ── Badges ──────────────────────────────────────── */
.badge-weight {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: 9999px;
}

/* ── Animations ──────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide.active {
  animation: fadeIn 0.25s ease;
}

/* ═══════════════════════════════════════════════════
   INTERACTIVE CLASSROOM EXERCISES
   ═══════════════════════════════════════════════════ */

/* ── Trainer Hint (bottom bar on pre-exercise slides) ── */
.trainer-hint {
  background: var(--highlight-bg);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
  margin-top: var(--space-6);
  font-size: var(--text-sm);
  color: var(--gold-dark);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

[data-theme="dark"] .trainer-hint {
  color: var(--gold);
}

.trainer-hint::before {
  content: '\27A1';
  font-size: 1.1em;
}

/* ── Exercise Header Label ──────────────────────────── */
.exercise-header {
  display: inline-block;
  background: var(--navy);
  color: white;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}

.exercise-header.poll { background: #6A1B9A; }
.exercise-header.sort { background: #E65100; }
.exercise-header.mistakes { background: #C62828; }
.exercise-header.build { background: #2E7D32; }

/* ── Exercise Items (jumbled) ───────────────────────── */
.exercise-items {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.exercise-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-4);
  font-size: 0.95em;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* ── Exercise Reveal (hidden by default) ────────────── */
.exercise-reveal {
  display: none;
  margin-top: var(--space-4);
  animation: fadeIn 0.3s ease;
}

.exercise-reveal.visible {
  display: block;
}

/* ── Exercise Toggle Button ─────────────────────────── */
.exercise-toggle {
  background: var(--navy);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: var(--space-4);
}

.exercise-toggle:hover {
  background: var(--navy-light);
}

/* ── Sort Buckets ───────────────────────────────────── */
.sort-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.sort-bucket {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}

.sort-bucket-title {
  font-weight: 700;
  color: var(--accent);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--gold);
}

.sort-bucket li {
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

/* ── Spot the Mistakes ──────────────────────────────── */
.mistake-text {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  line-height: 1.8;
  font-size: 1.05em;
  color: var(--text-primary);
  margin: var(--space-4) 0;
}

.mistake-correction {
  background: var(--success-bg);
  border: 1px solid var(--success);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  line-height: 1.8;
  margin: var(--space-4) 0;
}

.mistake-highlight {
  background: var(--error-bg);
  color: var(--error);
  padding: 0.1em 0.3em;
  border-radius: 3px;
  text-decoration: line-through;
  font-weight: 600;
}

.mistake-fix {
  background: var(--success-bg);
  color: var(--success);
  padding: 0.1em 0.3em;
  border-radius: 3px;
  font-weight: 700;
}

/* ── Build It Together ──────────────────────────────── */
.build-slots {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.build-slot {
  background: var(--bg-secondary);
  border: 2px dashed var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-5);
  min-height: 2.5em;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  transition: all var(--transition-normal);
}

.build-slot .slot-number {
  font-weight: 800;
  color: var(--text-muted);
  font-size: 1.2em;
  min-width: 2em;
  text-align: center;
}

.build-slot .slot-content {
  visibility: hidden;
  font-weight: 600;
  color: var(--text-primary);
}

.build-slot.revealed {
  border-style: solid;
  border-color: var(--success);
  background: var(--success-bg);
}

.build-slot.revealed .slot-number {
  color: var(--success);
}

.build-slot.revealed .slot-content {
  visibility: visible;
  animation: fadeIn 0.3s ease;
}

.build-reveal-btn {
  background: var(--success);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: var(--space-4);
}

.build-reveal-btn:hover {
  opacity: 0.9;
}

/* ── Class Poll (enhanced exam question styling) ────── */
.slide[data-type="poll"] .exam-option {
  font-size: 1.1em;
  padding: var(--space-4) var(--space-5);
  font-weight: 500;
}

.slide[data-type="poll"] .exam-option strong {
  font-size: 1.3em;
  color: var(--navy);
}

/* ── Matching exercise ──────────────────────────────── */
.match-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-2) var(--space-4);
  align-items: center;
  margin: var(--space-4) 0;
}

.match-problem {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  font-size: 0.95em;
}

.match-arrow {
  color: var(--text-muted);
  font-size: 1.2em;
}

.match-answer {
  font-weight: 700;
  color: var(--success);
}

/* ── Print ───────────────────────────────────────── */
@media print {
  .progress-strip, .font-controls { display: none !important; }
  .slide-viewport { position: static; overflow: visible; }
  .slide {
    display: block !important;
    position: static !important;
    page-break-after: always;
    padding: 2cm;
  }
  .slide[data-type="section-title"] {
    background: var(--navy) !important;
    color: white !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}
