/* ==========================================
                 LEARN PAGE
========================================== */

.learnPage{

    width:calc(100% - 120px);

    max-width:1400px;

    margin:135px auto 80px;

}

.learnPage [hidden]{

    display:none !important;

}

.learnPage button{

    width:auto;

    min-width:0;

    max-width:none;

    margin:0;

    font-family:inherit;

    transform:none;

}


/* ==========================================
                    HERO
========================================== */

.learnHero{

    display:grid;

    grid-template-columns:
        minmax(0,1.18fr)
        minmax(360px,0.82fr);

    overflow:hidden;

    border:1px solid #35503b;

    border-radius:15px;

    background:
        linear-gradient(
            135deg,
            rgba(14,22,16,0.98),
            rgba(7,11,8,0.97)
        );

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.025),
        0 16px 38px rgba(0,0,0,0.24);

}

.learnHeroCopy{

    min-height:460px;

    padding:58px 56px;

}

.learnEyebrow,
.learnSectionLabel,
.lessonSectionLabel,
.lessonSidebarLabel,
.lessonPanelLabel,
.lessonQuizLabel{

    display:block;

    color:#819087;

    font-size:9px;

    font-weight:700;

    letter-spacing:1.9px;

    text-transform:uppercase;

}

.learnHero h1{

    margin:10px 0 17px;

    color:#f2f5f3;

    font-size:74px;

    line-height:0.95;

    letter-spacing:9px;

}

.learnHeroLead{

    max-width:760px;

    margin:0 0 12px;

    color:#b2bcb4;

    font-size:16px;

    line-height:1.65;

}

.learnHeroText{

    max-width:780px;

    margin:0;

    color:#8e9a91;

    font-size:13px;

    line-height:1.75;

}

.learnHeroActions{

    display:flex;

    flex-wrap:wrap;

    gap:12px;

    margin-top:30px;

}

.learnPrimaryButton,
.learnSecondaryButton{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    min-height:50px;

    padding:0 23px !important;

    border-radius:8px;

    font-size:10px;

    font-weight:700;

    letter-spacing:1.6px;

    text-decoration:none;

    cursor:pointer;

    transition:
        background 0.2s,
        border-color 0.2s,
        color 0.2s,
        transform 0.2s;

}

.learnPrimaryButton{

    border:1px solid #778f7b;

    background:#2a422f;

    color:white;

}

.learnPrimaryButton:hover{

    border-color:#a8b9ab;

    background:#36533c;

    transform:translateY(-2px);

}

.learnSecondaryButton{

    border:1px solid #465c4b;

    background:#101812;

    color:#d0d8d2;

}

.learnSecondaryButton:hover{

    border-color:#7d9181;

    background:#19251b;

    color:white;

    transform:translateY(-2px);

}


/* ==========================================
             PROGRESSION PANEL
========================================== */

.learnProgressionPanel{

    display:block;

    position:static;

    top:auto;

    left:auto;

    right:auto;

    width:auto;

    height:auto;

    padding:35px;

    border:0;

    border-left:1px solid #304637;

    border-radius:0;

    background:
        linear-gradient(
            180deg,
            rgba(18,29,21,0.58),
            rgba(7,11,8,0.28)
        );

    backdrop-filter:none;

}

.learnProgressionPanel header{

    padding:14px 17px;

    border:1px solid #3d5744;

    border-bottom:0;

    border-radius:9px 9px 0 0;

    background:rgba(9,15,11,0.82);

}

.learnProgressionPanel header span{

    color:#87948a;

    font-size:8px;

    font-weight:700;

    letter-spacing:1.7px;

}

.progressionItem{

    display:grid;

    grid-template-columns:
        40px 1fr;

    gap:13px;

    padding:20px 17px;

    border:1px solid #354c3b;

    border-bottom:0;

    background:rgba(8,13,9,0.78);

}

.progressionItem:last-child{

    border-bottom:
        1px solid #354c3b;

    border-radius:0 0 9px 9px;

}

.progressionNumber{

    color:#617067;

    font-size:10px;

    font-weight:700;

}

.progressionItem strong{

    display:block;

    color:#e1e7e2;

    font-size:11px;

    letter-spacing:1.3px;

}

.progressionItem p{

    margin:6px 0 0;

    color:#7d8980;

    font-size:10px;

    line-height:1.55;

}


/* ==========================================
              PRINCIPLES STRIP
========================================== */

.learningPrinciples{

    display:grid;

    grid-template-columns:
        repeat(3,minmax(0,1fr));

    margin-top:18px;

    overflow:hidden;

    border:1px solid #36503c;

    border-radius:11px;

    background:rgba(9,15,11,0.95);

}

.learningPrinciples article{

    min-width:0;

    padding:20px 22px;

    border-right:1px solid #304536;

}

.learningPrinciples article:last-child{

    border-right:0;

}

.learningPrinciples article > span{

    display:block;

    color:#738078;

    font-size:8px;

    font-weight:700;

    letter-spacing:1.5px;

}

.learningPrinciples article strong{

    display:block;

    margin-top:8px;

    color:#e0e6e1;

    font-size:13px;

    letter-spacing:0.4px;

}

.learningPrinciples article p{

    margin:7px 0 0;

    color:#7e8a81;

    font-size:10px;

    line-height:1.55;

}


/* ==========================================
                SECTION HEADERS
========================================== */

.curriculumSection,
.subjectSection,
.lessonLibrary{

    margin-top:70px;

    scroll-margin-top:125px;

}

.learnSectionHeader{

    display:flex;

    align-items:flex-end;

    justify-content:space-between;

    gap:35px;

    margin-bottom:22px;

}

.learnSectionHeader h2{

    margin:7px 0 0;

    color:#eef2ef;

    font-size:32px;

    font-weight:600;

    letter-spacing:1.1px;

}

.learnSectionHeader > p{

    max-width:530px;

    margin:0;

    color:#7f8b82;

    font-size:12px;

    line-height:1.6;

    text-align:right;

}


/* ==========================================
                CURRICULUM
========================================== */

.curriculumGrid{

    display:grid;

    grid-template-columns:
        repeat(4,minmax(0,1fr));

    gap:15px;

}

.curriculumCard{

    display:flex;

    flex-direction:column;

    min-height:390px;

    padding:21px;

    border:1px solid #3b5441;

    border-radius:11px;

    background:
        linear-gradient(
            145deg,
            rgba(13,21,15,0.97),
            rgba(7,11,8,0.97)
        );

    transition:
        border-color 0.22s,
        background 0.22s,
        transform 0.22s,
        box-shadow 0.22s;

}

.curriculumCard:hover{

    border-color:#758b79;

    background:
        linear-gradient(
            145deg,
            rgba(21,34,24,0.98),
            rgba(9,14,10,0.98)
        );

    transform:translateY(-4px);

    box-shadow:
        0 13px 28px rgba(0,0,0,0.23);

}

.curriculumCardHeader{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:15px;

    padding-bottom:16px;

    border-bottom:1px solid #2d4232;

}

.curriculumCardHeader span{

    color:#617067;

    font-size:10px;

    font-weight:700;

}

.curriculumCardHeader strong{

    color:#aab6ac;

    font-size:9px;

    letter-spacing:1.5px;

}

.curriculumCard h3{

    margin:28px 0 12px;

    color:#e9eeea;

    font-size:21px;

    line-height:1.3;

}

.curriculumCard > p{

    margin:0;

    color:#87928a;

    font-size:11px;

    line-height:1.65;

}

.curriculumCard ul{

    margin:21px 0;

    padding:0;

    list-style:none;

}

.curriculumCard li{

    position:relative;

    margin-bottom:9px;

    padding-left:17px;

    color:#8d9990;

    font-size:10px;

    line-height:1.5;

}

.curriculumCard li::before{

    content:"";

    position:absolute;

    top:6px;

    left:0;

    width:5px;

    height:5px;

    border:1px solid #718176;

}

.curriculumBrowseButton{

    width:100% !important;

    min-height:43px;

    margin-top:auto !important;

    padding:0 12px !important;

    border:1px solid #4b6250;

    border-radius:7px;

    background:#141f16;

    color:#c6d0c8;

    font-size:8px;

    font-weight:700;

    letter-spacing:1.2px;

    cursor:pointer;

    transition:
        background 0.2s,
        border-color 0.2s,
        color 0.2s;

}

.curriculumBrowseButton:hover{

    border-color:#819584;

    background:#223326;

    color:white;

}


/* ==========================================
               SUBJECT BUTTONS
========================================== */

.subjectButtonGrid{

    display:grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(210px,1fr)
        );

    gap:12px;

}

.subjectButton{

    display:flex;

    flex-direction:column;

    align-items:flex-start;

    justify-content:center;

    min-height:100px;

    padding:17px 18px !important;

    border:1px solid #39513f;

    border-radius:9px;

    background:rgba(9,15,11,0.94);

    color:#dbe3dd;

    text-align:left;

    cursor:pointer;

    transition:
        border-color 0.2s,
        background 0.2s,
        transform 0.2s;

}

.subjectButton:hover,
.subjectButton.selected{

    border-color:#7d9181;

    background:#18251b;

    transform:translateY(-2px);

}

.subjectButtonTitle{

    font-size:11px;

    letter-spacing:0.8px;

}

.subjectButtonCount{

    margin-top:7px;

    color:#718077;

    font-size:8px;

    font-weight:700;

    letter-spacing:1.1px;

    text-transform:uppercase;

}


/* ==========================================
                 FILTERS
========================================== */

.lessonFilters{

    display:grid;

    grid-template-columns:
        minmax(280px,1.6fr)
        repeat(2,minmax(180px,0.75fr))
        auto;

    gap:14px;

    margin-bottom:20px;

    padding:18px;

    border:1px solid #354d3b;

    border-radius:11px;

    background:
        linear-gradient(
            145deg,
            rgba(13,20,15,0.96),
            rgba(7,11,8,0.96)
        );

}

.lessonFilterGroup{

    display:flex;

    flex-direction:column;

    gap:8px;

}

.lessonFilterGroup label{

    color:#7f8b82;

    font-size:8px;

    font-weight:700;

    letter-spacing:1.7px;

}

.lessonFilterGroup input,
.lessonFilterGroup select{

    width:100%;

    height:47px;

    padding:0 14px;

    border:1px solid #3b5341;

    border-radius:8px;

    outline:none;

    background:#0b110c;

    color:#e0e6e1;

    font-family:inherit;

    font-size:12px;

    transition:
        border-color 0.2s,
        background 0.2s,
        box-shadow 0.2s;

}

.lessonFilterGroup input::placeholder{

    color:#68736a;

}

.lessonFilterGroup input:focus,
.lessonFilterGroup select:focus{

    border-color:#91a294;

    background:#101812;

    box-shadow:
        0 0 0 3px rgba(145,162,148,0.09);

}

.lessonFilterGroup select{

    cursor:pointer;

}

.lessonFilterGroup option{

    background:#0b110c;

    color:#e0e6e1;

}

.clearLessonFilters{

    align-self:end;

    min-height:47px;

    padding:0 15px !important;

    border:1px solid #4b5e4f;

    border-radius:8px;

    background:#111914;

    color:#aab5ac;

    font-size:8px;

    font-weight:700;

    letter-spacing:1.2px;

    cursor:pointer;

}

.clearLessonFilters:hover{

    border-color:#7a8e7e;

    background:#1b281e;

    color:white;

}


/* ==========================================
                LESSON CARDS
========================================== */

.lessonCardGrid{

    display:grid;

    grid-template-columns:
        repeat(3,minmax(0,1fr));

    gap:17px;

}

.lessonCard{

    display:flex;

    flex-direction:column;

    min-height:370px;

    padding:22px;

    border:1px solid #3a5140;

    border-radius:12px;

    background:
        linear-gradient(
            145deg,
            rgba(13,21,15,0.97),
            rgba(7,11,8,0.97)
        );

    transition:
        border-color 0.22s,
        transform 0.22s,
        box-shadow 0.22s;

}

.lessonCard:hover{

    border-color:#738979;

    transform:translateY(-4px);

    box-shadow:
        0 13px 29px rgba(0,0,0,0.23);

}

.lessonCard.completed{

    border-color:#667b6a;

}

.lessonCardHeader{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:15px;

}

.lessonCardNumber,
.lessonCardLevel{

    color:#7a887e;

    font-size:8px;

    font-weight:700;

    letter-spacing:1.3px;

}

.lessonCardSubject{

    display:inline-block;

    align-self:flex-start;

    margin-top:30px;

    padding:6px 9px;

    border:1px solid #384f3e;

    border-radius:5px;

    color:#8e9b91;

    font-size:7px;

    font-weight:700;

    letter-spacing:1.3px;

    text-transform:uppercase;

}

.lessonCard h3{

    margin:13px 0 12px;

    color:#ecf0ed;

    font-size:21px;

    line-height:1.28;

}

.lessonCardSummary{

    margin:0;

    color:#87928a;

    font-size:11px;

    line-height:1.7;

}

.lessonCardMetadata{

    display:flex;

    flex-wrap:wrap;

    gap:8px 18px;

    margin-top:20px;

    color:#69766d;

    font-size:8px;

    font-weight:700;

    letter-spacing:1.1px;

    text-transform:uppercase;

}

.lessonCardFooter{

    display:flex;

    align-items:center;

    justify-content:space-between;

    gap:15px;

    margin-top:auto;

    padding-top:18px;

    border-top:1px solid #2d4232;

}

.lessonCardStatus{

    color:#77847b;

    font-size:7px;

    font-weight:700;

    letter-spacing:1.2px;

}

.lessonCard.completed .lessonCardStatus{

    color:#b7c6b9;

}

.openLessonButton{

    min-height:39px;

    padding:0 13px !important;

    border:1px solid #556b5a;

    border-radius:7px;

    background:#17241a;

    color:#d9e1db;

    font-size:8px;

    font-weight:700;

    letter-spacing:1.2px;

    cursor:pointer;

    transition:
        background 0.2s,
        border-color 0.2s,
        transform 0.2s;

}

.openLessonButton:hover{

    border-color:#8ea291;

    background:#263b2b;

    transform:translateY(-2px);

}

.lessonEmptyState{

    grid-column:1 / -1;

    padding:55px 25px;

    border:1px dashed #3b5040;

    border-radius:11px;

    background:rgba(8,13,9,0.74);

    text-align:center;

}

.lessonEmptyState strong{

    color:#dce4de;

    font-size:12px;

    letter-spacing:1.7px;

}

.lessonEmptyState p{

    margin:8px 0 0;

    color:#77847b;

    font-size:11px;

}


/* ==========================================
               LESSON VIEWER
========================================== */

.lessonViewer{

    width:100%;

}

.returnToLessonsButton{

    min-height:42px;

    padding:0 14px !important;

    border:1px solid #405845;

    border-radius:7px;

    background:rgba(10,16,11,0.85);

    color:#a7b5aa;

    font-size:8px;

    font-weight:700;

    letter-spacing:1.4px;

    cursor:pointer;

}

.returnToLessonsButton:hover{

    border-color:#748a78;

    background:#18251a;

    color:white;

}

.lessonViewerHeader{

    margin-top:20px;

    padding:38px 42px;

    border:1px solid #39513f;

    border-radius:13px;

    background:
        linear-gradient(
            135deg,
            rgba(15,23,17,0.97),
            rgba(7,11,8,0.97)
        );

}

.lessonViewerMetadata{

    display:flex;

    flex-wrap:wrap;

    gap:8px 22px;

    color:#829087;

    font-size:8px;

    font-weight:700;

    letter-spacing:1.5px;

}

.lessonViewerHeader h1{

    margin:16px 0 14px;

    color:#f1f4f2;

    font-size:43px;

    line-height:1.12;

    letter-spacing:1.4px;

}

.lessonViewerHeader > p{

    max-width:850px;

    margin:0;

    color:#98a39b;

    font-size:13px;

    line-height:1.7;

}

.lessonViewerGrid{

    display:grid;

    grid-template-columns:
        minmax(260px,0.32fr)
        minmax(0,1fr);

    gap:20px;

    margin-top:20px;

    align-items:start;

}


/* ==========================================
                 SIDEBAR
========================================== */

.lessonSidebar{

    position:sticky;

    top:125px;

    display:flex;

    flex-direction:column;

    gap:14px;

}

.lessonSidebarBlock{

    padding:19px;

    border:1px solid #354c3b;

    border-radius:10px;

    background:rgba(9,15,11,0.95);

}

.lessonSidebarBlock > ul{

    margin:14px 0 0;

    padding-left:17px;

}

.lessonSidebarBlock > ul li{

    margin-bottom:9px;

    color:#98a39b;

    font-size:10px;

    line-height:1.55;

}


/* Overrides the global fixed navigation rules */

.lessonSidebar .lessonContents{

    position:static;

    inset:auto;

    display:flex;

    flex-direction:column;

    width:auto;

    height:auto;

    margin:14px 0 0;

    padding:0;

    gap:7px;

    border:0;

    border-radius:0;

    background:transparent;

    box-shadow:none;

    backdrop-filter:none;

}

.lessonContentsButton{

    display:grid;

    grid-template-columns:
        28px 1fr;

    align-items:center;

    gap:9px;

    width:100% !important;

    padding:10px !important;

    border:1px solid transparent;

    border-radius:7px;

    background:transparent;

    color:#849087;

    text-align:left;

    cursor:pointer;

    transition:
        border-color 0.2s,
        background 0.2s,
        color 0.2s;

}

.lessonContentsButton:hover{

    border-color:#3a5040;

    background:#111a13;

    color:#dce4de;

}

.lessonContentsButton.active{

    border-color:#647968;

    background:#18251b;

    color:white;

}

.lessonContentsNumber{

    color:#66736a;

    font-size:8px;

    font-weight:700;

}

.lessonContentsTitle{

    font-size:9px;

    line-height:1.35;

}


/* ==========================================
               LESSON CONTENT
========================================== */

.lessonContent{

    min-width:0;

    padding:37px;

    border:1px solid #39513f;

    border-radius:12px;

    background:
        linear-gradient(
            145deg,
            rgba(13,20,15,0.97),
            rgba(7,11,8,0.97)
        );

}

.lessonSectionHeader h2{

    margin:9px 0 19px;

    color:#eef2ef;

    font-size:31px;

    line-height:1.2;

}

.lessonSectionIntroduction{

    margin:0 0 25px;

    padding-bottom:22px;

    border-bottom:1px solid #304536;

    color:#adb8af;

    font-size:14px;

    line-height:1.7;

}

.lessonParagraph{

    margin:0 0 18px;

    color:#a0aaa2;

    font-size:13px;

    line-height:1.8;

}

.lessonKeypointGrid{

    display:grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap:13px;

}

.lessonKeypoint{

    display:grid;

    grid-template-columns:
        34px 1fr;

    gap:12px;

    padding:18px;

    border:1px solid #3b5241;

    border-radius:9px;

    background:#0d150f;

}

.lessonKeypointNumber,
.lessonComparisonNumber,
.lessonProcessNumber{

    color:#65736a;

    font-size:9px;

    font-weight:700;

}

.lessonKeypoint h3,
.lessonComparisonColumn h3,
.lessonProcessStep h3{

    margin:0 0 8px;

    color:#e2e8e3;

    font-size:14px;

}

.lessonKeypoint p,
.lessonProcessStep p{

    margin:0;

    color:#8e9a91;

    font-size:11px;

    line-height:1.65;

}

.lessonComparisonGrid{

    display:grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap:14px;

}

.lessonComparisonColumn{

    padding:20px;

    border:1px solid #3b5241;

    border-radius:9px;

    background:#0c130e;

}

.lessonComparisonColumn h3{

    margin-top:12px;

}

.lessonComparisonColumn ul,
.lessonWarningPanel ul,
.lessonSummaryPanel ul{

    margin:15px 0 0;

    padding:0;

    list-style:none;

}

.lessonComparisonColumn li,
.lessonWarningPanel li,
.lessonSummaryPanel li{

    position:relative;

    margin-bottom:10px;

    padding-left:19px;

    color:#95a098;

    font-size:11px;

    line-height:1.6;

}

.lessonComparisonColumn li::before,
.lessonWarningPanel li::before,
.lessonSummaryPanel li::before{

    content:"";

    position:absolute;

    top:7px;

    left:1px;

    width:5px;

    height:5px;

    border:1px solid #78897c;

}

.lessonProcessList{

    display:flex;

    flex-direction:column;

    gap:10px;

}

.lessonProcessStep{

    display:grid;

    grid-template-columns:
        42px 1fr;

    gap:14px;

    padding:17px 18px;

    border:1px solid #3a5140;

    border-radius:8px;

    background:#0d150f;

}

.lessonWarningPanel,
.lessonSummaryPanel{

    padding:21px;

    border:1px solid #405846;

    border-left-width:3px;

    border-radius:8px;

    background:#101812;

}

.lessonWarningPanel{

    border-color:#654a47;

    border-left-color:#8c625d;

    background:#181110;

}

.lessonSummaryPanel{

    border-left-color:#819985;

}


/* ==========================================
                   QUIZ
========================================== */

.lessonQuiz{

    display:flex;

    flex-direction:column;

    gap:18px;

}

.lessonQuizQuestion{

    padding:22px;

    border:1px solid #435c49;

    border-radius:9px;

    background:#0d160f;

}

.lessonQuizQuestion h3{

    margin:10px 0 17px;

    color:#e3e9e4;

    font-size:16px;

    line-height:1.45;

}

.lessonQuizAnswers{

    display:grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap:9px;

}

.lessonQuizAnswer{

    display:grid;

    grid-template-columns:
        31px 1fr;

    align-items:center;

    gap:10px;

    width:100% !important;

    min-height:52px;

    padding:9px 12px !important;

    border:1px solid #405745;

    border-radius:7px;

    background:#111a13;

    color:#c6d0c8;

    text-align:left;

    cursor:pointer;

    transition:
        border-color 0.2s,
        background 0.2s;

}

.lessonQuizAnswer:hover:not(:disabled){

    border-color:#788c7c;

    background:#1a271d;

}

.lessonQuizAnswer.correct{

    border-color:#718a76;

    background:#1b2b1f;

}

.lessonQuizAnswer.incorrect{

    border-color:#875a55;

    background:#261715;

}

.lessonQuizLetter{

    display:flex;

    align-items:center;

    justify-content:center;

    width:29px;

    height:29px;

    border:1px solid #465d4b;

    border-radius:5px;

    color:#839087;

    font-size:9px;

    font-weight:700;

}

.lessonQuizAnswerText{

    font-size:10px;

    line-height:1.45;

}

.lessonQuizFeedback{

    margin-top:15px;

    padding:14px 0 0;

    border-top:1px solid #344a3a;

}

.lessonQuizFeedback strong{

    display:block;

    font-size:10px;

    letter-spacing:1.2px;

}

.lessonQuizFeedback p{

    margin:7px 0 0;

    color:#9ba69d;

    font-size:11px;

    line-height:1.6;

}

.lessonQuizFeedback.correct strong{

    color:#b6c8ba;

}

.lessonQuizFeedback.incorrect strong{

    color:#d4a29c;

}


/* ==========================================
           SECTION NAVIGATION
========================================== */

.lessonSectionNavigation{

    display:flex;

    justify-content:space-between;

    gap:14px;

    margin-top:35px;

    padding-top:23px;

    border-top:1px solid #304536;

}

.lessonNavigationButton{

    min-height:47px;

    padding:0 19px !important;

    border-radius:7px;

    font-size:9px;

    font-weight:700;

    letter-spacing:1.3px;

    cursor:pointer;

}

.lessonNavigationPrimary{

    border:1px solid #738a77;

    background:#293f2e;

    color:white;

}

.lessonNavigationPrimary:hover{

    border-color:#9fb0a2;

    background:#36513c;

}

.lessonNavigationSecondary{

    border:1px solid #465b4a;

    background:#101812;

    color:#c2ccc4;

}

.lessonNavigationSecondary:hover:not(:disabled){

    border-color:#718477;

    background:#19251b;

    color:white;

}

.lessonNavigationSecondary:disabled{

    opacity:0.35;

    cursor:not-allowed;

}


/* ==========================================
                 RESPONSIVE
========================================== */

@media(max-width:1150px){

    .curriculumGrid{

        grid-template-columns:
            repeat(2,minmax(0,1fr));

    }

    .lessonCardGrid{

        grid-template-columns:
            repeat(2,minmax(0,1fr));

    }

}


@media(max-width:950px){

    .learnHero{

        grid-template-columns:1fr;

    }

    .learnProgressionPanel{

        border-top:1px solid #304637;

        border-left:0;

    }

    .lessonViewerGrid{

        grid-template-columns:1fr;

    }

    .lessonSidebar{

        position:static;

    }

}


@media(max-width:800px){

    .learnPage{

        width:calc(100% - 40px);

    }

    .learnSectionHeader{

        align-items:flex-start;

        flex-direction:column;

    }

    .learnSectionHeader > p{

        text-align:left;

    }

    .learningPrinciples{

        grid-template-columns:1fr;

    }

    .learningPrinciples article{

        border-right:0;

        border-bottom:1px solid #304536;

    }

    .learningPrinciples article:last-child{

        border-bottom:0;

    }

    .lessonFilters{

        grid-template-columns:1fr;

    }

    .clearLessonFilters{

        width:100% !important;

    }

    .lessonCardGrid{

        grid-template-columns:1fr;

    }

}


@media(max-width:620px){

    .learnHeroCopy,
    .learnProgressionPanel{

        padding:28px;

    }

    .learnHeroCopy{

        min-height:auto;

    }

    .learnHero h1{

        font-size:50px;

        letter-spacing:6px;

    }

    .learnHeroLead{

        font-size:14px;

    }

    .learnHeroActions{

        flex-direction:column;

    }

    .learnPrimaryButton,
    .learnSecondaryButton{

        width:100% !important;

    }

    .curriculumGrid{

        grid-template-columns:1fr;

    }

    .lessonViewerHeader,
    .lessonContent{

        padding:24px;

    }

    .lessonViewerHeader h1{

        font-size:32px;

    }

    .lessonKeypointGrid,
    .lessonComparisonGrid,
    .lessonQuizAnswers{

        grid-template-columns:1fr;

    }

    .lessonSectionNavigation{

        flex-direction:column-reverse;

    }

    .lessonNavigationButton{

        width:100% !important;

    }

}

/* ==========================================
   LEARN PAGE — READABILITY IMPROVEMENTS
========================================== */

.learnHeroLead {

    font-size:
        18px;

    line-height:
        1.65;

}


.learnHeroText {

    font-size:
        16px;

    line-height:
        1.75;

}


.learnProgressionPanel p,
.learningPrinciples p,
.curriculumCard p,
.curriculumCard li,
.learnSectionHeader p,
.lessonCard p {

    font-size:
        15px;

    line-height:
        1.65;

}


/* Main lesson reading area */

.lessonContent {

    font-size:
        17px;

    line-height:
        1.78;

}


.lessonContent p,
.lessonContent li {

    font-size:
        17px;

    line-height:
        1.78;

}


.lessonContent h2 {

    font-size:
        25px;

    line-height:
        1.3;

}


.lessonContent h3 {

    font-size:
        19px;

    line-height:
        1.4;

}


/* Lesson questions and answer choices */

.lessonContent button,
.lessonContent label {

    font-size:
        15px;

    line-height:
        1.5;

}


/* Sidebar information */

.lessonSidebar {

    font-size:
        14px;

    line-height:
        1.6;

}


.lessonSidebar li,
.lessonContents a,
.lessonContents button {

    font-size:
        14px;

    line-height:
        1.55;

}


/* Do not let small labels become unreadably tiny */

.lessonSidebarLabel,
.lessonViewerMetadata span,
.learnSectionLabel,
.lessonFilterGroup label {

    font-size:
        11px;

}

/* ==========================================
   LEARN HERO ACTIONS
========================================== */

.learnHeroActions {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

grid-template-areas:
    "fundamentals continue"
    "curriculum baseline";

    gap: 10px;

    margin-top: 26px;

}


.learnHeroActions > a,
.learnHeroActions > button {

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 48px;

    padding: 11px 16px;

    box-sizing: border-box;

    text-align: center;

}


#startFundamentalsButton {

    grid-area:
        fundamentals;

}


.learnBaselineButton {

    grid-area:
        baseline;

}


.learnCurriculumButton {

    grid-area:
        curriculum;

}


#continueLearningButton {

    grid-area:
        continue;

}


#continueLearningButton[hidden] {

    display: none !important;

}


/* ==========================================
   MOBILE
========================================== */

@media(max-width: 700px) {

    .learnHeroActions {

        grid-template-columns:
            1fr;

grid-template-areas:
    "fundamentals"
    "continue"
    "baseline"
    "curriculum";

    }

}

.lessonCodebook{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.lessonCodeRow{
    display:grid;
    grid-template-columns:minmax(82px,120px) 1fr;
    gap:16px;
    align-items:start;
    padding:15px 17px;
    border:1px solid #3b5241;
    border-radius:8px;
    background:#0d150f;
}

.lessonCodeToken{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:38px;
    padding:8px 10px;
    border:1px solid #4a684f;
    border-radius:6px;
    background:#111d14;
    color:#a9c9ae;
    font-family:Consolas,"Courier New",monospace;
    font-size:15px;
    font-weight:700;
    letter-spacing:.6px;
}

.lessonCodeContent h3{
    margin:1px 0 5px;
    color:#e2e8e3;
    font-size:13px;
}

.lessonCodeContent p{
    margin:0;
    color:#8e9a91;
    font-size:11px;
    line-height:1.62;
}

.lessonCodeExample{
    display:block;
    margin-top:7px;
    color:#6f8174;
    font-size:8px;
    font-weight:700;
    letter-spacing:1px;
}

@media(max-width:700px){
    .lessonCodeRow{
        grid-template-columns:1fr;
        gap:10px;
    }

    .lessonCodeToken{
        justify-self:start;
    }
}

/* ==========================================
   LESSON CHAPTER GROUPS
========================================== */

.lessonContentsGroup{
    overflow:hidden;
    border:1px solid rgba(59,82,65,.7);
    border-radius:8px;
    background:rgba(10,17,12,.52);
}

.lessonContentsGroup + .lessonContentsGroup{
    margin-top:7px;
}

.lessonContentsGroup > summary{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:11px 12px;
    color:#a9b5ac;
    cursor:pointer;
    list-style:none;
    user-select:none;
    transition:
        background .16s ease,
        color .16s ease;
}

.lessonContentsGroup > summary::-webkit-details-marker{
    display:none;
}

.lessonContentsGroup > summary::after{
    content:"▾";
    margin-left:auto;
    color:#738177;
    font-size:10px;
    transition:transform .16s ease;
}

.lessonContentsGroup:not([open]) > summary::after{
    transform:rotate(-90deg);
}

.lessonContentsGroup > summary:hover{
    background:#111a13;
    color:#e0e7e1;
}

.lessonContentsGroup[open] > summary{
    border-bottom:1px solid rgba(59,82,65,.55);
    background:#101912;
    color:#dce5de;
}

.lessonContentsGroupTitle{
    font-size:9px;
    font-weight:700;
    letter-spacing:1.15px;
    text-transform:uppercase;
}

.lessonContentsGroupCount{
    display:grid;
    min-width:22px;
    height:20px;
    place-items:center;
    border:1px solid #3c5442;
    border-radius:999px;
    color:#78877c;
    font-size:8px;
    font-weight:700;
}

.lessonContentsGroupBody{
    display:flex;
    flex-direction:column;
    gap:3px;
    padding:6px;
}

.lessonContentsGroupBody .lessonContentsButton{
    padding:8px 9px !important;
}

.lessonContentsGroupBody .lessonContentsTitle{
    font-size:8.5px;
}


/* ==========================================
   COMPACT LESSON CONTENTS DRAWER
========================================== */

.lessonContentsToggle,
.lessonSidebarClose{
    display:none;
}

.lessonDrawerBackdrop[hidden]{
    display:none !important;
}

@media(max-width:1100px){

    .lessonViewerGrid{
        grid-template-columns:1fr !important;
        gap:0 !important;
    }

    .lessonContent{
        width:100%;
    }

    .lessonContentsToggle{
        position:fixed;
        top:218px;
        left:0;
        z-index:1850;
        display:block;
        width:30px !important;
        height:72px;
        padding:0;
        border:0;
        background:rgba(12,21,15,.9);
        clip-path:polygon(
            0 0,
            55% 0,
            100% 50%,
            55% 100%,
            0 100%
        );
        filter:drop-shadow(2px 5px 8px rgba(0,0,0,.28));
        cursor:pointer;
        backdrop-filter:blur(6px);
        transition:
            background .16s ease,
            width .16s ease,
            filter .16s ease;
    }

    .lessonContentsToggle::after{
        content:"";
        position:absolute;
        top:50%;
        left:6px;
        width:9px;
        height:9px;
        border-top:2px solid #88a28d;
        border-right:2px solid #88a28d;
        transform:
            translateY(-50%)
            rotate(45deg);
        transition:border-color .16s ease;
    }

    .lessonContentsToggle:hover,
    .lessonContentsToggle:focus-visible{
        width:34px !important;
        background:rgba(20,34,24,.96);
        filter:drop-shadow(3px 7px 10px rgba(0,0,0,.34));
        outline:none;
    }

    .lessonContentsToggle:hover::after,
    .lessonContentsToggle:focus-visible::after{
        border-color:#b1c3b5;
    }

    .lessonSidebar{
        position:fixed !important;
        top:0 !important;
        bottom:0;
        left:0;
        z-index:2100;
        display:flex;
        width:min(390px,88vw);
        height:100dvh;
        max-height:none;
        padding:18px;
        box-sizing:border-box;
        overflow-y:auto;
        overscroll-behavior:contain;
        transform:translateX(-104%);
        transition:transform .22s ease;
        border-right:1px solid #45604b;
        background:
            linear-gradient(
                160deg,
                rgba(11,18,13,.995),
                rgba(6,10,7,.995)
            );
        box-shadow:18px 0 46px rgba(0,0,0,.42);
    }

    .lessonSidebar.open{
        transform:translateX(0);
    }

    .lessonSidebarClose{
        display:flex;
        align-items:center;
        justify-content:center;
        align-self:flex-end;
        min-height:34px;
        padding:0 10px;
        border:1px solid #415847;
        border-radius:6px;
        background:#111a13;
        color:#91a096;
        font-size:8px;
        font-weight:700;
        letter-spacing:1px;
        cursor:pointer;
    }

    .lessonSidebarClose:hover,
    .lessonSidebarClose:focus-visible{
        border-color:#708475;
        color:#e0e7e1;
        outline:none;
    }

    .lessonDrawerBackdrop{
        position:fixed;
        inset:0;
        z-index:2050;
        display:block;
        background:rgba(0,0,0,.56);
        backdrop-filter:blur(2px);
    }

    body.lessonDrawerOpen{
        overflow:hidden;
    }

    .lessonSidebarBlock{
        flex:0 0 auto;
    }

    .lessonSidebar .lessonContents{
        max-height:none;
    }

    .lessonViewerHeader{
        margin-left:0;
        margin-right:0;
    }

    .lessonContent{
        padding:31px;
    }
}

@media(max-width:700px){

    .lessonContentsToggle{
        top:190px;
        width:26px !important;
        height:64px;
    }

    .lessonContentsToggle:hover,
    .lessonContentsToggle:focus-visible{
        width:30px !important;
    }

    .lessonSidebar{
        width:min(360px,92vw);
        padding:14px;
    }

    .lessonContent{
        padding:23px 18px;
    }

    .lessonContentsGroupTitle{
        font-size:8.5px;
    }
}

/* ==========================================
   KYE QUICK LESSON JUMP
========================================== */

.lessonQuickJump{
    position:relative;
    margin-top:10px;
}

.lessonQuickJumpButton{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    width:100% !important;
    min-height:46px;
    padding:0 14px !important;
    border:1px solid #3d5944;
    border-radius:8px;
    background:
        linear-gradient(
            145deg,
            rgba(17,28,20,.98),
            rgba(9,15,11,.98)
        );
    color:#dbe3dd;
    text-align:left;
    cursor:pointer;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.025);
    transition:
        border-color .16s ease,
        background .16s ease,
        box-shadow .16s ease;
}

.lessonQuickJumpButton:hover,
.lessonQuickJumpButton:focus-visible,
.lessonQuickJump.open .lessonQuickJumpButton{
    border-color:#718a76;
    background:
        linear-gradient(
            145deg,
            rgba(25,40,29,.99),
            rgba(12,20,14,.99)
        );
    box-shadow:
        0 0 0 3px rgba(113,138,118,.08);
    outline:none;
}

.lessonQuickJumpCurrent{
    min-width:0;
    overflow:hidden;
    color:#d8e0da;
    font-size:10px;
    font-weight:700;
    line-height:1.25;
    letter-spacing:.45px;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.lessonQuickJumpChevron{
    flex:0 0 auto;
    width:8px;
    height:8px;
    margin-right:2px;
    border-right:2px solid #718a76;
    border-bottom:2px solid #718a76;
    transform:
        translateY(-2px)
        rotate(45deg);
    transition:
        transform .16s ease,
        border-color .16s ease;
}

.lessonQuickJump.open .lessonQuickJumpChevron{
    border-color:#a8baac;
    transform:
        translateY(2px)
        rotate(225deg);
}

.lessonQuickJumpMenu{
    position:absolute;
    top:calc(100% + 7px);
    right:0;
    left:0;
    z-index:2250;
    max-height:min(520px,62vh);
    padding:7px;
    overflow-y:auto;
    border:1px solid #46604d;
    border-radius:9px;
    background:
        linear-gradient(
            155deg,
            rgba(10,17,12,.995),
            rgba(5,9,6,.995)
        );
    box-shadow:
        0 18px 38px rgba(0,0,0,.46),
        inset 0 1px 0 rgba(255,255,255,.025);
    scrollbar-width:thin;
    scrollbar-color:#4b6551 #0a100c;
}

.lessonQuickJumpMenu[hidden]{
    display:none !important;
}

.lessonQuickJumpGroup + .lessonQuickJumpGroup{
    margin-top:7px;
    padding-top:7px;
    border-top:1px solid rgba(61,84,67,.52);
}

.lessonQuickJumpGroupHeading{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:5px 7px 6px;
    color:#819087;
    font-size:7.5px;
    font-weight:700;
    letter-spacing:1.45px;
}

.lessonQuickJumpGroupHeading small{
    display:grid;
    min-width:19px;
    height:18px;
    place-items:center;
    border:1px solid #354c3b;
    border-radius:999px;
    color:#66756a;
    font-size:7px;
    letter-spacing:0;
}

.lessonQuickJumpOptions{
    display:flex;
    flex-direction:column;
    gap:3px;
}

.lessonQuickJumpOption{
    display:grid;
    grid-template-columns:18px minmax(0,1fr);
    gap:8px;
    align-items:start;
    width:100% !important;
    padding:9px 10px !important;
    border:1px solid transparent;
    border-radius:6px;
    background:transparent;
    color:#a9b5ac;
    text-align:left;
    cursor:pointer;
    transition:
        border-color .14s ease,
        background .14s ease,
        color .14s ease,
        transform .14s ease;
}

.lessonQuickJumpOption:hover,
.lessonQuickJumpOption:focus-visible{
    border-color:#415947;
    background:#132017;
    color:#edf2ee;
    outline:none;
    transform:translateX(2px);
}

.lessonQuickJumpOption.active{
    border-color:#607a65;
    background:#19291d;
    color:#f0f4f1;
}

.lessonQuickJumpMarker{
    display:grid;
    width:18px;
    height:18px;
    place-items:center;
    margin-top:1px;
    border:1px solid #344a3a;
    border-radius:4px;
    color:#66806b;
    font-size:8px;
    font-weight:700;
}

.lessonQuickJumpOption.active .lessonQuickJumpMarker{
    border-color:#729078;
    color:#9cbaa1;
}

.lessonQuickJumpOptionCopy{
    min-width:0;
}

.lessonQuickJumpOptionCopy strong,
.lessonQuickJumpOptionCopy small{
    display:block;
}

.lessonQuickJumpOptionCopy strong{
    color:inherit;
    font-size:9px;
    line-height:1.35;
    letter-spacing:.15px;
}

.lessonQuickJumpOptionCopy small{
    margin-top:3px;
    overflow:hidden;
    color:#68786d;
    font-size:7px;
    line-height:1.25;
    letter-spacing:.55px;
    text-overflow:ellipsis;
    text-transform:uppercase;
    white-space:nowrap;
}

@media(max-width:1100px){
    .lessonQuickJumpMenu{
        position:relative;
        top:auto;
        right:auto;
        left:auto;
        margin-top:7px;
        max-height:46vh;
        box-shadow:
            0 12px 28px rgba(0,0,0,.32);
    }
}

/* ==========================================
   LESSON PHOTO SECTIONS
========================================== */

.lessonPhotoFigure{
    margin:0;
    overflow:hidden;
    border:1px solid #3b5241;
    border-radius:12px;
    background:#08100b;
    box-shadow:
        0 14px 34px rgba(0,0,0,.22);
}

.lessonPhotoImage{
    display:block;
    width:100%;
    height:auto;
    max-height:620px;
    object-fit:contain;
    background:#030604;
}

.lessonPhotoCaption{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:14px 20px;
    align-items:start;
    padding:15px 17px;
    border-top:1px solid rgba(59,82,65,.72);
    background:
        linear-gradient(
            145deg,
            rgba(15,24,17,.98),
            rgba(8,14,10,.98)
        );
}

.lessonPhotoCaptionText{
    margin:0;
    color:#9aa79d;
    font-size:11px;
    line-height:1.58;
}

.lessonPhotoFocus{
    display:flex;
    flex-direction:column;
    gap:4px;
    max-width:270px;
    padding-left:14px;
    border-left:1px solid #405846;
}

.lessonPhotoFocus span{
    color:#738277;
    font-size:7px;
    font-weight:700;
    letter-spacing:1.5px;
}

.lessonPhotoFocus strong{
    color:#c8d4ca;
    font-size:9px;
    line-height:1.42;
}

.lessonPhotoSource{
    grid-column:1 / -1;
    color:#68776d;
    font-size:7.5px;
    line-height:1.45;
    letter-spacing:.35px;
}

.lessonPhotoSource a{
    color:#829a86;
    text-decoration:none;
}

.lessonPhotoSource a:hover,
.lessonPhotoSource a:focus-visible{
    color:#b7c9bb;
    text-decoration:underline;
    outline:none;
}

@media(max-width:700px){
    .lessonPhotoImage{
        max-height:430px;
    }

    .lessonPhotoCaption{
        grid-template-columns:1fr;
    }

    .lessonPhotoFocus{
        max-width:none;
        padding-top:10px;
        padding-left:0;
        border-top:1px solid #405846;
        border-left:0;
    }
}

/* ==========================================
   LESSON MARKING DECODER
========================================== */

.lessonDecoder{
    display:flex;
    flex-direction:column;
    gap:16px;
}

.lessonDecoderCode{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:stretch;
}

.lessonDecoderToken{
    flex:1 1 120px;
    min-width:110px;
    padding:14px 13px 13px;
    border:1px solid #3d5744;
    border-radius:9px;
    background:
        linear-gradient(
            145deg,
            rgba(18,30,21,.98),
            rgba(9,16,11,.98)
        );
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.025);
}

.lessonDecoderText{
    display:block;
    color:#f0f4f1;
    font-family:Consolas,"Courier New",monospace;
    font-size:24px;
    line-height:1;
    letter-spacing:1px;
}

.lessonDecoderLabel{
    display:block;
    margin-top:9px;
    color:#9eb2a2;
    font-size:8px;
    font-weight:700;
    letter-spacing:1.25px;
    text-transform:uppercase;
}

.lessonDecoderDetail{
    display:block;
    margin-top:5px;
    color:#718077;
    font-size:8px;
    line-height:1.45;
}

.lessonDecoderInterpretation{
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    gap:14px;
    align-items:start;
    padding:14px 16px;
    border-left:3px solid #56715d;
    background:#0d1710;
}

.lessonDecoderInterpretation span{
    padding-top:2px;
    color:#7d9182;
    font-size:7px;
    font-weight:700;
    letter-spacing:1.45px;
    white-space:nowrap;
}

.lessonDecoderInterpretation p{
    margin:0;
    color:#b7c4ba;
    font-size:11px;
    line-height:1.62;
}

.lessonDecoderNote{
    margin:0;
    padding:12px 14px;
    border:1px solid rgba(72,94,78,.58);
    border-radius:7px;
    background:rgba(11,18,13,.7);
    color:#7e8d82;
    font-size:9px;
    line-height:1.6;
}

@media(max-width:700px){
    .lessonDecoderToken{
        flex-basis:calc(50% - 8px);
        min-width:0;
    }

    .lessonDecoderText{
        font-size:20px;
    }

    .lessonDecoderInterpretation{
        grid-template-columns:1fr;
        gap:7px;
    }
}

/* ==========================================
   IMAGE-BASED LESSON QUIZZES
========================================== */

.lessonQuizImageWrap{
    margin:15px 0 18px;
    overflow:hidden;
    border:1px solid #3c5543;
    border-radius:8px;
    background:#050a07;
}

.lessonQuizImage{
    display:block;
    width:100%;
    max-height:480px;
    object-fit:contain;
    background:#050a07;
}

@media(max-width:700px){
    .lessonQuizImage{
        max-height:360px;
    }
}
