/* Shared visual language for the public pages and the learning environment. */
:root{
 --ui-control-radius:12px;
 --ui-card-radius:18px;
 --ui-surface-shadow:0 3px 14px rgb(20 43 75 / 4%);
 --ui-page:#f5f7fb;
}
body :is(.cta,.subject-link,.course-choice-action,.course-resume a,.mix-button,.mix-top>a,.mix-question-picker>summary,.reader-toolbar button,.hc-trigger),
#helder-exams :is(.h-action,.h-link,.h-flag,.h-palette>summary){
 box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;
 min-height:46px;max-width:100%;padding:11px 18px;border:1px solid var(--brand-border);
 border-radius:var(--ui-control-radius);background:var(--brand-white);color:var(--brand-navy);
 font:750 .9375rem/1.5 var(--helder-font);text-align:center;text-decoration:none;white-space:normal;
 box-shadow:0 1px 2px rgb(20 43 75 / 3%);cursor:pointer;
 transition:background .16s ease,border-color .16s ease,box-shadow .16s ease;
}
body :is(.cta,.subject-link:not(.subject-link-secondary),.course-resume a,.mix-button.primary),
#helder-exams .h-action.primary{
 border-color:var(--brand-indigo);background:var(--brand-indigo);color:var(--brand-white);
 box-shadow:0 3px 9px rgb(79 70 229 / 14%);
}
body :is(.cta,.subject-link:not(.subject-link-secondary),.course-resume a,.mix-button.primary):hover,
#helder-exams .h-action.primary:hover{background:var(--brand-hover);border-color:var(--brand-hover);color:var(--brand-white)}
body :is(.mix-button:not(.primary),.mix-top>a,.mix-question-picker>summary,.reader-toolbar button,.hc-trigger):hover,
#helder-exams :is(.h-action:not(.primary),.h-link,.h-flag,.h-palette>summary):hover{
 background:var(--brand-soft);border-color:color-mix(in srgb,var(--brand-indigo) 35%,white);color:var(--brand-indigo);
}
body :is(.mix-button,.reader-toolbar button):disabled,#helder-exams .h-action:disabled{
 opacity:.45;cursor:default;box-shadow:none;
}
body :is(.cta,.subject-card,.subject-link,.course-choice,.course-resume a,.mix-button,.mix-top>a,.mix-question-picker>summary,.reader-toolbar button,.hc-trigger):focus-visible,
#helder-exams :is(.h-action,.h-link,.h-flag,.h-palette>summary):focus-visible{
 outline:2px solid var(--brand-indigo);outline-offset:4px;
}
body .hc-trigger{background:var(--brand-navy);border-color:var(--brand-navy);color:white;box-shadow:0 4px 16px rgb(20 43 75 / 12%)}
body .reader-zoom button{width:46px;min-width:46px;padding:8px;font-size:1.125rem}
body .reader-toolbar button[hidden]{display:none}

/* A consistent, compact choice card on the homepage and every level. */
body .subject-card,.economy-start-page .course-choice,.exam-mix-page .practice-topic,
.exam-mix-page .mix-card,#helder-exams .h-panel{
 border:1px solid var(--brand-border);border-radius:var(--ui-card-radius);
 background:var(--brand-white);box-shadow:var(--ui-surface-shadow);
}
body a.subject-card:hover,.economy-start-page .course-choice:hover,.exam-mix-page .practice-topic:focus-within{
 border-color:color-mix(in srgb,var(--brand-indigo) 45%,white);box-shadow:0 5px 18px rgb(20 43 75 / 7%);
}
body .subject-card-upcoming,body .subject-card-upcoming:hover{background:#f7f8fc;box-shadow:none;border-color:var(--brand-border)}
body .subject-card-upcoming .subject-status{background:var(--brand-white)}
.economy-start-page .course-choice-action{
 align-self:flex-start;justify-content:center;width:fit-content;max-width:100%;
 min-height:46px;padding:11px 18px;border:1px solid var(--brand-border);border-radius:var(--ui-control-radius);
}
.economy-start-page .course-choice:hover .course-choice-action{background:var(--brand-soft);border-color:color-mix(in srgb,var(--brand-indigo) 35%,white)}
.economy-start-page .course-choice-icon{width:44px;height:44px;border-radius:12px}
.exam-mix-page .practice-topic{gap:20px;padding:26px}
.exam-mix-page .practice-topic h2{font-size:1.25rem;line-height:1.35;margin-bottom:10px}
.exam-mix-page .practice-topic-count{color:var(--brand-navy);font-weight:650}
.exam-mix-page .practice-resume,.economy-start-page .course-resume{
 border-radius:var(--ui-card-radius);border-color:color-mix(in srgb,var(--brand-indigo) 18%,white);background:var(--brand-soft);
}

/* Calm chrome; links are recognisable through colour, hover and keyboard focus. */
body.helder-learning-shell,#helder-exams{background:var(--ui-page);--h-bg:var(--ui-page)}
.helder-learning-shell .hs-chrome,#helder-exams .h-chrome{border-bottom:1px solid var(--brand-border);background:white}
.helder-learning-shell .hs-breadcrumb{gap:10px;font-size:.9375rem}
.helder-learning-shell .hs-breadcrumb a,#helder-exams .h-chrome a{font-weight:700;text-decoration:none;color:var(--brand-indigo)}
.helder-learning-shell .hs-breadcrumb a:hover,#helder-exams .h-chrome a:hover{text-decoration:underline;text-underline-offset:4px}
.helder-learning-shell .hs-breadcrumb [aria-current]{font-weight:650;color:var(--brand-navy)}
.helder-learning-shell .hs-nav :is(a,button),#helder-exams .h-nav :is(a,button){border-radius:var(--ui-control-radius)}
.helder-learning-shell .hs-nav [aria-current],#helder-exams .h-nav [aria-current]{box-shadow:inset 3px 0 var(--brand-indigo)}
.learning-level select{min-height:46px;border-radius:var(--ui-control-radius);padding:9px 34px 9px 14px}

/* The two reading panels share one page scroll and keep the existing sticky answer. */
.exam-mix-page .mix-question-top{margin-bottom:20px}
.exam-mix-page .mix-question-heading{margin-bottom:12px;gap:14px 24px}
.exam-mix-page .mix-question-heading h1{font-size:clamp(1.6rem,2.4vw,2rem);letter-spacing:-.025em}
.exam-mix-page .mix-question-heading .mix-progress{font-size:.875rem;gap:8px}
.exam-mix-page .mix-question-heading progress{height:7px;width:176px;border-radius:10px}
.exam-mix-page .mix-question-picker>summary,#helder-exams .h-palette>summary{list-style:none}
.exam-mix-page .mix-question-picker>summary::marker,#helder-exams .h-palette>summary::marker{content:""}
.exam-mix-page .mix-question-picker>summary::-webkit-details-marker,#helder-exams .h-palette>summary::-webkit-details-marker{display:none}
.exam-mix-page .mix-question-picker[open]>summary,#helder-exams .h-palette[open]>summary{background:var(--brand-soft);border-color:var(--brand-indigo);color:var(--brand-indigo)}
.exam-mix-page .mix-question-picker>.mix-number-nav{border-radius:var(--ui-card-radius);box-shadow:0 8px 30px rgb(20 43 75 / 12%)}
.exam-reading .reader-toolbar{margin:8px 0 0;padding:10px 0 14px;font-size:.9375rem;gap:10px 18px}
.exam-reading .mix-workspace{border:0;border-radius:0;background:transparent;gap:20px}
.exam-mix-page .mix-workspace>.mix-card{
 padding:26px;border:1px solid var(--brand-border);border-radius:var(--ui-card-radius);background:white;box-shadow:var(--ui-surface-shadow);
}
.exam-mix-page .mix-workspace>.mix-material>h2{color:var(--brand-indigo);margin-bottom:20px}
#keuzes-root .mix-goal-inline{border:0;border-radius:12px;padding:13px 16px;margin:0 0 22px;background:var(--brand-soft);color:var(--brand-navy);font-size:.9375rem}
.exam-mix-page :is(textarea,select),#helder-exams :is(.h-field textarea,.h-field select){border-radius:var(--ui-control-radius);border-color:color-mix(in srgb,var(--brand-navy) 20%,white)}
.exam-mix-page :is(textarea,select):focus-visible,#helder-exams :is(.h-field textarea,.h-field select):focus-visible{outline:2px solid var(--brand-indigo);outline-offset:3px}
.exam-mix-page .mix-options label,#helder-exams .h-option{border-radius:var(--ui-control-radius)}
.exam-mix-page .mix-bottom-actions,#helder-exams .h-examnav{padding-top:20px;border-top:1px solid var(--brand-border);gap:12px}
.exam-mix-page .mix-model,.exam-mix-page .mix-explanation,#helder-exams .h-feedback{border-radius:var(--ui-control-radius)}
.exam-mix-page .route-number{background:var(--brand-soft);color:var(--brand-indigo)}
.exam-mix-page :is(.route-overview,.route-progress)>progress{accent-color:var(--brand-indigo)}
@media(min-width:1024px){
 .exam-reading-split .mix-workspace{gap:24px;grid-template-columns:minmax(0,3fr) minmax(360px,2fr)}
 .exam-reading-split #helder-exams .h-question{border-radius:var(--ui-card-radius);padding:24px}
 .exam-reading-split #helder-exams .h-question-columns{column-gap:24px}
}
@media(max-width:760px){
 .exam-mix-page .practice-topic,.exam-mix-page .mix-workspace>.mix-card{padding:20px}
 .exam-reading .mix-workspace{gap:16px}
 .exam-mix-page .mix-question-heading .mix-progress{flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px 12px}
 .exam-mix-page .mix-question-heading progress{width:120px}
 .economy-start-page .course-choice-action{margin-top:6px;padding:10px 16px;min-height:46px}
}
@media(max-width:400px){
 body :is(.mix-top>a,.mix-question-picker>summary){padding:10px 12px;font-size:.875rem}
 .exam-mix-page .mix-workspace>.mix-card{padding:18px}
 .exam-mix-page .mix-question-top{gap:8px}
}
@media(prefers-reduced-motion:reduce){
 body :is(.cta,.subject-link,.course-choice-action,.course-resume a,.mix-button,.mix-top>a,.mix-question-picker>summary,.reader-toolbar button,.hc-trigger),#helder-exams :is(.h-action,.h-link,.h-flag,.h-palette>summary){transition:none}
}

/* A visible way home, including the wide reading layout without its sidebar. */
.helder-learning-shell .hs-chrome,#helder-exams .h-chrome{
 background:var(--brand-navy);color:white;border-bottom:0;min-height:78px;
 padding-block:16px;gap:16px 24px;
}
.learning-header-start{display:flex;align-items:center;flex-wrap:wrap;gap:16px 24px;min-width:0}
.helder-learning-shell .hs-chrome .learning-home,#helder-exams .h-chrome .learning-home{
 display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;
 border:1px solid rgb(255 255 255 / 25%);border-radius:var(--ui-control-radius);
 background:rgb(255 255 255 / 10%);color:white;text-decoration:none;
 font:750 .9375rem/1.5 var(--helder-font);white-space:nowrap;
}
.helder-learning-shell .hs-chrome .learning-home:hover,#helder-exams .h-chrome .learning-home:hover{background:rgb(255 255 255 / 20%);border-color:rgb(255 255 255 / 50%)}
.helder-learning-shell .hs-chrome .hs-breadcrumb,#helder-exams .h-chrome .h-breadcrumb{font-size:.9375rem;gap:10px;color:rgb(255 255 255 / 75%)}
.helder-learning-shell .hs-chrome .hs-breadcrumb a,#helder-exams .h-chrome .h-breadcrumb a{color:white;text-decoration:none;font-weight:700}
.helder-learning-shell .hs-chrome .hs-breadcrumb [aria-current],#helder-exams .h-chrome .h-breadcrumb [aria-current]{color:rgb(255 255 255 / 85%);font-weight:600}
.helder-learning-shell .hs-chrome .learning-level,#helder-exams .h-chrome .learning-level{color:rgb(255 255 255 / 80%);flex-wrap:nowrap}
.helder-learning-shell .hs-chrome .learning-level select,#helder-exams .h-chrome .learning-level select{background:white;color:var(--brand-navy);border-color:white}
.helder-learning-shell .hs-chrome :is(a,select):focus-visible,#helder-exams .h-chrome :is(a,select):focus-visible{outline:2px solid white;outline-offset:4px}
@media(max-width:600px){
 .learning-header-start{gap:12px 18px}
 .helder-learning-shell .hs-chrome,#helder-exams .h-chrome{flex-wrap:wrap;gap:14px}
 .helder-learning-shell .hs-chrome .learning-level,#helder-exams .h-chrome .learning-level{width:100%;justify-content:space-between}
 .helder-learning-shell .hs-chrome .learning-level select,#helder-exams .h-chrome .learning-level select{flex:1;max-width:250px}
}

/* Both menus start below the full-width header, in normal page flow. */
.helder-learning-shell .hs-chrome{margin-left:0;flex-wrap:wrap}
.helder-learning-shell>#account-bar{margin-left:0}
#helder-exams .h-shell{min-height:calc(100vh - 140px)}
#helder-exams .h-sidebar{position:static;height:auto;align-self:stretch;overflow:visible}
.helder-learning-shell .hs-layout>.wrap{padding:28px clamp(24px,2.5vw,48px);min-width:0}
@media(max-width:760px){
 .helder-learning-shell .hs-layout>.wrap{padding:24px 20px}
 #helder-exams .h-sidebar-foot{display:none}
}
