/* =====================================================================
 * StepUp Academy ERP — font stacks
 * Bangla: Kalpurush (owner-supplied) → Noto Sans Bengali (bundled, OFL)
 *         → system fallbacks (Nirmala UI / Vrinda / sans-serif)
 * English: Inter-style system sans-serif stack for a modern SaaS interface
 * Apply per language with .font-bangla / .font-english, or rely on the
 * document default (html[lang=bn]) which uses the Bangla stack.
 * ===================================================================== */

/* Bundled Noto Sans Bengali (OFL) — variable weight 100..900 */
@font-face {
  font-family: 'Noto Sans Bengali';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/noto-sans-bengali-bengali.woff2') format('woff2');
  unicode-range: U+0951-0952, U+0964-0965, U+0980-09FE, U+1CD0, U+1CD2, U+1CD5-1CD6, U+1CD8, U+1CE1, U+1CEA, U+1CED, U+1CF2, U+1CF5-1CF7, U+200C-200D, U+20B9, U+25CC, U+A8F1;
}
@font-face {
  font-family: 'Noto Sans Bengali';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/noto-sans-bengali-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Noto Sans Bengali';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/noto-sans-bengali-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* KALPURUSH — uncomment after placing your licensed font file
@font-face {
  font-family: 'Kalpurush';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/kalpurush.woff2') format('woff2'),
       url('../fonts/kalpurush.ttf') format('truetype');
}
*/

:root {
  --font-bangla: 'Inter', 'Noto Sans Bengali', 'Segoe UI', 'Nirmala UI', 'Vrinda', system-ui, sans-serif;
  --font-english: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

html[lang="bn"], body { font-family: var(--font-bangla); }

.font-bangla { font-family: var(--font-bangla); }
.font-english, .font-en { font-family: var(--font-english); }

/* Latin fragments inside Bangla pages (names, numbers, codes) */
.font-english, code, .mono, .num, .table td.num, .table th.num {
  font-family: var(--font-english);
}
code, .mono, .table code {
  font-family: 'Consolas', 'Courier New', monospace;
}
