/* ===== Language switcher + Arabic (RTL) ===== */
.langs{display:flex;border:1px solid var(--line);border-radius:99px;padding:2px}
.langs button{background:none;border:0;border-radius:99px;padding:.4rem .65rem;font-size:.78rem;font-weight:600;color:var(--mut);cursor:pointer;transition:color .3s,background .3s}
.langs button[aria-pressed="true"]{background:var(--fg);color:#080808}
.langs button:not([aria-pressed="true"]):hover{color:var(--fg)}
html[lang="ar"]{--font:'IBM Plex Sans Arabic','Archivo',sans-serif}
html[lang="ar"] *{letter-spacing:0!important}
html[lang="ar"] h1,html[lang="ar"] h2,html[lang="ar"] h3{font-stretch:100%;line-height:1.2;font-weight:700}
html[lang="ar"] .hero h1{line-height:1.1}
html[lang="ar"] p{line-height:1.8}
.links a span{unicode-bidi:isolate}
[dir="rtl"] .prog{transform-origin:right}
[dir="rtl"] .steps::before,[dir="rtl"] .steps::after{left:auto;right:0}
[dir="rtl"] .step{padding:2.4rem 0 0 2rem}
[dir="rtl"] .step::before{left:auto;right:0}
[dir="rtl"] .links a:hover{padding-left:0;padding-right:.6rem}
[dir="rtl"] nav a::after{transform-origin:left}
[dir="rtl"] nav a:hover::after{transform-origin:right}
@media(max-width:800px){
  [dir="rtl"] .steps::before,[dir="rtl"] .steps::after{left:auto;right:.45rem}
  [dir="rtl"] .step{padding:0 2.4rem 0 0}
}
