/* =====================================================================
   HEBREW COURSE — Shared lesson styles
   Loaded after styles.css and lesson-shared.css on every
   hebrew-lesson-NN.html page. Mirrors greek.css but adds Hebrew-specific
   RTL handling, larger glyph sizes, and the Tiberian pointing system.
   ===================================================================== */

/* Hebrew text gets a larger font-size and a Hebrew-friendly family.
   Order: SBL Hebrew (if installed) → Ezra SIL → Frank Ruehl → fall back
   to Cardo (which has decent Hebrew coverage) → system Hebrew. */
.hebrew-text {
  font-family: 'SBL Hebrew', 'Ezra SIL', 'Frank Ruehl CLM', 'Cardo',
               'Times New Roman', serif;
  color: var(--text);
  font-size: 1.45em;
  direction: rtl;
  unicode-bidi: bidi-override;
  letter-spacing: 0.01em;
}

.hebrew-inline {
  font-family: 'SBL Hebrew', 'Ezra SIL', 'Frank Ruehl CLM', 'Cardo',
               'Times New Roman', serif;
  font-size: 1.4em;
  color: var(--text);
  direction: rtl;
  unicode-bidi: isolate;
}

/* Hebrew transliteration — italic Latin to distinguish from gloss */
.hebrew-translit {
  font-family: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  font-style: italic;
  color: var(--text-soft);
}

/* Hebrew vowel-name labels (kamatz, patach, etc.) */
.hebrew-vowel-name {
  font-family: 'Cinzel', serif;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}

/* =====================================================================
   Lesson meta — same as greek but using Hebrew accent character
   ===================================================================== */
.lesson-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.lesson-meta .lm-num {
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.lesson-meta .lm-sep { color: var(--text-faint); }

/* =====================================================================
   Objectives box — identical to greek
   ===================================================================== */
.objectives {
  background: var(--accent-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 26px;
  margin: 32px 0;
}
.objectives-heading {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.objectives ul {
  margin: 0;
  padding-left: 22px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-soft);
}
.objectives li { margin-bottom: 6px; }

/* =====================================================================
   Paradigm tables (alphabet table, vowel chart, etc.)
   The Hebrew column is wider and RTL-rendered.
   ===================================================================== */
.paradigm {
  margin: 28px 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
  overflow: hidden;
}
.paradigm-header {
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.paradigm-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
}
.paradigm-title .pt-hebrew,
.pt-hebrew {
  font-family: 'SBL Hebrew', 'Ezra SIL', 'Frank Ruehl CLM', 'Cardo', serif;
  text-transform: none;
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: 0;
  color: var(--text);
  direction: rtl;
  unicode-bidi: isolate;
}
.paradigm-title .pt-gloss,
.pt-gloss {
  text-transform: none;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-muted);
}

.paradigm table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.96rem;
}
.paradigm th,
.paradigm td {
  padding: 11px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
}
.paradigm th {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  background: var(--bg);
}
.paradigm tr:last-child td { border-bottom: 0; }

.paradigm td.hebrew {
  font-family: 'SBL Hebrew', 'Ezra SIL', 'Frank Ruehl CLM', 'Cardo',
               'Times New Roman', serif;
  font-size: 1.9rem;
  color: var(--text);
  direction: rtl;
  unicode-bidi: isolate;
  letter-spacing: 0;
  min-width: 90px;
  text-align: center;
}
.paradigm td.hebrew-large {
  font-size: 2.4rem;
}
.paradigm td.label {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text);
  white-space: nowrap;
}
.paradigm td.translit {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  color: var(--text-soft);
  font-size: 1.04rem;
}
.paradigm td.gloss {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.96rem;
  color: var(--text-soft);
  line-height: 1.55;
}

/* =====================================================================
   Example box — show a Hebrew phrase with translit + gloss
   ===================================================================== */
.example-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 20px 24px;
  margin: 22px 0;
}
.example-hebrew {
  font-family: 'SBL Hebrew', 'Ezra SIL', 'Frank Ruehl CLM', 'Cardo', serif;
  font-size: 2.1rem;
  color: var(--text);
  margin-bottom: 8px;
  direction: rtl;
  unicode-bidi: isolate;
  letter-spacing: 0;
  line-height: 1.45;
}
.example-translit {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.08rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.example-gloss {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-soft);
}
.example-gloss strong { color: var(--text); }

/* =====================================================================
   Section heading + lead
   ===================================================================== */
.section {
  margin: 44px 0;
}
.section-title {
  font-family: 'Cinzel', 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
  margin: 0 0 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--accent);
}
.section-lead {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-soft);
  margin: 0 0 22px;
  line-height: 1.55;
}
.subsection-title {
  font-family: 'Cinzel', 'Cormorant Garamond', serif;
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--accent);
  margin: 28px 0 12px;
  letter-spacing: 0.02em;
}

/* =====================================================================
   Prose body
   ===================================================================== */
.prose {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--text-soft);
}
.prose p { margin: 0 0 14px; }
.prose strong { color: var(--text); }
.prose em {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--text);
}

/* =====================================================================
   Callouts (tip, warning, memory hook, common error)
   ===================================================================== */
.callout {
  margin: 22px 0;
  padding: 16px 22px;
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-soft);
}
.callout .callout-label {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.callout.tip { border-left-color: #8aa37b; }
.callout.tip .callout-label { color: #6b8459; }
.callout.warning { border-left-color: #b06942; }
.callout.warning .callout-label { color: #b06942; }

.memory-hook {
  margin: 12px 0;
  padding: 12px 18px;
  background: rgba(184, 134, 11, 0.08);
  border: 1px dashed rgba(184, 134, 11, 0.4);
  border-radius: 6px;
}
.memory-hook .mh-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
}
.memory-hook .mh-text {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.96rem;
  color: var(--text-soft);
  margin-top: 6px;
  line-height: 1.6;
}

.common-error {
  margin: 22px 0;
  padding: 16px 22px;
  background: rgba(176, 105, 66, 0.06);
  border-left: 3px solid #b06942;
  border-radius: 6px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.98rem;
  line-height: 1.65;
}
.common-error .ce-label {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #b06942;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.common-error .ce-wrong {
  color: #b06942;
  margin-bottom: 4px;
  font-family: 'SBL Hebrew', 'Ezra SIL', 'Cardo', serif;
  font-size: 1.2rem;
  direction: rtl;
  unicode-bidi: isolate;
}
.common-error .ce-right {
  color: #6b8459;
  margin-bottom: 8px;
  font-family: 'SBL Hebrew', 'Ezra SIL', 'Cardo', serif;
  font-size: 1.2rem;
  direction: rtl;
  unicode-bidi: isolate;
}
.common-error .ce-explanation {
  color: var(--text-soft);
  font-size: 0.94rem;
  margin-top: 6px;
}

/* =====================================================================
   Self-check — quick recall prompt
   ===================================================================== */
.self-check {
  margin: 18px 0;
  padding: 14px 20px;
  background: rgba(184, 134, 11, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
}
.self-check .sc-label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
}
.self-check .sc-prompt {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.98rem;
  color: var(--text-soft);
  margin-top: 6px;
  line-height: 1.6;
}
.self-check details {
  margin-top: 8px;
  font-family: 'Source Serif 4', Georgia, serif;
}
.self-check summary {
  cursor: pointer;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
}
.self-check .sc-answer {
  margin-top: 8px;
  font-size: 0.94rem;
  color: var(--text-soft);
  line-height: 1.6;
}

/* =====================================================================
   Lesson watch (video companion box)
   ===================================================================== */
.lesson-watch {
  margin: 36px 0 24px;
  padding: 22px 26px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.lesson-watch-heading {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* =====================================================================
   Theological-vocab callout (used in later lessons)
   ===================================================================== */
.theological-note {
  margin: 24px 0;
  padding: 18px 24px;
  background: rgba(184, 134, 11, 0.05);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
}
.theological-note .tn-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.theological-note .tn-hebrew {
  font-family: 'SBL Hebrew', 'Ezra SIL', 'Cardo', serif;
  font-size: 1.7rem;
  color: var(--text);
  direction: rtl;
  unicode-bidi: isolate;
  margin-bottom: 4px;
}
.theological-note .tn-translit {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.theological-note .tn-gloss {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 0.98rem;
  color: var(--text-soft);
  line-height: 1.7;
}
