:root{color-scheme:light;--bg:#f6f5f1;--surface:#fff;--ink:#20312f;--muted:#586561;--line:#d7ddd8;--accent:#266858;font:16px/1.6 system-ui,sans-serif}body.dark{color-scheme:dark;--bg:#17201f;--surface:#202b29;--ink:#e5ece8;--muted:#b5c2bd;--line:#43504b;--accent:#a4d9c6}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}header{display:flex;align-items:center;gap:1.5rem;padding:.65rem 1.25rem;border-bottom:1px solid var(--line)}.brand{font-weight:650}h1{font-size:1.15rem;margin:0;flex:1}h2{font-size:1.4rem;line-height:1.3}button,select{font:inherit;min-height:44px;padding:.4rem .8rem;border:1px solid var(--line);border-radius:5px;background:var(--surface);color:var(--ink);cursor:pointer}button:hover{border-color:var(--accent)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--accent);outline-offset:2px}button:disabled{opacity:.4;cursor:default}nav{display:flex;gap:.5rem;padding:.55rem 1.25rem;border-bottom:1px solid var(--line)}nav button{background:transparent;border:0;border-radius:0}nav button[aria-current]{box-shadow:inset 0 -3px var(--accent);font-weight:650}main{max-width:1500px;margin:auto;padding:.75rem 1.25rem}.chart-toolbar{display:flex;align-items:center;gap:.45rem;margin-bottom:.6rem}.chart-toolbar label{display:flex;align-items:center;gap:.5rem;flex:1;font-size:.9rem}input[type=range]{width:min(30vw,240px);accent-color:var(--accent)}#chart-stage{height:calc(100dvh - 212px);min-height:320px;position:relative;overflow:hidden;background:var(--surface);border:1px solid var(--line);touch-action:none;cursor:grab}#chart-stage:active{cursor:grabbing}#chart-images{position:absolute;width:100%;height:100%;transform-origin:center;will-change:transform}#chart-images img{position:absolute;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}#enc{opacity:.5}#fullscreen{position:absolute;right:10px;bottom:10px;font-size:1.5rem}#chart-stage:fullscreen{height:100vh;width:100vw;border:0}article{max-width:68ch;margin:2rem auto}#route-text p{margin:0 0 1.3rem}.reading-controls{display:flex;gap:.5rem;max-width:68ch;margin:auto}.reading-controls select{flex:1;min-width:0;width:100%}details{border-top:1px solid var(--line);margin-top:2rem;padding-top:1rem;font-size:.85rem;color:var(--muted)}summary{cursor:pointer}a{color:var(--accent)}#lights{max-width:68ch;margin:1.4rem auto}#light-list{list-style:none;padding:0}#light-list li{border-bottom:1px solid var(--line)}#light-list a{display:block;padding:.8rem 0;text-decoration:none}#light-list a:hover{text-decoration:underline}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}@media(max-width:600px){header{gap:.6rem;padding:.5rem .75rem;flex-wrap:wrap}.brand{font-size:.85rem}h1{font-size:1rem}nav{padding:.25rem .6rem;gap:.2rem}main{padding:.6rem}.chart-toolbar{gap:.25rem}.chart-toolbar button{padding:.3rem .65rem}#chart-stage{height:calc(100dvh - 205px)}article{margin:1rem .35rem;font-size:1.05rem}.reading-controls select{font-size:.9rem}input[type=range]{width:90px}}

.chart-toolbar{flex-wrap:wrap}.chart-toolbar a{font-size:.8rem;padding:.4rem;min-height:44px;display:inline-flex;align-items:center}

#cue-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}.walkthrough{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap;margin-bottom:.7rem}.walkthrough audio{flex:1;min-width:230px;height:40px}#cue-name{font-size:.9rem}.walkthrough button{min-height:44px}@media(max-width:600px){.walkthrough audio{flex-basis:100%}#chart-stage{height:55dvh}}
/* Compact official-PDF read-along */
#readalong{margin:.4rem 0 0;padding:0;border:1px solid var(--line);border-radius:10px;background:var(--surface);overflow:hidden;color:var(--ink)}
#readalong summary{min-height:44px;padding:.55rem .75rem;font-weight:600;font-size:.85rem;line-height:1.4}
#readalong-body{max-height:180px;overflow:auto;overscroll-behavior:contain;padding:0 .45rem .45rem}
.official-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:.4rem;outline-offset:-3px;background:#fff;border-left:3px solid #e36400;border-radius:5px;padding:.35rem}
.official-row img{width:100%;height:auto;align-self:start;display:block;background:white}
@media(max-width:600px){#readalong-body{max-height:144px}.walkthrough strong{display:none}.walkthrough{gap:.3rem;margin-bottom:.3rem}#cue-name{font-size:.8rem}}

.trainer-link{margin-left:auto;display:inline-flex;align-items:center;min-height:44px;padding:.3rem .5rem;text-decoration:none;font-weight:600;font-size:.9rem}#chart-stage{background:#f8f7f1}body.dark #chart-stage{background:#202b29}

.route-transport{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;max-width:68ch;margin:.5rem auto}.route-transport audio{flex:1;min-width:220px;height:40px}.route-transport label{white-space:nowrap;font-size:.85rem}.route-transport input{accent-color:var(--accent)}

/* Shared top dock: both modes occupy the same place, above the chart. */
#chart>nav{padding:0 0 .25rem;margin:0 0 .25rem;align-items:center}
#playback-dock{min-height:112px;margin:0 0 .35rem;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:.4rem .5rem}
#route-study{margin:0;border:0;padding:0}.reading-controls,.route-transport{max-width:none;margin:0;gap:.3rem}
.reading-controls{margin-bottom:.25rem}.reading-controls button{min-height:36px;padding:.2rem .65rem}.reading-controls select{min-height:36px;padding:.2rem .35rem}
.route-transport{flex-wrap:nowrap}.route-transport audio,.walkthrough audio{height:34px;min-width:0;width:100%}.route-transport label{font-size:.8rem}.route-transport label input{margin:0}
#route-audio-status:empty{display:none}#route-audio-status{font-size:.75rem}
.walkthrough{display:grid;grid-template-columns:1fr auto;gap:.2rem;margin:0}.walkthrough audio{grid-column:1/-1;flex-basis:auto}#cue-name{font-size:.85rem;line-height:1.25;min-height:2.4em;display:flex;align-items:center}#resume-follow{font-size:.75rem;padding:.2rem .35rem}
#route-reading,#readalong{margin:.25rem 0 0;padding:0;border:0;background:transparent;font-size:.8rem}#route-reading>summary,#readalong>summary{min-height:24px;padding:0;font-size:.8rem;line-height:1.4}#route-reading article{max-height:25dvh;overflow:auto;overscroll-behavior:contain;margin:.5rem 0;font-size:.9rem}#route-text p{margin-bottom:.7rem}
#chart:fullscreen{display:flex;flex-direction:column;width:100%;height:100dvh;padding:.5rem;background:var(--bg);overflow:auto}#chart:fullscreen #chart-stage{flex:1;min-height:160px;height:auto}#chart:fullscreen #playback-dock{flex-shrink:0}
@media(max-width:600px){header{padding:.25rem .6rem}header button{min-height:36px;padding:.2rem .5rem}main{padding:.35rem .5rem}#chart>nav button,#chart>nav a{min-height:36px;padding:.15rem .4rem}#playback-dock{padding:.3rem .4rem;min-height:108px}.trainer-link{font-size:.8rem}#chart-stage{height:57dvh}.chart-toolbar{margin-bottom:.3rem}.chart-toolbar a{min-height:32px}.chart-toolbar button{min-height:32px}.chart-toolbar label{font-size:.8rem}}

body.chart-expanded{overflow:hidden}#chart.full-window{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;width:100%;height:100dvh;padding:.5rem;background:var(--bg);overflow:auto}#chart.full-window #chart-stage{flex:1;min-height:160px;height:auto}#chart.full-window #playback-dock{flex-shrink:0}

#route-audio,#section-choice{display:none!important}.canonical-compact{display:grid;gap:.4rem;margin-bottom:.5rem}.canonical-compact>span{font-size:.85rem}.canonical-buttons{display:flex;gap:.4rem}.canonical-buttons button{flex:1}.canonical-compact input{width:100%;margin:0}.canonical-compact output{font-size:.85rem}#route-text{max-height:none!important;overflow:visible!important}.reading-controls{display:none}.resources{padding:1rem}.resources a{overflow-wrap:anywhere}header h1{min-width:0}#chart-stage{height:60dvh;min-height:320px}#cue-overlay{z-index:3}.chart-annotations{z-index:4}.trainer-link{white-space:nowrap}
