/* An editorial reading canvas, with a persistent outline and quiet worked examples. */
.chem-lesson{max-width:1120px;margin:auto;min-width:0;overflow-wrap:anywhere}
.chem-hero{display:grid;grid-template-columns:100px minmax(0,1fr);gap:1.5rem;background:#fff;border:1px solid var(--border);border-radius:16px;padding:clamp(1.2rem,3vw,2rem);margin:1rem 0 1.5rem}
.chem-topic-stamp{display:flex;flex-direction:column;align-items:center;gap:.9rem;justify-content:center;align-self:start;border:1px solid #d8caed;background:#eee8f8;border-radius:11px;padding:1rem .5rem;color:var(--purple)}
.chem-topic-stamp strong{font-size:2.5rem;line-height:1;font-weight:650;letter-spacing:-.05em}.chem-topic-stamp span{font-size:.8rem;line-height:1.4;font-weight:600}
.chem-hero h2{font-size:clamp(1.8rem,3.7vw,2.8rem);line-height:1.12;letter-spacing:-.045em;margin:.55rem 0 1rem;max-width:24ch;color:var(--ink)}
.chem-hero-copy>p{max-width:76ch;line-height:1.75}.chem-hero-copy>p:not(.learning-eyebrow):not(.chem-level){color:var(--muted);font-size:1rem}.chem-hero .actions{margin-top:1.25rem}.chem-level{font-weight:600;color:var(--purple);font-size:.85rem}
.chem-reading{display:grid;grid-template-columns:220px minmax(0,1fr);gap:2.5rem;align-items:start}
.chem-contents{display:block;position:sticky;top:5.5rem;border-left:2px solid var(--gold,#f1d466);padding:.5rem 1rem .8rem 1.2rem;max-height:calc(100vh - 7rem);overflow:auto}
.chem-contents h3{font-size:1.1rem;margin:.3rem 0 1rem;letter-spacing:-.02em}.chem-contents ol{padding-left:1.2rem;margin:0;display:grid;gap:.2rem;color:var(--muted);font-size:.85rem}.chem-contents li::marker{font-size:.75rem;color:var(--purple)}
.chem-contents a,.chem-example-links a{color:var(--muted);text-decoration:none;line-height:1.5;display:inline-block;padding:.5rem .15rem;min-height:44px;box-sizing:border-box}.chem-contents a:hover,.chem-contents a:focus-visible,.chem-example-links a:hover{color:var(--purple);text-decoration:underline;text-underline-offset:3px}
.chem-section{padding:1.65rem 0 2rem;border-bottom:1px solid var(--border);scroll-margin-top:6rem}.chem-section>h3{font-size:1.6rem;letter-spacing:-.025em;margin:.3rem 0 1rem;line-height:1.25;color:var(--ink)}
.chem-section-label{font-size:.8rem!important;color:var(--purple);font-weight:650;letter-spacing:.025em;margin:0!important}
.chem-body{min-width:0;max-width:76ch;line-height:1.8;font-size:1rem}.chem-body p{margin:.7rem 0 1rem}.chem-body ul{padding-left:1.4rem}.chem-body li{margin:.55rem 0}
#chem-objectives{background:#fffcf1;border:1px solid #e9dbac;border-radius:12px;padding:1.35rem;margin-bottom:.5rem}#chem-objectives ul{padding-left:1.15rem}#chem-objectives li::marker{color:#8b6d1c}#chem-objectives li{padding-left:.3rem}
.chem-tier{display:inline-block;border:1px solid #d9ccef;border-radius:5px;background:#f4effb;color:#523086;font-size:.76rem;line-height:1.45;padding:.15rem .5rem;margin:.15rem .2rem;font-weight:600}
.chem-equation{border-left:4px solid #e5bf45;background:#fffbef;padding:.65rem 1.1rem;margin:1.4rem 0;overflow-wrap:anywhere}.chem-formula{font-family:Georgia,serif;font-size:1.24rem;white-space:pre-wrap;line-height:1.7;color:var(--ink)}
.chem-table-scroll{max-width:100%;overflow:auto;border:1px solid var(--border);border-radius:10px;margin:1rem 0}.chem-table-scroll table{width:100%;border-collapse:collapse;font-size:.95rem;line-height:1.6}.chem-table-scroll th,.chem-table-scroll td{vertical-align:top;text-align:left;padding:.85rem;border-bottom:1px solid var(--border);min-width:110px}.chem-table-scroll thead{background:#eee8f8;color:#432775}.chem-table-scroll tbody th{font-weight:600}.chem-table-scroll tr:last-child th,.chem-table-scroll tr:last-child td{border-bottom:0}
.chem-terms dt{font-size:1.15rem;font-weight:650;color:var(--purple);margin-top:1.5rem}.chem-terms dd{margin-left:0;border-left:2px solid #e5bf45;padding-left:1rem}.chem-terms dd p:last-child{font-size:.9rem;color:var(--muted)}
.chem-misconception{background:#f7f4fc;border-left:3px solid #c1acd9;border-radius:0 9px 9px 0;padding:1rem 1.2rem;margin:1rem 0}.chem-misconception h4{margin:.2rem 0;font-size:1rem;line-height:1.5}.chem-misconception p{margin-bottom:0}
.chem-example{border:1px solid var(--border);border-top:3px solid var(--purple);border-radius:12px;background:#fff;padding:clamp(1rem,2.5vw,1.7rem);margin:1.5rem 0;scroll-margin-top:6rem}.chem-example .studio-kicker{color:var(--purple);font-size:.8rem;letter-spacing:.035em}.chem-example h4{font-size:1.4rem;line-height:1.35;letter-spacing:-.025em;margin:.5rem 0 .9rem}.chem-example h5{font-size:1.05rem;line-height:1.45;margin:1.8rem 0 .4rem;color:var(--ink)}
.chem-original-question{background:#f5f1fb;border-left:2px solid #bba5dc;border-radius:0 8px 8px 0;padding:1.1rem;white-space:pre-wrap}.chem-worked-steps{padding-left:1.4rem}.chem-worked-steps>li{padding:.3rem 0 .7rem .4rem;border-bottom:1px solid #eee8f5}.chem-worked-steps>li::marker{font-weight:700;color:var(--purple)}.chem-reason{color:var(--muted);font-size:.95rem}.chem-final-answer{background:#f4eedf;border:1px solid #e9dbac;border-radius:10px;padding:1rem 1.2rem;margin:1.4rem 0}.chem-final-answer h5{margin-top:0}.chem-final-answer p:last-child{margin-bottom:0}.chem-example-links{display:flex;gap:.6rem 1.4rem;flex-wrap:wrap}.chem-example-links a{color:var(--purple);text-decoration:underline;text-underline-offset:4px}
.chem-sources{font-size:.88rem;line-height:1.7}.chem-sources a{overflow-wrap:anywhere;color:var(--purple)}
.chem-figure{margin:1.6rem 0;padding:1.3rem;border:1px solid #ddd3ec;border-radius:12px;background:#fcfaff}.chem-figure svg{display:block;width:100%;height:auto;max-height:280px;margin-bottom:1rem}.chem-figure text{font-family:system-ui,sans-serif;font-size:15px;fill:#302541}.chem-svg-outline{fill:none;stroke:#6133b5;stroke-width:2}.chem-svg-particle{fill:#7142bc;stroke:#452075}.chem-figure figcaption{font-weight:600;font-size:.95rem}.chem-figure p{font-size:.9rem;margin-bottom:0;color:var(--muted)}
.chem-lesson [hidden]{display:none!important}.chem-lesson button:focus-visible,.chem-lesson a:focus-visible,.chem-table-scroll:focus-visible,.chem-lesson [tabindex="-1"]:focus-visible{outline:3px solid var(--purple);outline-offset:3px}
.chem-lesson .lesson-question-picker[data-state=draft]::after{content:' D';font-size:.7rem}.chem-lesson .lesson-question-picker[data-state=skipped]::after{content:' S';font-size:.7rem}.chem-lesson .lesson-question-picker[data-state=submitted]::after{content:' ✓';font-size:.7rem}.chem-lesson .lesson-question-picker{min-width:44px;min-height:44px}.chem-lesson .lesson-question-picker[data-state=submitted]{border-color:#63518a}.chem-lesson .lesson-question-picker[data-state=skipped]{border-style:dashed}.chem-lesson .lesson-question h3{font-size:1.15rem;line-height:1.7;white-space:pre-wrap}.chem-lesson .lesson-question-footer{flex-wrap:wrap}.chem-lesson .tutor-panel{font-size:.94rem}.chem-lesson textarea{width:100%;box-sizing:border-box;resize:vertical}.chem-lesson .lesson-side{min-width:0}
.chem-lesson .lesson-tabs{margin:1.3rem 0 1.8rem;padding:0;gap:0;border-bottom:1px solid var(--border);flex-wrap:wrap}.chem-lesson .lesson-tab{font-size:.95rem;padding:1rem 1.3rem;min-height:48px;color:var(--muted)}.chem-lesson .lesson-tab[aria-pressed=true]{color:var(--purple);border-bottom:3px solid var(--purple);background:#f4effb;border-radius:9px 9px 0 0}
@media(max-width:1050px){.chem-reading{grid-template-columns:180px minmax(0,1fr);gap:1.5rem}.chem-contents{padding-left:.8rem}.chem-hero{grid-template-columns:80px minmax(0,1fr);gap:1.1rem}.chem-topic-stamp strong{font-size:2.2rem}}
@media(max-width:850px){.chem-reading{grid-template-columns:1fr;gap:1rem}.chem-contents{position:static;max-height:none;background:#f7f4fc;border:1px solid var(--border);border-left:3px solid var(--gold,#f1d466);border-radius:10px;padding:1rem}.chem-contents ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.25rem 1.5rem}.chem-contents a{font-size:.85rem}.chem-body{max-width:none}}
@media(max-width:620px){.chem-hero{grid-template-columns:1fr;padding:1.1rem;gap:.8rem}.chem-topic-stamp{flex-direction:row;justify-content:flex-start;width:max-content;padding:.4rem .75rem;gap:.65rem;border-radius:6px}.chem-topic-stamp strong{font-size:1.1rem;letter-spacing:0}.chem-topic-stamp span:last-child{border-left:1px solid #d8caed;padding-left:.65rem}.chem-hero h2{font-size:1.9rem}.chem-hero-copy>p:not(.learning-eyebrow):not(.chem-level){font-size:.95rem}.chem-section>h3{font-size:1.4rem}.chem-section{padding-block:1.4rem}.chem-example{padding:1rem}.chem-table-scroll th,.chem-table-scroll td{padding:.6rem}.chem-figure{padding:.8rem}.chem-lesson .lesson-tab{padding:.85rem 1rem;font-size:.88rem}.chem-contents ol{column-gap:1.1rem;padding-left:1.1rem}.chem-contents{padding:.9rem}.chem-contents a{font-size:.8rem}.chem-contents h3{margin-bottom:.4rem}}
@media(max-width:360px){.chem-contents ol{grid-template-columns:1fr}.chem-hero h2{font-size:1.65rem}}
