/* Arabic sub pages only (case studies, tools, story, writing). Loaded after /ar.css. Mirrors the left/right rules of /work/case.css. */
html[dir="rtl"] .cs-hero .p{right:auto;left:4%}
html[dir="rtl"] .cs-stats div{border-left:0;padding-left:0;border-right:1px solid var(--line);padding-right:16px}
html[dir="rtl"] .cs-cta .btn svg{margin-right:0;margin-left:10px}
html[dir="rtl"] .cs-block .cs-visit + .cs-visit{margin-left:0;margin-right:22px}
html[dir="rtl"] .cs-toc ol{border-left:0;border-right:1px solid var(--line)}
html[dir="rtl"] .cs-toc a{padding:7px 16px 7px 0;margin-left:0;margin-right:-1px;border-left:0;border-right:1px solid transparent}
html[dir="rtl"] .cs-tools p{margin-right:0;margin-left:4px}
html[dir="rtl"] .cs-flowd li:not(:last-child)::after{right:auto;left:-10px;transform:rotate(-135deg)}
html[dir="rtl"] .cs-steps2{border-left:0;margin-left:0;border-right:1px solid var(--line);margin-right:6px}
html[dir="rtl"] .cs-steps2 li::before{left:auto;right:-5px}
html[dir="rtl"] .cs-anno figcaption li{padding-left:0;padding-right:30px}
html[dir="rtl"] .cs-anno figcaption li::before{left:auto;right:0}
html[dir="rtl"] .cs-back .arrow::after{right:auto;left:0;transform:rotate(-135deg)}
/* annotation pins sit on screenshots, which stay left to right */
html[dir="rtl"] .cs-anno .shot,html[dir="rtl"] .cs-anno figure>div{direction:ltr}
@media (max-width:820px){
  html[dir="rtl"] .cs-hero .p{right:auto;left:5%}
  html[dir="rtl"] .cs-nav .nx{text-align:right;align-items:flex-end}
  html[dir="rtl"] .cs-flowd li:not(:last-child)::after{left:auto;right:26px;transform:rotate(135deg)}
  html[dir="rtl"] .cs-flowd span{margin-left:0;margin-right:auto}
  html[dir="rtl"] .cs-steps2 li{padding-left:0;padding-right:22px}
  html[dir="rtl"] .cs-back .arrow::after{right:auto;left:-4px}
}
