/* Nitron UI — local Persian fonts (Vazirmatn, Estedad, Shabnam) */

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn/Vazirmatn-Thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn/Vazirmatn-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn/Vazirmatn-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/vazirmatn/Vazirmatn-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Estedad";
  src: url("../fonts/estedad/Estedad-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Estedad";
  src: url("../fonts/estedad/Estedad-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Estedad";
  src: url("../fonts/estedad/Estedad-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Estedad";
  src: url("../fonts/estedad/Estedad-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Estedad";
  src: url("../fonts/estedad/Estedad-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Estedad";
  src: url("../fonts/estedad/Estedad-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Shabnam";
  src: url("../fonts/shabnam/Shabnam-Thin-FD.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Shabnam";
  src: url("../fonts/shabnam/Shabnam-Light-FD.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Shabnam";
  src: url("../fonts/shabnam/Shabnam-FD.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Shabnam";
  src: url("../fonts/shabnam/Shabnam-Medium-FD.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Shabnam";
  src: url("../fonts/shabnam/Shabnam-Bold-FD.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --np-font: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  --np-font-display: "Estedad", "Vazirmatn", Tahoma, sans-serif;
}

html[data-font="vazirmatn"] { --np-font: "Vazirmatn", Tahoma, "Segoe UI", sans-serif; }
html[data-font="estedad"] { --np-font: "Estedad", "Vazirmatn", Tahoma, sans-serif; }
html[data-font="shabnam"] { --np-font: "Shabnam", "Vazirmatn", Tahoma, sans-serif; }

html, body {
  font-family: var(--np-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.np-page-title,
.np-topnav-title,
.login-card h1,
.np-sidebar .brand,
.np-stat .value,
.np-item-card__title,
.np-error-code,
.np-chart-head h3 {
  font-family: var(--np-font-display);
  letter-spacing: -.01em;
}

.np-font-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--np-border);
  background: var(--np-card);
  color: var(--np-dark);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  max-width: 120px;
}
.np-font-select:focus {
  outline: none;
  border-color: var(--np-accent);
}
