@font-face {
  font-family: Tajawal;
  src: url('/fonts/Tajawal-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Tajawal;
  src: url('/fonts/Tajawal-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Tajawal;
  src: url('/fonts/Tajawal-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: Alexandria;
  src: url('/fonts/Alexandria.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Naskh Arabic';
  src: url('/fonts/NotoNaskhArabic.ttf') format('truetype');
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: 'Cairo UI';
  src: url('/assets/fonts/Cairo.ttf') format('truetype');
  font-weight: 200 1000;
  font-display: swap;
}
:root[data-font-family="cairo"] {
  --ui-font: 'Cairo UI', Tahoma, Arial, sans-serif;
}

:root {
  --ui-font: Tajawal, Tahoma, Arial, sans-serif;
}
:root[data-font-family="alexandria"] {
  --ui-font: Alexandria, Tahoma, Arial, sans-serif;
}
:root[data-font-family="noto-naskh-arabic"] {
  --ui-font: 'Noto Naskh Arabic', Tahoma, Arial, sans-serif;
}

@media screen {
  body.farz-ui, .document-page .no-print, .report-paper > .no-print {
    font-family: var(--ui-font);
  }
  .farz-ui :where(button, input, select, textarea),
  .no-print :where(button, input, select, textarea) {
    font-family: inherit;
  }
  .font-family-choices input[value="cairo"] + span {font-family: 'Cairo UI', sans-serif}
  .font-family-choices input[value="tajawal"] + span {font-family: Tajawal, sans-serif}
  .font-family-choices input[value="alexandria"] + span {font-family: Alexandria, sans-serif}
  .font-family-choices input[value="noto-naskh-arabic"] + span {font-family: 'Noto Naskh Arabic', serif}
}
