/* ══════════════════════════════════════════════════════════════
   Gamma Exercise — Shared CSS for all coteacher exercise decks
   Extracted from inline <style> blocks across 15 exercises.
   Exercise-specific CSS stays inline in each HTML file.
   ══════════════════════════════════════════════════════════════ */

/* ── Design tokens ── */
:root {
  --bg: #f5f5f2;
  --surface: #ffffff;
  --surface-soft: #eef0ea;
  --text: #1f1f1c;
  --text-muted: #5f5f5a;
  --border: #d9d9d2;
  --accent: #2f6fed;
  --accent-soft: #eaf0ff;
  --green: #2e9658;
  --green-soft: #eaf6ee;
  --red: #c5534c;
  --red-soft: #fdf0ef;
  --amber: #c47a20;
  --amber-soft: #fdf5e9;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --shadow-soft: 0 8px 30px rgba(20,20,18,.06);
}

/* ── Base ── */
html, body { background: var(--bg); }
.reveal {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
}
.reveal .slides { text-align: left; }
.reveal .slide-number { color: #7d7d75 !important; font-size: 18px !important; }

/* ── Slide shell & frame ── */
.slide-shell {
  width: 1280px; height: 720px; padding: 28px;
  box-sizing: border-box; background: var(--bg);
}
.frame {
  width: 100%; height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  overflow: hidden; padding: 48px;
  box-sizing: border-box;
}

/* ── Kicker badge ── */
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}

/* ── 5E kicker variants ── */
.k-engage { background: var(--red-soft); color: var(--red); }
.k-explore { background: var(--accent-soft); color: var(--accent); }
.k-explain { background: var(--surface-soft); color: var(--text-muted); }
.k-elaborate { background: var(--amber-soft); color: var(--amber); }
.k-evaluate { background: var(--green-soft); color: var(--green); }

/* ── Hero layout ── */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 40px; align-items: center; height: 100%;
}
.hero-copy {
  display: flex; flex-direction: column; gap: 16px;
  max-width: 540px;
}
.hero-copy h1 {
  font-size: 44px; line-height: 1.08; letter-spacing: -.04em;
  margin: 0; font-weight: 800;
}
.hero-copy p {
  font-size: 20px; line-height: 1.45; margin: 0;
  color: var(--text-muted);
}
.hero-art {
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  overflow: hidden; height: 100%;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

/* ── Grid page ── */
.grid-page { display: flex; flex-direction: column; gap: 18px; height: 100%; }
.grid-page h2 {
  font-size: 38px; line-height: 1.1; letter-spacing: -.03em;
  margin: 0; font-weight: 700;
}
.grid-page > p {
  font-size: 19px; line-height: 1.45; margin: 0;
  color: var(--text-muted);
}

/* ── Card grid ── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; flex: 1; }
.card-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; flex: 1; }
.card {
  position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 8px;
}
.card h3 { margin: 0; font-size: 21px; line-height: 1.2; }
.card p { font-size: 16px; line-height: 1.45; margin: 0; color: var(--text-muted); }
.card-num {
  position: absolute; top: -14px; left: 20px;
  width: 34px; height: 34px; border-radius: 999px;
  background: var(--text); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}

/* ── Panel split ── */
.panel-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; align-items: center; height: 100%;
}
.panel-img {
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  overflow: hidden; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-soft);
}
.panel-img img { width: 92%; height: auto; }
.panel-copy { display: flex; flex-direction: column; gap: 14px; }
.panel-copy h2 {
  font-size: 34px; line-height: 1.1; letter-spacing: -.03em;
  margin: 0; font-weight: 700;
}
.panel-copy p { font-size: 17px; line-height: 1.5; margin: 0; color: var(--text-muted); }

/* ── Stat grid ── */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-card {
  padding: 20px; border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
  text-align: center;
}
.stat-card .num { font-size: 36px; font-weight: 800; line-height: 1; }
.stat-card .label { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ── Instruction box ── */
.instruction {
  padding: 24px 28px; border-radius: var(--radius-lg);
  background: var(--accent-soft); border: 1px solid rgba(47,111,237,.15);
  display: flex; flex-direction: column; gap: 10px;
}
.instruction strong { font-size: 16px; color: var(--accent); }
.instruction p { font-size: 16px; line-height: 1.5; margin: 0; color: var(--text); }
.instruction a { color: var(--accent); font-weight: 600; }
.instruction code {
  display: block; padding: 10px 14px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--border);
  font-family: 'SF Mono','Fira Code',monospace;
  font-size: 13px; line-height: 1.5; color: var(--text);
}

/* ── Reflection card ── */
.reflection-card {
  padding: 22px; border-radius: var(--radius-lg);
  background: var(--surface-soft); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 6px;
}
.reflection-card h3 { margin: 0; font-size: 18px; font-weight: 700; }
.reflection-card p { font-size: 15px; line-height: 1.45; margin: 0; color: var(--text-muted); }

/* ── Prompt box ── */
.prompt-box {
  padding: 22px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--surface);
}
.prompt-box strong { display: block; margin-bottom: 8px; font-size: 18px; }

/* ── Quote block ── */
.quote-block {
  padding: 32px; border-radius: var(--radius-lg);
  background: var(--surface-soft); border-left: 4px solid var(--accent);
}
.quote-block p {
  font-size: 22px; line-height: 1.5; margin: 0;
  color: var(--text); font-style: italic;
}
.quote-block blockquote {
  margin: 0; font-size: 26px; line-height: 1.35;
  font-weight: 600; font-style: italic; color: var(--text);
}
.quote-block cite {
  display: block; margin-top: 12px;
  font-size: 14px; color: var(--text-muted); font-style: normal;
}

/* ── Before/after cards ── */
.ba-card {
  padding: 20px; border-radius: var(--radius-lg);
  border: 2px solid var(--border);
}
.ba-card h3 { margin: 0 0 8px; font-size: 16px; }
.ba-card p { font-size: 14px; line-height: 1.5; margin: 0; color: var(--text-muted); }
.ba-blue { border-color: var(--accent); background: var(--accent-soft); }
.ba-red { border-color: var(--red); background: var(--red-soft); }
.ba-green { border-color: var(--green); background: var(--green-soft); }
.ba-red code { background: rgba(197,83,76,.08); color: var(--red); }
.ba-green code { background: rgba(46,150,88,.08); color: var(--green); }
.ba-card code {
  display: block; padding: 12px 16px; border-radius: var(--radius-md);
  font-size: 13px; line-height: 1.5; font-family: 'SF Mono', 'Fira Code', monospace;
  white-space: pre-wrap;
}

/* ── Myth card ── */
.myth-card {
  padding: 22px; border-radius: var(--radius-lg);
  border: 2px solid var(--red); background: var(--red-soft);
}
.myth-card h3 { margin: 0 0 6px; font-size: 17px; color: var(--red); }
.myth-card p { font-size: 15px; line-height: 1.45; margin: 0; color: var(--text-muted); }
.myth-card .truth {
  margin-top: 8px; padding: 8px 12px; border-radius: var(--radius-md);
  background: var(--green-soft); border: 1px solid rgba(46,150,88,.2);
  font-size: 14px; color: var(--green); font-weight: 600;
}
.k-myth { background: #2d2d2d; color: #f0f0f0; }

/* ── Full image ── */
.full-img {
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  overflow: hidden; flex: 1;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-soft);
}
.full-img img { width: 85%; height: auto; }

/* ── Footer & utility ── */
.footer-meta {
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--text-muted); margin-top: auto;
}
.footer-meta a { color: var(--accent); text-decoration: none; }
.small { font-size: 15px !important; color: var(--text-muted); }

/* ── Badge row ── */
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  padding: 8px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-muted);
}

/* ── Two-column layout ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* ── Check grid ── */
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 10px; }
.check {
  display: grid; grid-template-columns: 26px 1fr; gap: 14px;
  align-items: start; padding: 20px;
  border-radius: var(--radius-lg); background: var(--surface-soft);
  border: 1px solid var(--border);
}
.check-dot {
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}

/* ── Image strip ── */
.image-strip { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.image-panel { height: 180px; }

/* ── Quote (inline variant) ── */
.quote { font-size: 28px; line-height: 1.3; color: var(--text); max-width: 880px; }
