/* SpecPoint — lesson page template (Laura's format: one scrolling page you project).
   White = teach, blue = key words and definitions only (Laura: the words that earn marks, for second-language
   learners), green = the class does, red = stretch, purple = common mistakes, grey = self-check. Builds on site.css. */

:root {
  --sky: #1d5a8a;
  --sky-tint: #e9f2f9;
  --green: #1e6b58;
  --green-tint: #e8f5ef;
  --stretch: #b03a26;
  --stretch-tint: #fbebe7;
  --check: #566d67;
  --watch: #6a3d9a;
  --watch-tint: #f3edfa;
}

.lp { padding: 28px 0 72px; }
.lp .wrap { max-width: 980px; }

.lp-head { display: grid; gap: 12px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 3px solid var(--sky); }
.lp-crumb { font-size: 0.88rem; color: var(--ink-3); }
.lp-crumb a { color: var(--ink-3); }
.lp-head h1 { font-size: clamp(1.9rem, 6.5vw, 3rem); }
.lp-meta { display: flex; flex-wrap: wrap; gap: 8px; }

.lp-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.lp-tools .btn { min-height: 44px; }
.fs-hint { align-self: center; font-size: 0.9rem; color: var(--ink-2); background: var(--hl-soft); border-radius: 8px; padding: 6px 10px; }
.lp-note { font-size: 0.92rem; color: var(--ink-3); margin: -12px 0 24px; }

.lb { border: 1px solid var(--line); border-left: 5px solid #9fb3ac; background: #fff; border-radius: 12px; padding: 18px 20px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(18, 48, 43, 0.05); }
.lb h2 { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); margin-bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.lb h2 .mins { font-family: var(--font-body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; background: #fff; border: 1px solid currentColor; border-radius: 999px; padding: 3px 9px; }
.lb p, .lb li { color: var(--ink); }
.lb p + p, .lb p + ul, .lb p + ol, .lb ul + p, .lb ol + p { margin-top: 10px; }
.lb ul, .lb ol { margin: 0; padding-left: 1.25em; display: grid; gap: 6px; }
.lb--key { border-color: #bcd4e6; border-left-color: var(--sky); background: var(--sky-tint); }
.lb--key h2 { color: var(--sky); }
/* Key words (Laura, 4 Nov: equal gaps between a word, its definition and the next word "looks terrible"): each word
   sits with its own definition, and a rule separates one pair from the next. Side by side from 641 px, stacked below. */
.kw { margin: 0; display: grid; grid-template-columns: minmax(0, 30%) minmax(0, 1fr); column-gap: 24px; }
.kw dt { font-weight: 700; color: var(--sky); }
.kw dt, .kw dd { margin: 0; padding: 11px 0; border-top: 1px solid #cfdeeb; }
.kw dt:first-of-type, .kw dt:first-of-type + dd { border-top: 0; padding-top: 2px; }
@media (max-width: 640px) {
  .kw { grid-template-columns: 1fr; }
  .kw dt { padding: 12px 0 0; }
  .kw dd { border-top: 0; padding: 3px 0 12px; }
  .kw dt:first-of-type { padding-top: 0; }
  .kw dd:last-of-type { padding-bottom: 0; }
}
.lb--do { border-color: #cfe5da; border-left-color: var(--green); background: var(--green-tint); }
.lb--do h2 { color: var(--green); }
.lb--stretch { border-left-color: var(--stretch); background: var(--stretch-tint); }
.lb--stretch h2 { color: var(--stretch); }
.lb--watch { border-left-color: var(--watch); background: var(--watch-tint); }
.lb--watch h2 { color: var(--watch); }
.lb--check { border-left-color: var(--check); background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--check); }
.lb--check h2 { color: var(--ink-2); }
.lb + .lb { margin-top: 18px; }

.formula { background: #fff; border: 1px solid #b9cfe2; border-radius: 10px; padding: 14px 16px; margin: 12px 0; text-align: center; font-weight: 600; color: #163f61; font-size: 1.08rem; }
.formula .frac { display: inline-grid; vertical-align: middle; text-align: center; margin-left: 6px; }
.formula .frac span:first-child { border-bottom: 2px solid currentColor; padding: 0 6px 3px; }
.formula .frac span:last-child { padding: 3px 6px 0; }

.reveal-box { margin: 0 0 22px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.reveal-box > summary { list-style: none; cursor: pointer; padding: 14px 18px; min-height: 48px; font-weight: 600; color: var(--green); display: flex; align-items: center; gap: 10px; }
.reveal-box > summary::-webkit-details-marker { display: none; }
.reveal-box > summary::before { content: "▶"; font-size: 0.8em; transition: transform .15s ease; }
.reveal-box[open] > summary::before { transform: rotate(90deg); }
.reveal-box--stretch > summary { color: var(--stretch); }
.reveal-box .rb-body { border-top: 1px dashed var(--line); padding: 14px 18px 18px; display: grid; gap: 10px; }
.reveal-box .rb-body ul { margin: 0; padding-left: 1.25em; display: grid; gap: 6px; }
.mark { font-size: 0.85rem; font-weight: 600; color: var(--green); white-space: nowrap; }

.fig { margin: 16px auto; max-width: 660px; background: #fff; border: 1px solid #c8d6e5; border-radius: 10px; padding: 14px; text-align: center; }
.fig img, .fig svg { display: block; width: 100%; height: auto; margin: 0 auto; border-radius: 6px; }
.fig figcaption { font-size: 0.86rem; color: var(--ink-3); margin-top: 8px; font-style: italic; }
.fig .credit { display: block; font-style: normal; font-size: 0.75rem; margin-top: 4px; }
.fig .credit a { color: var(--ink-3); }
.fig-missing { display: grid; place-items: center; min-height: 160px; border: 2px dashed #c8d6e5; border-radius: 8px; color: var(--ink-3); font-size: 0.9rem; padding: 14px; }

.rag { list-style: none; padding: 0 !important; }
.rag li { display: flex; gap: 10px; align-items: baseline; }
.rag .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; transform: translateY(2px); }
.rag .r { background: #c13f29; } .rag .a { background: #e0a526; } .rag .g { background: var(--green); }

/* Countdown for timed tasks */
.timer-btn { font: 600 0.82rem var(--font-body); border: 1.5px solid currentColor; background: #fff; color: inherit; border-radius: 999px; padding: 6px 12px; min-height: 36px; cursor: pointer; }
.timer-btn[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.countdown { position: fixed; right: 16px; bottom: 16px; z-index: 60; background: var(--ink); color: #fff; border-radius: 16px; padding: 10px 16px; font: 600 1.6rem var(--font-body); font-variant-numeric: tabular-nums; box-shadow: var(--shadow-lg); display: none; align-items: center; gap: 12px; }
.countdown.is-on { display: flex; }
.countdown.is-done { background: var(--stretch); }
.countdown button { font: 600 0.85rem var(--font-body); background: rgba(255, 255, 255, 0.14); color: #fff; border: 0; border-radius: 999px; padding: 8px 12px; min-height: 36px; cursor: pointer; }

.lp-end { margin-top: 36px; background: var(--ink); color: #eef3ef; border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; }
.lp-end h2 { color: #fff; font-size: 1.5rem; }
.lp-end p { color: #c9d8d2; }

/* Projector view: bigger type, no site chrome */
body.projector { font-size: 1.32rem; background: #fff; }
body.projector .site-header, body.projector .site-footer, body.projector .lp-crumb, body.projector .lp-end, body.projector .lp-note, body.projector .lp-next, body.deck .lp-next, body.projector .lp-teacher-intro, body.deck .lp-teacher-intro { display: none; }
.lp-next { margin: 32px 0 0; }
body.projector .lp .wrap { max-width: 1240px; }
body.projector .lb h2 { font-size: 1.7rem; }
body.projector .formula { font-size: 1.4rem; }
body.projector .reveal-box > summary { font-size: 1.15em; }
body.projector .lp-tools { position: sticky; top: 0; z-index: 40; background: #fff; padding: 10px 0; margin-bottom: 18px; border-bottom: 1px solid var(--line); }

/* Cambridge IGCSE lessons (Laura, 3 Nov): "Teacher note: resources required" and Extended-only (Supplement) content */
.lb--teacher { background: #f4f1ea; border-left: 5px solid var(--ink-3); }
.lb--teacher h2 { color: var(--ink-2); }
.lb--extended { border-left: 5px solid var(--ink); }
.lb--extended > h2 .tag, .lb .tag--ink { vertical-align: middle; margin-left: 6px; }

/* Projector view as a slide deck (lesson-page.js): every box is one full-screen slide with a title band in its box
   colour, so the class can tell a task from key words or answers from the back of the room. Sizes below are slide
   pixels: the script lays each slide out about 1000 to 1500 pixels wide and scales it to fill the screen above
   the toolbar. Light slides on a light stage, because projectors wash out dark themes. */
body.deck { overflow: hidden; --deck-bar: clamp(56px, 8vh, 88px); }
body.deck .lp { position: fixed; inset: 0 0 var(--deck-bar) 0; z-index: 50; background: #ebe7dc; overflow: hidden; padding: 0; }
body.deck.deck-scroll .lp { overflow-y: auto; }
body.deck .lp .wrap { position: absolute; left: 50%; max-width: none; margin: 0; padding: 0; transform-origin: top center; font-size: 24px; line-height: 1.5; }
body.deck .deck-off { display: none !important; }
body.deck .deck-part-off { display: none !important; }
body.deck .lp .wrap > .deck-cont > h2::after { content: " (continued)"; font-weight: 400; opacity: 0.75; }
/* A slide whose teacher-only box (word lists, prompts, answers to read out) is hidden here says where to find it */
body.deck .lp .wrap > [data-deck-teacher]::after, body.deck .lp .wrap > [data-deck-note]::after { content: "Teacher: see the teacher dropdown under this box on the page"; display: block; grid-column: 1 / -1; margin-top: 18px; padding: 10px 16px; border: 1px dashed #c9bfa8; border-radius: 10px; background: #f4f1ea; color: var(--ink-2); font-size: 0.6em; font-weight: 600; }
/* Teacher's notes are left off the slides (Laura, 9 Nov 2026): the slide only says that there is one */
body.deck .deck-tnote { display: none !important; }
body.deck .lp .wrap > [data-deck-note]::after { content: "Teacher: check the teacher's notes for this part on the lesson page"; }
body.deck .lp .wrap > [data-deck-teacher][data-deck-note]::after { content: "Teacher: check the teacher dropdown and the teacher's notes for this part on the lesson page"; }
body.deck .lp .wrap > .reveal-box.deck-cont > summary[data-deck-label]::before { content: "\2713\00a0 " attr(data-deck-label) " (continued)"; }
body.deck .beta-toasts { display: none; }
@keyframes deck-in { from { opacity: 0; } to { opacity: 1; } }

/* The slide frame */
body.deck .lp .wrap > * { min-height: var(--deck-h, 0); margin: 0; border: 0; border-radius: 22px; background: #fff; box-shadow: 0 1px 2px rgba(18, 48, 43, 0.06), 0 18px 44px -26px rgba(18, 48, 43, 0.4); animation: deck-in 0.2s ease-out; }
body.deck .lp .wrap > .lb { display: flow-root; padding: 40px 52px 44px; background: var(--tint); }
body.deck .lb { --band: var(--paper-2); --band-ink: var(--ink); --accent: var(--leaf); --tint: #fff; }
body.deck .lb--key { --band: var(--sky); --band-ink: #fff; --accent: var(--sky); --tint: #f4f8fc; }
body.deck .lb--do { --band: var(--green); --band-ink: #fff; --accent: var(--green); --tint: #f2f8f4; }
body.deck .lb--watch { --band: var(--watch); --band-ink: #fff; --accent: var(--watch); --tint: #f8f4fc; }
body.deck .lb--stretch { --band: var(--stretch); --band-ink: #fff; --accent: var(--stretch); --tint: #fdf4f1; }
body.deck .lb--check { --band: var(--check); --band-ink: #fff; --accent: var(--check); }
body.deck .lb--cmd { --band: #8a5a00; --band-ink: #fff; --accent: #8a5a00; --tint: #fef9ea; }
body.deck .lb--past { --band: var(--leaf-strong); --band-ink: #fff; --accent: var(--leaf-strong); }
body.deck .lb--teacher { --band: #6b6253; --band-ink: #fff; --accent: #6b6253; --tint: #f9f6f0; }
body.deck .lb--extended { --band: var(--ink); --band-ink: #fff; --accent: var(--ink); }

/* Title band: the box heading, with its minutes and timer button on the right */
body.deck .lp .wrap > .lb > h2:first-child { margin: -40px -52px 30px; padding: 24px 52px 22px; border-radius: 22px 22px 0 0; background: var(--band); color: var(--band-ink); font-size: 1.5em; line-height: 1.15; gap: 10px 18px; }
body.deck .lb > h2:first-child .tag { font-size: 0.42em; }
body.deck .lb h2 .mins { font-size: 0.44em; background: transparent; color: inherit; border: 2px solid currentColor; padding: 4px 12px; }
body.deck .lb h2 .timer-btn { margin-left: auto; font-size: 0.48em; min-height: 0; padding: 9px 20px; border: 0; background: #fff; color: var(--accent); box-shadow: 0 1px 2px rgba(18, 48, 43, 0.2); }
body.deck .lb h2 .timer-btn[aria-pressed="true"] { background: var(--hl); color: var(--ink); }
body.deck .lb h3 { font-size: 1.15em; margin-top: 8px; }

/* Body text */
body.deck .lb p + p, body.deck .lb p + ul, body.deck .lb p + ol, body.deck .lb ul + p, body.deck .lb ol + p { margin-top: 14px; }
body.deck .lb ul, body.deck .lb ol { gap: 10px; padding-left: 1.3em; }
body.deck .lb li::marker { color: var(--accent); font-weight: 700; }
body.deck .lb strong { color: inherit; }
body.deck .kw { grid-template-columns: minmax(0, 32%) minmax(0, 1fr); gap: 0; }
body.deck .kw dt, body.deck .kw dd { margin: 0; padding: 14px 0; border-top: 1px solid #cfdeeb; }
body.deck .kw dt { padding-right: 28px; color: var(--sky); }
body.deck .kw dt:first-of-type, body.deck .kw dt:first-of-type + dd { border-top: 0; padding-top: 0; }
body.deck .cw-intro, body.deck .lb .pp-note { font-size: 0.8em; }
body.deck .cw { grid-template-columns: max-content 1fr; gap: 12px 24px; }
body.deck .formula { font-size: 1.1em; border-radius: 14px; padding: 18px 22px; }
body.deck .fig { margin: 24px auto; padding: 16px; border-color: #d9e2ea; border-radius: 14px; }
body.deck .fig figcaption { font-size: 0.68em; line-height: 1.4; }
body.deck .fig-missing { font-size: 0.7em; }
body.deck .lb table.data { font-size: 0.85em; }
body.deck .lb table.data caption { font-size: 0.85em; }
body.deck .rag .dot { width: 0.62em; height: 0.62em; }
body.deck .pp-marks, body.deck .pp-link { font-size: 0.72em; }
body.deck .lb .tag { font-size: 0.6em; }
body.deck .mark { display: inline-block; margin-left: 4px; padding: 0 0.6em; border-radius: 999px; background: #e3f1ea; color: var(--green); font-size: 0.72em; font-weight: 700; line-height: 1.6; vertical-align: 0.1em; }

/* A long slide with figures can show the text on the left and the figures stacked on the right (the script decides,
   when that fits better, and moves the figures into .deck-figs). The column spans many rows so the text rows keep
   their own heights. */
body.deck .lp .wrap > .lb.deck-split { display: grid; grid-template-columns: minmax(0, 1fr) var(--deck-fig, min(44%, 640px)); column-gap: 40px; align-content: start; }
body.deck .lp .wrap > .lb.deck-split--narrow { grid-template-columns: minmax(0, 1fr) var(--deck-fig, min(36%, 540px)); }
body.deck .lb.deck-split > * { grid-column: 1; }
body.deck .lb.deck-split > h2:first-child { grid-column: 1 / -1; }
body.deck .lb.deck-split > .deck-figs { grid-column: 2; grid-row: 2 / span 40; display: grid; gap: 20px; align-content: start; }
body.deck .deck-figs > .fig { width: 100%; margin: 0 auto; }
/* Pictures in projector view (Laura, 5 Nov): no page-size caps; they fill their column, up to about 3/4 of the
   screen's height (--deck-img-h, set by the script), and a half-width column beside the text */
body.deck .fig { max-width: none !important; }
body.deck .fig img, body.deck .fig svg { width: 100%; height: auto; max-height: var(--deck-img-h, none); object-fit: contain; }
body.deck .lp .wrap > .lb.deck-split--half { grid-template-columns: minmax(0, 1fr) var(--deck-fig, 50%); }
/* Two pictures next to each other are compared: side by side on one slide (Laura, 5 Nov: cheek cells and bacteria) */
body.deck .lb > .fig:has(+ .fig), body.deck .lb > .fig + .fig { display: inline-block; vertical-align: top; width: calc(50% - 14px); margin: 24px 0; }
body.deck .lb > .fig:has(+ .fig) { margin-right: 20px; }
body.deck .lb > .fig:has(+ .fig) img, body.deck .lb > .fig + .fig img { max-height: calc(var(--deck-img-h, 60vh) * 0.72); }

/* Title slide */
body.deck .lp .wrap > .lp-head { display: flex; flex-direction: column; justify-content: center; gap: 26px; padding: 64px 80px 64px 92px; position: relative; overflow: hidden; background-color: var(--paper); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; }
body.deck .lp-head::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 14px; background: var(--leaf); }
body.deck .lp-head .lp-crumb { display: block; font-size: 0.72em; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--leaf-strong); }
body.deck .lp-head .lp-crumb a { color: inherit; text-decoration: none; }
body.deck .lp-head h1 { font-size: 3em; line-height: 1.04; max-width: 20ch; }
body.deck .lp-head .lp-meta { gap: 12px; }
body.deck .lp-head .tag { font-size: 0.62em; padding: 8px 14px; border-radius: 8px; }
body.deck .lp .wrap > h2 { display: flex; align-items: center; justify-content: center; padding: 48px; text-align: center; font-size: 2.4em; }

/* Answer slides: a dark band with a yellow edge, named after the reveal button, under the question they answer */
body.deck .lp .wrap > .reveal-box { padding: 0 52px 44px; }
body.deck .lp .wrap > .reveal-box > summary { pointer-events: none; display: block; min-height: 0; margin: 0 -52px 30px; padding: 24px 52px 20px; border-radius: 22px 22px 0 0; border-bottom: 8px solid var(--hl); background: var(--ink); color: #fff; font-size: 0; }
body.deck .lp .wrap > .reveal-box--stretch > summary { border-bottom-color: #f2a08f; }
body.deck .lp .wrap > .reveal-box > summary::before { content: "\2713\00a0 Answers"; display: block; font: 600 36px/1.15 var(--font-display); letter-spacing: -0.015em; transform: none; transition: none; }
body.deck .lp .wrap > .reveal-box > summary[data-deck-label]::before { content: "\2713\00a0 " attr(data-deck-label); }
body.deck .lp .wrap > .reveal-box > summary[data-deck-for]::after { content: attr(data-deck-for); display: block; margin-top: 8px; font: 500 18px/1.35 var(--font-body); color: #c3d4ce; }
body.deck .lp .wrap > .reveal-box .rb-body { border-top: 0; padding: 0; gap: 14px; }
body.deck .reveal-box .rb-body ul { gap: 8px; padding-left: 1.3em; }
body.deck .reveal-box .rb-body li::marker { color: var(--leaf); }

/* Toolbar: lesson title and Exit on the left, Back / count / Next in the middle, the running timer on the right */
.deck-ui { position: fixed; left: 0; right: 0; bottom: 0; height: var(--deck-bar, 64px); z-index: 58; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 6px clamp(12px, 2vw, 32px) 0; background: #fff; color: var(--ink); font-size: clamp(0.9rem, 1.9vh, 1.2rem); box-shadow: 0 -1px 0 var(--line); }
.deck-ui[hidden] { display: none; }
.deck-bar { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: #e6e0d2; }
.deck-bar span { display: block; height: 100%; width: 0; background: var(--leaf); transition: width 0.2s; }
.deck-side { display: flex; align-items: center; gap: 14px; min-width: 0; }
.deck-side--end { justify-content: flex-end; }
.deck-nav { display: flex; align-items: center; gap: 12px; }
.deck-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-weight: 600; color: var(--ink-2); }
.deck-btn { font: 600 1em/1.2 var(--font-body); min-height: 44px; padding: 0.5em 1.15em; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; white-space: nowrap; }
.deck-btn:hover:not([disabled]) { background: var(--paper); border-color: var(--ink-3); }
.deck-btn[disabled] { opacity: 0.4; cursor: default; }
.deck-btn[hidden] { display: none; }
.deck-btn--next { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.deck-btn--next:hover:not([disabled]) { background: var(--leaf-strong); border-color: var(--leaf-strong); }
.deck-btn--exit { flex: none; }
.deck-count { min-width: 4.5em; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.deck-hint { font-size: 0.8em; color: var(--ink-3); }
body.deck .countdown { right: clamp(12px, 2vw, 32px); bottom: calc(var(--deck-bar) * 0.12); height: calc(var(--deck-bar) * 0.8); padding: 0 0.5em 0 0.6em; border-radius: 14px; font-size: clamp(1.5rem, 4.6vh, 2.8rem); box-shadow: none; }
body.deck .countdown button { font-size: max(0.85rem, 0.32em); }
@media (max-width: 719px) {
  body.deck .lp .wrap { font-size: 17px; }
  body.deck .lp .wrap > .lb { padding: 24px 20px 28px; }
  body.deck .lp .wrap > .lb > h2:first-child { margin: -24px -20px 20px; padding: 16px 20px 14px; }
  body.deck .lp .wrap > .reveal-box { padding: 0 20px 28px; }
  body.deck .lp .wrap > .reveal-box > summary { margin: 0 -20px 20px; padding: 16px 20px 14px; }
  body.deck .lp .wrap > .reveal-box > summary::before { font-size: 24px; }
  body.deck .lp .wrap > .reveal-box > summary[data-deck-for]::after { font-size: 14px; }
  body.deck .lp .wrap > .lp-head { padding: 32px 24px 32px 36px; }
  body.deck .lp-head::before { width: 8px; }
  body.deck .kw { grid-template-columns: 1fr; }
  body.deck .kw dd { border-top: 0; padding-top: 0; }
}
@media (max-width: 600px) {
  .deck-ui { grid-template-columns: auto 1fr; gap: 8px; padding: 6px 8px 0; }
  .deck-title, .deck-hint, .deck-side--end { display: none; }
  .deck-nav { justify-content: flex-end; gap: 6px; }
  .deck-btn { padding: 6px 10px; font-size: 0.85rem; }
  .deck-count { min-width: 3.5em; font-size: 0.85rem; }
  body.deck .countdown { right: 12px; bottom: calc(var(--deck-bar) + 10px); height: auto; padding: 8px 12px; font-size: 1.5rem; }
}
@media print { .deck-ui { display: none !important; } }

@media (min-width: 720px) {
  .lp { padding: 40px 0 96px; }
  .lb { padding: 20px 26px; }
}

@media print {
  .lp-tools, .countdown, .lp-end, .timer-btn { display: none !important; }
  .reveal-box { break-inside: avoid; }
  .lb { break-inside: avoid; box-shadow: none; }
}

/* Diagrams keep readable labels on phones: they scroll sideways inside their frame */
@media (max-width: 600px) {
  .fig { padding: 8px; }
}

.hw-msg { flex-basis: 100%; margin: 0; font-size: 0.92rem; color: var(--green); min-height: 0; }
.hw-msg:empty { display: none; }
.lp-tools .btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* Worksheet print: student tasks with space to write, no answers */
@media print {
  body.print-worksheet .reveal-box, body.print-worksheet .lp-note, body.print-worksheet .lp-crumb, body.print-worksheet .lb--teacher, body.print-worksheet .print-tnote, body.print-worksheet .lp-next { display: none !important; }
  body.print-worksheet .lp-head::after { content: "Name: ______________________   Class: ________   Date: __________"; display: block; margin-top: 10px; font-size: 0.95rem; }
  body.print-tasks-only .lb:not(.lb--do):not(.lb--stretch):not(.lb--check) { display: none !important; }
  body.print-worksheet .lb--do, body.print-worksheet .lb--stretch { padding-bottom: 90px; }
  body.print-worksheet .mins, body.print-worksheet .timer-btn { display: none !important; }
}

/* Past paper practice: links to real Pearson questions on Pearson's own site */
.lb--past { border-left-color: var(--leaf); background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--leaf); }
.lb--past h2 { color: var(--leaf-strong); }
.lb .pp-list { list-style: none; padding: 0; margin-top: 12px; display: grid; gap: 10px; }
.pp { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--leaf-tint); }
.pp-ref { font-weight: 700; }
.pp-marks { justify-self: end; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.pp-what { grid-column: 1 / -1; color: var(--ink-2); }
.pp-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pp-link { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: 999px; background: var(--leaf); color: #fff; text-decoration: none; font-size: 0.88rem; font-weight: 600; }
.pp-link:hover { background: var(--leaf-strong); color: #fff; }
.pp-link--ms { background: #fff; color: var(--leaf-strong); border: 1.5px solid var(--leaf); }
.pp-link--ms:hover { background: var(--leaf-tint); color: var(--leaf-strong); }
/* A question from a School Support Hub paper (no public link, 18 Nov 2026) */
.pp-hub { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 999px; border: 1.5px dashed var(--line); color: var(--ink-2); font-size: 0.85rem; font-weight: 600; }
.lb .pp-note { font-size: 0.85rem; color: var(--ink-3); margin-top: 12px; }
@media print { .lb--past { display: none !important; } }

/* Previous / next / directed study buttons and the folded teacher's introduction (rules 40 and 41) */
.lp-prevnext { display: flex; flex-wrap: wrap; gap: 10px; }
.lp-prevnext--top { margin: 4px 0 22px; }
.lp-prevnext--bottom { margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.lp-teacher-intro { margin: -12px 0 24px; }
.lp-teacher-intro > summary { font-size: 0.9rem; color: var(--ink-3); cursor: pointer; }
.lp-teacher-intro > .lp-note { margin: 8px 0 0; }
@media print { .lp-prevnext, .lp-teacher-intro { display: none !important; } }

/* Command words as a strip on the exam-style slide (rule 39, Laura, 10 Nov 2026) */
body.deck .lp .wrap > .lb--cmd.deck-cmd-strip { display: block !important; min-height: 0 !important; font-size: 0.72em; padding: 10px 16px; margin-bottom: 10px; }
body.deck .lp .wrap > .deck-cmd-strip ~ .lb { min-height: calc(var(--deck-h, 0px) - var(--deck-strip, 0px)); }
body.deck .lp .wrap > .lb--cmd.deck-cmd-strip h2 { font-size: 1em; margin: 0 0 4px; }
/* each command word stays on the row of its meaning (Laura, 10 Nov 2026: "explain command word is on a different row to
   it's definition in projector view"): an inline run, not a flex row */
body.deck .lp .wrap > .lb--cmd.deck-cmd-strip dl, body.deck .lp .wrap > .lb--cmd.deck-cmd-strip ul { display: block; margin: 0; line-height: 1.45; }
body.deck .lp .wrap > .lb--cmd.deck-cmd-strip dt { display: inline; font-weight: 700; white-space: nowrap; }
body.deck .lp .wrap > .lb--cmd.deck-cmd-strip dt::after { content: ': '; }
body.deck .lp .wrap > .lb--cmd.deck-cmd-strip dd { display: inline; margin: 0 22px 0 0; }
body.deck .lp .wrap > .lb--cmd.deck-cmd-strip p { margin: 0; }
body.deck .lp .wrap > .lb--cmd.deck-cmd-strip .cw-intro { display: none; }

/* .timer-btn--step: a timer for one step of a task ("think for 30 seconds", "count your pulse for 15 seconds"), on every
   subject (Laura, page note 98, 19 Nov 2026 06:15 UTC: "Have timers that match the activity ... make this change for
   ALL"). lesson_convert.py keeps them on the teacher's slide; student pages have no countdown, so they are hidden there.
   The same rules were only in /css/psych-teacher-drop.css before. */
.timer-btn--step { margin-left: 6px; }
.lp--self .timer-btn--step, #pn-self .timer-btn--step { display: none !important; }
