@font-face {
    font-family: "thmanyah sans";
    src: url("../fonts/thmanyah/thmanyahsans-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
    /* Arabic script only — Latin falls through to Inter in the bidi stack */
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
    font-family: "thmanyah sans";
    src: url("../fonts/thmanyah/thmanyahsans-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
    font-family: "thmanyah sans";
    src: url("../fonts/thmanyah/thmanyahsans-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
    font-family: "thmanyah sans";
    src: url("../fonts/thmanyah/thmanyahsans-Medium.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
    font-family: "thmanyah sans";
    src: url("../fonts/thmanyah/thmanyahsans-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
    font-family: "thmanyah sans";
    src: url("../fonts/thmanyah/thmanyahsans-Black.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
    font-family: "thmanyah sans";
    src: url("../fonts/thmanyah/thmanyahsans-Black.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
    font-family: "thmanyah serif text";
    src: url("../fonts/thmanyah/thmanyahseriftext-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "thmanyah serif text";
    src: url("../fonts/thmanyah/thmanyahseriftext-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "thmanyah serif text";
    src: url("../fonts/thmanyah/thmanyahseriftext-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "thmanyah serif text";
    src: url("../fonts/thmanyah/thmanyahseriftext-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "thmanyah serif text";
    src: url("../fonts/thmanyah/thmanyahseriftext-Black.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "thmanyah serif display";
    src: url("../fonts/thmanyah/thmanyahserifdisplay-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "thmanyah serif display";
    src: url("../fonts/thmanyah/thmanyahserifdisplay-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "thmanyah serif display";
    src: url("../fonts/thmanyah/thmanyahserifdisplay-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

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

@font-face {
    font-family: "thmanyah serif display";
    src: url("../fonts/thmanyah/thmanyahserifdisplay-Black.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* =========================================================
   التطبيق: موديولات التصميم الجديد فقط (ds-hr / ds-fawj).
   الصفحات القديمة تبقى على Bahij عبر dashboard.css / index.css.
   هذا الملف هو المصدر الوحيد لتعريف @font-face لثمانية. لا تعرّفها في ملفات أخرى.
   الخطوط الأخرى (serif text / serif display) تبقى لمن يطلبها صراحة.
   أيقونات الخطوط (Hugeicons / Font Awesome / Material) مستثناة حتى لا تتحول رموزها إلى مربعات.
   ========================================================= */
html[lang="ar"] :is(body.ui-shell, body.fawj-shell) {
    /* Thmanyah (Arabic unicode-range) → Inter (Latin) → Bahij fallback */
    --font-sans: "thmanyah sans", Inter, "Bahij_TheSansArabic", Tahoma, Arial, sans-serif;
}

html[lang="ar"] :is(body.ui-shell, body.fawj-shell),
html[lang="ar"] :is(body.ui-shell, body.fawj-shell) :is(
    h1, h2, h3, h4, h5, h6, p, a, li, dt, dd, label, legend, th, td, caption, figcaption,
    small, strong, b, em, blockquote, button, input, select, textarea, option, optgroup
):not(
    .fa, .fas, .far, .fab, .fal, .fad, .material-icons, .hgi,
    [class^="fa-"], [class*=" fa-"], [class^="hgi-"], [class*=" hgi-"], [class^="ri-"], [class*=" ri-"]
) {
    font-family: var(--font-sans);
}
