/* Urdu and Arabic use connected script: no tracking, generous leading, logical alignment. */
:is(html[lang="ur"],html[lang="ar"]) { --font-display: "Noto Naskh Arabic", "Urdu Typesetting", "Segoe UI", Tahoma, sans-serif; --font-mono: "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif; }
:is(html[lang="ur"],html[lang="ar"]) body { font-family: var(--font-display); }
:is(html[lang="ur"],html[lang="ar"]) :is(h1,h2,h3,h4,p,a,button,label,span,small,select,option) { letter-spacing: normal !important; text-transform: none; }
:is(html[lang="ur"],html[lang="ar"]) :is(p,.prose,.lede,.field,.auth-note,.dt-row) { line-height: 1.95; }
:is(html[lang="ur"],html[lang="ar"]) .sacred-mark .ar-line { font-family: var(--font-ar); line-height: 1.55; }
:is(html[lang="ur"],html[lang="ar"]) :is(.eyebrow,.nh-kind,.cc-meta,.pi-kind,.crumb,.world-nav,.field>span,.btn,.auth-note) { font-size: max(0.85rem, 1em); }
:is(html[lang="ur"],html[lang="ar"]) :is(.world-nav a,.world-nav button,.brand small,.site-footer,.field>span,.contact-grid h4,.cc-meta,.pi-kind,.auth-note) { font-size: .95rem !important; line-height: 1.8; }
html[dir="rtl"] :is(.page,.article,.preferences,.auth-box,.node-intro,.np-section,.home-intro,.dir-tree) { text-align: start; }
html[dir="rtl"] :is(input[type="email"],input[type="password"],input[name="username"],.release-hash,code,pre,a[href^="mailto:"]) { direction: ltr; unicode-bidi: isolate; text-align: left; }
html[dir="rtl"] .release-hash { overflow-wrap: anywhere; }
html[dir="rtl"] .dt-list { padding-inline-start: 1.2rem; padding-inline-end: 0; }
html[dir="rtl"] .dt-glyph { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] :is(.world-header,.world-nav,.actions,.share-bar,.cc-actions) { flex-wrap: wrap; }
:is(html[lang="ur"],html[lang="ar"]) .brand { direction: ltr; }
:is(html[lang="ur"],html[lang="ar"]) :is(.prose,.app-desc)[dir="auto"] { text-align: start; }
@media(max-width:760px) { :is(html[lang="ur"],html[lang="ar"]) .world-nav { gap: .65rem; } :is(html[lang="ur"],html[lang="ar"]) .dt-row { white-space: normal; } }
