/* =============================================================================
   Self-hosted Hind Siliguri — the app's Bengali typeface.

   Bengali used to come only from fonts.googleapis.com. When that request is
   slow, blocked, or unavailable (corporate networks, some mobile carriers, or
   simply a bad moment on the live host) the stack fell through to Inter, which
   has no Bengali glyphs, and then to whatever the operating system chose. A
   machine with a proper Bengali system font renders fine, so the bug is
   invisible on some computers and obvious on others — exactly the "Bengali is
   broken on live but fine locally" symptom.

   These files already ship with the project (mPDF uses them for the PDFs), so
   serving them to the browser too costs nothing extra in the bundle and removes
   the CDN from the path entirely.

   Paths are relative to THIS file, so they keep working whether the app is
   installed at the domain root or in a subfolder.
   ========================================================================== */

@font-face {
    font-family: 'Hind Siliguri';
    src: url('../fonts/HindSiliguri-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    /* swap: show text immediately in a fallback, restore once the real face is
       ready — never leave the user staring at invisible text */
    font-display: swap;
}
@font-face {
    font-family: 'Hind Siliguri';
    src: url('../fonts/HindSiliguri-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Hind Siliguri';
    src: url('../fonts/HindSiliguri-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
/* 500 and 800 are asked for in a few places; map them to the nearest shipped
   weight so the browser never synthesises a fake bold over Bengali conjuncts. */
@font-face {
    font-family: 'Hind Siliguri';
    src: url('../fonts/HindSiliguri-SemiBold.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Hind Siliguri';
    src: url('../fonts/HindSiliguri-Bold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* -----------------------------------------------------------------------------
   Amiri — the naskh face used for the topbar bismillah and the Hijri date.

   Same reasoning as above: Arabic is a joining script, so a fallback without
   proper shaping renders the letters in isolated form instead of connected.
   Self-hosted for the same reason Bengali is.

   Licence: SIL Open Font License 1.1 — see ../fonts/Amiri-OFL.txt. The OFL
   permits redistribution with the software, which is why the file travels in
   the deploy bundle.
   -------------------------------------------------------------------------- */
@font-face {
    font-family: 'Amiri';
    src: url('../fonts/Amiri-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Amiri';
    src: url('../fonts/Amiri-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
