/* Nawat Tech Typography System V5.8 — Arabic: Cairo; Latin: Inter. */
:root { --nw-font-ar: "Cairo", Tahoma, Arial, sans-serif; --nw-font-latin: "Inter", "Segoe UI", Arial, sans-serif; }
html:lang(ar), html:lang(ar) body, html:lang(ar) button, html:lang(ar) input, html:lang(ar) select, html:lang(ar) textarea { font-family: var(--nw-font-ar) !important; }
html:lang(en), html:lang(en) body, html:lang(en) button, html:lang(en) input, html:lang(en) select, html:lang(en) textarea,
html:lang(fr), html:lang(fr) body, html:lang(fr) button, html:lang(fr) input, html:lang(fr) select, html:lang(fr) textarea { font-family: var(--nw-font-latin) !important; }
/* Make sure text in nested headings, navigation, forms and footer inherits the selected language font. */
html:lang(ar) :is(h1,h2,h3,h4,h5,h6,p,span,a,label,small,strong,em,li,summary,blockquote,option),
html:lang(ar) :is(.site-header,.nw-unified-header,footer,.footer,.hero,.portfolio,.project-form) { font-family: var(--nw-font-ar) !important; }
html:lang(en) :is(h1,h2,h3,h4,h5,h6,p,span,a,label,small,strong,em,li,summary,blockquote,option),
html:lang(fr) :is(h1,h2,h3,h4,h5,h6,p,span,a,label,small,strong,em,li,summary,blockquote,option) { font-family: var(--nw-font-latin) !important; }
/* Explicitly Arabic fragments within Latin pages use Cairo, and vice versa. */
:lang(ar):not(html), [dir="rtl"]:not(html) { font-family: var(--nw-font-ar); }
:lang(en):not(html), :lang(fr):not(html) { font-family: var(--nw-font-latin); }
