/* Arabic (right-to-left) pages: font, spacing and the pieces that stay left-to-right.
   Loaded after site.rtl.css, which is site.css mirrored by _src/build_ar.py. */
/* Latin font first, Arabic second (as mozilla.org does): brand names and Latin terms keep Geist,
   Arabic text falls through to IBM Plex Sans Arabic, since Geist has no Arabic glyphs */
html[lang=ar]{--sans:"Geist","IBM Plex Sans Arabic",system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif}
/* Letter-spacing breaks Arabic letter joining */
html[lang=ar] *,html[lang=ar] *:before,html[lang=ar] *:after{letter-spacing:0!important}
html[lang=ar] body{line-height:1.75}
html[lang=ar] .display,html[lang=ar] h1,html[lang=ar] h2,html[lang=ar] h3{line-height:1.5}
/* Code, terminals, commands and diagrams stay left-to-right */
html[lang=ar] pre,html[lang=ar] code,html[lang=ar] .term,html[lang=ar] .term *,html[lang=ar] .code-inline,
html[lang=ar] .hs-art,html[lang=ar] [dir=ltr]{direction:ltr;text-align:left;unicode-bidi:isolate}
html[lang=ar] .mono,html[lang=ar] .dd-label{unicode-bidi:plaintext}
html[lang=ar] .lang-sw{font-family:var(--sans);white-space:nowrap}
.mnav-links a.lang-sw:after{content:none}
/* Arabic glyphs are taller and heavier: smaller display sizes; labels use the Arabic sans, not the mono */
html[lang=ar] .display{font-size:clamp(34px,5.2vw,68px)!important;font-weight:600}
html[lang=ar] .hs h1{font-size:clamp(36px,5.4vw,72px)!important}
html[lang=ar] .h2{font-size:clamp(28px,3.6vw,44px)}
html[lang=ar] .eyebrow,html[lang=ar] .hero-note,html[lang=ar] .dd-label,html[lang=ar] .tag,html[lang=ar] .soon,html[lang=ar] .hero-note span{font-family:var(--sans);text-transform:none}
/* More code-like blocks that stay left-to-right */
html[lang=ar] :is(.uc-code,.term-body,.mini,.tl,.jh-out,.cons,.code,.snip,.diff,.kv,.codebox):not(.ar-keep),
html[lang=ar] :is(div,p,span,li):has(> .c-p,> .c-ok,> .c-m,> .c-w,> .c-k,> .c-s){direction:ltr;text-align:left;unicode-bidi:isolate}
/* Home hero: the copy sits on the right, the illustration on the left */
html[lang=ar] .hs:before{background:radial-gradient(900px 640px at 34% 46%,rgba(20,94,87,.42),transparent 70%),radial-gradient(500px 360px at 2% 100%,rgba(217,105,46,.14),transparent 60%)}
@media (min-width:901px){html[lang=ar] .hs-copy{max-width:540px}}
@media (min-width:901px){html[lang=ar] .hs-art{width:70%;left:-10%}}
/* Plan limits: a value such as "100 GB" stays in reading order (number, then unit) */
html[lang=ar] .plans li > b{unicode-bidi:plaintext}
/* Agent prompts are Arabic text: the Arabic sans, not the mono */
html[lang=ar] .prompt{font-family:var(--sans)}
