/* T6-only corrections; shared FR/EN assets and typography stay unchanged. */
html[lang=ar] [data-ar-preview],html[lang=ar] main{min-inline-size:0}
html[lang=ar] :is(.hero-grid,.cards-3,.client-card,.theme-card,.ai-hero-grid,.ai-featured,.ai-article-grid)>*{min-inline-size:0}
html[lang=ar] :is(.hero-copy,.client-card,.theme-card,.client-dialog,.theme-dialog,.ai-note,.ai-article,.ai-featured){text-align:start}
html[lang=ar] .hero-actions{flex-wrap:wrap}
html[lang=ar] .hero-actions .ar-language-notice{flex-basis:100%;color:inherit}
html[lang=ar] :is(.client-dialog,.theme-dialog){max-inline-size:calc(100vw - 24px);max-block-size:calc(100dvh - 24px);overflow:auto}
html[lang=ar] :is(.client-dialog,.theme-dialog) :is(p,li,h2,h3){overflow-wrap:anywhere}
html[lang=ar] .carousel-button svg{rotate:180deg}
html[lang=ar] #client-carousel:focus-visible{outline:3px solid #5753c7;outline-offset:4px}
html[lang=ar] .client-element,html[lang=ar] .theme-dialog{unicode-bidi:plaintext}
html[lang=ar] .hero-download{white-space:normal}
html[lang=ar] .ar-language-notice{overflow-wrap:anywhere}
html[lang=ar] .ai-search-field input{padding-inline:42px 14px}
html[lang=ar] .ai-search-field svg{left:auto;right:14px}
html[lang=ar] :is(.ai-reading,.ai-source,.ai-category,.client-dialog-title,.theme-dialog-title){unicode-bidi:plaintext}
@media(max-width:600px){html[lang=ar] :is(.hero-copy h1,.ai-hero h1){font-size:clamp(28px,8vw,42px)}html[lang=ar] :is(.client-head,.hero-actions){gap:16px}html[lang=ar] .hero-actions>*{max-inline-size:100%;box-sizing:border-box}}
@media(prefers-reduced-motion:reduce){html[lang=ar] .rv{opacity:1;transform:none;transition:none}html[lang=ar] #client-carousel{scroll-behavior:auto}}

html[lang=ar] .client-dialog-practice ul{padding-left:0;padding-inline-start:20px}
html[lang=ar] .client-dialog-practice li{padding-left:0;padding-inline-start:4px}
html[lang=ar] :is(.refs-track,.environment-track){direction:ltr}
html[lang=ar] .environment-places li{direction:rtl;unicode-bidi:isolate}
html[lang=ar] .ref-wordmark{direction:ltr;unicode-bidi:isolate}
@media(max-width:760px){html[lang=ar] .client-row{margin-right:0;padding-right:0;margin-inline-end:calc(var(--pad) * -1);padding-inline-end:var(--pad)}}

html[lang=ar] .ai-note{border-left:0;border-inline-start:1px solid rgba(204,207,239,.3);padding-left:0;padding-inline-start:28px}
@media(max-width:820px){html[lang=ar] .ai-note{padding-inline-start:18px}}

@font-face{font-family:'Maia Arabic Heading Fallback';src:local('Arial');size-adjust:125%}
html[lang=ar] .deepmark-hero h1,html[lang=ar] .deepmark-hero h1 *{font-family:'Noto Sans Arabic','Maia Arabic Heading Fallback',Arial,sans-serif!important}

/* RC2 Resources only: match fallback width; Noto ascent/descent divided by 1.2.
   Final Noto rendering and wrapping stay unchanged; no fixed content heights. */
@font-face{font-family:'Maia Resources Fallback';src:local('Arial');size-adjust:120%;ascent-override:114.5%;descent-override:61.5%;line-gap-override:0%}
html[lang=ar] .actualite-ia #contenu,html[lang=ar] .actualite-ia #contenu *{font-family:'Noto Sans Arabic','Maia Resources Fallback',Arial,sans-serif!important}
