/*
 * Arabic pages only (loaded by inc/setup.php when the page is Arabic).
 * IBM Plex Sans Arabic, self-hosted, SIL Open Font License 1.1 (assets/fonts/plex-arabic/OFL.txt).
 * Arabic and Latin subsets, so numbers and Latin words on Arabic pages match the Arabic letters.
 */

@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plex-arabic/ibm-plex-sans-arabic-arabic-400.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plex-arabic/ibm-plex-sans-arabic-arabic-600.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plex-arabic/ibm-plex-sans-arabic-arabic-700.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/plex-arabic/ibm-plex-sans-arabic-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plex-arabic/ibm-plex-sans-arabic-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plex-arabic/ibm-plex-sans-arabic-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Use it everywhere on Arabic pages: text, headings, forms, buttons, tables. The brand mark keeps its own font. */
[dir="rtl"] {
	--sans: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
	--serif: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}
[dir="rtl"] body,
[dir="rtl"] .tool,
[dir="rtl"] .prose,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4,
[dir="rtl"] .tool-page__title,
[dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] textarea, [dir="rtl"] button,
[dir="rtl"] .button, [dir="rtl"] .result__sentence, [dir="rtl"] .data-table,
[dir="rtl"] .site-nav, [dir="rtl"] .site-footer {
	font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
	letter-spacing: 0;
}
[dir="rtl"] .brand__word { font-family: "Schibsted Grotesk", system-ui, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] .tool-page__title { font-weight: 700; line-height: 1.45; }
[dir="rtl"] h3, [dir="rtl"] label, [dir="rtl"] legend, [dir="rtl"] dt { font-weight: 600; }
[dir="rtl"] .prose, [dir="rtl"] .tool-page__lede { line-height: 1.95; }
