[hidden] { display: none !important; }
.skip-link { position: absolute; top: -100px; left: 12px; z-index: 10; background: white; padding: 12px; }
.skip-link:focus { top: 12px; }
.reader-switch { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.reader-switch [aria-pressed="true"] { background: var(--accent); color: white; }
.reading-layer { background: #fffdf7; border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 4vw, 38px); box-shadow: var(--shadow); margin-bottom: 28px; }
.reading-layer h2 { font-family: var(--font-head); line-height: 1.25; font-size: clamp(1.7rem, 4vw, 2.4rem); max-width: 30ch; }
.reading-layer > p, .reading-blockers, .reading-layer details { max-width: 68ch; }
.reading-label { color: #675322; font-weight: 750; font-size: .9rem; letter-spacing: .025em; }
.reader-preview { margin: 24px 0; max-width: 500px; }
.reader-preview figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.reading-layer svg { display: block; width: 100%; max-width: 600px; height: auto; }
.reading-blockers { border-left: 4px solid #a87a26; padding: 8px 8px 8px 30px; background: #f7f0df; }
.reading-blockers li { padding: 7px 0; }
.reading-layer details { margin: 22px 0; overflow-wrap: anywhere; }
.reading-layer summary { cursor: pointer; padding: 12px 0; font-weight: 700; }
.reader-toolbar, .reader-page-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0; }
.reader-toolbar select { min-height: 44px; font: inherit; max-width: 100%; }
.reader-page { --reading-scale: 1; }
.reading-text { font-size: calc(1.4rem * var(--reading-scale)); line-height: 1.8; max-width: 52ch; }
.young .reading-text { font-size: calc(1.65rem * var(--reading-scale)); }
.reader-question { margin-top: 24px; border: 2px solid var(--line); border-radius: 16px; padding: 18px; min-width: 0; }
.reader-question button { display: block; margin: 10px 0; text-align: left; white-space: normal; }
.reader-question [aria-pressed="true"], .reader-page-nav [aria-current] { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.btn, .toggle { min-height: 44px; }
.btn:disabled { opacity: .55; cursor: default; }
.reader-status, .reader-audio-status { min-height: 1.6em; }
.reading-layer { background: #fffdf7; }
.reader-page { display: grid; grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr); column-gap: 30px; align-items: start; }
.reader-page h2 { grid-column: 1 / -1; margin-top: 12px; }
.story-figure { margin: 0; position: static; }
.story-figure img { width: 100%; height: auto; border-radius: 18px; }
.reading-text { font-size: calc(1.2rem * var(--reading-scale)); line-height: 1.8; }
.reading-text p:first-child { margin-top: 0; }
.young .reading-text { font-size: calc(1.45rem * var(--reading-scale)); line-height: 1.75; }
.reader-page-nav { justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
.reader-switch .btn[aria-pressed="false"] { color: var(--accent); background: #fff; border: 1px solid var(--accent); }
.reader-question .btn[aria-pressed="false"] { color: var(--ink); background: #f1f0e5; border: 1px solid #9eaa92; }
.scene-progress { font-weight: 700; font-size: .9rem; }
.story-pause, .scene-jump, .story-end { grid-column: 1 / -1; }
.story-pause { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 5px; }
.story-pause summary { font-weight: 700; cursor: pointer; min-height: 48px; padding: 12px 0; }
.story-pause textarea { display: block; width: 100%; font: inherit; padding: 12px; border: 1px solid #8c9b83; border-radius: 10px; line-height: 1.6; margin-top: 10px; }
.discussion-label { display: block; margin-top: 22px; }
.scene-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.scene-jump button { min-width: 44px; }
.scene-jump [aria-current] { background: var(--accent); color: white; }
.story-end { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; }
.story-end a { display: inline-block; margin: 15px; }
.story-discussion { margin: 24px 0; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.reference-note { margin-top: 25px; }
.book-card > img { margin: -2px 0 18px; width: 100%; height: auto; border-radius: 12px; }
.book-card { padding: 15px; }
.book-card h3 { font-size: 1.5rem; }
.book-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.reading-layer > .reader-audio-status { font-size: .83rem; color: var(--muted); margin-top: 0; }
body[data-level="4"] .story-figure img, body[data-level="5"] .story-figure img { border-radius: 5px; }
@media (max-width: 760px) {
  .reader-page { display: block; }
  .story-figure { position: static; margin-bottom: 24px; }
  .book-grid { grid-template-columns: 1fr; }
  .reader-toolbar { gap: 8px; }
  .reader-page-nav { gap: 8px; }
  .reader-page-nav .btn { padding: 9px 11px; }
  .scene-progress { font-size: .82rem; }
}
.catalog-status { color: #675322; font-size: .9rem; margin: 12px 0; }
.catalog-gap { font-size: .9rem; color: var(--muted); }
.private-notice { background: #f7f0df; border-left: 4px solid #a87a26; padding: 14px 18px; margin: 20px 0; }
.site-head .wrap { flex-wrap: wrap; }
.site-head .brand { min-width: 0; flex: 1; }
.site-head img { max-width: 90px; object-fit: contain; }
@media (max-width: 480px) { .site-head img { max-width: 58px; } .site-head .brand { font-size: 1rem; } .reader-page-nav { gap: 8px; } .reader-page-nav .btn { padding: 8px 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-head, .reader-switch, .reader-toolbar, .reader-page-nav, .reader-question button { display: none !important; } .reading-layer { box-shadow: none; border: 0; } }
/* Book layer (stories with a book block): cover, word work, Thinking Cycle, progress, workbook, print. */
.book-cover { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); column-gap: 32px; align-items: center; }
.book-cover > .crumbs { grid-column: 1 / -1; }
.book-cover > .cover-art { grid-column: 1; grid-row: 2 / span 7; width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); }
.book-cover > :not(.crumbs):not(.cover-art) { grid-column: 2; }
.cover-line { font-size: 1.1rem; line-height: 1.6; max-width: 46ch; }
.cover-imprint { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 650; font-size: .9rem; color: var(--muted); }
.cover-imprint img { height: 48px; width: auto; }
.book-progress, .book-words, .book-cycle { border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin: 24px 0; background: #fff; }
.progress-total { font-weight: 750; font-size: 1.15rem; }
.progress-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.progress-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(90px, 40%); gap: 12px; align-items: center; }
.progress-list progress { width: 100%; height: 14px; accent-color: var(--accent); }
.review-list ul { list-style: none; padding: 0; }
.review-list li { margin: 8px 0; }
.review-list .btn, .word-tools .btn, .cycle-step > .btn { white-space: normal; text-align: left; }
.word-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.word-card { border: 2px solid var(--accent-soft); border-radius: 16px; padding: 14px; }
.word { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; margin: 0; color: var(--accent); }
.word-meaning { margin: 4px 0 8px; font-weight: 600; }
.word-sentence { margin: 0 0 10px; overflow-wrap: anywhere; }
.word-sentence mark { background: var(--accent-soft); padding: 0 3px; border-radius: 4px; }
.word-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.word-practice h4, .cycle-step h4 { font-size: 1.15rem; margin: 22px 0 6px; }
.practice-item legend { font-weight: 650; overflow-wrap: anywhere; }
.cycle-steps { font-weight: 750; color: var(--accent); letter-spacing: .02em; }
.cycle-list { padding-left: 1.4em; }
.cycle-step { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.cycle-step textarea { display: block; width: 100%; font: inherit; padding: 12px; border: 1px solid #8c9b83; border-radius: 10px; margin: 8px 0; }
.face-choices, .word-bank { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.face-choices [aria-pressed="true"] { background: var(--accent); color: #fff; }
.chip-btn { min-height: 40px; padding: 6px 14px; background: var(--accent-soft); color: var(--ink); border: 1px solid var(--accent); }
.justify-frame { font-style: italic; overflow-wrap: anywhere; }
.teacher-guide h4 { margin-bottom: 4px; }
.answer-key li { margin: 4px 0; }
.rubric { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.rubric-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; }
.rubric-row > div { padding: 8px 10px; border-top: 1px solid var(--line); font-size: .92rem; }
.rubric-head > div { font-weight: 750; background: var(--accent-soft); border-top: 0; }
.rubric-skill { font-weight: 700; }
.rubric-band { display: none; font-weight: 700; }
/* Workbook on screen: workbook pages only; the cover and story pages are for print. */
.print-book .pb-cover, .print-book .pb-story, .print-book .pb-teacher { display: none; }
body.teacher .print-book .pb-teacher { display: block; }
.pb-page { border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 18px 0; background: #fff; }
.pb-title { font-family: var(--font-head); font-size: 1.4rem; margin-top: 0; }
.pb-small { font-size: .9rem; color: var(--muted); margin: 6px 0 2px; }
.pb-name { font-weight: 650; }
.pb-word-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.pb-word { border: 1px dashed #b9b2a2; border-radius: 12px; padding: 10px; }
.pb-word .word { font-size: 1.5rem; }
.pb-lines span { display: block; border-bottom: 1px solid #8c8577; height: 30px; }
.pb-draw { border: 2px dashed #b9b2a2; border-radius: 12px; min-height: 160px; margin: 8px 0; }
.pb-draw-small { min-height: 70px; }
.pb-circle-list li { margin: 8px 0; overflow-wrap: anywhere; }
.pb-options { font-weight: 650; white-space: normal; }
.pb-sequence { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.pb-thumb { margin: 0; }
.pb-thumb img { width: 100%; height: auto; border-radius: 10px; }
.pb-thumb figcaption { font-weight: 750; font-size: 1.2rem; text-align: center; }
.pb-step { font-weight: 750; color: var(--accent); margin: 16px 0 2px; font-size: 1.1rem; }
.pb-faces { font-size: 1.4rem; }
.pb-cando { list-style: none; padding: 0; }
.pb-cando li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.pb-imprint { display: flex; align-items: center; gap: 12px; font-weight: 650; font-size: .95rem; color: var(--muted); margin-top: 16px; }
.pb-imprint img { height: 52px; width: auto; }
@media (max-width: 760px) {
  .book-cover { display: block; }
  .book-cover > .cover-art { margin: 6px 0 16px; }
  .rubric-row { grid-template-columns: 1fr; border-top: 2px solid var(--line); }
  .rubric-head { display: none; }
  .rubric-band { display: inline; }
}
@media print {
  @page { size: A4; margin: 14mm; }
  body.has-book { background: #fff; }
  body.has-book .site-head, body.has-book .foot, body.has-book .skip-link, body.has-book .book-hero, body.has-book .reader-switch,
  body.has-book #reading-layer, body.has-book #story-activities, body.has-book #activities-layer, body.has-book .wb-screen-only { display: none !important; }
  body.has-book #story-workbook, body.has-book #story-workbook[hidden] { display: block !important; border: 0; box-shadow: none; padding: 0; margin: 0; background: #fff; }
  body.has-book main.wrap { max-width: none; padding: 0; margin: 0; }
  .print-book .pb-cover, .print-book .pb-story { display: block; }
  .print-book .pb-teacher, body.teacher .print-book .pb-teacher { display: none !important; }
  body.print-teacher .print-book .pb-teacher { display: block !important; }
  .pb-page { border: 0; border-radius: 0; padding: 0; margin: 0; break-after: page; }
  .pb-page:last-child { break-after: auto; }
  .pb-cover { text-align: center; }
  .pb-level { font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 4mm; }
  .pb-book-title { font-family: var(--font-head); font-size: 30pt; font-weight: 700; line-height: 1.15; margin: 0 0 8mm; }
  .pb-cover-art { width: 100%; height: auto; border-radius: 6mm; }
  .pb-cover-line { font-size: 14pt; line-height: 1.5; margin: 8mm 10mm; }
  .pb-cover .pb-imprint { justify-content: center; margin-top: 10mm; }
  .pb-story img { width: 100%; height: auto; border-radius: 4mm; break-inside: avoid; }
  .pb-scene-title { font-family: var(--font-head); font-size: 20pt; font-weight: 700; margin: 0 0 5mm; }
  .pb-text { font-size: 20pt; line-height: 1.6; margin-top: 6mm; }
  .pb-text p { margin: 0 0 4mm; }
  .pb-folio { text-align: center; color: var(--muted); margin-top: 6mm; }
  .pb-word-grid { grid-template-columns: repeat(2, 1fr); }
  .pb-word-grid { gap: 3mm; }
  .pb-word { padding: 2.5mm 3mm; }
  .pb-word .word { font-size: 16pt; padding: 1mm 3mm; }
  .pb-word .word-meaning { margin: 1mm 0; }
  .pb-word .pb-small { margin: 1mm 0 0; }
  .pb-word .pb-lines span { height: 7mm; }
  .pb-draw-small { min-height: 15mm; margin: 1mm 0 0; }
  .pb-cover .pb-imprint img { height: 22mm; }
  .pb-word, .pb-thumb, .pb-cando li, .rubric-row { break-inside: avoid; }
  .pb-sequence { grid-template-columns: repeat(2, 1fr); }
  .rubric-row { grid-template-columns: 1.1fr 1fr 1fr 1fr; }
  .rubric-head { display: grid; }
  .rubric-band { display: none; }
}
.book-question { margin-top: 16px; border: 2px solid var(--line); border-radius: 16px; padding: 14px 18px; min-width: 0; }
.book-question button { display: block; margin: 10px 0; text-align: left; white-space: normal; }
.book-question .btn[aria-pressed="false"], .face-choices .btn[aria-pressed="false"] { color: var(--ink); background: #f1f0e5; border: 1px solid #9eaa92; }
.book-question [aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.book-feedback { min-height: 1.4em; font-weight: 600; }
.word-audio-status { min-height: 1.6em; font-size: .9rem; color: var(--muted); }
/* Storybook pages (book layer): the story and its activities on one page. */
body.has-book { --story-font: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; --ribbon: #b5583c; --paper: #fffaf0; --paper-edge: #ead9b6; }
body.has-book #reading-layer { position: relative; background: linear-gradient(180deg, #fffcf5, var(--paper)); border: 1px solid var(--paper-edge); border-radius: 26px; padding-top: 46px;
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 22px 44px -26px rgba(80,55,20,.45), 5px 5px 0 -1px #f3e8d2, 5px 5px 0 0 var(--paper-edge), 10px 10px 0 -1px #efe2c8, 10px 10px 0 0 var(--paper-edge); }
body.has-book #reading-layer::before { content: ""; position: absolute; top: -7px; left: 34px; width: 26px; height: 62px; background: var(--ribbon); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%); box-shadow: 0 2px 6px rgba(0,0,0,.2); }
body.has-book .reader-toolbar { margin-top: 0; }
body.has-book .scene-progress { font-family: var(--story-font); font-style: italic; font-weight: 600; color: #7a4a2a; font-size: 1rem; }
.turn-page { background: var(--ribbon) !important; color: #fff !important; box-shadow: 0 3px 0 #8e3f27; }
.book-page { background: linear-gradient(90deg, transparent calc(47.5% - 18px), rgba(140,100,40,.09) 47.5%, transparent calc(47.5% + 18px)); }
.book-page h2 { font-family: var(--story-font); color: #4b3420; font-weight: 700; }
.book-page .story-figure img { box-shadow: 0 10px 24px -14px rgba(60,40,10,.5); }
.book-page .reading-text { font-family: var(--story-font); color: #2e2a24; }
.book-page .reading-text p:first-child::first-letter { float: left; font-size: 3.1em; line-height: .82; padding: 6px 8px 0 0; color: var(--ribbon); font-weight: 700; }
.story-word { display: inline; font: inherit; color: inherit; padding: 0 3px; margin: 0 -1px; border: 0; border-radius: 5px; min-height: 0; cursor: pointer;
  background: linear-gradient(transparent 52%, #f7dc8a 52%); text-decoration: underline dotted var(--ribbon) 2px; text-underline-offset: 5px; }
.story-word:hover { background: #f7dc8a; }
.reading-text .reading-now { background: #cfe8d5; border-radius: 4px; box-shadow: 0 0 0 2px #cfe8d5; }
.reading-text .reading-word { background: #ffd877; box-shadow: 0 0 0 2px #ffd877; border-radius: 4px; transition: background-color .08s linear; }
body.narration-done .reader-page-nav .turn-page:not(:disabled) { animation: je-nudge .8s ease-in-out 3; }
@keyframes je-nudge { 50% { transform: translateX(4px) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { body.narration-done .reader-page-nav .turn-page { animation: none; } }
.turn-panel { background: #f6eedc; border: 1px solid var(--paper-edge); border-radius: 22px; padding: 6px clamp(14px, 3vw, 26px) 18px; margin-top: 28px; }
.turn-panel > summary { display: flex; align-items: center; gap: 12px; list-style: none; }
.turn-panel > summary::-webkit-details-marker { display: none; }
.avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; color: #fff; display: inline-grid; place-items: center; font-family: var(--story-font); font-weight: 800; font-size: 1.15rem; box-shadow: 0 0 0 3px #fffaf0; }
.turn-speaker { font-family: var(--story-font); font-style: italic; font-size: 1.2rem; color: #7a4a2a; }
.turn-strip { margin: 0 0 4px; font-size: .88rem; color: var(--muted); }
.turn-panel .reader-question { border: 0; padding: 0; margin-top: 8px; }
.turn-panel .reader-question legend { font-family: var(--story-font); font-size: 1.4rem; font-weight: 700; color: #2e2a24; padding: 0; margin-bottom: 6px; }
.turn-panel .reader-question button, .turn-block .book-question button { display: inline-block; margin: 6px 8px 6px 0; border-radius: 14px; background: #fffdf7; color: var(--ink); border: 1.5px solid #d9c9a5; box-shadow: 0 2px 0 #e3d5b5; }
.turn-panel .reader-question [aria-pressed="true"], .turn-block .book-question [aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); box-shadow: 0 2px 0 var(--accent); }
.turn-panel .reader-feedback { font-size: .95rem; color: #4b3420; }
.turn-reply { display: flex; align-items: center; gap: 12px; background: #fffdf7; border-radius: 16px; padding: 10px 14px; margin: 4px 0 8px; font-family: var(--story-font); font-size: 1.15rem; color: #2e2a24; }
.turn-block { position: relative; background: #fffdf7; border: 1.5px solid #e6d9bb; border-radius: 18px; padding: 14px 18px; margin: 14px 0; }
.turn-block.is-done { border-color: var(--accent); }
.turn-block.is-done::after { content: "✓"; position: absolute; top: 10px; right: 14px; color: var(--accent); font-weight: 900; font-size: 1.2rem; }
.turn-kicker { margin: 0 0 4px; font-size: .74rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ribbon); }
.cycle-prompt { font-family: var(--story-font); font-size: 1.15rem; margin: 2px 0 8px; }
.word-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.word-head .word, .pb-word .word { border: 0; background: none; padding: 0; font-family: var(--story-font); font-size: 2rem; color: var(--accent); }
.word-head .word-meaning { margin: 0; flex: 1 1 160px; }
.book-question { border: 0; padding: 0; margin: 6px 0 0; min-width: 0; }
.book-question legend { font-weight: 650; padding: 0; overflow-wrap: anywhere; }
.order-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 8px 0; }
.order-pic { position: relative; padding: 0; min-height: 0; border: 2px solid #e6d9bb; border-radius: 14px; overflow: hidden; background: #fff; cursor: pointer; }
.order-pic img { display: block; width: 100%; height: auto; }
.order-num { position: absolute; top: 6px; left: 6px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fffaf0; color: #7a4a2a; font-weight: 800; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.order-pic.picked { border-color: var(--accent); }
.order-pic.picked .order-num { background: var(--accent); color: #fff; }
.cando-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.cando-btn { width: 100%; text-align: left; white-space: normal; background: #fffdf7; color: var(--ink); border: 1.5px solid #e6d9bb; }
.cando-btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.review-pages { list-style: none; padding: 0; display: grid; gap: 14px; }
.review-page { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 16px; align-items: start; border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: #fff; }
.page-thumb { width: 100%; height: auto; border-radius: 10px; }
.review-title { margin: 0; font-weight: 800; }
.review-quote { margin: 4px 0; font-family: var(--story-font, Georgia, serif); font-style: italic; }
.review-items { list-style: none; padding: 0; margin: 6px 0 10px; font-size: .92rem; }
.review-items .done { color: var(--accent); font-weight: 650; }
.review-page .btn { white-space: normal; }
.pb-ref { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); font-weight: 650; }
.pb-ref-img { width: 110px; height: auto; border-radius: 8px; }
.pb-pagerow { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.pb-pagerow .pb-ref { flex-direction: column; align-items: flex-start; gap: 4px; }
.pb-quote { font-style: italic; margin: 4px 0; overflow-wrap: anywhere; }
.pb-quote mark { background: #f7dc8a; }
.pb-q { margin: 4px 0 0; font-weight: 650; overflow-wrap: anywhere; }
.pb-seq-img { width: 100%; height: auto; border-radius: 10px; }
.pb-turn { display: none; }
@media (max-width: 760px) {
  .book-page { background: none; }
  body.has-book #reading-layer { padding-top: 40px; box-shadow: 0 16px 30px -22px rgba(80,55,20,.45); }
  .order-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review-page, .pb-pagerow { grid-template-columns: 1fr; }
  .pb-ref-img { width: 120px; }
}
@media (prefers-reduced-motion: no-preference) { .book-page.turn-in { animation: page-in .28s ease-out; } @keyframes page-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } } }
@media print {
  .pb-turn { display: block; font-family: var(--story-font); font-style: italic; color: #7a4a2a; font-size: 14pt; margin-top: 5mm; }
  .pb-ref { font-size: 8.5pt; }
  .pb-ref-img { width: 24mm; border-radius: 2mm; }
  .pb-word .pb-ref-img { width: 20mm; }
  .pb-pagerow { grid-template-columns: 30mm 1fr; gap: 4mm; padding: 2.5mm 0; break-inside: avoid; }
  .pb-word .word { font-size: 16pt; }
  .pb-quote { font-size: 10pt; margin: 1mm 0; }
  .pb-q { font-size: 10.5pt; }
}
@media print {
  .pb-pagerow { padding: 1.8mm 0; }
  .pb-pagerow .pb-options, .pb-pagerow .pb-faces { font-size: 11.5pt; margin: .8mm 0 0; }
  .pb-pagerow .pb-q, .pb-pagerow p { margin-top: .8mm; margin-bottom: 0; }
  .pb-pagerow .pb-draw { min-height: 34mm; margin-top: 2mm; }
  .pb-pagerow .pb-lines span { height: 8mm; }
  .pb-title { margin-bottom: 2mm; }
}
@media print {
  .pb-story img { max-height: 112mm; width: auto; max-width: 100%; display: block; margin: 0 auto; }
  .pb-text { line-height: 1.42; margin-top: 4mm; }
  .pb-text p { margin: 0 0 2.6mm; }
  .pb-turn { margin-top: 3mm; }
  .pb-folio { margin-top: 2mm; }
}
.book-page .reading-text p + p { clear: left; }
body.has-book #reading-layer::before { left: auto; right: 44px; }
.order-caption { display: block; padding: 6px 8px 8px; font-family: var(--story-font); font-size: .95rem; font-weight: 700; color: #4b3420; text-align: center; line-height: 1.25; }
.pb-seq-title { margin: 1mm 0 0; text-align: center; font-weight: 700; font-size: .95rem; }
@media print { .pb-seq-title { font-size: 11pt; } }

/* Lina-model shell: scoped to the two Level 1 book records. */
@media screen {
  body.has-book { background-color: #efe5cc; background-image: radial-gradient(#ae91622e .65px, transparent .7px), linear-gradient(120deg, #f6efdb, #e9dcc0); background-size: 5px 5px, auto; }
  body.has-book .site-head { background: #f6efdf; }
  body.has-book #teacherToggle { display: none; }
  body.has-book:not(.grownup-mode) .grownup-info, body.has-book:not(.grownup-mode) .foot { display: none; }
  .book-modes { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin: 24px 0 18px; }
  .book-modes .btn { background: transparent; color: #37503b; border: 1px solid #8d977f; box-shadow: none; }
  .book-modes [aria-pressed="true"] { background: #fffbef; box-shadow: 0 4px 0 #b4a37a; }
  .little-book-picker { grid-column: 1 / -1 !important; grid-row: 1; display: grid; gap: 8px; font-size: .9rem; font-weight: 700; margin-bottom: 22px; }
  .little-book-picker select { width: 100%; min-width: 0; min-height: 48px; border: 1px solid #b5bba6; background: #fffdf7; color: #324734; border-radius: 10px; padding: 10px; font: inherit; }
  body.has-book .book-hero { background: transparent; border: 0; box-shadow: none; padding: 8px 0 24px; }
  body.has-book .book-cover h1 { font-family: var(--story-font); font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.1; color: #37503b; }
  body.has-book .book-cover > .cover-art { grid-row: 2 / span 9; border-radius: 12px; }
  .saved-place { font-size: .9rem; color: #586044; }
  body.has-book #reading-layer { background-image: radial-gradient(#bba67d25 .55px, transparent .65px), linear-gradient(#fffcf3, #fff8e8); background-size: 5px 5px, auto; }
  body.has-book #reader-page { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; background-position: center; }
  body.has-book #reader-page h2 { grid-column: 2; grid-row: 1; margin-top: 0; font-size: 1.65rem; }
  body.has-book .story-figure { grid-column: 1; grid-row: 1 / span 2; }
  body.has-book .story-figure img { display: block; border-radius: 10px; }
  body.has-book .reading-text { grid-column: 2; grid-row: 2; min-width: 0; font-size: calc(1.3rem * var(--reading-scale)); line-height: 1.65; }
  body.has-book .reading-text p { margin-top: 0; margin-bottom: .65em; }
  .choice-picture { display: inline-block; margin-right: 8px; font-size: 1.5em; vertical-align: middle; }
  .activity-book { border-bottom: 1px solid var(--paper-edge); padding-bottom: 26px; }
  .activity-step { min-width: 0; border: 1px solid var(--paper-edge); border-radius: 15px; padding: 18px; margin: 22px 0; background: #fffbef; }
  .activity-step legend { font-weight: 750; color: #6f452d; }
  .activity-step > .btn { margin: 6px; max-width: 100%; white-space: normal; }
  .activity-step [aria-pressed="true"] { background: #d6e7d1; color: #203921; border-color: #49714c; }
  .activity-picture { display: block; width: 145px; max-width: 100%; border-radius: 8px; margin-bottom: 6px; }
  .activity-match { display: grid; grid-template-columns: 130px minmax(0, 1fr) minmax(100px, 1fr); align-items: center; gap: 12px; margin: 14px 0; }
  .activity-book input, .activity-book select, .activity-book textarea { width: 100%; min-width: 0; max-width: 100%; padding: 10px; min-height: 44px; border: 1px solid #9da38f; border-radius: 8px; background: #fff; font: inherit; }
  .activity-book .reader-toolbar .btn { white-space: normal; }
  .activity-score { font-weight: 650; }
  @media (max-width: 760px) {
    body.has-book #reader-page { display: block; background: none; }
    body.has-book #reader-page h2 { font-size: 1.45rem; }
    body.has-book .reading-text { font-size: calc(1.25rem * var(--reading-scale)); }
    body.has-book .story-figure { margin: 12px 0 24px; }
    body.has-book .book-cover > .cover-art { margin-top: 12px; }
    .book-modes { justify-content: stretch; }
    .book-modes .btn { flex: 1; padding: 10px; }
    .activity-match { grid-template-columns: 100px minmax(0, 1fr); }
    .activity-match select { grid-column: 1 / -1; }
    .activity-step { padding: 12px; }
  }
}
@media print { body.has-book .book-modes { display: none !important; } }

/* Ownership notice (Jay's standing rule, 25 Oct 2026): on every screen and every printed page. */
.copyright { color: var(--muted); font-size: .78rem; line-height: 1.5; padding: 10px 0 26px; margin-top: 0; text-align: center; }
@media print {
  .copyright { display: none !important; }
  @page { @bottom-center { content: "© 2026–2027 WorldWise Learning and JurassicEnglish.com. All rights reserved. These materials are the legal property of WorldWise Learning and JurassicEnglish.com."; font-family: system-ui, sans-serif; font-size: 6.5pt; color: #6b6257; } }
}

/* Cover grid with the book picker: picker, crumbs, then cover art beside the title (fix 25 Oct). */
body.has-book .book-cover > .little-book-picker { grid-row: 1; }
body.has-book .book-cover > .crumbs { grid-row: 2; grid-column: 1 / -1; }
body.has-book .book-cover > .cover-art { grid-row: 3 / span 9; }
.book-page .reading-text.starts-quote p:first-child::first-letter { float: none; font-size: inherit; line-height: inherit; padding: 0; color: inherit; font-weight: inherit; }

/* Unit plan inside the teacher guide (26 Oct). */
.unit-plan { margin: 1.4em 0; padding: 1em 1.2em; border: 1px solid #d9c9a4; border-radius: 12px; background: #fffaf0; }
.unit-plan h5 { margin: 1em 0 .35em; font-size: 1rem; color: #5a3a1c; }
.unit-plan .unit-words { font-weight: 700; letter-spacing: .02em; }
.unit-plan .unit-objective { font-style: italic; margin: 0 0 .3em; }
.flashcard-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.flashcard { border: 2px dashed #c9b48c; border-radius: 10px; padding: 10px; display: grid; gap: 4px; background: #fff; }
.flashcard strong { font-size: 1.3rem; color: #37503b; }
.unit-assessment { width: 100%; border-collapse: collapse; font-size: .92rem; }
.unit-assessment th, .unit-assessment td { border: 1px solid #d9c9a4; padding: 6px 8px; text-align: left; vertical-align: top; }
.unit-assessment td:last-child { width: 36px; }
@media print { .unit-plan { break-before: page; background: none; } .flashcard-grid { grid-template-columns: repeat(3, 1fr); } .flashcard { break-inside: avoid; min-height: 2.2cm; } .unit-assessment tr { break-inside: avoid; } }

/* Learners (26 Oct): "Reading as" switcher and the shared-device chooser. */
.reader-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 0 10px; font-weight: 700; }
.reader-who select { min-height: 44px; border-radius: 999px; padding: 0 12px; border: 1px solid #c9b48c; background: #fffaf0; font-weight: 700; }
.reader-who .btn { min-height: 44px; }
.who-reading { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: rgba(30, 18, 6, .55); padding: 16px; }
.who-card { background: #fffaf0; border-radius: 18px; padding: 24px; max-width: 520px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.who-card h2 { margin: 0 0 6px; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.who-btn { min-height: 56px; font-size: 1.1rem; }
/* Print, Levels 3–5 (about 90–120 words a page): smaller type and a shorter picture so each story page
   stays on one A4 sheet (student edition 12 pages). Levels 1–2 are unchanged. */
@media print {
  body[data-level="3"] .pb-story img, body[data-level="4"] .pb-story img, body[data-level="5"] .pb-story img { max-height: 92mm; }
  body[data-level="3"] .pb-text { font-size: 14pt; line-height: 1.45; }
  body[data-level="4"] .pb-text, body[data-level="5"] .pb-text { font-size: 13pt; line-height: 1.42; }
  body[data-level="5"] .pb-story img { max-height: 84mm; }
  body[data-level="5"] .pb-text { font-size: 12.5pt; line-height: 1.4; }
  body[data-level="3"] .pb-scene-title, body[data-level="4"] .pb-scene-title, body[data-level="5"] .pb-scene-title { font-size: 17pt; margin-bottom: 3mm; }
}
@media print {
  body[data-level="3"] .pb-workbook, body[data-level="4"] .pb-workbook, body[data-level="5"] .pb-workbook { font-size: 10.5pt; }
  body[data-level="3"] .pb-pagerow .pb-options, body[data-level="4"] .pb-pagerow .pb-options, body[data-level="5"] .pb-pagerow .pb-options { font-size: 10pt; }
  body[data-level="3"] .pb-pagerow, body[data-level="4"] .pb-pagerow, body[data-level="5"] .pb-pagerow { padding: 1.2mm 0; grid-template-columns: 24mm 1fr; }
  body[data-level="3"] .pb-draw, body[data-level="4"] .pb-draw, body[data-level="5"] .pb-draw { min-height: 22mm; }
  body[data-level="3"] .pb-lines span, body[data-level="4"] .pb-lines span, body[data-level="5"] .pb-lines span { height: 7mm; }
}
/* Level 5 (about 115–125 words a page, the longest Thinking Cycle prompts): a slightly smaller workbook so
   Workbook 4 stays on one A4 sheet (student edition 12 pages). */
@media print {
  body[data-level="5"] .pb-workbook, body[data-level="5"] .pb-workbook .pb-options { font-size: 9.6pt; }
  body[data-level="5"] .pb-workbook .pb-draw { min-height: 16mm; }
  body[data-level="5"] .pb-workbook .pb-lines span { height: 6mm; }
}
