/* ==========================================================================
   PANDA GARAGE — Direction-specific rules
   Layout direction is handled by logical properties throughout the CSS
   (inline-start/end, block-start/end) — so this file only covers what logical
   properties cannot: mirroring directional icons and script-specific typography.
   ========================================================================== */

/* Directional icons (arrows, chevrons, sign-out) point with the reading direction */
:root[dir="rtl"] .icon--dir { transform: scaleX(-1); }

/* Arabic typography: no letter-spacing (breaks joined letters), slightly taller line-height */
:root:lang(ar) body { line-height: 1.7; }
:root:lang(ar) .btn,
:root:lang(ar) .badge,
:root:lang(ar) .nav-item,
:root:lang(ar) .placeholder__eyebrow,
:root:lang(ar) .palette__section-label { letter-spacing: 0; text-transform: none; }
:root:lang(ar) .kpi__value { letter-spacing: 0; }

/* Latin-only fragments inside Arabic UI (emails, codes, versions) keep LTR shaping */
[dir="ltr"] { unicode-bidi: isolate; }
code, kbd, .phase-chip, .sidebar__version { unicode-bidi: isolate; }
