/*
  Zabanisa Persian font system - hard self-hosted mode
  Put the official Vazirmatn variable WOFF2 file here:
  static/fonts/vazirmatn/vazirmatn-vf.woff2

  The public app uses the internal family name "ZabanisaFa" so we can
  verify the hosted font is active and avoid silently falling back to a
  locally installed font with the same name.
*/
@font-face {
  font-family: "ZabanisaFa";
  src: url("../fonts/vazirmatn/vazirmatn-vf.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --zabanisa-font-fa: "ZabanisaFa", "Vazirmatn", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --zabanisa-font-latin: "ZabanisaFa", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

html,
body {
  font-family: var(--zabanisa-font-fa) !important;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
button,
input,
select,
textarea,
.dialog-card,
.lesson-card,
.course-card,
.mobile-shell,
.app-shell,
.landing-page {
  font-family: var(--zabanisa-font-fa) !important;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

[lang="en"],
.ltr,
.dir-ltr {
  font-family: var(--zabanisa-font-latin);
}
