/* Preserve browser zoom and keep code readable when the page direction changes. */
html{font-size:100%!important;--alinli-text-scale:1}
html[data-display-theme=light]{color-scheme:light}
html[data-display-theme=dark]{color-scheme:dark;--ink:#f2eaf7;--muted:#beb0c8;--paper:#17111e;--white:#241b2e;--line:#46384f;--purple:#c69be9;--purple-dark:#b785df;--tint:#30203e}
html[data-display-theme=dark] body{background:var(--paper);color:var(--ink)}
html[data-display-theme=dark] :is(.resource-card,.track-card,.offer-card,.download-card,.booking-form,.owner-review-card,.learning-section-nav,.filters,.catalog-controls,.chapter,.lesson-sidebar,.lesson-panel,.resource-summary,.path-card){background:#241b2e;border-color:#46384f;color:#f2eaf7}
html[data-display-theme=dark] :is(.page-heading,.section-soft,.policy-summary,.review-summary,.topic-section,.practice-section,.story-section,.hero-image-note,.soft-note,.outcomes-panel){background:#21172c;color:#f2eaf7}
html[data-display-theme=dark] :is(.course-sidebar,.search-field,.track-card:first-child){background:#241b2e;color:#f2eaf7}
html[data-display-theme=dark] :is(.path-row:hover,.lesson-row:hover){background:#30243d}
html[data-display-theme=dark] .cta-section{background:#512878}
html[data-display-theme=dark] :is(.notice,.draft-review,.page-input-note,.review-status){background:#382b16;color:#f4d796;border-color:#6b5329}
html[data-display-theme=dark] :is(input,textarea,select){background:#241b2e;color:#f2eaf7;border-color:#685473}
html[data-display-theme=dark] :is(.accent-violet,.accent-gold,.accent-coral,.accent-mint,.accent-blue){--accent:#d5b8ed;--tint:#362743}
html[data-display-theme=dark] .button-primary,html[data-display-theme=dark] .button-dark{background:#d8b5f0;color:#21122d}
html[data-display-theme=dark] .button-primary:hover,html[data-display-theme=dark] .button-dark:hover{background:#e7cef8}
/* Historical lessons share common surface tokens. Fixed teaching diagrams retain their authored colors. */
html[data-display-theme=dark] body[data-alinli-theme]{background:#17111e;--bg:#17111e;--bg2:#21172c;--bg3:#2b2037;--surface:#241b2e;--surface2:#30243d;--card:#241b2e;--card-bg:#241b2e;--panel:#241b2e;--text:#f2eaf7;--text2:#c5b5d1;--text-dark:#f2eaf7;--text-body:#d6c9e0;--text-muted:#beb0c8;--text-dim:#beb0c8;--text-bright:#f2eaf7;--text-light:#beb0c8;--tx:#f2eaf7;--tx2:#beb0c8;--txd:#beb0c8;--txb:#fff;--txl:#beb0c8;--txm:#d6c9e0;--dm:#beb0c8;--dm2:#b19bbf;--muted:#beb0c8;--border:#4c3c59;--line:#4c3c59;--bgp:#241b2e;--bgc:#2b2037;--bgh:#34273f;--bdr:#4c3c59;--bdrl:#685473;--warm-white:#17111e;--lavender:#30243d;--soft-violet:#372943;--slate-800:#eee5f5;--slate-900:#f8f3fc;--slate-600:#c5b5d1;--slate-500:#beb0c8;--slate-200:#4c3c59;--slate-100:#2b2037}
html[data-display-theme=light] body[data-alinli-theme]{background:#faf8f5;color-scheme:light;--bg:#faf8f5;--bg2:#f0eaf5;--bg3:#e9dfef;--surface:#fff;--surface2:#f2edf6;--card:#fff;--panel:#fff;--text:#241831;--text2:#594765;--text-bright:#241831;--text-dim:#65526f;--tx:#241831;--tx2:#65526f;--txd:#65526f;--txb:#241831;--dm:#65526f;--dm2:#716179;--muted:#716179;--border:#d8cce2;--border-hi:#967ba9;--line:#d8cce2;--bgp:#f0eaf5;--bgc:#fff;--bgh:#e9dfef;--bdr:#d8cce2;--bdrl:#b9a5c8}
html[data-display-theme=light] body[data-original-theme=dark]{--p1:#f0eaf5;--p2:#e9dfef;--p3:#e0d3e9;--bd:#d8cce2;--bd2:#b9a5c8;--al:#7440a5;--al2:#63338b;--green:#087544;--cyan:#006d82;--amber:#805b00;--violet:#7440a5;--sky:#12628c;--pur:#7440a5;--mnt:#087544;--grn:#087544;--ylw:#805b00;--gn:#087544;--cy:#006d82;--y:#805b00}
html[dir=rtl] body{font-family:"Plus Jakarta Sans","IBM Plex Sans Arabic","Noto Sans Arabic",Tahoma,sans-serif}
html[dir=rtl] :is(pre,code,kbd,samp,input[type=email],input[type=tel],input[type=url]){direction:ltr;text-align:left}
html[dir=rtl] :is(.hero-copy h1,h1,h2,h3){letter-spacing:normal}
html[dir=rtl] .icon:has(use[href$="#arrow"],use[href$="#arrowup"]){transform:scaleX(-1)}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
@media print{html{--alinli-text-scale:1;color-scheme:light}body{background:white!important;color:black!important}}
.translation-review{padding:12px 24px;background:#fff2d4;color:#604510;border-bottom:1px solid #d6bc78;font:14px/1.5 system-ui,sans-serif;text-align:center}
