/* Arabic readability: connected glyphs, calm headings and consistent RTL flow. */
html[lang="ar"] { --body: "Noto Sans Arabic", Tahoma, Arial, sans-serif; --display: var(--body); }
html[lang="ar"] body { font-family: var(--body); line-height: 1.95; }
html[lang="ar"] :is(h1,h2,h3,h4,p,a,button,label,summary,li,th,td,small,span) { letter-spacing: normal; word-spacing: normal; }
html[lang="ar"] :is(h1,h2,h3,h4) { font-family: var(--body); line-height: 1.65; text-wrap: pretty; }
html[lang="ar"] .hero h1 { font-size: clamp(2rem, 4.1vw, 3.75rem); line-height: 1.65; }
html[lang="ar"] .section-head h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
html[lang="ar"] :is(.hero-copy,.section-head>p,.detail-lead,.detail-copy,.tool-card p,.expert-bio,.research-help,.research-source-note) { font-size: 1rem; line-height: 1.95; }
html[lang="ar"] :is(button,input,select,textarea) { font-family: var(--body); }
html[lang="ar"] :is(button,.button,label,summary,.filter,.quick-link small,.brand-text small) { font-size: .875rem; line-height: 1.8; }
html[lang="ar"] :is(p,li,dd,td,th,label) { text-align: start; overflow-wrap: break-word; }
html[lang="ar"] :is(ul,ol) { padding-inline-start: 1.6em; }
html[lang="ar"] :is(bdi,[lang="en"],a[href^="mailto:"],input[type="email"],input[type="url"],input[type="tel"],code,kbd) { direction: ltr; unicode-bidi: isolate; }
html[lang="ar"] :is(input[type="email"],input[type="url"],input[type="tel"]) { text-align: left; }
html[lang="ar"] :is(.research-paper-meta,.research-paper-facts,.research-live-results h4) { direction: ltr; unicode-bidi: isolate; text-align: left; }
html[lang="ar"] :is(.filters,.hero-actions,.research-buttons) { row-gap: .65rem; }
html[lang="ar"] :is(.tool-card,.expert-info,.research-fields>*):not([hidden]) { min-width: 0; }
@media(max-width: 600px) {
  html[lang="ar"] .hero h1 { font-size: 2rem; }
  html[lang="ar"] :is(.section-head h2,.brief-heading h2) { font-size: 1.65rem; }
  html[lang="ar"] :is(.hero-actions,.research-buttons) { align-items: stretch; }
  html[lang="ar"] .button { white-space: normal; }
  html[lang="ar"] .brand-text small { font-size: .75rem; }
}
