/* עברית (he) overrides.
 *
 * Loaded by header.php only when the page is in Hebrew, after the mirrored stylesheets in
 * css/rtl/ and the shared css/rtl/rtl-fixes.css. Everything is scoped to html[lang="he"].
 *
 * Hebrew letters stand alone -- nothing joins -- so unlike the Arabic-script languages
 * the theme's letter-spacing is harmless and kept. What Hebrew needs is a face: Inter has
 * no Hebrew glyphs, so Hebrew falls through to the system's Hebrew face (Segoe UI on
 * Windows, Arial Hebrew / SF Hebrew on Apple, Noto Sans Hebrew on Android and Linux).
 *
 * Layout mirroring and directional icons are handled in css/rtl/rtl-fixes.css -- do not
 * repeat them here, or they mirror twice.
 */

html[lang="he"] {
    --primary-font: "Inter", "Segoe UI", "SF Hebrew", "Arial Hebrew", "Noto Sans Hebrew", Arial, sans-serif;
    --alt-font: "Plus Jakarta Sans", "Segoe UI", "SF Hebrew", "Arial Hebrew", "Noto Sans Hebrew", Arial, sans-serif;
}
html[lang="he"] body,
html[lang="he"] :is(input, textarea, select, button, .btn) {
    font-family: var(--primary-font);
}

/* Negative headline tracking was tuned for Latin capitals; on Hebrew it crowds letters
   that have no capitals to open them up. */
html[lang="he"] :is(h1, h2, .ls-minus-1px, .ls-minus-2px) {
    letter-spacing: 0;
}
html[lang="he"] body, html[lang="he"] p, html[lang="he"] li { line-height: 1.7; }

/* Tracking: the theme tightens headlines and subtitles (ls-minus-*, with !important). In
   this script that shrinks the word spaces to the width of the letter gaps and the words
   run together ("פתרונותאחסון"). */
html[lang="he"] :is(h1, h2, h3, h4, h5, h6, [class*="ls-"], .text-uppercase) { letter-spacing: 0 !important; }
