/* Puts the reading tools in the site's colours and type. Loaded after each page's own styles, so these token
   values win; the pages keep their layout and behaviour. */
:root{--bg:#f9f7f0;--panel:#fffdf8;--card:#fffdf8;--fg:#182720;--ink:#182720;--muted:#48554b;--line:#d8d6c9;--soft:#eeeadc;
  --accent:#163c32;--accent-soft:#e7ebde;--good:#163c32;--ok:#2d6a4a;--ok-soft:#e1ecdf;--gold:#79552e;--gold-soft:#eae0c9;--mark:#efd78a;
  --ui:"Open Sans","Segoe UI",Arial,"Mv Jadheedh",sans-serif;--head:"Gelasio",Georgia,"Mv Jadheedh",serif}
@media(prefers-color-scheme:dark){:root:not([data-theme="light"]){--bg:#0e1a16;--panel:#14231e;--card:#14231e;--fg:#edeadb;--ink:#edeadb;
  --muted:#a9b5a8;--line:#2a3b34;--soft:#1a2b25;--accent:#9ed0b8;--accent-soft:#1a2e27;--good:#9ed0b8;--ok:#8fcfa6;--ok-soft:#183126;
  --gold:#e5c681;--gold-soft:#2c2a1e;--mark:#6b5512}}
:root[data-theme="dark"]{--bg:#0e1a16;--panel:#14231e;--card:#14231e;--fg:#edeadb;--ink:#edeadb;
  --muted:#a9b5a8;--line:#2a3b34;--soft:#1a2b25;--accent:#9ed0b8;--accent-soft:#1a2e27;--good:#9ed0b8;--ok:#8fcfa6;--ok-soft:#183126;
  --gold:#e5c681;--gold-soft:#2c2a1e;--mark:#6b5512}
/* headings in the site's serif (English only: Dhivehi and Arabic keep Mv Jadheedh) */
:root:not([lang="dv"]):not([lang="ar"]) body > :not(.jx) :is(h1,h2):not([lang="dv"] *):not(#dv *):not([lang="dv"]) {font-family:"Gelasio",Georgia,"Mv Jadheedh",serif;font-weight:400;letter-spacing:-.03em}
:root:not([lang="dv"]):not([lang="ar"]) body > :not(.jx) h1:not([lang="dv"] *):not(#dv *){font-size:clamp(2.4rem,5.5vw,3.6rem);line-height:1.08}
:root:not([lang="dv"]):not([lang="ar"]) body > :not(.jx) h2:not([lang="dv"] *):not(#dv *){font-size:clamp(1.5rem,3vw,1.95rem);line-height:1.2}
/* the drill pads its body; let the site header and footer run edge to edge, and hide them during a round (one screen, no scrolling) */
body[data-jx="drill"]{padding-top:0}
body[data-jx="drill"] > .jx{margin-left:calc(-1 * max(16px, env(safe-area-inset-left, 0px)));margin-right:calc(-1 * max(16px, env(safe-area-inset-right, 0px)))}
body[data-jx="drill"] > .jx:first-child{margin-bottom:22px}
body[data-jx="drill"] > .jx:last-of-type{margin-bottom:-48px}
body.playing > .jx{display:none}
/* card titles stay in the sans, as on the home page's cards */
:root:not([lang="dv"]):not([lang="ar"]) body > :not(.jx) :is(a,button,label) :is(h1,h2){font-family:var(--ui);font-size:1rem;letter-spacing:0;font-weight:600}
body[data-jx="drill"] :is(.ref-link b,.pro b){font-family:var(--ui)}
body[data-jx="drill"] :is(.lv .n,.score){font-family:var(--head);font-weight:400}
/* Thaana snippets keep the font's own spacing: lone fili have no width and piled up under the headings' tight
   letter-spacing (user screenshot 2026-11-23, Q&A 7 "Vowels: no ެ ޭ ޮ ޯ") */
.rd,.s{letter-spacing:0!important;word-spacing:.55em}
/* on the website: no font-weight switch and no Dhivehi switch (user 2026-11-23) */
body[data-jx] .fw,body[data-jx] .lang button[data-lang="dv"]{display:none!important}
