[hidden] { display:none!important; }
.skip-link { position:absolute; top:-60px; left:24px; z-index:10; background:white; padding:10px; }
.skip-link:focus { top:12px; }
.chapter-heading { margin:22px 52px 14px; display:flex; justify-content:space-between; align-items:center; gap:16px; font-size:12px; color:var(--muted); }
.chapter-heading p { margin:0; }
.chapter-heading span { margin-left:12px; color:var(--ink); }
.chapter-heading a { font-size:11px; white-space:nowrap; }
.chapter-nav { margin:0 52px; display:grid; grid-template-columns:repeat(3,1fr); border-bottom:1px solid var(--rule); }
.chapter-nav button { position:relative; display:flex; align-items:center; gap:12px; text-align:left; background:white; border:0; color:var(--muted); padding:13px 15px; min-height:52px; font-size:13px; }
.chapter-nav button[aria-current="step"] { background:#f1f6fc; color:var(--blue); font-weight:600; }
.chapter-nav button[aria-current="step"]::after { content:""; position:absolute; bottom:-1px; height:3px; background:var(--blue); left:0; right:0; }
.nav-number { font-variant-numeric:tabular-nums; font-size:12px; }
.story-layout { min-height:0; }
.reading { padding-top:28px; padding-bottom:20px; min-height:202px; scroll-margin-top:18px; }
.reading:focus { outline:none; }
.chapterline { top:29px; max-width:calc(29.5% - 75px); }
#scene-title { font-size:26px; }
.narrative { font-size:21px; line-height:1.95; }
.phrase { border-bottom:2px solid transparent; box-decoration-break:clone; -webkit-box-decoration-break:clone; }
.phrase.active { background:#edf4fc; border-bottom-color:#8db5df; }
.scene-sources { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; font-size:10px; line-height:1.8; color:var(--muted); }
.scene-sources:empty { display:none; }
.illustration { height:auto; }
.drawing { height:clamp(310px,40vh,390px); }
.drawing text { letter-spacing:.01em; }
.drawing .label { font-size:28px; font-weight:550; }
.drawing .note { font-size:23px; fill:var(--muted); }
.drawing .formula { font-size:43px; font-weight:550; fill:var(--blue); }
.drawing .symbol { font-size:43px; fill:#7ca4c9; }
.drawing .metric { font-size:70px; font-weight:600; fill:var(--blue); }
.drawing .result { font-size:29px; font-weight:550; fill:var(--blue); }
figcaption { min-height:46px; height:auto; padding:12px 34px 14px; align-items:flex-start; }
#figure-caption { font-size:11px; line-height:1.7; }
.diagram-note { max-width:46%; }
.reader-controls { margin:0 52px; border-top:1px solid var(--rule); padding-top:13px; }
.step-heading { display:flex; justify-content:space-between; gap:12px; font-size:11px; color:var(--muted); line-height:1.7; }
#step-label { color:var(--ink); text-align:right; }
.step-nav { display:flex; gap:9px; margin:4px 0 7px; }
.step-nav button { flex:1; min-width:0; min-height:32px; padding:7px 4px; border:0; background:white; color:var(--muted); display:flex; align-items:center; gap:9px; font-size:11px; text-align:left; }
.step-nav button::before { content:""; flex:1; height:3px; background:#dce8f3; }
.step-nav button[aria-current="step"] { color:var(--blue); font-weight:600; }
.step-nav button[aria-current="step"]::before { height:4px; background:var(--blue); }
.step-nav button.visited::before { background:#8eb4da; }
.navigation { justify-content:space-between; gap:18px; }
.quiet-button { min-width:88px; text-align:left; }
.scene-position { font-size:11px; color:var(--muted); margin-left:auto; }
.next-button { text-decoration:none; min-width:185px; }
.transport { display:flex; align-items:center; gap:18px; margin-top:16px; padding-top:14px; border-top:1px solid #e3ebf3; }
#play { display:flex; align-items:center; justify-content:center; gap:9px; white-space:nowrap; min-height:42px; min-width:130px; padding:9px 13px; font-size:12px; color:var(--blue); background:white; border:1px solid var(--rule); border-radius:2px; }
#play:hover { background:#f1f6fc; }
.timeline { display:flex; flex:1; min-width:0; align-items:center; gap:12px; }
#seek { min-width:0; flex:1; width:100%; height:28px; margin:0; accent-color:var(--blue); cursor:pointer; }
#time { font-size:11px; font-variant-numeric:tabular-nums; white-space:nowrap; color:var(--muted); min-width:77px; text-align:right; }
.rate-choice { display:flex; gap:8px; align-items:center; white-space:nowrap; color:var(--muted); font-size:11px; }
#rate { min-height:40px; color:var(--ink); background:white; border:1px solid var(--rule); padding:7px; font:inherit; border-radius:2px; }
.play-options { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-top:9px; color:var(--muted); font-size:11px; }
#status { margin:0; line-height:1.8; }
.play-options #status { flex:1; }
#sound-choice { margin-left:auto; }
.motion-control { flex-shrink:0; }
.chapter-end { margin:23px 52px 0; padding:20px 25px; background:#f0f6fc; border-left:3px solid var(--blue); font-size:14px; line-height:1.8; }
.chapter-end p { margin:0 0 8px; }
.end-label { font-size:11px; letter-spacing:.08em; color:var(--blue); }
#source-text { max-width:780px; margin:22px auto 0; font-size:13px; line-height:1.95; }
#source-text li { margin:10px 0; overflow-wrap:anywhere; }
#source-text ul { padding-left:1.5em; }
.transcript { margin-top:23px; padding-bottom:18px; }
.sources { margin-top:0; }
select:focus-visible { outline:3px solid #d17a4d; outline-offset:3px; }
@media (min-width:761px) and (max-width:1150px) {
  .chapter-heading,.chapter-nav,.reader-controls,.chapter-end { margin-left:35px; margin-right:35px; }
  .narrative { font-size:20px; }
  .chapterline { max-width:calc(31% - 56px); }
  #scene-title { font-size:23px; }
}
@media (max-width:760px) {
  .chapter-heading { margin:18px 22px 12px; flex-wrap:wrap; gap:9px; line-height:1.6; }
  .chapter-heading a { font-size:10px; }
  .chapter-nav { margin:0 22px; }
  .chapter-nav button { padding:10px 8px 12px; min-height:68px; display:block; font-size:11px; line-height:1.6; }
  .nav-number { display:block; margin-bottom:3px; font-size:10px; }
  .story-layout { padding-top:25px; }
  .reading { padding:0 0 12px; min-height:0; }
  .chapterline { max-width:none; }
  #scene-title { font-size:23px; }
  .narrative { font-size:19px; line-height:1.95; margin-top:23px; }
  .scene-sources { font-size:10px; }
  .illustration { margin:13px -15px 0; }
  .drawing { height:auto; aspect-ratio:var(--art-ratio,640/540); }
  .drawing .label { font-size:31px; }
  .drawing .note { font-size:27px; }
  .drawing .formula { font-size:39px; }
  .drawing .metric { font-size:59px; }
  .drawing .result { font-size:29px; }
  figcaption { padding:12px 15px; gap:14px; }
  #figure-caption { font-size:10px; }
  .diagram-note { max-width:46%; font-size:9px; }
  .reader-controls { margin:0 22px; padding-top:12px; }
  .step-heading { font-size:10px; }
  .step-nav button { min-height:44px; }
  .navigation { gap:9px; margin:0; }
  .quiet-button { min-width:65px; font-size:13px; }
  .scene-position { display:none; }
  .next-button { min-width:180px; min-height:48px; font-size:13px; padding:11px 16px; }
  .transport { flex-wrap:wrap; gap:10px; margin-top:15px; }
  .timeline { order:-1; flex-basis:100%; }
  #play { flex:1; }
  .rate-choice { margin-left:auto; }
  .play-options { align-items:flex-start; flex-wrap:wrap; gap:3px; }
  #status { width:100%; margin:3px 0; }
  .play-options #status { flex-basis:100%; }
  #sound-choice { margin-left:0; margin-right:auto; }
  .chapter-end { margin:20px 22px 0; padding:17px; font-size:13px; }
}
@media print { .chapter-nav,.reader-controls,.chapter-end { display:none; } }
