:root{--atl-ink:#142841;--atl-muted:#4b6177;--atl-line:#dce6f2}html{scroll-behavior:smooth}.brand-icon{width:38px;height:38px;object-fit:contain}.atl-lesson-wrap{padding-block:45px 90px}.atl-lesson-hero{border-radius:26px;background:linear-gradient(117deg,#0a53dc 0%,#1b64e7 55%,#152e69 100%);color:white;padding:clamp(28px,5vw,62px);position:relative;overflow:hidden}.atl-lesson-hero:after{content:"";position:absolute;width:260px;height:260px;right:-85px;top:-130px;border:45px solid #ffffff24;border-radius:50%;pointer-events:none}.atl-lesson-hero .eyebrow{color:#eef4ff}.atl-lesson-hero h1{font-size:clamp(2rem,5vw,3.9rem);line-height:1.08;letter-spacing:-.05em;margin:18px 0}.atl-lesson-hero p{font-size:1.1rem;max-width:770px;opacity:.96}.atl-lesson-facts{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.atl-lesson-facts span{border:1px solid #ffffff88;border-radius:30px;padding:7px 13px;font-size:.79rem;font-weight:700}.atl-learn-shell{display:grid;grid-template-columns:250px minmax(0,1fr);gap:34px;align-items:start;margin-top:38px}.atl-side-index{border:1px solid var(--atl-line);background:#fafcff;border-radius:20px;padding:23px;position:sticky;top:14px}.atl-side-index>strong{font-size:1rem;display:block;margin-bottom:16px}.atl-side-index nav{display:grid;gap:8px}.atl-side-index nav a{padding:10px 12px;border-radius:12px;border:1px solid #dfebf7;text-decoration:none;color:#234364;line-height:1.4;font-size:.87rem;font-weight:660;background:#fff}.atl-side-index nav a[aria-current]{background:#e7f0ff;border-color:#90b4f3;color:#1557c7}.atl-side-index p{font-size:.78rem;color:var(--atl-muted);margin-top:18px}.atl-reading{min-width:0;max-width:820px;margin:0 auto;font-size:1.02rem;line-height:1.78;overflow-wrap:anywhere}.atl-reading h2{font-size:clamp(1.55rem,3vw,2.2rem);line-height:1.22;letter-spacing:-.035em;margin:52px 0 20px;padding-top:10px;border-top:1px solid var(--atl-line)}.atl-reading h3{font-size:1.35rem;letter-spacing:-.02em;line-height:1.35;margin:31px 0 14px}.atl-reading h4{font-size:1.12rem;margin:25px 0 12px}.atl-reading p{margin:14px 0 19px}.atl-reading ol,.atl-reading ul{padding-left:26px}.atl-reading li{margin-bottom:10px}.atl-reading a{overflow-wrap:anywhere}.atl-reading strong{font-weight:750}.atl-reading blockquote{margin:24px 0;padding:18px 23px;border-left:4px solid #2d70e7;background:#f0f6ff;border-radius:0 15px 15px 0;color:#244668}.atl-reading blockquote p{margin:0}.atl-reading pre{overflow-x:auto;padding:18px;border-radius:14px;background:#eef3fb;border:1px solid #dbe6f7;font-size:.87rem;line-height:1.3}.atl-reading code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.atl-reading p code,.atl-reading li code{background:#edf3ff;color:#144dbb;padding:2px 5px;border-radius:5px}.atl-reading table{width:100%;border-collapse:collapse;font-size:.86rem;line-height:1.4}.atl-reading th{background:#e9f2ff;text-align:left;color:#153757}.atl-reading th,.atl-reading td{border:1px solid #d2dfec;padding:12px 14px;vertical-align:top}.atl-reading tr:nth-child(even) td{background:#fafcff}.atl-reading .table-scroll{overflow-x:auto;margin:24px 0}.atl-reading>table{display:block;overflow-x:auto;margin:24px 0}.atl-alert{border-left:4px solid #df7c23;border-radius:0 14px 14px 0;padding:16px;background:#fff7eb;font-size:.88rem;color:#66411d}.atl-bottom-nav{border-top:1px solid var(--atl-line);padding-top:24px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:52px}.atl-bottom-nav a{padding:12px 15px;border:1px solid #bdd2f0;border-radius:12px;text-decoration:none;font-weight:750}.atl-bottom-nav .atl-next{background:#175cdb;color:#fff;border-color:#175cdb}@media(max-width:950px){.atl-learn-shell{grid-template-columns:1fr;gap:20px}.atl-side-index{position:static}.atl-side-index nav{grid-template-columns:repeat(auto-fit,minmax(175px,1fr))}}@media(max-width:520px){.atl-lesson-wrap{padding-block:22px 50px}.atl-lesson-hero{border-radius:20px}.atl-reading{font-size:.96rem}.atl-reading h2{margin-top:35px}.atl-reading th,.atl-reading td{min-width:120px;padding:10px}.atl-side-index nav{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}


/* Narrow-screen reading layout: tables and code scroll inside the article,
   never expand the viewport or shrink font size to hide the problem. */
.atl-learn-shell,.atl-reading{min-width:0;width:100%;max-width:100%}
.atl-reading table{display:block;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
.atl-reading table tbody,.atl-reading table thead{width:100%}
.atl-reading pre{max-width:100%;overflow-x:auto}
.atl-reading a,.atl-bottom-nav a{overflow-wrap:anywhere}
.atl-lesson-hero,.atl-side-index,.atl-reading{min-width:0}


/* Teacher lessons: reliable contrast and editorial rhythm, even with shared site CSS */
body.atl-lesson .atl-lesson-hero{background:linear-gradient(126deg,#0749c9,#125cea 65%,#143f99)}
body.atl-lesson .atl-lesson-hero h1,
body.atl-lesson .atl-lesson-hero .eyebrow,
body.atl-lesson .atl-lesson-hero p,
body.atl-lesson .atl-lesson-hero .atl-lesson-facts,
body.atl-lesson .atl-lesson-hero .atl-lesson-facts span{color:#fff!important}
body.atl-lesson .atl-lesson-hero h1{font-weight:790;max-width:810px;text-shadow:0 3px 15px #072f7422}
body.atl-lesson .atl-lesson-hero p{font-weight:470;opacity:1;line-height:1.65}
body.atl-lesson .atl-reading{font-size:1.02rem;line-height:1.84}
body.atl-lesson .atl-reading h2{color:#173c62;line-height:1.24;padding-top:19px;margin-top:48px}
body.atl-lesson .atl-reading h3{color:#164e81;font-size:clamp(1.15rem,2.3vw,1.47rem);margin-top:33px;margin-bottom:13px}
body.atl-lesson .atl-reading h2+ p,
body.atl-lesson .atl-reading h3+ p{line-height:1.82}
body.atl-lesson .atl-reading ol{border-left:3px solid #dbe9f8;margin:22px 0;padding-left:30px}
body.atl-lesson .atl-reading ol li{padding-left:8px;margin:12px 0;line-height:1.72}
body.atl-lesson .atl-reading ul li{line-height:1.7}
body.atl-lesson .atl-reading blockquote{background:linear-gradient(140deg,#ecf6ff,#fff);color:#1c4773;border-color:#1a62db}
body.atl-lesson .atl-reading pre{background:#f0f6ff;color:#173858;border:1px solid #b9d2ef;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.62;max-width:100%;padding:20px}
body.atl-lesson .atl-reading pre code{white-space:inherit;color:inherit}
body.atl-lesson .atl-reading strong{color:#153c65}
body.atl-lesson .atl-reading a:focus-visible{outline:3px solid #ed7347;outline-offset:3px}
body.atl-lesson .atl-side-index{box-shadow:0 10px 25px #1d498310;background:linear-gradient(150deg,#fff,#f4f8ff)}
body.atl-lesson .atl-side-index nav a{transition:transform .2s,border-color .2s,box-shadow .2s}
body.atl-lesson .atl-side-index nav a:hover{transform:translateX(3px);border-color:#85aff4;box-shadow:0 5px 16px #204c8a1b}
@media(max-width:590px){body.atl-lesson .atl-reading h2{margin-top:32px}body.atl-lesson .atl-reading pre{padding:14px}}
@media(prefers-reduced-motion:reduce){body.atl-lesson .atl-side-index nav a{transition:none!important}body.atl-lesson .atl-side-index nav a:hover{transform:none!important}}
