/* Hebrew pages (dir="rtl"): what style.css places by left and right, mirrored.
   Loaded by public/he/ pages only (tools/i18n/build.mjs). Decorations (the
   hero's phone, the stickers, play triangles) stay where they are. */

/* Hebrew in Heebo (served from this site, Hebrew letters only); Latin words stay in Nunito. */
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("../fonts/heebo-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
[dir="rtl"] { --font: "Heebo", "Nunito", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; }
[dir="rtl"] body, [dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: var(--font); }
[dir="rtl"] h1, [dir="rtl"] h2 { letter-spacing: 0; }

[dir="rtl"] .skip-link { left: auto; right: 16px; }
[dir="rtl"] .nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .header-cta { margin-left: 0; margin-right: 8px; }
@media (max-width: 859px) {
  [dir="rtl"] .header-cta { margin-left: 0; margin-right: auto; }
}
@media (max-width: 359px) {
  [dir="rtl"] .menu-toggle { margin-left: 0; margin-right: auto; }
}

[dir="rtl"] .steps li { padding-left: 0; padding-right: 48px; }
[dir="rtl"] .steps li::before { left: auto; right: 0; }
[dir="rtl"] .steps .substeps li { padding-left: 0; padding-right: 4px; }
[dir="rtl"] .prose ul, [dir="rtl"] .prose ol { padding-left: 0; padding-right: 1.3em; }
[dir="rtl"] .setup-alt { margin-left: 0; margin-right: 12px; }
[dir="rtl"] .qa-toggle { text-align: right; }

[dir="rtl"] .b-flow-step:not(:last-child)::after { left: auto; right: 21px; }
@media (min-width: 820px) {
  [dir="rtl"] .b-flow-step:not(:last-child)::after { left: calc(-50% + 18px); right: calc(50% + 34px); }
}

/* Arrows that say "on" point the reading way. */
[dir="rtl"] .b-flow-step a span[aria-hidden],
[dir="rtl"] .b-app-guide span[aria-hidden],
[dir="rtl"] .faq-more span[aria-hidden] { display: inline-block; transform: scaleX(-1); }

/* Addresses and codes typed into Downloader read left to right. */
[dir="rtl"] strong:lang(en), [dir="rtl"] code { direction: ltr; unicode-bidi: isolate; }
