/* Right-to-left layout for Arabic (and any future RTL language), loaded only when <html dir=rtl> (2026-10-13).
   Flex/grid rows already flip with dir=rtl; this file flips the fixed pieces: the side rail, the settings drawer,
   arrows, and the Arabic font. */
html[dir=rtl] body{font-family:"IBM Plex Sans Arabic","Noto Naskh Arabic",Tahoma,system-ui,sans-serif}
html[dir=rtl] .side{inset:0 0 0 auto;border-right:0;border-left:1px solid var(--line)}
html[dir=rtl] .main{margin-left:0;margin-right:var(--sidew)}
@media (max-width:860px){html[dir=rtl] .main{margin-right:0}html[dir=rtl] .side{transform:translateX(100%)}
  html[dir=rtl] body.nav-open .side{transform:none}}
html[dir=rtl] .drawer{right:auto;left:0;border-left:0;border-right:1px solid var(--line);transform:translateX(-100%);box-shadow:20px 0 40px rgba(0,0,0,.5)}
html[dir=rtl] .drawer-bg.open .drawer{transform:none}
html[dir=rtl] .tr-when{text-align:left}
html[dir=rtl] .step svg,html[dir=rtl] [aria-label="Back"] svg,html[dir=rtl] .back svg{transform:scaleX(-1)}
/* numbers, codes and ids stay left-to-right inside Arabic text */
html[dir=rtl] .num,html[dir=rtl] .power,html[dir=rtl] input[type=number],html[dir=rtl] input[type=email]{direction:ltr;unicode-bidi:isolate}
/* Automation cards: the switch sits on the LEFT in Arabic (iPhone RTL), its reserved space moves with it */
html[dir=rtl] .acard{text-align:right;padding:10px 12px 10px 54px}
html[dir=rtl] .acard-sw{right:auto;left:12px}
/* switches keep the international direction in every language: OFF = knob left, ON = knob right (operator 2026-10-13) */
html[dir=rtl] .sw{direction:ltr}
/* direction icons point the other way in RTL (chevrons on rows, next/back steps) */
html[dir=rtl] svg[data-ic=chev],html[dir=rtl] svg[data-ic=back],html[dir=rtl] svg[data-ic=prev],html[dir=rtl] svg[data-ic=next],
html[dir=rtl] svg[data-ic=arrow]{transform:scaleX(-1)}
/* "What's on" rows: text right-aligned, chevron at the far left */
html[dir=rtl] .won-row{text-align:right}
/* previous / next character buttons (server-drawn chevrons) point the reading direction in RTL */
html[dir=rtl] .acct-step svg{transform:scaleX(-1)}

/* ---- public website (static/site) in RTL (2026-10-13) ---- */
/* Arabic headings: the display face (Anton) has no Arabic, and letter-spacing/uppercase break Arabic joining */
html[dir=rtl] .hero .big,html[dir=rtl] .sec-title,html[dir=rtl] .cat-head h3,html[dir=rtl] .final h2,html[dir=rtl] .marquee span,
html[dir=rtl] .proof span,html[dir=rtl] .vs thead th.us{font-family:"IBM Plex Sans Arabic",Tahoma,sans-serif;font-weight:700;
  letter-spacing:0;text-transform:none}
html[dir=rtl] .hero .big{line-height:1.2}
html[dir=rtl] .sec-title,html[dir=rtl] .final h2{line-height:1.25}
/* Clumzy stays in the bottom corner; its bubble keeps sitting beside it (bubble text itself reads right-to-left) */
html[dir=rtl] .buddy{direction:ltr}
html[dir=rtl] .buddy .bubble,html[dir=rtl] .buddy [class*=bubble]{direction:rtl;text-align:right}
/* never wider than the phone */
html[dir=rtl],html[dir=rtl] body{overflow-x:clip}
/* phone header in RTL: see site.css (same rules for every language now) */
/* the moving belt keeps sliding the same way in RTL (it showed its empty end and looked stuck) */
html[dir=rtl] .marquee{direction:ltr}
html[dir=rtl] .marquee span{direction:rtl}
/* website: the phone layout forces text-align:left on the hero; in RTL everything starts at the right */
html[dir=rtl] .hero{text-align:right}
html[dir=rtl] .vs th[scope=row]{text-align:right}
html[dir=rtl] .feed,html[dir=rtl] .feed li>div{text-align:right}
/* website arrows/connectors that point "forward" flip in RTL */
html[dir=rtl] .step-list li:not(:last-child)::after{transform:scaleX(-1)}
html[dir=rtl] .marquee-track{direction:ltr;will-change:transform}
/* website category slider: the 5-second timer bar under the active tab fills from the right in Arabic */
html[dir=rtl] .tabs.auto .tab[aria-selected=true]::after{transform-origin:100% 50%}
/* breadcrumb separator (Accounts › character) points the reading way in RTL */
html[dir=rtl] .crumbs>svg{transform:scaleX(-1)}
/* account switcher list opens toward the page in RTL (it ran off the right edge), and never wider than the phone */
html[dir=rtl] .acct-switch .menu{left:auto;right:0}
.acct-switch .menu{max-width:calc(100vw - 32px)}
