/* Teacher-facing site shell — aligned with kit night (projector contrast) */
:root {
  --bg: #0a0e1a;
  --surface: #121a2b;
  --surface-2: #0e1524;
  --ink: #ffffff;
  --muted: #a7b6d4;
  --line: #4a5d82;
  --accent: #5eead4;
  --accent-soft: #2a5a56;
  --badge: #1a2740;
  --badge-ink: #5eead4;
  --soon: #8fa3c7;
  --font-ui: "Inter", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 14px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 15% -10%, #101a30 0%, transparent 55%),
    radial-gradient(900px 600px at 100% 0%, #152033 0%, transparent 45%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 28px 20px 72px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.site-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

.site-brand:hover { text-decoration: none; color: var(--accent); }

.site-nav-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.site-nav-links a { color: var(--muted); }
.site-nav-links a:hover { color: var(--ink); }
.site-nav-links a.nav-current { color: var(--ink); font-weight: 600; }
.site-nav-links .nav-sep { color: var(--line); user-select: none; }

html:not(.workshop) .workshop-only {
  display: none !important;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 600;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 36rem;
  font-size: 1.05rem;
}

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

.search-box input {
  flex: 1;
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.search-box input:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}

.topic-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 36px;
}

.topic-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.topic-card:hover {
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}

.topic-card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 6px;
}

.card-kicker {
  margin: 0 0 8px !important;
  color: var(--ink) !important;
  font-size: 0.95rem !important;
  font-weight: 500;
}

.page-lede {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.dot-id {
  margin: -12px 0 18px;
  font-size: 0.8rem;
}

.dot-id code {
  font-family: var(--font-mono);
  color: var(--muted);
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
}

.topic-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.results, .subtopic {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
}

.subtopic-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
}

.subtopic-head h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0;
}

.hours {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.dot-list { list-style: none; margin: 0; padding: 0; }

.dot-list li {
  border-top: 1px solid var(--line);
}

.dot-list li:first-child { border-top: none; }

.dot-list li.dot-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot-list a,
.dot-list a.dot-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  color: inherit;
  text-decoration: none;
}

.dot-list li.dot-row > a.dot-main {
  flex: 1;
  min-width: 0;
}

.dot-list li.dot-row > a.dot-main:hover,
.dot-list a:hover { background: rgba(94, 234, 212, 0.06); }

.dot-list .mi-fb-request-mount {
  flex-shrink: 0;
  padding: 8px 14px 8px 0;
}

/* Topic lists: request is secondary — live interactive badges stay louder. */
.dot-list .mi-fb-request-btn {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
  color: var(--soon);
  background: transparent;
  border: 1px solid var(--line);
}
.dot-list .mi-fb-request-btn:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--muted);
}

.dot-text { flex: 1; font-size: 0.98rem; }

.badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--badge);
  color: var(--badge-ink);
}

.badge.request {
  background: var(--surface-2);
  color: var(--soon);
}

.page-header {
  margin-bottom: 22px;
}

.page-header .crumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin: 0 0 10px;
}

.about-prose {
  max-width: 40rem;
}

.about-prose p {
  margin: 0 0 1.15em;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.about-lede {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 500;
  color: var(--ink) !important;
  line-height: 1.45;
}

.syllabus-text {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 22px;
  font-size: 1.02rem;
}

.interactive-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 18px;
}

.interactive-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.interactive-meta-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.interactive-meta h2 {
  font-size: 1rem;
  margin: 0;
  font-weight: 600;
}

.type-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 8px;
  border-radius: 999px;
}

.interactive-block iframe {
  display: block;
  width: 100%;
  height: min(78vh, 820px);
  border: 0;
  background: #0a0e1a;
}

.chooser-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 24px;
}

.chooser-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.chooser-card:hover {
  border-color: var(--accent);
  text-decoration: none;
  transform: translateY(-1px);
}

.chooser-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.chooser-card h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0;
  font-weight: 600;
}

.chooser-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.chooser-cta {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}

.syllabus-text-compact {
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.sibling-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.sibling-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-right: 4px;
}

.sibling-chip {
  font-size: 0.82rem;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
}

.sibling-chip:hover { border-color: var(--accent); text-decoration: none; }

.sibling-chip.current {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.back-link {
  margin-top: 14px;
  font-size: 0.95rem;
}

.interactive-summary {
  padding: 10px 16px 14px;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  border-top: 1px solid var(--line);
}

.empty-note {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 8px 0 4px;
}

.request-applet {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.request-applet-lede {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 14px;
  max-width: 42rem;
  line-height: 1.45;
}

.hidden { display: none !important; }

footer.site-foot {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.site-btn {
  font: inherit;
  font-size: 0.9rem;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.site-btn:hover { border-color: var(--accent); }

/* —— Recently updated applets —— */
.recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.recent-list li {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 14px 18px;
  align-items: start;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
}
.recent-list li:first-child { border-top: none; }
.recent-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: 3px;
  white-space: nowrap;
}
.recent-title {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.recent-title:hover { color: var(--accent); }
.recent-summary {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
  max-width: 44rem;
}
.recent-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-top: 2px;
}
.recent-course {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 720px) {
  .recent-list li {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "date meta"
      "main main";
  }
  .recent-date { grid-area: date; }
  .recent-main { grid-area: main; }
  .recent-meta { grid-area: meta; }
}

/* —— Play theater: applet fills the viewport by default —— */
body.play-theater {
  background: #0a0e1a;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

body.play-theater .site-wrap-theater {
  max-width: none;
  margin: 0;
  padding: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

.play-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  flex-wrap: wrap;
  padding: 8px 14px;
  background: #0e1524;
  border-bottom: 1px solid #4a5d82;
  color: #ffffff;
}

.play-bar-left,
.play-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.play-back {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #5eead4;
  white-space: nowrap;
  text-decoration: none;
}
.play-back:hover { text-decoration: underline; }

.play-next-review {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid #5eead4;
  border-radius: 999px;
  padding: 5px 12px;
  color: #0a0e1a;
  background: #5eead4;
}
.play-next-review:hover {
  filter: brightness(1.08);
}
.play-next-review:disabled {
  opacity: 0.65;
  cursor: wait;
}
body.play-reviewing .play-next-review {
  box-shadow: 0 0 0 2px rgba(94, 234, 212, 0.35);
}

.play-titles { min-width: 0; }

.play-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(52vw, 420px);
}

.play-crumb {
  margin: 0;
  font-size: 0.72rem;
  color: #a7b6d4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(52vw, 420px);
}

.play-siblings {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: min(48vw, 520px);
}

.play-sib {
  font-size: 0.75rem;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid #4a5d82;
  color: #c5d0e6;
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.play-sib:hover {
  border-color: #5eead4;
  color: #ffffff;
  text-decoration: none;
}
.play-sib.current {
  border-color: #5eead4;
  background: #2a5a56;
  color: #ffffff;
}

body.play-theater .type-pill {
  color: #5eead4;
  background: #2a5a56;
}

.play-frame {
  flex: 1 1 auto;
  display: block;
  width: 100%;
  min-height: 0;
  height: auto;
  border: 0;
  background: #0a0e1a;
}

/* Feedback mount in the dark play bar */
body.play-theater .mi-fb-shell-btn,
body.play-theater .mi-fb-mount .mi-fb-toggle {
  border-color: #4a5d82;
}

/* —— Pairwise compare / Elo —— */
/* Compare is a judging theater — full-bleed so the two panes get real estate */
body.compare-page .site-wrap {
  max-width: 1880px;
  padding-left: 24px;
  padding-right: 24px;
}
.compare-header { margin-bottom: 12px; }
.compare-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-bottom: 14px;
}
.compare-prompt-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--muted, #5b6b86);
  flex: 1 1 280px;
}
.compare-prompt {
  font: inherit;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
}
.compare-check {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 0.9rem;
}
.compare-meta { color: var(--muted, #5b6b86); font-size: 0.9rem; }
.compare-actions { display: flex; gap: 8px; margin-left: auto; }
.compare-pick-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.compare-pick-mid {
  text-align: center;
  min-width: 0;
}
.compare-keys {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted, #5b6b86);
}
.compare-pick-mid .empty-note {
  margin: 4px 0 0;
  min-height: 1.2em;
}
.compare-arena {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}
@media (max-width: 900px) {
  .compare-pick-bar { grid-template-columns: 1fr; }
  .compare-arena { grid-template-columns: 1fr; }
}
.compare-pane {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: var(--surface);
}
.compare-pane-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  min-height: 1.6em;
}
.compare-open {
  margin-left: auto;
  font-size: 0.82rem;
  white-space: nowrap;
  visibility: hidden;
}
.compare-frame-shell {
  position: relative;
  overflow: hidden;
  height: clamp(460px, calc(100vh - 330px), 980px);
  border: 1px solid var(--line, #d5dbe8);
  border-radius: 8px;
  background: #0a0e1a;
}
.compare-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  transform-origin: 0 0;
  background: #0a0e1a;
}
.compare-pick {
  width: 100%;
  font-weight: 600;
  border: none;
  color: #fff;
}
.compare-pick:hover { filter: brightness(1.06); border: none; }
#pickLeft.compare-pick {
  background: #1d4ed8;
}
#pickLeft.compare-pick:hover { background: #1e40af; }
#pickRight.compare-pick {
  background: #b45309;
}
#pickRight.compare-pick:hover { background: #92400e; }
.compare-rank-wrap {
  margin: 28px auto 0;
  max-width: 960px;
}
.compare-rank {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.compare-rank li {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto;
  gap: 10px;
  align-items: baseline;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.compare-rank li:last-child { border-bottom: 0; }
.compare-rank-num {
  font-variant-numeric: tabular-nums;
  color: var(--muted, #5b6b86);
  font-weight: 600;
}
.compare-rank-main { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.compare-rank-stats {
  font-size: 0.82rem;
  color: var(--muted, #5b6b86);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* —— Home landing: brand copy + 1+2 live mosaic —— */
.site-wrap-home {
  max-width: min(1280px, 100%);
}

.home-hero {
  display: grid;
  gap: 28px;
  margin-bottom: 40px;
}

@media (min-width: 960px) {
  .home-hero {
    grid-template-columns: minmax(17rem, 0.78fr) minmax(0, 1.55fr);
    align-items: center;
    gap: 48px;
    margin-bottom: 48px;
  }
}

.home-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.home-hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.15rem);
  font-weight: 600;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
  line-height: 0.98;
  color: var(--ink);
}

.home-rule {
  width: 7.5rem;
  height: 3px;
  margin: 0 0 20px;
  border-radius: 99px;
  background: linear-gradient(90deg, #5eead4 0%, #fb7185 52%, #fbbf24 100%);
}

.home-lede {
  margin: 0 0 28px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  line-height: 1.4;
  max-width: 18em;
}

.home-hot {
  color: var(--accent);
  font-style: italic;
}

.home-course-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}

.home-course-dot {
  color: var(--line);
  user-select: none;
}

.home-course-link {
  text-decoration: none;
}
.home-course-link:hover { text-decoration: none; filter: brightness(1.12); }
.home-course-link.spec { color: #5eead4; }
.home-course-link.meth { color: #fb7185; }
.home-course-link.gen { color: #fbbf24; }

.home-count {
  margin: 22px 0 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-count-num {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.home-hero-stage {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.home-hero-feature .home-carousel {
  aspect-ratio: 16 / 9;
  min-height: 240px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(94, 234, 212, 0.12);
}

.home-hero-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .home-hero-pair {
    grid-template-columns: 1fr 1fr;
  }
}

.home-hero-pair .home-carousel {
  aspect-ratio: 16 / 11;
  min-height: 150px;
}

.home-carousel-cell {
  min-width: 0;
}

.home-courses .topic-card.course-spec { border-top: 3px solid #5eead4; }
.home-courses .topic-card.course-meth { border-top: 3px solid #fb7185; }
.home-courses .topic-card.course-spec:hover { border-color: #5eead4; }
.home-courses .topic-card.course-meth:hover { border-color: #fb7185; }
.home-courses .topic-card.course-gen { border-top: 3px solid #fbbf24; }
.home-courses .topic-card.course-gen:hover { border-color: #fbbf24; }

.home-carousel {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 11;
  min-height: 200px;
}

.home-carousel-stage {
  position: absolute;
  inset: 0;
}

.home-carousel-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.home-carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.home-carousel-slide iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bg);
  pointer-events: none;
}

.home-carousel-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-indent: -9999px;
  overflow: hidden;
}

.home-carousel-scrim {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(10, 14, 26, 0.92) 0%,
    rgba(10, 14, 26, 0.4) 55%,
    transparent 100%
  );
}

.home-carousel-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 10px;
  pointer-events: none;
}

.home-carousel-caption {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  max-width: 90%;
  line-height: 1.25;
}

.home-carousel-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
  flex-shrink: 0;
}

.home-carousel-nav {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(18, 26, 43, 0.7);
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.home-carousel-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.home-carousel-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.home-carousel-dot {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.home-carousel-dot.is-active {
  background: var(--accent);
  transform: scale(1.2);
}

.home-courses {
  margin-bottom: 8px;
}

@media (max-width: 640px) {
  .home-hero-feature .home-carousel {
    aspect-ratio: 16 / 10;
    min-height: 200px;
  }
  .home-hero-pair .home-carousel {
    aspect-ratio: 5 / 4;
    min-height: 150px;
  }
  .home-carousel-caption {
    font-size: 0.85rem;
    max-width: 90%;
  }
}

