/* Arabic (right-to-left) overrides. Loaded only on /ar/ pages, after every other stylesheet.
   Flex and grid layouts mirror by themselves once <html dir="rtl"> is set; this file covers what does not:
   the typefaces, letter-spacing, and the rules that name a physical side (left/right). */

html[dir=rtl]{
  --display:"Noto Naskh Arabic","Instrument Serif","Times New Roman",serif;
  --sans:"IBM Plex Sans Arabic","DM Sans",ui-sans-serif,system-ui,"Segoe UI",Tahoma,sans-serif;
}
/* Arabic letters join: any tracking pulls words apart, capitals do not exist, and italics are not used for emphasis. */
html[dir=rtl] *{letter-spacing:0!important}
html[dir=rtl] em,html[dir=rtl] i:not([class]),html[dir=rtl] cite,html[dir=rtl] blockquote{font-style:normal}
html[dir=rtl] body{line-height:1.75}
/* Naskh has taller ascenders/descenders than the Latin display face: give headings room. */
html[dir=rtl] h1,html[dir=rtl] h2,html[dir=rtl] h3,html[dir=rtl] .sec-h{line-height:1.35;font-weight:600}
html[dir=rtl] h1{line-height:1.3}
html[dir=rtl] .eyebrow,html[dir=rtl] .crumbs{font-weight:500}

/* Latin fragments that stay as they are (names, codes, the English guides, numbers with units). */
html[dir=rtl] [translate=no]{unicode-bidi:isolate}
html[dir=rtl] .post-en{direction:ltr;text-align:left;font-family:"DM Sans",ui-sans-serif,system-ui,sans-serif;line-height:1.7}
html[dir=rtl] .post-en h2,html[dir=rtl] .post-en h3{font-family:"Instrument Serif","Times New Roman",serif;font-weight:400;line-height:1.15}
html[dir=rtl] .post-ar-note{display:inline-block;margin-top:14px;padding:6px 14px;border-radius:99px;background:var(--surface-2,#eef2ee);font-size:14px}
html[dir=rtl] input[type=email],html[dir=rtl] input[type=tel],html[dir=rtl] input[type=url],html[dir=rtl] input[type=number]{direction:ltr;text-align:right}
html[dir=rtl] .tnm-lang{font-family:"DM Sans",ui-sans-serif,system-ui,sans-serif}

/* The oversized English watermark behind page headers has no Arabic counterpart. */
html[dir=rtl] .lhero__mark{display:none}

/* Arrows point the way you read. */
html[dir=rtl] svg.arr,html[dir=rtl] .linkarrow svg,html[dir=rtl] .tnm-drawer__link svg,html[dir=rtl] .hubtile__go svg,html[dir=rtl] .crumbs i{transform:scaleX(-1)}
html[dir=rtl] .btn:hover svg.arr,html[dir=rtl] .linkarrow:hover svg{transform:scaleX(-1) translateX(4px)}
html[dir=rtl] .tnm-drawer__link:active svg{transform:scaleX(-1) translateX(6px)}

/* ── shared header / footer */
html[dir=rtl] .dd__btn{text-align:right}
html[dir=rtl] .dd__native{left:auto;right:0}
html[dir=rtl] .tnm-mega__col a:hover{padding-left:0;padding-right:16px}
html[dir=rtl] .tnm-mega__feature::after{right:auto;left:-50px}
html[dir=rtl] .tnm-header__in{padding-right:0;padding-left:9px}

/* ── app pages */
html[dir=rtl] .fig b small{margin-left:0;margin-right:3px}
html[dir=rtl] .facetbar__label{margin-right:0;margin-left:4px}
html[dir=rtl] .fb-sel .dd__list{left:auto;right:-20px}
html[dir=rtl] .results__meta,html[dir=rtl] .cand__actions,html[dir=rtl] .dsec__h a,html[dir=rtl] .qa .badge,html[dir=rtl] .dash-fab__badge,html[dir=rtl] .mxl__actions,html[dir=rtl] .calc__split b{margin-left:0;margin-right:auto}
html[dir=rtl] .afclear{margin-left:0;margin-right:4px}
html[dir=rtl] .interrupt::after{right:auto;left:-60px}
html[dir=rtl] .smartcta::after{right:auto;left:-50px}
html[dir=rtl] .auth__pitch::after{right:auto;left:-90px}
html[dir=rtl] .hubtile__n{left:auto;right:22px}
html[dir=rtl] .hubtile__go{right:auto;left:18px}
html[dir=rtl] .price b i{margin-right:0;margin-left:5px}
html[dir=rtl] .ticket__until{text-align:left}
html[dir=rtl] .legal li{padding-left:0;padding-right:26px}
html[dir=rtl] .legal li::before{left:auto;right:4px}
html[dir=rtl] .dash-fab{left:auto;right:16px}
html[dir=rtl] .dash-fab__menu{left:auto;right:2px;transform-origin:bottom right}
html[dir=rtl] .scrollprog{left:auto;right:0;transform-origin:100% 50%}
html[dir=rtl] .to-top{right:auto;left:clamp(14px,3vw,26px)}
html[dir=rtl] .calc__out .reqcard{margin-right:0;margin-left:8px}
html[dir=rtl] .cmp__table th,html[dir=rtl] .cmp__table td{text-align:right}
html[dir=rtl] .cmp__table tbody th,html[dir=rtl] .cmp__corner{left:auto;right:0}
html[dir=rtl] .cmp__drop{right:auto;left:10px}
html[dir=rtl] .cmp__big{margin-right:0;margin-left:6px}
html[dir=rtl] .cmp__flag,html[dir=rtl] .vbadge--fast{margin-left:0;margin-right:6px}
html[dir=rtl] .sx__n,html[dir=rtl] .sx__med{text-align:left}
/* The salary range bars are a number line: they keep running left to right, like the figures beside them. */
html[dir=rtl] .sx__bar{direction:ltr}
/* Money and ranges read as one left-to-right unit inside Arabic text. */
html[dir=rtl] .sx__range small,html[dir=rtl] .calc__amt input{direction:ltr;unicode-bidi:isolate}
html[dir=rtl] .calc__amt input{text-align:left}

/* The wordmark is Latin and keeps its own order and typeface. */
html[dir=rtl] .tnm-brand{direction:ltr;unicode-bidi:isolate;font-family:"Instrument Serif","Times New Roman",serif}

/* Header: Arabic labels run longer than the English ones — keep each on one line. */
html[dir=rtl] .tnm-header a,html[dir=rtl] .tnm-header button{white-space:nowrap}
@media (min-width:1000px) and (max-width:1240px){html[dir=rtl] .tnm-header nav a,html[dir=rtl] .tnm-header nav button,html[dir=rtl] .tnm-header__signin,html[dir=rtl] .tnm-header .tnm-lang{font-size:14px;padding-left:9px;padding-right:9px}}
/* Text kept in its original language (names, a candidate's own headline, languages) reads left-to-right but still sits on the Arabic side. */
html[dir=rtl] [translate=no]:not(.post-en):not(.tnm-brand){direction:ltr;text-align:right}

html[dir=rtl] .ivrow__who{margin-right:0;margin-left:auto}
html[dir=rtl] .cc__key{margin-right:0;margin-left:2px}
html[dir=rtl] .cc__key--b{margin-left:2px;margin-right:12px}
/* The cost chart and the slider are time lines: they keep running left to right. */
html[dir=rtl] .cc__chart svg,html[dir=rtl] .cc__len input[type=range],html[dir=rtl] .cc__ticks{direction:ltr}
html[dir=rtl] .route__total dd b{letter-spacing:0}
html[dir=rtl] .ckb{left:auto;right:max(16px,env(safe-area-inset-right));box-shadow:-6px 6px 0 var(--sun)}
@media (max-width:560px){html[dir=rtl] .ckb{right:0;left:0;box-shadow:none}}
