@font-face {
  font-family: "IRANSans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("IRANSansX-Regular.woff2") format("woff2");
}

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

/* نام جایگزین رایج در استایل‌های قدیمی */
@font-face {
  font-family: "IRANSansX";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("IRANSansX-Regular.woff2") format("woff2");
}

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

:root {
  --pk-font: "IRANSans", Tahoma, sans-serif;
}

html,
body,
body.sa-body,
body.sa-login-body,
button,
input,
select,
textarea,
label,
option,
.pk-card,
.pk-btn,
.pk-table,
.pk-nav,
.pk-input,
.pk-sidebar,
.pk-topbar,
.pk-page,
#app,
.hpb-page,
.hpb-sp-toolbar,
.hpb-sp-outline,
.hpb-sp-drawer,
.hpb-sp-insert-pop,
.hpb-media-modal,
#hpb-canvas {
  font-family: "IRANSans", Tahoma, sans-serif !important;
}

/* اجبار روی همهٔ متن‌ها — به‌جز آیکون و mono */
body *:not(i):not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.fa-light):not(.mono):not(code):not(pre):not(kbd):not(samp) {
  font-family: "IRANSans", Tahoma, sans-serif !important;
}

i[class*="fa-"],
.fa,
.fas,
.far,
.fal,
.fab,
.fa-light,
.fa-solid,
.fa-regular,
.fa-brands {
  font-family: "Font Awesome 6 Pro" !important;
}

.mono,
code,
pre,
kbd,
samp {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace !important;
}
