/**
 * p.amline.ir ops patches — unified IRANSansX typography (same as app.amline.ir / pro-ui).
 * Fonts are copied to /fonts/iransans/ by apply-all-pilot-fixes.sh from design-tokens.
 */
@font-face {
  font-family: IRANSansX;
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/fonts/iransans/IRANSansX-Light.woff2") format("woff2");
}

@font-face {
  font-family: IRANSansX;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/iransans/IRANSansX-Regular.woff2") format("woff2");
}

@font-face {
  font-family: IRANSansX;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/iransans/IRANSansX-Medium.woff2") format("woff2");
}

@font-face {
  font-family: IRANSansX;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/iransans/IRANSansX-DemiBold.woff2") format("woff2");
}

@font-face {
  font-family: IRANSansX;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/iransans/IRANSansX-Bold.woff2") format("woff2");
}

:root {
  --font-sans: IRANSansX, Tahoma, "Segoe UI", sans-serif;
  font-family: var(--font-sans);
}

html,
body {
  font-family: var(--font-sans) !important;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-feature-settings: "kern" 1, "liga" 1, "ss02" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
button,
input,
textarea,
select,
optgroup {
  font-family: var(--font-sans) !important;
}

/* Override Vazirmatn / Inter leftovers in the hashed bundle */
*,
*::before,
*::after {
  font-family: inherit;
}

[class*="fa-num"],
[class*="amount"],
[class*="price"],
[class*="num"],
.tabular-nums {
  font-feature-settings: "ss02" 1;
  font-variant-numeric: tabular-nums;
}
