/* KHAYR 3.1 — local, user-installed Bahij. All paths relative to assets/. */
@font-face {
  font-family: 'KHAYR Bahij';
  src: url('fonts/Bahij Helvetica Neue-Roman(1).ttf?v=3.1') format('truetype'),
       url('fonts/Bahij-Helvetica-Neue-Roman.ttf?v=3.1') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'KHAYR Bahij Arabic';
  src: url('fonts/Bahij Helvetica Neue-Roman(1).ttf?v=3.1') format('truetype'),
       url('fonts/Bahij-Helvetica-Neue-Roman.ttf?v=3.1') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-089F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+10E60-10E7F,U+1EE00-1EEFF;
}
:root {
  --khayr-arabic: 'KHAYR Bahij', 'Noto Sans Arabic', Tahoma, Arial, sans-serif;
  --khayr-mixed: 'KHAYR Bahij Arabic', system-ui, Tahoma, Arial, sans-serif;
  --khayr-ui-font: var(--khayr-mixed);
}
html:lang(ckb),html:lang(ar),html:lang(ku) { --khayr-ui-font: var(--khayr-arabic); }
html, body, body.public { font-family: var(--khayr-ui-font) !important; }
body :where(*) { font-family: inherit !important; }
body :is(:lang(ar),:lang(ckb),:lang(ku))[lang] { font-family: var(--khayr-arabic) !important; }
body :lang(en)[lang] { font-family: var(--khayr-mixed) !important; }
button, input, select, textarea, optgroup, option, ::file-selector-button, ::placeholder {
  font-family: inherit !important;
}
.chart text, svg text { font-family: inherit !important; }
@media print {
  html, body, body.public { font-family: var(--khayr-ui-font) !important; }
  body :where(*) { font-family: inherit !important; }
}
