/*
 * فونت‌های فارسی دیوی — فقط وقتی سوییچ «بارگذاری فونت‌های فارسی دیوی»
 * روشن باشد enqueue می‌شود (class-divifarsi.php).
 */
@font-face {
    font-family: 'IRANSansX';
    src: url('fonts/IRANSansX/IRANSansX.woff2') format('woff2'),
         url('fonts/IRANSansX/IRANSansX.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'IRANSansX';
    src: url('fonts/IRANSansX/IRANSansX-Bold.woff2') format('woff2'),
         url('fonts/IRANSansX/IRANSansX-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Pinar';
    src: url('fonts/PinarFD/Pinar-FD-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Pinar';
    src: url('fonts/PinarFD/Pinar-FD-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* یک قانون واحد و سراسری برای کل سایت — عمداً بدون هیچ selector
   هدفمندی (نه body، نه .et_pb_module، نه #main-header/#top-menu
   جداگانه): با * و !important هر عنصری در هر بخشی از سایت (از جمله
   هدر/منوی خودِ دیوی که فونت اختصاصی خودش را با specificity بالاتر
   تعیین می‌کند) همین فونت را می‌گیرد، بدون نیاز به رهگیری تک‌تک
   selectorهای دیوی/قالب. */
* {
    font-family: 'IRANSansX', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Pinar', 'IRANSansX', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    font-weight: bold;
}
