/* Arabic text: Thmanyah Sans (licensed, PRODUCT.md § Fonts). Never in git: loaded from app.pinsay.dev (CORS *,
 * pinsay-api/DEPLOY.md § Arabic font), the same files as the dashboard and widget. Arabic code points only, so
 * text without Arabic never downloads it. No SemiBold exists: 600 renders with the 700 face.
 * Not linked from any page: assets/theme-init.js adds this file 1.5 s after load on a first visit (so the font
 * never competes with first paint, dashboard pattern) and at once on later visits. font-display: optional: no swap
 * after the fallback has rendered (no CLS); a later view shows it when the browser cached the file. Until then Arabic text uses the
 * system stack (article.css on /ar/ pages). [lang="ar"] elements inside English pages (the "العربية" links, the
 * home quote) need font-family on themselves: font-family inherits as a computed value, not as the variable. */
@font-face {
  font-family: 'thmanyah sans';
  src: url('https://app.pinsay.dev/fonts/thmanyah/thmanyahsans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}
@font-face {
  font-family: 'thmanyah sans';
  src: url('https://app.pinsay.dev/fonts/thmanyah/thmanyahsans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}
@font-face {
  font-family: 'thmanyah sans';
  src: url('https://app.pinsay.dev/fonts/thmanyah/thmanyahsans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F;
}
:lang(ar) { --font-sans: 'thmanyah sans', 'Geeza Pro', 'Noto Sans Arabic', 'Segoe UI', Tahoma, system-ui, sans-serif; }
[lang="ar"]:not(html) { font-family: var(--font-sans); }
/* Headings and buttons use Thmanyah's 'salt' alternates, as in the dashboard (CEO 2026-11-06). */
:lang(ar):is(h1, h2, h3, h4, h5, h6, .btn, button) { font-feature-settings: 'salt' 1; }
