/* One page scroll; keep the question beside its source without nested scroll panes. */
.reader-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin:20px 0 0;padding:12px 0;font:1rem/1.5 var(--helder-font);color:var(--brand-muted)}
.reader-mode,.reader-zoom{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.reader-toolbar button{font:inherit;color:var(--brand-indigo);border:1px solid var(--brand-border);border-radius:8px;background:white;padding:8px 12px;min-height:44px;cursor:pointer}
.reader-toolbar button[hidden]{display:none}
.reader-toolbar button:disabled{opacity:.45;cursor:default}
.reader-toolbar button:focus-visible,.reader-material:focus-visible,.reader-response:focus-visible{outline:3px solid var(--brand-indigo);outline-offset:-3px}
.reader-zoom button{min-width:44px;font-size:1.25rem;padding:6px}
.reader-zoom-value{min-width:3.5em;text-align:center;font-variant-numeric:tabular-nums}
.exam-reading .reader-material{font-size:calc(1.125rem * var(--reader-zoom,1));line-height:1.7}
#helder-exams .reader-material :is(.h-copy,.h-case,table),.exam-reading .reader-material :is(.mix-table-source table,.mix-table-note){font-size:inherit;line-height:inherit}
.exam-reading .reader-material :is(.h-source,.mix-source){overflow-x:auto}
#helder-exams .reader-material :is(.h-source-image,.h-map),.exam-reading .reader-material .mix-source img{width:calc(100% * var(--reader-zoom,1));max-width:none;height:auto}
.exam-reading .reader-material :is(.h-source>a,.mix-source>a){display:block}
.exam-reading .reader-material :is(.h-source,.mix-source):first-child{margin-top:0}
/* Stack by default, including browser zoom and smaller screens. */
#helder-exams .h-question-columns,.exam-reading .mix-workspace{grid-template-columns:minmax(0,1fr)}
#helder-exams .h-response{border-left:0;padding-left:0}
.exam-reading .mix-workspace>.mix-material{border-right:0;border-bottom:1px solid var(--brand-border)}
@media(min-width:1024px){
 .exam-reading-split #helder-exams .h-shell{max-width:none;grid-template-columns:minmax(0,1fr)}
 .exam-reading-split #helder-exams .h-sidebar,.exam-reading-split .hs-sidebar{display:none}
 .exam-reading-split #helder-exams main{max-width:none;padding:20px 28px}
 .exam-reading-split #helder-exams .h-chrome{padding:12px 28px;min-height:0}
 .exam-reading-split.helder-learning-shell .hs-chrome{margin-left:0;padding:12px 28px;min-height:0}
 .exam-reading-split.helder-learning-shell.helder-practice #keuzes-root{margin-left:0;padding:20px 28px}
 .exam-reading-split.helder-learning-shell>:is(#account-bar,#legacy-progress-notice,.helder-rights,#keuzes-warning){margin-left:0}
 .exam-reading-split #helder-exams .h-questionlayout{display:flex;flex-direction:column;gap:12px}
 .exam-reading-split #helder-exams .h-question{width:100%;padding:20px}
 .exam-reading-split #helder-exams .h-aside{position:static;order:-1;display:flex;align-items:start;justify-content:space-between;gap:20px;width:100%;padding:10px 16px}
 .exam-reading-split #helder-exams .h-aside>.h-action{width:auto!important;margin:0!important;flex-shrink:0}
 .exam-reading-split #helder-exams .h-palette{width:auto;flex:1}
 .exam-reading-split #helder-exams .h-numbernav{grid-template-columns:repeat(auto-fill,minmax(40px,1fr))}
 .exam-reading-split #helder-exams .h-aside .h-fine{display:none}
 .exam-reading-split #helder-exams .h-examtop{margin-bottom:12px}
 .exam-reading-split #helder-exams .h-examtop h1{font-size:1.4rem;margin:8px 0 0}
 .exam-reading-split #helder-exams .h-question-columns,.exam-reading-split .mix-workspace{grid-template-columns:minmax(0,3fr) minmax(360px,2fr);align-items:start;gap:0;margin-top:0}
 .exam-reading-split :is(.reader-material,.reader-response){height:auto;overflow:visible;padding:24px}
 .exam-reading-split .reader-response{position:sticky;top:var(--reader-question-top,16px);align-self:start}
 .exam-reading-split #helder-exams .reader-material{padding-left:0}
 .exam-reading-split #helder-exams .reader-response{padding-right:0;border-left:1px solid var(--brand-border);padding-left:24px}
 .exam-reading-split .mix-workspace>.mix-material{border-bottom:0;border-right:1px solid var(--brand-border)}
 .exam-reading-split .mix-workspace>.mix-card{padding:24px}
 .exam-reading-split #helder-exams .h-response>.h-response-title{margin-top:0}
}
@media(max-width:480px){.reader-mode-label{display:none}.reader-toolbar{justify-content:flex-end}}
@media print{.reader-toolbar{display:none}.exam-reading-split :is(.reader-material,.reader-response){position:static;height:auto;overflow:visible}}
/* The calculation trainer uses the same reader and zoom controls as full exams. */
.exam-reading .reader-material #calc-original-source{max-width:100%;overflow-x:auto}
.exam-reading .reader-material #calc-original-source>a{display:block}
.exam-reading .reader-material #calc-original-source img{width:calc(100% * var(--reader-zoom,1));max-width:none;height:auto}
.exam-reading .reader-material :is(.calc-source-copy,.calc-table){font-size:calc(1.125rem * var(--reader-zoom,1));line-height:1.7}
.exam-reading #helder-exams .h-response>.h-copy{font-size:1.125rem;line-height:1.7}
