/* Arabic pages: shared layer, loaded after each page's own styles. English pages never load this file.
   Fonts (SIL OFL, licences in /fonts): IBM Plex Sans Arabic, and Noto Sans Arabic (variable) for the one family the site
   uses across a weight range (Archivo 400 to 900). Each Arabic face is declared under a font name the English pages already
   use, with EXACTLY the same weight, stretch and style as that English face and only the Arabic letters (unicode-range).
   Browsers only combine faces whose descriptors are identical, so the descriptors must match the English @font-face rules:
   Archivo 400 900 (stretch 68% 100%), Bricolage Grotesque 500 800, DM Mono 500, IBM Plex Mono 400/500/600,
   Inter 400/500/600, Plus Jakarta Sans 600/700. If an English page adds a new face, add its Arabic twin here. */
@font-face{font-family:"Archivo";src:url(/fonts/noto-sans-arabic-arabic-wght.woff2) format("woff2");font-weight:400 900;font-stretch:68% 100%;font-style:normal;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:"Bricolage Grotesque";src:url(/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format("woff2");font-weight:500 800;font-style:normal;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:"DM Mono";src:url(/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format("woff2");font-weight:500;font-style:normal;font-display:swap;unicode-range:U+0020,U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:"DM Mono";src:url(/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format("woff2");font-weight:400 500;font-style:normal;font-display:swap;unicode-range:U+0020,U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:"IBM Plex Mono";src:url(/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0020,U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:"IBM Plex Mono";src:url(/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format("woff2");font-weight:500;font-style:normal;font-display:swap;unicode-range:U+0020,U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:"IBM Plex Mono";src:url(/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2");font-weight:600;font-style:normal;font-display:swap;unicode-range:U+0020,U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:"IBM Plex Mono";src:url(/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format("woff2");font-weight:400 600;font-style:normal;font-display:swap;unicode-range:U+0020,U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:"Inter";src:url(/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2");font-weight:400;font-style:normal;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:"Inter";src:url(/fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format("woff2");font-weight:500;font-style:normal;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:"Inter";src:url(/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2");font-weight:600;font-style:normal;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:"Inter";src:url(/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2");font-weight:400 500;font-style:normal;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:"Inter";src:url(/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2");font-weight:600 700;font-style:normal;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:"Plus Jakarta Sans";src:url(/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2");font-weight:600;font-style:normal;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:"Plus Jakarta Sans";src:url(/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format("woff2");font-weight:700;font-style:normal;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}
@font-face{font-family:"Plus Jakarta Sans";src:url(/fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format("woff2");font-weight:600 700;font-style:normal;font-display:swap;unicode-range:U+0600-06FF,U+0750-077F,U+0870-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200F}

/* In the mono families the space (U+0020) also comes from the Arabic font: the Latin mono space is very wide and pulls Arabic words apart. */
/* Arabic letters join: spacing between letters breaks the words, and Arabic has no capitals or italics. */
html[lang="ar"] *{letter-spacing:0!important}
html[lang="ar"] body{font-feature-settings:normal}
html[lang="ar"] em,html[lang="ar"] i,html[lang="ar"] cite{font-style:normal}
html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3{line-height:1.3}
html[lang="ar"] p,html[lang="ar"] li,html[lang="ar"] dd{line-height:1.8}
/* Arrows that point "forward" turn to face the reading direction. Add class ar-flip to any such icon. */
html[dir="rtl"] .ar-flip{transform:scaleX(-1)}
/* Latin terms inside Arabic text keep their own direction (wrap them in <bdi> or <span dir="ltr">). */
html[dir="rtl"] [dir="ltr"]{unicode-bidi:isolate}

/* The language switch (same look on every Arabic page). */
.ar-lang{display:inline-flex;align-items:center;gap:6px;font-weight:700;text-decoration:underline;text-underline-offset:3px}
