/*
 * Local Persian web fonts bundled under wwwroot/lib.
 * IRANYekanXFaNum is the primary UI/body face; IRANSansXFaNum is used for headings,
 * buttons and other emphasis. Both ship the FaNum variants so Persian digits render.
 */

/* ---- IRANYekanX ---- */
@font-face {
    font-family: 'IRANYekanXFaNum';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/lib/IranYekanX/fonts/Woff2/IRANYekanXFaNum-Regular.woff2') format('woff2'),
         url('/lib/IranYekanX/fonts/Woff/IRANYekanXFaNum-Regular.woff') format('woff');
}

@font-face {
    font-family: 'IRANYekanXFaNum';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/lib/IranYekanX/fonts/Woff2/IRANYekanXFaNum-Bold.woff2') format('woff2'),
         url('/lib/IranYekanX/fonts/Woff/IRANYekanXFaNum-Bold.woff') format('woff');
}

/* ---- IRANSansX (used for headings / emphasis) ---- */
@font-face {
    font-family: 'IRANSansXFaNum';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('/lib/IranSansX/fonts/Woff2/IRANSansXFaNum-Light.woff2') format('woff2'),
         url('/lib/IranSansX/fonts/Woff/IRANSansXFaNum-Light.woff') format('woff');
}

@font-face {
    font-family: 'IRANSansXFaNum';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/lib/IranSansX/fonts/Woff2/IRANSansXFaNum-Regular.woff2') format('woff2'),
         url('/lib/IranSansX/fonts/Woff/IRANSansXFaNum-Regular.woff') format('woff');
}

@font-face {
    font-family: 'IRANSansXFaNum';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/lib/IranSansX/fonts/Woff2/IRANSansXFaNum-Medium.woff2') format('woff2'),
         url('/lib/IranSansX/fonts/Woff/IRANSansXFaNum-Medium.woff') format('woff');
}

@font-face {
    font-family: 'IRANSansXFaNum';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/lib/IranSansX/fonts/Woff2/IRANSansXFaNum-DemiBold.woff2') format('woff2'),
         url('/lib/IranSansX/fonts/Woff/IRANSansXFaNum-DemiBold.woff') format('woff');
}

@font-face {
    font-family: 'IRANSansXFaNum';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/lib/IranSansX/fonts/Woff2/IRANSansXFaNum-Bold.woff2') format('woff2'),
         url('/lib/IranSansX/fonts/Woff/IRANSansXFaNum-Bold.woff') format('woff');
}

@font-face {
    font-family: 'IRANSansXFaNum';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/lib/IranSansX/fonts/Woff2/IRANSansXFaNum-ExtraBold.woff2') format('woff2'),
         url('/lib/IranSansX/fonts/Woff/IRANSansXFaNum-ExtraBold.woff') format('woff');
}

/*
 * Applied after site.css (Tailwind) so these unlayered rules win over Tailwind's
 * @layer theme --font-sans default. Body text uses IRANYekanX; headings/buttons IRANSansX.
 */
:root {
    --font-sans: 'IRANYekanXFaNum', 'IRANSansXFaNum', Tahoma, ui-sans-serif, system-ui, sans-serif;
}

html,
body {
    font-family: 'IRANYekanXFaNum', 'IRANSansXFaNum', Tahoma, ui-sans-serif, system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6,
button,
.font-brand {
    font-family: 'IRANSansXFaNum', 'IRANYekanXFaNum', Tahoma, ui-sans-serif, system-ui, sans-serif;
}

/*
 * A few emerald button utilities the precompiled Tailwind build doesn't include but the admin
 * "activate account" actions use. Kept here (loaded after site.css) so the classes resolve.
 */
.bg-emerald-600 { background-color: #059669; }
.hover\:bg-emerald-700:hover { background-color: #047857; }

