/* The shared teacher guide uses the same visual tokens for every reader family. */
html:has(body.teacher-guide) { color-scheme: dark; }
html[data-theme="light"]:has(body.teacher-guide) { color-scheme: light; }

.teacher-guide {
  --guide-background: radial-gradient(ellipse at top right, #34527d 0, transparent 28rem), linear-gradient(#17284f, #0c1430);
  --guide-card: #161d31;
  --guide-text: #f2f5ff;
  --guide-line: #344568;
  --guide-shadow: 0 24px 58px #05081666;
  margin: 0;
  min-height: 100vh;
  background: var(--guide-background);
  color: var(--guide-text);
  font: 400 1rem/1.55 system-ui, sans-serif;
}

html[data-theme="light"] .teacher-guide {
  --guide-background: #f4f1ea;
  --guide-card: #fffdf8;
  --guide-text: #243047;
  --guide-line: #ddd6c8;
  --guide-shadow: 0 5px 20px #2430470d;
}

.teacher-guide *, .teacher-guide *::before, .teacher-guide *::after { box-sizing: border-box; }

.teacher-guide > .shell {
  width: min(1180px, calc(100% - 28px));
  margin-inline: auto;
  padding-block: 1rem 2rem;
}

.teacher-guide .teacher-layout {
  max-width: 920px;
  margin-inline: auto;
}

.teacher-guide .book {
  border-radius: 26px;
  background: var(--guide-card);
  box-shadow: var(--guide-shadow);
  overflow-wrap: anywhere;
}

.teacher-guide .teacher-hero {
  padding: clamp(1.25rem, 5vw, 2.625rem);
}

.teacher-guide .teacher-hero h1 {
  font: 700 clamp(1.8rem, 5vw, 3.45rem)/1.14 Georgia, serif;
  margin: 0 0 .8rem;
  letter-spacing: -.025em;
}

.teacher-guide .teacher-details { padding: 0 clamp(1.25rem, 5vw, 2.625rem) 1.5rem; }
.teacher-guide .teacher-details h2 { margin: 0 0 .6rem; line-height: 1.25; }
.teacher-guide .teacher-details section + section { border-color: var(--guide-line); }
.teacher-guide .teacher-details p:last-child,
.teacher-guide .teacher-details ul:last-child { margin-bottom: 0; }

@media (max-width: 520px) {
  .teacher-guide > .shell { width: calc(100% - 16px); }
  .teacher-guide .book { border-radius: 20px; }
}
