/* Physical layout follows the English design. Text keeps the document language.
   Low-specificity rules retain component typography and intentional centering. */
:root{--content-direction:ltr}
html[dir=rtl]{--content-direction:rtl}
:where([lang=en]){--content-direction:ltr}
:where([lang=ar]){--content-direction:rtl}
:where(h1,h2,h3,h4,h5,p,dt,dd,label,input,textarea,select,figcaption,.localized-text,.m04-title,.split-arrow__label,.button>span:not([aria-hidden])){direction:var(--content-direction)}
:where(.localized-text){unicode-bidi:isolate}
:where(li>.localized-text){display:block}
/* Outer blocks, grids, rows and controls must never inherit reading direction. */
:where(.shell,.page-shell,.editorial-shell,.site-footer,.nav,.nav-links,.nav-actions,
 .hero-copy,.hero-grid,.home-introduction__inner,.home-introduction__rail,.home-introduction__copy,
 .intro-scene-nav,.expertise-hero-copy,.expertise-hero-grid,.editorial-overline,.editorial-service,
 .editorial-capabilities,.editorial-index,.editorial-cta,.split-arrow,.button,.eyebrow,.location,
 .home-introduction__label,.home-introduction__link,.footer-cta__inner,.footer-cta__link,
 .footer-identity-row,.footer-columns,.footer-bottom__inner,.footer-legal__items,.footer-location,
 .footer-company-resources ul,.about-intro,.about-section,.about-story__grid,.about-direction__panels,
 .about-leadership__grid,.m04,.m04-stages,.m04-stage,.m04-select,.m04-refinement,.m04-info__header,
 .m04-info__number,.service-detail-lead,.editorial-heading,.capability-grid,.capability-card,
 .problem-grid,.scope-strip,.process-steps,.process-steps li,.deliverable-grid,.related-grid,
 .related-service,.related-action,.service-consultation,.service-cards,.service-card,.page-cta,
 .contact-layout,.inquiry-form,.form-actions,li){direction:ltr}
:where(.footer-location>span,.m04-info__number>span,.footer-legal__items>span){direction:var(--content-direction);unicode-bidi:isolate}
:where(.footer-identity__name,.footer-copyright,code,pre,bdi[dir=ltr],[dir=ltr],a[href^="mailto:"],a[href^="tel:"]){direction:ltr}
:where(select){direction:ltr}
:where(select option){direction:var(--content-direction)}
html[dir=rtl] select{text-align:right}
.site-footer .footer-nav a>.localized-text{flex:1;text-align:start}
