/*
  GenMCQ — Central Font System
  ----------------------------
  Every font available on the site is declared here (@font-face) and every
  page's text ultimately reads from the single CSS variable --font-primary.

  To change the site-wide default font WITHOUT touching any other file,
  edit the --font-primary line below. In normal operation, though, the
  active font is controlled from the Admin Panel (site_settings.active_font)
  and applied at runtime by /font-loader.js.
*/

@font-face {
  font-family: 'Kalpurush';
  src: url('/fonts/kalpurush.ttf') format('truetype');
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HindSiliguri';
  src: url('/fonts/HindSiliguri-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'HindSiliguri';
  src: url('/fonts/HindSiliguri-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'SolaimanLipi';
  src: url('/fonts/SolaimanLipi.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'SolaimanLipi';
  src: url('/fonts/SolaimanLipi_Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'MuktiNarrow';
  src: url('/fonts/Mukti_Narrow.ttf') format('truetype');
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Atma';
  src: url('/fonts/Atma-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Atma';
  src: url('/fonts/Atma-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'TiroBangla';
  src: url('/fonts/TiroBangla-Regular.ttf') format('truetype');
  font-weight: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NotoSansBengali';
  src: url('/fonts/NotoSansBengali-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'NotoSansBengali';
  src: url('/fonts/NotoSansBengali-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: 'NotoSans';
  src: url('/fonts/NotoSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Default / fallback value. Overridden at runtime by font-loader.js
     based on the admin-selected font, and kept in sync via localStorage. */
  --font-primary: 'Kalpurush', 'NotoSansBengali', 'NotoSans', sans-serif;
}

body,
.serif-bn,
.sans-bn,
.num-bn,
.bangla-bn {
  font-family: var(--font-primary);
}
