@import url('../font-runtime.php?v=4.1.0');

/* Meshkat global web-font system
 * Primary UI font: IRANSansX
 * Expected files under /assets/fonts/:
 *   IRANSansX-Regular.woff2
 *   IRANSansX-Medium.woff2
 *   IRANSansX-Bold.woff2
 */
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Medium.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Bold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Bold.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSansX';
  src: url('../fonts/IRANSansX-Bold.woff2') format('woff2');
  font-weight: 1000;
  font-style: normal;
  font-display: swap;
}

/* Global typography fallback/enforcement. The dynamic runtime imported above
 * owns --font-main and repeats these selectors with tenant-specific values. */
:root {
  --bs-font-sans-serif: var(--font-main, 'IRANSansX', 'Vazirmatn', 'Vazir', Tahoma, Arial, sans-serif);
  --bs-body-font-family: var(--font-main, 'IRANSansX', 'Vazirmatn', 'Vazir', Tahoma, Arial, sans-serif);
}
html:root,
html:root body,
html:root body *,
html:root body *::before,
html:root body *::after,
html:root button,
html:root input,
html:root select,
html:root textarea,
html:root optgroup,
html:root option,
html:root table,
html:root th,
html:root td,
html:root label {
  font-family: var(--font-main, 'IRANSansX', 'Vazirmatn', 'Vazir', Tahoma, Arial, sans-serif) !important;
}
html:root input::placeholder,
html:root textarea::placeholder {
  font-family: var(--font-main, 'IRANSansX', 'Vazirmatn', 'Vazir', Tahoma, Arial, sans-serif) !important;
}
html:root body [data-font-preview] {
  font-family: var(--font-preview, var(--font-main)) !important;
}
