/* Self-hosted fonts (no CDN) */

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../vendor/fonts/vazirmatn/Vazirmatn-RD[wght].6cf898b9069a.woff2") format("woff2");
}

/* LTR uses system fonts to avoid missing static assets during collectstatic.
   Add a self-hosted Inter file later only if the font file is committed too. */

html[dir="rtl"] {
  --font-sans: "Vazirmatn", Tahoma, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

html[dir="ltr"] {
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Ensure body uses the stack (both public + panel already set inline font-family too) */
html, body {
  font-family: var(--font-sans);
}

/* Small readability tweak for Persian/Arabic UI */
html[dir="rtl"] body {
  line-height: 1.75;
}