@font-face {
  font-family: "IRANYekan";
  src: url("iranyekanweblight.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekan";
  src: url("iranyekanwebregular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekan";
  src: url("iranyekanwebmedium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IRANYekanFaNum";
  src: url("iranyekanwebregularfanum.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  unicode-range:
    U+0600-06FF,
    U+0750-077F,
    U+08A0-08FF,
    U+200C-200F,
    U+FB50-FDFF,
    U+FE70-FEFF;
}

html[lang="fa"] body {
  direction: rtl;
  font-family: "IRANYekanFaNum", "IRANYekan", Tahoma, Arial, sans-serif !important;
  font-weight: 400;
  font-synthesis: none;
}

html[lang="fa"] body :where(button, input, select, textarea) {
  font-family: inherit;
}

html[lang="fa"] :where(p, li, td) {
  font-weight: 400;
  line-height: 1.85;
}

html[lang="fa"] :where(h1, h2, h3, h4, h5, h6) {
  font-family: "IRANYekan", Tahoma, Arial, sans-serif !important;
  font-weight: 500;
  line-height: 1.45;
}

html[lang="fa"] :where(nav a, .nav a, [role="navigation"] a),
html[lang="fa"] :where(button, [type="button"], [type="submit"], [type="reset"], [role="button"], .btn, .button, [class*="-button"]),
html[lang="fa"] :where(strong, b, th) {
  font-family: "IRANYekan", Tahoma, Arial, sans-serif !important;
  font-weight: 500;
}

html[lang="fa"] :where(label, input, select, textarea) {
  font-weight: 400;
}

html[lang="fa"] :where(.fa-num, .phone, .postal-code) {
  font-family: "IRANYekanFaNum", "IRANYekan", Tahoma, Arial, sans-serif !important;
}

html[lang="fa"] :where(.tech, .tech-ltr, .technical-id, .model-number, .part-number, .standard-code, .email, .url) {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: "IRANYekan", Arial, "Helvetica Neue", system-ui, sans-serif !important;
  font-variant-numeric: lining-nums;
}

html[lang="fa"] :where(.tech, .tech-ltr, .technical-id, .model-number, .part-number, .standard-code) {
  display: inline-block;
  white-space: nowrap;
}

html[lang="fa"] :where(input[type="email"], input[type="url"], .technical-input) {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: "IRANYekan", Arial, "Helvetica Neue", system-ui, sans-serif !important;
  font-variant-numeric: lining-nums;
}

html[lang="fa"] :where(code, pre, kbd, samp) {
  direction: ltr;
  unicode-bidi: isolate;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace !important;
  font-variant-numeric: lining-nums;
}
