/* Arabic pages only (base.html loads this file when the page language is
   "ar"; English pages never load it). Layout mirrors through dir="rtl" and
   the logical start/end rules in the other stylesheets; this file adds the
   self-hosted Arabic font (no third-party font requests) and the few
   adjustments Arabic script needs. */
@font-face {
  font-family: "Noto Sans Arabic";
  src: url("fonts/noto-sans-arabic-regular.woff2") format("woff2");
  font-weight: 100 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: "Noto Sans Arabic";
  src: url("fonts/noto-sans-arabic-bold.woff2") format("woff2");
  font-weight: 601 900;
  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;
}
/* Arabic letters use Noto Sans Arabic; Latin text (English headlines,
   source names) keeps the site's own fonts, because of unicode-range. */
html[lang="ar"] {
  --serif: "Noto Sans Arabic", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}
html[lang="ar"] body {
  font-family: "Noto Sans Arabic", "DM Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  line-height: 1.75;
}
html[lang="ar"] :is(.news-display, .news-interest-editor-heading h3, .news-stat-card strong) {
  font-family: "Noto Sans Arabic", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}
/* Letter spacing breaks the joins between Arabic letters. */
html[lang="ar"] * { letter-spacing: normal !important; }
/* English text inside an Arabic page keeps its own direction. */
html[lang="ar"] :is(input[type="email"], input[type="url"], input[type="password"]) { direction: ltr; text-align: end; }
/* Arabic has no true italic: keep the emphasis colour, drop the slanted glyphs. */
html[lang="ar"] :is(em, i, .news-display em, .display em) { font-style: normal; }
