/* Arabic pages (/ar/): right-to-left fixes and Cairo for Arabic text, on top of tp.css.
   Anton, Inter and JetBrains Mono have no Arabic letters; Cairo carries every role here. Letter-spacing
   is removed everywhere because it breaks the joins between Arabic letters. */
:root{--f-display:"Cairo","Anton Fallback",sans-serif;--f-body:"Cairo","Inter Fallback",system-ui,sans-serif}
html[dir=rtl] *{letter-spacing:0!important}
html[dir=rtl] body{font-family:var(--f-body);line-height:1.8}
html[dir=rtl] h1,html[dir=rtl] h2{font-weight:800;line-height:1.3;text-transform:none}
html[dir=rtl] h3,html[dir=rtl] .tag,html[dir=rtl] .label{font-family:var(--f-body)}
html[dir=rtl] .hero h1{font-size:clamp(46px,7vw,108px);line-height:1.22}
html[dir=rtl] .hero h1 .rv-line{padding:.02em 0 .14em;margin:0}
html[dir=rtl] .sub-hero h1{font-size:clamp(40px,6.6vw,96px);line-height:1.22;max-width:14ch}
html[dir=rtl] h2{font-size:clamp(32px,5vw,68px)}
html[dir=rtl] .price{font-weight:800}
html[dir=rtl] .logo span{font-family:"Anton","Anton Fallback",Impact,sans-serif}

/* Mirrored layout */
html[dir=rtl] .nav ul{margin:0 auto 0 0}
html[dir=rtl] .progress{transform-origin:100% 50%}
html[dir=rtl] .ledger li{padding-left:0;padding-right:22px}
html[dir=rtl] .ledger li::before{left:auto;right:0;transform:rotate(-45deg) scaleX(-1) translateY(-3px)}
html[dir=rtl] .rates dd{text-align:left}
html[dir=rtl] .pillars>div::before{transform-origin:100% 50%}
html[dir=rtl] .steps::after{transform-origin:100% 50%}
html[dir=rtl] .docs li,html[dir=rtl] .traps li{padding:14px 30px 14px 0}
html[dir=rtl] .docs li::before,html[dir=rtl] .traps li::before{left:auto;right:2px}
html[dir=rtl] .qa details p{padding:0 2px 22px 50px}
html[dir=rtl] .proof-cap{padding-left:0;padding-right:16px;border-left:0;border-right:3px solid var(--orange);margin-left:0;margin-right:auto}
html[dir=rtl] .facts div{padding:14px 0 0 24px;margin-right:0;margin-left:24px;border-right:0;border-left:1px solid var(--line-2)}
html[dir=rtl] .facts div:last-child{border:0;margin:0}
html[dir=rtl] .ch:hover{padding-left:4px;padding-right:16px}
html[dir=rtl] .ch .arw{transform:scaleX(-1)}
html[dir=rtl] .ch:hover .arw{transform:scaleX(-1) rotate(-45deg)}
html[dir=rtl] .pk-close-f{right:auto;left:16px}
html[dir=rtl] #picker p{padding-right:0;padding-left:40px}
html[dir=rtl] .proof-stack{margin-left:0;margin-right:auto}
html[dir=rtl] .wa-float{right:auto;left:max(18px,env(safe-area-inset-left,0px))}
@media (max-width:860px){
  html[dir=rtl] .steps::before{left:auto;right:27px;border-left:0;border-right:2px dashed var(--line-2)}
  html[dir=rtl] .steps::after{left:auto;right:26px;transform-origin:50% 0}
  html[dir=rtl] .steps li{padding-left:0;padding-right:78px}
  html[dir=rtl] .steps li::before{left:auto;right:0}
  html[dir=rtl] .facts div{padding-left:12px;margin-left:12px}
}
@media (max-width:900px){html[dir=rtl] .nav .btn{margin-left:0;margin-right:auto}}
@media (max-width:900px){html[dir=rtl] .proof-stack,html[dir=rtl] .proof-cap{margin-inline:0 auto}}
@media (max-width:420px){html[dir=rtl] .menu-btn{margin-left:0;margin-right:auto}}

/* Tickers keep their left-to-right loop; each item still reads right to left */
html[dir=rtl] .marquee-track{direction:ltr}
html[dir=rtl] .marquee-track a,html[dir=rtl] .marquee-track span{direction:rtl}
html[dir=rtl] .dest a,html[dir=rtl] .dest span{padding-right:0;padding-left:26px}
html[dir=rtl] .mrz,html[dir=rtl] .datapage .mrz-in,html[dir=rtl] .ch b{direction:ltr;unicode-bidi:isolate}
html[dir=rtl] .ch b{text-align:right}
@media (max-width:900px){html[dir=rtl] .lang{margin-left:0;margin-right:auto}}
html[dir=rtl] .lang[lang=en]{font-family:"Inter",system-ui,sans-serif}
html[dir=rtl] .wall,html[dir=rtl] .dest{direction:ltr}
html[dir=rtl] .cty i::before{transform-origin:100% 50%}
