/*
 * Arabic text: Thmanyah Serif Display (public/fonts/thmanyah/), for headings
 * and body text alike, on every page (public site, sign-in, student area,
 * admin, error pages).
 *
 * Loaded only on right-to-left pages (partials/head, errors/layout). A Latin
 * font stays first in each list, so Latin characters on Arabic pages ("A1",
 * "Mr. Connect", e-mail addresses) look the same as on the English pages;
 * every Arabic letter comes from Thmanyah. Cairo is only the fallback while
 * Thmanyah loads. Only the Serif Display family exists in the project; with
 * Thmanyah Sans files, body text could use those instead.
 */

@font-face { font-family: "Thmanyah Serif Display"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/thmanyah/thmanyahserifdisplay-Light.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/thmanyah/thmanyahserifdisplay-Regular.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Serif Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/thmanyah/thmanyahserifdisplay-Medium.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Serif Display"; font-style: normal; font-weight: 600 700; font-display: swap; src: url("/fonts/thmanyah/thmanyahserifdisplay-Bold.woff2") format("woff2"); }
@font-face { font-family: "Thmanyah Serif Display"; font-style: normal; font-weight: 800 900; font-display: swap; src: url("/fonts/thmanyah/thmanyahserifdisplay-Black.woff2") format("woff2"); }

[dir="rtl"] {
    --font-arabic-display: "Playfair Display", "Thmanyah Serif Display", "Amiri", serif;
    /* The public pages' display type (marketing.css) uses --font-display. */
    --font-display: "Playfair Display", "Thmanyah Serif Display", "Amiri", serif;
    /* Body text: body.font-arabic uses --font-arabic-sans, everything else
       (form controls, Latin numerals, pages without that class) --font-sans. */
    --font-arabic-sans: "Inter", "Thmanyah Serif Display", "Cairo", ui-sans-serif, sans-serif;
    --font-sans: "Inter", "Thmanyah Serif Display", "Cairo", ui-sans-serif, system-ui, sans-serif;
}
