@font-face {
  font-family:"Klar Plan Display";
  src:url("/fonts/nunito-extra-bold.ttf") format("truetype");
  font-weight:800;
  font-display:swap;
}
/* The path retains every lesson when the mobile board previews the current four. */
.s2-mobile-path { display:none; }
.s2-plan .s2-calendar-choice summary { color:#18553d; cursor:pointer; }

@media(max-width:600px) {
  #app .s2-frame { position:relative; }
  #app .s2-frame .s2-brand-row { min-height:52px; padding:10px 18px; box-sizing:border-box; }
  body #app .s2-frame .s2-brand-row>.brand { font-size:32px!important; }
  #app .s2-frame .s2-page-body { padding-inline:clamp(14px,4.6vw,24px); }
  #app .s2-frame[data-setup-step]:not([data-setup-step="3"]) .s2-brand-row :is(.s2-identity,.s2-account-holder) { display:none; }
  #app .s2-frame:is([data-setup-step="0"],[data-setup-step="2"]) .eb-count { position:absolute; right:5%; top:18px; }
  #app .s2-frame[data-setup-step="1"] .s2-frame-footer { position:absolute; right:4%; top:17px; margin:0; }
  #app .s2-frame[data-setup-step="1"] .s2-frame-footer a { font-size:14px; }
  #app .s2-frame .s2-plan .s2-title { margin:24px 0 16px; }
  body #app .s2-frame .s2-plan .s2-title h1 { font:800 clamp(33px,9.8vw,46px)/1.02 "Klar Plan Display",system-ui,sans-serif!important; text-wrap:initial; }
  #app .s2-frame .s2-plan .s2-title p { font-size:18px; line-height:1.3; margin:.45em 0 0; }
  #app .s2-frame .s2-plan .s2-dots { margin-block:8px 16px; }
  #app .s2-frame .s2-plan .s2-dots i { width:21px; height:21px; }
  #app .s2-frame .s2-plan[data-step="0"] .s2-dots i { width:14px; height:14px; font-size:0; }
  #app .s2-frame .s2-plan .s2-title>img { width:26%; }
  #app .s2-plan[data-step="0"] .eb-intro li { min-height:66px; gap:16px; font-size:21px; }
  #app .s2-plan[data-step="0"] .eb-intro li img { width:40px; height:38px; }
  #app .s2-plan[data-step="0"] .eb-intro picture { width:87%; max-width:322px; }
  #app .s2-frame .s2-plan:is([data-step="2"],[data-step="7"]) .eb-options { grid-template-columns:minmax(0,1fr); }
  #app .s2-plan[data-step="2"] .s2-title>img { display:none; }
  #app .s2-frame .s2-plan[data-step="3"] .s2-title { display:block; }
  #app .s2-frame .s2-plan[data-step="3"] .s2-title>img { display:block; width:43%; max-height:88px; margin:8px auto 0; }
  #app .s2-frame .s2-plan[data-step="3"] .eb-options { grid-template-columns:minmax(0,1fr); }
  #app .s2-frame .s2-plan .eb-options button b,#app .s2-frame .s2-plan .s2-switch b { font-size:19px; }
  #app .s2-frame .s2-plan .eb-options button small,#app .s2-frame .s2-plan .s2-switch small { font-size:16px; line-height:1.22; }
  #app .s2-plan[data-step="1"] .eb-options button { min-height:83px; padding:8px 32px 8px 13px; }
  #app .s2-plan[data-step="1"] .s2-option-art { width:55px; height:55px; }
  #app .s2-plan:is([data-step="2"],[data-step="3"]) .eb-options button { min-height:48px; }
  #app .s2-plan:is([data-step="2"],[data-step="3"]) img.s2-option-art { width:42px; height:33px; }
  #app .s2-frame .s2-plan[data-step="4"] .eb-options button { min-height:72px; padding:10px 15px; }
  #app .s2-plan[data-step="5"] .eb-options { gap:12px 8px; margin:23px 0; }
  body #app .s2-frame .s2-plan[data-step="5"] .eb-options button {
    display:flex; flex:0 0 calc(25% - 7px); min-height:48px; border-width:2px; justify-content:center;
  }
  #app .s2-frame .s2-plan[data-step="5"] .eb-options button b { font:800 20px/1.15 "Klar Plan Display",system-ui; }
  #app .s2-plan[data-step="6"] :is(.s2-switch,.s2-reminder-row) { min-height:65px; }
  #app .s2-plan .s2-calendar-choice { margin:.5em 0; font-size:14px; }
  #app .s2-plan .s2-tip { font-size:16px; line-height:1.28; min-height:48px; }
  #app .s2-frame .s2-plan .eb-summary>div { min-height:46px; gap:5px; font-size:15px; }
  #app .s2-plan .eb-summary dt img { width:22px; height:22px; }
  #app .s2-plan[data-step="8"] .s2-title>img { width:21%; }
  #app .s2-plan :is(.eb-actions button,#ebLater) { font-size:18px; min-height:49px; }
  #app .s2-plan .s2-quick { font-size:14px; }
  body #app .s2-frame .s2-nav a { font-size:14px; min-height:54px; }
  #app .s2-frame .s2-nav svg { width:23px; height:23px; }
  body #app .s2-frame [data-s2-screen] :is(.s2-board-hero,.s2-plan-title,.s2-path-head,.s2-board-heading,.s2-state-hero) h1 {
    font:800 clamp(32px,8.8vw,42px)/1.04 "Klar Plan Display",system-ui,sans-serif!important; letter-spacing:-.04em;
  }
  #app .s2-frame [data-s2-screen] :is(.s2-board-hero,.s2-path-head,.s2-board-heading,.s2-state-hero) p { font-size:17px; line-height:1.28; }
  #app .s2-frame :is([data-s2-screen="10"],[data-s2-screen="11"],[data-s2-screen="12"],[data-s2-screen="14"]) { gap:18px; }
  #app .s2-frame .s2-next-lesson { padding:17px; grid-template-columns:minmax(0,1fr) 25%; }
  #app .s2-frame .s2-next-lesson h2 { font-size:clamp(24px,6.8vw,34px)!important; }
  #app .s2-frame .s2-next-lesson :is(p,b),#app .s2-frame .s2-start-checklist li { font-size:17px; }
  #app .s2-frame .s2-next-lesson>.primary,#app .s2-frame .s2-continue-plan { font-size:18px; min-height:48px; }
  #app .s2-start-checklist li { min-height:49px; box-sizing:border-box; }
  #app .s2-frame .s2-home-links :is(a,button) { min-height:65px; font-size:18px; }
  #app .s2-frame .s2-home-links img { width:56px; }
  #app .s2-frame .s2-plan-tasks button { min-height:90px; font-size:17px; padding:12px; }
  #app .s2-frame .s2-plan-tasks img { width:45px; height:46px; }
  #app .s2-frame .s2-plan-tasks { gap:13px; }
  #app .s2-frame .s2-unit-wrap:has(.s2-mobile-path)>.s2-timeline { display:none; }
  #app .s2-mobile-path { display:block; }
  #app .s2-mobile-path>details { margin:10px 0; font-size:15px; }
  #app .s2-frame .s2-course-preview button { min-height:48px; font-size:17px; }
  #app .s2-frame [data-s2-screen="14"] .s2-board-hero img { width:31%; }
  #app .s2-frame .s2-practise-strip li { font-size:14px; }
  #app .s2-frame .s2-chart-head { flex-wrap:wrap; }
  #app .s2-frame .s2-chart-head h2 { font-size:20px; white-space:nowrap; }
  #app .s2-frame .s2-chart-plot { --s2-plot-height:clamp(6rem,28vw,8rem); }
  #app .s2-frame .s2-week-days { margin:25px 0; }
  #app .s2-frame .s2-day-mark { width:100%; max-width:40px; min-height:40px; font-size:26px; }
  #app .s2-frame .s2-week-goal { display:grid; grid-template-columns:1fr auto; align-items:center; }
  #app .s2-frame .s2-week-goal .s2-goal-days { grid-area:1 / 2 / span 2; width:auto; gap:7px; }
  #app .s2-frame .s2-week-goal p:last-child { grid-column:1/-1; }
  #app .s2-frame .s2-goal-days>span { width:clamp(21px,6.4vw,28px); height:clamp(21px,6.4vw,28px); }
  #app .s2-frame .s2-saved-list>li { min-height:58px; box-sizing:border-box; font-size:17px; }
  #app .s2-frame .s2-notices .cm-notification-row { padding:12px; font-size:16px; }
  #app .s2-frame .s2-notices .cm-notification-row h3 { font-size:18px; line-height:1.2; }
  #app .s2-frame .s2-home-state .s2-state-hero { gap:8px; }
  #app .s2-frame .s2-home-state .s2-state-hero>img { width:53%; max-width:190px; }
  #app .s2-frame .s2-offline-strip { min-height:50px; margin-bottom:16px; }
  #app .s2-frame .s2-home-state .s2-state-actions { gap:8px; margin:10px 0 18px; }
  #app .s2-frame[data-setup-step="0"] .eb-intro picture img { width:100%; max-width:none; }
  #app .s2-frame[data-setup-step="0"] .eb-intro ul { gap:10px; }
  #app .s2-frame[data-setup-step="0"] .eb-intro { gap:16px; }
  #app .s2-frame[data-setup-step="1"] .s2-page-body { padding-top:0; }
  #app .s2-frame[data-setup-step="1"] .s2-title { margin-top:12px; }
  #app .s2-frame [data-s2-screen] :is(.s2-next-lesson h2,.s2-plan-tasks b,.s2-path-title,.s2-week-goal h2,.s2-course-preview button.current,.s2-week-heading h2) {
    font-family:"Klar Plan Display",system-ui,sans-serif; font-weight:800;
  }
  #app .s2-frame .s2-plan-tasks b,#app .s2-frame .s2-path-title { font-size:20px; }
  #app .s2-frame .s2-plan-tasks small,#app .s2-frame .s2-plan-tasks em,#app .s2-frame .s2-plan-tasks strong { font-size:16px; }
  #app .s2-frame .s2-timeline p,#app .s2-frame .s2-course-preview button,#app .s2-frame .s2-level-choice summary { font-size:16px; }
  #app .s2-frame .s2-unit-progress>div,#app .s2-frame .s2-plan-meter p,#app .s2-frame .s2-course-progress p { font-size:17px; }
  #app .s2-frame .s2-practise-strip li { font-size:16px; }
  #app .s2-frame .s2-progress .s2-stats dt span,#app .s2-frame .s2-progress .s2-tabs button { font-size:17px; }
  #app .s2-frame .s2-week-goal h2,#app .s2-frame .s2-week-heading h2 { font-size:21px; }
  #app .s2-frame .s2-week-goal p,#app .s2-frame .s2-week-days li { font-size:16px; }
  #app .s2-frame .s2-saved-list .simple-saved-word b { font-size:20px; }
  #app .s2-frame .s2-saved-list .simple-saved-word span { font-size:17px; }
}

@media (max-width: 40rem) {
  #app .s2-updates .cm-notification-row:is([data-kind="welcome"],[data-kind="assignment"],[data-kind="reminder"]) > span:first-child {
    background-position: center; background-size: contain; background-repeat: no-repeat;
  }
  #app .s2-updates .cm-notification-row[data-kind="welcome"] > span:first-child { background-image: url("/assets/set-two/notice-welcome.webp"); }
  #app .s2-updates .cm-notification-row[data-kind="assignment"] > span:first-child { background-image: url("/assets/set-two/notice-assignment.webp"); }
  #app .s2-updates .cm-notification-row[data-kind="reminder"] > span:first-child { background-image: url("/assets/set-two/notice-reminder.webp"); }
  #app .s2-updates .cm-notification-row:is([data-kind="welcome"],[data-kind="assignment"],[data-kind="reminder"]) > span:first-child > svg { visibility: hidden; }
}

/* Board-scale layout follows the available width and height. */

@media (min-width: 601px) {
  html:has(#app > .s2-frame) { font-size:clamp(100%,min(2.22vw,2.65svh),190%); }
  body #app .s2-frame { grid-template-columns:19% minmax(0,1fr); }
  .s2-frame .s2-page-body { padding:1.3rem 1.5rem; }
  body #app .s2-frame .s2-plan .s2-title h1,
  body #app .s2-frame :is(.s2-board-hero,.s2-path-head,.s2-board-heading,.s2-plan-title) h1 { font-size:clamp(1.9rem,4.6vw,3.2rem)!important; }
  #app .s2-frame .s2-plan .s2-title p { font-size:1.02rem; }
  #app .s2-frame .s2-plan .eb-intro li { min-height:3.2rem; font-size:1.05rem; }
  #app .s2-frame .s2-plan .eb-intro li img { width:2.2rem; height:2.2rem; }
  #app .s2-frame .s2-plan .eb-options button { padding:.65rem; }
  #app .s2-frame .s2-plan .eb-options button b, #app .s2-frame .s2-switch b { font-size:1.04rem; }
  #app .s2-frame .s2-plan .eb-options button small, #app .s2-frame .s2-switch small { font-size:.92rem; }
  #app .s2-frame .s2-plan .s2-tip, #app .s2-frame .s2-plan .eb-summary>div { font-size:.94rem; padding:.5rem .65rem; }
  #app .s2-frame .s2-plan img.s2-option-art { width:2.9rem; height:2.55rem; }
  #app .s2-frame .s2-plan :is(.eb-actions button,#ebLater) { min-height:max(44px,2.7rem); font-size:1rem; }
  #app .s2-frame .s2-plan .s2-dots i { width:1.25rem; height:1.25rem; }
  #app .s2-frame .s2-plan[data-step="3"] .eb-options button { min-height:4.3rem; }
}
@media (min-width:601px) and (max-width:1050px) {
  html:has(#app > .s2-frame) { font-size:clamp(100%,min(4.2vw,2.9svh),205%); }
  body #app .s2-frame { grid-template-columns:15% minmax(0,1fr); }
  .s2-frame .s2-page-body { padding:.95rem; }
  body #app .s2-frame .s2-plan .s2-title h1 { font-size:clamp(1.9rem,7.3vw,2.8rem)!important; }
  body #app .s2-frame .s2-plan .s2-title h1 { font-family:"Klar Plan Display",system-ui,sans-serif !important; font-weight:800 !important; }
  #app .s2-frame .s2-plan { gap:.65rem; }
  #app .s2-frame .s2-plan .eb-options button { min-height:2.85rem; }
  #app .s2-frame .s2-plan .eb-actions { margin-block-start:.65rem; }
  #app .s2-plan[data-step="1"] .eb-options { grid-template-columns:minmax(0,1fr); }
  #app .s2-frame .s2-plan[data-step="1"] .eb-options button { min-height:3.75rem; padding-right:1.4rem; }
  #app .s2-plan[data-step="3"] .eb-options { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #app .s2-plan[data-step="3"] .s2-title img { max-width:25%; }
}
@media (max-width:600px) {
  #app .s2-frame .s2-notices .cm-notification-row > div { min-width:0; }
  #app .s2-frame .s2-notices .cm-notification-row h3 { line-height:1.18; }
}

@media(max-width:600px) {
  #app .s2-frame .s2-progress .s2-chart-plot {--s2-plot-height:clamp(4.5rem,12dvh,7rem);margin-block:1rem .5rem}
  #app .s2-frame .s2-progress .s2-board-heading {margin-bottom:.5rem}
}

@media (max-width:600px) {
  #app .s2-frame .s2-plan:is([data-step="1"],[data-step="2"],[data-step="8"]) {
    padding-bottom:calc(76px + env(safe-area-inset-bottom,0px));
  }
  #app .s2-frame .s2-plan:is([data-step="1"],[data-step="2"],[data-step="8"]) .eb-actions {
    position:sticky;
    bottom:calc(74px + env(safe-area-inset-bottom,0px));
    z-index:4;
    background:#fffbf3;
  }
  #app .s2-frame .s2-plan[data-step="1"] .eb-options button {
    min-height:68px;
  }
}

@media (max-width:600px) {
  #app .s2-panel .s2-path-links {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:4px 12px;
    align-items:stretch;
  }
  #app .s2-path-links > details {
    grid-column:1 / -1;
    min-width:0;
  }
  #app .s2-path-links > .s2-text-link,
  #app .s2-path-links > details > summary {
    display:flex;
    align-items:center;
    justify-content:flex-start;
    justify-self:stretch;
    box-sizing:border-box;
    min-height:44px;
    margin:0;
    padding:4px 0;
    line-height:1.3;
    text-align:start;
  }
  #app .s2-path-links .s2-next-unit {
    width:100%;
    box-sizing:border-box;
    text-align:start;
  }
}

#app a.learner-games-link {
  display:inline-flex;
  align-items:center;
  justify-self:start;
  width:fit-content;
  min-height:44px;
  color:#125a3b;
  font-weight:650;
  text-decoration:underline;
  text-underline-offset:.16em;
}

#app .learner-profile-shortcut {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  justify-self:start;
  min-width:44px;
  min-height:44px;
  text-decoration:none;
}
#app .learner-profile-shortcut .profile-identity {
  display:flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border-radius:50%;
  overflow:hidden;
  background:#dfd3ee;
  color:#254738;
}
#app .learner-profile-shortcut .profile-identity > :is(img,.kl-pixel-portrait) {
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}
