:root{--bg: #f4f7fb;--surface: #ffffff;--surface-alt: #edf3fa;--surface-hover: #e2edf9;--text: #2d3748;--text-muted: #566a82;--heading: #1a365d;--accent: #2b6cb0;--accent-strong: #1a4d8f;--teal: #2c7a7b;--border: #dbe4ee;--border-strong: #bcd2e8;--nav-bg: #1a365d;--nav-text: #cfe3f7;--nav-text-hover: #ffffff;--warn-bg: #fff8e6;--warn-border: #f0c33c;--warn-text: #7a5a00;--focus: #2b6cb0;--shadow: 0 4px 16px rgba(16, 42, 76, .12);--radius: 12px;--content-width: 860px}:root[data-theme=dark]{--bg: #0d1826;--surface: #15263c;--surface-alt: #1b3150;--surface-hover: #223c60;--text: #dce6f2;--text-muted: #9db4d0;--heading: #9ecbf2;--accent: #63b3ed;--accent-strong: #90cdf4;--teal: #4fd1c5;--border: #2a3f5c;--border-strong: #38537a;--nav-bg: #0a1420;--nav-text: #b8d3ef;--nav-text-hover: #ffffff;--warn-bg: #2e2410;--warn-border: #7a5f1e;--warn-text: #f0d488;--focus: #90cdf4;--shadow: 0 4px 20px rgba(0, 0, 0, .4)}@media (prefers-color-scheme: dark){:root:not([data-theme=light]){--bg: #0d1826;--surface: #15263c;--surface-alt: #1b3150;--surface-hover: #223c60;--text: #dce6f2;--text-muted: #9db4d0;--heading: #9ecbf2;--accent: #63b3ed;--accent-strong: #90cdf4;--teal: #4fd1c5;--border: #2a3f5c;--border-strong: #38537a;--nav-bg: #0a1420;--nav-text: #b8d3ef;--nav-text-hover: #ffffff;--warn-bg: #2e2410;--warn-border: #7a5f1e;--warn-text: #f0d488;--focus: #90cdf4;--shadow: 0 4px 20px rgba(0, 0, 0, .4)}}*,*:before,*:after{box-sizing:border-box}html{scroll-behavior:smooth}@media (prefers-reduced-motion: reduce){html{scroll-behavior:auto}*{animation-duration:.001ms!important;transition-duration:.001ms!important}}body{margin:0;min-height:100vh;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--text);line-height:1.65;-webkit-font-smoothing:antialiased}a{color:var(--accent)}:focus-visible{outline:3px solid var(--focus);outline-offset:2px;border-radius:3px}.skip-link{position:absolute;left:.5rem;top:-3rem;z-index:100;background:var(--surface);color:var(--accent);padding:.6rem 1rem;border-radius:8px;font-weight:600;text-decoration:none;box-shadow:var(--shadow);transition:top .15s}.skip-link:focus{top:.5rem}.site-nav{background:var(--nav-bg);padding:.7rem 1.25rem;display:flex;align-items:center;gap:.5rem 1.25rem;flex-wrap:wrap;position:sticky;top:0;z-index:20}.site-nav a{color:var(--nav-text);text-decoration:none;font-weight:500}.site-nav a:hover{color:var(--nav-text-hover)}.site-nav .brand{display:inline-flex;align-items:center;gap:.55rem;font-size:1.15rem;font-weight:700;color:#fff;margin-right:auto}.site-nav .brand img{width:30px;height:30px;display:block}.nav-links{display:flex;align-items:center;gap:1.1rem;flex-wrap:wrap}@media (max-width: 680px){.nav-hide-sm{display:none}}.site-nav :focus-visible{outline-color:#fff}.theme-toggle{background:transparent;border:1px solid rgba(255,255,255,.35);color:var(--nav-text);width:38px;height:34px;border-radius:8px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:1.05rem;line-height:1}.theme-toggle:hover{color:#fff;border-color:#fff}.theme-toggle .icon-dark{display:none}:root[data-theme=dark] .theme-toggle .icon-dark{display:inline}:root[data-theme=dark] .theme-toggle .icon-light{display:none}@media (prefers-color-scheme: dark){:root:not([data-theme=light]) .theme-toggle .icon-dark{display:inline}:root:not([data-theme=light]) .theme-toggle .icon-light{display:none}}main{flex:1 0 auto}.site-footer{flex-shrink:0;margin-top:4rem;padding:2rem 1.25rem;text-align:center;color:var(--text-muted);font-size:.875rem;border-top:1px solid var(--border);background:var(--surface)}.site-footer p{margin:.4rem auto;max-width:640px}.site-footer a{color:var(--accent)}.reading-progress{position:fixed;top:0;left:0;height:3px;width:0;background:linear-gradient(90deg,var(--accent),var(--teal));z-index:30;transition:width .08s linear}:root[data-level=beginner] .deeper-section{display:none}@media print{.site-nav,.site-footer,.reading-progress,.skip-link,.share-btn,.complete-btn,.theme-toggle{display:none!important}body{background:#fff;color:#000}main{flex:none}a{color:#000;text-decoration:underline}.lesson-body,.objectives,.key-terms,.citations,.quiz{border:1px solid #ccc!important;box-shadow:none!important;break-inside:avoid}}
