/* AL-IMAM CENTER | Global typography | V7.18 Amiri edition
   Keep all type treatments inside this one file for consistent updates.
   Arabic/Latin use Amiri; unsupported scripts such as Cyrillic fall back
   automatically to Noto Serif / system serif without replacement characters.
*/
:root {
  --imam-font: "Amiri", "Noto Naskh Arabic", "Noto Serif", Georgia, serif;
  --imam-font-cyrillic: "Noto Serif", Georgia, "Times New Roman", serif;
}
html, body,
body *:not(svg):not(svg *):not(.material-icons):not(.material-symbols-rounded):not(.material-symbols-outlined):not([class^="fa-"]):not([class*=" fa-"]) {
  font-family: var(--imam-font) !important;
}
/* Amiri does not contain Cyrillic letterforms. Prefer a complementary serif
   in Russian; keep Amiri for Arabic phrases on any multilingual page. */
html:lang(ru), html:lang(ru) body,
html:lang(ru) body *:not(svg):not(svg *) {
  font-family: "Amiri", var(--imam-font-cyrillic) !important;
}
/* Prevent the taller Arabic glyphs from being crowded in navigation and forms. */
body { line-height: 1.75; }
body :is(h1, h2, h3, h4, h5, h6) { line-height: 1.42 !important; }
body :is(button, input, select, textarea, option, label, summary,
         .btn, .cta, .tab, .a-small) {
  line-height: 1.5 !important;
}
body :is(input, select, textarea) { letter-spacing: normal !important; }
/* Maintain readable Arabic in compact controls at narrow widths without
   changing the geometry of icon-only buttons or checkbox/radio controls. */
@media (max-width: 640px) {
  body :is(button, input, select, textarea, .btn, .cta) { text-rendering: optimizeLegibility; }
}
@media print {
  html, body, body *:not(svg):not(svg *) { font-family: var(--imam-font) !important; }
}
