/* Typefaces for content in other scripts (Design Guide 1.11, D-041, Part B "Type"; approved by
   Sinu 12 Nov 2026). Screens are English; only content written in another language (quiz
   questions and answers today) is marked with lang, and only it changes typeface here.

   Google serves each family split by script with unicode-range, so a font file is fetched only
   when its letters are on the page: an English page fetches nothing from this sheet. Inter and
   Baloo 2 stay first, so Latin letters and digits inside such content keep the house typefaces. */
@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhaijaan+2:wght@600;700&family=Baloo+Chettan+2:wght@600;700&family=Noto+Sans+Arabic:wght@400;500;600&family=Noto+Sans+Devanagari:wght@400;500;600&family=Noto+Sans+Malayalam:wght@400;500;600&family=Noto+Nastaliq+Urdu:wght@400;600&display=swap');

:root {
  --font-body-scripts: Inter, 'Noto Sans Arabic', 'Noto Sans Devanagari', 'Noto Sans Malayalam', Nunito, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display-scripts: 'Baloo 2', 'Baloo Bhaijaan 2', 'Baloo Chettan 2', 'Noto Sans Arabic', 'Noto Sans Devanagari', 'Noto Sans Malayalam', Nunito, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-urdu: 'Noto Nastaliq Urdu', 'Noto Sans Arabic', serif;
}

/* Body text in Arabic, Hindi and Malayalam. */
/* :root in front so these win over a component's own typeface, whichever sheet loads first. */
:root [lang="ar"], :root [lang="hi"], :root [lang="ml"] { font-family: var(--font-body-scripts); }

/* Headings: the question on the quiz screen, and any heading that holds such content. */
:root h1[lang="ar"], :root h2[lang="ar"], :root h3[lang="ar"], :root .lp-question[lang="ar"],
:root h1[lang="hi"], :root h2[lang="hi"], :root h3[lang="hi"], :root .lp-question[lang="hi"],
:root h1[lang="ml"], :root h2[lang="ml"], :root h3[lang="ml"], :root .lp-question[lang="ml"] { font-family: var(--font-display-scripts); }

/* Urdu is read in Nastaliq, which needs more room between lines than any other script here. */
.lp-question[lang="ur"], :root [lang="ur"] { font-family: var(--font-urdu); line-height: 2.2; }

/* Right-to-left content sits to the right of its box, whatever the screen around it does. */
.lp-question[dir="rtl"], :root [dir="rtl"] { text-align: right; }
