/* IRANSansX webfont package supplied by the site owner.
   Original font license remains applicable. */

@font-face {
	font-family: 'IRANSansX';
	font-style: normal;
	font-display: swap;
	font-weight: 100;
	src: url('fonts/woff2/IRANSansX-Thin.woff2') format('woff2'),
	     url('fonts/woff/IRANSansX-Thin.woff') format('woff');		
}

@font-face {
	font-family: 'IRANSansX';
	font-style: normal;
	font-display: swap;
	font-weight: 200;
	src: url('fonts/woff2/IRANSansX-UltraLight.woff2') format('woff2'),
	     url('fonts/woff/IRANSansX-UltraLight.woff') format('woff');	
}

@font-face {
	font-family: 'IRANSansX';
	font-style: normal;
	font-display: swap;
	font-weight: 300;
	src: url('fonts/woff2/IRANSansX-Light.woff2') format('woff2'),
	     url('fonts/woff/IRANSansX-Light.woff') format('woff');		 
}

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

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

@font-face {
	font-family: 'IRANSansX';
	font-style: normal;
	font-display: swap;
	font-weight: 800;
	src: url('fonts/woff2/IRANSansX-ExtraBold.woff2') format('woff2'),
	     url('fonts/woff/IRANSansX-ExtraBold.woff') format('woff');		 
}

@font-face {
	font-family: 'IRANSansX';
	font-style: normal;
	font-display: swap;
	font-weight: 900;
	src: url('fonts/woff2/IRANSansX-Black.woff2') format('woff2'),
	     url('fonts/woff/IRANSansX-Black.woff') format('woff');		 
}

@font-face {
	font-family: 'IRANSansX';
	font-style: normal;
	font-display: swap;
	font-weight: 950;
	src: url('fonts/woff2/IRANSansX-ExtraBlack.woff2') format('woff2'),
	     url('fonts/woff/IRANSansX-ExtraBlack.woff') format('woff');		 
}

@font-face {
	font-family: 'IRANSansX';
	font-style: normal;
	font-display: swap;
	font-weight: 1000;
	src: url('fonts/woff2/IRANSansX-Heavy.woff2') format('woff2'),
	     url('fonts/woff/IRANSansX-Heavy.woff') format('woff');		 
}

@font-face {
	font-family: 'IRANSansX';
	font-style: normal;
	font-display: swap;
	font-weight: bold;
	src: url('fonts/woff2/IRANSansX-Bold.woff2') format('woff2'),
	     url('fonts/woff/IRANSansX-Bold.woff') format('woff');	 
}

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

/* Persian-language typography */
html[lang="fa"] body,
html[lang="FA"] body,
body[lang="fa"],
body[lang="FA"] {
    font-family: 'IRANSansX', sans-serif !important;
}

/* Elements explicitly marked as Persian */
:lang(fa) {
    font-family: 'IRANSansX', sans-serif;
}
