/* Shared HELDER economics interface: the same type, tiles and controls on every step. */
:root{
  --economy-accent:var(--brand-indigo);
  --economy-tint:var(--brand-soft);
  --economy-page:color-mix(in srgb,var(--brand-navy) 3%,var(--brand-white));
  --economy-radius:8px;
  --economy-gap:16px;
}
body.economy-start-page,body.helder-learning-shell,body.helder-practice,body.helder-exam{
  font-family:var(--helder-font);
  font-size:1rem;
  line-height:1.6;
  color:var(--brand-navy);
  background:var(--economy-page);
}
:is(.economy-start-page,.helder-learning-shell,.helder-practice,.helder-exam) :is(button,input,select,textarea){font-family:var(--helder-font)}
:is(.economy-start-page,.helder-learning-shell,.helder-practice,.helder-exam) :is(h1,h2,h3){font-family:var(--helder-font);font-weight:750;letter-spacing:-.025em;line-height:1.3}
.economy-start-page .course-heading h1,.helder-learning-shell #trainStart .page-intro h1,.helder-practice .unit-intro h1{
  font-size:clamp(1.875rem,3.2vw,2.5rem);font-weight:750;letter-spacing:-.025em;line-height:1.3;
}
.economy-start-page .course-eyebrow,.helder-learning-shell #trainStart .practice-eyebrow{font-size:.875rem;letter-spacing:.04em;font-weight:700;color:var(--economy-accent)}

/* White tiles and indigo icons use only the three HELDER brand colours. */
.economy-start-page .course-choices{gap:var(--economy-gap)}
.economy-start-page .course-choice,
#trainStart .practice-unit,
#helder-exams .h-choices>.h-panel{
  display:flex;flex-direction:column;align-items:stretch;min-width:0;
  padding:20px;border:1px solid var(--brand-border);border-radius:var(--economy-radius);
  background:var(--brand-white);color:var(--brand-navy);box-shadow:none;
}
.economy-start-page .course-choice:hover,#trainStart .practice-unit:focus-within,#helder-exams .h-choices>.h-panel:focus-within{border-color:var(--brand-indigo);box-shadow:none}
.economy-start-page .course-choice-icon,
#trainStart .practice-unit>.chapter-topic-icon,
#helder-exams .h-choices .h-icon{
  display:grid;place-items:center;flex:0 0 auto;width:40px;height:40px;margin:0 0 16px;
  border:0;border-radius:6px;background:var(--economy-tint);color:var(--economy-accent);
}
.economy-start-page .course-choice-icon svg,#trainStart .practice-unit>.chapter-topic-icon :is(svg,img),#helder-exams .h-choices .h-icon svg{width:23px;height:23px}
.economy-start-page .course-choice h2,#trainStart .practice-unit h3,#helder-exams .h-choices h2{font-size:1.125rem;font-weight:750;line-height:1.4;letter-spacing:-.02em;margin:0 0 8px}
.economy-start-page .course-choice p,#trainStart .practice-unit .practice-unit-goal,#helder-exams .h-choices .h-desc{font-size:1rem;line-height:1.55;color:var(--brand-muted);margin:0 0 16px;min-height:0}
.economy-start-page .course-choice p{flex:1}
.economy-start-page .course-choice-note{font-size:.875rem;line-height:1.5;color:var(--brand-muted);margin-bottom:16px}
.economy-start-page .course-choice-action{color:var(--brand-indigo);border-color:var(--brand-border);font-size:.9375rem;font-weight:750;min-height:44px;padding-top:14px}
.economy-start-page .course-choice-practice .course-choice-icon{background:var(--economy-tint);color:var(--economy-accent)}
.economy-start-page .course-choice-practice .course-choice-action{color:var(--brand-indigo);border-color:var(--brand-border)}
.economy-start-page .course-choice-practice p,.economy-start-page .course-choice-practice .course-choice-note{color:var(--brand-muted)}
.economy-start-page .course-resume{background:var(--economy-tint);border-color:var(--brand-border);border-radius:var(--economy-radius)}
.economy-start-page .course-resume .course-eyebrow{color:var(--economy-accent)}

/* Topic headings group individual tiles; no shared boxed rows or hidden units. */
#trainStart #trainChapterPicks{display:grid;grid-template-columns:minmax(0,1fr);gap:28px}
.helder-learning-shell #trainStart .practice-chapter,#trainStart .practice-chapter{border:0;border-radius:0;background:transparent;overflow:visible}
#trainStart .practice-chapter-heading{position:static;height:auto;min-height:0;display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:0 0 14px;border:0;background:transparent}
#trainStart .practice-chapter-heading>.chapter-topic-icon{display:none}
#trainStart .practice-chapter-heading>div{min-width:0;flex:1 1 230px}
#trainStart .practice-chapter-heading h2{font-size:1.125rem;margin:0 0 4px}
#trainStart .practice-chapter-heading p{font-size:.9375rem;line-height:1.6}
#trainStart .practice-chapter-count{display:block;max-width:none;text-align:left;font-size:.875rem;color:var(--brand-muted)}
#trainStart .practice-unit-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,280px),1fr));gap:var(--economy-gap);background:transparent}
#trainStart .practice-unit{margin:0;overflow:visible}
#trainStart .practice-unit-footer{margin-top:auto;padding-top:14px;border-top:1px solid var(--brand-border)}
#trainStart .practice-unit-progress{margin-top:0;gap:2px;align-items:flex-start;flex-direction:column;line-height:1.5}
#trainStart .practice-unit progress{height:4px;margin:10px 0 14px;color:var(--economy-accent)}
#trainStart .practice-unit-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px}
#trainStart .practice-unit-links{display:flex;flex-direction:row;justify-content:space-between;flex-wrap:wrap;gap:8px 16px}
#trainStart .practice-unit-links a{font-size:.875rem;line-height:1.6}
#trainStart .practice-unit .practice-primary{justify-content:space-between}
.helder-learning-shell #trainStart .practice-next,#trainStart .practice-extra{border-radius:var(--economy-radius);border-color:var(--brand-border)}
#trainStart .practice-next{background:var(--economy-tint);padding:20px;margin-bottom:28px;gap:16px}
#trainStart .chapter-topic-icon{background:var(--economy-tint);color:var(--economy-accent);border:0}
#trainStart .practice-next>.chapter-topic-icon{background:var(--brand-white)}

/* All learning controls use the same brand tokens, including the original exam pages. */
.helder-learning-shell #trainStart .practice-primary,#trainStart .practice-primary,.economy-start-page .course-resume a,
.helder-practice button.primary,.helder-practice .button.primary,
.helder-exam main button.primary,.helder-exam main .button.primary,
#helder-exams .h-action.primary{
  min-height:44px;padding:10px 14px;border:1px solid var(--brand-indigo);border-radius:6px;
  font-family:var(--helder-font);font-size:.9375rem;font-weight:750;line-height:1.5;
  background:var(--brand-indigo);color:var(--brand-white);box-shadow:none;white-space:normal;
}
#trainStart .practice-primary:hover,.economy-start-page .course-resume a:hover,
.helder-practice button.primary:hover,.helder-practice .button.primary:hover,#helder-exams .h-action.primary:hover{background:var(--brand-hover);border-color:var(--brand-hover)}
.helder-practice button,.helder-practice .button{border-radius:6px;line-height:1.5;font-weight:750}
.helder-learning-shell.helder-practice :is(.unit-source,.unit-work,.unit-intro),
.helder-practice :is(.unit-source,.unit-work,.unit-results,.unit-intro),
.helder-exam :is(.test-builder,.test-history){border-radius:var(--economy-radius);border-color:var(--brand-border);box-shadow:none}
.helder-practice .unit-source,.helder-practice .unit-goal,.helder-practice .extra-practice,.helder-practice .check-invite,.helder-practice .result-next{
  background:var(--economy-tint);border-color:var(--brand-border);
}
.helder-practice .unit-goal{border-left:4px solid var(--economy-accent)}
.helder-practice :is(.unit-source .eyebrow,.unit-goal strong,.unit-feedback h2,.guide-mark,.calculation-badge){color:var(--economy-accent)}
.helder-practice :is(.guide-mark,.calculation-badge){background:var(--economy-tint)}
.helder-practice .unit-options label:has(input:checked){background:var(--brand-soft);border-color:var(--brand-indigo)}
.helder-practice .unit-options input{accent-color:var(--brand-indigo)}
.helder-practice :is(.unit-source,.unit-work,.unit-guide,.unit-review,.test-settings) :is(p,li){font-size:1rem;line-height:1.65}
.helder-practice .unit-task{font-size:1.125rem;line-height:1.65}
.helder-practice :is(.source-facts span,.source-credit,caption,thead th,.small){font-size:.875rem;line-height:1.6}

#helder-exams{
  --h-bg:var(--economy-page);--h-panel:var(--brand-white);--h-ink:var(--brand-navy);--h-soft:var(--brand-muted);
  --h-line:var(--brand-border);--h-blue:var(--brand-indigo);--h-bluefill:var(--brand-indigo);--h-tint:var(--brand-soft);
  --h-teal:var(--economy-accent);--h-tealfill:var(--economy-tint);
  --h-warn:var(--brand-navy);--h-warnfill:var(--brand-soft);
  font:1rem/1.6 var(--helder-font);
}
#helder-exams :is(h1,h2,h3){font-family:var(--helder-font);font-weight:750;line-height:1.3;letter-spacing:-.025em}
#helder-exams h1{font-size:clamp(1.875rem,3.2vw,2.5rem)}
#helder-exams :is(.h-desc,.h-intro p,.h-copy,.h-case p){font-size:1rem;line-height:1.65}
#helder-exams :is(.h-meta,.h-small,.h-fine,.h-link){font-size:.875rem;line-height:1.6}
#helder-exams .h-choices{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--economy-gap)}
#helder-exams .h-choices .h-desc{flex:1}
#helder-exams .h-tile-footer{margin-top:auto;padding-top:14px;border-top:1px solid var(--brand-border)}
#helder-exams .h-tile-footer .h-meta{padding:0 0 14px;gap:8px 16px}
#helder-exams .h-tile-footer .h-fine{margin-top:10px}
#helder-exams .h-choices>.h-panel>.h-row{align-items:flex-start}
#helder-exams .h-panel{border-radius:var(--economy-radius)}
#helder-exams .h-choices .h-icon{background:var(--economy-tint);color:var(--economy-accent)}
#helder-exams .h-action{font-family:var(--helder-font);font-size:.9375rem;line-height:1.5;min-height:44px;border-radius:6px;font-weight:750}
#helder-exams .h-nav :is(a,button),.helder-learning-shell .hs-nav :is(a,button){font-family:var(--helder-font);font-size:.9375rem;font-weight:700;line-height:1.5}

@media(max-width:760px){
  .economy-start-page .course-choices,#trainStart .practice-unit-grid,#helder-exams .h-choices{grid-template-columns:minmax(0,1fr)}
  .economy-start-page .course-choice,#trainStart .practice-unit,#helder-exams .h-choices>.h-panel{padding:20px}
  .economy-start-page .course-choice-icon{margin-bottom:16px}
  .economy-start-page .course-choice h2{margin:0 0 10px;align-self:auto}
  .economy-start-page .course-choice p{margin-bottom:16px}
  #trainStart .practice-chapter-count{flex-basis:100%}
}
@media(max-width:400px){
  .economy-start-page .course-choice,#trainStart .practice-unit,#helder-exams .h-choices>.h-panel{padding:18px}
  #trainStart .practice-unit-links{flex-direction:column}
}

/* Use the available desktop width; keep each source and answer column readable. */
#helder-exams .h-shell{width:100%;max-width:none;margin:0}
#helder-exams main{width:100%;max-width:none;margin:0;padding:32px clamp(24px,2.5vw,48px)}
#helder-exams .h-chrome{padding-inline:clamp(24px,2.5vw,48px)}
#helder-exams .h-questionlayout{gap:24px;grid-template-columns:minmax(0,1fr) 176px}
#helder-exams .h-question-columns{display:grid;grid-template-columns:minmax(0,1fr);gap:24px;margin-top:24px}
#helder-exams :is(.h-material,.h-response){min-width:0}
#helder-exams .h-material>.h-case{margin-top:0}
#helder-exams .h-response>.h-copy:first-of-type{margin-top:12px}
#helder-exams .h-response-title{font-size:1rem;color:var(--brand-indigo);font-weight:750}
#helder-exams .h-response>.h-field:first-child{margin-top:0}
#helder-exams .h-aside{position:sticky;top:24px}
#helder-exams .h-source-image{max-width:100%}
.helder-learning-shell #app,.helder-learning-shell #trainStart{width:100%;max-width:none;margin:0}
.helder-learning-shell.helder-practice #keuzes-root{padding:32px clamp(24px,2.5vw,48px)}
.economy-start-page .economy-intro{max-width:none;padding-inline:clamp(24px,4vw,80px)}
.economy-start-page .course-heading-copy{max-width:65ch}

/* One compact navigation frame across topics, practice and official exams. */
.helder-learning-shell .hs-sidebar,#helder-exams .h-sidebar{padding:24px 18px;gap:24px}
#helder-exams .h-sidebar{position:sticky;top:0;height:100vh;height:100dvh;align-self:start;overflow-y:auto}
.helder-learning-shell .hs-nav,#helder-exams .h-nav{gap:4px}
.helder-learning-shell .hs-nav :is(a,button),#helder-exams .h-nav :is(a,button){min-height:44px;padding:10px;border-radius:6px}
#helder-exams .h-nav :is(a,button):hover{background:var(--brand-soft);color:var(--brand-indigo)}
.helder-learning-shell .hs-chrome,#helder-exams .h-chrome{min-height:64px;padding-block:16px}
.helder-learning-shell>.wrap{padding:28px clamp(24px,2.5vw,48px)}
.helder-learning-shell #trainStart .page-intro{margin-bottom:22px}
.economy-start-page .economy-intro{padding-top:36px}
.economy-start-page .course-heading{margin-bottom:24px}
.economy-start-page .course-level select,.helder-learning-shell #practice-search{border-radius:6px}
.economy-start-page .course-resume{padding:18px 20px}
#helder-exams .h-aside,#helder-exams .h-bottomline{border-radius:var(--economy-radius)}
@media(max-width:1000px){
  .helder-learning-shell .hs-sidebar,#helder-exams .h-sidebar{padding:24px 14px}
}
@media(max-width:760px){
  .helder-learning-shell .hs-sidebar,#helder-exams .h-sidebar{position:relative;top:auto;height:auto;padding:18px 20px;gap:14px;flex-direction:column;align-items:stretch;overflow:visible}
  .helder-learning-shell .hs-nav,#helder-exams .h-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:6px}
  .helder-learning-shell .hs-nav :is(a,button),#helder-exams .h-nav :is(a,button){justify-content:center;padding:10px 6px;font-size:.875rem;gap:6px}
  #helder-exams .h-nav .h-nav-icon{display:block;width:18px;height:18px}
  .helder-learning-shell>.wrap{padding:24px 20px}
}
@media(max-width:400px){
  .helder-learning-shell .hs-sidebar,#helder-exams .h-sidebar{padding:16px 12px}
  .helder-learning-shell .hs-nav :is(a,button),#helder-exams .h-nav :is(a,button){flex-direction:column;gap:4px}
  .helder-learning-shell>.wrap{padding:22px 14px}
}

/* Remaining functional colour cues use labels and the same brand palette. */
#trainStart .practice-state.complete{color:var(--brand-indigo)}
#trainStart progress{color:var(--brand-indigo)}
#trainStart progress::-webkit-progress-value{background:var(--brand-indigo)}
#trainStart progress::-moz-progress-bar{background:var(--brand-indigo)}
#account-bar,#legacy-progress-notice{background:var(--brand-soft);color:var(--brand-navy);border-color:var(--brand-border)}
#legacy-progress-notice button,#account-bar a{color:var(--brand-indigo);border-color:var(--brand-border)}
#legacy-progress-notice button:focus-visible{outline-color:var(--brand-indigo)}
.helder-learning-shell :is(.green,.orange,.red,.hintbox,.misconception){color:var(--brand-navy);background:var(--brand-soft);border-color:var(--brand-indigo)}
.helder-learning-shell :is(.feedback.good,.feedback.wrong){border-color:var(--brand-indigo)}
.helder-practice #answer-error{color:var(--brand-navy);font-weight:750}
.helder-practice :is(.unit-tip,.revision-note,.save-warning){color:var(--brand-navy);background:var(--brand-soft);border-color:var(--brand-indigo)}

@media(min-width:1440px){
  #helder-exams .h-question-columns{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,2vw,40px);align-items:start}
  #helder-exams .h-response{border-left:1px solid var(--brand-border);padding-left:clamp(24px,2vw,40px)}
}
@media(max-width:1000px){
  #helder-exams main,.helder-learning-shell.helder-practice #keuzes-root{padding:26px}
  #helder-exams .h-chrome{padding-inline:26px}
  #helder-exams .h-questionlayout{gap:16px;grid-template-columns:minmax(0,1fr)}
  #helder-exams .h-aside{position:static;order:-1}
}
@media(max-width:760px){
  #helder-exams main,.helder-learning-shell.helder-practice #keuzes-root{padding:24px 20px}
  #helder-exams .h-chrome{padding-inline:20px}
  #helder-exams .h-question-columns{gap:20px}
  .economy-start-page .economy-intro{padding-inline:20px}
}
@media(max-width:520px){
  #helder-exams main,.helder-learning-shell.helder-practice #keuzes-root{padding:22px 14px}
  #helder-exams .h-chrome{padding-inline:14px}
}

/* A compact entry to the first topic-based official exam mix. */
#trainStart .practice-exam-pilot{margin:0 0 28px;background:var(--brand-white);padding:20px;gap:16px}
#trainStart .practice-exam-pilot .practice-eyebrow{font-size:.8125rem;margin:0 0 4px;color:var(--brand-indigo)}
#trainStart .practice-exam-pilot h2{font-size:1.125rem;margin:0 0 6px}
#trainStart .practice-exam-pilot p:not(.practice-eyebrow){margin:0 0 6px}
#trainStart #exam-mix-pilot-status{font-size:.875rem;color:var(--brand-muted)}
#trainStart .practice-exam-pilot>.practice-primary{margin-left:auto;flex:0 0 auto;color:var(--brand-white);text-decoration:none}
.helder-learning-shell .exam-mix-result-link{margin-top:20px;padding:20px;border:1px solid var(--brand-border);border-radius:8px;background:var(--brand-white);box-shadow:none}
.helder-learning-shell .exam-mix-result-link h2{font-size:1.125rem;margin:0 0 8px}
.helder-learning-shell .exam-mix-result-link a{color:var(--brand-indigo);text-underline-offset:3px}
@media(max-width:760px){#trainStart .practice-exam-pilot>.practice-primary{margin-left:0;flex-basis:100%;justify-content:space-between}}

/* Full papers have one dedicated tile; short mixes live under Oefenen. */
#helder-exams .h-choices{grid-template-columns:minmax(0,1fr)}
#helder-exams .h-choices>.h-full-card{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(240px,1fr);gap:32px;align-items:center}
#helder-exams .h-full-card .h-tile-footer{margin:0}
#helder-exams .h-nav a[aria-current="page"]{background:var(--h-tint);color:var(--h-blue);font-weight:600}
@media(max-width:760px){#helder-exams .h-choices>.h-full-card{grid-template-columns:minmax(0,1fr);gap:8px}}

/* The same three choices and level control across all economy levels. */
.course-availability{margin:0 0 24px;padding:16px 20px;border:1px solid var(--brand-border);border-radius:8px;background:var(--brand-white);color:var(--brand-muted);font-size:1rem;line-height:1.6}
.course-availability strong{color:var(--brand-indigo);margin-right:8px}
.learning-level{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;max-width:100%;font:700 .875rem/1.5 var(--helder-font);color:var(--brand-muted)}
.learning-level select{min-height:44px;max-width:100%;padding:8px 32px 8px 12px;border:1px solid var(--brand-border);border-radius:6px;background:var(--brand-white);color:var(--brand-navy);font:700 1rem/1.5 var(--helder-font);cursor:pointer}
.learning-level select:focus-visible{outline:3px solid var(--brand-indigo);outline-offset:3px}
.level-switch-error{flex-basis:100%;max-width:38ch;font-size:.875rem;color:var(--brand-navy)}
.offer-empty>p{max-width:70ch;font-size:1rem;line-height:1.65}
.offer-empty>.mix-button{margin-top:12px}
@media(min-width:761px) and (max-width:1100px){.course-level-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){#helder-exams .h-chrome{flex-wrap:wrap;gap:12px}.learning-level{width:100%}.learning-level select{flex:1;min-width:0}}
.offer-preparation{margin-top:20px}
.offer-empty>.offer-pdf-note{margin:16px 0 0;font-size:.875rem;color:var(--brand-muted)}

/* Compact activity tiles retain the familiar icons and three brand colours. */
.economy-start-page .course-heading{margin-bottom:24px}
.economy-start-page .course-choice-note{min-height:0;margin-bottom:14px}
.economy-start-page .course-choice p{margin-bottom:12px}
.economy-start-page .course-choice-action{margin-top:auto}
@media(max-width:760px){
 .economy-start-page .course-choice{display:grid;grid-template-columns:40px minmax(0,1fr);gap:0 14px;padding:18px}
 .economy-start-page .course-choice-icon{grid-column:1;grid-row:1/3;margin:0;width:40px;height:40px}
 .economy-start-page .course-choice h2{grid-column:2;margin:0 0 5px;align-self:auto}
 .economy-start-page .course-choice p{grid-column:2;margin:0 0 10px;font-size:1rem}
 .economy-start-page .course-choice-note{grid-column:2;margin:0 0 12px}
 .economy-start-page .course-choice-action{grid-column:1/-1;margin:0;padding-top:10px;min-height:40px}
 .economy-start-page .course-choices{gap:12px}
}
