/* =========================================================
   MAPT ACADEMY — TYPOGRAPHY (2026-12-02)
   Arabic = Cairo, English = Verdana, on every page (header, menus, headings, text, buttons, forms, footer).
   Sizes: font-size-adjust keeps each font at a comfortable visual size without changing the layout —
   Cairo draws Arabic small, so Arabic grows about 6%; Verdana is large, so English shrinks about 8%.
   Loaded after styles.css and notices.css.
   ========================================================= */
:root{
  --font-ar:"Cairo","Segoe UI",Tahoma,Arial,sans-serif;
  --font-en:Verdana,Geneva,"Cairo",Tahoma,sans-serif;
}
html[lang="ar"]{--font:var(--font-ar);--font-notice:var(--font-ar)}
html[lang="en"]{--font:var(--font-en);--font-notice:var(--font-en)}
body,button,input,select,textarea{font-family:var(--font)}
/* a phrase in the other language keeps its own font */
html[lang="en"] [lang="ar"]:not(html){font-family:var(--font-ar)}
html[lang="ar"] [lang="en"]:not(html){font-family:var(--font-en)}

/* visual size per language (applies to every element, including those set with the `font` shorthand) */
html[lang="ar"] body,html[lang="ar"] body *{font-size-adjust:.53}
html[lang="en"] body,html[lang="en"] body *{font-size-adjust:.5}
html [lang="ar"]:not(html),html [lang="ar"]:not(html) *{font-size-adjust:.53}
html [lang="en"]:not(html),html [lang="en"]:not(html) *{font-size-adjust:.5}

/* line spacing suited to each font */
html[lang="ar"] body{line-height:1.85}
html[lang="en"] body{line-height:1.7}
html[lang="ar"] :is(h1,h2,h3,h4){line-height:1.45;letter-spacing:0}
html[lang="en"] :is(h1,h2,h3,h4){line-height:1.3;letter-spacing:-.01em}
