/* =====================================================================
   LESSON-SHARED.CSS
   ----------------------------
   CSS extracted from inline <style> blocks duplicated across the 23
   Greek lesson pages. Loading once = browser caches once = subsequent
   lesson page loads skip ~3KB of duplicate parsing per page.
   ===================================================================== */

/* ── Tip callout (green) ── */
.callout.tip {
  border-left-color: #2d7d46;
  background: rgba(45, 125, 70, 0.04);
}
[data-theme="dark"] .callout.tip {
  background: rgba(45, 125, 70, 0.08);
}
.callout.tip .callout-label {
  color: #2d7d46;
}
[data-theme="dark"] .callout.tip .callout-label {
  color: #4caf70;
}

/* ── Embedded slide-deck panel (the section that wraps the iframe at the
   top of every Greek lesson page) ── */
.lesson-slides {
  margin: 28px 0 36px;
  background: linear-gradient(180deg, rgba(184,134,11,0.05), rgba(184,134,11,0.02));
  border: 1px solid rgba(184,134,11,0.3);
  border-left: 4px solid var(--crimson, #963131);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03), 0 4px 18px rgba(184,134,11,0.06);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.lesson-slides:hover {
  box-shadow: 0 2px 4px rgba(0,0,0,0.05), 0 12px 36px rgba(184,134,11,0.10);
}
[data-theme="dark"] .lesson-slides {
  box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 4px 18px rgba(212,175,100,0.04);
}
[data-theme="dark"] .lesson-slides:hover {
  box-shadow: 0 2px 4px rgba(0,0,0,0.5), 0 12px 36px rgba(212,175,100,0.07);
}
.lesson-slides .ls-header {
  padding: 22px 28px 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.lesson-slides .ls-header > div { flex: 1; min-width: 0; }
.lesson-slides .ls-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  color: var(--gold-deep, #8b6914);
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 600;
}
.lesson-slides .ls-title {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  margin: 0 0 8px;
  color: var(--ink, #2a2a2a);
  letter-spacing: 0.02em;
}
.lesson-slides .ls-subtitle {
  font-family: 'EB Garamond', 'Cardo', Georgia, serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft, #4a4a4a);
  margin: 0;
  max-width: 680px;
}
.lesson-slides .ls-fullscreen {
  font-family: 'Cinzel', serif;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson, #963131);
  text-decoration: none;
  padding: 9px 16px;
  border: 1px solid rgba(150,49,49,0.5);
  border-radius: 3px;
  white-space: nowrap;
  align-self: flex-start;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  font-weight: 600;
}
.lesson-slides .ls-fullscreen:hover {
  background: var(--crimson, #963131);
  border-color: var(--crimson, #963131);
  color: #fff;
  box-shadow: 0 2px 8px rgba(150,49,49,0.25);
}
.lesson-slides .ls-fullscreen:hover .ls-arrow { color: #fff; }
.lesson-slides .ls-arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.2s;
}
.lesson-slides .ls-fullscreen:hover .ls-arrow {
  transform: translate(2px, -2px);
}
.lesson-slides .ls-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #f4ede0;
  border-top: 1px solid rgba(184,134,11,0.2);
}
.lesson-slides .ls-frame iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
  display: block;
}
[data-theme="dark"] .lesson-slides {
  background: linear-gradient(180deg, rgba(212,175,100,0.04), rgba(212,175,100,0.02));
  border-color: rgba(212,175,100,0.3);
}
[data-theme="dark"] .lesson-slides .ls-title { color: var(--text, #e6dcc6); }
[data-theme="dark"] .lesson-slides .ls-subtitle { color: var(--text-soft, #c8b896); }
[data-theme="dark"] .lesson-slides .ls-fullscreen {
  color: var(--accent-soft, #d4af64);
  border-color: rgba(212,175,100,0.4);
}
@media (max-width: 700px) {
  .lesson-slides .ls-header { flex-direction: column; padding: 18px 20px 12px; }
  .lesson-slides .ls-fullscreen { align-self: stretch; text-align: center; }
  .lesson-slides .ls-title { font-size: 1.15rem; }
  .lesson-slides .ls-subtitle { font-size: 0.95rem; }
}

/* =====================================================================
   BEGINNER-ENTRY + VISUAL-POLISH PASS (added once; shared by all lessons)
   Keeps the existing palette, typography, and dark-mode pattern.
   ===================================================================== */

/* ── 3-pass route: three small cards ── */
.beginner-route {
  margin: 18px 0; padding: 16px 18px;
  border: 1px solid rgba(184,134,11,0.30);
  border-left: 4px solid var(--accent, #b8860b);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(184,134,11,0.05), rgba(184,134,11,0.015));
}
[data-theme="dark"] .beginner-route {
  background: rgba(212,175,100,0.05);
  border-color: rgba(212,175,100,0.30);
}
.beginner-route .br-label {
  display: block; font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--gold-deep, #8c6f4d); margin-bottom: 12px;
}
.pass-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 680px) { .pass-grid { grid-template-columns: 1fr; } }
.pass-card {
  background: rgba(255,253,248,0.7); border: 1px solid rgba(184,134,11,0.22);
  border-radius: 6px; padding: 12px 14px;
}
[data-theme="dark"] .pass-card { background: rgba(255,255,255,0.03); border-color: rgba(212,175,100,0.20); }
.pass-card .pass-name {
  display: block; font-family: 'Cinzel', 'EB Garamond', serif; font-weight: 700;
  font-size: 0.95rem; color: var(--accent, #b8860b); margin-bottom: 6px;
}
.pass-card .pass-body {
  font-family: 'EB Garamond', Georgia, serif; font-size: 0.95rem; line-height: 1.5;
  color: var(--ink-soft, #56503f);
}
[data-theme="dark"] .pass-card .pass-body { color: var(--text-soft, #c8b896); }

/* ── Today's minimum: distinct crimson accent (vs gold for the route) ── */
.minimum-path {
  margin: 18px 0; padding: 16px 18px;
  border: 1px solid rgba(150,49,49,0.28);
  border-left: 4px solid var(--crimson, #963131);
  border-radius: 8px;
  background: rgba(150,49,49,0.04);
}
[data-theme="dark"] .minimum-path { background: rgba(189,79,79,0.08); border-color: rgba(189,79,79,0.30); }
.minimum-path .mp-label {
  display: block; font-family: 'Cinzel', 'EB Garamond', serif; font-weight: 700;
  font-size: 1.02rem; color: var(--crimson, #963131); margin-bottom: 2px;
}
.minimum-path .mp-help {
  font-family: 'EB Garamond', Georgia, serif; font-style: italic; font-size: 0.9rem;
  color: var(--text-muted, #6b6256); margin-bottom: 10px;
}
.minimum-path ul { margin: 0 0 0 20px; padding: 0; }
.minimum-path li { margin: 5px 0; font-family: 'EB Garamond', Georgia, serif; font-size: 0.97rem; line-height: 1.5; }

/* ── Section-type badges (one per major h2) ── */
.section-badge {
  display: inline-block; font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-right: 10px;
  border: 1px solid currentColor; line-height: 1.4; white-space: nowrap;
}
.badge-core      { color: #4a6076; }
.badge-practice  { color: #4f7a4a; }
.badge-reference { color: #8c6f4d; }
.badge-deep      { color: #6b4a8c; }
[data-theme="dark"] .badge-core      { color: #8ba6c2; }
[data-theme="dark"] .badge-practice  { color: #8fc78a; }
[data-theme="dark"] .badge-reference { color: #d4af64; }
[data-theme="dark"] .badge-deep      { color: #b89ad4; }

/* ── Guided-practice reassurance callout (before 20-example sections) ── */
.guided-practice {
  margin: 20px 0; padding: 14px 18px;
  border: 1px solid rgba(79,122,74,0.30); border-left: 4px solid #4f7a4a;
  border-radius: 8px; background: rgba(79,122,74,0.05);
}
[data-theme="dark"] .guided-practice { background: rgba(79,122,74,0.12); border-color: rgba(143,199,138,0.30); }
.guided-practice .gp-label {
  display: block; font-family: 'Inter', system-ui, sans-serif; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: #4f7a4a; margin-bottom: 4px;
}
[data-theme="dark"] .guided-practice .gp-label { color: #8fc78a; }
.guided-practice .gp-body {
  font-family: 'EB Garamond', Georgia, serif; font-size: 0.97rem; line-height: 1.5;
  color: var(--ink-soft, #56503f);
}
[data-theme="dark"] .guided-practice .gp-body { color: var(--text-soft, #c8b896); }

/* ── Scan-ability polish (CSS only; no markup rewrite) ── */
/* Larger, prominent Greek headword in every parsing drill */
[class*="parse-drill"] .drill-form { font-size: 1.5rem; line-height: 1.3; }
/* Generic helper classes requested in the brief */
.greek-form { font-family: 'Cardo', 'EB Garamond', serif; font-size: 1.5rem; font-weight: 600; color: var(--ink, #25221d); }
.parse-line { font-family: 'Inter', system-ui, sans-serif; font-size: 0.92rem; letter-spacing: 0.02em; }
.translation-line { font-style: italic; color: var(--ink-soft, #56503f); }
/* Paradigm tables: a touch more breathing room + slightly larger Greek; scroll on mobile */
.paradigm table td.greek, .paradigm .pt-greek { font-size: 1.06em; }
.paradigm table th, .paradigm table td { padding-top: 9px; padding-bottom: 9px; }
@media (max-width: 680px) { .paradigm { overflow-x: auto; -webkit-overflow-scrolling: touch; } }

/* ── Memory-trainer launch button (shared; was inline in early lessons) ── */
.trainer-launch { margin: 18px auto 22px; max-width: 640px; }
.trainer-launch-btn { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border: 1.5px solid var(--accent, #b8860b); border-radius: 10px; background: linear-gradient(135deg, rgba(184,134,11,0.08), rgba(184,134,11,0.02)); color: var(--text, #25221d); text-decoration: none; transition: background .15s, transform .1s, box-shadow .15s; box-shadow: 0 2px 8px rgba(184,134,11,0.08); }
.trainer-launch-btn:hover { background: linear-gradient(135deg, rgba(184,134,11,0.16), rgba(184,134,11,0.06)); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(184,134,11,0.16); }
.trainer-launch-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; min-width: 38px; border-radius: 999px; background: var(--accent, #b8860b); color: #ffffff; font-size: 0.95rem; }
.trainer-launch-text { display: grid; gap: 3px; }
.trainer-launch-text strong { font-family: 'Cinzel', 'EB Garamond', serif; font-size: 1.02rem; letter-spacing: 0.04em; color: var(--accent, #b8860b); }
.trainer-launch-sub { font-family: 'EB Garamond', Georgia, serif; font-size: 0.9rem; color: var(--text-muted, #676056); font-style: italic; line-height: 1.4; }
[data-theme="dark"] .trainer-launch-btn { color: var(--text, #e6dcc6); }

/* ── Worked-example card for new lessons 24+ (lean, shares drill look) ── */
.wex { margin: 14px 0; padding: 14px 18px; background: rgba(255,250,235,0.55); border-left: 4px solid var(--accent,#b8860b); border-radius: 0 8px 8px 0; font-family:'EB Garamond',Georgia,serif; line-height:1.55; }
[data-theme="dark"] .wex { background: rgba(60,50,35,0.4); }
.wex .wex-head { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; margin-bottom:6px; }
.wex .wex-num { display:inline-flex; align-items:center; justify-content:center; min-width:28px; height:28px; border-radius:999px; background:var(--accent,#b8860b); color:#fff; font-family:'Cinzel',serif; font-size:0.82rem; font-weight:700; }
.wex .wex-form { font-family:'Cardo','EB Garamond',serif; font-size:1.4rem; color:var(--ink,#25221d); font-weight:600; }
.wex .wex-parse { font-family:'Inter',system-ui,sans-serif; font-size:0.9rem; color:var(--crimson,#963131); letter-spacing:0.02em; margin:4px 0; }
.wex .wex-note { font-size:0.96rem; color:var(--ink-soft,#56503f); }
.wex .wex-tr { font-style:italic; color:var(--ink-soft,#56503f); margin-top:3px; }
.wex .wex-attest { font-family:'Inter',system-ui,sans-serif; font-size:0.74rem; letter-spacing:0.02em; color:var(--text-muted,#6b6256); margin-top:5px; }
[data-theme="dark"] .wex .wex-note, [data-theme="dark"] .wex .wex-tr { color: var(--text-soft,#c8b896); }

/* ── Guided-reading chunk for reading lessons 31-33 ── */
.read-chunk { margin:16px 0; padding:16px 18px; border:1px solid rgba(184,134,11,0.25); border-left:4px solid var(--crimson,#963131); border-radius:0 8px 8px 0; background:rgba(184,134,11,0.03); }
[data-theme="dark"] .read-chunk { background:rgba(212,175,100,0.04); border-color:rgba(212,175,100,0.25); }
.read-chunk .rc-ref { font-family:'Inter',system-ui,sans-serif; font-size:0.74rem; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--gold-deep,#8c6f4d); }
.read-chunk .rc-greek { font-family:'Cardo','EB Garamond',serif; font-size:1.25rem; line-height:1.6; color:var(--ink,#25221d); margin:6px 0; }
[data-theme="dark"] .read-chunk .rc-greek { color:var(--text,#e6dcc6); }
.read-chunk .rc-label { font-family:'Inter',system-ui,sans-serif; font-size:0.72rem; font-weight:700; letter-spacing:0.05em; text-transform:uppercase; color:var(--gold-deep,#8c6f4d); margin-top:8px; }
.read-chunk .rc-body { font-family:'EB Garamond',Georgia,serif; font-size:0.97rem; line-height:1.5; color:var(--ink-soft,#56503f); }
[data-theme="dark"] .read-chunk .rc-body { color:var(--text-soft,#c8b896); }
.read-chunk .rc-tr { font-style:italic; }
