/* IranSans 5 web fonts - self-hosted.
   LTR (en) uses 'IRANSans' (Latin digits). RTL (fa) uses 'IRANSans FaNum'
   (Persian digits built into the typeface). */

/* --- IRANSans (Latin digits) --- */
@font-face { font-family: 'IRANSans'; font-style: normal; font-weight: 200; font-display: swap; src: url('iransans/IRANSans-UltraLight.woff2') format('woff2'); }
@font-face { font-family: 'IRANSans'; font-style: normal; font-weight: 300; font-display: swap; src: url('iransans/IRANSans-Light.woff2') format('woff2'); }
@font-face { font-family: 'IRANSans'; font-style: normal; font-weight: 400; font-display: swap; src: url('iransans/IRANSans-Regular.woff2') format('woff2'); }
@font-face { font-family: 'IRANSans'; font-style: normal; font-weight: 500; font-display: swap; src: url('iransans/IRANSans-Medium.woff2') format('woff2'); }
@font-face { font-family: 'IRANSans'; font-style: normal; font-weight: 700; font-display: swap; src: url('iransans/IRANSans-Bold.woff2') format('woff2'); }
@font-face { font-family: 'IRANSans'; font-style: normal; font-weight: 900; font-display: swap; src: url('iransans/IRANSans-Bold.woff2') format('woff2'); }

/* --- IRANSans FaNum (Persian digits) --- */
@font-face { font-family: 'IRANSans FaNum'; font-style: normal; font-weight: 200; font-display: swap; src: url('iransans/IRANSansFaNum-UltraLight.woff2') format('woff2'); }
@font-face { font-family: 'IRANSans FaNum'; font-style: normal; font-weight: 300; font-display: swap; src: url('iransans/IRANSansFaNum-Light.woff2') format('woff2'); }
@font-face { font-family: 'IRANSans FaNum'; font-style: normal; font-weight: 400; font-display: swap; src: url('iransans/IRANSansFaNum-Regular.woff2') format('woff2'); }
@font-face { font-family: 'IRANSans FaNum'; font-style: normal; font-weight: 500; font-display: swap; src: url('iransans/IRANSansFaNum-Medium.woff2') format('woff2'); }
@font-face { font-family: 'IRANSans FaNum'; font-style: normal; font-weight: 700; font-display: swap; src: url('iransans/IRANSansFaNum-Bold.woff2') format('woff2'); }
@font-face { font-family: 'IRANSans FaNum'; font-style: normal; font-weight: 900; font-display: swap; src: url('iransans/IRANSansFaNum-Black.woff2') format('woff2'); }

/* The app theme font-family uses var(--app-font, IRANSans). In fa/RTL it
   points at the FaNum face (Persian digits); in en/LTR at IRANSans. */
:root {
  --app-font: 'IRANSans';
}
html[dir="rtl"] {
  --app-font: 'IRANSans FaNum';
}