/* ============================================================
   VIVA VOX — Reading Courses CSS
   ============================================================ */

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --navy:   #1a2744;
  --gold:   #c9a227;
  --gold-2: #f0c848;
  --cream:  #f8f5f0;
  --ink:    #2c2c2c;
  --muted:  #7a7a7a;
  --line:   #e0dbd0;
  --white:  #ffffff;
  --green:  #2d7a4f;
}

/* ─── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body { font-family: 'Inter', sans-serif; background: var(--cream); color: var(--ink); line-height: 1.6; min-height: 100vh; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }

/* ─── Top bar ────────────────────────────────────────────────── */
.lesson-top {
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  flex-wrap: wrap;
}
.breadcrumb { display: flex; align-items: center; gap: 0.4rem; font-size: 0.85rem; flex: 1; min-width: 0; }
.breadcrumb a { color: rgba(255,255,255,0.7); transition: color 0.15s; white-space: nowrap; }
.breadcrumb a:hover { color: var(--gold); }
.bc-sep { color: rgba(255,255,255,0.3); }
.bc-active { color: var(--white); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.course-name { font-size: 0.8rem; font-weight: 600; color: var(--gold); letter-spacing: 0.04em; white-space: nowrap; }
.top-progress { display: flex; align-items: center; gap: 0.6rem; white-space: nowrap; }
.top-progress .txt { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.progress-bar { width: 90px; height: 4px; background: rgba(255,255,255,0.15); border-radius: 2px; }
.progress-bar span { display: block; height: 100%; background: var(--gold); border-radius: 2px; width: 0; transition: width 0.4s; }

/* ─── Course Index Hero ──────────────────────────────────────── */
.course-hero {
  background: var(--navy);
  color: var(--white);
  padding: 4rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.course-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1478737270197-1fb51d5bce99?w=1400&q=60') center/cover no-repeat;
  opacity: 0.07;
}
.course-hero-eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.9rem; position: relative;
}
.course-hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900; line-height: 1.1;
  margin-bottom: 0.6rem; position: relative;
}
.course-hero-sub {
  font-size: 0.95rem; color: rgba(255,255,255,0.6);
  margin-bottom: 1.8rem; font-style: italic; line-height: 1.6; position: relative;
}
.course-hero-quote {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.2rem;
  max-width: 480px;
  margin: 0 auto 1.8rem;
  position: relative;
}
.course-meta {
  display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; position: relative;
}
.course-meta-item {
  font-size: 0.82rem; color: rgba(255,255,255,0.55);
  display: flex; align-items: center; gap: 0.4rem;
}
.course-meta-item strong { color: var(--gold-2); }

/* ─── Course Index Content ───────────────────────────────────── */
.course-index-wrap {
  max-width: 760px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem;
}
.section-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 1rem;
}
.chapters-grid { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 2.5rem; }
.chapter-card {
  display: flex; align-items: center; gap: 1.2rem;
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: 14px; padding: 1rem 1.2rem;
  text-decoration: none; color: var(--ink);
  transition: all 0.18s;
}
.chapter-card:hover {
  border-color: var(--navy); transform: translateX(4px);
  box-shadow: 0 2px 14px rgba(26,39,68,0.08);
}
.chapter-card-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem; font-weight: 900; color: var(--gold);
  min-width: 2rem; text-align: center;
}
.chapter-card.completed .chapter-card-num { color: var(--green); }
.chapter-card-body { flex: 1; min-width: 0; }
.chapter-card-title { font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.chapter-card-sub { font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }
.chapter-card-arrow { color: var(--muted); font-size: 1rem; transition: transform 0.15s; }
.chapter-card:hover .chapter-card-arrow { transform: translateX(3px); color: var(--navy); }

.chars-section { margin-top: 2.5rem; }
.chars-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.65rem;
}
.char-card {
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 1rem 1.1rem;
}
.char-card-name { font-weight: 700; font-size: 0.9rem; color: var(--navy); margin-bottom: 0.15rem; }
.char-card-role {
  font-size: 0.72rem; color: var(--gold);
  font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 0.55rem;
}
.char-card-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem; color: var(--muted);
  line-height: 1.5;
}

/* ─── Grammar Focus ──────────────────────────────────────────── */
.grammar-focus {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 1.3rem 1.5rem;
}
.gf-intro {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem; color: var(--ink);
  line-height: 1.55; margin-bottom: 1.1rem;
}
.gf-cols {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem; margin-bottom: 1rem;
}
.gf-col-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.5rem;
}
.gf-verb {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem; padding: 0.18rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.gf-verb strong { color: var(--navy); font-weight: 600; margin-left: 0.3rem; }
.gf-tip {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem; color: var(--muted);
  font-style: italic;
  background: var(--bg); border-radius: 8px;
  padding: 0.6rem 0.9rem;
}

/* ─── Chapter Hero ───────────────────────────────────────────── */
.chapter-hero {
  background: var(--navy); color: var(--white);
  padding: 3.5rem 2rem 2.5rem; text-align: center;
  position: relative; overflow: hidden;
}
.chapter-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.1;
}
.chapter-eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.5rem; position: relative;
}
.chapter-num-display {
  font-family: 'Playfair Display', serif;
  font-size: clamp(5rem, 16vw, 10rem);
  font-weight: 900;
  color: rgba(255,255,255,0.05);
  line-height: 1;
  position: absolute; left: 50%; top: 0.5rem;
  transform: translateX(-50%);
  pointer-events: none; user-select: none;
}
.chapter-title-main {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 800; color: var(--white);
  line-height: 1.2; margin-bottom: 0.5rem; position: relative;
}
.chapter-sub {
  font-size: 0.9rem; color: rgba(255,255,255,0.55);
  font-style: italic; position: relative;
}

/* ─── Main Reading Layout ────────────────────────────────────── */
.reading-wrap { max-width: 700px; margin: 0 auto; padding: 2.5rem 1.5rem 5rem; }

/* ─── Before Reading ─────────────────────────────────────────── */
.before-reading {
  background: var(--white); border: 1.5px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 0 14px 14px 0;
  padding: 1.3rem 1.5rem; margin-bottom: 2rem;
}
.before-reading-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 0.9rem;
}
.vocab-list { list-style: none; margin-bottom: 1.1rem; }
.vocab-list li {
  font-size: 0.88rem; line-height: 1.7;
  padding: 0.3rem 0; border-bottom: 1px solid var(--line);
  display: flex; gap: 0.6rem; align-items: baseline; flex-wrap: wrap;
}
.vocab-list li:last-child { border-bottom: none; }
.vocab-list strong { color: var(--navy); font-weight: 600; min-width: 110px; }
.vocab-list .v-def { color: var(--ink); }
.vocab-list .v-ua { color: var(--muted); font-style: italic; font-size: 0.82rem; }
.think-box {
  background: var(--cream); border-radius: 8px;
  padding: 0.75rem 1rem; font-size: 0.88rem; line-height: 1.6; color: var(--ink);
}
.think-box strong { color: var(--navy); }

/* ─── Audio Row ──────────────────────────────────────────────── */
.audio-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.audio-listen-group { display: contents; }

/* ─── Audio Buttons ──────────────────────────────────────────── */
.text-audio-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--navy); color: var(--white);
  border: none; border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem; font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer; transition: background 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}
.text-audio-btn:hover { background: #2a3d64; transform: translateY(-1px); }
.text-audio-btn:active { transform: none; }
.text-audio-btn.playing { background: var(--gold); color: var(--navy); }
.text-audio-btn.no-audio { opacity: 0.4; cursor: not-allowed; }

/* ─── Watson Intro Box ───────────────────────────────────────── */
.watson-intro {
  background: var(--navy); color: rgba(255,255,255,0.9);
  border-radius: 16px; padding: 1.5rem 1.8rem;
  margin-bottom: 2rem;
  font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 1rem; line-height: 1.85;
}
.watson-intro-label {
  font-family: 'Inter', sans-serif;
  font-style: normal; font-size: 0.68rem;
  font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 0.7rem; display: block;
}

/* ─── Reading Body ───────────────────────────────────────────── */
.reading-body {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; line-height: 2;
  font-weight: 400;
  color: var(--ink);
}
.reading-body p { margin-bottom: 1.1rem; }
.reading-body p:last-child { margin-bottom: 0; }

.reading-sep {
  text-align: center; color: var(--muted);
  letter-spacing: 0.4em; margin: 2rem 0; font-size: 0.9rem;
}

/* ─── Pull Quote ─────────────────────────────────────────────── */
.pull-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-style: italic; font-weight: 700;
  color: var(--navy); text-align: center;
  padding: 1.4rem 2rem;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  margin: 2.2rem 0; line-height: 1.55;
}

/* ─── Vocabulary Highlight ───────────────────────────────────── */
.vocab {
  border-bottom: 2px solid var(--gold);
  cursor: pointer; padding: 0 1px;
  border-radius: 2px; transition: background 0.15s;
}
.vocab:hover { background: rgba(201,162,39,0.13); }
.vocab-popup {
  position: fixed;
  background: var(--navy); color: var(--white);
  border-radius: 12px; padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif; font-size: 0.84rem;
  line-height: 1.55; max-width: 240px; z-index: 500;
  box-shadow: 0 6px 24px rgba(26,39,68,0.28);
  display: none; pointer-events: none;
}
.vocab-popup strong { display: block; color: var(--gold-2); font-size: 0.9rem; margin-bottom: 0.25rem; }
.vocab-popup span { display: block; }
.vocab-popup em { display: block; color: rgba(255,255,255,0.55); font-size: 0.78rem; margin-top: 0.2rem; }

/* ─── Chapter Image ──────────────────────────────────────────── */
.chapter-image { border-radius: 14px; overflow: hidden; margin: 1.8rem 0; }
.chapter-image img { width: 100%; max-height: 260px; object-fit: cover; }

.chapter-image.portrait { background: none; border-radius: 0; display: flex; justify-content: center; }
.chapter-image.portrait img { width: auto; max-width: 320px; max-height: none; object-fit: unset; border-radius: 14px; box-shadow: 0 4px 24px rgba(0,0,0,0.18); }

/* ─── Fact Box (Darwin note, etc.) ──────────────────────────── */
.fact-box {
  background: var(--white); border: 1.5px solid var(--line);
  border-left: 4px solid var(--navy);
  border-radius: 0 12px 12px 0;
  padding: 1rem 1.3rem; margin: 1.5rem 0;
  font-size: 0.88rem; line-height: 1.65; color: var(--ink);
}
.fact-box strong { color: var(--navy); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-bottom: 0.4rem; }

/* ─── After Reading ──────────────────────────────────────────── */
.after-reading {
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: 16px; padding: 1.5rem 1.5rem 1.2rem;
  margin-top: 2.5rem;
}
.after-reading-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--navy); margin-bottom: 1.2rem;
}
.comprehension-q { margin-bottom: 1.1rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.comprehension-q:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.comprehension-q p { font-size: 0.93rem; font-weight: 500; color: var(--ink); margin-bottom: 0.4rem; }
.show-answer-btn {
  font-size: 0.8rem; color: var(--gold); background: none;
  border: none; cursor: pointer; padding: 0;
  font-weight: 600; font-family: 'Inter', sans-serif;
  transition: color 0.15s;
}
.show-answer-btn:hover { color: var(--navy); }
.answer-text {
  font-size: 0.88rem; color: var(--muted);
  margin-top: 0.5rem; display: none; font-style: italic; line-height: 1.6;
}
.answer-text.open { display: block; }

/* ─── Navigation ─────────────────────────────────────────────── */
.lesson-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding: 1.5rem 0 0;
  border-top: 1px solid var(--line); margin-top: 2rem; flex-wrap: wrap;
}
.lesson-nav a {
  font-size: 0.86rem; font-weight: 600; color: var(--navy);
  padding: 0.5rem 1.1rem; border: 1.5px solid var(--line);
  border-radius: 999px; transition: all 0.15s;
}
.lesson-nav a:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }
.done-btn {
  background: var(--navy); color: var(--white); border: none;
  border-radius: 999px; padding: 0.6rem 1.5rem;
  font-size: 0.86rem; font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer; transition: background 0.15s, transform 0.1s;
}
.done-btn:hover { background: #2a3d64; transform: translateY(-1px); }
.done-btn.completed { background: var(--green); }

/* ─── Bionic Reading ─────────────────────────────────────────── */
.reading-body b { font-weight: 800; font-style: normal; }

.bionic-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.18s;
  letter-spacing: 0.01em;
}
.bionic-toggle:hover { border-color: var(--navy); background: rgba(26,39,68,0.06); }
.bionic-toggle.active { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ─── Worksheet download link ────────────────────────────────── */
.worksheet-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--line); border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem; font-weight: 600;
  font-family: 'Inter', sans-serif;
  text-decoration: none; letter-spacing: 0.01em;
  transition: all 0.18s; margin-left: auto;
}
.worksheet-link:hover { border-color: var(--navy); background: rgba(26,39,68,0.06); }

/* ─── Book Download Banner ───────────────────────────────────── */
.book-download {
  margin-top: 2.5rem;
  background: var(--navy);
  border-radius: 14px;
  padding: 1.8rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.book-download-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  opacity: 0.85;
}
.book-download-text { flex: 1; min-width: 180px; }
.book-download-text h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem; font-weight: 700;
  color: var(--white); margin-bottom: 0.25rem;
}
.book-download-text p {
  font-size: 0.82rem; color: rgba(255,255,255,0.65); line-height: 1.45;
}
.book-download-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--gold); color: var(--navy);
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font-size: 0.85rem; font-weight: 700;
  font-family: 'Inter', sans-serif;
  text-decoration: none; letter-spacing: 0.01em;
  transition: background 0.18s, transform 0.12s;
  white-space: nowrap;
}
.book-download-btn:hover { background: var(--gold-2); color: var(--navy); transform: translateY(-1px); }

/* ─── Book teaser (chapter-1) ───────────────────────────────── */
.book-teaser {
  display: flex; align-items: center; gap: 1rem;
  background: #f5f0e8; border: 1px solid #e8e0d0; border-radius: 14px;
  padding: 1.1rem 1.25rem; margin: 2rem 0 1.5rem;
}
.book-teaser-icon {
  flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.book-teaser-text { flex: 1; min-width: 0; }
.book-teaser-text strong { display: block; font-size: 0.95rem; color: var(--navy); margin-bottom: 0.2rem; }
.book-teaser-text span { font-size: 0.82rem; color: #666; }
.book-teaser-btn {
  flex-shrink: 0; background: var(--gold); color: var(--navy);
  border-radius: 999px; padding: 0.55rem 1.25rem;
  font-weight: 700; font-size: 0.88rem; text-decoration: none;
  white-space: nowrap; transition: background 0.18s;
}
.book-teaser-btn:hover { background: var(--gold-2); }

/* ─── Share strip ───────────────────────────────────────────── */
.share-strip {
  display: flex; align-items: center; gap: 0.75rem;
  flex-wrap: wrap; margin: 1.5rem 0 0.5rem;
}
.share-label { font-size: 0.82rem; color: #888; }
.share-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 1rem; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600; text-decoration: none;
  transition: opacity 0.18s;
}
.share-btn:hover { opacity: 0.85; }
.share-fb { background: #1877f2; color: #fff; }
.share-li { background: #0a66c2; color: #fff; }
.share-copy { background: #f0ece4; color: #1a2744; border: 1px solid #ddd8ce; cursor: pointer; font-family: inherit; }
@media (max-width: 520px) {
  .book-teaser { flex-wrap: wrap; }
  .book-teaser-btn { width: 100%; text-align: center; }
}

/* ─── Free badge ────────────────────────────────────────────── */
.free-badge {
  font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--green); color: #fff;
  padding: 0.28rem 0.65rem; border-radius: 999px;
  flex-shrink: 0; white-space: nowrap;
}

/* ─── Locked episode card ────────────────────────────────────── */
.chapter-card.locked {
  cursor: pointer;
  opacity: 0.6;
}
.chapter-card.locked:hover {
  opacity: 1;
  border-color: var(--gold);
  transform: translateY(-1px);
}
.chapter-card.locked .lock-icon {
  flex-shrink: 0; color: var(--muted);
  transition: color 0.18s;
}
.chapter-card.locked:hover .lock-icon { color: var(--gold); }

/* ─── Pricing section ────────────────────────────────────────── */
.course-pricing { margin-top: 2.5rem; }
.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
  margin: 1.2rem 0;
}
@media (max-width: 480px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-grid--single { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
.pricing-eur { font-size: 1.6rem; color: var(--muted); font-weight: 600; }
.pricing-card {
  background: var(--white); border: 2px solid var(--line);
  border-radius: 18px; padding: 2rem 1.5rem; text-align: center;
  transition: border-color 0.18s, transform 0.15s;
}
.pricing-card:hover { border-color: var(--navy); transform: translateY(-2px); }
.pricing-region {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem;
}
.pricing-amount {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 3rem; font-weight: 800; color: var(--navy);
  line-height: 1; margin-bottom: 0.3rem;
}
.pricing-amount sup { font-size: 1.4rem; font-weight: 700; vertical-align: super; }
.pricing-sub { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.5rem; }
.pricing-btn {
  display: block; background: var(--navy); color: var(--white);
  border-radius: 999px; padding: 0.8rem 1.5rem;
  font-size: 0.88rem; font-weight: 700; font-family: 'Inter', sans-serif;
  text-decoration: none; transition: background 0.18s;
}
.pricing-btn:hover { background: #253559; color: var(--white); }
.pricing-includes {
  text-align: center; font-size: 0.8rem; color: var(--muted);
  margin-top: 1.2rem; line-height: 1.7;
}

/* ─── Drop Cap ───────────────────────────────────────────────── */
.drop-cap::first-letter {
  float: left;
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 5.4em;
  line-height: 0.72;
  margin-right: 0.07em;
  margin-top: 0.08em;
  color: var(--navy);
}

/* ─── Translation Popup ──────────────────────────────────────── */
.trans-popup {
  position: fixed; z-index: 950;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 1rem 0.7rem;
  box-shadow: 0 4px 24px rgba(26,39,68,0.14);
  max-width: 260px; min-width: 140px;
  display: none;
  font-family: 'Inter', sans-serif;
}
.trans-popup .tp-header {
  display: flex; align-items: center;
  justify-content: space-between; gap: 0.5rem;
  margin-bottom: 0.2rem;
}
.trans-popup .tp-word {
  font-family: 'Playfair Display', serif;
  font-weight: 700; color: var(--navy); font-size: 1rem;
}
.trans-popup .tp-speak {
  flex-shrink: 0;
  background: none; border: 1.5px solid var(--line);
  border-radius: 50%; width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--navy); padding: 0;
  transition: all 0.15s;
}
.trans-popup .tp-speak:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.trans-popup .tp-ua {
  display: block; color: var(--ink); font-size: 0.88rem;
  line-height: 1.4; margin-bottom: 0.6rem;
}
.trans-popup .tp-ua.tp-loading { color: var(--muted); font-style: italic; }
.trans-popup .tp-save {
  display: block; width: 100%;
  background: var(--gold); color: var(--navy);
  border: none; border-radius: 7px;
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem; font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer; transition: filter 0.15s;
}
.trans-popup .tp-save:hover { filter: brightness(0.92); }
.trans-popup .tp-save.saved { background: var(--green); color: #fff; cursor: default; }

/* ─── My Words badge (nav) ───────────────────────────────────── */
.my-words-nav-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  color: rgba(255,255,255,0.65); text-decoration: none;
  font-size: 0.76rem; font-family: 'Inter', sans-serif;
  font-weight: 600; transition: color 0.15s; white-space: nowrap;
}
.my-words-nav-link:hover { color: var(--gold-2); }
.mw-badge {
  background: var(--gold); color: var(--navy);
  border-radius: 99px; padding: 0.05rem 0.45rem;
  font-size: 0.68rem; font-weight: 700;
  min-width: 18px; text-align: center; display: inline-block;
}

/* ─── My Words Page ──────────────────────────────────────────── */
.mw-hero {
  background: var(--navy); color: var(--white);
  padding: 2.5rem 1.5rem 2rem; text-align: center; margin-bottom: 2rem;
}
.mw-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 900; margin: 0 0 0.3rem;
}
.mw-hero p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin: 0; }
.mw-tabs {
  display: flex; gap: 0.5rem; margin-bottom: 1.5rem;
}
.mw-tab {
  background: transparent; border: 1.5px solid var(--line);
  border-radius: 999px; padding: 0.4rem 1.3rem;
  font-size: 0.84rem; font-weight: 600; font-family: 'Inter', sans-serif;
  color: var(--ink); cursor: pointer; transition: all 0.15s;
}
.mw-tab.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.mw-pane { display: none; }
.mw-pane.active { display: block; }
.mw-empty {
  text-align: center; color: var(--muted);
  padding: 3rem 1rem; font-family: 'Inter', sans-serif;
}
.mw-empty p { margin: 0.4rem 0; font-size: 0.9rem; }
.mw-empty a { color: var(--gold); font-weight: 600; }
.mw-list { list-style: none; display: flex; flex-direction: column; gap: 0.65rem; }
.mw-item {
  display: flex; align-items: center; gap: 1rem;
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 0.8rem 1rem;
}
.mw-item-body { flex: 1; min-width: 0; }
.mw-item-word {
  font-family: 'Playfair Display', serif; font-weight: 700;
  color: var(--navy); font-size: 1.05rem;
}
.mw-item-ua { color: var(--muted); font-size: 0.85rem; font-family: 'Inter', sans-serif; margin-top: 0.1rem; }
.mw-item-meta { font-size: 0.7rem; color: var(--line); font-family: 'Inter', sans-serif; margin-top: 0.2rem; }
.mw-del {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 1rem; padding: 0.25rem 0.45rem;
  border-radius: 6px; transition: all 0.15s; flex-shrink: 0; line-height: 1;
}
.mw-del:hover { background: #fee2e2; color: #dc2626; }
.mw-clear-btn {
  background: transparent; border: 1.5px solid var(--line);
  border-radius: 8px; padding: 0.5rem 1.2rem;
  font-size: 0.82rem; font-weight: 600; font-family: 'Inter', sans-serif;
  color: var(--muted); cursor: pointer; margin-top: 1.5rem;
  transition: all 0.15s;
}
.mw-clear-btn:hover { border-color: #dc2626; color: #dc2626; }
.mw-stats {
  font-size: 0.8rem; color: var(--muted); font-family: 'Inter', sans-serif;
  margin-bottom: 1rem;
}

/* ─── Flashcards ─────────────────────────────────────────────── */
.fc-area { text-align: center; padding: 0.5rem 0 2rem; }
.fc-progress {
  font-size: 0.8rem; color: var(--muted); font-family: 'Inter', sans-serif;
  margin-bottom: 1.2rem;
}
.fc-card {
  background: var(--white); border: 2px solid var(--line);
  border-radius: 18px; padding: 3rem 2rem;
  min-height: 210px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: all 0.2s; margin-bottom: 1.2rem;
  box-shadow: 0 2px 12px rgba(26,39,68,0.06);
  user-select: none;
}
.fc-card:hover { box-shadow: 0 6px 22px rgba(26,39,68,0.1); transform: translateY(-2px); }
.fc-card.flipped { background: rgba(201,162,39,0.07); border-color: var(--gold); }
.fc-word { font-family: 'Playfair Display', serif; font-weight: 800; color: var(--navy); font-size: 2rem; }
.fc-hint { color: var(--muted); font-size: 0.78rem; font-family: 'Inter', sans-serif; margin-top: 0.5rem; }
.fc-ua { font-size: 1.25rem; color: var(--ink); font-family: 'Inter', sans-serif; font-weight: 500; margin-top: 0.6rem; }
.fc-buttons { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.fc-know {
  background: var(--green); color: #fff; border: none;
  border-radius: 10px; padding: 0.65rem 2rem;
  font-size: 0.9rem; font-weight: 600; font-family: 'Inter', sans-serif;
  cursor: pointer; transition: filter 0.15s;
}
.fc-know:hover { filter: brightness(1.1); }
.fc-again {
  background: transparent; color: var(--navy);
  border: 2px solid var(--line); border-radius: 10px;
  padding: 0.65rem 2rem; font-size: 0.9rem; font-weight: 600;
  font-family: 'Inter', sans-serif; cursor: pointer; transition: all 0.15s;
}
.fc-again:hover { border-color: var(--navy); }
.fc-done {
  padding: 2rem 1rem; font-family: 'Inter', sans-serif;
}
.fc-done h3 {
  font-family: 'Playfair Display', serif; color: var(--navy);
  font-size: 1.5rem; margin-bottom: 0.5rem;
}
.fc-done p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.2rem; }
.fc-restart {
  background: var(--gold); color: var(--navy); border: none;
  border-radius: 10px; padding: 0.65rem 2rem;
  font-size: 0.9rem; font-weight: 600; font-family: 'Inter', sans-serif;
  cursor: pointer;
}

/* ─── Exercise (Fill in the gaps) ───────────────────────────── */
.exercise-toggle { background: transparent; color: var(--navy); border: 1.5px solid var(--gold); padding: 0.5rem 1.4rem; }
.exercise-toggle:hover { background: rgba(201,162,39,0.12); }
.exercise-toggle.active { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.exercise-toggle.active:hover { background: var(--gold); filter: brightness(0.92); }

.gap-input {
  display: inline-block;
  border: none;
  border-bottom: 2px solid var(--navy);
  background: transparent;
  font-family: 'Playfair Display', serif;
  font-size: inherit;
  font-weight: 400;
  color: var(--navy);
  outline: none;
  padding: 0 3px 1px;
  vertical-align: baseline;
  min-width: 60px;
  transition: border-color 0.2s;
}
.gap-input:focus { border-bottom-color: var(--gold); }
.gap-input.correct { border-bottom-color: var(--green); color: var(--green); font-size: 1.08em; font-weight: 600; }
.gap-input.wrong   { border-bottom-color: #c0392b;     color: #c0392b; }

.gap-hint {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--green);
  margin-left: 0.3em;
  white-space: nowrap;
}

.exercise-instructions {
  background: #eef2ff;
  border-left: 3px solid var(--navy);
  border-radius: 0 8px 8px 0;
  padding: 0.75rem 1rem;
  margin-bottom: 1.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  color: var(--ink);
  line-height: 1.5;
}
.exercise-instructions strong { color: var(--navy); }
.exercise-instructions ol { margin: 0.35rem 0 0 1.1rem; padding: 0; }
.exercise-instructions li { margin-bottom: 0.15rem; }

.exercise-check-wrap {
  margin: 2rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.exercise-check-btn {
  background: var(--navy); color: var(--white);
  border: none; border-radius: 9px;
  padding: 0.65rem 2.2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: filter 0.15s;
  letter-spacing: 0.02em;
}
.exercise-check-btn:hover { filter: brightness(1.2); }

.exercise-retry-btn {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 0.65rem 1.6rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
  letter-spacing: 0.02em;
}
.exercise-retry-btn:hover { border-color: var(--navy); background: var(--navy); color: var(--white); }

.exercise-score {
  font-family: 'Inter', sans-serif;
  font-weight: 700; font-size: 1rem;
  min-height: 1.4em;
}
.exercise-score.perfect   { color: var(--green); }
.exercise-score.good      { color: var(--gold); }
.exercise-score.try-again { color: #c0392b; }

/* ─── Grammar Practice (collapsed section) ──────────────────── */
.grammar-section {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem 2rem;
  margin: 2.5rem 0;
}

/* ─── Listening Practice (collapsed section) ────────────────── */
.listening-section {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem 2rem;
  margin: 2.5rem 0;
}
.listening-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
  line-height: 1.5;
}

/* ─── Speaking Practice ─────────────────────────────────────── */
.speaking-section {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem 2rem;
  margin: 2.5rem 0;
}
.speaking-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.speaking-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.speaking-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.4rem;
  line-height: 1.5;
}
.speaking-questions {
  margin: 0 0 1.6rem 1.2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.speaking-questions li {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.5;
}

/* ─── Speaking Recorder v2 ───────────────────────────────────── */
.sp2-wrap { margin-top: 1rem; }

/* IDLE */
.sp2-idle {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: #f7f8fc;
  border: 1.5px dashed var(--line);
  border-radius: 14px;
  gap: 0.45rem;
}
.sp2-cam-icon {
  width: 52px; height: 52px;
  background: var(--navy); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 0.3rem;
}
.sp2-idle-title {
  font-family: 'Inter', sans-serif;
  font-size: 1rem; font-weight: 700; color: var(--navy);
}
.sp2-idle-hint {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem; color: var(--muted);
}
.sp2-record-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin-top: 0.8rem;
  padding: 0.65rem 1.6rem;
  background: var(--navy); color: #fff;
  border: none; border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: background 0.15s;
}
.sp2-record-btn:hover { background: #2e4070; }

/* RECORDING */
.sp2-rec-panel { display: flex; flex-direction: column; gap: 0.8rem; }
.sp2-live-video {
  width: 100%; aspect-ratio: 4/3; max-width: 480px;
  border-radius: 12px; background: #000; object-fit: cover;
}
.sp2-rec-bar {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem; font-weight: 600; color: #c0392b;
}
.sp2-rec-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #c0392b; flex-shrink: 0;
  animation: sp2blink 1s step-start infinite;
}
@keyframes sp2blink { 50% { opacity: 0; } }
.sp2-rec-timer { margin-left: auto; font-variant-numeric: tabular-nums; }
.sp2-stop-btn {
  display: inline-flex; align-items: center;
  padding: 0.55rem 1.4rem; align-self: flex-start;
  background: #c0392b; color: #fff;
  border: none; border-radius: 9px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem; font-weight: 600;
  cursor: pointer; transition: background 0.15s;
}
.sp2-stop-btn:hover { background: #a93226; }

/* RESULT */
.sp2-result-panel { display: flex; flex-direction: column; gap: 1rem; }
.sp2-result-video {
  width: 100%; aspect-ratio: 4/3; max-width: 480px;
  border-radius: 12px; background: #000;
}
.sp2-result-btns { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.sp2-retake-btn {
  padding: 0.55rem 1.3rem;
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--line); border-radius: 9px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
}
.sp2-retake-btn:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.sp2-download-btn {
  display: inline-flex; align-items: center;
  padding: 0.55rem 1.3rem;
  background: var(--green); color: #fff;
  border: none; border-radius: 9px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: filter 0.15s;
}
.sp2-download-btn:hover { filter: brightness(0.9); }

/* TEACHER SECTION */
.sp2-teacher-wrap {
  border-top: 1.5px solid var(--line); padding-top: 1rem;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.sp2-teacher-note {
  display: flex; align-items: center; gap: 0.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem; color: var(--muted);
}
.sp2-send-btn {
  display: inline-flex; align-items: center; align-self: flex-start;
  padding: 0.55rem 1.4rem;
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--gold); border-radius: 9px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
}
.sp2-send-btn:hover:not(:disabled) { background: var(--gold); color: var(--navy); }
.sp2-send-btn:disabled { opacity: 0.55; cursor: default; }
.sp2-send-status {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem; color: var(--muted);
}
.sp2-send-info { color: var(--navy); }
.sp2-error {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem; color: #c0392b; margin-top: 0.4rem;
}
.sp2-file-input { display: none; }

/* ─── Speaking Collapse ─────────────────────────────────────── */
.speaking-header-row {
  display: flex; align-items: center;
  justify-content: space-between; gap: 1rem;
}
.speaking-toggle-btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: none; border: none; padding: 0;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); transition: color 0.15s;
}
.speaking-toggle-btn:hover { color: var(--navy); }
.speaking-toggle-btn:hover .sp-chevron { color: var(--navy); }
.sp-chevron {
  color: var(--gold); flex-shrink: 0;
  transition: transform 0.2s, color 0.15s;
}
.speaking-toggle-btn.sp-open .sp-chevron { transform: rotate(180deg); }
.speaking-next-ep-btn {
  display: inline-flex; align-items: center;
  padding: 0.4rem 1rem;
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--line); border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  transition: all 0.15s;
}
.speaking-next-ep-btn:hover {
  background: var(--navy); color: #fff; border-color: var(--navy);
}
.speaking-body { margin-top: 1.4rem; }

/* ─── Chapter Reminder ───────────────────────────────────────── */
.remind-wrap {
  display: flex; flex-direction: column; align-items: flex-end;
  margin-top: 0.6rem;
}
.remind-trigger {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: none; border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem; color: var(--muted);
  cursor: pointer; padding: 0.2rem 0;
  transition: color 0.15s;
}
.remind-trigger:hover { color: var(--navy); }
.remind-trigger svg { opacity: 0.6; }
.remind-trigger:hover svg { opacity: 1; }

.remind-panel {
  margin-top: 0.5rem;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  width: 100%; max-width: 320px;
}
.remind-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.remind-pill {
  padding: 0.38rem 0.85rem;
  background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem; color: var(--navy);
  cursor: pointer; transition: all 0.15s;
}
.remind-pill:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.remind-set {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem; color: var(--ink); flex-wrap: wrap;
}
.remind-set svg { color: var(--green); flex-shrink: 0; }
.remind-cancel {
  background: none; border: none;
  font-family: 'Inter', sans-serif; font-size: 0.75rem;
  color: var(--muted); cursor: pointer; text-decoration: underline;
  margin-left: auto; padding: 0;
}
.remind-cancel:hover { color: #c0392b; }
.remind-note {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem; color: var(--muted); margin: 0;
}

/* ─── Course Complete ───────────────────────────────────────── */
.course-complete {
  background: var(--navy);
  border-radius: 16px;
  padding: 2rem 2rem 1.8rem;
  margin: 2rem 0;
  text-align: center;
}
.course-complete-tagline {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--gold);
  line-height: 1.4;
  margin-bottom: 1.4rem;
}
.course-complete-stats {
  list-style: none;
  margin: 0 auto; padding: 0;
  max-width: 300px;
  display: flex; flex-direction: column; gap: 0.65rem;
  text-align: left;
}
.course-complete-stats li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 0.55rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem; color: rgba(255,255,255,0.78);
}
.course-complete-stats li::before {
  content: '\2713';
  color: var(--gold); font-weight: 700; font-size: 0.8rem;
  flex-shrink: 0;
}
.course-complete-stats strong { color: #fff; font-weight: 600; }

/* ─── Grammar Exercises ─────────────────────────────────────── */
.grammar-ex-section {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 0 14px 14px 0;
  padding: 1.4rem 1.5rem;
  margin: 2rem 0;
}
.grammar-ex-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.ex-type {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem; color: var(--muted);
  font-style: italic; margin-bottom: 0.2rem;
}

/* ─── Lead CTA ──────────────────────────────────────────────── */
.lead-cta {
  background: var(--white);
  border: 1.5px solid var(--gold);
  border-radius: 16px;
  padding: 2rem 2rem 1.8rem;
  margin: 2rem 0;
}
.lead-cta-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.lead-cta-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem; color: var(--muted);
  line-height: 1.55; margin-bottom: 1.4rem;
}
.lead-form {
  display: flex; flex-direction: column; gap: 0.75rem;
}
.lead-input {
  width: 100%; padding: 0.7rem 1rem;
  border: 1.5px solid var(--line); border-radius: 9px;
  font-family: 'Inter', sans-serif; font-size: 0.9rem;
  color: var(--ink); background: var(--bg);
  outline: none; transition: border-color 0.15s;
  box-sizing: border-box;
}
.lead-input:focus { border-color: var(--navy); background: #fff; }
.lead-input::placeholder { color: #aab; }
.lead-submit {
  align-self: flex-start;
  padding: 0.65rem 1.8rem;
  background: var(--gold); color: var(--navy);
  border: none; border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem; font-weight: 700;
  cursor: pointer; transition: filter 0.15s;
}
.lead-submit:hover:not(:disabled) { filter: brightness(0.92); }
.lead-submit:disabled { opacity: 0.6; cursor: default; }
.lead-status {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem; margin-top: 0.6rem;
  min-height: 1.2em;
}
.lead-status-ok  { color: var(--green); font-weight: 600; }
.lead-status-err { color: #c0392b; }

/* ─── Grammar Exercise Panel ─────────────────────────────────── */
.grammar-toggle {
  display: inline-flex; align-items: center;
  background: transparent; color: var(--navy);
  border: 1.5px solid var(--gold); border-radius: 999px;
  padding: 0.5rem 1.1rem; font-size: 0.82rem; font-weight: 600;
  font-family: 'Inter', sans-serif; cursor: pointer;
  transition: all 0.18s; letter-spacing: 0.01em;
}
.grammar-toggle:hover  { background: rgba(201,162,39,0.12); }
.grammar-toggle.active { background: var(--gold); color: var(--navy); border-color: var(--gold); }

.grammar-ex-panel {
  background: var(--white); border: 1.5px solid var(--line);
  border-left: 4px solid var(--gold); border-radius: 0 14px 14px 0;
  padding: 1.5rem 1.5rem 1.2rem; margin: 2rem 0;
}
.gex-panel-title {
  font-family: 'Inter', sans-serif; font-size: 0.7rem;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.4rem;
}
.gex-block { padding-bottom: 1.6rem; margin-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.gex-block:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }
.gex-type-label {
  font-family: 'Inter', sans-serif; font-size: 0.67rem;
  font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy); opacity: 0.45; margin-bottom: 0.3rem;
}
.gex-instruction {
  font-family: 'Inter', sans-serif; font-size: 0.88rem;
  color: var(--ink); line-height: 1.5; margin-bottom: 0.45rem;
}
.gex-instruction kbd {
  display: inline-block; background: var(--bg); border: 1px solid var(--line);
  border-radius: 4px; padding: 0 5px; font-size: 0.78rem;
  font-family: 'Inter', sans-serif; color: var(--muted);
}
.gex-example {
  font-family: 'Inter', sans-serif; font-size: 0.8rem; color: var(--muted);
  font-style: italic; background: var(--bg); border-radius: 7px;
  padding: 0.4rem 0.8rem; margin-bottom: 1.1rem; line-height: 1.5;
}
.gex-example u { text-underline-offset: 3px; font-style: normal; }
.gex-sentence {
  font-family: 'Inter', sans-serif; font-size: 0.92rem;
  color: var(--ink); line-height: 2.5; margin-bottom: 0.9rem;
}
.gex-input {
  display: inline-block; border: none;
  border-bottom: 2px solid var(--navy); background: transparent;
  font-family: 'Inter', sans-serif; font-size: 0.9rem;
  font-weight: 500; color: var(--navy); outline: none;
  padding: 0 4px 1px; vertical-align: baseline; min-width: 64px;
  transition: border-color 0.15s, color 0.15s;
}
.gex-input:focus  { border-bottom-color: var(--gold); }
.gex-input.correct  { border-bottom-color: var(--green); color: var(--green); font-weight: 600; }
.gex-input.wrong    { border-bottom-color: #c0392b; color: #c0392b; }
.gex-input.revealed { border-bottom-color: var(--gold); color: var(--gold); font-style: italic; }
.gex-hint { font-family: 'Inter', sans-serif; font-size: 0.72rem; color: var(--muted); margin-left: 2px; font-style: italic; }
.gex-controls { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.4rem; }
.gex-check {
  padding: 0.42rem 1.2rem; background: var(--navy); color: #fff;
  border: none; border-radius: 8px; font-family: 'Inter', sans-serif;
  font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: filter 0.15s;
}
.gex-check:hover { filter: brightness(1.2); }
.gex-retry {
  padding: 0.42rem 1rem; background: transparent; color: var(--muted);
  border: 1.5px solid var(--line); border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
}
.gex-retry:hover { border-color: var(--navy); color: var(--navy); }
.gex-score { font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 700; }
.gex-score.perfect   { color: var(--green); }
.gex-score.good      { color: var(--gold); }
.gex-score.try-again { color: #c0392b; }

.gex-order-list { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1rem; }
.gex-order-item {
  display: flex; align-items: flex-start; gap: 0.65rem;
  padding: 0.65rem 0.9rem; background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 9px;
  cursor: pointer; transition: background 0.12s, border-color 0.12s;
  font-family: 'Inter', sans-serif; font-size: 0.88rem;
  color: var(--ink); line-height: 1.45;
  user-select: none; -webkit-user-select: none;
}
.gex-order-item:hover    { border-color: var(--navy); background: #fff; }
.gex-order-item.selected { border-color: var(--navy); background: #fff; }
.gex-order-item.correct  { border-color: var(--green); background: rgba(39,174,96,0.05); cursor: default; }
.gex-order-item.wrong    { border-color: #c0392b; background: rgba(192,57,43,0.05); cursor: default; }
.gex-rank-badge {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 700;
  color: var(--muted); transition: all 0.12s; margin-top: 2px;
}
.gex-order-item.selected .gex-rank-badge { border-color: var(--navy); background: var(--navy); color: #fff; }
.gex-order-item.correct  .gex-rank-badge { border-color: var(--green); background: var(--green); color: #fff; }
.gex-order-item.wrong    .gex-rank-badge { border-color: #c0392b; background: #c0392b; color: #fff; }

/* Keep input + (verb) hint on the same line on mobile */
.gex-gap-wrap { display: inline-block; white-space: nowrap; vertical-align: baseline; }

/* One-at-a-time progress & navigation */
.gex-progress {
  font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1.2rem;
}
.gex-next-btn {
  display: inline-block; margin-top: 1rem;
  padding: 0.42rem 1.2rem;
  background: var(--navy); color: #fff;
  border: none; border-radius: 8px;
  font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 600;
  cursor: pointer; transition: filter 0.15s;
}
.gex-next-btn:hover { filter: brightness(1.2); }
.gex-next-done {
  margin-top: 1rem;
  font-family: 'Inter', sans-serif; font-size: 0.84rem; font-weight: 600;
  color: var(--green);
}

/* ─── QA Exercise Type ───────────────────────────────────────── */
.gex-qa-item { margin-bottom: 1.3rem; }
.gex-qa-item:last-of-type { margin-bottom: 0.2rem; }
.gex-qa-q {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}
.gex-qa-input {
  display: block;
  width: 100%;
  padding: 0.48rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s;
  margin-bottom: 0.35rem;
}
.gex-qa-input:focus { outline: none; border-color: var(--gold); }
.gex-qa-answers {
  padding: 0.7rem 0.9rem 0.75rem;
  background: var(--cream);
  border-radius: 8px;
  border-left: 3px solid var(--gold);
  margin-top: 0.35rem;
}
.gex-qa-short-ans {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.5;
}
.gex-qa-full-ans {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.55;
}

/* ─── Vocab Match Exercise ───────────────────────────────────── */
.vocab-match {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.vocab-match-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.vocab-match-grid {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
[data-col="words"] { flex: 0 0 auto; }
[data-col="defs"]  { flex: 1; }
.vocab-match-col { display: flex; flex-direction: column; gap: 0.4rem; }
.vm-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.44rem 0.7rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
[data-col="words"] .vm-item { font-weight: 600; min-width: 7.5rem; }
.vm-item:hover:not(.vm-matched) { border-color: var(--navy); }
.vm-item.vm-selected { border-color: var(--gold); background: rgba(201,162,39,0.1); }
.vm-item.vm-wrong    { border-color: #c0392b; background: rgba(192,57,43,0.08); }
.vm-item.vm-matched  { border-color: var(--navy); background: var(--navy); color: var(--white); cursor: default; }
.vm-score { margin-top: 0.75rem; font-family: 'Inter', sans-serif; font-size: 0.84rem; font-weight: 600; }
.vm-score.vm-done { color: var(--green); }

/* ─── Episode CTA (after comprehension questions) ───────────── */
.episode-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 2.5rem 0 1.5rem;
  text-align: center;
}
.episode-cta-btn {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 2.6rem;
  border-radius: 10px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: filter 0.15s, transform 0.1s;
}
.episode-cta-btn:hover {
  color: var(--white);
  filter: brightness(1.18);
  transform: translateY(-1px);
}
.episode-cta-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.episode-cta-sub:hover { color: var(--navy); }

/* ─── Grammar Reference Button ──────────────────────────────── */
.grammar-ref-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
  padding: 0.52rem 1.2rem;
  background: transparent;
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.grammar-ref-btn:hover { background: rgba(201,162,39,0.1); }

/* ─── Grammar Modal ──────────────────────────────────────────── */
.gm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,39,68,0.6);
  z-index: 500;
  display: none;
  overflow-y: auto;
  padding: 2rem 1rem 4rem;
  -webkit-overflow-scrolling: touch;
}
.gm-overlay.gm-open { display: block; }
.gm-modal {
  background: var(--white);
  border-radius: 18px;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  padding: 2.2rem 2.4rem 2.4rem;
  position: relative;
}
.gm-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: none;
  background: var(--cream);
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.gm-close:hover { background: var(--line); color: var(--navy); }

.gm-modal-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.gm-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 2rem;
}

.gm-section {
  padding-bottom: 2.4rem;
  margin-bottom: 2.4rem;
  border-bottom: 1px solid var(--line);
}
.gm-section:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }

.gm-section-tag {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.18rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.gm-intro {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.gm-sentence {
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  font-style: italic;
  color: var(--navy);
  padding: 0.75rem 1.1rem;
  background: var(--cream);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.gm-timeline {
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  background: var(--cream);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.3rem;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.6;
  color: var(--ink);
}

.gm-yn-block { margin-bottom: 1.3rem; }
.gm-yn-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}
.gm-yn-row:last-child { border-bottom: none; }
.gm-yn-q { font-family: 'Inter', sans-serif; font-size: 0.88rem; flex: 1; }
.gm-yn-btns { display: flex; gap: 0.4rem; flex-shrink: 0; }
.gm-yn-btn {
  padding: 0.22rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.gm-yn-btn:hover:not(:disabled) { border-color: var(--navy); }
.gm-yn-btn.gm-correct { background: var(--green); border-color: var(--green); color: var(--white); }
.gm-yn-btn.gm-wrong   { background: #c0392b; border-color: #c0392b; color: var(--white); }

.gm-form-box {
  font-family: 'Courier New', monospace;
  font-size: 0.84rem;
  background: #eef1f8;
  border: 1px solid #cdd5e8;
  border-radius: 8px;
  padding: 0.7rem 1rem;
  margin: 1.3rem 0;
  white-space: pre;
  overflow-x: auto;
  color: var(--navy);
  line-height: 1.7;
}

.gm-explain {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.6rem;
}
.gm-explain-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 1.2rem;
}

.gm-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.3rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
}
.gm-table th {
  background: var(--navy);
  color: var(--white);
  padding: 0.38rem 0.7rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}
.gm-table td {
  padding: 0.38rem 0.7rem;
  border-bottom: 1px solid var(--line);
}
.gm-table tr:last-child td { border-bottom: none; }
.gm-table td strong { color: var(--navy); }

.gm-rules-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.gm-rule {
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  line-height: 1.5;
  margin-bottom: 0.55rem;
  padding-left: 0.8rem;
  border-left: 2px solid var(--line);
}
.gm-rule-key { font-weight: 600; color: var(--navy); }
.gm-rule-eg  { color: var(--muted); display: block; margin-top: 0.1rem; }

.gm-mistake-box {
  background: var(--cream);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  margin: 1.2rem 0;
}
.gm-mistake-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--navy);
}
.gm-wrong { font-family: 'Inter', sans-serif; font-size: 0.88rem; color: #c0392b; margin-bottom: 0.3rem; }
.gm-right  { font-family: 'Inter', sans-serif; font-size: 0.88rem; color: var(--green); margin-bottom: 0.5rem; }
.gm-note   { font-family: 'Inter', sans-serif; font-size: 0.82rem; color: var(--muted); font-style: italic; }

.gm-practice { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px dashed var(--line); }
.gm-practice-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.gm-type-wrap { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.gm-type-q { font-family: 'Inter', sans-serif; font-size: 0.88rem; }
.gm-type-input {
  width: 72px;
  padding: 0.3rem 0.6rem;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  transition: border-color 0.12s;
}
.gm-type-input.gm-correct    { border-color: var(--green); background: rgba(45,122,79,0.08); }
.gm-type-input.gm-wrong      { border-color: #c0392b; background: rgba(192,57,43,0.08); }
.gm-type-check {
  padding: 0.3rem 0.85rem;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.gm-type-check:disabled { opacity: 0.5; cursor: default; }
.gm-type-fb { font-family: 'Inter', sans-serif; font-size: 0.82rem; margin-top: 0.4rem; font-weight: 600; }
.gm-type-fb.ok  { color: var(--green); }
.gm-type-fb.err { color: #c0392b; }

.gm-choice-q { font-family: 'Inter', sans-serif; font-size: 0.88rem; margin-bottom: 0.6rem; }
.gm-choice-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.gm-choice-btn {
  padding: 0.38rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-family: 'Courier New', monospace;
  font-size: 0.84rem;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.gm-choice-btn:hover:not(:disabled) { border-color: var(--navy); }
.gm-choice-btn.gm-correct { background: var(--green); border-color: var(--green); color: var(--white); }
.gm-choice-btn.gm-wrong   { background: #c0392b; border-color: #c0392b; color: var(--white); }
.gm-choice-btn:disabled   { cursor: default; }

@media (max-width: 600px) {
  .gm-modal { padding: 1.5rem 1.2rem 2rem; }
  .gm-modal-title { font-size: 1.5rem; }
  .gm-yn-row { flex-wrap: wrap; gap: 0.5rem; }
  .gm-form-box, .gm-timeline { font-size: 0.75rem; }
}

/* ─── Responsive ─────────────────────────────────────────────── */
/* ─── Talk to Holmes / Watson ────────────────────────────────── */
.talk-section { margin: 0; }
.talk-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}
.talk-q-block {
  margin-bottom: 1.2rem;
  padding: 1.1rem 1.3rem 1.2rem;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 12px;
}
.talk-q-block:last-child { margin-bottom: 0; }
.talk-char {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.talk-question {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 0.85rem;
  line-height: 1.55;
}
.talk-yn-row { display: flex; gap: 0.5rem; }
.talk-yn-btn {
  padding: 0.32rem 1.2rem;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.15s;
}
.talk-yn-btn:hover:not(:disabled) { border-color: var(--navy); color: var(--navy); }
.talk-yn-btn.talk-sel { background: var(--navy); border-color: var(--navy); color: var(--white); }
.talk-yn-btn:disabled { cursor: default; }
.talk-full { margin-top: 0.9rem; }
.talk-textarea {
  width: 100%;
  min-height: 80px;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--ink);
  resize: vertical;
  background: var(--cream);
  transition: border-color 0.15s, background 0.15s;
  display: block;
  margin-bottom: 0.55rem;
}
.talk-textarea:focus { outline: none; border-color: var(--navy); background: var(--white); }
.talk-see-ex {
  background: none; border: none;
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem; font-weight: 600;
  cursor: pointer; padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.talk-see-ex:hover { color: var(--navy); }
.talk-example {
  margin-top: 0.7rem;
  padding: 0.8rem 1rem;
  background: var(--cream);
  border-radius: 8px;
  border-left: 3px solid var(--gold);
}
.talk-example p {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.6;
}
.talk-hl {
  font-weight: 700;
  color: var(--navy);
  background: rgba(201,162,39,0.18);
  border-radius: 3px;
  padding: 0 2px;
}

@media (max-width: 600px) {
  .lesson-top { padding: 0.6rem 1rem; gap: 0.5rem; }
  .course-name { display: none; }
  .reading-wrap { padding: 1.5rem 1rem 3.5rem; }
  .reading-body { font-size: 1.03rem; }
  .pull-quote { font-size: 1rem; padding: 1.1rem 1.2rem; }
  .chapter-hero { padding: 2.5rem 1.2rem 2rem; }
  .watson-intro { padding: 1.2rem 1.3rem; }
  .course-hero { padding: 2.5rem 1.2rem 2rem; }
  /* Audio buttons on their own row, toggles below */
  .audio-listen-group {
    display: flex; flex: 0 0 100%; gap: 0.6rem; flex-wrap: wrap;
  }
  .talk-q-block { padding: 0.9rem 1rem 1rem; }
}

/* ─── Yes / No Quiz ─────────────────────────────────────────── */
.yn-quiz {
  margin: 2rem 0;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}
.yn-quiz-header {
  background: var(--navy);
  padding: 1rem 1.5rem;
}
.yn-quiz-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; font-weight: 700;
  color: var(--white); margin-bottom: 0.2rem;
}
.yn-quiz-instruction {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}
.yn-quiz-body { background: var(--white); padding: 0.5rem 1.5rem; }
.yn-question {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.yn-question:last-of-type { border-bottom: none; }
.yn-q-text {
  font-size: 0.95rem; color: var(--ink);
  margin-bottom: 0.7rem; line-height: 1.5;
}
.yn-q-num { font-weight: 700; color: var(--navy); margin-right: 0.2rem; }
.yn-options { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.yn-btn {
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.42rem 1.1rem;
  font-size: 0.84rem; font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--ink); cursor: pointer;
  transition: all 0.15s;
}
.yn-btn:hover { border-color: var(--navy); background: rgba(26,39,68,0.05); }
.yn-btn.yn-selected { background: var(--navy); border-color: var(--navy); color: #fff; }
.yn-btn.yn-correct  { background: var(--green); border-color: var(--green); color: #fff; }
.yn-btn.yn-wrong    { background: #c0392b; border-color: #c0392b; color: #fff; }
.yn-feedback {
  font-size: 0.8rem; margin-top: 0.45rem;
  min-height: 1.1rem; line-height: 1.45;
}
.yn-feedback.yn-ok  { color: var(--green); font-weight: 600; }
.yn-feedback.yn-err { color: #c0392b; }
.yn-quiz-footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding: 1rem 1.5rem;
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
}
.yn-check-btn {
  background: var(--navy); color: #fff; border: none;
  border-radius: 999px; padding: 0.58rem 1.4rem;
  font-size: 0.87rem; font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer; transition: background 0.15s;
}
.yn-check-btn:hover { background: #253559; }
.yn-retry-btn {
  display: none;
  background: transparent; border: 1.5px solid var(--navy);
  border-radius: 999px; padding: 0.52rem 1.2rem;
  font-size: 0.84rem; font-weight: 600;
  font-family: 'Inter', sans-serif; color: var(--navy);
  cursor: pointer; transition: all 0.15s;
}
.yn-retry-btn:hover { background: rgba(26,39,68,0.06); }
.yn-score {
  font-size: 0.88rem; font-weight: 700; color: var(--navy);
  margin-left: auto;
}
