/*
 * Thaana web fonts for the portal and the admin panel.
 *
 * MV Utheemu: general text. MV Waheed: headings. Faruma: Dhivehi form fields, the font
 * typists expect while writing. Noto Sans Thaana (SIL OFL): fallback for any Thaana glyph
 * the others lack. Every face is limited to the Thaana block and the Arabic punctuation
 * Dhivehi uses, so Latin text and digits keep the system UI font and a browser only
 * downloads a face when Dhivehi is on the page. Licences: docs/decisions/0001-pdf-engine.md.
 */
@font-face {
    font-family: 'MV Utheemu';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('MVUtheemu-Regular.woff2') format('woff2');
    unicode-range: U+0780-07BF, U+060C, U+061B, U+061F, U+FDF2;
}

@font-face {
    font-family: 'MV Waheed';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('MVWaheed.woff2') format('woff2');
    unicode-range: U+0780-07BF, U+060C, U+061B, U+061F, U+FDF2;
}

@font-face {
    font-family: 'Faruma';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('Faruma.woff2') format('woff2');
    unicode-range: U+0780-07BF, U+060C, U+061B, U+061F, U+FDF2;
}

@font-face {
    font-family: 'Noto Sans Thaana';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('NotoSansThaana-Regular.woff2') format('woff2');
    unicode-range: U+0780-07BF, U+060C, U+061B, U+061F, U+FDF2;
}

@font-face {
    font-family: 'Noto Sans Thaana';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('NotoSansThaana-Bold.woff2') format('woff2');
    unicode-range: U+0780-07BF, U+060C, U+061B, U+061F, U+FDF2;
}

/*
 * Dhivehi headings use MV Waheed everywhere, including Filament's page, section, modal and
 * login headings. Latin headings fall through to the default font because the face only
 * covers Thaana.
 */
h1, h2, h3, h4, h5, h6,
.fi-header-heading,
.fi-simple-header-heading,
.fi-section-header-heading,
.fi-modal-heading,
.fi-wi-stats-overview-stat-value {
    font-family: 'MV Waheed', 'MV Utheemu', 'Noto Sans Thaana', var(--font-family, ui-sans-serif), ui-sans-serif, system-ui, sans-serif;
}

/* Dhivehi input fields are written in Faruma. */
.thaana,
.thaana input,
.thaana textarea,
.thaana [contenteditable] {
    font-family: 'Faruma', 'MV Utheemu', 'Noto Sans Thaana', var(--font-family, ui-sans-serif), ui-sans-serif, system-ui, sans-serif;
}
