/* Elegant Arabic typography for Frappe – Cairo & Noto Sans Arabic */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=Noto+Sans+Arabic:wght@300;400;500;600;700&display=swap');

/* Base: apply elegant Arabic fonts with fallbacks*/
body,
html {
	font-family: 'Noto Sans Arabic', 'Cairo', 'Segoe UI', Tahoma, sans-serif !important;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* Body text: Noto Sans Arabic – clean, highly readable */
body {
	font-weight: 400;
	line-height: 1.75;
	letter-spacing: 0.01em;
}

/* Headings: Cairo – modern, distinctive */
h1, h2, h3, h4, h5, h6,
.hero .headline,
.page-head-title,
.form-layout .form-page .page-form .page-head .page-title {
	font-family: 'Cairo', 'Noto Sans Arabic', sans-serif !important;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0.02em;
}

/* Inputs and form controls */
input, textarea, select, .form-control,
.desk-form input, .desk-form textarea {
	font-family: 'Noto Sans Arabic', 'Cairo', sans-serif !important;
	font-size: 1em;
}

/* Data tables and lists */
.datatable, .list-row, .list-row-col {
	font-family: 'Noto Sans Arabic', 'Cairo', sans-serif !important;
}

/* RTL-specific refinements */
[dir="rtl"] body,
[dir="rtl"] .msg-box,
[dir="rtl"] .form-layout {
	font-family: 'Noto Sans Arabic', 'Cairo', sans-serif !important;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6 {
	font-family: 'Cairo', 'Noto Sans Arabic', sans-serif !important;
}

/* Print: ensure Arabic renders well */
@media print {
	body, .print-format {
		font-family: 'Noto Sans Arabic', 'Cairo', sans-serif !important;
	}
}
