/* ═══════════════════════════════════════════════════════
   PLURA MEDICAL — Arabic typeface (self-hosted)

   Thmanyah Sans Medium, served from this repo, never a CDN.

   `unicode-range` limits the face to the Arabic blocks, so the browser
   picks it per character: Arabic words get Thmanyah, the Latin around
   them stays Poppins, which the whole design is built on. A page only
   downloads the file once it actually paints an Arabic glyph.

   The font file is listed ahead of Poppins in every font-family stack
   (search the pages for 'Thmanyah Sans'); this file only declares it.
═══════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Thmanyah Sans';
  /* .woff2 first — 77 KB against the 237 KB .otf, and students are on
     mobile data. The .otf stays as a fallback source for anything that
     cannot read woff2. */
  src: url('thmanyahsans-Medium.woff2') format('woff2'),
       url('thmanyahsans-Medium.otf')   format('opentype');
  /* The file's real weight: its OS/2 usWeightClass is 500 (Medium). */
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

/* One weight is all there is. Left alone, a browser asked for
   font-weight:700 Arabic would fake the bold by smearing the strokes
   sideways, which looks wrong in Arabic in a way it does not in Latin.
   font-synthesis is inherited, so switching weight synthesis off here
   covers every page and every element.

   Latin keeps its real weights — Poppins ships 400/500/600/700/900 — so
   nothing on the Latin side needed synthesising either. Style synthesis
   stays on; only the fake bold goes.

   The shorthand lists what is still allowed (Safari understands this
   form); the longhand after it says the same thing for the browsers
   that implement it. */
html {
  font-synthesis: style;
  font-synthesis-weight: none;
}
