@font-face{font-family:Rubik;font-style:normal;font-weight:300 900;font-display:swap;src:url(/assets/fonts/rubik-hebrew.f754091567.woff2) format("woff2");unicode-range:U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F}
@font-face{font-family:Rubik;font-style:normal;font-weight:300 900;font-display:swap;src:url(/assets/fonts/rubik-latin.0441e6d43b.woff2) format("woff2");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+2190-2199,U+2212,U+2215,U+FEFF,U+FFFD}
/* The Israeli School of Lexington — site styles.
   Direction-agnostic: logical properties only (inline = start/end of the reading direction),
   so the same CSS lays out English (ltr) and Hebrew (rtl). Physical left/right appear only
   in gradients/transforms, each with an explicit [dir=rtl] counterpart. */

:root {
  --navy: #274289;
  --navy-900: #1b2f63;
  --sky: #5ba5df;
  --orange: #f46e16;
  --yellow: #fbc02f;
  --green: #67ba35;
  --ink: #1d2433;
  --muted: #5b6474;
  --paper: #faf8f3;
  --line: #e3ded3;
  --sky-50: #eaf3fb;
  --yellow-50: #fef6e0;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --logo-x: 28px;              /* logo clear space = height of the Star of David */
  --radius: 24px;
  --shadow: 0 18px 50px -24px rgba(29, 36, 51, .35);
  --focus: var(--navy);
  --dir: 1;                    /* 1 in ltr, -1 in rtl: for transforms that move along the inline axis */
}
[dir="rtl"] { --dir: -1; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Rubik, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
[lang="he"] body, body:lang(he) { line-height: 1.75; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; font-weight: 700; margin: 0; }
p, figure, dl, dd { margin: 0; }
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--navy); }
:where(ul[class], ol[class]) { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
main { display: block; overflow-x: clip; }
main:focus { outline: none; }

.icon { width: 1.5rem; height: 1.5rem; flex: none; }
[dir="rtl"] .icon--dir { transform: scaleX(-1); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.hero, .page-hero, .section--navy, .site-footer, .feature-banner, .site-header .btn--primary { --focus: var(--yellow); }
.site-header { --focus: var(--navy); }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: 12px; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px;
  font-weight: 600; text-decoration: none; transform: translateY(-200%);
}
.skip-link:focus { transform: none; --focus: var(--yellow); }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.center { text-align: center; }

.preview-banner {
  background: #fff3cd; color: #5c4400; text-align: center; padding: 6px 12px; font-size: .85rem;
}

/* ---------- Brand stripe ---------- */
.stripe { display: flex; height: 6px; }
.stripe i { flex: 1; }
.stripe i:nth-child(1) { background: var(--yellow); }
.stripe i:nth-child(2) { background: var(--sky); }
.stripe i:nth-child(3) { background: var(--green); }
.stripe i:nth-child(4) { background: var(--orange); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--yellow); color: var(--navy); }
.btn--primary:hover { background: #ffcd4f; box-shadow: 0 8px 20px -10px rgba(251, 192, 47, .9); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-900); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn--ghost-light:hover { background: #fff; color: var(--navy); }
.btn--lg { min-height: 56px; padding: .85em 1.7em; font-size: 1.0625rem; }
.btn--sm { min-height: 44px; padding: .5em 1.1em; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none;
  border-bottom: 2px solid var(--sky); padding-bottom: 2px;
}
.link-arrow .icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(calc(4px * var(--dir))); }
[dir="rtl"] .link-arrow:hover .icon { transform: translateX(-4px) scaleX(-1); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 40; background: #fff; box-shadow: 0 1px 0 var(--line); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--logo-x);
  padding-block: var(--logo-x);
  padding-inline: max(var(--gutter), var(--logo-x));
}
.brand { display: block; flex: none; border-radius: 6px; }
.brand img { display: block; width: 200px; height: auto; }

.menu-toggle {
  display: none; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 14px;
  border: 0; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; cursor: pointer;
}
.js .menu-toggle { display: inline-flex; }
.menu-toggle .icon { width: 1.4rem; height: 1.4rem; }

.site-nav__top { display: none; }
.nav-list { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.nav-item { position: relative; display: flex; flex-wrap: wrap; align-items: center; }
.nav-item > a, .sub-list a {
  display: block; padding: 10px 12px; border-radius: 12px; color: var(--navy);
  font-weight: 500; text-decoration: none;
}
.nav-item > a:hover, .sub-list a:hover { background: var(--sky-50); }
.nav-item > a[aria-current="page"], .nav-item.is-active > a, .sub-list a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline; text-decoration-color: var(--orange);
  text-decoration-thickness: 3px; text-underline-offset: 8px;
}
.sub-toggle {
  display: none; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px;
  background: transparent; color: var(--navy); cursor: pointer;
}
.sub-toggle .icon { width: 1.1rem; height: 1.1rem; transition: transform .2s; }
.sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.sub-list a { font-weight: 400; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 2px solid var(--line);
}
.lang-link .icon { width: 1.15rem; height: 1.15rem; }
.lang-link--bar { margin-inline-start: auto; color: var(--navy); min-height: 48px; }
@media (min-width: 75em) { .lang-link--bar { display: none; } }
/* Small phones: logo + language + menu must fit on one row */
@media (max-width: 29.99em) {
  .site-header__inner:has(.lang-link--bar) .brand img { width: 172px; }
  .lang-link--bar { padding: 8px 12px; }
  .lang-link--bar .icon { display: none; }
  .site-header__inner:has(.lang-link--bar) { gap: 10px; }
  .lang-link--bar, .lang-link--bar ~ .menu-toggle { flex: none; }
  .lang-link--bar ~ .menu-toggle { width: 48px; height: 48px; padding: 0; justify-content: center; }
  .lang-link--bar ~ .menu-toggle .menu-toggle__label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}
.nav-backdrop { display: none; }

/* No-JS small screens: the menu is simply shown under the logo. */
html:not(.js) .site-header__inner { flex-wrap: wrap; }

/* Small screens with JS: drawer that slides in from the inline-start side */
@media (max-width: 74.99em) {
  .js .site-nav {
    position: fixed; inset-block: 0; inset-inline-start: 0; z-index: 60;
    width: min(88vw, 380px); overflow-y: auto; overscroll-behavior: contain;
    display: flex; flex-direction: column; gap: 24px;
    padding: 20px 24px 32px; background: #fff; box-shadow: var(--shadow);
    transform: translateX(calc(-100% * var(--dir)));
    visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
  }
  .js .site-nav.is-open { transform: none; visibility: visible; transition: transform .3s ease; }
  .js .site-nav__top { display: flex; align-items: center; justify-content: space-between; }
  .menu-close {
    display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%;
    background: var(--sky-50); color: var(--navy); cursor: pointer;
  }
  .js .nav-list { flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .js .nav-item { border-bottom: 1px solid var(--line); }
  .js .nav-item > a { flex: 1; padding: 14px 4px; font-size: 1.2rem; font-weight: 600; }
  .js .nav-item > a[aria-current="page"], .js .nav-item.is-active > a { text-underline-offset: 6px; }
  .js .sub-list { width: 100%; padding-inline-start: 16px; padding-bottom: 10px; }
  .js .sub-list a { padding: 8px 4px; font-size: 1.05rem; }
  .js .nav-actions { flex-direction: column; align-items: stretch; }
  .js .nav-actions .lang-link { display: none; } /* shown in the top bar instead */
  .js .nav-actions .btn { min-height: 52px; font-size: 1.05rem; }
  .js .nav-backdrop:not([hidden]) {
    display: block; position: fixed; inset: 0; z-index: 55; background: rgba(27, 47, 99, .55);
  }
  html:not(.js) .site-nav { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  html:not(.js) .sub-list { display: flex; flex-wrap: wrap; padding-inline-start: 12px; }
}

/* Large screens: inline menu with a dropdown (logo in the page's own language) */
@media (min-width: 75em) {
  .brand img { width: 210px; }
  .js .menu-toggle, .menu-close, .site-nav__top { display: none; }
  .site-nav { display: flex; align-items: center; gap: 18px; }
  .nav-list { flex-wrap: nowrap; gap: 2px; }
  .nav-item { flex-wrap: nowrap; }          /* a dropdown arrow never drops under its label */
  .nav-item > a { white-space: nowrap; }
  .has-sub > a { padding-inline-end: 4px; }
  .sub-toggle { display: grid; width: 28px; }
  .sub-list {
    position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 50;
    min-width: 260px; padding: 8px; background: #fff; border-radius: 16px;
    box-shadow: var(--shadow); border: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .15s, transform .15s, visibility 0s linear .15s;
  }
  .sub-list::before { content: ""; position: absolute; inset-inline: 0; bottom: 100%; height: 10px; }
  .has-sub:hover .sub-list, .has-sub:focus-within .sub-list, .sub-toggle[aria-expanded="true"] + .sub-list {
    opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s;
  }
}

/* 1200–1399px: six menu items + language switch + Register must fit on one row next to the logo */
@media (min-width: 75em) and (max-width: 87.49em) {
  .brand img { width: 186px; }
  .site-nav { gap: 12px; }
  .nav-item > a { padding-inline: 8px; }
  .has-sub > a { padding-inline-end: 2px; }
  .sub-toggle { width: 22px; }
  .nav-actions { gap: 8px; }
  .nav-actions .lang-link { padding-inline: 12px; }
  .nav-actions .lang-link .icon { display: none; }
  .nav-actions .btn--sm { padding-inline: .95em; }
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 14px;
}
.eyebrow--pill {
  display: inline-block; background: var(--yellow); color: var(--navy); letter-spacing: .04em;
  padding: .45em 1em; border-radius: 999px; font-size: .9rem;
}
:lang(he) .eyebrow { letter-spacing: 0; text-transform: none; font-size: .95rem; }

.heading {
  font-size: clamp(2rem, 1.35rem + 2.3vw, 3.15rem); line-height: 1.08; letter-spacing: -.01em;
  margin-bottom: .55em; text-wrap: balance;
}
:lang(he) .heading { letter-spacing: 0; line-height: 1.15; }
.heading .h-light { display: block; font-weight: 300; }
.h-bold {
  font-weight: 700;
  background-image: linear-gradient(var(--accent, var(--yellow)), var(--accent, var(--yellow)));
  background-repeat: no-repeat; background-size: 100% .26em; background-position: 0 92%;
  padding-inline: .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.heading--on-dark { color: #fff; }
.heading--center { text-align: center; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .heading { margin-bottom: .35em; }
.section-head__lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Home hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip; color: #fff;
  min-height: clamp(560px, 84vh, 800px);
  display: flex; align-items: center;
  padding-block: 112px;
}
.page-hero__media, .page-hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(27, 47, 99, .95) 0%, rgba(39, 66, 137, .88) 45%,
                                     rgba(39, 66, 137, .5) 70%, rgba(39, 66, 137, .15) 100%);
}
[dir="rtl"] .hero::before, [dir="rtl"] .page-hero::before {
  background: linear-gradient(270deg, rgba(27, 47, 99, .95) 0%, rgba(39, 66, 137, .88) 45%,
                                      rgba(39, 66, 137, .5) 70%, rgba(39, 66, 137, .15) 100%);
}
.hero__inner > * { max-width: 680px; }
/* Home hero: slow crossfade between photos (site.js), a small pause button */
.hero__slide { opacity: 0; transition: opacity 1.6s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__pause {
  position: absolute; z-index: 1; bottom: 20px; inset-inline-end: 20px; width: 40px; height: 40px;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(27, 47, 99, .55); color: #fff;
}
.hero__pause:hover { background: var(--yellow); color: var(--navy); }
.hero__pause .icon { width: 1rem; height: 1rem; }
@media (prefers-reduced-motion: reduce) { .hero__slide { transition: none; } }
.hero__title { color: #fff; font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.4rem); line-height: 1.08; letter-spacing: -.02em; }
:lang(he) .hero__title { letter-spacing: 0; line-height: 1.1; }
.hero__title .h-light { display: block; font-weight: 300; }
.hero__title .h-bold { display: inline; font-weight: 800; --accent: var(--yellow); background-size: 100% .2em; background-position: 0 96%; }
.hero__lead { margin-top: 28px; font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); line-height: 1.55; max-width: 26em; }
.hero__dots i, .page-hero__dots i, .cta-band__dots i { position: absolute; border-radius: 50%; }
.hero__dots i:nth-child(1) { width: 34px; height: 34px; background: var(--orange); inset-inline-end: 9%; top: 22%; }
.hero__dots i:nth-child(2) { width: 18px; height: 18px; background: var(--yellow); inset-inline-end: 6%; top: 30%; }
.hero__dots i:nth-child(3) { width: 12px; height: 12px; background: var(--sky); inset-inline-end: 11.5%; top: 33%; }

@media (max-width: 47.99em) {
  .hero { min-height: 0; padding-block: 200px 72px; }
  .hero::before, [dir="rtl"] .hero::before {
    background: linear-gradient(0deg, rgba(27, 47, 99, .97) 0%, rgba(39, 66, 137, .88) 48%,
                                      rgba(39, 66, 137, .35) 80%, rgba(39, 66, 137, .15) 100%);
  }
  .hero__dots { display: none; }
  .hero .btn--lg { width: 100%; }
}

/* ---------- Key facts (a calm strip under the hero) ---------- */
.facts { position: relative; padding-top: clamp(32px, 4vw, 48px); }
.facts__list { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { display: flex; align-items: center; gap: 16px; padding: 6px 32px; }
.fact:first-child { padding-inline-start: 0; }
.fact + .fact { border-inline-start: 1px solid var(--line); }
.fact__icon {
  flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: var(--navy);
}
.fact__text { line-height: 1.35; }
.fact__text strong { display: block; color: var(--navy); font-weight: 600; }
.fact__text span { color: var(--muted); font-size: .95rem; }
.fact--yellow { --c: var(--yellow); } .fact--sky { --c: var(--sky); }
.fact--green { --c: var(--green); }   .fact--orange { --c: var(--orange); }
@media (max-width: 47.99em) {
  .facts__list { grid-template-columns: 1fr; }
  .fact, .fact:first-child { padding: 14px 0; }
  .fact + .fact { border-inline-start: 0; border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8vw, 112px); overflow-x: clip; }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: #fff; }
.facts + .section { padding-top: clamp(56px, 7vw, 96px); }

.split { display: grid; gap: 44px; align-items: center; }
@media (min-width: 56em) {
  .split { grid-template-columns: 1.05fr .95fr; gap: clamp(44px, 6vw, 88px); }
  .split--flip .split__media { order: -1; }
}
.split__media { position: relative; isolation: isolate; }
.split__media img { width: 100%; border-radius: var(--radius); max-height: 620px; object-fit: cover; }
.media-deco::before, .media-deco::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.media-deco::before {
  width: 34%; aspect-ratio: 1; background: var(--c, var(--yellow));
  inset-block-end: -26px; inset-inline-end: -26px;
}
.media-deco::after {
  width: 26px; height: 26px; background: var(--sky); inset-block-start: -10px; inset-inline-start: 24px; z-index: 1;
}
.media-deco--yellow { --c: var(--yellow); } .media-deco--sky { --c: var(--sky); }
.media-deco--green { --c: var(--green); }   .media-deco--orange { --c: var(--orange); }
.media-deco--sky::after { background: var(--orange); }
@media (max-width: 47.99em) {
  .media-deco::before { inset-block-end: -14px; inset-inline-end: -10px; }
}

/* ---------- Prose (page text) ---------- */
.prose { max-width: 72ch; }
.split .prose { max-width: none; }
.prose > * + * { margin-top: 1.05em; }
.prose > h3 { font-size: 1.35rem; margin-top: 1.6em; }
.prose strong { color: var(--navy); font-weight: 600; }
.prose a { text-decoration-color: var(--sky); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--orange); }
.prose ul:not([class]), .prose ol:not([class]) { padding-inline-start: 1.3em; margin-bottom: 0; }
.prose li:not([class]) + li:not([class]) { margin-top: .45em; }
.prose li:not([class])::marker { color: var(--orange); }
.prose .lead, .prose > p:first-child:not(:only-child) { font-size: 1.15rem; }
.section--navy .prose, .section--navy .prose strong { color: #fff; }

.photo-row { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); max-width: none !important; }
.photo-row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.figure figcaption, .photo-row figcaption { margin-top: 8px; color: var(--muted); font-size: .95rem; }

.subgrid { margin-top: 32px; max-width: none !important; columns: 2 400px; column-gap: 24px; }
.subgrid > .subcard { break-inside: avoid; margin-bottom: 24px; }
.prose:has(.subgrid), .prose:has(.block-grid), .prose:has(.class-cards), .prose:has(.people),
.prose:has(.contact-cards), .prose:has(.calendar-block) { max-width: none; }
.subcard {
  background: #fff; border-radius: 20px; padding: 28px; border: 1px solid var(--line);
  border-top: 6px solid var(--c, var(--sky));
}
.section:not(.section--paper) .subcard { background: var(--paper); }
.subcard:nth-child(4n+1) { --c: var(--yellow); } .subcard:nth-child(4n+2) { --c: var(--sky); }
.subcard:nth-child(4n+3) { --c: var(--green); }  .subcard:nth-child(4n+4) { --c: var(--orange); }
.subcard h3 { margin-top: 0; font-size: 1.3rem; scroll-margin-top: 24px; }
.subcard ul { margin-top: 14px; }

.block-grid {
  display: grid; gap: 24px; margin-block: 32px; max-width: none !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start;
}

/* ---------- Class cards ---------- */
.class-cards { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 56em) { .class-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }
.class-card--yellow { --c: var(--yellow); } .class-card--sky { --c: var(--sky); }
.class-card--green { --c: var(--green); }   .class-card--orange { --c: var(--orange); }
.class-card__link {
  position: relative; isolation: isolate; display: block; overflow: hidden; border-radius: 20px;
  aspect-ratio: 4 / 5; color: #fff; text-decoration: none; background: var(--navy);
  border-bottom: 6px solid var(--c);
}
.class-card__link picture { position: absolute; inset: 0; z-index: -2; }
.class-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.class-card__link::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgba(27, 47, 99, .96) 0%, rgba(27, 47, 99, .65) 38%, rgba(27, 47, 99, 0) 70%);
}
.class-card__link:hover .class-card__img { transform: scale(1.05); }
.class-card__body {
  position: absolute; inset-inline: 0; inset-block-end: 0; padding: 18px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.class-card__ages {
  background: var(--c); color: var(--ink); font-weight: 600; font-size: .85rem;
  padding: .2em .75em; border-radius: 999px;
}
.class-card__name { font-size: clamp(1.1rem, .95rem + .6vw, 1.45rem); font-weight: 700; line-height: 1.15; }
.class-card__summary { margin-top: 14px; color: var(--muted); font-size: .98rem; }
@media (max-width: 35.99em) {
  .class-card__link { aspect-ratio: 3 / 4; }
  .class-card__body { padding: 12px; }
}

.feature-banner {
  margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px 32px; padding: 30px 34px; border-radius: var(--radius);
  background: var(--navy); color: #fff; position: relative; overflow: hidden; isolation: isolate;
}
.feature-banner::before {
  content: ""; position: absolute; z-index: -1; width: 220px; height: 220px; border-radius: 50%;
  background: var(--sky); opacity: .35; inset-inline-end: -60px; top: -90px;
}
.feature-banner__text { flex: 1 1 420px; }
.feature-banner h3 { color: #fff; font-size: 1.45rem; margin-bottom: 6px; }

/* ---------- Pillars ---------- */
.pillars { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.pillar { background: var(--paper); border-radius: var(--radius); padding: 32px 28px; }
.pillar__icon {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: var(--navy); margin-bottom: 20px;
}
.pillar--orange { --c: var(--orange); } .pillar--sky { --c: var(--sky); } .pillar--green { --c: var(--green); }
.pillar h3 { font-size: 1.35rem; margin-bottom: 10px; }
.pillars + .center { margin-top: 36px; }

/* ---------- Events & news ---------- */
.events, .news { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.event { display: flex; gap: 18px; background: #fff; border-radius: 20px; padding: 20px; border: 1px solid var(--line); }
.event__date {
  flex: none; width: 72px; height: 76px; border-radius: 16px; background: var(--yellow); color: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1;
}
.event__day { font-size: 1.7rem; font-weight: 800; }
.event__month { font-size: .85rem; font-weight: 600; }
.event h3 { font-size: 1.2rem; }
.event__meta, .news-item__date { color: var(--muted); font-size: .95rem; margin-block: 4px 8px; }
.news-item { background: var(--paper); border-radius: 20px; padding: 24px; border-top: 6px solid var(--yellow); }

/* ---------- Gallery carousel ---------- */
.gallery { position: relative; --gap: 0px; }
.gallery__viewport {
  overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius);
  background: var(--navy-900);
}
.gallery__track { display: flex; gap: 12px; }
.gallery__slide { flex: 0 0 86%; min-width: 0; scroll-snap-align: start; }
.gallery__slide figure { position: relative; aspect-ratio: 16 / 9; background: var(--navy-900); }
.gallery__slide picture, .gallery__slide img { width: 100%; height: 100%; }
.gallery__slide img { object-fit: cover; }
.gallery__slide.is-portrait img { object-fit: contain; }
.gallery__slide figcaption {
  position: absolute; inset-inline-start: 16px; inset-block-end: 16px; max-width: calc(100% - 32px);
  background: rgba(27, 47, 99, .88); color: #fff; padding: 8px 14px; border-radius: 12px; font-size: .95rem;
}
/* enhanced by JS */
.gallery.is-ready .gallery__viewport { overflow: hidden; scroll-snap-type: none; }
.gallery.is-ready .gallery__track { gap: 0; transition: transform .7s cubic-bezier(.22, .7, .2, 1); }
.gallery.is-ready .gallery__slide { flex-basis: 100%; }
.gallery.is-ready .gallery__slide:not(.is-current) { visibility: hidden; transition: visibility 0s linear .7s; }
.gallery.is-ready .gallery__slide.is-current { visibility: visible; }
.gallery__controls { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.gallery__controls[hidden] { display: none; }
.gallery__btn {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(255, 255, 255, .7); background: transparent; color: #fff;
  transition: background-color .2s, color .2s;
}
.gallery__btn:hover { background: #fff; color: var(--navy); }
.gallery__btn .icon { width: 1.4rem; height: 1.4rem; }
.gallery__count {
  min-width: 4.5ch; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums;
  direction: ltr; unicode-bidi: isolate;
}
.gallery__toggle {
  width: auto; display: inline-flex; gap: 8px; padding-inline: 16px 20px; border-radius: 999px;
  margin-inline-start: auto; font-weight: 600;
}
.gallery__toggle .icon { width: 1.2rem; height: 1.2rem; }
.gallery__toggle-play { display: none; }
.gallery__toggle[data-paused="true"] .gallery__toggle-play { display: inline; }
.gallery__toggle[data-paused="true"] .gallery__toggle-pause { display: none; }
@media (max-width: 47.99em) {
  .gallery__slide figure { aspect-ratio: 4 / 3; }
  .gallery__toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .gallery__toggle { width: 52px; padding: 0; justify-content: center; }
}

/* ---------- Video (click to load) ---------- */
.video { margin: 0; }
.video__facade, .video iframe {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 20px; overflow: hidden; border: 0;
}
.video__facade { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-900) 100%); color: var(--navy); text-decoration: none; }
.video__poster { position: absolute; inset-inline-start: 22px; top: 20px; opacity: .9; }
.video__poster img { width: 52px; height: auto; }
.video__play {
  width: 76px; height: 76px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center;
  transition: transform .2s; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5);
}
.video__play .icon { width: 2rem; height: 2rem; margin-inline-start: 4px; }
[dir="rtl"] .video__play .icon { margin-inline-start: 0; margin-inline-end: -4px; }
.video__facade:hover .video__play { transform: scale(1.08); }
.video figcaption { margin-top: 12px; font-weight: 600; color: var(--navy); }
.video__title { display: block; }
.video__note { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; margin-top: 2px; }

/* ---------- Info cards (fees, payment) ---------- */
.info-card {
  background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line);
  border-top: 6px solid var(--c);
}
.info-card--yellow { --c: var(--yellow); } .info-card--sky { --c: var(--sky); } .info-card--green { --c: var(--green); } .info-card--orange { --c: var(--orange); }
.info-card__title { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; margin-bottom: 14px; }
.info-card__title .icon { color: var(--navy); }
.fees > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; border-bottom: 1px dashed var(--line); }
.fees dt small { color: var(--muted); font-size: .9em; }
.fees dd { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fees__total { border-bottom: 0 !important; font-size: 1.15rem; }
.fees__total dt, .fees__total dd { font-weight: 800; color: var(--navy); }
.fees__notes { margin-top: 10px; display: grid; gap: 8px; }
.fees__notes li { padding-inline-start: 18px; position: relative; }
.fees__notes li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.fees__early { font-weight: 600; color: var(--navy); }
.pay-list { display: grid; gap: 18px; }
.pay-list li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.pay-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.pay-list strong { color: var(--navy); font-size: 1.1rem; }

.fee-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fee-table th, .fee-table td { padding-block: 10px; border-bottom: 1px dashed var(--line); }
.fee-table th { text-align: start; font-weight: 400; }
.fee-table td { text-align: end; font-weight: 600; white-space: nowrap; padding-inline-start: 12px; }
.fee-table tfoot th, .fee-table tfoot td { font-weight: 800; color: var(--navy); font-size: 1.1rem; border-bottom: 0; }
.fee-table__note { margin-top: 10px; font-weight: 600; color: var(--navy); }
.pay-block { display: grid; gap: 14px; align-content: start; }
.pay-block .info-card__title { margin-bottom: 0; }
.note-list { display: grid; gap: 6px; color: var(--muted); font-size: .98rem; }
.note-list li { padding-inline-start: 18px; position: relative; }
.note-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); }
.zeffy-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.zeffy-frame iframe { width: 100%; height: min(1100px, 150vh); border: 0; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.copy-row__value {
  font: 600 1.15rem/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--navy);
  background: var(--sky-50); padding: 10px 14px; border-radius: 12px; overflow-wrap: anywhere;
  unicode-bidi: isolate;
}
.copy-row__status { color: var(--muted); font-size: .95rem; }

/* ---------- People ---------- */
.people-group + .people-group { margin-top: 32px; }
.people--lead { margin-bottom: 14px; }
.people-group__title { font-size: 1.3rem; margin-bottom: 16px; }
.people { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.person {
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding-block: 8px; padding-inline: 8px 20px;
}
.person__initial {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: var(--ink); font-weight: 700; font-size: 1.15rem;
}
.person__text { display: flex; flex-direction: column; line-height: 1.3; }
.person--yellow { --c: var(--yellow); } .person--sky { --c: var(--sky); }
.person--green { --c: var(--green); }   .person--orange { --c: var(--orange); }
.person__name { font-weight: 600; color: var(--navy); }
.person__role { display: block; color: var(--muted); font-size: .9rem; }

/* ---------- Contact cards ---------- */
.contact-cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.contact-card { background: var(--paper); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.section--paper .contact-card { background: #fff; }
.contact-card__icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: var(--navy); }
.contact-card--yellow { --c: var(--yellow); } .contact-card--sky { --c: var(--sky); }
.contact-card--green { --c: var(--green); }   .contact-card--orange { --c: var(--orange); }
/* visible placeholder for a value that is still missing in settings.yaml */
.todo-inline { display: inline-block; border: 1.5px dashed currentColor; border-radius: 8px; padding: 0 .5em; opacity: .85; font-style: italic; }
:lang(he) .todo-inline { font-style: normal; } /* Hebrew has no italics; a slanted fake looks broken */
.contact-lines__label { display: block; font-size: .8rem; color: #bfd3ef; }
.contact-card h3 { font-size: 1.25rem; }
.contact-card p { overflow-wrap: anywhere; }

.placeholder-note {
  border: 2px dashed var(--orange); background: #fff4ec; padding: 20px 24px; border-radius: 16px;
}
.placeholder-note strong { color: #b84a0b; margin-inline-end: 8px; }

/* ---------- Contact form (shown only when settings.contact_form_url is set) ---------- */
.contact-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 56em) { .contact-layout { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 32px; } }
.contact-cards--aside { grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 36em) and (max-width: 55.99em) {
  .contact-cards--aside { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
}
.contact-cards--aside .contact-card { padding: 22px; }
.contact-form-card {
  background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--orange);
  border-radius: var(--radius); padding: clamp(20px, 3vw, 34px);
}
.contact-form { position: relative; display: grid; gap: 18px; }
.contact-form[hidden] { display: none; }
.contact-form .info-card__title { margin-bottom: 0; }
.contact-form__intro { color: var(--muted); font-size: .95rem; margin-top: -6px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 40em) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 11px 14px; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #c9c2b4; border-radius: 12px;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }   /* email: typed left-to-right, lined up with the form */
.field [aria-invalid="true"] { border-color: #c0392b; background: #fff8f6; }
.field__error { color: #b42318; font-size: .92rem; font-weight: 500; }
.field__error[hidden] { display: none; }
.form-trap {   /* the bot trap: invisible, skipped by keyboard and screen readers */
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.contact-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.contact-form .btn.is-busy { opacity: .7; cursor: progress; transform: none; box-shadow: none; }
.form-status:not(:empty) { padding: 14px 18px; border-radius: 14px; font-weight: 500; }
.form-status.is-ok { background: #ecf8e5; color: #245a12; border: 1.5px solid #9fd47f; }
.form-status.is-error { background: #fdeceb; color: #8f1d14; border: 1.5px solid #f2a29b; }
.form-status:focus { outline: none; }
.contact-form__fallback { margin-top: 18px; color: var(--muted); font-size: .95rem; overflow-wrap: anywhere; }

/* ---------- School calendar ---------- */
.prose:has(.calendar-block) > p { max-width: 72ch; }
.calendar-block {
  display: grid; gap: 28px; align-items: center; margin-block: 32px; padding: clamp(18px, 3vw, 36px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.section:not(.section--paper) .calendar-block { background: var(--paper); }
@media (min-width: 48em) {
  .calendar-block { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); }
}
.calendar-block__preview {
  display: block; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: #fff;
  box-shadow: var(--shadow); transition: transform .2s;
}
.calendar-block__preview:hover { transform: translateY(-2px); }
.calendar-block__img { width: 100%; height: auto; }
.calendar-block__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-bottom: 18px; }
.calendar-block__download { margin: 0; }
.calendar-block__download .btn { text-align: start; }
.calendar-block__meta { color: var(--muted); font-size: .92rem; margin-top: 8px; }
.calendar-block__other { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.calendar-block__other .calendar-block__meta { margin-top: 0; }

/* ---------- Inner page header ---------- */
.page-hero {
  position: relative; isolation: isolate; overflow: clip; color: #fff;
  min-height: clamp(300px, 34vw, 460px); display: flex; align-items: flex-end;
  padding-block: clamp(80px, 10vw, 140px) clamp(44px, 6vw, 72px);
}
.page-hero--plain { background: var(--navy); min-height: 0; }
.page-hero--plain::before { display: none; }
.page-hero__title { color: #fff; font-size: clamp(2.3rem, 1.5rem + 3.2vw, 4.2rem); line-height: 1.05; max-width: 20ch; letter-spacing: -.015em; }
:lang(he) .page-hero__title { letter-spacing: 0; line-height: 1.15; }
.page-hero__lead { margin-top: 16px; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); max-width: 40em; }
.page-hero__dots i:nth-child(1) { width: 26px; height: 26px; background: var(--yellow); inset-inline-end: 8%; top: 26%; }
.page-hero__dots i:nth-child(2) { width: 14px; height: 14px; background: var(--orange); inset-inline-end: 5.5%; top: 34%; }
.page-hero__dots i:nth-child(3) { width: 10px; height: 10px; background: var(--green); inset-inline-end: 10%; top: 38%; }
@media (max-width: 47.99em) {
  .page-hero { min-height: 0; padding-top: 150px; }
  .page-hero::before, [dir="rtl"] .page-hero::before {
    background: linear-gradient(0deg, rgba(27, 47, 99, .96) 0%, rgba(39, 66, 137, .8) 55%, rgba(39, 66, 137, .25) 100%);
  }
  .page-hero--plain { padding-top: 64px; }
  .page-hero__dots { display: none; }
}

/* ---------- Call-to-action band ---------- */
.cta-band {
  position: relative; overflow: clip; text-align: center; background: var(--sky-50);
  padding-block: clamp(72px, 9vw, 120px);
}
.cta-band .heading { font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); }
.cta-band__dots i:nth-child(1) { width: 120px; height: 120px; background: var(--yellow); inset-inline-start: -40px; top: -30px; }
.cta-band__dots i:nth-child(2) { width: 34px; height: 34px; background: var(--orange); inset-inline-start: 90px; top: 70px; }
.cta-band__dots i:nth-child(3) { width: 160px; height: 160px; background: var(--green); inset-inline-end: -60px; bottom: -70px; opacity: .85; }
.cta-band__dots i:nth-child(4) { width: 22px; height: 22px; background: var(--sky); inset-inline-end: 120px; bottom: 60px; }
.pill-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 8px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: .7em 1.6em;
  border-radius: 999px; background: var(--c); color: var(--navy); text-decoration: none;
  font-size: 1.25rem; font-weight: 700; transition: transform .2s, box-shadow .2s;
}
.pill:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(27, 47, 99, .7); }
.pill--yellow { --c: var(--yellow); } .pill--sky { --c: var(--sky); } .pill--green { --c: var(--green); } .pill--orange { --c: var(--orange); }
@media (max-width: 35.99em) {
  .pill-row { flex-direction: column; align-items: stretch; }
  .pill { justify-content: center; }
  .cta-band__dots i:nth-child(2), .cta-band__dots i:nth-child(4) { display: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #fff; }
.site-footer a { color: #fff; }
.site-footer__grid {
  display: grid; gap: 40px; padding-block: 64px 56px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}
@media (min-width: 64em) { .site-footer__grid { grid-template-columns: 1fr 1.35fr 1fr; gap: 56px; } }
.footer-logo { display: inline-block; padding: 12px; margin: -12px; border-radius: 8px; }
.footer-logo img { width: 220px; max-width: none; }
.site-footer__brand p { margin-top: 20px; max-width: 34ch; color: #dfe7f5; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); transition: background-color .2s, color .2s;
}
.social a:hover { background: var(--yellow); color: var(--navy); }
.social__lang a { width: auto; display: inline-flex; align-items: center; gap: 8px; padding-inline: 16px; border-radius: 999px;
  font-weight: 600; text-decoration: none; }
.social__lang .icon { width: 1.1rem; height: 1.1rem; }
.footer-title {
  color: var(--yellow); font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 16px;
}
:lang(he) .footer-title { letter-spacing: 0; font-size: 1rem; }
.site-footer__nav ul { columns: 2; column-gap: 40px; list-style: none; margin: 0; padding: 0; }
.site-footer__nav li { break-inside: avoid; margin-bottom: 8px; }
@media (min-width: 64em) { .site-footer__nav li { white-space: nowrap; } .site-footer__nav ul { column-gap: 32px; } }
.site-footer__nav a, .contact-lines a { text-decoration: none; }
.site-footer__nav a:hover, .contact-lines a:hover { text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 4px; }
.contact-lines { display: grid; gap: 12px; margin-bottom: 24px; }
.contact-lines li { display: flex; align-items: center; gap: 12px; overflow-wrap: anywhere; }
.contact-lines .icon { color: var(--sky); width: 1.3rem; height: 1.3rem; }
.site-footer__bottom { background: var(--navy-900); font-size: .9rem; color: #dfe7f5; }
.site-footer__bottom .wrap { display: flex; flex-wrap: wrap; justify-content: center; text-align: center; gap: 8px 24px; padding-block: 18px; }

/* ---------- Misc ---------- */
.not-found-alt { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.not-found-alt > * + * { margin-top: 16px; }
[dir="rtl"] a[href^="mailto:"], [dir="rtl"] a[href^="tel:"] { unicode-bidi: isolate; }
/* A time range, price or number inside right-to-left text stays in one piece (16:30–18:30);
   emails (inside links) may still wrap */
[dir="rtl"] :not(a) > bdi[dir="ltr"] { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header .site-nav, .menu-toggle, .gallery__controls, .cta-band, .skip-link { display: none !important; }
  .hero, .page-hero { color: #000; min-height: 0; padding: 24px 0; }
  .hero::before, .page-hero::before, .page-hero__media { display: none; }
}
