/* guide-he.css — Hebrew (RTL) layer for guides under /il/guides/.
   Loads after style.css. style.css was written for left-to-right pages, so this
   file flips the few physical left/right rules the guide template uses, and
   swaps in Heebo (Playfair and Inter have no Hebrew glyphs). */

@font-face {
  font-family: "Heebo";
  src: url("/fonts/heebo-var-hebrew.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo";
  src: url("/fonts/heebo-var-latin.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
                 U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html[lang="he"] {
  --display: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --body:    "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
html[lang="he"] h1, html[lang="he"] h2, html[lang="he"] h3 { font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
html[lang="he"] .hero h1 em { font-style: normal; }
html[lang="he"] .eyebrow { letter-spacing: .04em; }

/* Hebrew reads better with a little more line height */
html[lang="he"] .article p, html[lang="he"] .article li { line-height: 1.85; }

/* flip the physical left/right rules from style.css */
html[dir="rtl"] .article ul, html[dir="rtl"] .article ol { padding-left: 0; padding-right: 1.3rem; }
html[dir="rtl"] .sources ol { padding-left: 0; padding-right: 1.2rem; }
html[dir="rtl"] .article .callout {
  border-left: 0; border-right: 3px solid var(--green);
  border-radius: var(--radius) 0 0 var(--radius);
}
html[dir="rtl"] .article .warn { border-right-color: var(--accent); }
html[dir="rtl"] .article thead th { text-align: right; text-transform: none; }
html[dir="rtl"] .nav a.navlink::after { transform-origin: left; }
html[dir="rtl"] .btn:hover .arw { transform: translateX(-4px); }

/* English terms, form names and numbers stay left-to-right inside Hebrew sentences */
html[lang="he"] .ltr { direction: ltr; unicode-bidi: isolate; }
html[lang="he"] address { font-style: normal; }
