@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{--ink:#152929;--muted:#5d6e70;--paper:#f4f7f6;--line:#d8e1df;--green:#145b4a;--lime:#d5f476;--blue:#324ccb}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',Arial,sans-serif;font-size:16px;line-height:1.6}h1,h2,h3,.brand,.big{font-family:'Space Grotesk',Arial,sans-serif}h1{font-size:clamp(2.3rem,5vw,4.4rem);line-height:1.08;letter-spacing:-.045em;margin:15px 0 22px}h2{font-size:1.7rem;line-height:1.2}h3{font-size:1.25rem}button,a,input,select{touch-action:manipulation}a{color:inherit}button,.button{font:inherit;cursor:pointer;border:0;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:10px;background:var(--green);color:white;border-radius:9px;padding:12px 21px;font-weight:600}button:hover,.button:hover{filter:brightness(.94)}button:disabled{cursor:default;opacity:.7}a:focus-visible,button:focus-visible,select:focus-visible{outline:3px solid #e69932;outline-offset:4px}header{max-width:1240px;margin:auto;min-height:100px;display:flex;align-items:center;justify-content:space-between;padding:20px 32px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:12px;font-size:1.6rem;font-weight:700;text-decoration:none}.logo{display:inline-flex;align-items:center;justify-content:center;background:var(--green);color:white;width:43px;height:43px;border-radius:12px}.logo span{color:var(--lime)}.teacher{font:600 12px 'DM Sans',sans-serif;letter-spacing:.13em;border-left:1px solid var(--line);padding-left:15px;margin-left:8px}.home-link{font-size:14px;text-decoration:none}main{max-width:1176px;min-height:74vh;margin:0 auto;padding:48px 0 60px}.eyebrow{font-size:13px;letter-spacing:.13em;font-weight:700;text-transform:uppercase;color:var(--green)}.intro{display:flex;align-items:flex-end;justify-content:space-between;gap:35px;margin-bottom:34px}.intro p{max-width:380px;color:var(--muted);margin-bottom:25px}.intro h1{max-width:710px}.grid{display:grid;grid-template-columns:1fr 1fr;gap:25px}.grade{position:relative;border-radius:20px;padding:32px;overflow:hidden;min-height:355px;background:var(--green);color:white;display:flex;flex-direction:column;align-items:flex-start}.grade.blue{background:#243da5}.grade .tag{background:#ffffff18;border:1px solid #ffffff35;padding:5px 12px;border-radius:30px;font-size:13px}.grade h2{font-size:2.9rem;letter-spacing:-.035em;margin:25px 0 4px}.grade p{color:#e2eae6;margin:0 0 23px}.grade .button{background:var(--lime);color:var(--ink);margin-top:auto;min-width:175px}.grade.blue .button{background:#e1e6ff}.grade .formula{position:absolute;right:22px;top:75px;font:italic 52px Georgia;transform:rotate(-9deg);color:#ffffff22;pointer-events:none}.features{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;margin:40px 0}.feature{display:flex;gap:14px}.feature b{display:block}.feature p{margin:4px 0;color:var(--muted);font-size:14px}.icon{font:24px Georgia;background:white;border:1px solid var(--line);width:48px;height:48px;flex:none;border-radius:12px;display:grid;place-items:center}.note{padding:19px 23px;border:1px solid var(--line);border-radius:12px;color:var(--muted);font-size:14px}.topline{display:flex;justify-content:space-between;gap:20px;align-items:center}.back{color:var(--muted);font-size:14px;text-decoration:none}.course-heading h1{font-size:3.3rem;margin-bottom:12px}.course-heading p{color:var(--muted)}.count{background:var(--lime);border-radius:30px;padding:7px 16px;font-size:14px}.topics{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:30px}.topic{background:white;border:1px solid var(--line);border-radius:15px;padding:24px;display:flex;flex-direction:column}.topic .num{color:var(--green);font-size:14px}.topic h3{margin:15px 0 7px}.topic p{font-size:14px;color:var(--muted);flex:1}.topic a{font-size:14px;font-weight:700;text-decoration:none;margin-top:15px}.tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);margin:28px 0}.tabs a{padding:12px 22px;text-decoration:none;border-bottom:3px solid transparent;font-weight:600}.tabs a.active{border-color:var(--green);color:var(--green)}.lesson-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:24px}.panel{background:white;border:1px solid var(--line);border-radius:16px;padding:30px}.panel h2{margin-top:0}.example{background:#e8efec}.math{font-family:Georgia,serif;font-size:1.5rem;line-height:1.7}.step{padding:13px 0;border-bottom:1px solid #cedbd4}.tip{margin-top:22px;background:#f3f8e4;padding:15px 20px;border-radius:9px}.practicebar{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-top:24px}.secondary{background:white;border:1px solid var(--line);color:var(--ink)}.game{max-width:820px;margin:auto}.gamehead{display:flex;justify-content:space-between;gap:15px;margin-bottom:22px}.meter{height:7px;background:#e5ebe8;border-radius:9px;margin:16px 0 30px}.meter div{height:100%;background:var(--green);border-radius:9px}.question{font-size:1.55rem;margin:22px 0 30px}.choices{display:grid;grid-template-columns:1fr 1fr;gap:13px}.choice{background:white;border:1px solid #bccbc5;color:var(--ink);min-height:66px}.choice.correct{background:#e6f4d9;border-color:#397938}.choice.wrong{background:#ffebe8;border-color:#b64736}.feedback{margin-top:25px;padding:18px;background:#edf2ef;border-radius:10px}.feedback p{margin:5px 0 15px}.big{font-size:4rem;margin:0}.worksheet{margin-top:24px}.sheet-head{border-bottom:2px solid var(--ink);padding-bottom:20px}.problems{display:grid;grid-template-columns:1fr 1fr;gap:25px}.problem{min-height:150px;border-bottom:1px solid var(--line);padding-top:20px}.answerkey{margin-top:30px}.answerkey li{margin:10px 0}select{font:inherit;padding:10px;border:1px solid var(--line);border-radius:8px;background:white}footer{max-width:1240px;margin:auto;border-top:1px solid var(--line);padding:25px 32px;display:flex;justify-content:space-between;font-size:13px;color:var(--muted)}.fraction{display:inline-flex;flex-direction:column;text-align:center;vertical-align:middle;font-family:Georgia;line-height:1.2;margin:0 5px}.fraction span:first-child{border-bottom:1px solid;padding:0 4px 3px}.fraction span:last-child{padding-top:3px}.sources{margin-top:28px;font-size:14px;color:var(--muted)}@media(max-width:1240px){main{padding:35px 25px 50px}}@media(max-width:760px){header{padding:18px 20px;min-height:80px}.teacher{display:none}.intro{display:block}.intro p{margin:0 0 22px}.grid,.lesson-grid{grid-template-columns:1fr}.topics{grid-template-columns:1fr 1fr}.grade{min-height:320px}.features{grid-template-columns:1fr;gap:20px}.course-heading h1{font-size:2.5rem}.tabs a{padding:12px 15px}.topline,.practicebar{flex-wrap:wrap}.panel{padding:23px}footer{gap:20px;flex-wrap:wrap}.problems{grid-template-columns:1fr}.choices{grid-template-columns:1fr}}@media(max-width:420px){.topics{grid-template-columns:1fr}.brand{font-size:1.3rem}.home-link{font-size:13px}.grade h2{font-size:2.6rem}}@media print{header,footer,.topline,.course-heading,.tabs,.practicebar,.sources,.no-print{display:none!important}body{background:white;color:black}main{padding:0;max-width:none}.panel{border:0;padding:0}.worksheet{margin:0}.problems{grid-template-columns:1fr 1fr}.problem{break-inside:avoid;min-height:165px}.answerkey{break-before:page}.note{display:none}button{display:none!important}}
.level{display:inline-block;flex:none;background:#e8eee9;color:#284c3e;border-radius:5px;padding:3px 9px;font:600 .8rem 'DM Sans',Arial,sans-serif}.level-easy{background:#e3f3da;color:#28511b}.level-medium{background:#fff0ce;color:#704900}.level-hard{background:#e3e9ff;color:#2e4090}.level-challenge{background:#f3e4fa;color:#68217c}.question-label{display:flex;align-items:center;flex-wrap:wrap;gap:10px;font-size:.875rem;color:var(--muted)}.roadmap{margin-top:30px;border-top:1px solid var(--line);padding-top:5px}.roadmap ol{list-style:none;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:12px}.roadmap li{display:flex;gap:10px;align-items:flex-start;font-size:.875rem}.roadmap .level{min-width:98px;text-align:center}.challenge-callout{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px;background:#f3eefa;border-radius:12px;margin-top:30px}.challenge-callout p{margin:5px 0;color:var(--muted)}.challenge-callout .button{background:#623680}.review{margin-top:30px}.review summary{cursor:pointer;font-weight:700}.review article,.answerkey article{border-bottom:1px solid var(--line);padding:20px 0;break-inside:avoid}.review article p{margin:12px 0}.worksheet-options{display:flex;justify-content:space-between;align-items:center;gap:24px;font-size:.875rem;margin-top:20px}.worksheet-options label{display:flex;align-items:center;gap:10px;font-weight:600}.worksheet-options input{width:20px;height:20px;accent-color:var(--green)}.worksheet-options>span{max-width:380px;color:var(--muted)}.challenge-sheet{margin-top:30px;border-top:2px solid var(--line);padding-top:20px}.problem p{margin:12px 0}.topic-meta{font-size:.8rem;color:var(--green)}.choice{overflow-wrap:anywhere;font-size:1.15rem}.question.math{font-size:1.45rem}.tabs{flex-wrap:wrap}.fraction .fraction{font-size:.85em}.math sup .fraction{font-size:.8em}.gamehead{flex-wrap:wrap}@media(max-width:760px){.roadmap ol{grid-template-columns:1fr}.challenge-callout,.worksheet-options{flex-direction:column;align-items:flex-start}.tabs{gap:0}.tabs a{padding:12px 10px;font-size:.875rem}.big{font-size:3rem}}@media print{.challenge-sheet{break-before:page}.problem{min-height:185px}.level{background:none;color:black;border:1px solid #ccc;font-size:10pt}.question-label{font-size:10pt}.problem .math{font-size:13pt}.answerkey .math{font-size:13pt}.answerkey article{padding:10px 0}.worksheet .sheet-head p{margin:8px 0}.problems{gap:15px 25px}.worksheet .fraction{break-inside:avoid}}
.video-lesson{display:flex;align-items:center;gap:24px;background:#152f35;color:#fff;border-radius:16px;padding:28px;margin-bottom:26px}.video-lesson .eyebrow{color:var(--lime)}.video-lesson h2{font-size:1.4rem;margin:6px 0}.video-lesson p{margin:6px 0;color:#e2eae6}.video-source{font-size:.875rem;color:#c8dbd8}.video-copy{flex:1;min-width:0}.video-play{display:grid;place-items:center;border:1px solid #a4bfba;border-radius:50%;width:58px;height:58px;flex:none;color:var(--lime);font-size:1.3rem}.video-lesson .button{background:var(--lime);color:var(--ink);flex:none}.freshbar{max-width:820px;margin:0 auto 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.freshbar span{font-size:.875rem;color:var(--muted)}.sheet-actions{display:flex;gap:12px;flex-wrap:wrap}.level{font-size:.875rem}.topic-meta{font-size:.875rem}@media(max-width:760px){.video-lesson{flex-wrap:wrap;padding:22px;gap:16px}.video-play{width:44px;height:44px}.video-copy{flex-basis:calc(100% - 60px)}.video-lesson .button{width:100%}.sheet-actions{width:100%}.freshbar .secondary{width:100%}}@media print{.video-lesson,.freshbar{display:none!important}}

.video-lesson{display:block}.video-heading{display:flex;align-items:center;gap:20px;margin-bottom:20px}.video-player{position:relative;aspect-ratio:16/9;background:#000;border-radius:10px;overflow:hidden;max-width:900px;margin:auto}.video-player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.video-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px}.video-actions p{font-size:1rem}.video-actions .button{white-space:nowrap}@media(max-width:760px){.video-actions{flex-direction:column;align-items:stretch}.video-heading{gap:12px}.video-lesson{padding:16px}.video-play{display:none}.video-lesson h2{font-size:1.2rem}}

.curriculum-unit{margin:40px 0}.curriculum-unit h2{margin:8px 0 22px}.standards-line{color:var(--muted);font-size:14px;line-height:1.7}.topic .num{display:block;line-height:1.7;overflow-wrap:anywhere}.sources{line-height:1.7}

.unit-index{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:10px;margin:24px 0}.unit-index a{padding:10px 14px;border:1px solid var(--line);border-radius:8px;font-size:14px;line-height:1.5;text-decoration:none;background:white}.unit-index a:hover{background:var(--lime)}.curriculum-unit{scroll-margin-top:20px}

.graph-example{margin-top:24px}.graph-example svg{display:block;width:100%;max-width:700px;height:auto;margin:0 auto}.graph-example>p{max-width:75ch}
.second-example{margin-top:22px;background:#edf4fb}.second-example .math{margin:.25rem 0;font-size:1.3rem}.second-example p:last-child{margin-bottom:0}.answerkey article p{overflow-wrap:anywhere}@media print{.answerkey{break-before:page}.answerkey article{page-break-inside:avoid}.worksheet .problem{min-height:160px}.second-example{display:none}}
.topic-search{display:block;margin:26px 0 6px;font-weight:700}.topic-search input{display:block;width:100%;max-width:540px;padding:13px 16px;margin-top:8px;border:1px solid var(--line);border-radius:10px;font:inherit;background:white}.topic-search input:focus-visible{outline:3px solid #e69932;outline-offset:2px}@media print{.topic-search{display:none}}
.idea-overview{margin-top:22px}.idea-overview ul{display:flex;flex-wrap:wrap;gap:9px;padding:0;margin:12px 0 0;list-style:none}.idea-overview li{padding:7px 12px;border-radius:7px;background:#ecf4ed;border:1px solid #d2e6d8;font-size:.9rem}@media print{.idea-overview{display:none}}
/* MathLab night theme: cobalt work surfaces and clear turquoise actions. */
:root{--ink:#eef5ff;--muted:#aebdd2;--paper:#0b1425;--line:#31435e;--green:#4ce5d0;--lime:#e7ff72;--blue:#8694ff;--surface:#16233a;--surface-raised:#1d2e4a}
body{background:radial-gradient(circle at 85% 0%,#1b2e54 0,transparent 37%),radial-gradient(circle at 0 44%,#102d3b 0,transparent 36%),var(--paper);color:var(--ink)}
header{border-color:var(--line)}.brand{letter-spacing:-.05em}.logo{background:var(--lime);color:#10203a;box-shadow:0 0 0 5px #e7ff721a}.logo span{color:#255f99}.home-link,.back{color:#cfdbed}.home-link:hover,.back:hover{color:var(--lime)}
h1{letter-spacing:-.06em}.intro .eyebrow,.eyebrow,.topic .num,.topic-meta{color:var(--green)}.intro h1{background:linear-gradient(120deg,#f8fbff 25%,#7de8ec 85%);background-clip:text;-webkit-background-clip:text;color:transparent}.intro p,.course-heading p,.topic p,.feature p{color:var(--muted)}
button,.button{background:var(--green);color:#092638;box-shadow:0 8px 22px #02091432;transition:transform .2s ease,filter .2s ease,background .2s ease}button:hover,.button:hover{transform:translateY(-2px);filter:brightness(1.08)}button:focus-visible,a:focus-visible,input:focus-visible{outline-color:var(--lime)}
.grade{border:1px solid #4763bb;background:linear-gradient(140deg,#293f88,#162956 68%,#102339);box-shadow:0 18px 40px #050e2040}.grade.blue{border-color:#3d95a8;background:linear-gradient(140deg,#144c69,#173353 65%,#182453)}.grade .tag{border-color:#ffffff59;background:#ffffff1b;color:#f3f7ff}.grade p{color:#d7e4f7}.grade .formula{color:#ffffff30;font-size:clamp(2.5rem,5vw,4.5rem)}.grade .button,.grade.blue .button{background:var(--lime);color:#10203a}.grade.blue .button{background:#9ff3ec}
.feature .icon{background:#233954;border-color:#49627d;color:var(--lime)}.note,.panel,.topic,.unit-index a{background:var(--surface);border-color:var(--line);color:var(--ink)}.topic{box-shadow:0 12px 24px #050d1c28;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}.topic:hover{transform:translateY(-3px);border-color:#4ce5d0a3;box-shadow:0 17px 35px #030c1e66}.topic a{color:var(--lime)}.topic a:hover{text-decoration:underline}.count{background:#204e57;color:#a5fff0;border:1px solid #448f91}.note{color:var(--muted)}
.unit-index a:hover{background:#20445c;color:var(--lime)}.tabs{border-color:var(--line)}.tabs a{color:#bdcee4}.tabs a:hover{color:#fff}.tabs a.active{border-color:var(--green);color:var(--green)}.standards-line,.sources,.question-label,.worksheet-options>span,.freshbar span{color:var(--muted)}.sources a{color:var(--green)}
.example,.second-example{background:#1c3549;border-color:#406677}.step{border-color:#416070}.tip{background:#283c4e;border-left:3px solid var(--lime);color:#e9f6f7}.practicebar{color:var(--ink)}.secondary,.choice{background:var(--surface-raised);border:1px solid #4a6180;color:var(--ink)}.secondary:hover,.choice:hover{background:#2c4564}.choice.correct{background:#18473e;border-color:#62d6a0;color:#e6fff2}.choice.wrong{background:#5b3037;border-color:#f09a94;color:#fff0ec}.feedback{background:#25384e;color:var(--ink)}.meter{background:#30435d}.meter div{background:var(--green)}.level{background:#2a4255;color:#d2f4ed}.level-easy{background:#214a3c;color:#bdf4c7}.level-medium{background:#554523;color:#ffe3a2}.level-hard{background:#353f73;color:#dbe0ff}.level-challenge{background:#513865;color:#f0d3ff}.challenge-callout{background:#30294c}.challenge-callout p{color:#cfc4e4}.challenge-callout .button{background:#d4b5ff;color:#251734}.review article,.answerkey article{border-color:var(--line)}.roadmap{border-color:var(--line)}
.topic-search input,select{background:#1e304b;border-color:#526989;color:var(--ink)}.topic-search input::placeholder{color:#acbed2}.idea-overview li{background:#234657;border-color:#407480;color:#d5f6f3}.video-lesson{background:#172f49;border:1px solid #355d72}.video-lesson .eyebrow{color:var(--lime)}
/* Worksheets read like paper on screen and print cleanly. */
.worksheet{background:#f8fbff;border-color:#a9bdd2;color:#142637}.worksheet .eyebrow{color:#125c69}.worksheet .question-label,.worksheet-options+.worksheet .sheet-head span{color:#41586c}.worksheet .level{background:#e3f0f0;color:#174756}.worksheet .problem,.worksheet .answerkey article{border-color:#c4d2dc}.worksheet .sheet-head{border-color:#243c50}.worksheet .answerkey{color:#162b3b}.worksheet .challenge-sheet{border-color:#c4d2dc}.worksheet .secondary{background:#eaf4fa;color:#17334b;border-color:#b0c7d5}.worksheet .secondary:hover{background:#d6eaf6}
@media(max-width:760px){.grade{min-height:295px}.intro h1{font-size:clamp(2.3rem,11vw,3.4rem)}.topic{box-shadow:none}}
@media print{body{background:white!important;color:black!important}.worksheet{background:white!important;border:0;color:black}.worksheet .level{background:white;color:black}.worksheet .question-label,.worksheet .answerkey,.worksheet .eyebrow{color:black}.worksheet .sheet-head{border-color:black}.problem,.worksheet .problem{border-color:#bbb}}
/* Focused Precalculus idea journey */
.idea-list{display:grid;gap:12px;margin-top:20px}.idea-link{display:flex;align-items:center;gap:18px;padding:20px;border:1px solid var(--line);border-radius:14px;background:#f8faf9;text-decoration:none;transition:transform .18s,border-color .18s}.idea-link:hover,.idea-link:focus-visible{transform:translateY(-2px);border-color:var(--green)}.idea-link>span:nth-child(2){flex:1}.idea-link b{display:block;font-size:1.08rem}.idea-link small{display:block;color:var(--muted);font-size:.88rem;margin-top:3px}.idea-number{font-weight:700;color:var(--green);font-size:1.2rem}.idea-hero{margin:20px 0}.idea-hero h2{margin:10px 0}.idea-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}.idea-columns .panel{min-width:0}.idea-columns .math,.idea-question .math{overflow-wrap:anywhere}.worked-answer{padding:12px 16px;background:#eff5f1;border-radius:9px}.walk-frame{min-height:170px;background:#143d38;color:white;border-radius:13px;padding:20px;display:flex;flex-direction:column;justify-content:center;overflow:hidden}.walk-frame .math{font-size:1.2rem;line-height:1.55;margin:10px 0}.walk-progress{color:var(--lime);font-size:.85rem;font-weight:700}.walk-frame.playing .walk-text{animation:walk-in .45s ease both}@keyframes walk-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.walkthrough button{margin-top:16px}.walk-note{font-size:.9rem;color:var(--muted)}.idea-practice{margin-top:22px}.idea-question{border-top:1px solid var(--line);padding:22px 0;break-inside:avoid}.idea-question h3{font-size:1.05rem;font-weight:600}.idea-question h3 .math{font-size:1.2rem;font-weight:400}.idea-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.idea-choices button{justify-content:flex-start;text-align:left;min-height:52px;overflow-wrap:anywhere}.idea-choices button.selected{border-color:var(--green);box-shadow:inset 0 0 0 1px var(--green)}.idea-feedback{margin-top:12px;line-height:1.6}.idea-feedback:not(:empty){padding:13px 16px;border-radius:9px}.idea-feedback.right{background:#e8f5df}.idea-feedback.retry{background:#fff0e6}@media(max-width:760px){.idea-columns{grid-template-columns:1fr}.idea-choices{grid-template-columns:1fr}.idea-link{padding:16px}.walk-frame{min-height:155px}}@media print{.walkthrough button,.idea-choices button{display:none}.idea-columns{grid-template-columns:1fr 1fr}.idea-question{min-height:120px}}
.idea-video{display:block;width:100%;aspect-ratio:16/9;background:#143d38;border-radius:12px}.walk-note summary{cursor:pointer;font-weight:600}.walk-note li{margin:8px 0}
/* Precalculus layout and contrast refinements */
.grid{grid-template-columns:minmax(0,760px)}
.grade{min-height:300px}
.curriculum-unit{padding-top:22px;border-top:1px solid var(--line);margin:32px 0 44px}
.curriculum-unit .topics{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}
.topic{min-width:0;min-height:210px}
.topic h3{line-height:1.35;overflow-wrap:anywhere}
.idea-overview{margin-top:24px}
.idea-list{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.idea-link{background:var(--surface-raised);border-color:#526989;color:var(--ink);min-width:0;align-items:flex-start}
.idea-link:hover,.idea-link:focus-visible{background:#29425e;border-color:var(--green)}
.idea-link b{color:#f5faff;line-height:1.35;overflow-wrap:anywhere}
.idea-link small{color:#c5d5e8}
.idea-number{color:var(--lime)}
.worked-answer{background:#24485b;color:#f5faff;border-left:3px solid var(--green)}
.idea-practice{max-width:900px;margin:24px auto 0}
.idea-question{padding:22px 0}
.idea-question h3{line-height:1.5;margin:0 0 16px}
.idea-feedback.right{background:#1b493e;color:#eafff3;border:1px solid #5cbd9b}
.idea-feedback.retry{background:#563b32;color:#fff2e8;border:1px solid #c88e68}
.idea-choices button.selected{background:#2d5365;color:#fff}
@media(max-width:760px){.grid,.curriculum-unit .topics,.idea-list{grid-template-columns:1fr}.grade{min-height:290px}.curriculum-unit{margin:26px 0 36px}.idea-link{padding:16px}.idea-practice{max-width:none}}
@media print{.idea-link,.worked-answer{background:white!important;color:black!important}.idea-feedback.right,.idea-feedback.retry{background:white!important;color:black!important}}
/* Explicit contrast for idea cards, including cached theme combinations. */
.idea-link{background:#1d2e4a!important;color:#f5faff!important}
.idea-link b{color:#f5faff!important}
.idea-link small{color:#d1deef!important}
.idea-link:hover{background:#29425e!important}
.worked-steps{padding-left:1.4rem;margin:18px 0 0}
.worked-steps li{padding:7px 0;border-bottom:1px solid var(--line);line-height:1.65}
.worked-steps li:last-child{border:0;font-weight:700;color:#b9f9ee}
.glossary{margin-top:18px;border-top:1px solid var(--line);padding-top:12px}
.glossary summary{cursor:pointer;font-weight:700;color:var(--lime)}
.glossary dl{display:grid;grid-template-columns:max-content 1fr;gap:8px 20px;margin-bottom:0}
.glossary dt{font-weight:700}.glossary dd{margin:0;color:#d4e4f4}
@media(max-width:540px){.glossary dl{grid-template-columns:1fr;gap:2px}.glossary dd{margin-bottom:12px}}
