/* RTL overrides (Arabic). Loaded only when <html dir="rtl">. Layout is flex/grid, so most of the page mirrors by itself. */
html[dir="rtl"] {
  overflow-x: hidden;
}

/* Off-screen helpers pushed to the left would widen the scroll area in RTL: push them to the right instead. */
[dir="rtl"] .skip-link,
[dir="rtl"] .noe-honeypot,
[dir="rtl"] .wishlist-honeypot {
  left: auto !important;
  right: -9999px !important;
}

[dir="rtl"] .skip-link:focus {
  left: auto !important;
  right: 1rem !important;
}

[dir="rtl"] .text-left {
  text-align: right;
}

/* Noé: mirror the launcher and panel to the left corner. */
[dir="rtl"] .noe-root {
  right: auto;
  left: max(1rem, env(safe-area-inset-left, 0px));
}

[dir="rtl"] .noe-panel {
  right: auto;
  left: 0;
}

/* Arabic text reads better with a little more line height. */
[dir="rtl"] body {
  line-height: 1.7;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3 {
  letter-spacing: 0;
}

[dir="rtl"] .section-tag,
[dir="rtl"] .lang-menu__title {
  letter-spacing: 0;
}
