/* ArnaAI — Persian font (Vazirmatn). Update-proof: this file + the font files
   live under public/css and public/fonts, which the vendor zip does NOT ship,
   so a vendor update (unzip over the tree) never overwrites or removes them.
   Loaded via the frontend `custom_css_url` setting (DB) and a <link> in the
   shared head partials. No SCSS / no build step involved. */

/* Variable font (weight 100..900) — Arabic subset covers Persian, Latin subset
   for English text & ASCII digits. */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/vazirmatn/vazirmatn-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0660-0669, U+066E-06D3, U+06F0-06FF, U+0750-077F,
                 U+08A0-08FF, U+200C-200D, U+FB50-FDFF, U+FE70-FEFF;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/vazirmatn/vazirmatn-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F,
                 U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}

/* Apply Vazirmatn for Persian / RTL. Inheritance from body covers most text;
   explicit common text tags catch elements that hard-set their own family. */
html[lang="fa"] body,
.rtl body,
html[lang="fa"] h1, html[lang="fa"] h2, html[lang="fa"] h3,
html[lang="fa"] h4, html[lang="fa"] h5, html[lang="fa"] h6,
html[lang="fa"] p, html[lang="fa"] a, html[lang="fa"] span,
html[lang="fa"] li, html[lang="fa"] td, html[lang="fa"] th, html[lang="fa"] label,
html[lang="fa"] button, html[lang="fa"] input, html[lang="fa"] textarea,
html[lang="fa"] select, html[lang="fa"] .btn, html[lang="fa"] .form-control {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif !important;
}

/* Do NOT touch icon fonts — restore their own family so glyphs keep rendering. */
html[lang="fa"] .fa, html[lang="fa"] .fas, html[lang="fa"] .far,
html[lang="fa"] .fab, html[lang="fa"] .fal, html[lang="fa"] .fad,
html[lang="fa"] [class^="fa-"], html[lang="fa"] [class*=" fa-"],
html[lang="fa"] .material-icons, html[lang="fa"] .material-icons-outlined,
html[lang="fa"] .ti, html[lang="fa"] [class^="ti-"], html[lang="fa"] [class*=" ti-"],
html[lang="fa"] .icon, html[lang="fa"] [class^="icon-"], html[lang="fa"] [class*=" icon-"],
html[lang="fa"] .feather, html[lang="fa"] i[class] {
  font-family: revert !important;
}
