.ege-hero h1{font-size:clamp(2.4rem,5.6vw,5.5rem);max-width:1050px;line-height:1.08;overflow-wrap:anywhere}.ege-back{display:inline-block;margin-bottom:30px;text-decoration:underline;text-underline-offset:5px}.ege-lead{max-width:760px;font-size:1.15rem;line-height:1.8}.ege-pills{display:flex;flex-wrap:wrap;gap:10px;margin:24px 0}.ege-pills span{border:1px solid var(--line);border-radius:30px;padding:8px 14px;font-size:14px}.ege-body{max-width:1080px;padding-bottom:80px}.ege-body h2{font-size:clamp(1.8rem,3vw,2.7rem);line-height:1.18;letter-spacing:-.035em}.ege-body h3{font-size:1.15rem;line-height:1.4;letter-spacing:-.015em;margin-top:26px}.ege-body p,.ege-body li{line-height:1.85}.ege-body p{margin-bottom:18px}.ege-body a:not(.btn){text-decoration:underline;text-underline-offset:4px}.ege-note{padding:24px 28px;background:var(--acid);border-left:4px solid var(--ink);line-height:1.8;margin-bottom:48px}.ege-start,.ege-topics,.ege-practice,.ege-questions,.ege-sources{margin-top:64px}.ege-topic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.ege-topic-grid a{display:flex;gap:14px;align-items:center;padding:18px;background:var(--white);border:1px solid var(--line);text-decoration:none!important;line-height:1.4}.ege-topic-grid a:hover{background:var(--acid)}.ege-topic-grid b{font-size:1.4rem;color:#3d4ccc}.ege-topic-grid span{font-size:.9rem}.ege-lesson{margin-top:36px;padding:36px;background:var(--white);border:1px solid var(--line)}.ege-lesson-heading{display:flex;gap:20px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:22px;margin-bottom:24px}.ege-lesson-heading h2{margin:0}.ege-number{display:grid;place-items:center;flex-shrink:0;width:60px;height:60px;background:var(--ink);color:var(--acid);font-weight:800;font-size:1.8rem}.ege-lesson li{padding-left:6px;margin:10px 0}.ege-trap{padding:18px 22px;background:#eeeffb;border-left:3px solid var(--blue);line-height:1.8;margin:24px 0}.ege-code-label{font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;margin-top:28px;font-weight:800}.ege-body pre{max-width:100%;overflow-x:auto;background:#171c28;color:#f0f4ff;padding:22px;margin:10px 0 24px;border-radius:4px;font:14px/1.75 Consolas,monospace;tab-size:4}.ege-body p code{overflow-wrap:anywhere;font:14px/1.7 Consolas,monospace;background:#e8e8e4;padding:2px 5px}.ege-lesson-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:20px;font-size:.9rem;border-top:1px solid var(--line);padding-top:20px;margin-top:26px}.ege-exercise{padding:26px 0;border-bottom:1px solid var(--line)}.ege-exercise h3{margin-top:0}.ege-body details{border:1px solid var(--line);background:var(--white);margin:12px 0;padding:16px 20px}.ege-body summary{cursor:pointer;font-weight:700;line-height:1.6}.ege-body details[open] summary{margin-bottom:16px}.ege-body details p:last-child{margin-bottom:0}.ege-return{display:inline-block;margin-top:12px;font-size:.85rem}.ege-body [id]{scroll-margin-top:104px}.ege-sources{padding-top:32px;border-top:2px solid var(--ink)}.ege-body a:focus-visible,.ege-body summary:focus-visible,.ege-body pre:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
@media(max-width:760px){.ege-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ege-lesson{padding:24px}.ege-lesson-heading{align-items:flex-start;gap:14px}.ege-number{width:44px;height:44px;font-size:1.3rem}.ege-note{padding:20px}.ege-body pre{padding:16px;font-size:13px}.ege-hero{padding-top:42px}}
@media(max-width:440px){.ege-topic-grid{grid-template-columns:1fr}.ege-lesson{padding:20px 16px}.ege-body h2{font-size:1.65rem}.ege-lesson-heading{flex-direction:column}.ege-body ol{padding-left:22px}.ege-body details{padding:14px}.ege-trap{padding:15px}.ege-hero h1{font-size:2.3rem}}
@media print{.site-header,.site-footer,.ege-back,.hero-actions,.ege-lesson-footer,.ege-return{display:none!important}.ege-body{width:100%;max-width:none}.ege-lesson{break-inside:auto;padding:20px 0}.ege-body pre{white-space:pre-wrap;overflow-wrap:anywhere;color:#000;background:#eee}.ege-note{background:#eee}.ege-topic-grid{grid-template-columns:repeat(3,1fr)}}
.ege-material-card{max-width:900px;border:1px solid var(--line);background:var(--white);padding:clamp(24px,5vw,56px)}.ege-material-card h2{font-size:clamp(2rem,4vw,3.5rem);line-height:1.15;margin-top:22px}.ege-material-card p{max-width:720px;line-height:1.8}.ege-material-card .btn{margin-top:16px}
.ege-education-card{margin-top:30px}
/* Separate lesson pages. */
.ege-detail-hero{padding-bottom:45px}.ege-detail-hero h1{font-size:clamp(2.3rem,5vw,4.7rem)}.ege-breadcrumbs{display:flex;flex-wrap:wrap;gap:10px;font-size:.9rem;margin-bottom:35px}.ege-breadcrumbs a{text-decoration:underline;text-underline-offset:4px}.ege-local-nav{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}.ege-local-nav a{padding:9px 14px;border:1px solid var(--line);background:var(--white);font-size:.9rem}.ege-local-nav a:hover{background:var(--acid)}.ege-detail-body{max-width:1000px}.ege-section{margin-top:42px;padding:32px;background:var(--white);border:1px solid var(--line)}.ege-types{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.ege-types article{padding:20px;background:#eeeffb}.ege-types h3{margin-top:0}.ege-types p:last-child{margin-bottom:0}.ege-source{font-size:.88rem;line-height:1.8;color:#4b4b48;border-left:3px solid var(--blue);padding:10px 16px;margin:22px 0}.ege-walkthrough{padding-left:26px}.ege-walkthrough li{padding:6px 0 6px 10px}.ege-walkthrough li::marker{font-weight:800;color:#3343bc}.ege-answer{border-left:4px solid var(--ink);background:var(--acid);padding:18px 22px;margin:24px 0}.ege-answer pre{background:transparent;color:var(--ink);padding:0;margin:8px 0 0;white-space:pre-wrap;font-size:1.1rem}.ege-files{border:1px solid var(--line);padding:22px;margin-top:30px}.ege-files h3{margin-top:0}.ege-files a{overflow-wrap:anywhere}.ege-figure{margin:24px 0}.ege-figure img{display:block;width:100%;height:auto;border:1px solid var(--line)}.ege-figure figcaption{font-size:.85rem;margin-top:10px;line-height:1.6;color:#555}.ege-plots{display:grid;grid-template-columns:1fr 1fr;gap:18px}.ege-pagination{display:flex;justify-content:space-between;flex-wrap:wrap;gap:16px;margin:45px 0 20px;padding-top:24px;border-top:1px solid var(--line)}.ege-topic-grid small{display:block;font-size:.75rem;color:#555;margin-top:8px}.ege-table-wrap{overflow-x:auto}.ege-table-wrap table{width:100%;border-collapse:collapse;font-size:.9rem}.ege-table-wrap th,.ege-table-wrap td{text-align:left;padding:14px;border:1px solid var(--line);vertical-align:top}.ege-table-wrap th{background:#eeeffb}.ege-body #types,.ege-body #theory,.ege-body #worked,.ege-body #practice,.ege-body #questions{scroll-margin-top:98px}.ege-detail-body h2{font-size:clamp(1.65rem,3vw,2.4rem)}
@media(max-width:700px){.ege-types,.ege-plots{grid-template-columns:1fr}.ege-section{padding:22px 18px}.ege-types article{padding:16px}.ege-source{padding:10px 12px}.ege-local-nav{gap:7px}.ege-local-nav a{font-size:.8rem;padding:8px 10px}.ege-files{padding:16px}.ege-walkthrough{padding-left:20px}.ege-walkthrough li{padding-left:5px}.ege-pagination a{font-size:.85rem}}
@media print{.ege-local-nav,.ege-pagination{display:none}.ege-section{border:0;padding:0}.ege-types{display:block}.ege-answer pre{color:#000}.ege-figure{break-inside:avoid}}

/* Long formulas and source titles should wrap within the mobile lesson. */
.ege-body p,.ege-body li,.ege-body summary{overflow-wrap:anywhere}
/* Shared browser Python practice area used by every course page. */
.ege-student-bridge{margin:28px 0;padding-top:8px;border-top:1px solid var(--line)}.ege-table-wrap caption{text-align:left;font-weight:700;line-height:1.5;padding:12px 0}.ege-table-wrap:focus-visible{outline:3px solid var(--blue);outline-offset:3px}.ege-reading-route{line-height:1.8;margin-top:24px}.ege-table-wrap{max-width:100%}.ege-table-hint{display:none}
@media(max-width:700px){.ege-body .ege-table-hint{display:block;font-size:.82rem;line-height:1.6;color:#555;margin-top:10px}}
.python-lab{margin-top:54px;background:#f4f4f0;border:2px solid var(--ink)}
.python-lab>label{display:block;font-weight:800;margin:18px 0 8px}
.python-lab textarea{box-sizing:border-box;display:block;width:100%;max-width:100%;border:1px solid #8c8c87;background:#fff;color:#171c28;padding:16px;font:15px/1.6 Consolas,monospace;tab-size:4;resize:vertical}
#python-lab-code{min-height:260px}
#python-lab-input{min-height:82px}
.python-lab input[type=file]{display:block;max-width:100%;font:inherit}
.python-lab-help{font-size:.85rem;color:#555;margin:12px 0 18px}
.python-lab-actions{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 8px}
.python-lab-actions button{cursor:pointer}
.python-lab-actions button:disabled{cursor:not-allowed;opacity:.5}
.python-lab-status{font-weight:700;min-height:1.5em}
.ege-body .python-lab-output{min-height:68px;white-space:pre-wrap;overflow-wrap:anywhere}
.python-example-run{margin:-12px 0 16px;padding:8px 12px;border:1px solid var(--ink);background:var(--acid);color:var(--ink);font:inherit;font-size:.85rem;font-weight:700;line-height:1.4;cursor:pointer}
.python-example-run:hover{background:#fff}
.python-example-run:focus-visible,.python-lab textarea:focus-visible,.python-lab input:focus-visible,.python-lab button:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
@media(max-width:700px){.python-lab{padding:22px 18px}.python-lab textarea{font-size:13px}}
@media print{.python-lab,.python-example-run{display:none!important}}
/* Preparation order modal. */
/* Prerequisites, mastery tests and the sequential EGE route. */
.course-foundation{border-left:4px solid var(--blue,#5367ff);padding:20px 24px;margin:24px 0;background:#f3f4ef}
.course-foundation dl{margin:16px 0}.course-foundation dt{font-weight:750;margin-top:14px}.course-foundation dd{margin:4px 0 12px;line-height:1.75}
.course-code-guide{margin:20px 0}.course-code-guide li{margin:10px 0;line-height:1.75}
.ege-course-progress{margin:24px 0}.ege-course-progress label{font-weight:750}.ege-course-progress progress{display:block;width:100%;height:14px;margin:12px 0;accent-color:var(--blue,#5367ff)}
.ege-course-locked{display:flex;gap:20px;padding:22px;border:1px solid var(--line,#d6d7d2);background:#efefea;color:#62645f}
.ege-course-locked>b{font-size:1.5rem}.ege-course-locked small{display:block;margin-top:8px;font-size:.8rem}
.ege-quiz fieldset{border:1px solid var(--line,#d6d7d2);padding:20px;margin:26px 0;min-width:0}
.ege-quiz legend{padding:0 8px;font-size:1.1rem;font-weight:750;line-height:1.5;max-width:100%;overflow-wrap:anywhere}
.ege-quiz label{display:flex;align-items:flex-start;gap:12px;padding:12px 10px;margin:6px 0;cursor:pointer;line-height:1.65}
.ege-quiz label:has(input:checked){background:#e7edff}.ege-quiz input[type=radio]{width:19px;height:19px;flex-shrink:0;margin-top:5px;accent-color:var(--blue,#5367ff)}
.ege-quiz label:focus-within{outline:2px solid var(--blue,#5367ff);outline-offset:2px}.ege-quiz-explanation{border-top:1px solid var(--line,#d6d7d2);padding-top:16px}
.ege-certificate-dialog{box-sizing:border-box;width:min(720px,calc(100% - 28px));max-height:calc(100dvh - 40px);overflow:auto;padding:30px;background:#fbfaf6;color:var(--ink,#121316);border:1px solid var(--ink,#121316)}
.ege-certificate-dialog::backdrop{background:#121316b8}.ege-certificate-dialog input[type=text]{box-sizing:border-box;display:block;width:100%;padding:14px;margin:12px 0;font:inherit;border:1px solid var(--ink,#121316)}
.ege-certificate-dialog p{line-height:1.7}.ege-certificate-dialog [role=alert]{color:#93361f}
@media(max-width:600px){.course-foundation{padding:16px}.ege-quiz fieldset{padding:12px}.ege-course-locked{padding:18px}.ege-certificate-dialog{padding:20px}}
.ege-order-open{overflow:hidden}.ege-preparation-dialog{box-sizing:border-box;width:min(900px,calc(100% - 28px));max-height:calc(100dvh - 40px);padding:0;border:1px solid var(--ink);border-radius:8px;background:var(--white,#fbfaf6);color:var(--ink,#121316);overflow:auto}.ege-preparation-dialog::backdrop{background:rgba(18,19,22,.72)}.ege-order-header{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 28px;background:var(--white,#fbfaf6);border-bottom:1px solid var(--line);z-index:1}.ege-order-header h2{margin:0;font-size:clamp(1.4rem,4vw,2rem)}.ege-order-close{cursor:pointer}.ege-order-header button{flex-shrink:0;width:44px;height:44px;border:1px solid var(--line);background:transparent;color:inherit;font-size:22px}.ege-order-content{padding:8px 28px 28px;line-height:1.8}.ege-order-content h3{margin:20px 0 8px;font-size:1.1rem}.ege-order-content p{margin:10px 0 18px}.ege-order-content a{color:inherit;text-decoration:underline;text-underline-offset:4px}.ege-order-stages{list-style:none;padding:0;margin:0}.ege-order-stages>li{padding:4px 0 10px;border-bottom:1px solid var(--line)}.ege-order-sequence{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-weight:700}.ege-order-sequence a{display:inline-block;padding:4px 9px;border:1px solid var(--line)}.ege-preparation-dialog a:focus-visible,.ege-preparation-dialog button:focus-visible{outline:3px solid var(--blue);outline-offset:3px}@media(max-width:700px){.ege-order-header{padding:14px 18px}.ege-order-content{padding:8px 18px 22px}}@media print{.ege-preparation-dialog,#ege-preparation-open{display:none!important}}
