/* Teacher onboarding, scoped away from the student practice interface. */
.teachers-page {
  --blue: #245b99;
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 28px 36px;
  border: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}
.teachers-page h1, .teachers-page h2, .teachers-page h3 { text-align: left; color: var(--text-primary); }
.teachers-page h1 { font: 700 clamp(2.4rem, 4.7vw, 3.8rem)/1.1 'Source Serif 4', Georgia, serif; letter-spacing: -.035em; margin: 14px 0 22px; }
.teachers-page h2 { font: 700 clamp(1.9rem, 3vw, 2.5rem)/1.2 'Source Serif 4', Georgia, serif; letter-spacing: -.025em; margin: 8px 0 14px; }
.teachers-page h3 { font-size: 1.08rem; line-height: 1.45; margin: 12px 0; }
.teachers-page p { line-height: 1.7; }
.teachers-page a { color: var(--blue); text-underline-offset: 3px; }
[data-theme="dark"] .teachers-page { --blue: #8ab8fb; }
.page-topbar .theme-toggle .theme-icon-sun, .page-topbar .theme-toggle .theme-icon-moon { display: none; }
html[data-theme="light"] .page-topbar .theme-icon-sun, html[data-theme="dark"] .page-topbar .theme-icon-moon { display: block; }
.page-topbar .page-topbar-nav a:not(.active) { color: var(--text-secondary); }
.teacher-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 42px; align-items: center; }
.eyebrow { color: var(--blue); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 0; }
.hero-intro { color: var(--text-secondary); font-size: 1.06rem; max-width: 580px; }
.teacher-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.teacher-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 13px 18px; border: 1px solid var(--border); border-radius: 8px; text-decoration: none; font-size: .9rem; font-weight: 700; }
.teacher-button.primary { background: #245b99; color: #fff; border-color: #245b99; }
.teacher-button.secondary { background: var(--bg-panel); color: var(--text-primary); }
.teacher-button:hover { filter: brightness(.94); }
.hero-access { font-size: .88rem; color: var(--text-muted); max-width: 560px; }
.hero-access a { color: var(--blue); }
.hero-simulation { margin: 0; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-panel); box-shadow: 0 18px 44px #102c4820; }
.hero-simulation .screenshot-link { border-radius: 13px 13px 0 0; }
.hero-simulation figcaption { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 16px; font-size: .8rem; color: var(--text-secondary); }
.hero-simulation figcaption a { margin-left: auto; font-weight: 600; color: var(--blue); text-decoration: none; }
.live-example-dot { width: 7px; height: 7px; background: #259888; border-radius: 50%; }
.teacher-jump-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; padding: 24px 0; margin: 42px 0 0; border-block: 1px solid var(--border); }
.teacher-jump-nav a { color: var(--text-secondary); font-size: .9rem; font-weight: 600; text-decoration: none; }
.teacher-jump-nav a:hover { color: var(--blue); text-decoration: underline; }
.guide-section { padding: 58px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 96px; }
.section-heading { max-width: 700px; margin-bottom: 30px; }
.section-heading > p:last-child { color: var(--text-secondary); margin: 0; }
.daily-flow { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg-panel); }
.daily-flow li { padding: 28px; border-right: 1px solid var(--border); }
.daily-flow li:last-child { border-right: 0; }
.step-kicker { color: var(--blue); font-size: .8rem; font-weight: 700; }
.daily-flow p { color: var(--text-secondary); font-size: .95rem; }
.daily-flow a { color: var(--blue); font-size: .9rem; font-weight: 600; }
.difficulty-key { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.difficulty-key span { border-radius: 5px; padding: 5px 7px; font-size: .8rem; font-weight: 700; }
.difficulty-key .easy { color: #176340; background: #e0f3e8; }
.difficulty-key .medium { color: #845006; background: #fff0cf; }
.difficulty-key .hard { color: #9c3034; background: #ffe6e5; }
.difficulty-key .boss { color: #623f9a; background: #ede5fb; }
.teacher-note { font-size: .88rem; color: var(--text-muted); margin: 18px 0 0; max-width: 980px; }
.setup-checklist { list-style: none; counter-reset: setup; padding: 0; max-width: 780px; }
.setup-checklist li { counter-increment: setup; position: relative; padding: 0 0 24px 56px; }
.setup-checklist li::before { content: counter(setup); display: grid; place-items: center; position: absolute; left: 0; top: 0; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 50%; color: var(--blue); font-weight: 700; background: var(--bg-panel); }
.setup-checklist h3 { margin: 0 0 7px; }
.setup-checklist p { margin: 0; color: var(--text-secondary); }
.teachers-section { margin: 0; padding: 42px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 96px; }
.teachers-section h2 { border: 0; padding: 0; }
.teachers-page :focus-visible { outline: 3px solid #2f94ba; outline-offset: 5px; }
.teacher-skip-link { position: fixed; left: 12px; top: -80px; z-index: 200; padding: 12px 20px; background: var(--bg-panel); color: var(--blue); border: 2px solid var(--blue); border-radius: 6px; }
.teacher-skip-link:focus { top: 8px; }
.setup-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.setup-layout .setup-checklist { margin: 0; }
.setup-screenshots { display: grid; gap: 28px; }
.guide-screenshot { margin: 0; }
.screenshot-link { display: block; position: relative; overflow: hidden; background: #102739; }
.screenshot-link img { display: block; width: 100%; height: auto; }
.guide-screenshot .screenshot-link { border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 7px 24px #102a4410; }
.image-zoom { position: absolute; top: 10px; right: 10px; display: inline-flex; padding: 7px 10px; border-radius: 5px; background: #12304bef; color: #fff; font-size: .75rem; font-weight: 600; opacity: 0; transition: opacity .15s; pointer-events: none; }
.screenshot-link:hover .image-zoom, .screenshot-link:focus-visible .image-zoom { opacity: 1; }
.guide-screenshot figcaption { margin: 12px 0 0; color: var(--text-muted); font-size: .88rem; line-height: 1.65; }
.guide-screenshot figcaption strong { color: var(--text-secondary); }
.wide-screenshot { max-width: 100%; }
.workflow-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 26px; }
.workflow-notes h3 { margin-bottom: 8px; }
.workflow-notes p { margin: 0; color: var(--text-secondary); font-size: .95rem; }
.student-join-layout { display: grid; grid-template-columns: 1fr 300px; gap: 72px; align-items: center; margin-bottom: 32px; }
.student-steps { margin: 0; }
.join-screenshot .screenshot-link { background: #fff; border-radius: 16px; }
.class-message { display: grid; grid-template-columns: 1fr 245px; gap: 30px; align-items: center; padding: 26px 30px; margin-top: 30px; border-left: 4px solid #259888; background: var(--bg-panel-alt); border-radius: 0 8px 8px 0; }
.class-message h3 { margin: 0 0 10px; }
.class-message p { color: var(--text-secondary); margin: 0; font-size: .95rem; }
.copy-control { display: grid; gap: 12px; }
#copy-routine { cursor: pointer; font-family: inherit; padding: 12px; }
#copy-status { font-size: .85rem; color: var(--text-secondary); line-height: 1.5; }
.guided-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.guided-example { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg-panel); }
.guided-example .screenshot-link { aspect-ratio: 1.4; }
.guided-example img { height: 100%; object-fit: cover; object-position: top; }
.guided-example .image-zoom { opacity: 1; }
.boss-trailer { margin: 0 0 24px; }
.boss-trailer video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--border); border-radius: 12px; background: #0b1622; box-shadow: 0 7px 24px #102a4418; }
.boss-trailer figcaption { margin: 10px 0 0; color: var(--text-muted); font-size: .88rem; }
.example-copy { padding: 23px; }
.example-copy h3 { margin: 10px 0; }
.example-copy p { color: var(--text-secondary); font-size: .95rem; }
.example-copy a { color: var(--blue); font-weight: 600; font-size: .9rem; }
.teacher-details { border: 1px solid var(--border); border-radius: 10px; background: var(--bg-panel); }
.teacher-details summary { padding: 20px 24px; cursor: pointer; font-weight: 600; color: var(--text-primary); }
.details-content { padding: 0 24px 24px; }
.details-content > p { color: var(--text-secondary); margin-top: 0; }
.teacher-details .video-container { margin: 18px 0; border-radius: 8px; }
.teacher-details iframe { border: 0; }
#equipment-section { padding: 24px 0 0; border: 0; }
#equipment-section .details-content h3 { margin-top: 28px !important; }
#equipment-section .details-content ul { font-size: .95rem !important; }
#signup-section { max-width: 850px; margin: 0 auto; padding-top: 48px; }
#signup-section h2 { text-align: center; }
.teacher-support { text-align: center; border: 0; max-width: 700px; margin: auto; }
.teacher-support h2 { text-align: center; }
.screenshot-open { overflow: hidden; }
.screenshot-dialog { padding: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-panel); color: var(--text-primary); width: min(1120px, 94vw); max-width: 94vw; max-height: 92dvh; box-shadow: 0 24px 100px #0008; }
.screenshot-dialog[open] { display: flex; flex-direction: column; }
.screenshot-dialog::backdrop { background: #081729d9; }
.screenshot-dialog-toolbar { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 18px; }
.screenshot-dialog-toolbar a { color: #245b99; font-size: .9rem; }
[data-theme="dark"] .screenshot-dialog-toolbar a { color: #8ab8fb; }
.screenshot-dialog-toolbar button { border: 1px solid var(--border); background: var(--bg-panel-alt); color: var(--text-primary); font: 600 .9rem/1.4 Inter,sans-serif; padding: 8px 12px; border-radius: 6px; cursor: pointer; }
.screenshot-dialog-scroll { overflow: auto; min-height: 0; background: #102739; }
.screenshot-dialog-scroll img { display: block; width: 100%; height: auto; }
#screenshot-caption { flex-shrink: 0; margin: 0; padding: 14px 18px; font-size: .9rem; line-height: 1.5; color: var(--text-secondary); }
.screenshot-dialog :focus-visible { outline: 3px solid #2f94ba; outline-offset: 3px; }
@media (max-width: 900px) {
  .teacher-hero { gap: 30px; grid-template-columns: 1.2fr 1fr; }
  .daily-flow li { padding: 20px; }
  .setup-layout { gap: 28px; }
  .student-join-layout { gap: 30px; grid-template-columns: 1fr 270px; }
  .guided-gallery { gap: 14px; }
  .example-copy { padding: 18px; }
  .class-message { grid-template-columns: 1fr; }
  .copy-control { justify-items: start; }
}
@media (max-width: 700px) {
  .teachers-page { padding: 32px 20px 20px; margin: 0; }
  .teacher-hero, .daily-flow { grid-template-columns: 1fr; }
  .teacher-jump-nav { margin-top: 30px; gap: 16px 22px; }
  .guide-section { padding: 40px 0; }
  .daily-flow li { border-right: 0; border-bottom: 1px solid var(--border); padding: 24px; }
  .daily-flow li:last-child { border-bottom: 0; }
  .teacher-button { width: 100%; }
  .setup-checklist li { padding-left: 48px; }
  .setup-layout, .student-join-layout, .workflow-notes, .guided-gallery { grid-template-columns: 1fr; }
  .join-screenshot { max-width: 320px; margin: 0 auto; }
  .hero-simulation { box-shadow: none; }
  .workflow-notes { gap: 8px; }
  .class-message { padding: 22px; }
  .teacher-details summary { padding: 18px; }
  .details-content { padding: 0 18px 18px; }
  .image-zoom { opacity: 1; font-size: .75rem; }
  #screenshot-caption { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { .image-zoom { transition: none; } }
