/* WODDI single typeface: Inter everywhere (v174).
   Loaded statically on every page (no JS dependency, no kill switch), so the
   whole Institute uses one text font even when the premium skin is off.
   Excluded on purpose: Font Awesome icons, SVG text, and code/pre/kbd/samp
   (or anything styled inline as monospace). Arabic / RTL text falls back to
   Noto Sans Arabic / Noto Naskh Arabic after Inter, because Inter has no
   Arabic glyphs. */

:root{
  --ff-inter:'Inter',system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,'Noto Sans','Noto Sans Arabic','Noto Naskh Arabic',sans-serif,'Apple Color Emoji','Segoe UI Emoji','Noto Color Emoji' !important;
  --ff-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,'Liberation Mono',monospace;
  /* Legacy tokens used across the CSS and the JS-rendered markup */
  --ff-body:var(--ff-inter) !important;
  --ff-display:var(--ff-inter) !important;
  --font-primary:var(--ff-inter) !important;
  --font-heading:var(--ff-inter) !important;
}

/* Form controls and tables do not inherit font-family by default: enforce it. */
html, body,
button, input, select, textarea, optgroup, option, table, th, td, caption, legend{
  font-family:var(--ff-inter) !important;
}

/* Every text element, including markup that JS injects with inline
   font-family (Playfair Display, Georgia, Arial ...). */
html body :not(i):not(svg):not(svg *):not(code):not(pre):not(kbd):not(samp):not(pre *):not(code *):not(.fa):not(.fas):not(.far):not(.fab):not(.fal):not(.fad):not(.fa-solid):not(.fa-regular):not(.fa-brands):not(.fa-light):not(.fa-classic):not(.fa-sharp):not([class^="fa-"]):not([class*=" fa-"]):not([style*="monospace"]):not(.ql-font-monospace){
  font-family:var(--ff-inter) !important;
}

/* Arabic / right-to-left content: Inter first (Latin, digits), Arabic fonts next.
   Redefining the token on the RTL subtree keeps the main rule's selector simple. */
[lang|="ar"], [dir="rtl"]{
  --ff-inter:'Inter','Noto Sans Arabic','Noto Naskh Arabic','Segoe UI','Geeza Pro',Tahoma,system-ui,sans-serif !important;
}

/* Code stays monospace. */
code, pre, kbd, samp, pre *, code *{ font-family:var(--ff-mono) !important; }
