/* Classroom layout from the image-service Classroom lesson + whiteboard screens (2026-11-20). Loaded after classroom.css. */
:root { --g: #17463c; --g2: #17695a; --mint: #e3f1e6; --mint-line: #cfe3d6; --mint-strong: #9fcfb5; --btn: #ff8a6b; --btn-h: #ff654f; --cream: #fdf8f0; --serif: Georgia, "Times New Roman", serif; }
body { background: var(--cream); }

/* top bar = site header */
.topbar { height: 64px; background: var(--cream); border-bottom: 1px solid var(--mint-line); gap: 22px; }
.brand { text-decoration: none; color: var(--g); gap: 12px; padding-right: 22px; border-right: 1.5px solid var(--mint-line); height: 40px; }
.brand-logo { width: 36px; height: 36px; border-radius: 8px; }
.brand-name { font-family: var(--serif); font-size: 26px; letter-spacing: 0; color: var(--g); }
.site-nav { display: flex; gap: 6px 26px; margin-right: auto; }
.site-nav a { font-family: var(--serif); color: var(--g); text-decoration: none; font-size: 17px; padding: 6px 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a:focus-visible { border-bottom-color: var(--btn); }
#record-class { background: var(--mint); border: 1px solid var(--mint-strong); color: var(--g); text-decoration: none; border-radius: 10px; }

/* left class panel */
.class-side { width: 252px; flex: none; overflow-y: auto; padding: 12px 10px 14px 12px; display: flex; flex-direction: column; gap: 10px; background: #fffdf9; border-right: 1px solid var(--mint-line); scrollbar-width: thin; }
body[data-mode="board"] .class-side { display: none; }
.cs-card { background: #fff; border: 1px solid var(--mint-line); border-radius: 14px; padding: 10px 12px; }
.cs-head { background: var(--mint); }
.cs-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--serif); font-weight: 400; color: var(--g); font-size: 24px; }
.cs-head h2 svg { width: 26px; height: 26px; color: var(--g2); }
.cs-status { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 14px; color: var(--g); }
.cs-dot { width: 9px; height: 9px; border-radius: 50%; background: #1f9d55; flex: none; }
.cs-photo { width: 100%; height: 150px; object-fit: cover; border-radius: 14px; display: block; }
.cs-card h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 400; color: var(--g); font-size: 18px; }
.cs-chapter { margin: 0; font-size: 14.5px; line-height: 1.4; color: var(--ink); }
.cs-muted { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.cs-meet { margin: 0 4px; }
.cs-tools { display: grid; gap: 6px; }
.cs-tools button { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 6px 10px; border: 1px solid var(--mint-line); border-radius: 10px; background: #fff; color: var(--g); font: inherit; font-size: 14.5px; cursor: pointer; text-align: left; }
.cs-tools button:hover, .cs-tools button:focus-visible { background: var(--mint); }
.cs-tools svg { width: 20px; height: 20px; flex: none; }
.cs-rooms { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 8px 12px; border: 1px solid var(--mint-strong); border-radius: 12px; background: var(--mint); color: var(--g); text-decoration: none; font-family: var(--serif); font-size: 15px; text-align: center; }
.cs-rooms:hover, .cs-rooms:focus-visible { background: #d3eadb; }
.cs-rooms svg { width: 22px; height: 22px; flex: none; }

/* stage head: mode tabs + Annotate */
.stage-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px 4px; }
.stage-spacer { flex: 1; }
.stage-head .tabs { margin: 0; padding: 0; background: none; gap: 10px; }
.stage-head .tab { display: inline-flex; align-items: center; gap: 10px; min-height: 42px; padding: 6px 20px; border: 1.5px solid var(--mint-line); border-radius: 10px; background: #fff; color: var(--g); font-family: var(--serif); font-size: 17px; font-weight: 400; }
.stage-head .tab svg { width: 22px; height: 22px; }
.stage-head .tab:hover { background: var(--mint); color: var(--g); }
.stage-head .tab[aria-selected="true"] { background: var(--g); border-color: var(--g); color: #fff; box-shadow: none; }
.stage-head .tab[aria-selected="true"]::after { display: none; }
#annotate-toggle { min-height: 42px; padding: 6px 20px; border: 0; border-radius: 10px; background: var(--btn); color: #1d2b28; font-family: var(--serif); font-size: 17px; }
#annotate-toggle:hover, #annotate-toggle[aria-pressed="true"] { background: var(--btn-h); }

/* lesson */
.lesson-bar { padding: 4px 16px 0; }
.lesson-bar .btn.ghost { color: var(--g); }
.slide { border: 1.5px solid var(--mint-strong); border-radius: 16px; box-shadow: 0 6px 22px rgba(23, 70, 60, .07); }
.slide-frame .overlay-host { border-radius: 16px; }
.slide-kicker { display: inline-block; background: var(--mint); color: var(--g); border-radius: 8px; padding: 5px 14px; font-family: var(--serif); font-weight: 400; font-size: 15px; letter-spacing: .08em; }
.slide-h1, .slide-h2, .slide-q { font-family: var(--serif); font-weight: 400; color: var(--g); }
.slide-h1 { font-size: clamp(34px, 4vw, 56px); }
.slide-h2 { font-size: clamp(28px, 3vw, 44px); }
.lesson-picker { border: 1.5px solid var(--mint-strong); border-radius: 16px; }
.lesson-picker .eyebrow { display: inline-block; background: var(--mint); color: var(--g); border-radius: 8px; padding: 4px 12px; font-family: var(--serif); letter-spacing: .08em; }
.picker-title { font-family: var(--serif); font-weight: 400; color: var(--g); }
.btn.primary { background: var(--btn); border-color: var(--btn); color: #1d2b28; }
.btn.primary:hover { background: var(--btn-h); border-color: var(--btn-h); }
.lesson-nav { padding: 6px 16px 12px; }
.nav-btn { border: 0; border-radius: 12px; background: var(--btn); color: #1d2b28; font-family: var(--serif); font-size: 19px; }
.nav-btn:hover:not(:disabled) { background: var(--btn-h); }
.progress { flex-direction: column; gap: 4px; }
.progress { align-items: stretch; }
.progress progress { flex: none; width: 100%; height: 10px; background: var(--mint); }
.progress progress::-webkit-progress-bar { background: var(--mint); }
.progress progress::-webkit-progress-value { background: var(--g2); }
.progress progress::-moz-progress-bar { background: var(--g2); }
.progress-text { text-align: center; color: var(--g); font-size: 15px; min-width: 0; }

/* right tool rail: labelled tools */
.rail { width: 158px; background: #fffdf9; border-left: 1px solid var(--mint-line); padding: 12px 10px 16px; }
.rail-group { border-bottom-color: var(--mint-line); }
.rail .tools { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; justify-content: stretch; }
.rail .tools .tool { width: 100%; height: 36px; }
.rail .tools .tool[data-tool="pen"], .rail .tools .tool[data-tool="highlighter"], .rail .tools .tool[data-tool="eraser"], .rail .tools .tool[data-tool="select"],
.rail .tools .tool[data-tool="text"], .rail .tools .tool[data-tool="laser"], .rail .tools .tool[data-tool="pan"] { grid-column: 1 / -1; justify-content: flex-start; gap: 10px; padding: 0 10px; order: 1; }
.rail .tools .tool[data-tool="line"], .rail .tools .tool[data-tool="arrow"], .rail .tools .tool[data-tool="rect"], .rail .tools .tool[data-tool="ellipse"], .rail .tools .tool[data-tool="triangle"] { order: 3; height: 32px; }
.rail .tools::after { content: "Shapes"; grid-column: 1 / -1; order: 2; font-size: 13px; color: var(--g); padding: 4px 2px 0; }
.rail .tool[data-tool]::after, .rail .class-tools .tool::after, #undo-btn::after, #redo-btn::after { font-size: 14px; color: var(--g); }
.rail .tools .tool[data-tool="pen"]::after { content: "Pen"; }
.rail .tools .tool[data-tool="highlighter"]::after { content: "Highlighter"; }
.rail .tools .tool[data-tool="eraser"]::after { content: "Eraser"; }
.rail .tools .tool[data-tool="select"]::after { content: "Select"; }
.rail .tools .tool[data-tool="text"]::after { content: "Text"; }
.rail .tools .tool[data-tool="laser"]::after { content: "Laser"; }
.rail .tools .tool[data-tool="pan"]::after { content: "Pan"; }
.rail .tool[aria-pressed="true"] { background: #d6f0e6; border-color: var(--mint-strong); color: var(--g); }
.rail .colors { grid-template-columns: repeat(4, 26px); gap: 8px; }
.rail .colors::before { content: "Colours"; grid-column: 1 / -1; font-size: 13px; color: var(--g); }
.rail .widths { grid-template-columns: repeat(4, minmax(0, 1fr)); justify-content: stretch; gap: 4px; }
.rail .widths::before { content: "Thickness"; grid-column: 1 / -1; font-size: 13px; color: var(--g); }
.rail .widths .width-btn { width: 100%; height: 32px; }
.rail .options { grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
.rail .actions { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; gap: 4px; }
.rail .actions .tool { width: 100%; height: 34px; }
.rail .actions #undo-btn, .rail .actions #redo-btn { grid-column: span 3; justify-content: flex-start; gap: 10px; padding: 0 10px; }
#undo-btn::after { content: "Undo"; } #redo-btn::after { content: "Redo"; }
.rail .zoom { grid-template-columns: repeat(3, minmax(0, 1fr)); justify-content: stretch; }
.rail .zoom .tool { width: 100%; height: 34px; }
.rail .class-tools { grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 4px; }
.rail .class-tools .tool { width: 100%; height: 36px; justify-content: flex-start; gap: 10px; padding: 0 10px; }
#timer-btn::after { content: "Timer"; } #pen-btn::after { content: "Pen and tablet"; } #picker-btn::after { content: "Pick a student"; }
#pen-btn { background: var(--btn); color: #1d2b28; }
#pen-btn:hover { background: var(--btn-h); }

/* whiteboard */
.board-bar { margin: 8px 16px 0; border: 1.5px solid var(--mint-line); border-radius: 12px; background: #fff; padding: 8px 14px; gap: 8px; }
.bn-label { font-family: var(--serif); color: var(--g); font-size: 16px; }
.board-name { width: 240px; border-color: var(--mint-strong); }
.board-bar .btn.small { background: var(--btn); border-color: var(--btn); color: #1d2b28; border-radius: 10px; font-family: var(--serif); font-size: 15px; }
.board-bar .btn.small:hover { background: var(--btn-h); }
.board-bar #board-dark { background: #fff; border-color: var(--mint-strong); color: var(--g); }
.board-host { margin: 10px 16px 0; border: 1.5px solid var(--mint-line); border-radius: 12px; }
.page-bar { margin: 10px 16px 12px; border: 1.5px solid var(--mint-line); border-radius: 12px; background: #fff; padding: 8px 14px; gap: 10px; }
.pages-title { font-family: var(--serif); color: var(--g); font-size: 16px; white-space: nowrap; }
.page-label { color: var(--g); }
.page-thumb { width: 130px; height: 78px; border-color: var(--mint-line); border-radius: 10px; }
.page-thumb[aria-current="true"], .page-thumb.is-current { border-color: var(--btn); box-shadow: inset 0 -16px 0 var(--btn); }

/* pdf */
.pdf-bar { margin: 8px 16px 0; border: 1.5px solid var(--mint-line); border-radius: 12px; background: #fff; }
.pdf-bar .btn.small { background: var(--btn); border-color: var(--btn); color: #1d2b28; border-radius: 10px; }
.pdf-empty h2 { font-family: var(--serif); font-weight: 400; color: var(--g); }

@media (max-width: 1180px) { .class-side { width: 220px; } .site-nav { gap: 6px 16px; } .site-nav a { font-size: 15px; } }
@media (max-width: 1020px) { .class-side { display: none; } }
@media (max-width: 900px) {
  .site-nav { display: none; }
  .brand { border-right: 0; padding-right: 0; margin-right: auto; }
  .rail { width: auto; }
  .rail .tools, .rail .colors, .rail .widths, .rail .actions, .rail .zoom, .rail .class-tools { grid-template-columns: none; }
  .rail .tool::after, .rail .tools::after, .rail .colors::before, .rail .widths::before { content: none !important; }
  .rail .tools .tool, .rail .actions .tool, .rail .class-tools .tool { grid-column: auto !important; width: 44px; padding: 0; justify-content: center; }
  .stage-head .tab { padding: 6px 12px; } .stage-head .tab span { display: none; }
}

/* phone: the chapter picker must not grow with long chapter names */
.picker-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.field select,.field input{min-width:0;width:100%;max-width:100%}
@media (max-width:640px){.picker-grid{grid-template-columns:minmax(0,1fr)}.field-wide,.field-full{grid-column:1/-1}.lesson-picker{width:calc(100% - 24px)}}
