@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn[wght].woff2") format("woff2 supports variations"),
       url("../fonts/Vazirmatn[wght].woff2") format("woff2-variations"),
       url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* PatternFly 5 global font overrides (Admin & Account Consoles) */
:root {
  --pf-v5-global--FontFamily--text: "Vazirmatn", "RedHatText", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --pf-v5-global--FontFamily--heading: "Vazirmatn", "RedHatDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Persian typography & Right-to-Left (RTL) defaults */
html[dir="rtl"],
html[lang="fa"] {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] body,
html[lang="fa"] body {
  font-family: "Vazirmatn", "RedHatText", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .pf-v5-c-form__label,
html[dir="rtl"] .pf-v5-c-form-control,
html[dir="rtl"] .pf-v5-c-table,
html[lang="fa"] .pf-v5-c-form__label,
html[lang="fa"] .pf-v5-c-form-control,
html[lang="fa"] .pf-v5-c-table {
  text-align: right;
}
