:root {
    color-scheme: light;
    --page: #f7f8f2;
    --page-bg: #f7f8f2;
    --surface: #fffefa;
    --surface-muted: #f1f4e9;
    --surface-soft: #f3f6ec;
    --surface-purple: #f0f5e5;
    --text: #242820;
    --muted: #69715f;
    --muted-strong: #505e41;
    --border: #dfe4d6;
    --border-strong: #b6c79c;
    --accent: #4f6931;
    --accent-hover: #3f5427;
    --accent-soft: #edf3df;
    --complete: #5b7d37;
    --success: #527531;
    --success-soft: #edf3df;
    --green: #527531;
    --green-soft: #edf3df;
    --purple: #6a8748;
    --purple-dark: #4b6630;
    --purple-soft: #e9f0da;
    --viewer-background: #f7f8f2;
    --viewer-surface: #fffefa;
    --viewer-text: #242820;
    --viewer-muted: #69715f;
    --viewer-border: #dfe4d6;
    --viewer-primary: #566f36;
    --viewer-primary-hover: #405827;
    --viewer-success: #557a32;
    --viewer-success-soft: #edf3df;
    --shadow: 0 12px 28px #33402008;
    --shadow-soft: none;
    --shadow-hover: 0 12px 28px #3340200b;
    --radius-lg: 13px;
    --radius-md: 11px;
    --radius-sm: 7px;
    --student-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--app-header-height) + 20px); }
body.student-app { display: flex; flex-direction: column; min-height: 100svh; margin: 0; background: var(--page); color: var(--text); font-family: Inter, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.student-app > main { flex: 1; min-width: 0; }
:where(.student-app) a { color: inherit; text-decoration: none; }
.student-app button, .student-app input { font-family: inherit; }
.student-app button, .student-app a, .student-app input { -webkit-tap-highlight-color: transparent; }
.student-app [hidden] { display: none !important; }
.student-app a:focus-visible, .student-app button:focus-visible, .student-app input:focus-visible { outline: 3px solid #8da969; outline-offset: 3px; }
.student-app ::selection { background: #d4f478; color: #242820; }
.student-eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font: 9px var(--student-mono); letter-spacing: 1.1px; color: #72815e; line-height: 1.6; }
.student-status-dot { display: inline-block; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; background: #b3d580; box-shadow: 0 0 0 4px #b3d58010; }
.student-app .student-secondary-link { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 41px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: #53673c; font-size: 11px; font-weight: 550; white-space: nowrap; }
.student-secondary-link:hover { border-color: var(--border-strong); }
.student-secondary-link > span { font-size: 18px; }
.student-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.student-section-heading h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.65px; }
.student-section-heading > span { font-size: 10px; color: var(--muted); }
.student-course-icon { display: grid; place-items: center; width: 41px; height: 41px; border-radius: 10px; background: #e6efd4; color: #76934d; font: 18px var(--student-mono); }
.student-app .app-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: min(100% - 80px, 1200px); min-height: 77px; margin-inline: auto; border-top: 1px solid var(--border); color: #737f64; font-size: 10px; line-height: 1.7; }
.app-footer > span:first-child { font: 9px var(--student-mono); }
.app-footer > a { display: inline-flex; align-items: center; gap: 12px; }
.app-footer > a > span { font-size: 16px; }
.courses-page, .course-page, .lesson-page { width: min(100% - 80px, 1120px); padding-top: 40px; padding-bottom: 60px; }
.courses-header { display: block; margin-bottom: 30px; }
.courses-header .student-eyebrow { font: 9px var(--student-mono); letter-spacing: 1.1px; color: #72815e; margin-bottom: 17px; }
.courses-header h1 { margin: 0 0 14px; font-size: clamp(28px, 3.2vw, 39px); font-weight: 650; letter-spacing: -1.4px; line-height: 1.25; }
.student-title-dot { color: #8ba85c; }
.courses-header > p:last-child { color: var(--muted); font-size: 13px; line-height: 1.8; }
.catalog-tools { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 24px 0; border-block: 1px solid var(--border); }
.catalog-filters { display: flex; align-items: center; gap: 7px; }
.catalog-filters button { min-height: 40px; padding: 10px 17px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #6d785f; font-size: 12px; cursor: pointer; }
.catalog-filters button:hover { background: #edf2e3; }
.catalog-filters button[aria-pressed="true"] { border-color: #d7e3c5; background: #e9f1da; color: #4d6433; }
.catalog-search { position: relative; width: min(100%, 300px); }
.catalog-search label { display: block; font-size: 10px; color: var(--muted); margin: 0 0 8px; }
.catalog-search input { width: 100%; min-height: 40px; border: 1px solid var(--border); border-radius: 6px; padding: 10px 35px 10px 13px; font-size: 12px; color: var(--text); background: var(--surface); outline: none; }
.catalog-search input:focus { border-color: var(--border-strong); }
.catalog-search input::placeholder { color: #838e76; }
.catalog-search > span { position: absolute; pointer-events: none; right: 13px; bottom: 9px; font-size: 21px; line-height: 1; color: #82916d; }
.catalog-results { margin: 23px 0 17px; min-height: 14px; font-size: 11px; color: var(--muted); }
.courses-grid { gap: 22px; }
.courses-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 14px 14px 21px; border-radius: 12px; box-shadow: none; }
.courses-card:hover, .courses-card:focus-within { transform: none; border-color: #b3c89b; box-shadow: none; }
.courses-card--enrolled { border-color: #c6d7ae; }
.courses-card__visual { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 15px; width: 100%; height: 133px; background: #e8f0d9; border: 1px solid #dce7c9; border-radius: 7px; margin-bottom: 22px; color: #718b4f; }
.courses-card__visual > span:first-child { font: 44px var(--student-mono); letter-spacing: -4px; }
.courses-card__visual > span:last-child { font: 7px var(--student-mono); letter-spacing: 1.8px; opacity: .9; }
.courses-card__visual--1 { background: #ecebe2; border-color: #e1dfd1; color: #8c8b64; }
.courses-card__visual--2 { background: #e9eceb; border-color: #dce2e0; color: #718b80; }
.courses-card__header { padding-inline: 7px; width: 100%; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.courses-card h2 { font-size: 19px; font-weight: 600; letter-spacing: -.5px; line-height: 1.35; overflow-wrap: anywhere; }
.courses-card__badge { min-height: 23px; padding-inline: 8px; font-size: 9px; font-weight: 550; color: #5d7a3f; background: #edf4e2; }
.courses-card__description { padding-inline: 7px; font-size: 12px; line-height: 1.8; margin-bottom: 22px; }
.courses-card__meta { width: calc(100% - 14px); margin: auto 7px 18px; padding-bottom: 17px; border-bottom: 1px solid var(--border); font-size: 10px; color: #738261; font-weight: 500; }
.courses-card__link { margin-inline: 7px; min-height: 36px; font-size: 11px; border-radius: 6px; padding-inline: 14px; color: #526c36; background: #f1f6e8; border-color: #dfe8d0; }
.courses-card__link::after { content: '↗'; margin-left: 20px; font-size: 16px; font-weight: 400; }
.courses-card__link--primary { background: #d4f478; color: #334623; border-color: #cce98f; }
.courses-card__link:hover, .courses-card__link--primary:hover { background: #e3efcf; color: #334623; border-color: #bdcf9e; transform: none; }
.courses-state { box-shadow: none; font-size: 13px; }
.course-back, .lesson-page__back { color: var(--muted); font-size: 12px; font-weight: 500; }
.course-hero { padding-block: 30px 35px; }
.course-hero h1 { font-weight: 650; font-size: clamp(29px, 3.8vw, 43px); letter-spacing: -1.5px; line-height: 1.2; overflow-wrap: anywhere; }
.course-hero > p { font-size: 13px; line-height: 1.9; }
.course-meta { gap: 8px; }
.course-meta span { min-height: 27px; padding: 6px 10px; font-size: 10px; font-weight: 500; background: #f0f4e8; border-color: #e0e7d5; border-radius: 5px; }
.course-card, .course-info-card { box-shadow: none; }
.course-card:hover, .course-info-card:hover { box-shadow: none; transform: none; }
.course-card h2 { margin-block: 0 18px; font-size: 20px; font-weight: 600; }
.course-layout { gap: 25px; }
.course-outcome { font-size: 12px; line-height: 1.6; font-weight: 500; background: #f7f9f2; }
.course-outcome__check { color: #698549; background: #e8f0da; }
.course-accordion__button { min-height: 58px; padding-block: 15px; }
.course-accordion__title { font-size: 14px; font-weight: 550; }
.course-accordion__item:hover { transform: none; }
.course-lessons li { font-size: 12px; }
.course-facts dt { font-size: 12px; font-weight: 500; }
.course-facts dd { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.course-enroll-button { background: #d4f478; color: #2f4120; min-height: 46px; font-size: 12px; font-weight: 600; }
.course-enroll-button:hover { background: #c5e86b; box-shadow: none; color: #2f4120; transform: none; }
.course-note { font-size: 11px; line-height: 1.8; }
.course-progress-summary { font-size: 11px; font-weight: 500; gap: 13px; }
.course-progress-summary__track { height: 5px; }
.course-progress-summary__track span { background: #96b468; }
.course-hero > .course-unenroll-button { margin-top: 15px; font-size: 10px; }
.course-section-card { box-shadow: none; padding: 24px; border-radius: 11px; }
.course-section-card:hover { transform: none; box-shadow: none; border-color: #b8c99f; }
.course-section-card h2 { font-size: 21px; font-weight: 600; letter-spacing: -.55px; }
.course-section-card__meta { font: 9px var(--student-mono); color: #7c8d69; }
.course-section-card__description { font-size: 12px; line-height: 1.8; }
.course-section-card__progress-header { font-size: 10px; font-weight: 500; }
.course-section-card__progress-header strong { color: #6e8b4a; }
.course-section-card__progress-track { height: 5px; }
.course-section-card__progress-track span { background: #96b468; }
.course-section-card__action { font-size: 11px; font-weight: 550; color: #5d773b; }
.section-hero { padding: 28px; gap: 17px; background: #fffefa; border-radius: 12px; box-shadow: none; }
.section-hero__eyebrow { font: 9px var(--student-mono); letter-spacing: 1px; color: #7a8d64; }
.section-hero__info { gap: 12px; }
.section-hero h1 { font-size: clamp(27px, 3vw, 35px); font-weight: 650; letter-spacing: -1px; line-height: 1.25; }
.section-hero__description { font-size: 13px; line-height: 1.8; }
.section-progress { font-size: 11px; font-weight: 500; }
.section-progress__track { background: #e7eddc; height: 5px; }
.section-progress__track span { background: #97b36d; }
.section-progress strong { font-size: 12px; }
.lessons__heading h2 { font-weight: 600; font-size: 22px; letter-spacing: -.5px; }
.lessons__count { font-size: 11px; }
.lesson-card { border-radius: 10px; box-shadow: none; padding: 20px; }
.lesson-card:hover { border-color: #b7c99e; box-shadow: none; transform: none; }
.lesson-card--current { border-color: #bbcc9d; background: #f0f5e7; }
.lesson-card__status-icon { background: #f4f6ee; border-color: #e1e7d8; color: #8b9879; }
.lesson-card--current .lesson-card__status-icon { background: #e0eccb; color: #6a844b; border-color: #d3e2ba; }
.lesson-card__meta { font: 9px var(--student-mono); color: #7b8c68; }
.lesson-card__title { font-weight: 600; font-size: 17px; letter-spacing: -.35px; }
.lesson-card__description { font-size: 12px; line-height: 1.8; }
.lesson-card__progress { font-size: 10px; }
.lesson-card__badge, .lesson-card--current .lesson-card__badge { color: #698249; background: #eaf1df; border-color: #dce7cf; font-size: 10px; }
.lesson-card__continue { background: #d4f478; color: #435a2b; font-size: 11px; border-color: #d4f478; }
.lesson-card:hover .lesson-card__continue { background: #c8e98a; color: #435a2b; }
.lesson-card__chevron { color: #8ba66b; }
@media (max-width: 900px) { .courses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.catalog-search { width: 260px; } }
@media (max-width: 760px) {
    .student-app .app-footer { width: calc(100% - 40px); }
    .courses-page, .course-page, .lesson-page { width: calc(100% - 40px); padding-top: 30px; }
    .catalog-tools { align-items: flex-start; }
    .catalog-search { width: 100%; }
    .catalog-filters { width: 100%; }
    .course-layout { grid-template-columns: 1fr; }
    .course-sidebar { position: static; grid-row: 1; }
    .course-facts { grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 25px; }
    .course-facts div { align-items: baseline; display: flex; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
    .course-facts dd { text-align: right; }
    .student-section-heading > span { font-size: 9px; }
}
@media (max-width: 540px) {
    .student-app .app-footer { width: calc(100% - 32px); min-height: 70px; font-size: 9px; }
    .app-footer > span:first-child { font-size: 8px; }
    .app-footer > span:nth-child(2) { display: none; }
    .courses-page, .course-page, .lesson-page { width: calc(100% - 32px); padding-top: 27px; padding-bottom: 40px; }
    .student-eyebrow { font-size: 8px; letter-spacing: .8px; }
    .courses-header h1 { font-size: 29px; letter-spacing: -1px; }
    .courses-header > p:last-child { font-size: 12px; }
    .courses-grid { grid-template-columns: 1fr; gap: 18px; }
    .catalog-tools { padding-block: 20px; gap: 17px; }
    .catalog-search input { font-size: 16px; }
    .catalog-search input::placeholder { font-size: 12px; }
    .courses-card__visual { height: 125px; }
    .course-card { padding: 22px; }
    .course-card h2 { font-size: 19px; }
    .course-hero { padding-block: 25px 30px; }
    .course-hero h1 { font-size: 30px; }
    .course-hero > p { font-size: 12px; }
    .course-section-card { padding: 21px; }
    .course-section-card h2 { font-size: 19px; }
    .section-hero { padding: 22px; }
    .section-hero h1 { font-size: 27px; }
    .section-hero__description { font-size: 12px; }
    .student-section-heading { gap: 12px; }
    .student-section-heading h2 { font-size: 20px; }
    .student-section-heading > span { max-width: 110px; line-height: 1.7; text-align: right; }
    .course-facts { grid-template-columns: 1fr; }
    .lesson-card { padding: 18px; }
    .lesson-card__title { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .student-app *, .student-app *::before, .student-app *::after { scroll-behavior: auto !important; transition: none !important; } }
/* The lesson has a collapsible sidebar on wide screens and a drawer on phones. */
.student-app--lesson .step-drawer-toggle { position: static; align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: auto; height: auto; min-height: 39px; padding: 8px 13px; margin: 22px 24px 0; font-size: 11px; border-radius: 6px; box-shadow: none; color: #5e7344; background: #eef3e5; border-color: #d9e4ca; }
.step-drawer-toggle > span:first-child { font-size: 15px; }
.student-app--lesson .step-drawer { width: min(300px, calc(100vw - 35px)); padding: 26px 19px; box-shadow: 8px 0 35px #27391a14; background: #f9fbf4; }
.step-drawer__close { position: absolute; top: 16px; right: 14px; display: flex; align-items: center; justify-content: center; width: 33px; height: 33px; padding: 0; border: 1px solid var(--border); border-radius: 6px; color: #6e7b60; background: #f0f4e9; cursor: pointer; }
.step-drawer__close svg { display: block; flex-shrink: 0; }
.step-drawer__close .step-drawer__close-chevron { display: none; }
.student-app--lesson .step-drawer__header { padding: 8px 9px 20px; }
.student-app--lesson .step-drawer__eyebrow { font: 8px var(--student-mono); color: #82936e; letter-spacing: 1.3px; margin-bottom: 12px; }
.student-app--lesson .step-drawer__title { padding-right: 22px; font-size: 18px; line-height: 1.5; font-weight: 600; color: #3c4a30; }
.student-app--lesson .step-drawer__link { padding: 12px 10px; border-radius: 7px; border: 1px solid transparent; color: #748167; font-size: 12px; line-height: 1.7; }
.student-app--lesson .step-drawer__link:hover { background: #f0f4e8; }
.student-app--lesson .step-drawer__link[aria-current="step"] { color: #4b6430; border-color: #d9e5c7; background: #eaf2db; font-weight: 550; }
.student-app--lesson .step-drawer__link.is-completed { color: #6b8452; }
.student-app--lesson .step-drawer__link.is-completed .step-drawer__status { color: #76994c; }
.student-app--lesson .step-drawer__status { color: #92a181; font-size: 11px; }
.lesson-progress { margin: 20px 9px 25px; }
.lesson-progress p { margin: 0 0 11px; color: #7b8b6c; font-size: 10px; }
.lesson-progress [role="progressbar"] { height: 4px; border-radius: 4px; overflow: hidden; background: #e1e9d7; }
.lesson-progress [role="progressbar"] > span { display: block; width: 0; height: 100%; background: #a3bd7b; }
.student-app--lesson .step-drawer-backdrop { z-index: 60; background: #25331e66; backdrop-filter: blur(2px); }
.student-app--lesson .step-drawer { z-index: 70; }
.student-app--lesson .step-viewer { width: min(100% - 48px, 900px); min-height: 0; padding-block: 24px 40px; }
.lesson-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 19px; font-size: 10px; line-height: 1.8; color: #839271; }
.lesson-breadcrumbs a { color: #62794a; }
.lesson-breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.student-app--lesson .step-viewer__back-link { margin-bottom: 20px; font-size: 11px; font-weight: 500; }
.student-app--lesson .step-viewer__title { font-size: clamp(28px, 3.3vw, 37px); letter-spacing: -1.3px; line-height: 1.25; font-weight: 650; }
.student-app--lesson .step-viewer__progress { display: inline-flex; padding: 6px 10px; margin-top: 15px; border: 1px solid #dce5cf; border-radius: 5px; background: #f0f5e7; color: #71855a; font: 9px var(--student-mono); letter-spacing: .25px; }
.student-app--lesson .step-viewer__header { margin-bottom: 24px; }
.student-app--lesson .step-viewer__content { min-height: 240px; padding: 30px; border-radius: 11px; background: #fffefa; font-size: 15px; line-height: 1.9; }
.student-app--lesson .step-viewer__content pre { max-width: 100%; overflow: auto; }
.student-app--lesson .task-viewer__card { background: #fffefa; border-radius: 11px; }
.student-app--lesson .task-viewer__meta-item { border-color: #e1e7d8; color: #71855b; background: #f5f8ed; }
.student-app--lesson .task-viewer__submit { color: #324323; background: #d4f478; font-size: 12px; }
.student-app--lesson .task-viewer__submit:hover { background: #c4e86c; }
.student-app--lesson .task-viewer__title { font-size: 20px; font-weight: 600; letter-spacing: -.5px; }
.step-completion { margin-top: 23px; }
.student-app--lesson .step-viewer__complete-button { margin: 0; min-height: 42px; border-color: #d2dfbd; color: #526d36; background: #eef4e3; font-size: 12px; font-weight: 550; }
.student-app--lesson .step-viewer__complete-button:hover { background: #e0eccb; }
.student-app--lesson .step-viewer__complete-button.is-completed { border-color: #c8d9ae; color: #4e702e; background: #e6f0d5; }
.student-app--lesson .step-viewer__navigation { gap: 15px; margin-top: 25px; padding-top: 22px; border-top: 1px solid var(--border); }
.student-app--lesson .step-viewer__navigation-button { min-height: 44px; border-radius: 6px; font-size: 12px; font-weight: 550; color: #61764b; }
.student-app--lesson .step-viewer__navigation-button--primary { background: #d4f478; border-color: #cce68e; color: #334423; }
.student-app--lesson .step-viewer__navigation-button--primary:hover { background: #c4e86c; color: #334423; }
@media (min-width: 1100px) {
    .student-app--lesson .step-drawer { top: var(--app-header-height); bottom: 0; left: max(0px, calc((100vw - 1400px) / 2)); width: 280px; transform: none; visibility: visible; box-shadow: none; border-right: 1px solid var(--border); padding-top: 30px; z-index: 20; transition: none; }
    .student-app--lesson .step-drawer-toggle, .student-app--lesson .step-drawer-backdrop { display: none; }
    .student-app--lesson .step-drawer[aria-hidden="true"] { visibility: hidden; transform: translateX(-110%); transition: none; }
    .step-drawer__close .step-drawer__close-chevron { display: block; }
    .step-drawer__close .step-drawer__close-cross { display: none; }
    .student-app--lesson .step-viewer { width: min(calc(100% - 360px), 960px); margin-left: max(320px, calc((100vw - 1400px) / 2 + 320px)); margin-right: 40px; padding-top: 35px; }
    .student-app--lesson .app-footer { width: min(calc(100% - 360px), 960px); margin-left: max(320px, calc((100vw - 1400px) / 2 + 320px)); margin-right: 40px; }
    .student-app--lesson.is-desktop-drawer-collapsed .step-drawer-toggle { display: inline-flex; margin: 25px 0 0 max(40px, calc((100vw - 1120px) / 2)); }
    .student-app--lesson.is-desktop-drawer-collapsed .step-viewer { width: min(calc(100% - 80px), 1120px); margin-inline: auto; padding-top: 24px; }
    .student-app--lesson.is-desktop-drawer-collapsed .app-footer { width: min(calc(100% - 80px), 1120px); margin-inline: auto; }
}
@media (max-width: 640px) {
    .student-app--lesson .step-drawer-toggle { margin-inline: 16px; margin-top: 19px; }
    .student-app--lesson .step-viewer { width: calc(100% - 32px); padding-top: 22px; }
    .student-app--lesson .step-viewer__title { font-size: 28px; letter-spacing: -.9px; }
    .student-app--lesson .step-viewer__content { padding: 22px 19px; min-height: 220px; font-size: 14px; }
    .student-app--lesson .step-viewer__navigation { flex-direction: row; flex-wrap: wrap; }
    .student-app--lesson .step-viewer__navigation-button { flex: 1; width: auto; padding-inline: 11px; font-size: 11px; white-space: normal; line-height: 1.6; }
    .lesson-breadcrumbs { font-size: 9px; gap: 8px; }
    .student-app--lesson .task-viewer__card { padding: 21px; }
    .student-app--lesson .task-viewer__title { font-size: 19px; }
}
.step-progress-error { margin: 12px 0 0; padding: 11px 13px; border: 1px solid #eed4ca; border-radius: 6px; color: #963e29; background: #fcf2ec; font-size: 12px; line-height: 1.8; }
@media (min-width: 541px) {
    .dashboard-greeting > div > p:last-child { font-size: 14px; }
    .current-course__description, .course-card p { font-size: 13px; }
    .learning-summary dt { font-size: 12px; }
    .courses-card__description { font-size: 13px; }
    .courses-card__meta { font-size: 11px; }
    .courses-card__link, .primary-action { font-size: 12px; }
    .app-header__nav a { font-size: 13px; }
}
