:root{
  --paper: #eef0ee;
  --paper-raised: #f8f9f7;
  --ink: #1e2a2e;
  --ink-soft: #55666b;
  --ink-faint: #93a09f;
  --accent: #c1502e;
  --accent-ink: #fff8f4;
  --accent-soft: #f1dccc;
  --teal: #2b6e6b;
  --teal-soft: #d9e8e6;
  --line: #d3d8d3;
  --shadow: rgba(30,42,46,0.10);
  --radius: 18px;
  --chart-blue: #2a78d6;
  --chart-orange: #c1502e;
  --chart-aqua: #1baf7a;
  --chart-violet: #4a3aa7;
  color-scheme: light;
}
@media (prefers-color-scheme: dark){
  :root{
    --paper: #12181a;
    --paper-raised: #1b2426;
    --ink: #eae7dd;
    --ink-soft: #a7b3b1;
    --ink-faint: #62716f;
    --accent: #e2764f;
    --accent-ink: #1c1108;
    --accent-soft: #3c2416;
    --teal: #62b3ab;
    --teal-soft: #1c3230;
    --line: #2a3335;
    --shadow: rgba(0,0,0,0.4);
    --chart-blue: #3987e5;
    --chart-orange: #d95926;
    --chart-aqua: #199e70;
    --chart-violet: #9085e9;
    color-scheme: dark;
  }
}
:root[data-theme="dark"]{
  --paper: #12181a; --paper-raised: #1b2426; --ink: #eae7dd; --ink-soft: #a7b3b1;
  --ink-faint: #62716f; --accent: #e2764f; --accent-ink: #1c1108; --accent-soft: #3c2416;
  --teal: #62b3ab; --teal-soft: #1c3230; --line: #2a3335; --shadow: rgba(0,0,0,0.4);
  --chart-blue: #3987e5; --chart-orange: #d95926; --chart-aqua: #199e70; --chart-violet: #9085e9;
  color-scheme: dark;
}
:root[data-theme="light"]{
  --paper: #eef0ee; --paper-raised: #f8f9f7; --ink: #1e2a2e; --ink-soft: #55666b;
  --ink-faint: #93a09f; --accent: #c1502e; --accent-ink: #fff8f4; --accent-soft: #f1dccc;
  --teal: #2b6e6b; --teal-soft: #d9e8e6; --line: #d3d8d3; --shadow: rgba(30,42,46,0.10);
  --chart-blue: #2a78d6; --chart-orange: #c1502e; --chart-aqua: #1baf7a; --chart-violet: #4a3aa7;
  color-scheme: light;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Heebo Heb','Heebo','Segoe UI',Arial,sans-serif;
  direction: rtl;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3{
  font-family: 'Frank Ruhl Libre Heb','Frank Ruhl Libre','Heebo Heb',serif;
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0;
}
p{ margin:0; }

.app{
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

a{ color: var(--accent); text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent); text-underline-offset: 2px; }
a:hover{ text-decoration-color: var(--accent); }

/* ---------- top REACT rail ---------- */
.rail{
  flex: 0 0 auto;
  border-bottom: 1px solid var(--line);
  background: var(--paper-raised);
}
.rail-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px clamp(16px,4vw,40px) 12px;
  display: flex;
  align-items: center;
  gap: clamp(14px,2.5vw,32px);
}
.rail-title{
  flex: 0 0 auto;
  font-family: 'Frank Ruhl Libre Heb','Frank Ruhl Libre',serif;
  font-size: clamp(20px, 2.1vw, 24px);
  letter-spacing: .02em;
  color: var(--ink-soft);
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 999px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  transition: background-color .2s ease;
}
.rail-title:hover{ background: var(--paper); }
.rail-title strong{ color: var(--ink); font-weight: 700; }
.rail-title a{ color: inherit; text-decoration: none; }

/* ---------- author-contact link (fixed top-left on every page, mirrors the school logo on top-right) ---------- */
.author-link{
  position: fixed;
  top: 14px;
  left: 24px;
  z-index: 55;
  background: var(--paper-raised);
}
@media (max-width: 640px){
  .author-link{ top: 8px; left: 18px; height: 36px; padding: 0 12px; font-size: 16px; }
}

.rail-steps{
  list-style: none;
  display: flex;
  gap: clamp(6px,1.4vw,14px);
  margin: 0; padding: 0;
  flex: 1 1 auto;
}
.step{
  flex: 1 1 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-faint);
  transition: background-color .35s ease, border-color .35s ease, color .35s ease;
}
.step-letter{
  font-family: 'Frank Ruhl Libre Heb','Frank Ruhl Libre',serif;
  font-weight: 700;
  font-size: 18px;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  transition: inherit;
  flex-shrink: 0;
}
.step-label{
  font-size: clamp(20px, 2.1vw, 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 760px){ .step-label{ display:none; } }

.step.is-active{
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--ink);
}
.step.is-active .step-letter{
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.step.is-done{ color: var(--ink-soft); }
.step.is-done .step-letter{ color: var(--teal); border-color: var(--teal); }

.rail-meta{
  flex: 0 0 auto;
  font-size: clamp(20px, 2.1vw, 24px);
  color: var(--ink-faint);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.credit{
  margin-top: 22px;
  font-size: clamp(20px, 2.1vw, 24px);
  color: var(--ink-faint);
}
.credit a{ color: inherit; }

.roadmap{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.roadmap-item{
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: clamp(20px, 2.1vw, 24px);
  color: var(--ink-soft);
  text-decoration: none;
}
.roadmap-item .num{
  font-family: 'Frank Ruhl Libre Heb','Frank Ruhl Libre',serif;
  font-weight: 700;
  color: var(--accent);
}
a.roadmap-item{ transition: border-color .2s ease, color .2s ease; }
a.roadmap-item:hover{ border-color: var(--accent); color: var(--ink); }

/* ---------- topic bar ---------- */
.topic-bar{
  position: relative;
  flex: 0 0 auto;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 14px clamp(16px,4vw,40px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}
.topic-bar h2{
  font-size: clamp(22px, 3vw, 30px);
  color: var(--paper);
  margin: 0;
}

/* ---------- beats (compact timeline / fact list) ---------- */
.beats{
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 20px;
  max-width: 84ch;
}
.beat{
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.beat-tag{
  flex: 0 0 auto;
  min-width: 50px;
  font-family: 'Frank Ruhl Libre Heb','Frank Ruhl Libre',serif;
  font-weight: 700;
  font-size: clamp(20px, 2.1vw, 24px);
  color: var(--accent);
  direction: ltr;
  unicode-bidi: isolate;
}
/* modifier: use when a single .beats list mixes short and long tags (e.g. "2005" next to "7.10.2023"), so every .beat-text column still starts at the same position */
.beats.align-tags .beat-tag{ width: 112px; min-width: 112px; }
.beat-text{
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.5;
  color: var(--ink);
}
.beat-text b{ color: var(--ink); font-weight: 700; }

/* ---------- lead statement (big punchy line) ---------- */
.lead{
  font-size: clamp(23px, 2.6vw, 28px);
  line-height: 1.4;
  color: var(--ink);
  max-width: 69ch;
  margin-top: 16px;
  font-weight: 500;
}
.lead b{ color: var(--accent); font-weight: 700; }

/* ---------- real photo ---------- */
figure.slide-photo{
  margin: 0;
  display: inline-block;
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  box-shadow: 0 12px 32px -18px var(--shadow);
}
figure.slide-photo img{
  display: block;
  width: auto;
  height: auto;
  max-width: 380px;
  max-height: 360px;
  cursor: zoom-in;
}
figure.slide-photo figcaption{
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.4;
  color: var(--ink-faint);
  padding: 7px 11px;
  max-width: 380px;
}

/* ---------- deck ---------- */
.deck{
  position: relative;
  flex: 1 1 auto;
  overflow: hidden;
}
.slide{
  position: absolute;
  inset: 0;
  display: none;
  overflow-y: auto;
}
.slide.is-active{
  display: flex;
  animation: rise .5s ease both;
}
@media (prefers-reduced-motion: reduce){
  .slide.is-active{ animation: none; }
}
@keyframes rise{
  from{ opacity: 0; transform: translateY(10px); }
  to{ opacity: 1; transform: translateY(0); }
}

.slide-inner{
  width: 100%;
  max-width: 1180px;
  margin: auto;
  padding: clamp(20px,4vh,56px) clamp(20px,5vw,64px);
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(0,0.85fr);
  gap: clamp(24px,5vw,64px);
  align-items: center;
}
.slide-inner.stack{ grid-template-columns: 1fr; }
@media (max-width: 860px){
  .slide-inner{ grid-template-columns: 1fr; }
  .slide-art{ order: -1; max-width: 220px; margin: 0 auto; }
}

.eyebrow{
  display: inline-block;
  font-size: clamp(20px, 2.1vw, 24px);
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow.side-for{ color: var(--teal); background: var(--teal-soft); }
.eyebrow.side-against{ color: var(--accent); background: var(--accent-soft); }

/* ---------- claim slide source link ---------- */
.source-link{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.source-link:hover{ background: var(--accent); color: var(--accent-ink); }
.source-link svg{ width: 18px; height: 18px; flex-shrink: 0; }
.claim-card.side-for .source-link{ border-color: var(--teal); color: var(--teal); }
.claim-card.side-for .source-link:hover{ background: var(--teal); color: var(--accent-ink); }

/* ---------- claim slide wrapper ---------- */
.claim-card{
  margin-top: 18px;
  padding-inline-start: 18px;
  border-inline-start: 3px solid var(--accent);
}
.claim-card.side-for{ border-inline-start-color: var(--teal); }
.slide h1{ font-size: clamp(38px, 5vw, 60px); }
.slide h2{ font-size: clamp(32px, 4.2vw, 46px); margin-bottom: 6px; }
.slide-sub{
  font-size: clamp(20px,2.1vw,24px);
  color: var(--ink-soft);
  margin-top: 14px;
  max-width: 69ch;
  line-height: 1.55;
}
.slide-body{
  font-size: clamp(20px,2.1vw,24px);
  line-height: 1.7;
  color: var(--ink);
  max-width: 78ch;
  margin-top: 18px;
}
.slide-body + .slide-body{ margin-top: 12px; }
.slide-body.bullet{
  position: relative;
  padding-inline-start: 20px;
}
.slide-body.bullet::before{
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .75em;
  inline-size: 7px;
  block-size: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.placeholder{
  color: var(--ink-faint);
  font-style: normal;
  border-bottom: 1.5px dashed var(--ink-faint);
}

.cta{
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border: none;
  font-family: inherit;
  font-size: clamp(20px, 2.1vw, 24px);
  font-weight: 600;
  padding: 13px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease;
}
.cta:hover{ background: var(--accent); }
.cta:active{ transform: scale(.97); }

.slide-art{ display:flex; align-items:center; justify-content:center; width:100%; align-self:stretch; min-height:0; }
.slide-art svg{ width: 100%; max-width: 340px; height: auto; }

/* ---------- stage grid ---------- */
.stage-grid{
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 12px;
  margin-top: 28px;
  width: 100%;
}
@media (max-width: 900px){ .stage-grid{ grid-template-columns: repeat(2,1fr); } }
.stage-card{
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
  box-shadow: 0 6px 18px -14px var(--shadow);
}
.stage-card .big-letter{
  font-family: 'Frank Ruhl Libre Heb','Frank Ruhl Libre',serif;
  font-weight: 700;
  font-size: 40px;
  color: var(--accent);
}
.stage-card .gloss{
  font-size: clamp(20px, 2.1vw, 24px);
  color: var(--ink-faint);
  margin-top: 8px;
  line-height: 1.5;
}

/* ---------- callout ---------- */
.callout{
  margin-top: 22px;
  background: var(--teal-soft);
  border-inline-start: 3px solid var(--teal);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.6;
  max-width: 78ch;
}
.callout b{ color: var(--teal); font-weight: 700; }

.callout.note{
  background: transparent;
  border: 1.5px dashed var(--ink-faint);
  border-inline-start: 1.5px dashed var(--ink-faint);
  color: var(--ink-soft);
}
.callout.note b{ color: var(--ink); }

.qlist{
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  max-width: 81ch;
}
.qlist li{
  position: relative;
  padding-inline-start: 20px;
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.6;
}
.qlist li + li{ margin-top: 10px; }
.qlist li::before{
  content: "";
  position: absolute;
  inline-size: 7px;
  block-size: 7px;
  border-radius: 50%;
  background: var(--accent);
  inset-inline-start: 0;
  top: 8px;
}

/* ---------- comparison table ---------- */
.compare-wrap{
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
}
.compare-table{
  width: 100%;
  border-collapse: collapse;
}
.compare-table th{
  background: var(--paper-raised);
  padding: 6px 16px;
  font-size: clamp(20px, 2.1vw, 24px);
  font-weight: 700;
  text-align: center;
}
.compare-table th:first-child{ color: var(--ink-soft); }
.compare-table th:last-child{ color: var(--teal); }
.compare-table td{
  padding: 6px 16px;
  font-size: clamp(20px, 2.1vw, 24px);
  text-align: center;
  border-top: 1px solid var(--line);
}
.compare-table td:first-child{ color: var(--ink-soft); }
.compare-table td:last-child{ color: var(--ink); font-weight: 600; background: var(--teal-soft); }

/* ---------- pie charts ---------- */
.pie-chart-row{
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 18px;
  width: 100%;
}
.pie-chart{
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  flex: 1 1 280px;
}
.pie{
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.pie.small{ width: 78px; height: 78px; }
.pie-legend-title{
  font-size: clamp(20px, 2.1vw, 24px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.pie-legend-item{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(20px, 2.1vw, 24px);
  color: var(--ink);
  line-height: 1.5;
}
.pie-legend-item .swatch{
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}
.pie-legend-note{
  margin-top: 8px;
  font-size: clamp(20px, 2.1vw, 24px);
  color: var(--ink-soft);
  line-height: 1.5;
  max-width: 34ch;
}

/* ---------- committee / majority-bloc diagram ---------- */
.committee{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  width: 100%;
}
.committee-bloc{
  flex: 1 1 220px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-top: 3px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.committee-bloc.coalition{ border-top-color: var(--accent); }
.committee-bloc.opposition{ border-top-color: var(--ink); }
.committee-bloc.judiciary{ border-top-color: var(--teal); }
.committee-bloc-label{
  font-size: clamp(20px, 2.1vw, 24px);
  font-weight: 700;
  margin-bottom: 10px;
}
.committee-bloc.coalition .committee-bloc-label{ color: var(--accent); }
.committee-bloc.opposition .committee-bloc-label{ color: var(--ink); }
.committee-bloc.judiciary .committee-bloc-label{ color: var(--teal); }
.seat-row{
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.seat{
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.3;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}
.threshold-note{
  margin-top: 14px;
  font-size: clamp(20px, 2.1vw, 24px);
  font-weight: 600;
  color: var(--ink-soft);
}
.committee-tally-row{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  width: 100%;
}
.committee-bloc.tally{ flex: 1 1 220px; text-align: center; }
.tally-number{
  font-family: 'Frank Ruhl Libre Heb','Frank Ruhl Libre',serif;
  font-weight: 700;
  font-size: 38px;
  color: var(--ink);
}
.tally-of{
  font-size: clamp(20px, 2.1vw, 24px);
  font-weight: 500;
  color: var(--ink-faint);
  margin-inline-start: 6px;
}
.tally-status{
  margin-top: 6px;
  font-size: clamp(20px, 2.1vw, 24px);
  font-weight: 600;
  color: var(--ink-soft);
}
.tally-status.reached{ color: var(--teal); }

/* ---------- video embed ---------- */
.video-card{
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
  box-shadow: 0 10px 30px -18px var(--shadow);
  text-decoration: none;
}
.video-card img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
  transition: opacity .18s ease, transform .25s ease;
}
.video-card:hover img{ opacity: .65; transform: scale(1.02); }
.video-card .play{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-card .play span{
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(20,20,18,.55);
  border: 1.5px solid rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.video-card .play svg{ width: 20px; height: 20px; }
.video-card .video-label{
  position: absolute;
  inset-inline-start: 0;
  inset-inline-end: 0;
  bottom: 0;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(10,10,9,.82), transparent);
  color: #fff;
  font-size: clamp(20px, 2.1vw, 24px);
  text-align: start;
}

/* ---------- dilemma / quote cards ---------- */
.dilemma-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
  width: 100%;
}
@media (max-width: 760px){ .dilemma-grid{ grid-template-columns: 1fr; } }
.dilemma-card{
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  border-top: 3px solid var(--line);
}
.dilemma-card.yes{ border-top-color: var(--teal); }
.dilemma-card.no{ border-top-color: var(--accent); }
.dilemma-card h3{
  font-family: 'Heebo Heb','Heebo',sans-serif;
  font-size: clamp(20px, 2.1vw, 24px);
  font-weight: 700;
  letter-spacing: .02em;
  margin: 0 0 12px;
}
.dilemma-card.yes h3{ color: var(--teal); }
.dilemma-card.no h3{ color: var(--accent); }
.dilemma-card p{
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.6;
  color: var(--ink);
  margin: 0 0 12px;
}
.quote{
  margin: 0 0 6px;
  padding-inline-start: 12px;
  border-inline-start: 2px solid var(--line-strong, var(--line));
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.6;
  font-style: normal;
  color: var(--ink);
}
.quote-person{ display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.quote-person img{ width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); flex-shrink: 0; }
.quote-person span{ font-size: clamp(20px, 2.1vw, 24px); font-weight: 600; color: var(--ink-soft); }
.quote + .source-note{ margin-bottom: 14px; }
.source-note{
  font-size: clamp(20px, 2.1vw, 24px);
  color: var(--ink-faint);
  margin: 0 0 4px;
}
.source-note.credit{ color: var(--accent); }

/* ---------- issue chips ---------- */
.chip-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
  width: 100%;
  max-width: 560px;
}
.chip{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: clamp(20px, 2.1vw, 24px);
}
.chip .n{
  font-family: 'Frank Ruhl Libre Heb','Frank Ruhl Libre',serif;
  color: var(--ink-faint);
  font-weight: 700;
  margin-inline-end: 10px;
}
.chip .tag{
  font-size: clamp(20px, 2.1vw, 24px);
  color: var(--teal);
  background: var(--teal-soft);
  padding: 4px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---------- summary list ---------- */
.recap{ list-style:none; margin: 20px 0 0; padding:0; display:flex; flex-direction:column; gap:12px; max-width: 78ch; }
.recap li{ display:flex; gap:10px; align-items:flex-start; font-size:clamp(20px, 2.1vw, 24px); line-height:1.6; }
.recap svg{ flex-shrink:0; margin-top:3px; }

/* ---------- lightbox ---------- */
.lightbox{
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,12,12,0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 48px;
  cursor: zoom-out;
  opacity: 0;
  transition: opacity .18s ease;
}
.lightbox.is-open{ display: flex; opacity: 1; }
.lightbox img{
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 10px;
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
  cursor: default;
}
.lightbox-close{
  position: absolute;
  top: 18px;
  inset-inline-end: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox-close:hover{ background: rgba(255,255,255,.2); }
.lightbox-hint{
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.65);
  font-size: clamp(20px, 2.1vw, 24px);
}
@media (prefers-reduced-motion: reduce){
  .lightbox{ transition: none; }
}

/* ---------- controls ---------- */
.controls{
  flex: 0 0 auto;
  border-top: 1px solid var(--line);
  background: var(--paper-raised);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(16px,4vw,40px);
  gap: 16px;
}
.btn{
  font-family: inherit;
  font-size: clamp(20px, 2.1vw, 24px);
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease, opacity .2s ease;
  text-decoration: none;
}
.btn:hover{ border-color: var(--ink); }
.btn.primary{ background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.primary:hover{ background: var(--accent); border-color: var(--accent); }
.btn:disabled{ opacity: .35; cursor: default; }
.btn:disabled:hover{ border-color: var(--line); background: transparent; color: var(--ink); }
.btn.primary:disabled:hover{ background: var(--ink); }

.dots{ display: flex; gap: 7px; }
.dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background-color .2s ease, transform .2s ease;
}
.dot.is-active{ background: var(--accent); transform: scale(1.35); }

:focus-visible{ outline: 2px solid var(--accent); outline-offset: 2px; }


/* ---------- drive-link card (embedded in the topic bar, left quarter) ---------- */
.drive-link{
  position: absolute;
  z-index: 5;
  top: 50%;
  left: 25%;
  transform: translate(-50%, -50%);
  width: auto;
  max-width: 400px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  padding: 8px 16px;
  text-decoration: none;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
  text-align: start;
  white-space: nowrap;
  transition: transform .15s ease;
}
.drive-link:hover{ transform: translate(-50%, -50%) translateY(-2px); }
.drive-link svg{ width: 22px; height: 22px; flex-shrink: 0; }
.drive-link svg path{ stroke: var(--accent); }
@media (max-width: 900px){
  .drive-link{ max-width: 220px; white-space: normal; font-size: 14px; padding: 6px 10px; }
}

/* ---------- lesson index hub ---------- */
.hub{
  height: 100%;
  overflow-y: auto;
  display: flex;
  justify-content: center;
}
.hub-inner{
  width: 100%;
  max-width: 760px;
  padding: clamp(40px,8vh,90px) 24px 60px;
}
.hub-inner h1{ font-size: clamp(34px,5.5vw,52px); }
.hub-inner .slide-sub{ max-width: 60ch; }
.lesson-list{
  list-style: none;
  margin: 34px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lesson-row{
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .2s ease, transform .15s ease;
}
.lesson-row.is-live:hover{ border-color: var(--accent); transform: translateX(-2px); }
.lesson-row.is-soon{ opacity: .55; cursor: default; }
.lesson-row .lnum{
  font-family: 'Frank Ruhl Libre Heb','Frank Ruhl Libre',serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--accent);
  width: 30px;
  flex-shrink: 0;
}
.lesson-row .ltext{ flex: 1 1 auto; }
.lesson-row .ltitle{ font-weight: 600; font-size: clamp(20px, 2.1vw, 24px); }
.lesson-row .lsub{ font-size: clamp(20px, 2.1vw, 24px); color: var(--ink-faint); margin-top: 2px; }
.lesson-row .lstatus{
  font-size: clamp(20px, 2.1vw, 24px);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.lesson-row.is-live .lstatus{ background: var(--teal-soft); color: var(--teal); }
.lesson-row.is-soon .lstatus{ background: var(--line); color: var(--ink-soft); }
.lstatus-wrap{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.wip-badge{
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- grade gate (landing chooser: radical listening on top, two grade columns below) ---------- */
.hub-inner.wide{ max-width: 1040px; }
.gate-top{ margin-top: 34px; }
.gate-top .lesson-row{ max-width: 520px; margin: 0 auto; }
.gate-top-row{ display: grid; grid-template-columns: 1fr minmax(0, 520px) 1fr; gap: 16px; align-items: stretch; }
.gate-top-row .lesson-row{ max-width: none; width: 100%; margin: 0; }
.news-corner{
  justify-self: end;
  width: min(100%, 210px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}
.news-corner-title{ margin: 0; font-size: 24px; line-height: 1.25; color: var(--accent); text-align: center; }
.news-corner-link{
  display: block;
  padding: 10px 12px;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  transition: border-color .15s ease;
}
.news-corner-link:hover{ border-color: var(--accent); }
@media (max-width: 1000px){
  .gate-top-row{ grid-template-columns: 1fr; }
  .gate-top-spacer{ display: none; }
  .news-corner{ width: 100%; justify-self: stretch; }
}
.gate-columns{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 28px;
}
@media (max-width: 760px){ .gate-columns{ grid-template-columns: 1fr; gap: 34px; } }
.gate-col-title{
  font-family: 'Frank Ruhl Libre Heb','Frank Ruhl Libre',serif;
  font-size: clamp(44px, 5.2vw, 56px);
  font-weight: 700;
  margin: 0 0 14px;
  text-align: center;
}
.gate-bottom{
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.gate-bottom .lesson-row{ max-width: 520px; margin: 0 auto; }
