/* ────────────────────────────────────────────────
   SCAIO Learn · shared deck stylesheet
   Used by every primer-NN-*.html under /learn/
   ──────────────────────────────────────────────── */

:root {
  --navy: #081a36;
  --navy-2: #0a2a54;
  --blue: #0b4ea2;
  --blue-2: #2f7ae5;
  --blue-3: #4c92ff;
  --blue-soft: #dbeafe;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --text: #142133;
  --muted: #4b5a6b;
  --border: #d9e4f2;
  --amber: #d97706;
  --green: #15803d;
  --red: #b91c1c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: var(--bg); font-family: 'Inter', sans-serif; color: var(--text); }

.deck { height: 100vh; width: 100vw; position: relative; overflow: hidden; }

.slide {
  position: absolute; inset: 0;
  padding: 7vh 8vw;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
  background: var(--bg);
}
.slide.active { opacity: 1; pointer-events: auto; }

/* ── Title slide variant ── */
.slide.title-slide {
  background: linear-gradient(135deg, #081a36 0%, #0b2e5e 50%, #14597d 100%);
  color: #fff;
}
.slide.title-slide .kicker { color: #b9d6ff; }
.slide.title-slide .deck-title { color: #fff; }
.slide.title-slide .subtitle { color: rgba(255,255,255,0.85); }
.slide.title-slide .scaio-mark { color: rgba(255,255,255,0.75); }

/* ── Closing slide variant ── */
.slide.closing-slide {
  background: linear-gradient(135deg, #081a36 0%, #0b2e5e 100%);
  color: #fff;
}
.slide.closing-slide .kicker { color: #b9d6ff; }
.slide.closing-slide .slide-title { color: #fff; }
.slide.closing-slide .slide-body { color: rgba(255,255,255,0.85); }
.slide.closing-slide .slide-body strong { color: #fff; }
.slide.closing-slide a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--blue-2);
  text-underline-offset: 4px;
}

/* ── Typography ── */
.kicker {
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 28px;
}
.deck-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--navy); margin-bottom: 28px; max-width: 18ch;
}
.subtitle {
  font-family: 'Libre Baskerville', serif;
  font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 38ch;
  margin-bottom: 48px;
}
.scaio-mark {
  position: absolute; bottom: 6vh; left: 8vw;
  font-size: 0.78rem; letter-spacing: 0.16em;
  color: var(--muted); text-transform: uppercase;
}
.slide-title {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15; letter-spacing: -0.015em;
  color: var(--navy); margin-bottom: 28px; max-width: 24ch;
}
.slide-body {
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.7; color: var(--text); max-width: 64ch;
}
.slide-body p { margin-bottom: 16px; }
.slide-body p:last-child { margin-bottom: 0; }
.slide-body strong { color: var(--navy); }
.slide-body em { color: var(--blue); font-style: normal; font-weight: 600; }

/* ── Bullet list (the dashed marker) ── */
.bullet-list { list-style: none; padding: 0; margin-top: 8px; max-width: 70ch; }
.bullet-list li {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.75; color: var(--text);
  margin-bottom: 18px; padding-left: 36px; position: relative;
}
.bullet-list li::before {
  content: ''; position: absolute; left: 0; top: 0.65em;
  width: 22px; height: 2px; background: var(--blue-2);
}
.bullet-list li strong { color: var(--navy); }

/* ── Point grid (2 or 3 column cards) ── */
.point-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 12px; }
.point-grid.two { grid-template-columns: repeat(2, 1fr); gap: 24px; }
.point-grid.four { grid-template-columns: repeat(4, 1fr); gap: 14px; }
.point-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 26px;
}
.point-card .label {
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue); font-weight: 700; margin-bottom: 12px;
}
.point-card h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.18rem; color: var(--navy);
  margin-bottom: 8px; letter-spacing: -0.005em;
}
.point-card p { font-size: 0.94rem; color: var(--muted); line-height: 1.65; }
.point-card p strong { color: var(--navy); }

/* ── Question card (Q/A pattern) ── */
.question-card {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 4px solid var(--blue-2); border-radius: 14px;
  padding: 22px 26px; margin-bottom: 14px;
}
.question-card .num {
  font-family: 'Libre Baskerville', serif; font-weight: 700;
  color: var(--blue); font-size: 0.85rem;
  letter-spacing: 0.1em; margin-bottom: 6px;
}
.question-card h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.2rem; color: var(--navy);
  margin-bottom: 6px; letter-spacing: -0.005em;
}
.question-card p {
  font-size: 0.94rem; color: var(--muted); line-height: 1.65;
}

/* ── Checklist (rounded cards with checkmarks) ── */
.checklist {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px; margin-top: 8px;
}
.checklist li {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 16px 18px 16px 44px;
  font-size: 1rem; line-height: 1.55; color: var(--text);
  position: relative;
}
.checklist li::before {
  content: '✓'; position: absolute; left: 16px; top: 16px;
  width: 18px; height: 18px; border-radius: 999px;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
}
.checklist li strong { color: var(--navy); }

/* ── Threat card (numbered horizontal cards) ── */
.threat-row { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 22px 0 8px; }
.threat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px 26px;
  display: grid; grid-template-columns: auto 1fr;
  gap: 22px; align-items: start;
}
.threat-card .num {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.45rem; font-weight: 700;
  color: var(--blue); line-height: 1;
}
.threat-card .label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.threat-card h4 { font-size: 1rem; color: var(--navy); font-weight: 600; margin-bottom: 8px; }
.threat-card p { font-size: 0.93rem; color: var(--muted); line-height: 1.65; margin: 0; }

/* ── Stat row / big stat ── */
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin: 28px 0;
}
.stat-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 16px; text-align: center;
}
.stat-box .number {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.8rem; font-weight: 700;
  color: var(--blue); line-height: 1.1; margin-bottom: 6px;
}
.stat-box .label { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.08em; }

.big-stat {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(5rem, 13vw, 9rem);
  line-height: 1; color: var(--blue);
  letter-spacing: -0.04em; margin-bottom: 24px;
}
.big-stat-label {
  font-family: 'Libre Baskerville', serif; font-style: italic;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.5; color: var(--muted); max-width: 30ch;
}

/* ── Quote slide ── */
.quote {
  font-family: 'Libre Baskerville', serif; font-style: italic;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.55; color: var(--navy);
  max-width: 32ch; letter-spacing: -0.005em; margin-bottom: 28px;
}
.quote::before {
  content: '"'; font-size: 1.5em; color: var(--blue-2);
  line-height: 0.5; margin-right: 6px;
}

/* ── Confidence banners (green/amber/red) ── */
.confidence-banner {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; border-radius: 14px;
  margin: 22px 0; border-left: 4px solid;
}
.confidence-banner .dot {
  width: 12px; height: 12px; border-radius: 999px; flex-shrink: 0;
}
.confidence-banner .label {
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  margin-right: 8px;
}
.confidence-banner p { font-size: 0.95rem; line-height: 1.65; color: var(--text); margin: 0; flex: 1; }
.confidence-banner.amber  { background: #fffbeb; border-color: var(--amber); }
.confidence-banner.amber .dot, .confidence-banner.amber .label { background: var(--amber); color: var(--amber); }
.confidence-banner.amber .dot { background: var(--amber); }
.confidence-banner.green  { background: #ecfdf5; border-color: var(--green); }
.confidence-banner.green .dot { background: var(--green); }
.confidence-banner.green .label { color: var(--green); }
.confidence-banner.red    { background: #fef2f2; border-color: var(--red); }
.confidence-banner.red .dot { background: var(--red); }
.confidence-banner.red .label { color: var(--red); }

/* ── Glossary grid (for legislator glossary deck) ── */
.glossary-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 14px 22px; margin-top: 8px;
}
.glossary-term {
  border-left: 3px solid var(--blue-2);
  padding: 4px 16px;
}
.glossary-term .term {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.glossary-term .def {
  font-size: 0.92rem; color: var(--muted); line-height: 1.55;
}

/* ── Region card (for landscape orientation deck) ── */
.region-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-top: 12px;
}
.region-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 22px 24px;
}
.region-card .label {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue); font-weight: 700; margin-bottom: 8px;
}
.region-card h3 {
  font-family: 'Libre Baskerville', serif;
  font-size: 1.1rem; color: var(--navy);
  margin-bottom: 6px;
}
.region-card p { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* ── Controls (footer nav bar) ── */
.controls {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 18px;
  background: rgba(8,26,54,0.85); backdrop-filter: blur(10px);
  padding: 10px 18px; border-radius: 999px; z-index: 100;
}
.controls button {
  background: transparent; border: 1px solid rgba(255,255,255,0.3);
  color: #fff; width: 32px; height: 32px;
  border-radius: 999px; cursor: pointer; font-size: 14px;
  transition: background 0.15s ease;
}
.controls button:hover { background: rgba(255,255,255,0.15); }
.controls a.exit {
  color: rgba(255,255,255,0.7); text-decoration: none;
  font-size: 0.82rem; letter-spacing: 0.08em;
  border-left: 1px solid rgba(255,255,255,0.2);
  padding-left: 14px; margin-left: 4px;
}
.controls a.exit:hover { color: #fff; }
.counter { color: #fff; font-size: 0.85rem; letter-spacing: 0.06em; min-width: 60px; text-align: center; }

/* ── Mobile ── */
@media (max-width: 760px) {
  .point-grid, .point-grid.two, .point-grid.four { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .threat-card { grid-template-columns: 1fr; gap: 8px; }
  .glossary-grid { grid-template-columns: 1fr; }
  .region-row { grid-template-columns: 1fr; }
}
