/* VPSie right-to-left overrides. Loaded only on dir="rtl" pages (/ar/). Every rule is scoped to [dir=rtl].
   Built against the shared page CSS of 2026-11-20 (rules that use left/right, margin-left, padding-left,
   text-align, float, transform-origin). Flex and grid rows mirror by themselves; only physical properties need
   overrides. /site-assets is replaced by i18n.py with the site assets URL. Issues CSS cannot fix: i18n/README.md. */

/* ---- Arabic glyphs: Noto Sans Arabic (SIL OFL 1.1, bundled) joins the Open Sans and Tomorrow families through
   unicode-range, so every existing font-family declaration (including SVG labels) picks it up for Arabic text. */
@font-face{font-family:'Noto Sans Arabic';font-style:normal;font-weight:400;font-display:swap;src:local('Noto Sans Arabic'),local('NotoSansArabic-Regular'),url(/site-assets/i18n/fonts/NotoSansArabic-Regular.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200F,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:'Open Sans';font-style:normal;font-weight:400;font-display:swap;src:local('Noto Sans Arabic'),url(/site-assets/i18n/fonts/NotoSansArabic-Regular.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200F,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:'Open Sans';font-style:normal;font-weight:600;font-display:swap;src:local('Noto Sans Arabic'),url(/site-assets/i18n/fonts/NotoSansArabic-Regular.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200F,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:'Tomorrow';font-style:normal;font-weight:400;font-display:swap;src:local('Noto Sans Arabic'),url(/site-assets/i18n/fonts/NotoSansArabic-Regular.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200F,U+FB50-FDFF,U+FE70-FEFF}
@font-face{font-family:'Tomorrow';font-style:normal;font-weight:600;font-display:swap;src:local('Noto Sans Arabic'),url(/site-assets/i18n/fonts/NotoSansArabic-Regular.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+200C-200F,U+FB50-FDFF,U+FE70-FEFF}
[dir=rtl] body{font-family:'Open Sans','Noto Sans Arabic','Segoe UI',Tahoma,sans-serif;line-height:1.75}
[dir=rtl] h1,[dir=rtl] h2,[dir=rtl] h3,[dir=rtl] .tm{font-family:'Tomorrow','Noto Sans Arabic','Segoe UI',Tahoma,sans-serif;line-height:1.45}
/* Arabic letters join; letter-spacing breaks the joins and uppercase does nothing */
[dir=rtl] *{letter-spacing:normal!important}

/* ---- text alignment */
[dir=rtl] .card ul,[dir=rtl] .mx th,[dir=rtl] .mx td,[dir=rtl] footer,[dir=rtl] .shared,[dir=rtl] .hx .phw,[dir=rtl] #mob,
[dir=rtl] .v3-loc h2,[dir=rtl] .models .card,[dir=rtl] .why>div,[dir=rtl] .card,[dir=rtl] .works .vt b{text-align:right}

/* ---- list bullets and markers (diamonds, ticks, counters) */
[dir=rtl] .card li:before,[dir=rtl] .gc li:before{margin-right:0;margin-left:9px}
[dir=rtl] .split li,[dir=rtl] .mini li{padding-left:0;padding-right:22px}
[dir=rtl] .mini li{padding-right:20px}
[dir=rtl] .split li:before,[dir=rtl] .mini li:before,[dir=rtl] .sov li:before{left:auto;right:0}
[dir=rtl] .sov li{padding:3px 24px 3px 0}
[dir=rtl] .steps .gc:before{left:auto;right:22px}
[dir=rtl] .v3h li:before{right:auto;left:16px}
/* step chevrons between horizontal steps point the reading direction */
[dir=rtl] .v3h li:not(:last-child):after{right:auto;left:-14px;border-right:0;border-left:2px solid #17B3A3;transform:rotate(-45deg)}

/* ---- cards with an accent edge */
[dir=rtl] .cap{border-left:0;border-right:7px solid var(--teal);padding:18px 24px 18px 22px}
[dir=rtl] .cap.m{border-right-color:#2D4B94}
[dir=rtl] .cap.g{border-right-color:#14213F}
[dir=rtl] .facts>div{border-left:0;border-right:1px solid #E1E5F2}
[dir=rtl] .facts>div:first-child{border-right:0}

/* ---- small spacings */
[dir=rtl] .sup{margin-left:0;margin-right:4px}
[dir=rtl] .chips b{margin-right:0;margin-left:4px}
[dir=rtl] .sn a:last-child{margin-right:0;margin-left:16px}
[dir=rtl] .hb{margin-left:0;margin-right:auto}
[dir=rtl] .mt span{margin-left:0;margin-right:42px}
@media (max-width:960px){[dir=rtl] .mt span{margin-right:29px}}
[dir=rtl] #mob a{padding:10px 14px 10px 4px}
[dir=rtl] #mob summary:after{float:left}
[dir=rtl] .skip{left:auto;right:12px}

/* ---- underline and progress animations grow from the reading start */
[dir=rtl] .hr a:not(.pill)::after,[dir=rtl] .more::after,[dir=rtl] .sn a::after,[dir=rtl] #mo-bar{transform-origin:right}

/* ---- carousels: the scripts move the track with translateX in LTR terms, so the tracks stay LTR and the
   cards inside read RTL (logo strip .lc and service carousel .svw) */
[dir=rtl] .lc,[dir=rtl] .lc .lw,[dir=rtl] .svw,[dir=rtl] .svw .svc{direction:ltr}
[dir=rtl] .lc .lw>*,[dir=rtl] .svw .svc .trk>*,[dir=rtl] .svw .svc>*:not(.trk){direction:rtl}

/* ---- diagrams stay LTR islands; i18n.py sets direction/text-anchor on each Arabic label */
[dir=rtl] svg{direction:ltr}

/* ---- LTR runs inside RTL text */
[dir=rtl] a[href^="tel:"],[dir=rtl] .emt,[dir=rtl] code,[dir=rtl] kbd,[dir=rtl] pre,[dir=rtl] input[type=email],[dir=rtl] input[type=url]{direction:ltr;unicode-bidi:isolate}
[dir=rtl] pre{text-align:left}

/* ---- header: the logo stays at the left on Arabic pages (brand mark position is not mirrored); menu text stays RTL */
[dir=rtl] header .wrap{direction:ltr}
[dir=rtl] header .wrap>*:not(:first-child){direction:rtl}
[dir=rtl] header .wrap>a:first-child{margin-inline-end:8px}
[dir=rtl] .hb{margin-right:0;margin-left:auto}
