/* ============================================================
   rm-fonts.css — IRANYekanX font for Restaurant Menu theme
   Only weights used by the theme (400/500/600/700/800).
   Scoped to body.font-vazir so other layouts are unaffected.
   ============================================================ */

@font-face {
    font-family: IRANYekanX;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/font/woff2/IRANYekanX-Regular.woff2') format('woff2');
}
@font-face {
    font-family: IRANYekanX;
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('/font/woff2/IRANYekanX-Medium.woff2') format('woff2');
}
@font-face {
    font-family: IRANYekanX;
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/font/woff2/IRANYekanX-DemiBold.woff2') format('woff2');
}
@font-face {
    font-family: IRANYekanX;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/font/woff2/IRANYekanX-Bold.woff2') format('woff2');
}
@font-face {
    font-family: IRANYekanX;
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/font/woff2/IRANYekanX-ExtraBold.woff2') format('woff2');
}

/* ── Apply font to all elements in the RM theme ─────────────────────────── */
/* body.font-vazir * beats the * { font-family: Vazirmatn } in restaurant-menu.css */
body.font-vazir,
body.font-vazir * {
    font-family: IRANYekanX, Vazirmatn, sans-serif;
    font-feature-settings: "ss02";
}

/* ── Exclude LTR/numeric fields from Persian digits ─────────────────────── */
body.font-vazir input[dir="ltr"],
body.font-vazir input[type="tel"],
body.font-vazir input[type="number"],
body.font-vazir input[type="email"],
body.font-vazir input[type="password"],
body.font-vazir .ltr,
body.font-vazir [dir="ltr"],
body.font-vazir [dir="ltr"] * {
    font-feature-settings: normal;
}
