@font-face {
  font-family: "Miriam Libre";
  src: url("/assets/fonts/MiriamLibre-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans Hebrew";
  src: url("/assets/fonts/NotoSansHebrew-Variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Secular One";
  src: url("/assets/fonts/SecularOne-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
/* Hebrew pages reuse the site's visual identity with natural Hebrew spacing. */
.language-switch { display: flex; align-items: center; gap: .1rem; padding: .15rem; margin-inline-end: .65rem; border: 1px solid #777; border-radius: 999px; }
.shared-header .language-switch a { display: grid; place-items: center; min-width: 32px; min-height: 32px; padding: .1rem .35rem; font-size: .7rem; letter-spacing: .03em; border-radius: 999px; }
.shared-header .header-actions .language-switch a[aria-current="page"] { color: #080909; background: #f3f3f0; text-decoration: none; }
html[dir="rtl"] body {
  --body-face: "Noto Sans Hebrew", Arial, Helvetica, sans-serif;
  --heading-face: "Miriam Libre", Arial, Helvetica, sans-serif;
  --prose-face: "Noto Sans Hebrew", Arial, Helvetica, sans-serif;
  font-family: var(--body-face);
  font-size: 1.125rem;
  font-weight: 400;
}
html[dir="rtl"] :is(h1,h2,h3,h4,h5,h6) {
  font-family: var(--heading-face);
  font-weight: 700;
  font-synthesis: none;
}
html[dir="rtl"] :is(h1,h2,h3,h4,h5,h6,.eyebrow,.hero h1 em) { letter-spacing: normal; }
html[dir="rtl"] .hero h1 { line-height: 1.1; }
html[dir="rtl"] .hero h1 em { font-family: "Secular One", Arial, Helvetica, sans-serif; font-style: normal; font-weight: 400; font-synthesis: none; }
html[dir="rtl"] .page-intro h1 { font-size: clamp(3.2rem, 8vw, 8rem); line-height: 1.15; }
html[dir="rtl"] .prose p { line-height: 1.8; }
html[dir="rtl"] .shared-header { font-family: var(--body-face); text-align: start; }
html[dir="rtl"] .shared-header .access-panel button { text-align: start; }
html[dir="rtl"] .shared-footer { font-family: var(--body-face); text-align: start; }
html[dir="rtl"] .hero[data-alignment="left"], html[dir="rtl"] .page-intro[data-alignment="left"] { text-align: start; }
@media (max-width: 900px), (max-height: 500px) and (pointer: coarse) {
  .shared-header .language-switch { margin-inline-end: .35rem; }
  .shared-header .language-switch a { min-width: 29px; min-height: 34px; }
}

@media (max-width: 360px) {
  .shared-header.mobile-nav-ready:not([data-compact='true']) .header-settings {
    gap: 6px;
  }

  .shared-header.mobile-nav-ready:not([data-compact='true']) .language-switch {
    flex: 0 0 auto;
    gap: 2px;
    padding: 2px;
    margin-inline-end: 0;
  }

  .shared-header.mobile-nav-ready:not([data-compact='true']) .language-switch a {
    padding: 2px 0;
  }
}


html:lang(he) .eyebrow {
  font-size: 0.9rem;
  line-height: 1.5;
}
