/* Right-to-left (round 5, 28/10/2026). Loaded on the Arabic edition only, after site.css.
   Grid and flex rows reverse on their own under dir="rtl"; what follows fixes the pieces that
   were placed with left/right, the arrows, and the type. */
:root{--f:'Outfit','IBM Plex Sans Arabic',-apple-system,BlinkMacSystemFont,sans-serif}
/* Arabic text never takes tracking (it breaks the joins). Until the translations arrive the copy is
   English, so this only touches elements marked lang="ar". */
[lang=ar] [lang=ar],.lnote[lang=ar]{letter-spacing:0;text-transform:none}

/* arrows point the way the page reads */
.btn i:dir(rtl),.tl i:dir(rtl),.go:dir(rtl),.rd i:dir(rtl),.more i:dir(rtl),#menu a i:dir(rtl),.fok i:dir(rtl),.mailto i:dir(rtl),.sbar button i:dir(rtl){display:inline-block;transform:scaleX(-1)}
.btn:hover i:dir(rtl),.tl:hover i:dir(rtl){transform:scaleX(-1) translateX(4px)}
.fback:dir(rtl){flex-direction:row}

/* things placed from the left */
.pin:dir(rtl){text-align:right}
.pin .links a:hover:dir(rtl),.cl a:hover:dir(rtl){padding-left:0;padding-right:6px}
.ni:nth-last-child(-n+3) .panel:dir(rtl){right:auto;left:0}
.lpanel:dir(rtl){right:auto;left:0}
.prose ul.covers li:dir(rtl){padding:12px 22px 12px 0}
.prose ul.covers li:dir(rtl)::before{left:auto;right:0}
.tline .it .y:dir(rtl),.tline .it .dot:dir(rtl){left:auto;right:0}
.tline .wire i:dir(rtl){transform-origin:right}
.person .exp li:dir(rtl){padding-left:0;padding-right:20px}
.person .exp li:dir(rtl)::before{left:auto;right:0}
.cta.bx .field:dir(rtl){-webkit-mask-image:radial-gradient(ellipse 48% 62% at 0% 0%,#000 10%,transparent 100%);mask-image:radial-gradient(ellipse 48% 62% at 0% 0%,#000 10%,transparent 100%)}
.hero .r:dir(rtl){border-left:0;border-right:1px solid var(--line)}
.spread:dir(rtl){margin-left:0;margin-right:calc(50% - 50vw)}
.spread .t:dir(rtl){padding-left:var(--gut);padding-right:0}
nav a:dir(rtl)::after{transform-origin:left}
nav a:hover:dir(rtl)::after,nav a[aria-current]:dir(rtl)::after{transform-origin:right}
.faq summary:dir(rtl){text-align:right}
.step .field input:dir(rtl),.step .field textarea:dir(rtl){text-align:right}

/* The page body of an edition still in translation is marked lang="en" dir="ltr" (header.php), so it
   reads as the English site. The header, menus, footer and notice stay right to left; there, each
   piece of text takes its direction from its own first letter, so "+961 1 386777" and English labels
   keep their order. */
:is(header,#menu,footer,.lnote,.sbar) :is(p,li,label,span,a,button,b,small,input):dir(rtl){unicode-bidi:plaintext}
a[href^="tel:"]:dir(rtl){direction:ltr;unicode-bidi:isolate}
