/* Public teacher resources own these styles; the story creator is unchanged. */
.teacher-page { --cream: #fffaf2; --border: #e6ddd1; --ink: #282135; --muted: #625b68; background: var(--cream); }
.teacher-page header { background: #fffaf2f5; }
.teacher-page .nav { min-height: 72px; }
.teacher-page .nav-cta { white-space: nowrap; }
.teacher-page :is(a, summary):focus-visible, .teacher-pathway a:focus-visible { outline: 3px solid #9d5e17; outline-offset: 5px; }
.teacher-page .skip-link { position: fixed; top: 8px; left: 16px; z-index: 50; background: white; padding: 12px 20px; transform: translateY(-160%); }
.teacher-page .skip-link:focus { transform: none; }
.teacher-page h1 { font-size: clamp(2.2rem, 4.5vw, 3.55rem); line-height: 1.08; letter-spacing: -.035em; margin-bottom: 18px; }
.teacher-page h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.15; letter-spacing: -.025em; margin-bottom: 18px; }
.teacher-page h3 { font-size: 1.15rem; line-height: 1.35; margin-bottom: 10px; }
.teacher-page p { color: var(--muted); }
.teacher-page .eyebrow { color: #6d49a7; font-size: .72rem; margin-bottom: 15px; }
.teacher-page .teacher-hero { padding: 62px 0 48px; }
.teacher-hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.teacher-intro { display: flex; align-items: flex-end; gap: 17px; }
.teacher-leo { flex: 0 0 auto; width: 88px; height: 118px; object-fit: contain; margin-bottom: -12px; }
.teacher-speech { position: relative; background: white; border: 1px solid var(--border); border-radius: 24px 24px 24px 6px; padding: 28px; }
.teacher-speech > p:last-child { font-size: 1.02rem; line-height: 1.65; }
.teacher-speech:before { content: ''; position: absolute; width: 15px; height: 15px; background: white; border-left: 1px solid var(--border); border-bottom: 1px solid var(--border); left: -8px; bottom: 23px; transform: rotate(45deg); }
.teacher-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }
.teacher-page .teacher-button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; background: var(--purple); color: white; border-radius: 999px; padding: 12px 22px; font-weight: 600; font-size: .91rem; text-align: center; text-decoration: none; }
.teacher-page .teacher-button:hover { background: var(--purple-dark); text-decoration: none; }
.teacher-page .teacher-button--light { background: white; color: var(--ink); border: 1px solid #cec1de; }
.teacher-page .teacher-button--light:hover { background: #f2eafc; }
.teacher-page .teacher-text-link { color: var(--purple); text-decoration: underline; text-underline-offset: 4px; font-weight: 500; }
.teacher-page .teacher-note { font-size: .8rem; line-height: 1.65; margin-top: 16px; }
.teacher-hero-art { position: relative; padding: 26px; border-radius: 50% 45% 44% 40%; background: #ede3f6; }
.teacher-hero-art img { display: block; width: 100%; height: auto; max-height: 365px; object-fit: contain; transform: rotate(3deg); filter: drop-shadow(0 8px 13px #30233d18); }
.teacher-hero-art figcaption { margin-top: 22px; text-align: center; font-size: .75rem; color: #5c486c; }
.teacher-strip { background: #efe8db; border-block: 1px solid var(--border); }
.teacher-strip .wrap { display: flex; justify-content: space-between; gap: 22px; padding-block: 17px; font-size: .83rem; color: #5f5262; }
.teacher-page .teacher-section { padding: 64px 0; }
.teacher-page main [id] { scroll-margin-top: 88px; }
.teacher-section + .teacher-section { border-top: 1px solid var(--border); }
.teacher-section--white { background: #fffdfa; }
.teacher-section-head { max-width: 680px; margin-bottom: 32px; }
.teacher-section-head > p { line-height: 1.8; }
.teacher-page .teacher-split { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 64px; }
.teacher-page .teacher-split p + p { margin-top: 16px; }
.teacher-lesson { list-style: none; counter-reset: lesson; }
.teacher-lesson li { position: relative; padding: 0 0 24px 56px; counter-increment: lesson; }
.teacher-lesson li:before { content: counter(lesson, decimal-leading-zero); position: absolute; left: 0; top: 0; color: var(--purple); font-size: .8rem; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #d6c9e3; border-radius: 50%; }
.teacher-lesson h3 span { font-size: .78rem; font-weight: 400; color: var(--muted); white-space: nowrap; margin-left: 8px; }
.teacher-lesson p { font-size: .92rem; line-height: 1.7; }
.teacher-demo { background: #f0e8f6; border-radius: 18px; padding: 28px; }
.teacher-demo blockquote { font-family: 'Literata', Georgia, serif; color: var(--ink); font-size: 1.2rem; line-height: 1.8; margin: 13px 0 22px; }
.teacher-demo .demo-label { font-size: .71rem; letter-spacing: .06em; text-transform: uppercase; color: #6b487b; margin-top: 24px; }
.teacher-demo .demo-label:first-child { margin-top: 0; }
.teacher-demo .demo-question { padding-top: 20px; border-top: 1px solid #d7c9e3; font-size: .88rem; }
.teacher-facts { margin-top: 24px; }
.teacher-facts div { padding: 18px 0; border-top: 1px solid var(--border); }
.teacher-facts dt { font-weight: 600; margin-bottom: 5px; }
.teacher-facts dd { color: var(--muted); font-size: .91rem; line-height: 1.8; }
.teacher-enquiry { background: #253346; color: white; border-radius: 22px; padding: 34px; }
.teacher-enquiry p { color: #d5dbe6; font-size: .94rem; line-height: 1.8; }
.teacher-enquiry .teacher-button { background: #f3eaff; color: #332449; }
.teacher-enquiry .teacher-button:hover { background: #e2ccfc; }
.teacher-enquiry .teacher-note { color: #c2cad8; }
.teacher-category-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.teacher-category-nav a { padding: 10px 16px; border: 1px solid #d7c9df; border-radius: 999px; font-size: .85rem; font-weight: 500; }
.teacher-category-nav a:hover { background: #eee3f7; }
.starter-group + .starter-group { margin-top: 44px; }
.starter-group h3 { font-size: 1.4rem; margin-bottom: 20px; }
.starter-grid { display: grid; grid-template-columns: 1fr 1fr; list-style: none; gap: 0 36px; }
.starter-grid li { padding: 24px 0; border-top: 1px solid var(--border); display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.starter-number { font-size: .7rem; color: #6c4bd6; padding-top: 5px; }
.starter-grid blockquote { font-family: 'Literata', Georgia, serif; font-size: 1.12rem; line-height: 1.75; }
.starter-grid p { margin-top: 10px; font-size: .83rem; line-height: 1.7; }
.planner-panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.planner-panel img { width: 100%; max-height: 490px; object-fit: contain; filter: drop-shadow(0 12px 24px #28213512); }
.planner-panel ul { padding-left: 20px; margin: 22px 0; color: var(--muted); }
.planner-panel li + li { margin-top: 10px; }
.teacher-adaptations { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin-top: 30px; }
.teacher-adaptations article { border-left: 3px solid #c8b0df; padding-left: 22px; }
.teacher-adaptations p { font-size: .93rem; line-height: 1.8; }
.teacher-page .foot { padding-block: 28px; gap: 20px; }
.teacher-page .foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
/* A small, visible route from existing landing pages, including mobile. */
.teacher-pathway { background: #f2eafa; border-block: 1px solid #dfd1eb; color: #332449; }
.teacher-pathway .wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px; padding-block: 22px; }
.teacher-pathway p { margin: 0; color: #5d5269; font-size: .9rem; line-height: 1.6; }
.teacher-pathway strong { color: #332449; display: block; margin-bottom: 3px; font-size: 1rem; }
.teacher-pathway a { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 19px; border: 1px solid #c8b3db; border-radius: 999px; color: #5635a6; font-size: .86rem; font-weight: 600; text-decoration: none; }
.teacher-pathway a:hover { background: #e8dcf3; text-decoration: none; }
@media (max-width: 800px) {
  .teacher-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .teacher-hero-art { display: none; }
  .teacher-page .teacher-split, .planner-panel { grid-template-columns: 1fr; gap: 32px; }
  .planner-panel > img { max-height: 380px; order: 2; }
  .teacher-page .teacher-hero { padding-block: 36px; }
  .teacher-strip .wrap { flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
}
@media (max-width: 540px) {
  .teacher-page .wrap { padding-inline: 20px; }
  .teacher-page .brand { font-size: 1rem; gap: 6px; }
  .teacher-intro { gap: 10px; }
  .teacher-leo { width: 47px; height: 74px; margin-bottom: -6px; }
  .teacher-speech { padding: 23px 20px; border-radius: 19px 19px 19px 6px; }
  .teacher-page h1 { font-size: 2.1rem; }
  .teacher-speech > p:last-child { font-size: .93rem; }
  .teacher-actions { gap: 12px; }
  .teacher-page .teacher-button { padding-inline: 18px; font-size: .86rem; }
  .teacher-page .teacher-section { padding-block: 44px; }
  .starter-grid, .teacher-adaptations { grid-template-columns: 1fr; }
  .starter-grid li { padding-block: 21px; }
  .teacher-enquiry, .teacher-demo { padding: 24px; }
  .teacher-pathway .wrap { align-items: flex-start; flex-direction: column; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .teacher-page { scroll-behavior: auto; } html:has(.teacher-page) { scroll-behavior: auto; } }
@media print {
  .teacher-page { background: white; color: #222; }
  .teacher-page header, .teacher-page footer, .teacher-leo, .teacher-actions, .teacher-category-nav, .teacher-strip, .teacher-hero-art, .teacher-enquiry { display: none; }
  .teacher-page .teacher-section { padding: 20px 0; }
  .teacher-speech { border: 0; padding: 0; }
  .teacher-speech:before { display: none; }
  .starter-grid { grid-template-columns: 1fr; }
  .starter-grid li, .teacher-adaptations article { break-inside: avoid; }
}
