:root{--color-ink:#19352e;--color-ink-soft:#405249;--color-muted:#52665d;--color-paper:#f5f6f2;--color-surface:#ffffff;--color-surface-tint:#eef3ee;--color-surface-calm:#f7faf7;--color-line:#d8e2da;--color-line-strong:#c9d6cd;--color-track:#e3ebe5;--color-accent:#16634d;--color-accent-strong:#0f4a39;--color-accent-soft:#dfece4;--color-on-accent:#ffffff;--color-target-bg:#eef7f0;--color-success-bg:#e8f5ec;--color-success-ink:#14513d;--color-warning-bg:#fff6e7;--color-warning-ink:#765016;--color-warning-line:#ecd3a6;--color-selection:#d6ebdf;--color-danger:#b42318;--color-danger-strong:#8f1c13;--color-bar:#12302a;--color-on-bar:#ffffff;--color-correct-on-bar:#9be7bf;--color-warning-on-bar:#ffd99a;--color-line-on-dark:rgb(255 255 255/40%);--color-hover-on-dark:rgb(255 255 255/10%);--color-avatar-0:#16634d;--color-avatar-1:#1d5b8f;--color-avatar-2:#7a3e9d;--color-avatar-3:#a1452a;--color-avatar-4:#2f6b2f;--color-avatar-5:#8a5a00;--color-avatar-6:#3b4f9e;--color-avatar-7:#9b2d5a;--color-google-bg:#ffffff;--color-google-hover:#f8f9fa;--color-google-outline:#747775;--color-google-ink:#1f1f1f;--color-disabled-bg:#edf0ec;--color-disabled-ink:#65726b;--color-focus:#d38d22;--font-sans:system-ui,-apple-system,"Segoe UI",Roboto,"Noto Sans Sinhala","Iskoola Pota","Noto Sans Tamil","Latha",sans-serif;--font-display:"Plus Jakarta Sans",var(--font-sans);--font-mono:ui-monospace,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;--line-height-body:1.6;--font-size-xs:0.8125rem;--font-size-sm:0.875rem;--font-size-md:1rem;--font-size-lg:1.125rem;--font-size-xl:1.25rem;--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-7:32px;--space-8:48px;--radius-sm:8px;--radius-md:12px;--radius-lg:16px;--radius-pill:999px;--shadow-card:0 4px 18px rgb(25 53 46/5%);--touch-target:44px;--touch-target-lg:48px;--touch-target-xl:52px;--content-max:1200px;--lesson-max:1680px;--page-gutter:max(16px,env(safe-area-inset-left),4vw);--duration-fast:120ms;--duration-normal:180ms;--duration-enter:300ms;--duration-slow:400ms;--duration-celebrate:700ms;--ease-out:cubic-bezier(0.22,1,0.36,1);--ease-spring:cubic-bezier(0.34,1.56,0.64,1);--font-size-display:clamp(2.25rem,5.5vw,3.75rem);--font-size-h2:clamp(1.625rem,3.4vw,2.25rem);--color-highlight:#f2b63d;--color-highlight-soft:#fdf1d6;--color-hero-from:#eaf4ee;--color-hero-to:#f8f6ee;--shadow-lift:0 14px 40px rgb(25 53 46/12%);--shadow-glow-success:0 0 0 4px rgb(22 99 77/22%);--radius-xl:24px;--space-9:64px;--space-10:96px}:root:lang(si),:root:lang(ta){--line-height-body:1.8}*,:after,:before{box-sizing:border-box}html{text-size-adjust:100%}body{margin:0;background:var(--color-paper);font-family:var(--font-sans);line-height:var(--line-height-body)}body,h1,h2,h3{color:var(--color-ink)}h1,h2,h3{font-family:var(--font-display);letter-spacing:-.01em}button,input,select{font:inherit}a{color:var(--color-accent)}:focus-visible{outline:3px solid var(--color-focus);outline-offset:3px}.formula-chip{padding:1px 6px;border-radius:6px;background:var(--color-surface-tint);color:var(--color-accent-strong);font-family:var(--font-mono);font-size:.95em;overflow-wrap:anywhere}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.skip-link{position:absolute;left:var(--space-4);top:-100px;z-index:10;padding:var(--space-2) var(--space-3);border-radius:var(--radius-sm);background:var(--color-surface)}.skip-link:focus{top:var(--space-3)}@media (prefers-reduced-motion:reduce){*,:after,:before{scroll-behavior:auto!important;transition:none!important;animation:none!important}}@media print{[data-print=hide]{display:none!important}}