/* Arabic / RTL overrides */
:root{
  --ar-body:"Noto Naskh Arabic","Noto Sans Arabic",serif;
  --ar-head:"Noto Sans Arabic","Noto Naskh Arabic",sans-serif;
}
html[dir="rtl"] body{font-family:var(--ar-body);font-size:17px;line-height:1.85}
html[dir="rtl"] h1,html[dir="rtl"] h2,html[dir="rtl"] h3,html[dir="rtl"] .h2,
html[dir="rtl"] .card h3,html[dir="rtl"] .flow h3,html[dir="rtl"] legend,
html[dir="rtl"] .ledger caption,html[dir="rtl"] .dl h3,html[dir="rtl"] .cta h4{
  font-family:var(--ar-head);font-weight:600;letter-spacing:0}
html[dir="rtl"] .hero h1{font-size:clamp(30px,4.1vw,46px);line-height:1.28;max-width:22ch}
html[dir="rtl"] .lede{font-size:19px;line-height:1.8}
html[dir="rtl"] .eyebrow{font-family:var(--ar-head);letter-spacing:.02em;text-transform:none;font-size:14px}
html[dir="rtl"] .nav,html[dir="rtl"] .kv,html[dir="rtl"] .ledger,html[dir="rtl"] form.loi,
html[dir="rtl"] .facts,html[dir="rtl"] .site-foot,html[dir="rtl"] .docs li,
html[dir="rtl"] .steps,html[dir="rtl"] .registry,html[dir="rtl"] .btn,html[dir="rtl"] label,
html[dir="rtl"] .flow .who,html[dir="rtl"] .card a.more{font-family:var(--ar-head)}
html[dir="rtl"] .facts dt,html[dir="rtl"] .registry dt,html[dir="rtl"] .flow .who,
html[dir="rtl"] .ledger thead th{letter-spacing:0;text-transform:none;font-size:13px}
html[dir="rtl"] .facts dd{font-family:var(--ar-head);font-size:23px}
html[dir="rtl"] .facts dd small{font-size:12.5px;line-height:1.6}

/* tables: label column on the right, numbers stay LTR */
html[dir="rtl"] .ledger thead th,html[dir="rtl"] .ledger td,
html[dir="rtl"] .kv th,html[dir="rtl"] .kv td{text-align:right}
html[dir="rtl"] .ledger thead th.num,html[dir="rtl"] .ledger td.num{text-align:left;direction:ltr}
html[dir="rtl"] .kv th{padding:10px 0 10px 12px}
html[dir="rtl"] .ledger td.sym{direction:ltr;text-align:left}

/* lists and bullets flip */
html[dir="rtl"] ol.steps li{grid-template-columns:44px 1fr}
html[dir="rtl"] .flow>li{grid-template-columns:56px 1fr}
html[dir="rtl"] .box li,html[dir="rtl"] .split li{padding:1.3mm 4.5mm 1.3mm 0}
html[dir="rtl"] .card{border-top:3px solid var(--ink)}
html[dir="rtl"] .callout{border-left:0;border-right:3px solid var(--ink)}
html[dir="rtl"] .dl .go{margin-left:0;margin-right:auto}
html[dir="rtl"] .nav a{margin-right:0}
html[dir="rtl"] .lang{font-weight:600;color:var(--muted)}
html[dir="rtl"] .prose{max-width:64ch}
html[dir="rtl"] .site-foot .small{line-height:1.75}
@media (max-width:820px){
  html[dir="rtl"] .nav{margin:0 -24px;padding:0 24px}
  html[dir="rtl"] .nav a{margin-right:0;margin-left:20px}
  html[dir="rtl"] .nav a:last-child{margin-left:0}
}

@media (max-width:820px){
  html[dir="rtl"] .brand{align-self:flex-end}
  html[dir="rtl"] .nav{justify-content:flex-start;direction:rtl}
}

/* keep register / licence numbers reading left-to-right inside Arabic prose */
html[dir="rtl"] .card p b{font-weight:600}
html[dir="rtl"] .site-foot .group,html[dir="rtl"] .site-foot .grouprow{line-height:1.9}
