:root {
  color-scheme: light;
  --ink: #172433;
  --ink-soft: #526171;
  --navy: #173552;
  --navy-deep: #10283e;
  --navy-pale: #e8eef3;
  --gold: #b9852e;
  --gold-soft: #f2cf83;
  --paper: #fbfaf7;
  --parchment: #f2ecdf;
  --surface: #ffffff;
  --line: #d9dee3;
  --good: #236442;
  --good-bg: #e9f5ed;
  --warn: #8a5a14;
  --warn-bg: #fff4dc;
  --danger: #8d3434;
  --shadow: 0 18px 44px rgba(23, 36, 51, 0.09);
  --sidebar: 17.5rem;
  --topbar: 5rem;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.6;
}

button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, label, select { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--gold-soft);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  border-radius: 0.5rem;
  background: var(--navy);
  color: #fff;
  padding: 0.75rem 1rem;
  font-weight: 700;
}

.skip-link:focus { transform: translateY(0); }

.site-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  grid-template-rows: var(--topbar) minmax(0, 1fr);
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: var(--sidebar) 1fr;
  min-height: var(--topbar);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.brand {
  appearance: none;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.12);
  background: var(--navy-deep);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.35rem;
  text-align: left;
  cursor: pointer;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid rgba(242, 207, 131, 0.7);
  border-radius: 0.7rem;
  color: var(--gold-soft);
  font-family: "Times New Roman", serif;
  font-size: 1.85rem;
  line-height: 1;
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 0.96rem; letter-spacing: 0.01em; }
.brand small { color: #cdd8e2; font-size: 0.76rem; }

.top-progress {
  justify-self: end;
  align-self: center;
  width: min(16rem, 30vw);
  margin-right: clamp(1rem, 3vw, 2.5rem);
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--ink-soft);
  font-size: 0.8rem;
  margin-bottom: 0.38rem;
}

.progress-copy strong { color: var(--navy); }
.progress-track { height: 0.42rem; overflow: hidden; border-radius: 999px; background: #e8ecef; }
.progress-track span { display: block; width: 25%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--gold-soft)); transition: width .28s ease; }

.menu-button { display: none; }

.sidebar {
  position: sticky;
  top: var(--topbar);
  align-self: start;
  height: calc(100vh - var(--topbar));
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #f3f5f6;
}

.sidebar-inner { padding: 1.8rem 1rem; }

.language-switch {
  display: inline-flex;
  gap: 0.2rem;
  margin: 0 0 1.1rem;
  border: 1px solid #cfd8e0;
  border-radius: 0.65rem;
  background: #fff;
  padding: 0.22rem;
  box-shadow: 0 5px 14px rgba(16, 40, 62, 0.05);
}

.language-switch button {
  min-width: 2.65rem;
  border: 0;
  border-radius: 0.48rem;
  background: transparent;
  padding: 0.38rem 0.55rem;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.primary-nav { display: grid; gap: 0.35rem; margin-bottom: 1.5rem; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  background: transparent;
  padding: 0.72rem;
  color: #415060;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.nav-item:hover { background: #fff; }
.nav-item.active { border-color: #cfd8e0; background: #fff; color: var(--navy); box-shadow: 0 6px 18px rgba(16,40,62,.05); }
.nav-icon { display: grid; place-items: center; min-width: 2rem; height: 2rem; border-radius: 0.5rem; background: var(--navy-pale); color: var(--navy); font-weight: 800; }

.module-card {
  display: grid;
  grid-template-columns: 2.9rem 1fr;
  gap: 0.8rem;
  border-radius: 0.85rem;
  background: var(--navy);
  color: #fff;
  padding: 1rem;
  box-shadow: 0 12px 30px rgba(16,40,62,.16);
}

.module-number { color: var(--gold-soft); font-family: Georgia, serif; font-size: 1.55rem; font-weight: 700; }
.module-card strong, .module-card small { display: block; }
.module-card strong { margin-top: 0.45rem; line-height: 1.25; }
.module-card small { margin-top: 0.35rem; color: #cfdbe5; font-size: 0.76rem; }
.status-pill { display: inline-flex; border-radius: 999px; background: rgba(255,255,255,.12); padding: 0.16rem 0.48rem; color: var(--gold-soft); font-size: 0.68rem; font-weight: 800; }

.next-card {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px dashed #c8d0d7;
  border-radius: 0.8rem;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.next-card strong, .next-card span { display: block; }
.next-card strong { color: var(--ink); }
.next-card .eyebrow { margin-bottom: 0.35rem; }

.main-content {
  min-width: 0;
  padding: clamp(1.4rem, 4vw, 3.7rem) clamp(1rem, 4vw, 4.5rem) 5rem;
}

.screen { max-width: 76rem; margin: 0 auto; }
.lesson-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(16rem, .72fr); align-items: end; gap: clamp(1.5rem, 4vw, 4.5rem); margin-bottom: 2rem; }
.breadcrumbs { margin: 0 0 0.55rem; color: var(--ink-soft); font-size: 0.82rem; font-weight: 650; }
.breadcrumbs span { padding: 0 0.35rem; color: #96a1aa; }
h1, h2, h3 { color: var(--ink); font-family: Georgia, "Times New Roman", serif; letter-spacing: -0.025em; }
h1 { max-width: 18ch; margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.06; }
h2 { margin: 0; font-size: clamp(1.5rem, 2.5vw, 2rem); line-height: 1.2; }
h3 { margin: 0; font-size: 1.3rem; }
.lead { max-width: 46rem; margin: 0.9rem 0 0; color: var(--ink-soft); font-size: 1.07rem; line-height: 1.7; }

.lesson-goal { border-left: 3px solid var(--gold); padding: 0.2rem 0 0.2rem 1.1rem; }
.lesson-goal p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.55; }

.teacher-card {
  display: grid;
  grid-template-columns: 7.4rem minmax(0, 1fr) 12rem;
  gap: 1.35rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 0.7rem;
}

.teacher-card > img { width: 7.4rem; height: 100%; min-height: 9rem; object-fit: cover; object-position: center 24%; border-radius: 0.72rem; }
.teacher-copy { align-self: center; padding: 0.6rem 0; }
.teacher-copy h2 { margin: 0.2rem 0 0.4rem; font-size: 1.3rem; }
.teacher-copy p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.teacher-meta { display: flex; align-items: center; gap: 0.55rem; color: var(--gold); font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.teacher-meta #teacher-lesson-code { display: grid; gap: .04rem; border-left: 2px solid currentColor; padding-left: .42rem; line-height: 1.05; text-transform: none; letter-spacing: 0; }
.teacher-meta #teacher-lesson-code span { color: var(--ink-soft); font-size: .62rem; font-weight: 700; }
.teacher-meta #teacher-lesson-code b { color: var(--gold); font-size: .75rem; }
.status-dot { width: 0.48rem; height: 0.48rem; border-radius: 999px; background: var(--gold); box-shadow: 0 0 0 4px #f8ecd4; }
.text-button { border: 0; background: transparent; padding: 0.55rem 0 0; color: var(--navy); font-size: 0.84rem; font-weight: 800; cursor: pointer; }
.transcript { margin-top: 0.7rem; border-top: 1px solid var(--line); padding-top: 0.7rem; }
.audio-panel { display: grid; grid-template-columns: auto 1fr; align-content: center; align-items: center; gap: .18rem .65rem; min-height: 9rem; border-radius: 0.72rem; background: linear-gradient(145deg, var(--navy), #244f72); color: #fff; padding: 1rem; }
.audio-panel strong, .audio-panel small { grid-column: 2; display: block; }
.audio-panel small { color: #d6e0e8; font-size: 0.7rem; line-height: 1.45; }
.sound-mark { grid-row: 1 / span 2; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; color: var(--gold-soft); font-family: Georgia, serif; font-size: 1.1rem; }
.audio-toggle { grid-column: 1 / -1; justify-self: start; margin-top: .55rem; border: 1px solid rgba(255,255,255,.36); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; padding: .28rem .7rem; font-size: .72rem; font-weight: 800; cursor: pointer; }
.audio-toggle:hover { background: rgba(255,255,255,.16); }

.lesson-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 0.8rem; background: var(--surface); padding: 0.35rem; margin-bottom: 1.55rem; }
.lesson-tab { display: flex; align-items: center; justify-content: center; gap: 0.55rem; border: 0; border-radius: 0.58rem; background: transparent; padding: 0.76rem; color: var(--ink-soft); font-size: 0.88rem; font-weight: 750; cursor: pointer; }
.lesson-tab span { display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border: 1px solid #cdd4da; border-radius: 999px; font-size: .75rem; }
.lesson-tab.active { background: var(--navy); color: #fff; }
.lesson-tab.active span { border-color: var(--gold-soft); color: var(--gold-soft); }

.step-panel { animation: rise .28s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin: 0 0 1.15rem; }
.section-heading .eyebrow { margin-bottom: 0.35rem; }
.time-chip { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 0.32rem 0.7rem; color: var(--ink-soft); font-size: 0.74rem; font-weight: 700; }

.source-card { border: 1px solid #d3c6ae; border-radius: 1rem; background: linear-gradient(140deg, #fffdf9, #f5eedf); overflow: hidden; box-shadow: 0 14px 32px rgba(64,48,24,.06); }
.source-meta { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid #dfd5c3; color: #6f6558; font-size: .72rem; font-weight: 750; }
.source-meta span { position: relative; padding: .7rem .8rem; }
.source-meta span + span::before { position: absolute; left: 0; content: "·"; color: var(--gold); }
.hebrew-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.2rem .48rem; padding: clamp(1.8rem, 5vw, 3.5rem) 1rem 2.2rem; font-family: "Noto Sans Hebrew", "SBL Hebrew", "Times New Roman", serif; font-size: clamp(2rem, 5.5vw, 3.5rem); line-height: 1.85; }
.hebrew-word { appearance: none; border: 0; border-bottom: 3px solid transparent; border-radius: .45rem .45rem 0 0; background: transparent; padding: .05rem .12rem .2rem; font: inherit; color: var(--ink); cursor: pointer; }
.hebrew-word:hover { background: rgba(185,133,46,.1); }
.hebrew-word[aria-pressed="true"] { border-color: var(--gold); background: rgba(242,207,131,.24); }
.word-detail { display: grid; grid-template-columns: 2.2rem 1fr; align-items: center; gap: .8rem; border-top: 1px solid #dfd5c3; background: rgba(255,255,255,.62); padding: .9rem 1rem; }
.word-detail p { margin: 0; color: #5f574d; }
.detail-index { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 999px; background: var(--navy); color: #fff; font-size: .78rem; font-weight: 800; }
.word-detail strong { color: var(--navy); font-family: "Noto Sans Hebrew", "Times New Roman", serif; font-size: 1.25rem; }

.concept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin: 1rem 0; }
.concept-grid article { display: grid; grid-template-columns: 3rem 1fr; align-items: center; gap: .75rem; border: 1px solid var(--line); border-radius: .8rem; background: #fff; padding: .9rem; }
.concept-grid strong { display: block; font-size: .88rem; }
.concept-grid p { margin: .1rem 0 0; color: var(--ink-soft); font-size: .78rem; line-height: 1.4; }
.concept-symbol { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .62rem; background: var(--navy-pale); color: var(--navy); font-family: "Times New Roman", serif; font-size: 2rem; }
.vowel-mark, .accent-mark { align-items: start; line-height: 1.15; }

.callout { display: grid; grid-template-columns: auto 1fr; gap: .85rem; border-left: 4px solid var(--gold); background: #fff8e9; padding: .85rem 1rem; }
.callout strong { color: var(--warn); }
.callout p { margin: 0; }

.beresjiet-comparison {
  display: grid;
  grid-template-columns: minmax(12rem, .72fr) minmax(0, 1.28fr);
  gap: 1rem;
  margin: 1rem 0;
  border: 1px solid #d3c6ae;
  border-left: 4px solid var(--gold);
  border-radius: .85rem;
  background: #fffdf9;
  padding: clamp(1rem, 2.5vw, 1.35rem);
}
.beresjiet-comparison[hidden] { display: none; }
.beresjiet-comparison h3 { margin: .2rem 0 .45rem; font-size: 1.08rem; }
.beresjiet-comparison-intro p { margin: 0; color: var(--ink-soft); font-size: .88rem; }
.beresjiet-variants { display: grid; gap: .58rem; margin: 0; padding: 0; list-style: none; counter-reset: beresjiet-variant; }
.beresjiet-variants li { position: relative; display: grid; gap: .15rem; min-height: 3.2rem; border-bottom: 1px solid #e6ddce; padding: .15rem 0 .65rem 2.55rem; counter-increment: beresjiet-variant; }
.beresjiet-variants li:last-child { border-bottom: 0; padding-bottom: .15rem; }
.beresjiet-variants li::before { position: absolute; top: .05rem; left: 0; display: grid; place-items: center; width: 1.85rem; height: 1.85rem; border-radius: 999px; background: var(--navy); color: #fff; content: counter(beresjiet-variant); font-size: .76rem; font-weight: 900; }
.beresjiet-variants strong { color: var(--navy); font-size: .94rem; }
.beresjiet-variants span { color: var(--ink-soft); font-size: .78rem; }
.beresjiet-variants b { color: var(--ink); }

.step-actions { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.4rem; }
.primary-button, .secondary-button {
  min-height: 2.85rem;
  border-radius: .62rem;
  padding: .68rem 1rem;
  font-weight: 800;
  cursor: pointer;
}
.primary-button { border: 1px solid var(--navy); background: var(--navy); color: #fff; }
.primary-button:hover { background: #0f2c45; }
.secondary-button { border: 1px solid #cbd2d8; background: #fff; color: var(--navy); }
.secondary-button:hover { background: #f4f6f7; }
.primary-button:disabled, .secondary-button:disabled { opacity: .45; cursor: not-allowed; }
.wide-button { width: 100%; margin-top: .3rem; }

.anchor-words { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-bottom: 1rem; }
.anchor-words article { border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: .78rem; background: #fff; padding: 1.05rem; }
.anchor-words strong { display: block; color: var(--navy); font-family: "Noto Sans Hebrew", "Times New Roman", serif; font-size: 1.95rem; }
.anchor-words span { color: var(--gold); font-size: .78rem; font-weight: 800; }
.anchor-words p { margin: .4rem 0 0; color: var(--ink-soft); font-size: .84rem; }

.exercise-card { border: 1px solid var(--line); border-radius: .85rem; background: #fff; padding: 1.2rem; }
fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
legend { margin-bottom: .8rem; font-weight: 800; }
.choice { display: grid; grid-template-columns: auto minmax(7rem, .6fr) 1fr; align-items: center; gap: .8rem; border: 1px solid var(--line); border-radius: .66rem; padding: .65rem .8rem; margin-bottom: .52rem; cursor: pointer; }
.choice:hover, .choice:has(input:checked) { border-color: #9eb1c1; background: #f5f8fa; }
.choice input, .compact-choice input { accent-color: var(--navy); width: 1.05rem; height: 1.05rem; }
.choice span { font-family: "Noto Sans Hebrew", "Times New Roman", serif; font-size: 1.42rem; }
.choice small { color: var(--ink-soft); }
.exercise-card .primary-button { margin-top: .5rem; }

.feedback-box { display: grid; grid-template-columns: 2.2rem 1fr; gap: .8rem; align-items: start; margin-top: .8rem; border: 1px solid var(--line); border-left-width: 4px; border-radius: .72rem; background: #fff; padding: .9rem 1rem; }
.feedback-box.good { border-left-color: var(--good); background: var(--good-bg); }
.feedback-box.warn { border-left-color: var(--warn); background: var(--warn-bg); }
.feedback-box.neutral { border-left-color: #8297a8; }
.feedback-icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 999px; background: var(--navy-pale); color: var(--navy); font-weight: 900; }
.feedback-box.good .feedback-icon { background: #d4eadc; color: var(--good); }
.feedback-box.warn .feedback-icon { background: #f7dfad; color: var(--warn); }
.feedback-box strong { display: block; margin-bottom: .15rem; }
.feedback-box p { margin: 0; color: #43505b; }

.translation-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 1rem; }
.translation-source, .translation-form { border: 1px solid var(--line); border-radius: .85rem; background: #fff; padding: 1.15rem; }
.mini-hebrew { margin: .5rem 0 1rem; color: var(--navy); font-family: "Noto Sans Hebrew", "Times New Roman", serif; font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.8; text-align: center; }
.translation-source ul { margin: 0; padding-left: 1.2rem; color: var(--ink-soft); font-size: .86rem; }
.translation-source li span { display: inline-block; min-width: 4.4rem; color: var(--ink); font-size: 1.1rem; }
.translation-form label strong, .translation-form label small { display: block; }
.translation-form label small { margin: .2rem 0 .6rem; color: var(--ink-soft); }
textarea, .text-input, select { border: 1px solid #bcc7d0; border-radius: .6rem; background: #fff; color: var(--ink); }
textarea { width: 100%; min-height: 9.5rem; resize: vertical; padding: .8rem; }
.text-input { width: 100%; min-height: 2.8rem; padding: .65rem .75rem; }
select { min-height: 2.65rem; padding: .55rem 2rem .55rem .65rem; }
.inline-actions { display: flex; justify-content: flex-end; gap: .65rem; margin-top: .75rem; }

.test-intro { margin: -.4rem 0 1rem; color: var(--ink-soft); }
.test-form { display: grid; gap: .75rem; }
.test-question { border: 1px solid var(--line); border-radius: .82rem; background: #fff; padding: 1rem; }
.test-question legend { width: 100%; }
.test-question legend span { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; margin-right: .5rem; border-radius: 999px; background: var(--navy-pale); color: var(--navy); font-size: .75rem; }
.compact-choice { display: flex; align-items: center; gap: .62rem; width: fit-content; min-width: 16rem; border-radius: .5rem; padding: .42rem .5rem; cursor: pointer; }
.compact-choice:hover, .compact-choice:has(input:checked) { background: #f1f5f7; }
.hebrew-option { display: inline-flex; min-width: 7rem; margin-right: .45rem; }
.hebrew-option b { font-family: "Noto Sans Hebrew", "Times New Roman", serif; font-size: 1.45rem; }
.match-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.match-grid label { display: grid; grid-template-columns: 1fr; gap: .45rem; }
.match-grid b { color: var(--navy); font-family: "Noto Sans Hebrew", "Times New Roman", serif; font-size: 1.55rem; }

.test-result { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: center; margin-top: 1rem; border: 1px solid var(--line); border-radius: .85rem; background: #fff; padding: 1.15rem; }
.score-ring { display: grid; place-items: center; width: 5.4rem; height: 5.4rem; border: .55rem solid var(--gold-soft); border-radius: 999px; color: var(--navy); font-size: 1.25rem; font-weight: 900; }
.score-ring.good { border-color: #83c09b; }
.score-ring.warn { border-color: #e1b869; }
.test-result h3 { margin-bottom: .25rem; }
.test-result p { margin: 0; color: var(--ink-soft); }
.review-card { margin-top: 1rem; border-radius: .85rem; background: var(--navy); color: #fff; padding: 1.25rem; }
.review-card h3 { color: #fff; }
.review-card p { margin: .75rem 0 0; color: #d8e2ea; }
.review-items { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.review-items span { border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.08); padding: .3rem .7rem; }

.route-intro { display: grid; grid-template-columns: 1.3fr .7fr; align-items: end; gap: 2rem; margin-bottom: 2rem; }
.route-summary { display: grid; border-left: 3px solid var(--gold); padding-left: 1rem; color: var(--ink-soft); }
.route-summary strong { color: var(--ink); }
.voluntary-prayer-note {
  max-width: 76ch;
  margin-top: 1.1rem;
  border: 1px solid #d8c9ad;
  border-radius: .85rem;
  background: linear-gradient(140deg, #fffdf8, #f6efe2);
  padding: 1rem 1.1rem;
}
.voluntary-prayer-note strong { color: var(--navy); }
.voluntary-prayer-note p { margin: .35rem 0 0; color: #4b5660; line-height: 1.6; }
.phase-list { display: grid; gap: 1rem; }
.phase-card { overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
.phase-head { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; background: var(--navy-deep); color: #fff; }
.phase-index { display: grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid rgba(242,207,131,.55); border-radius: .65rem; color: var(--gold-soft); font-family: Georgia, serif; font-size: 1.35rem; }
.phase-head h2, .phase-head h3 { margin: 0; color: #fff; font-size: 1.35rem; }
.phase-head p { margin: .18rem 0 0; color: #ced9e2; font-size: .84rem; }
.module-list { display: grid; }
.learning-route { display: grid; gap: .85rem; margin-bottom: 2rem; }
.learning-route:last-child { margin-bottom: 0; }
.learning-route-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1rem; align-items: center; border: 1px solid #dcc795; border-radius: .9rem; background: #fff9ec; padding: 1rem 1.15rem; }
.learning-route-head > span { display: grid; place-items: center; min-width: 5.8rem; min-height: 2.2rem; border-radius: 999px; background: var(--gold); color: #172c3e; padding: .4rem .75rem; font-size: .72rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.learning-route-head h2 { margin: 0; color: var(--navy-deep); font-size: 1.3rem; }
.learning-route-head p { margin: .2rem 0 0; color: var(--ink-soft); font-size: .86rem; line-height: 1.45; }
.learning-route-modules { display: grid; gap: .75rem; }
.route-module-block { border-top: 1px solid var(--line); }
.route-module-block:first-child { border-top: 0; }
.route-module-block.current { background: #fff9ec; }
.route-module { display: grid; grid-template-columns: 2.4rem minmax(11rem, .8fr) minmax(14rem, 1.15fr) minmax(13rem, 1fr); gap: 1rem; align-items: center; padding: 1rem 1.1rem .72rem; }
.route-number { color: var(--gold); font-family: Georgia, serif; font-weight: 800; }
.route-module strong { min-width: 0; line-height: 1.3; overflow-wrap: break-word; hyphens: auto; }
.route-module p, .route-module small { margin: 0; color: var(--ink-soft); line-height: 1.45; }
.route-module p { min-width: 0; font-size: .84rem; overflow-wrap: break-word; hyphens: auto; }
.route-module small { min-width: 0; font-size: .75rem; overflow-wrap: break-word; hyphens: auto; }
.route-lessons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; padding: 0 1.1rem 1rem 4.5rem; }
.lesson-launch { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .12rem .6rem; align-items: center; min-width: 0; min-height: 4rem; border: 1px solid #d6dde3; border-radius: .72rem; background: rgba(255,255,255,.86); padding: .7rem .78rem; color: var(--ink); text-align: left; cursor: pointer; }
.lesson-launch:hover { border-color: #b8c5cf; background: #fff; box-shadow: 0 7px 18px rgba(16,40,62,.07); }
.lesson-launch-code { display: grid; align-content: center; gap: .08rem; min-width: 4.65rem; border-radius: .48rem; background: var(--navy-pale); color: var(--navy); padding: .34rem .48rem; line-height: 1.1; white-space: nowrap; }
.lesson-launch-code span { color: #5d6f7f; font-size: .62rem; font-weight: 750; letter-spacing: .01em; }
.lesson-launch-code b { font-size: .75rem; font-weight: 900; letter-spacing: .01em; }
.lesson-launch strong { min-width: 0; font-size: .78rem; line-height: 1.35; overflow-wrap: anywhere; hyphens: auto; }

.back-link { margin: 0 0 1.3rem; border: 0; background: transparent; color: var(--navy); padding: .2rem 0; font-size: .84rem; font-weight: 800; cursor: pointer; }
.audio-lesson-head { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(15rem, .65fr); align-items: end; gap: clamp(1.5rem, 4vw, 4rem); margin-bottom: 2rem; }
.lesson-code-large { display: grid; width: max-content; margin: 0 0 .65rem; border-left: 3px solid var(--gold); padding-left: .65rem; line-height: 1.2; }
.lesson-code-large span { color: var(--ink-soft); font-size: .72rem; font-weight: 750; letter-spacing: .02em; }
.lesson-code-large b { color: var(--gold); font-size: .9rem; font-weight: 900; letter-spacing: .02em; }
.audio-panel [data-audio-code] { display: grid; gap: .05rem; line-height: 1.15; }
.audio-panel [data-audio-code] span { color: #d9e3ea; font-size: .7rem; font-weight: 650; }
.audio-panel [data-audio-code] b { color: #fff; font-size: .86rem; }
.teacher-focus-card { display: grid; grid-template-columns: minmax(14rem, .62fr) minmax(0, 1.38fr); overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: #fff; box-shadow: var(--shadow); }
.teacher-portrait { min-height: 25rem; margin: 0; background: var(--parchment); }
.teacher-portrait img { width: 100%; height: 100%; max-height: 34rem; object-fit: cover; object-position: center 24%; }
.teacher-portrait figcaption { padding: .72rem 1rem; color: #655e53; font-size: .74rem; }
.teacher-focus-copy { align-self: center; padding: clamp(1.4rem, 4vw, 3.2rem); }
.teacher-focus-copy > p:not(.eyebrow) { margin: .8rem 0 1.25rem; color: var(--ink-soft); }
.audio-panel-wide { grid-template-columns: auto minmax(0, 1fr) auto; min-height: auto; padding: 1rem 1.1rem; }
.audio-panel-wide .audio-toggle { grid-column: 3; grid-row: 1 / span 2; align-self: center; margin: 0; }
.lesson-context-card { margin-top: 1rem; border: 1px solid var(--line); border-radius: .85rem; background: #fff; padding: 1.1rem 1.2rem; }
.lesson-context-card h3 { font-size: 1.15rem; }
.lesson-context-card p { margin: .35rem 0 0; color: var(--ink-soft); }
.lesson-sequence { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.4rem; }

.developed-lesson { display: grid; gap: 1rem; margin-top: 1rem; }
.lesson-explanation-card, .interactive-card, .review-strip, .module-test-card { border: 1px solid var(--line); border-radius: 1rem; background: #fff; padding: clamp(1rem, 3vw, 1.55rem); }
.lesson-goal-copy { margin: 0 0 .85rem; border-left: 3px solid var(--gold); padding-left: .9rem; color: var(--navy); font-weight: 750; }
.lesson-explanation-card > p:not(.lesson-goal-copy) { color: var(--ink-soft); }
.lesson-source-example { overflow: hidden; margin-top: 1.1rem; border: 1px solid #d3c6ae; border-radius: .85rem; background: linear-gradient(140deg, #fffdf9, #f5eedf); }
.lesson-hebrew-example { padding: clamp(1.25rem, 4vw, 2.2rem) 1rem 1rem; color: var(--navy-deep); font-family: "Noto Sans Hebrew", "SBL Hebrew", "Times New Roman", serif; font-size: clamp(2rem, 4.5vw, 3.1rem); line-height: 1.8; text-align: center; }
.lesson-source-example > p { margin: 0; border-top: 1px solid #dfd5c3; background: rgba(255,255,255,.7); padding: .8rem 1rem; color: #655e53; font-size: .86rem; }
.lesson-method { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin: 1rem 0 0; padding: 0; counter-reset: method; list-style: none; }
.lesson-method li { position: relative; min-height: 5.2rem; border-radius: .72rem; background: var(--navy-pale); padding: .8rem .8rem .8rem 2.8rem; color: #314456; font-size: .82rem; }
.lesson-method li::before { position: absolute; top: .75rem; left: .75rem; display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 999px; background: var(--navy); color: #fff; counter-increment: method; content: counter(method); font-size: .7rem; font-weight: 900; }
.interactive-card h2, .review-strip h2, .module-test-card h2 { margin-bottom: .65rem; font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.guided-options { display: grid; gap: .75rem; }
.guided-options fieldset { display: grid; gap: .55rem; margin: 0; border: 0; padding: 0; }
.guided-options .choice { grid-template-columns: auto 1fr; margin: 0; }
.guided-options .choice span { font-family: inherit; font-size: .92rem; }
#open-task-form label strong, #open-task-form label small { display: block; }
#open-task-form label small { margin: .15rem 0 .55rem; color: var(--ink-soft); }
.review-prompts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.review-prompt { display: grid; grid-template-columns: auto 1fr; gap: .25rem .65rem; align-items: start; border: 1px solid #cfd8e0; border-radius: .72rem; background: #fff; padding: .75rem; text-align: left; cursor: pointer; }
.review-prompt:hover { background: #f7f9fa; }
.review-prompt > span { grid-row: 1 / span 2; color: var(--gold); font-family: Georgia, serif; font-weight: 900; }
.review-prompt strong { font-size: .82rem; }
.review-prompt p { grid-column: 2; margin: .25rem 0 0; color: var(--ink-soft); font-size: .8rem; }
.module-visual { display: grid; grid-template-columns: minmax(13rem, .55fr) minmax(0, 1.45fr); align-items: center; overflow: hidden; margin: 0; border-radius: 1rem; background: var(--parchment); }
.module-visual img { width: 100%; height: 100%; max-height: 19rem; object-fit: cover; }
.module-visual figcaption { padding: 1.2rem; color: #655e53; font-size: .88rem; }
.module-test-card .test-question legend small { float: right; color: var(--ink-soft); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .72rem; letter-spacing: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.outlook-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(15rem, .65fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.outlook-copy h1 { max-width: 20ch; }
.book-figure { margin: 0; border-radius: 1rem; background: var(--parchment); padding: 1rem; box-shadow: var(--shadow); }
.book-figure img { width: 100%; max-height: 34rem; object-fit: contain; border-radius: .55rem; }
.book-figure figcaption { margin-top: .8rem; color: #655e53; font-size: .78rem; }
.outcome-list { display: grid; gap: .65rem; margin-top: 1.5rem; }
.outcome-list > div { display: grid; grid-template-columns: 2.5rem 1fr; gap: .8rem; border-top: 1px solid var(--line); padding-top: .75rem; }
.outcome-list > div > span { color: var(--gold); font-family: Georgia, serif; font-weight: 800; }
.outcome-list p { margin: 0; color: var(--ink-soft); }
.outcome-list strong { display: block; color: var(--ink); }
.continuation-card { display: grid; grid-template-columns: minmax(15rem, .72fr) minmax(0, 1.28fr); gap: 0; overflow: hidden; margin-top: 2rem; border-radius: 1rem; background: var(--navy-deep); color: #fff; box-shadow: var(--shadow); }
.continuation-card img { width: 100%; height: 100%; max-height: 24rem; object-fit: cover; filter: contrast(.93); }
.continuation-card > div { align-self: center; padding: clamp(1.3rem, 4vw, 3rem); }
.continuation-card h2 { color: #fff; }
.continuation-card p:not(.eyebrow) { color: #d5dfe7; }

.toast { position: fixed; z-index: 100; right: 1rem; bottom: 1rem; max-width: 22rem; border-radius: .65rem; background: var(--navy-deep); color: #fff; padding: .8rem 1rem; box-shadow: var(--shadow); }

@media (max-width: 1200px) {
  :root { --sidebar: 15rem; }
  .teacher-card { grid-template-columns: 6.3rem minmax(0, 1fr); }
  .teacher-card > img { width: 6.3rem; }
  .teacher-card > .audio-panel { grid-column: 1 / -1; min-height: auto; }
  .route-module { grid-template-columns: 2rem 1fr 1fr; }
  .route-module small { grid-column: 2 / -1; }
  .route-lessons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .route-lessons { padding-left: 4.1rem; }
}

@media (max-width: 800px) {
  :root { --topbar: 4.6rem; }
  .site-shell { display: block; padding-top: var(--topbar); }
  .topbar { position: fixed; left: 0; right: 0; grid-template-columns: auto 1fr auto; min-height: var(--topbar); }
  .menu-button { display: grid; align-content: center; gap: .25rem; width: 3rem; border: 0; background: #fff; padding: .7rem; cursor: pointer; }
  .menu-button span { display: block; width: 1.35rem; height: 2px; background: var(--navy); }
  .brand { border: 0; background: #fff; color: var(--navy); padding: .55rem .4rem; }
  .brand-mark { width: 2.25rem; height: 2.25rem; border-color: #c9d2d9; background: var(--navy); font-size: 1.55rem; }
  .brand small { color: var(--ink-soft); }
  .top-progress { width: 7rem; margin-right: .8rem; }
  .progress-copy span { display: none; }
  .sidebar { position: fixed; z-index: 60; top: var(--topbar); bottom: 0; left: 0; width: min(19rem, 88vw); height: auto; transform: translateX(-105%); transition: transform .22s ease; box-shadow: 18px 0 50px rgba(16,40,62,.2); }
  .sidebar.open { transform: translateX(0); }
  .overlay { position: fixed; z-index: 50; inset: var(--topbar) 0 0; background: rgba(9,23,35,.42); }
  .main-content { padding-top: 1.5rem; }
  .lesson-head, .route-intro, .audio-lesson-head { grid-template-columns: 1fr; align-items: start; gap: 1rem; }
  .lesson-goal { max-width: 34rem; }
  .concept-grid, .anchor-words { grid-template-columns: 1fr; }
  .beresjiet-comparison { grid-template-columns: 1fr; }
  .translation-layout { grid-template-columns: 1fr; }
  .route-module { grid-template-columns: 2rem 1fr; }
  .route-module p, .route-module small { grid-column: 2; }
  .route-lessons { grid-template-columns: 1fr; padding-left: 4.1rem; }
  .teacher-focus-card { grid-template-columns: minmax(12rem, .72fr) minmax(0, 1.28fr); }
  .lesson-method, .review-prompts { grid-template-columns: 1fr; }
  .outlook-hero { grid-template-columns: 1fr; }
  .book-figure { max-width: 25rem; }
}

@media (max-width: 600px) {
  .main-content { padding-inline: .8rem; }
  h1 { font-size: 2.05rem; }
  .teacher-card { grid-template-columns: 5rem 1fr; gap: .9rem; }
  .teacher-card > img { width: 5rem; min-height: 7rem; }
  .teacher-copy h2 { font-size: 1.15rem; }
  .teacher-copy p { font-size: .84rem; }
  .route-lessons { padding: 0 .8rem .9rem; }
  .teacher-focus-card { grid-template-columns: 1fr; }
  .teacher-portrait { min-height: auto; }
  .teacher-portrait img { max-height: 25rem; }
  .module-visual { grid-template-columns: 1fr; }
  .module-visual img { max-height: 17rem; }
  .audio-panel-wide { grid-template-columns: auto 1fr; }
  .audio-panel-wide .audio-toggle { grid-column: 1 / -1; grid-row: auto; margin-top: .45rem; }
  .lesson-sequence { display: grid; grid-template-columns: 1fr 1fr; }
  .lesson-sequence button:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .lesson-tabs { grid-template-columns: repeat(4, minmax(3.2rem, 1fr)); }
  .lesson-tab { flex-direction: column; gap: .2rem; padding: .55rem .2rem; font-size: .7rem; }
  .section-heading { display: block; }
  .time-chip { display: inline-flex; margin-top: .6rem; }
  .source-meta span { padding: .55rem .6rem; }
  .hebrew-line { justify-content: flex-start; padding-inline: .75rem; font-size: 2.05rem; }
  .word-detail { grid-template-columns: 1.8rem 1fr; }
  .detail-index { width: 1.75rem; height: 1.75rem; }
  .choice { grid-template-columns: auto 1fr; }
  .choice small { grid-column: 2; }
  .inline-actions, .step-actions { flex-direction: column-reverse; }
  .inline-actions button, .step-actions button { width: 100%; }
  .match-grid { grid-template-columns: 1fr; }
  .compact-choice { min-width: 0; width: 100%; }
  .hebrew-option { width: auto; min-width: 6rem; }
  .test-result { grid-template-columns: 1fr; }
  .continuation-card { grid-template-columns: 1fr; }
  .continuation-card img { max-height: 17rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Noachitisch Gebed: behoud de leercomponenten van de Hebreeuws-cursus,
   met een sobere inhoudsopbouw die aansluit op de bestaande WordPress-lessen. */
.brand-mark { font-size: 1.45rem; }
.nav-item { text-decoration: none; }
.route-hero { margin-bottom: 1.8rem; }
.route-hero > p:not(.eyebrow) { max-width: 70ch; color: var(--ink-soft); }
.route-summary { margin-top: 1.1rem; }
.route-module-block.planned .phase-head { background: #405464; }
.phase-head small { color: var(--gold-soft); font-weight: 800; }
.lesson-launch { grid-template-columns: auto minmax(0, 1fr); }
.lesson-launch small { grid-column: 2; color: var(--ink-soft); font-size: .7rem; }
.lesson-launch.locked { opacity: .76; cursor: default; }
.lesson-launch.locked:hover { box-shadow: none; }
.back-button {
  margin: 0 0 1.3rem;
  border: 0;
  background: transparent;
  color: var(--navy);
  padding: .2rem 0;
  font-size: .84rem;
  font-weight: 800;
  cursor: pointer;
}
.source-card { padding: 1.1rem; }
.source-card > span { color: var(--gold); font-size: .72rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.source-card > p { margin: .35rem 0 0; color: #655e53; }
.audio-icon {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  color: var(--gold-soft);
  font-family: Georgia, serif;
}
.audio-panel #audio-code { display: grid; gap: .05rem; line-height: 1.15; }
.audio-panel #audio-code span { color: #d9e3ea; font-size: .7rem; }
.audio-panel #audio-code b { color: #fff; font-size: .86rem; }
.audio-pending { background: linear-gradient(145deg, #31495b, #4d6474); }
.lesson-card {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  padding: clamp(1rem, 3vw, 1.6rem);
}
.lesson-card-head { margin-bottom: 1rem; }
.lesson-card-head > span { color: var(--gold); font-size: .72rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.lesson-card-head h2 { margin: .2rem 0 0; font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.prayer-material-card { border-color: #d8c9ad; background: linear-gradient(145deg, #fff, #fffcf6); }
.prayer-material-intro { max-width: 76ch; margin: -.25rem 0 1rem; color: var(--ink-soft); }
.prayer-material-list { display: grid; gap: 1rem; }
.prayer-record { overflow: hidden; border: 1px solid var(--line); border-radius: .85rem; background: #fff; }
.prayer-record > h3 { margin: 0; border-bottom: 1px solid var(--line); background: var(--navy-pale); padding: .85rem 1rem; color: var(--navy); font-size: 1rem; }
.prayer-text-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prayer-language-panel { min-width: 0; padding: clamp(1rem, 3vw, 1.4rem); }
.prayer-language-panel + .prayer-language-panel { border-left: 1px solid var(--line); }
.prayer-language-panel h4 { margin: 0 0 .65rem; color: var(--gold); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.prayer-language-panel p { margin: 0; color: #354555; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.prayer-hebrew-panel { background: #fffdf9; }
.prayer-hebrew-text {
  color: var(--navy-deep) !important;
  font-family: "Noto Sans Hebrew", "SBL Hebrew", "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.9 !important;
  text-align: right;
  unicode-bidi: plaintext;
}
.prayer-native-audio { display: grid; grid-template-columns: minmax(8rem, auto) minmax(0, 1fr); gap: .8rem; align-items: center; border-top: 1px solid var(--line); background: #f7f9fa; padding: .85rem 1rem; }
.prayer-native-audio strong { color: var(--navy); font-size: .82rem; }
.prayer-native-audio audio { width: 100%; min-width: 0; }
.lesson-prose { display: grid; gap: 1.3rem; }
.lesson-prose section + section { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.lesson-prose h2 { margin: 0 0 .45rem; font-size: 1.23rem; }
.lesson-prose p { max-width: 76ch; margin: .45rem 0; color: #3f4d59; }
.lesson-prose ul, .takeaway-card ul { padding-left: 1.25rem; }
.lesson-prose li, .takeaway-card li { margin: .32rem 0; }
.takeaway-card { border-left: 4px solid var(--gold); }
.reflection-prompt { max-width: 70ch; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 1.3rem; line-height: 1.5; }
#open-task-form label strong, #open-task-form label span { display: block; }
#open-task-form label span { margin: .18rem 0 .6rem; color: var(--ink-soft); font-size: .82rem; }
.form-actions { display: flex; justify-content: flex-end; gap: .65rem; margin-top: .75rem; }
.question-feedback { min-height: 1.4rem; margin: .6rem 0 0; font-size: .82rem; font-weight: 700; }
.question-feedback.good { color: var(--good); }
.question-feedback.warn { color: var(--warn); }
.lesson-navigation { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin-top: 1.2rem; }
.lesson-navigation button { min-height: 2.8rem; border: 1px solid #cbd2d8; border-radius: .62rem; background: #fff; color: var(--navy); padding: .6rem .8rem; font-weight: 800; cursor: pointer; }
.lesson-navigation button:last-child { background: var(--navy); color: #fff; }
.lesson-navigation button:disabled { opacity: .4; cursor: not-allowed; }

@media (max-width: 800px) {
  .teacher-focus-card, .audio-lesson-head { grid-template-columns: 1fr; }
  .teacher-portrait { min-height: 19rem; }
  .route-lessons { grid-template-columns: 1fr; padding-left: 1rem; }
  .phase-head { grid-template-columns: 2.8rem 1fr; }
  .phase-index { width: 2.5rem; height: 2.5rem; }
  .lesson-navigation { grid-template-columns: 1fr; }
  .form-actions { align-items: stretch; flex-direction: column; }
}

@media (max-width: 600px) {
  .prayer-text-grid { grid-template-columns: 1fr; }
  .prayer-language-panel + .prayer-language-panel { border-top: 1px solid var(--line); border-left: 0; }
  .prayer-native-audio { grid-template-columns: 1fr; }
}
