/* Thmanyah Sans: local, unmodified font assets. See assets/fonts/README.md. */
@font-face {
    font-family: 'Thmanyah Sans';
    src: url('assets/fonts/thmanyahsans-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Thmanyah Sans';
    src: url('assets/fonts/thmanyahsans-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Thmanyah Sans';
    src: url('assets/fonts/thmanyahsans-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Thmanyah Sans';
    src: url('assets/fonts/thmanyahsans-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Thmanyah Sans';
    src: url('assets/fonts/thmanyahsans-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-ui: 'Thmanyah Sans', sans-serif;
    --font-ar: var(--font-ui);
    --font-en: var(--font-ui);
}

/* Cover legacy inline styles and form controls without replacing icon fonts. */
html,
body,
body *:not(:where(.fa, .fas, .far, .fal, .fat, .fad, .fab, .fass, .fasr,
    [class^='fa-'], [class*=' fa-'], [data-icon-font])) {
    font-family: var(--font-ui) !important;
    font-variant-numeric: lining-nums tabular-nums;
}

input::placeholder,
textarea::placeholder,
button,
select,
option {
    font-family: var(--font-ui);
}

/* Use only for standalone values; Arabic sentences keep their RTL flow. */
.latin-number,
[data-latin-number] {
    direction: ltr;
    unicode-bidi: isolate;
    font-variant-numeric: lining-nums tabular-nums;
}
