/* Language / RTL-aware typography.
   Default (English) = Inter body + Funnel Display headings (set in theme.json).
   Arabic = Cairo. TranslatePress marks Arabic with dir="rtl" on <html> and a
   .translatepress-ar body class; :lang(ar) is the belt-and-suspenders hook. */

html[dir="rtl"],
body.translatepress-ar,
:lang(ar) {
	font-family: "Cairo", sans-serif;
}

html[dir="rtl"] :is(h1, h2, h3, h4, h5, h6),
body.translatepress-ar :is(h1, h2, h3, h4, h5, h6),
:lang(ar) :is(h1, h2, h3, h4, h5, h6) {
	font-family: "Cairo", sans-serif;
	letter-spacing: 0;      /* drop the Latin tracking for Arabic */
	line-height: 1.5;
}

/* Keep code/pre Latin + LTR even on Arabic pages. */
html[dir="rtl"] :is(code, pre, kbd, samp) {
	direction: ltr;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
