:root { --pq: #e16b37; --pq-soft: #fff2e9; --mn: #397ac9; --mn-soft: #edf5ff; --ol: #24886a; --ol-soft: #eaf6ef; --ink: #233c47; }
body { background: #f7f9f8; color: var(--ink); font-size: 15px; }
button { cursor: pointer; }
button, select, input { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #70b4a0; outline-offset: 4px; }
button:disabled { opacity: .4; cursor: default; }
[hidden] { display: none !important; }
.page { max-width: 1320px; padding: 32px 28px 24px; margin: auto; }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 26px; }
.eyebrow { color: #487763; font-size: 12px; font-weight: 700; letter-spacing: 2px; }
.intro h2 { font-size: clamp(26px, 3vw, 36px); margin: 8px 0; letter-spacing: -1px; }
.intro p { color: var(--muted); margin: 0; }
.quiet { background: transparent; border: 0; border-radius: 8px; padding: 8px; color: #5c6d74; font-size: 13px; }
.quiet:hover { background: #eef3f0; color: #26694e; }
.problem { background: #fff; padding: 20px 26px; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 20px; }
.problem h2 { margin: 0; font-size: 18px; }
.problem p { line-height: 1.9; }
.problem li { margin: 7px 0; }
.problem-diagram { margin: 22px 0; padding: 15px 18px; background: #f8faf8; border: 1px solid #e7ece7; border-radius: 10px; }
.problem-diagram figcaption { font-size: 12px; font-weight: 600; color: #5f7567; }
.problem-axis-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.problem-axis-scroll:focus-visible { outline: 2px solid #70b4a0; outline-offset: 2px; }
.problem-axis { display: block; width: 100%; min-width: 620px; max-width: 960px; height: auto; margin: 8px auto 0; }
.problem p.problem-axis-note { margin: 4px 0 0; font-size: 12px; line-height: 1.7; color: #78887f; }
.chapters { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 20px; background: #eef2f0; padding: 6px; gap: 6px; border-radius: 14px; }
.chapter { display: flex; align-items: center; gap: 10px; padding: 12px 14px; text-align: left; background: transparent; border: 1px solid transparent; color: #6c7a7f; border-radius: 10px; }
.chapter .num { display: grid; place-items: center; width: 29px; height: 29px; flex: 0 0 29px; background: #e0e8e3; border-radius: 9px; font-size: 13px; font-weight: 700; }
.chapter strong { font-size: 14px; display: block; }
.chapter small { display: block; font-size: 11px; margin-top: 2px; }
.chapter.active { background: #fff; color: #285d49; border-color: #dce7df; box-shadow: 0 2px 5px #233c4707; }
.chapter.active .num { background: #2e7156; color: #fff; }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); gap: 20px; align-items: start; }
.theater, .explanation { background: #fff; border: 1px solid #e3e9e5; border-radius: 18px; overflow: hidden; }
.theater { padding: 20px 22px; }
.stage-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.scene-tag { min-width: 0; color: #3d7358; font-weight: 700; font-size: 12px; padding: 6px 10px; background: #eef5ef; border-radius: 6px; }
.clock { flex-shrink: 0; font-size: 12px; color: #6b7d82; display: flex; align-items: baseline; gap: 7px; }
.clock strong { display: inline-block; width: 6ch; font-size: 27px; color: var(--ink); text-align: right; }
.clock strong, .point-values strong, .distance-row strong, #overlap-number, svg text { font-variant-numeric: tabular-nums lining-nums; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 20px; font-size: 12px; color: #65777e; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 9px; height: 9px; display: inline-block; border-radius: 50%; }
.pq { background: var(--pq); }.mn { background: var(--mn); }.overlap { background: var(--ol); }
#stage { width: 100%; height: auto; display: block; overflow: visible; }
svg text { font-family: var(--font); }
.stage-note { margin: 0 0 16px; font-size: 11px; text-align: center; color: #7c898c; }
.readouts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.readout { padding: 10px 13px; border-radius: 9px; font-size: 12px; }
.readout.orange { background: var(--pq-soft); color: #a04c29; }
.readout.blue { background: var(--mn-soft); color: #386ea9; }
.point-values { display: grid; grid-template-columns: 12px 7.5ch; align-items: baseline; gap: 2px 6px; font-size: 17px; }
.point-values > span { font-size: 12px; }
.point-values strong { display: inline-block; width: 7.5ch; text-align: left; }
.readout .speed, .readout .speed-mode { display: block; font-size: 11px; white-space: nowrap; line-height: 1.7; min-height: 1.7em; opacity: .9; }
.readout .speed { margin-top: 5px; }
.number-note { margin: 7px 0 0; color: #7e8d8a; font-size: 11px; }
.zoom-panel, .distance-panel { border-top: 1px solid #edf0ed; margin: 18px 0 0; padding: 18px 0 0; }
.zoom-heading { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 12px; }
.zoom-heading > span { display: inline-flex; align-items: baseline; gap: 5px; flex-shrink: 0; font-weight: 700; color: #278264; background: var(--ol-soft); border-radius: 6px; padding: 4px 8px; white-space: nowrap; }
#overlap-number { display: inline-block; width: 5ch; text-align: left; }
#zoom { width: 100%; display: block; }
#zoom-note, #distance-note { font-size: 12px; color: #647c74; margin: 0; text-align: center; min-height: 19px; }
.distance-row { display: flex; align-items: center; gap: 12px; margin: 0 0 10px; font-size: 13px; }
.distance-row b { width: 25px; flex-shrink: 0; }.distance-row strong { display: inline-block; width: 7.5ch; flex-shrink: 0; text-align: right; }
.distance-track { height: 12px; background: #f1f3f5; border-radius: 3px; flex: 1; overflow: hidden; }
.distance-track span { display: block; height: 100%; border-radius: 3px; }
#cq-bar { background: #8e79bc; }#pm-bar { background: #d5a45b; }
.scrubber { margin-top: 22px; padding-top: 16px; border-top: 1px solid #edf0ed; }
.scrubber label { display: flex; justify-content: space-between; font-size: 11px; color: #78868a; }
#time-slider { width: 100%; margin: 12px 0 0; accent-color: #367556; height: 22px; cursor: ew-resize; }
.timeline-labels { position: relative; height: 30px; margin: 0 9px; }
.timeline-labels button { position: absolute; transform: translateX(-50%); font-size: 10px; border: 0; background: none; color: #6a797c; padding: 2px; white-space: nowrap; }
.timeline-labels button:first-child { transform: none; }.timeline-labels button:last-child { transform: translateX(-100%); }
.animation-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 4px; }
.play-btn { background: #eef5ef; color: #346b50; border: 1px solid #dbe7dd; font-size: 12px; font-weight: 700; padding: 10px 12px; border-radius: 8px; }
.play-btn:hover { background: #e1eee4; }
.play-all { background: #336f53; border-color: #336f53; color: #fff; }
.play-all:hover { background: #265e43; }
.play-all[aria-pressed="true"] { background: #265e43; }
.speed-label { margin-left: auto; color: #77868a; font-size: 11px; display: flex; align-items: center; gap: 5px; }
select { border: 1px solid #e1e7e2; background: #fff; border-radius: 6px; padding: 5px 6px; color: #476554; font-size: 12px; }
.scrub-hint { font-size: 11px; color: #7e8d8a; margin: 10px 0 0; }
.explanation { padding: 23px 25px; border-top: 4px solid #67917c; min-height: 515px; display: flex; flex-direction: column; }
.step-top { display: flex; justify-content: space-between; align-items: center; color: #82908e; font-size: 11px; }
#lesson-copy h2 { font-size: 25px; line-height: 1.5; margin: 22px 0 18px; letter-spacing: -.5px; }
#lesson-copy p { font-size: 15px; line-height: 1.95; margin: 13px 0; color: #546770; }
#lesson-copy strong { color: var(--ink); }
.orange-text { color: #c26135 !important; }.blue-text { color: #397ac9 !important; }
.formula { background: #f4f7f5; border-left: 3px solid #88a895; padding: 13px 16px; margin: 20px 0; font-size: 18px; line-height: 1.8; color: #285840; border-radius: 0 7px 7px 0; font-weight: 650; overflow-wrap: anywhere; }
.formula small { display: block; color: #728379; font-size: 12px; font-weight: 400; }
.takeaway { color: #547451 !important; background: #f6f8ef; padding: 11px 14px; border-radius: 8px; font-size: 13px !important; }
.step-nav { display: flex; gap: 9px; justify-content: space-between; margin-top: auto; padding-top: 24px; }
.next-btn { border: 0; background: #336f53; color: #fff; padding: 11px 15px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.next-btn:hover { background: #265e43; }
.step-dots { display: flex; justify-content: center; gap: 6px; padding-top: 22px; flex-wrap: wrap; }
.step-dots button { border: 0; width: 7px; height: 7px; background: #dfe6e0; border-radius: 10px; padding: 0; }
.step-dots button.active { width: 22px; background: #65917a; }
.keyboard-hint { margin: 13px 0 0; text-align: center; color: #7e8d8a; font-size: 11px; }
.keyboard-hint kbd { display: inline-block; padding: 0 4px; border: 1px solid #dfe6e0; border-radius: 4px; font: inherit; }
.mini-check { margin-top: 14px; background: #fbfaf5; padding: 14px; border-radius: 9px; }
.mini-check p { margin: 0 0 10px; font-size: 13px; }
.check-options { display: flex; gap: 7px; flex-wrap: wrap; }
.check-options button { border: 1px solid #e1e4da; background: #fff; padding: 8px 12px; border-radius: 7px; font-size: 12px; }
.check-options button.correct { border-color: #71aa87; background: #edf7ed; color: #36704b; }
.check-feedback { font-size: 12px !important; color: #6a7760; margin: 10px 0 0 !important; }
.milestones { padding: 22px; background: #fff; border: 1px solid #e3e9e5; border-radius: 16px; margin-top: 20px; }
.section-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section-top h2 { font-size: 16px; margin: 0; }.section-top > span { font-size: 11px; color: #859189; }
#milestone-buttons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.moment { border: 1px solid #dce6df; border-radius: 9px; background: #f9fbf8; padding: 12px; color: #416a51; text-align: left; }
.moment strong { display: block; font-size: 21px; margin: 4px 0; }.moment small { font-size: 11px; color: #76897c; }
.moment:hover, .moment.selected { border-color: #7d9d86; background: #edf5ec; }
.milestones > p { color: #78877d; font-size: 12px; margin-bottom: 0; }
.recap { margin-top: 22px; padding: 17px 22px; border: 1px solid #e2e7e3; border-radius: 12px; background: #fff; }
.recap summary { cursor: pointer; font-size: 13px; color: #5f7466; }
#recap-content { line-height: 1.9; font-size: 14px; padding: 8px 0; }
#recap-content h3 { font-size: 16px; margin-top: 24px; }
#recap-content table { width: 100%; border-collapse: collapse; font-size: 13px; margin: 16px 0; }
#recap-content td, #recap-content th { border: 1px solid #e4e9e3; text-align: left; padding: 8px; }
#recap-content th { background: #f4f7f4; }
footer { text-align: center; padding: 27px 10px 8px; color: #8b9690; font-size: 12px; }
@media (min-width: 1100px) { .explanation { position: sticky; top: 76px; } }
@media (max-width: 960px) { .lesson-layout { grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr); gap: 14px; }.theater { padding: 18px 15px; }.explanation { padding: 20px; } .page { padding: 25px 18px; }.chapter { padding: 10px; gap: 7px; }.chapter small { font-size: 10px; } }
@media (max-width: 760px) { .lesson-layout { grid-template-columns: 1fr; }.intro { align-items: flex-start; }.intro > .quiet { font-size: 11px; white-space: nowrap; margin-top: 22px; }.intro p { font-size: 13px; }.chapters { gap: 3px; padding: 4px; }.chapter { flex-direction: column; padding: 10px 2px; gap: 5px; text-align: center; }.chapter small { display: none; }.chapter strong { font-size: 12px; }.chapter .num { width: 24px; height: 24px; flex-basis: 24px; border-radius: 7px; }.explanation { min-height: 0; }#lesson-copy h2 { margin-top: 14px; font-size: 23px; }.step-nav { margin-top: 0; } .section-top { align-items: flex-start; flex-direction: column; } #stage text { font-size: 27px; } #zoom text { font-size: 26px; } #zoom > text:last-child { font-size: 17px; } }
@media (max-width: 420px) { .page { padding: 22px 12px; }.intro { display: block; margin-bottom: 18px; }.intro > .quiet { margin: 8px 0 -4px; padding-left: 0; }.theater { padding: 16px 12px; }.legend { font-size: 11px; gap: 10px; }.clock strong { font-size: 24px; }.clock-label { display: none; }.animation-controls { flex-wrap: wrap; }.speed-label { gap: 3px; }.speed-label select { max-width: 78px; }#milestone-buttons { grid-template-columns: 1fr 1fr; }.zoom-heading { font-size: 11px; }.readout { padding: 9px; }.point-values { font-size: 16px; gap: 2px 7px; }.explanation { padding: 18px; } }
