/* One prose Reader, independent of proficiency level. */
.reader-heading{text-align:center;padding:39px 0 26px}
.reader-heading h1{font-size:46px;line-height:1.12}
.reader{max-width:680px;margin:0 auto;background:var(--white);border:1px solid var(--line);border-radius:9px;padding:23px 35px 30px}
.reader-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:14px;padding-bottom:20px;border-bottom:1px solid var(--line);margin-bottom:26px;font-family:var(--sans)}
.reader-audio-controls{display:flex;align-items:center;gap:11px;flex-wrap:wrap}
.reader-toolbar button{font-family:var(--sans);font-size:12px;min-height:44px;border-radius:4px;padding:8px 12px}
.reader-play{background:var(--green);color:white;border:1px solid var(--green);min-width:100px}
.reader-stop{border:0;background:transparent;color:var(--muted)}
.reader-prose{font-family:var(--font-reading);font-size:27px;line-height:1.85}
.reader-paragraph{margin:0 0 23px}
.reader-paragraph:last-child{margin-bottom:0}
.reader-sentence{cursor:pointer;display:inline;font:inherit;line-height:inherit;color:var(--ink);background:transparent;border:0;border-radius:3px;padding:3px 0;text-align:left;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.reader-sentence:hover,.reader-sentence:focus-visible{background:#f0f3e9}
.reader-translation{display:block;font-family:var(--sans);font-size:14px;color:#65705e;line-height:1.7;margin:5px 0 14px}
.reader-preview .reader-unit.is-translated{display:block}
.reader-unit{display:inline}
.reader-unit.is-translated .reader-sentence,.reader-unit.is-translated .reader-sentence-end{background:#eaf0e1;box-shadow:inset 0 -1px #b3c3a6}
.reader-unit.is-playing .reader-sentence,.reader-unit.is-playing .reader-sentence-end{background:#e8efde;box-shadow:inset 0 -2px #829a6f}
.reader-unit.is-paused .reader-sentence,.reader-unit.is-paused .reader-sentence-end{box-shadow:inset 0 -1px #9aa68f}
.reader [hidden]{display:none!important}
.reader-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.reader-lesson .notice{border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;padding:18px 0;margin-top:23px}
.reader-lesson .below-card{max-width:680px;justify-content:flex-end}
@media(max-width:530px){
 .reader-heading{padding:29px 0 23px}
 .reader-heading h1{font-size:36px}
 .reader{padding:18px 19px 23px}
 .reader-toolbar{gap:10px;margin-bottom:22px;padding-bottom:15px}
 .reader-audio-controls{gap:8px}
 .reader-prose{font-size:25px;line-height:1.8}
 .reader-paragraph{margin-bottom:22px}
 .reader-translation{font-size:14px}
}


.reader-interaction-hint{font:12px/1.7 var(--sans);color:#65735e;margin:-9px 0 23px;display:block}
.reader-interaction-hint>span{margin-right:4px}.reader-interaction-hint>svg{vertical-align:middle;margin:0 3px}
.reader-paragraph-group{margin-bottom:23px}.reader-paragraph-group:last-child{margin-bottom:0}.reader-paragraph-group>.reader-paragraph{margin-bottom:0}
.reader-translation-panel{margin:10px 0 3px;padding:11px 15px;border-left:2px solid #b3c2a6;border-radius:0 5px 5px 0;background:#f0f3e9;font-family:var(--sans);font-size:14px;line-height:1.7}
.reader-translation-label{display:block;font:500 10px/1.5 var(--sans);letter-spacing:.7px;color:#75816d;margin-bottom:3px}
.reader-translation-panel .reader-translation{margin:0;color:#526249;font-size:14px;line-height:1.7}
.reader-sentence:focus-visible{outline:2px solid #879e73;outline-offset:3px}
.reader-sentence-audio{display:inline-block;vertical-align:middle;width:32px;height:36px;min-width:32px;padding:6px 7px;margin:0 1px 0 2px;border:0;border-radius:4px;background:transparent;color:#728366;line-height:1;cursor:pointer;user-select:none}
.reader-sentence-audio svg{display:block;width:17px;height:17px;pointer-events:none}
.reader-sentence-audio:hover,.reader-sentence-audio:focus-visible{background:#eaf0e1;color:#36513e}
.reader-sentence-audio[data-playing="true"]{background:#e3ebd8;color:#304d37;box-shadow:inset 0 -1px #829a6f}
@media(max-width:530px){.reader-interaction-hint{font-size:11px;line-height:1.9;margin-bottom:20px}.reader-sentence-audio{width:36px;min-width:36px;height:44px;padding:12px 9px;margin-left:1px}.reader-paragraph-group{margin-bottom:22px}.reader-translation-panel{padding:10px 12px}}
@media(prefers-reduced-motion:reduce){.reader *{scroll-behavior:auto;transition:none}}

.reader-sentence-tail{display:inline;white-space:nowrap}
.reader-sentence-end{cursor:pointer;border-radius:3px;padding:3px 0;box-decoration-break:clone;-webkit-box-decoration-break:clone}

/* Read & Listen: an open reading surface, scoped away from Studio previews. */
main.reader-lesson{max-width:1240px;padding-inline:40px;padding-bottom:32px}
.reader-lesson .reader-heading,.reader-lesson .reader-heading.has-lesson-art{max-width:760px;margin:0;text-align:left;padding:36px 0 28px}
.reader-lesson .reader-heading h1{font-size:clamp(2.125rem,3.1vw,2.5rem);line-height:1.15;font-weight:400}
.reader-lesson .reader-heading .lesson-illustration{width:100px}
.reader-lesson .reader-editorial{display:grid;grid-template-columns:minmax(0,1fr) 344px;grid-template-areas:"toolbar sidebar" "story sidebar" "continue sidebar";column-gap:48px;row-gap:0;align-items:start;max-width:none;margin:0;padding:0;border:0;border-radius:0;background:transparent}
.reader-editorial>.reader-toolbar{grid-area:toolbar;display:flex;align-items:center;gap:16px 22px;flex-wrap:wrap;padding:0 0 20px;margin:0 0 26px;border-bottom:1px solid var(--line)}
.reader-editorial .reader-interaction-hint{margin:0;font-size:.75rem;line-height:1.7;flex:1 1 260px}
.reader-editorial .reader-toolbar button{font-size:.8125rem;min-height:44px}
.reader-editorial>.reader-prose{grid-area:story;max-width:760px;min-width:0;font-size:1.5rem;line-height:1.6;overflow-wrap:anywhere}
.reader-editorial .reader-paragraph-group{margin-bottom:1em}
.reader-editorial .reader-translation-panel{margin:12px 0 4px;padding:3px 0 3px 16px;border-left:2px solid #b3c2a6;border-radius:0;background:transparent}
.reader-editorial .reader-translation-label{font-size:.625rem;letter-spacing:.07em;margin-bottom:3px}
.reader-editorial .reader-translation-panel .reader-translation{font-size:.9375rem;line-height:1.7;color:#586650}
/* Negative vertical margins keep the 44px hit area from inflating prose lines. */
.reader-editorial .reader-sentence-audio{width:36px;min-width:36px;height:44px;padding:13px 9px;vertical-align:middle;position:relative;top:0;margin-block:-10px;margin-inline:2px 1px;border-radius:5px;color:#526b4c}
.reader-editorial .reader-sentence-audio:focus-visible{outline:2px solid #59794e;outline-offset:2px;color:#36513e}
.reader-editorial .reader-sentence-audio:hover{color:#36513e}
.reader-editorial .reader-sentence-audio[data-playing="true"]{color:#304d37}
.reader-editorial>.grammar-focus{grid-area:sidebar;min-width:0;position:sticky;top:var(--reader-sticky-top,24px);padding:26px 28px 28px;border:1px solid #e1e4d8;border-radius:7px;background:#eef0e7}
.reader-editorial>.grammar-focus.is-tall{position:static}
.reader-editorial>.grammar-focus h2{font-size:1.8125rem;line-height:1.2;margin:13px 0 16px}
.reader-editorial>.grammar-focus p{font-size:.9375rem;line-height:1.75;margin:12px 0;color:#52614d}
.reader-editorial>.grammar-focus .rich-text{font-size:.9375rem;line-height:1.75;margin:12px 0;color:#52614d}.reader-editorial>.grammar-focus .rich-text p{margin:0 0 .6em}
.reader-editorial>.grammar-focus .grammar-example{font-size:1.3125rem;line-height:1.5;color:var(--ink);padding-top:14px;margin-top:18px;border-top:1px solid #d5ddcf}
.reader-editorial>.reader-continue{grid-area:continue;display:flex;justify-content:flex-end;min-width:0;margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}
.reader-editorial>.reader-continue button{max-width:100%;min-height:48px;white-space:normal;text-align:center}
@media(pointer:coarse){.reader-editorial .reader-sentence-audio{width:44px;min-width:44px;height:44px;padding:13px}}
@media(max-width:1099px){
 main.reader-lesson{max-width:840px;padding-inline:32px}
 .reader-lesson .reader-editorial{grid-template-columns:minmax(0,1fr);grid-template-areas:"toolbar" "sidebar" "story" "continue"}
 .reader-editorial>.grammar-focus,.reader-editorial>.grammar-focus.is-tall{position:static;margin:0 0 28px;padding:20px 24px;border-width:0 0 0 2px;border-radius:0}
 .reader-editorial>.grammar-focus h2{font-size:1.5625rem;margin:8px 0 10px}
 .reader-editorial>.grammar-focus p{font-size:.875rem;line-height:1.65;margin:8px 0}
 .reader-editorial>.grammar-focus .rich-text{font-size:.875rem;line-height:1.65;margin:8px 0}
 .reader-editorial>.grammar-focus .grammar-example{font-size:1.25rem;margin-top:10px;padding-top:10px}
 .reader-editorial>.reader-prose{font-size:1.4375rem;line-height:1.65}
}
@media(max-width:530px){
 main.reader-lesson{padding-inline:20px}
 .reader-lesson .reader-heading,.reader-lesson .reader-heading.has-lesson-art{padding:26px 0 22px;text-align:left;flex-direction:row;gap:16px}
 .reader-lesson .reader-heading .lesson-illustration{width:70px}
 .reader-editorial>.reader-toolbar{gap:12px;margin-bottom:20px;padding-bottom:16px}
 .reader-editorial .reader-interaction-hint{font-size:.6875rem;flex-basis:100%}
 .reader-editorial>.grammar-focus{padding:17px 18px;margin-bottom:24px}
 .reader-editorial>.grammar-focus h2{font-size:1.5rem}
 .reader-editorial>.reader-prose{font-size:1.375rem;line-height:1.7}
 .reader-editorial .reader-sentence-audio{width:44px;min-width:44px;height:44px;padding:13px;top:0}
 .reader-editorial .reader-translation-panel .reader-translation{font-size:.875rem}
 .reader-editorial>.reader-continue{margin-top:24px;padding-top:20px}
}

.reader-editorial .reader-sentence{scroll-margin-top:calc(var(--reader-sticky-top,24px) + 16px)}

/* Optional contextual support stays in the prose column, below its source paragraph. */
.reader-context-note{margin:10px 0 0;border-left:2px solid var(--line);padding:0 0 0 12px;font:13px/1.65 var(--sans);color:#52614d}
.reader-context-note summary{cursor:pointer;min-height:44px;align-content:center;padding:8px 0}
.reader-context-note summary span{color:var(--ink)}
.reader-context-note summary::after{content:'+';display:inline-block;margin-left:8px;color:var(--muted)}
.reader-context-note[open] summary::after{content:'−'}
.reader-context-note summary:focus-visible{outline:2px solid #59794e;outline-offset:3px;border-radius:3px}
.reader-context-note p{font:inherit;max-width:64ch;margin:0 0 10px}

/* Optional Story artwork shares the reading-column width above playback controls. */
.reader-editorial .reader-toolbar>.reader-story-art{flex:0 0 100%;min-width:0;width:100%}
.reader-story-art .lesson-illustration{width:100%;border-radius:9px;overflow:hidden}

/* Story player for recorded Stories (author request 2026-11-22): jump anywhere, skip 15 s. */
.reader-audio-controls.story-player{flex:1 1 100%;display:flex;align-items:center;gap:18px;flex-wrap:nowrap;background:var(--white);border:1px solid var(--line);border-radius:12px;padding:14px 18px}
.reader-toolbar .story-player button{min-height:0;padding:0;border:0;background:transparent;color:var(--green);border-radius:50%}
.reader-toolbar .story-player .story-player-play{flex:0 0 56px;width:56px;height:56px;background:var(--green);color:#fff;display:grid;place-items:center}
.story-player-play svg{margin-left:2px}.story-player-play.is-playing svg{margin-left:0}
.story-player-play:hover{filter:brightness(1.08)}
.story-player-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.story-player-track{display:flex;align-items:center;gap:12px}
.story-player-time{font:500 .75rem/1 var(--sans);color:var(--muted);font-variant-numeric:tabular-nums;min-width:2.6em}
.story-player-time:last-child{text-align:right}
.story-player-wave{--progress:0%;position:relative;flex:1;min-width:0;height:44px;cursor:pointer;touch-action:none;border-radius:4px}
.story-player-wave:focus-visible{outline:2px solid #59794e;outline-offset:3px}
.story-player-bars{position:absolute;inset:0;display:flex;align-items:center;gap:.3%}
.story-player-bars i{flex:1;min-width:0;height:8%;border-radius:2px;background:#c9d2c4;transition:height .4s ease}
.story-player-bars.is-played{clip-path:inset(0 calc(100% - var(--progress)) 0 0)}
.story-player-bars.is-played i{background:var(--green)}
.story-player-wave.is-flat .story-player-bars i{height:8%}
.story-player-head{position:absolute;top:2px;bottom:2px;left:var(--progress);width:2px;margin-left:-1px;background:var(--green);border-radius:1px}
.story-player-wave.is-dragging .story-player-head{width:3px;margin-left:-1.5px}
.story-player-buttons{display:flex;align-items:center;gap:4px;flex:none}
.reader-toolbar .story-player .story-player-skip{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;color:var(--green)}
.reader-toolbar .story-player .story-player-skip:hover{background:#eef1ea}
@media(max-width:530px){
 /* Phone: the progress bar takes the full width; the buttons sit centred beneath it. */
 .reader-audio-controls.story-player{display:grid;grid-template-columns:1fr auto auto auto 1fr;grid-template-areas:"track track track track track" ". back play fwd .";align-items:center;gap:10px 14px;padding:14px 14px 12px}
 .story-player-main,.story-player-buttons{display:contents}
 .story-player-track{grid-area:track;gap:8px}
 .reader-toolbar .story-player .story-player-play{grid-area:play;width:52px;height:52px}
 .story-player-skip[data-seconds="-15"]{grid-area:back}.story-player-skip[data-seconds="15"]{grid-area:fwd}
}
@media(prefers-reduced-motion:reduce){.story-player-bars i{transition:none}}
/* Sentence speakers stay quiet until the sentence is pointed at; touch screens keep them as before (2026-11-28). */
@media(hover:hover) and (pointer:fine){
 .reader-sentence-audio{opacity:.3;transition:opacity .15s}
 .reader-unit:hover .reader-sentence-audio,.reader-sentence-audio:focus-visible,.reader-sentence-audio[data-playing="true"]{opacity:1}
}
@media(prefers-reduced-motion:reduce){.reader-sentence-audio{transition:none}}
/* Context notes in the box beside the Story (author request 2026-11-28). */
.reader-context-notes{margin-top:22px;padding-top:4px;border-top:1px solid #d5ddcf}
.reader-context-card{padding-top:16px}
.reader-context-card+.reader-context-card{margin-top:14px;border-top:1px solid #d5ddcf}
.reader-context-card .eyebrow{display:block;font:600 .6875rem/1.4 var(--sans);letter-spacing:.12em;color:#4f6a47}
.reader-context-card h3{font:400 1.3125rem/1.3 var(--serif);color:var(--ink);margin:6px 0 6px}
.reader-editorial .reader-context-card p{font-size:.875rem;line-height:1.7;margin:6px 0;color:#52614d}
.reader-context-aside .reader-context-card:first-child{padding-top:0}
.reader-unit.is-noted .reader-sentence{background:#e8eedd;border-radius:4px;box-shadow:0 0 0 3px #e8eedd}
