/* The menu at the top of every page except the two home pages (V10, 11 Oct 2026, Simcha: "all pages should have a menu").
   The same look as the home page's menu. Colours are written out, so it also works on the older green pages. */
.m-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(254, 254, 254, .95); backdrop-filter: blur(8px);
  border-bottom: 1px solid #d5e3f7;
  font-family: "Frank Ruhl Libre", FrankRuehl, "Times New Roman", serif; line-height: 1.6; text-align: start;
}
.m-nav {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 70px; width: min(1160px, 100% - 32px); margin-inline: auto;
}
.m-brand { display: flex; align-items: center; gap: 10px; color: #102a7a; text-decoration: none; }
.m-brand img { display: block; width: 64px; height: auto; }
.m-brand-he { display: block; direction: rtl; unicode-bidi: isolate; font-size: 1.2rem; font-weight: 900; line-height: 1.15; color: #0e3dc7; }
.m-brand-en {
  display: block; direction: ltr; unicode-bidi: isolate;
  font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #2d4386;
}
.m-menu { display: flex; align-items: center; gap: 20px; }
.m-menu a { white-space: nowrap; color: #102a7a; }
.m-menu a:not(.m-btn) { font-size: 1.02rem; font-weight: 700; text-decoration: none; }
[dir="rtl"] .m-menu a:not(.m-btn) { font-size: 1.08rem; }
.m-menu a:not(.m-btn):hover { color: #8a6710; }
.m-menu > a[aria-current="page"] {   /* the page you are on */
  color: #0e3dc7; text-decoration: underline; text-decoration-color: #d2a327;
  text-decoration-thickness: 2px; text-underline-offset: 6px;
}
.m-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  border: 2px solid #c75000; border-radius: 999px; background: #c75000;
  font: 700 1.05rem/1 "Frank Ruhl Libre", FrankRuehl, "Times New Roman", serif; text-decoration: none;
}
.m-menu .m-btn { color: #fff; }
.m-btn:hover { background: #a84300; border-color: #a84300; }
.m-menu-btn { display: none; }
/* the language switch: EN | עב | FR */
.m-langs { display: flex; align-items: center; gap: 6px; color: #2d4386; font-weight: 700; white-space: nowrap; }
.m-menu .m-langs a { padding: 2px 3px; font-size: .98rem; text-decoration: none; }
.m-menu .m-langs a[aria-current] { color: #0e3dc7; border-bottom: 2px solid #d2a327; }
.m-langs .m-sep { color: #d5e3f7; font-weight: 400; }
.m-header :focus-visible { outline: 3px solid #d2a327; outline-offset: 3px; }

/* Up to 1179 px wide: the menu is behind a button, as on the home page */
@media (max-width: 1179px) {
  .m-menu-btn {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
    border: 2px solid #102a7a; border-radius: 999px; background: #fff; color: #102a7a;
    font: 700 1rem/1 "Frank Ruhl Libre", FrankRuehl, "Times New Roman", serif; cursor: pointer;
  }
  [dir="rtl"] .m-menu-btn { font-size: 1.05rem; }
  .m-menu {
    display: none; position: absolute; top: 100%; left: -16px; right: -16px;
    flex-direction: column; align-items: stretch; gap: 0; padding: 6px 16px 16px;
    background: #fefefe; border-bottom: 1px solid #d5e3f7; box-shadow: 0 10px 30px rgba(16, 42, 122, .08);
  }
  .m-menu.open { display: flex; }
  .m-menu a:not(.m-btn) { padding: 13px 4px; border-bottom: 1px solid #d5e3f7; }
  .m-menu .m-btn { margin-top: 14px; }
  .m-menu .m-langs { justify-content: center; gap: 10px; margin-top: 12px; font-size: 1.1rem; }
  .m-menu .m-langs a { padding: 8px 12px; border-bottom: 0; font-size: 1.1rem; }
  .m-menu .m-langs a[aria-current] { border-bottom: 2px solid #d2a327; }
}
@media (max-width: 899px) {
  .m-brand img { width: 54px; }
  .m-brand-he { font-size: 1.05rem; }
  .m-brand-en { font-size: .66rem; }
}
@media (max-width: 520px) {
  .m-ra { display: none; }
}
