/* ===== Global Typography (RTL-friendly) ===== */
:root{
  --app-font-sans: IRANSans, Vazirmatn, YekanBakh, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

/* (اختیاری) اگر فونت لوکالی داری، باز کن: */
@font-face{
  font-family: 'IRANSans';
  src:
    url('/fonts/IRANSans.woff2') format('woff2'),
    url('/fonts/IRANSans.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* پایه: به کل صفحات سایت، ادمین، کلاینت اعمال شود */
html, body{
  font-family: var(--app-font-sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* اطمینان برای تگ‌های پرتکرار */
button, input, select, textarea, label,
small, strong, b, i, a, span, p, li,
h1, h2, h3, h4, h5, h6,
table, th, td {
  font-family: inherit;
}

/* ریز بهبود برای عناصر فرم و دکمه‌ها */
button, input, select, textarea {
  line-height: 1.4;
}

/* پیشگیری از override ناخواسته در بخش‌های ماژولار: */
.adminarea, .clientarea, .site, .blog {
  font-family: var(--app-font-sans);
}

/* برای مودال‌ها/کامپوننت‌های جدیدت هم هماهنگ بماند */
.hc-container, .hc-modal { font-family: var(--app-font-sans); }
:root{
  --psp-font: IRANSans, Vazirmatn, YekanBakh, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
}
html, body{ font-family: var(--psp-font) !important; }
/* خنثی کردن utility فونتِ Tailwind در کل سایت */
.font-sans{ font-family: inherit !important; }
/* در صورت نیاز: */
/* .font-serif, .font-mono{ font-family: inherit !important; } */
