/* Pathbreak RTL overrides + Arabic webfont. Loaded only on dir="rtl" (Arabic) pages. */
@font-face {
  font-family: "Noto Sans Arabic";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/noto-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0660-0669, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

html[dir="rtl"] body {
  font-family: "Noto Sans Arabic", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* default text flow */
html[dir="rtl"] body { text-align: right; }

/* keep code, monospace tokens and anything explicitly LTR in logical order */
html[dir="rtl"] code,
html[dir="rtl"] .mono,
html[dir="rtl"] .dp-card__perm,
html[dir="rtl"] .path__tag,
html[dir="rtl"] .brand__word,
html[dir="rtl"] [dir="ltr"] { direction: ltr; unicode-bidi: isolate; text-align: left; }

/* the thin accent bars pinned to the left edge should move to the right */
html[dir="rtl"] .dp-card::before,
html[dir="rtl"] .contact-form::before,
html[dir="rtl"] .section--alt::before { left: auto; right: 0; }

/* flip horizontal paddings/margins that assume LTR reading */
html[dir="rtl"] .dp-crumb span { margin: 0 8px; }
html[dir="rtl"] .hero__stats li,
html[dir="rtl"] .steps li { text-align: right; }

/* nav + footer rows read right-to-left naturally via flex; nudge gaps symmetric */
html[dir="rtl"] .nav__links { flex-direction: row-reverse; }
html[dir="rtl"] .footer__cols { direction: rtl; }

/* language switcher menu aligns to the right edge in RTL */
html[dir="rtl"] .langsw__menu { left: 0; right: auto; }

/* chain/SVG graphics and product screenshots stay LTR (they depict LTR product UI) */
html[dir="rtl"] .dp-chainwrap svg,
html[dir="rtl"] .shot,
html[dir="rtl"] figure { direction: ltr; }
