/**
 * Yekan Bakh (fontiran.com) as the default UI font.
 * Commercial/proprietary font - licensed separately from this app.
 */

/* Frappe asks for 500/600 on most labels, buttons and headings. Each face is
   mapped one step lighter than its nominal weight so the UI reads thinner while
   keeping the original hierarchy. */

@font-face {
	font-family: "Yekan Bakh";
	font-style: normal;
	font-weight: 100 300;
	font-display: swap;
	src: url("/assets/smartprocee_erpnext_persiant/fonts/YekanBakh-Thin.woff2") format("woff2"),
		url("/assets/smartprocee_erpnext_persiant/fonts/YekanBakh-Thin.woff") format("woff");
}

@font-face {
	font-family: "Yekan Bakh";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/assets/smartprocee_erpnext_persiant/fonts/YekanBakh-Light.woff2") format("woff2"),
		url("/assets/smartprocee_erpnext_persiant/fonts/YekanBakh-Light.woff") format("woff");
}

@font-face {
	font-family: "Yekan Bakh";
	font-style: normal;
	font-weight: 500 600;
	font-display: swap;
	src: url("/assets/smartprocee_erpnext_persiant/fonts/YekanBakh-Regular.woff2") format("woff2"),
		url("/assets/smartprocee_erpnext_persiant/fonts/YekanBakh-Regular.woff") format("woff");
}

@font-face {
	font-family: "Yekan Bakh";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("/assets/smartprocee_erpnext_persiant/fonts/YekanBakh-SemiBold.woff2") format("woff2"),
		url("/assets/smartprocee_erpnext_persiant/fonts/YekanBakh-SemiBold.woff") format("woff");
}

@font-face {
	font-family: "Yekan Bakh";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("/assets/smartprocee_erpnext_persiant/fonts/YekanBakh-Bold.woff2") format("woff2"),
		url("/assets/smartprocee_erpnext_persiant/fonts/YekanBakh-Bold.woff") format("woff");
}

@font-face {
	font-family: "Yekan Bakh";
	font-style: normal;
	font-weight: 900;
	font-display: swap;
	src: url("/assets/smartprocee_erpnext_persiant/fonts/YekanBakh-ExtraBold.woff2") format("woff2"),
		url("/assets/smartprocee_erpnext_persiant/fonts/YekanBakh-ExtraBold.woff") format("woff");
}

/* Every Frappe stylesheet resolves its font through --font-stack. */
:root {
	--font-stack: "Yekan Bakh", "Inter", "-apple-system", "BlinkMacSystemFont", "Segoe UI",
		"Roboto", "Helvetica Neue", Arial, sans-serif;
}

body,
.navbar,
.page-head,
.modal,
.dropdown-menu,
.form-control,
.input-with-feedback,
button,
input,
select,
textarea,
.btn,
.ql-editor,
.datepicker,
.awesomplete > ul {
	font-family: var(--font-stack) !important;
}

/* Frappe hardcodes a monospace stack for code and diff views; leave those alone. */
code,
kbd,
pre,
samp,
.code-field,
.ace_editor,
.control-value.like-disabled-input[data-fieldtype="Code"] {
	font-family: var(--font-monospace, SFMono-Regular, Menlo, Consolas, monospace) !important;
}

@media print {
	body,
	.print-format {
		font-family: var(--font-stack) !important;
	}
}
