/* Keter YG — Culmus, GPL-2 + font embedding exception.
   Converted from the unmodified Medium and Bold TTF files; see /fonts/LICENSE.txt. */
@font-face {
  font-family: "Keter YG";
  src: url("/fonts/KeterYG-Medium.woff2") format("woff2"),
       url("/fonts/KeterYG-Medium.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Keter YG";
  src: url("/fonts/KeterYG-Bold.woff2") format("woff2"),
       url("/fonts/KeterYG-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Cheder Ohr Menachem — shared site stylesheet
   Warm, simple, works on every page. No build step. */

:root {
  --blue: #1a8bc7;
  --blue-deep: #16497e;
  --blue-soft: #e7f4fb;
  --ink: #1d2a38;
  --muted: #5c6b7a;
  --cream: #f6f3ed;
  --paper: #ffffff;
  --line: #e4ddd2;
  --gold: #c4a15a;
  --shadow: 0 8px 28px rgba(22, 73, 126, 0.08);
  --radius: 16px;
  --max: 1080px;
  --header-max: 1180px;
  --banner-max: 920px;
  --font-he: "Keter YG", "Frank Ruhl Libre", "David Libre", "Noto Serif Hebrew", "Times New Roman", serif;
  --font-en: "Source Sans 3", "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", "Palatino Linotype", "Palatino", serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

:lang(he),
.he {
  font-family: var(--font-he);
}



html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 1.05rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; }

a { color: var(--blue-deep); }
a:hover { color: var(--blue); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue-deep);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(196, 161, 90, 0.35), var(--shadow);
}

.bsd {
  font-family: var(--font-he);
  font-weight: 700;
  font-size: 0.8rem;
  text-align: center;
  margin: 0;
  padding: 0.45rem 0 0.15rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.brand {
  max-width: var(--header-max);
  margin: 0 auto;
  padding: 0.35rem 1.25rem 0.7rem;
  text-align: center;
}

.brand a, .brand picture { display: block; max-width: 100%; }
.brand img {
  display: block;
  width: min(var(--banner-max), 100%);
  height: auto;
  margin: 0 auto;
}

.nav-wrap {
  max-width: var(--header-max);
  margin: 0 auto;
  padding: 0 0.75rem 0.85rem;
  position: relative;
}

.nav-toggle {
  display: none;
  margin: 0 auto;
  background: var(--blue-deep);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-family: var(--font-en);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.nav-toggle:focus-visible,
.sub-toggle:focus-visible,
.site-nav a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.site-nav { display: block; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav > ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.15rem;
  align-items: center;
}

.site-nav > ul > li {
  position: relative;
}

.site-nav a,
.site-nav .nav-label {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue-deep);
  background: var(--blue-soft);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--blue);
}

.has-sub {
  display: flex;
  align-items: center;
}

.has-sub > a { padding-inline-end: 0.35rem; }

.sub-toggle {
  background: transparent;
  border: 0;
  color: var(--blue-deep);
  cursor: pointer;
  padding: 0.55rem 0.55rem 0.55rem 0.15rem;
  font-size: 0.7rem;
  line-height: 1;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 16rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.45rem 0;
  z-index: 40;
}

.submenu.wide {
  min-width: 18.5rem;
  max-height: min(70vh, 32rem);
  overflow: auto;
}

.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu,
.has-sub.open > .submenu {
  display: block;
}

.submenu li a {
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.45rem 1rem;
  border-radius: 0;
  white-space: nowrap;
}

.submenu .he {
  font-family: var(--font-he);
  font-weight: 700;
}

.submenu .group {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.65rem 1rem 0.2rem;
}

/* Main */
.site-main {
  flex: 0 0 auto;
  width: min(var(--max), calc(100% - 2rem));
  margin: 1.5rem auto 2.5rem;
}

.hero {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem 2rem;
  text-align: center;
}

.hero-he {
  font-family: var(--font-he);
  font-weight: 700;
  color: var(--blue-deep);
  margin: 0 0 1.25rem;
  line-height: 1.35;
}

.hero-he .line1 {
  display: block;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
}

.hero-he .line2 {
  display: block;
  font-size: clamp(1.1rem, 2.6vw, 1.4rem);
  margin-top: 0.2rem;
  color: var(--blue);
}


.video-wrap {
  /* Shrink width to keep height ≤ ~80vh; never change the ratio. */
  --video-w: 16;
  --video-h: 9;
  width: min(100%, 820px, calc(80vh * var(--video-w) / var(--video-h)));
  max-width: 100%;
  margin-inline: auto;
}

.video-frame {
  --video-w: 16;
  --video-h: 9;
  position: relative;
  width: 100%;
  aspect-ratio: var(--video-w) / var(--video-h);
  background: #0b2238;
  box-shadow: 0 10px 30px rgba(22, 73, 126, 0.16);
  border-radius: 12px;
  overflow: hidden;
  min-height: 0;
  height: auto;
}

@supports not (aspect-ratio: 1 / 1) {
  .video-frame {
    aspect-ratio: auto;
    box-sizing: content-box;
    height: 0;
    padding-bottom: calc(var(--video-h) / var(--video-w) * 100%);
    overflow: hidden;
  }
}

/* Phone: poster + play control. No Drive iframe. */
.video-poster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  z-index: 1;
}

.video-poster picture,
.video-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-poster img {
  object-fit: contain;
  object-position: center;
  background: #0b2238;
  display: block;
}

.video-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 34, 56, 0.22);
  pointer-events: none;
}

.video-play {
  position: relative;
  z-index: 1;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-play svg {
  width: 2.4rem;
  height: 2.4rem;
  margin-left: 0.2rem;
  fill: var(--blue-deep, #16497e);
}

.video-poster:hover .video-play,
.video-poster:focus-visible .video-play {
  background: #f3f7fb;
}

.video-poster:focus-visible {
  outline: 3px solid var(--gold, #c4a15a);
  outline-offset: 2px;
}

/* Desktop: JS inserts an unscaled iframe that fills the 16:9 box. */
.video-wrap.is-desktop .video-poster {
  display: none;
}

.video-open {
  margin: 0.65rem 0 0;
  text-align: center;
  font-family: var(--font-en);
  font-size: 0.95rem;
  font-weight: 600;
}

.video-open a {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.video-open a:hover { color: var(--blue); }

.video-wrap.is-desktop .video-open {
  display: none;
}

.video-frame iframe,
.video-frame video,
.video-frame embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  border: 0;
  display: block;
}

.video-frame video {
  object-fit: contain;
  background: #0b2238;
}

.intro {
  margin-top: 1.5rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: center;
}

.emblem {
  margin: 0 auto;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--blue-soft);
  box-shadow: 0 0 0 3px var(--blue);
  background: #fff;
}

.emblem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mission {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--ink);
  margin: 0;
}

.mission p { margin: 0 0 1.1rem; }
.mission p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer {
  margin-top: 0;
  flex: 1 0 auto;
  background: #fff;
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 1.25rem 1rem 1.6rem;
}

.yechi {
  max-width: 720px;
  margin: 0 auto 0.7rem;
  font-family: var(--font-he);
  font-weight: 400;
  font-size: clamp(1.05rem, 2.2vw, 1.45rem);
  line-height: 1.5;
  color: var(--blue);
  text-align: center;
}

.site-footer .copy {
  font-family: var(--font-he);
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

/* Mobile */
@media (max-width: 800px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; }
  .nav-toggle[aria-expanded="false"]::after,
  .nav-toggle:not([aria-expanded="true"])::after {
    content: "\22EE";
    order: -1;
    font-size: 1.2em;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    /* decorative; the button already says Menu */
  }

  .site-nav {
    display: none;
    margin-top: 0.7rem;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.4rem 0;
    text-align: start;
  }

  body.nav-open .site-nav { display: block; }

  .site-nav > ul {
    display: block;
  }

  .has-sub {
    display: block;
    flex-wrap: wrap;
  }

  .has-sub > a,
  .has-sub .nav-label {
    display: inline-block;
  }

  .submenu,
  .submenu.wide {
    position: static;
    transform: none;
    min-width: 0;
    max-height: none;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0 0 0.4rem 0.8rem;
    display: none;
  }

  .has-sub:hover > .submenu,
  .has-sub:focus-within > .submenu {
    display: none;
  }
  .has-sub.open > .submenu,
  .has-sub.open:hover > .submenu,
  .has-sub.open:focus-within > .submenu {
    display: block;
  }

  .intro {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.5rem 1.15rem;
    gap: 1.25rem;
  }

  .hero { padding: 1.25rem 1rem 1.5rem; }

  .brand { padding-inline: 0.85rem; }
}

@media (max-width: 420px) {
  .emblem { width: 160px; height: 160px; }
  .mission { font-size: 1.02rem; }
}

.parents-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.lock-icon {
  flex-shrink: 0;
  position: relative;
  top: -1px;
}

.parent-links {
  list-style: none;
  margin: 0.5rem auto 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.parent-links a {
  display: inline-block;
  background: var(--blue-deep);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
}
.parent-links a:hover { background: var(--blue); color: #fff; }

/* Yechi footer: original image */
.yechi { max-width: 760px; }
.yechi img { display: block; width: 100%; height: auto; margin: 0 auto; }
.yechi { max-width: 1100px; width: 100%; }


/* Inner pages */
.page-body {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem 2.1rem;
}

.page-title,
.prevideo,
#prevideo {
  font-family: var(--font-he);
  font-weight: 700;
  color: var(--blue-deep);
  text-align: center;
  font-size: clamp(1.55rem, 3.4vw, 2.15rem);
  margin: 0 0 1.25rem;
  line-height: 1.35;
}

.page-title.en,
h1.page-title:not(:lang(he)) {
  font-family: var(--font-en);
}

.page-lead,
.page-body .prose,
#ind-text2,
#ind-text2 p {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  line-height: 1.7;
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 1rem;
}

.link-list,
.vid-text,
.gal,
.forms-text,
.forms,
.vid-page,
.vid-page p,
#vid-text,
#gal,
#forms-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  text-align: center;
}

.link-list a,
.vid-text a,
.gal a,
.forms-text a,
.vid-page a,
#vid-text a,
#gal a,
#forms-text a,
a.vid-text2,
a.gal-text,
a.purple,
a#vid-text2,
a#gal-text,
a#purple,
a#purple2,
a#purple3,
.forms a,
#policies a {
  font-family: var(--font-he);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--blue-deep);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  line-height: 1.45;
}

.link-list a:hover,
#vid-text a:hover,
#gal a:hover,
#forms-text a:hover,
.forms a:hover,
#policies a:hover {
  background: var(--blue-soft);
  color: var(--blue);
}

.line,
.line2,
#line,
#line2 { display: none; }

.note,
#vid-page,
#vid-page p {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

.video-block {
  margin: 1.6rem auto 1.8rem;
  max-width: 100%;
}

.video-caption,
.video-block > p,
.seconds5 > p:first-child,
#seconds5 > p:first-child,
section#seconds5 > p {
  text-align: center;
  font-weight: 600;
  color: var(--blue-deep);
  margin: 0 0 0.7rem;
  font-size: 1.12rem;
}

.video-frame stream,
.video-frame .container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.video-frame .container stream,
.video-frame .container iframe,
.video-frame stream {
  width: 100%;
  height: 100%;
}

.folder-frame {
  width: 100%;
  height: min(70vh, 560px);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  margin: 0.75rem auto 1.5rem;
}

.folder-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.album-year {
  text-align: center;
  margin: 1.5rem 0 0.25rem;
  color: var(--blue-deep);
  font-family: var(--font-he);
  font-weight: 700;
  font-size: 1.4rem;
}

ul#gallery,
ul.gallery,
.photo-grid {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

ul#gallery li,
ul.gallery li { margin: 0; }

ul#gallery img,
ul.gallery img,
.photo-grid img,
img.pic {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  box-shadow: 0 4px 14px rgba(22, 73, 126, 0.1);
}

ul#gallery p { display: none; }

.cal-images {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

.cal-images img,
#cal-text4 img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.cal-meta,
#cal-text2 {
  text-align: center;
  color: var(--muted);
  margin: 0 0 1rem;
}

.clock-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.75rem;
}

.audio-section,
.chidon-section {
  margin: 0 auto 2rem;
}

.main-title,
.chidon-main-title,
.chidon-second-title {
  font-family: var(--font-he);
  font-weight: 700;
  color: var(--blue-deep);
  text-align: center;
  margin: 1.25rem 0 0.75rem;
}

.main-title,
.chidon-main-title { font-size: 1.45rem; }
.chidon-second-title { font-size: 1.1rem; font-weight: 400; color: var(--muted); }

.audio-row,
.chidon-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
}

.audio-card,
.chidon-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 0.85rem 1rem 1rem;
}

.audio-title,
.chidon-title {
  font-family: var(--font-he);
  font-weight: 700;
  color: var(--blue-deep);
  margin: 0 0 0.45rem;
}

.page-body audio,
.audio-card audio,
.chidon-card audio,
#seconds5 audio {
  width: 100%;
  max-width: 36rem;
  display: block;
  margin: 0.35rem auto 0;
}

.audio-item,
p#seconds5,
p.seconds5 {
  text-align: center;
  margin: 0 0 1.25rem;
  color: var(--blue-deep);
  font-family: var(--font-he);
  font-weight: 700;
  font-size: 1.15rem;
}

.contact-list {
  max-width: 28rem;
  margin: 0 auto;
  text-align: center;
}

#contact-person,
.contact-person {
  font-weight: 700;
  color: var(--blue-deep);
  margin: 1.35rem 0 0.15rem;
  font-size: 1.12rem;
}

#contact-number,
#contact-number2,
#contact-email,
.contact-number,
.contact-email {
  margin: 0;
  color: var(--ink);
}

#contact-email a,
.contact-email a { font-weight: 600; }

.donate-block,
section.don {
  text-align: center;
  font-size: 1.2rem;
}

.donate-block p,
section.don p {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin: 0;
}
section.don .iconify {
  font-size: 2.1rem;
  vertical-align: middle;
}
section.don .donate-method {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: center;
}

.donate-button {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: var(--blue-deep);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
}

.donate-button:hover { background: var(--blue); }

.donate-method {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--blue-deep);
  text-decoration: none;
}

.donate-method:hover { color: var(--blue); }

.btn,
.link-button,
#button,
#button2,
button#button,
button#button2 {
  display: inline-block;
  background: var(--blue-deep);
  color: #fff;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  margin: 0.25rem;
}

.btn:hover,
.link-button:hover,
#button:hover,
#button2:hover,
#button a,
#button2 a,
.ntd {
  color: #fff;
  text-decoration: none;
}

#button a:hover,
#button2 a:hover,
.ntd:hover { color: #fff; }

.button-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.map-responsive,
.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  margin: 0.4rem 0 1.4rem;
  border-radius: 12px;
  overflow: hidden;
  background: var(--blue-soft);
  box-shadow: var(--shadow);
}

.map-responsive iframe,
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

#bus2,
.bus-slot {
  text-align: center;
  font-weight: 600;
  color: var(--blue-deep);
  margin: 1.1rem 0 0.35rem;
}

.form-embed {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  min-height: 1200px;
  margin: 1rem 0;
}

.form-embed iframe {
  width: 100%;
  height: 1400px;
  border: 0;
  display: block;
}

.year-nav {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.camp-hero img,
#cal img.pic {
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  width: min(100%, 720px);
  height: auto;
}

@media (max-width: 800px) {
  .page-body { padding: 1.25rem 1rem 1.6rem; }
  .audio-row,
  .chidon-row { grid-template-columns: 1fr; }
}
/* albums: side gutters so the page can be scrolled outside the Drive frames */
.folder-frame { width: calc(100% - 3rem); margin-inline: auto; }
@media (max-width: 640px) {
  .folder-frame { width: calc(100% - 4.5rem); height: 55vh; }
}
/* contact: even spacing per person */
.contact-number, .contact-number2, .contact-email { margin: 0.15rem 0 0; }
.contact-person { margin: 1.4rem 0 0; }
.page-title + div .contact-person:first-of-type { margin-top: 0.5rem; }
.contact-person { margin-top: 2.2rem; }
.page-title + div .contact-person:first-of-type { margin-top: 0.5rem; }

/* stories: numbered Drive links, RTL, comfortable tap targets */
.story-list-wrap {
  max-width: 38rem;
  margin: 0.35rem auto 1.75rem;
  padding-inline: 0.15rem;
  width: 100%;
  box-sizing: border-box;
}
.story-list-wrap .link-list,
.story-list-wrap ul.story-links {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.2rem;
  text-align: start;
}
.story-list-wrap .link-list li {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.story-list-wrap .link-list a {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.55rem;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
  min-height: 3rem;
  padding: 0.75rem 0.7rem;
  text-align: start;
}
.story-list-wrap .story-num {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
  direction: ltr;
}
.story-list-wrap .story-title {
  flex: 1 1 auto;
  text-align: start;
}
.story-list-wrap h2.story-section {
  text-align: center;
  color: var(--blue-deep);
  font-family: var(--font-he);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 2rem 0 0.65rem;
}

/* calendar clock: block clicks so it never opens timeanddate.com (from old main.css) */
#npe { pointer-events: none; }
/* calendar top */
.cal-top { text-align: center; margin: 0 auto 1.6rem; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.cal-hdate { font-size: 1.5rem; color: #16497e; }
.cal-clock iframe { display: block; max-width: 100%; border-radius: 8px; }
.cal-updated { margin: 0; color: #666; font-size: 0.95rem; }
/* apply page */
.apply-card { max-width: 620px; margin: 0.5rem auto 0; }
.apply-heading { text-align: center; color: var(--blue, #16497e); margin: 0 0 1.2rem; font-size: 1.45rem; }
.apply-steps { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 0.9rem; }
.apply-steps li { display: flex; gap: 0.9rem; align-items: flex-start; background: #f5f8fc; border: 1px solid #dfe8f3; border-radius: 12px; padding: 0.9rem 1rem; line-height: 1.45; }
.step-num { flex: 0 0 2.1rem; height: 2.1rem; border-radius: 50%; background: #16497e; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.apply-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-bottom: 1.4rem; }
.apply-actions .link-button { text-align: center; }
.link-button-alt { background: #fff !important; color: #16497e !important; border: 2px solid #16497e; }
.apply-contact { text-align: center; color: #555; font-size: 0.98rem; }
@media (max-width: 480px) { .apply-actions .link-button { width: 100%; } }
/* bus top */
.bus-top { display: flex; flex-direction: column; align-items: center; gap: 0.7rem; text-align: center; margin: 0 auto 1.6rem; max-width: 420px; }
.bus-top .link-button { width: 100%; text-align: center; }
.bus-note { margin: 0; color: #555; font-size: 0.95rem; }
.bus2 { font-weight: 700; color: #16497e; font-size: 1.1rem; margin: 1.4rem 0 0.6rem; }

/* gallery video years */
.year-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(150px,1fr)); gap:.6rem; max-width:760px; margin:.8rem auto 1.2rem; padding:0 1rem; }
.year-btn { display:block; text-align:center; padding:.55rem .4rem; border:1px solid #1f4f8f; border-radius:8px; color:#1f4f8f; background:#fff; text-decoration:none; font-size:1.05rem; }
.year-btn:hover, .year-btn:focus { background:#1f4f8f; color:#fff; }

/* Theme B: light / brightness (lichtig) */
body { background: linear-gradient(#fffaf0, #ffffff 60%); }
.site-header { background: radial-gradient(ellipse 55% 80% at 50% 40%, rgba(255,214,110,.35), transparent 70%), var(--paper); }
.site-nav { border-bottom: 3px solid #e8b84a; box-shadow: 0 6px 14px -8px rgba(232,184,74,.8); }
h1, h2, .page-title { text-shadow: 0 0 12px rgba(255,200,80,.45); }
h1::after, .page-title::after { content: ""; display: block; width: 90px; height: 3px; margin: .4rem auto 0; background: linear-gradient(90deg, transparent, #e8b84a, transparent); }
.link-button, .btn, .nav-toggle, .year-btn { box-shadow: 0 0 12px rgba(232,184,74,.6); }
.lichtig { display: none; }
@media (max-width: 800px) {
  .site-nav { border-bottom: 0; box-shadow: none; }
  .nav-wrap { border-bottom: 3px solid #e8b84a; box-shadow: 0 6px 14px -8px rgba(232,184,74,.8); }
  .lichtig { display: block; position: absolute; right: 1.1rem; top: .2rem; font-family: var(--font-he); font-size: 1.7rem; font-weight: 700; line-height: 1.3;
    color: #f2c14e; text-shadow: 0 0 6px rgba(255,215,100,.95), 0 0 16px rgba(255,190,60,.8), 0 0 28px rgba(255,170,40,.55); pointer-events: none; }
}

/* year grid fit fix */
.gal .year-grid { align-self: stretch; width: 100%; max-width: 760px; margin-left: auto; margin-right: auto; box-sizing: border-box; padding: 0 .25rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.gal .year-btn { box-sizing: border-box; min-width: 0; font-size: 1.05rem; padding: .5rem .3rem; white-space: nowrap; }
@media (max-width: 600px) { .gal .year-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gal .year-grid { direction: rtl; }

/* videos toggle */
.gal details.vid-years { align-self: stretch; width: 100%; text-align: center; }
.gal details.vid-years summary { list-style: none; cursor: pointer; display: inline-block; font-family: var(--font-he); font-weight: 700; font-size: 1.2rem; color: var(--blue-deep); padding: .4rem .85rem; border-radius: 8px; line-height: 1.45; }
.gal details.vid-years summary::-webkit-details-marker { display: none; }
.gal details.vid-years summary::after { content: " ▾"; font-size: .9rem; }
.gal details.vid-years[open] summary::after { content: " ▴"; }

/* video titles: more space above each title */
.seconds5 > p:first-child, #seconds5 > p:first-child { margin-top: 2.6rem; margin-bottom: .6rem; }
.seconds5:first-of-type > p:first-child, #seconds5:first-of-type > p:first-child { margin-top: .6rem; }
.gal .lock-icon { width: 14px; height: 14px; vertical-align: -1px; margin-inline-end: .2rem; }

/* year buttons on video pages */
.yr-nav { width: 100%; margin: 2rem auto 0; }
.yr-nav .year-grid { direction: rtl; width: 100%; max-width: 760px; box-sizing: border-box; padding: 0 .25rem; margin: 0 auto; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.yr-nav .year-btn { box-sizing: border-box; min-width: 0; white-space: nowrap; font-family: var(--font-he); font-weight: 700; font-size: 1.05rem; padding: .5rem .3rem; box-shadow: 0 0 12px rgba(232,184,74,.6); }
.yr-nav .year-btn.current { background: #1f4f8f; color: #fff; }
.yr-nav .year-extra { grid-column: 1 / -1; font-family: var(--font-en); }
@media (max-width: 600px) { .yr-nav .year-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.chef-nav .year-grid { direction: ltr; }
.chef-nav .year-btn { font-family: var(--font-en); }
.gal .year-extra { grid-column: 1 / -1; font-family: var(--font-en); }

/* MBP page */
.form-embed { margin-top: 1rem; }
.mbp-links { margin-top: 2rem; }
.mbp-head { text-align: center; font-family: var(--font-he); font-size: 1.35rem; color: var(--blue-deep); margin: 1.8rem 0 .8rem; }
.mbp-head::after { content: ""; display: block; width: 70px; height: 3px; margin: .35rem auto 0; background: linear-gradient(90deg, transparent, #e8b84a, transparent); }
.mbp-links .year-grid { direction: rtl; width: 100%; max-width: 760px; box-sizing: border-box; margin: 0 auto; padding: 0 .25rem; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.mbp-links .year-btn { box-sizing: border-box; min-width: 0; font-family: var(--font-he); font-weight: 700; font-size: 1.1rem; padding: .55rem .3rem; box-shadow: 0 0 12px rgba(232,184,74,.6); }
@media (max-width: 800px) { .page-body > .page-title { margin-top: 1.2rem; } .form-embed { margin-top: 1.5rem; } }
@media (max-width: 600px) { .mbp-links .year-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* gold glow around round logo */
.emblem { box-shadow: 0 0 0 3px var(--blue), 0 0 16px 5px rgba(212,168,60,.85), 0 0 38px 12px rgba(245,205,95,.45); }

/* lichtig glow + sparkle */
@keyframes lichtGlow { 0%,100% { color:#eaa514; text-shadow: 0 0 6px rgba(255,225,120,1), 0 0 16px rgba(255,200,70,.95), 0 0 30px rgba(255,180,40,.75), 0 0 46px rgba(255,165,30,.5); } 50% { color:#f5b81f; text-shadow: 0 0 10px #fff3c4, 0 0 24px rgba(255,215,90,1), 0 0 44px rgba(255,190,50,.95), 0 0 70px rgba(255,170,30,.75); } }
@keyframes lichtTwinkle { 0%,100% { opacity: 0; transform: scale(.3) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }
.lichtig, .lichtig-nav { animation: lichtGlow 2.6s ease-in-out infinite; }
.lichtig-nav { display: none; }
@media (min-width: 801px) {
  .site-nav .nav-wrap, .site-nav { position: relative; }
  .lichtig-nav { display: inline-block; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-family: var(--font-he); font-size: 1.45rem; font-weight: 700; line-height: 1; color: #f2c14e; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) { .lichtig, .lichtig-nav, .lichtig::before, .lichtig::after, .lichtig-nav::before, .lichtig-nav::after { animation: none; } }

/* English Lichtig, left end of desktop menu bar */
.lichtig-en { display: none; }
@media (min-width: 801px) {
  .lichtig-en { display: inline-block; position: absolute; left: 1.2rem; top: 50%; transform: translateY(-50%); font-family: "Great Vibes", cursive; font-size: 1.9rem; line-height: 1; color: #eaa514; pointer-events: none; animation: lichtGlow 2.6s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) { .lichtig-en { animation: none; } }
@media (min-width: 801px) { .lichtig-en { font-size: 2.3rem; -webkit-text-stroke: .6px #eaa514; } }
@keyframes lichtGlowEn { 0%,100% { color:#eaa514; text-shadow: 0 0 4px #fff3c4, 0 0 10px rgba(255,225,120,1), 0 0 20px rgba(255,200,70,1), 0 0 34px rgba(255,180,40,.9), 0 0 52px rgba(255,165,30,.7); } 50% { color:#f5b81f; text-shadow: 0 0 6px #fff8dc, 0 0 16px #fff3c4, 0 0 30px rgba(255,215,90,1), 0 0 50px rgba(255,190,50,1), 0 0 80px rgba(255,170,30,.85); } }
@media (min-width: 801px) { .lichtig-en { font-size: 1.95rem; -webkit-text-stroke: .5px #eaa514; animation: lichtGlowEn 2.6s ease-in-out infinite; } }
@media (min-width: 801px) { .lichtig-en { font-size: 1.7rem; -webkit-text-stroke: .45px #eaa514; animation: lichtGlowEn 2.6s ease-in-out infinite; } }
@media (max-width: 800px) { .lichtig { display: flex; align-items: center; gap: .4rem; direction: ltr; } .lichtig-m-en { font-family: "Great Vibes", cursive; font-size: 1.5rem; font-weight: 400; -webkit-text-stroke: .4px #eaa514; line-height: 1; } .lichtig-dash { font-family: var(--font-body, sans-serif); font-size: 1.1rem; font-weight: 400; } }
.yr-center .year-grid { display: flex; flex-wrap: wrap; justify-content: center; } .yr-center .year-btn { flex: 0 1 170px; text-align: center; }

/* clickable video index (videos.html) */
.vid-index { width: 100%; max-width: 980px; margin: .5rem auto 1rem; columns: 2 340px; column-gap: 1.25rem; }
.vi-year { break-inside: avoid; margin: 0 0 .9rem; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 4px 14px -8px rgba(232,184,74,.8); overflow: hidden; }
.vi-year summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .55rem .9rem; border-bottom: 1px solid transparent; }
.vi-year summary::-webkit-details-marker { display: none; }
.vi-year[open] summary { border-bottom-color: #e8b84a; background: linear-gradient(#fffaf0, #fff6dc); }
.vi-y { font-weight: 700; font-size: 1.2rem; color: var(--blue-deep); }
.vi-y.he { font-family: var(--font-he); }
.vi-n { font-size: .8rem; color: var(--muted); background: #fff6dc; border: 1px solid #e8b84a; border-radius: 999px; padding: .05rem .5rem; margin-inline-start: auto; }
.vi-year summary::after { content: "▾"; color: #c4a15a; font-size: .9rem; }
.vi-year[open] summary::after { content: "▴"; }
.vi-year ul { list-style: none; margin: 0; padding: .4rem .9rem .7rem; }
.vi-year li { padding: .32rem 0; border-bottom: 1px dashed #efe6d2; line-height: 1.35; }
.vi-year li:last-child { border-bottom: 0; }
.vi-year li[dir="rtl"] { font-family: var(--font-he); font-size: 1.12rem; }
.vi-year a { text-decoration: none; color: var(--blue-deep); }
.vi-year a:hover, .vi-year a:focus-visible { color: var(--blue); text-decoration: underline; text-decoration-color: #e8b84a; }
.vi-subs a { display: inline-block; padding: 0 .3rem; border: 1px solid #e8b84a; border-radius: 6px; margin: 0 .1rem; font-family: var(--font-en); font-size: .9rem; }
.vi-none { color: var(--muted); }
@media (max-width: 700px) { .vid-index { columns: 1; } }
/* video year pages: land below the top edge and flash gold on arrival */
section.seconds5[id] { scroll-margin-top: 1rem; border-radius: 12px; }
@keyframes vidTarget { 0% { box-shadow: 0 0 0 3px #e8b84a, 0 0 26px rgba(255,200,80,.9); background: rgba(255,214,110,.22); } 100% { box-shadow: 0 0 0 0 rgba(232,184,74,0); background: transparent; } }
section.seconds5:target { animation: vidTarget 2.8s ease-out 1; }
.vi-y { font-family: var(--font-he); } .vi-y .he { font-family: var(--font-he); }

/* video index v2: titles first, small year dividers */
.vid-index { columns: 2 360px; column-gap: 2rem; }
.vi-group { break-inside: avoid; margin: 0 0 1.1rem; }
.vi-yr { display: flex; align-items: center; gap: .6rem; margin: 0 0 .15rem; font-family: var(--font-he); font-size: .95rem; font-weight: 700; color: #b8892a; letter-spacing: .02em; }
.vi-yr::before, .vi-yr::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #e8b84a, transparent); }
.vi-group ul { list-style: none; margin: 0; padding: 0; }
.vi-group li { border-bottom: 1px solid #efe6d2; font-size: 1.12rem; font-weight: 600; line-height: 1.3; }
.vi-group li:last-child { border-bottom: 0; }
.vi-group li[dir="rtl"] { font-family: var(--font-he); font-size: 1.25rem; font-weight: 700; }
.vi-group li > a { display: block; padding: .6rem .35rem; color: var(--blue-deep); text-decoration: none; border-radius: 8px; }
.vi-group li > a:hover, .vi-group li > a:focus-visible { background: #fff6dc; color: var(--blue-deep); box-shadow: 0 0 10px rgba(232,184,74,.45); }
.vi-group li > .vi-t { display: inline-block; padding: .6rem .35rem; color: var(--ink); }
.vi-group .vi-subs a { display: inline-block; min-width: 2.2rem; text-align: center; padding: .25rem .5rem; margin: .15rem .1rem; border: 1px solid #e8b84a; border-radius: 8px; background: #fffaf0; color: var(--blue-deep); text-decoration: none; font-family: var(--font-en); font-size: .95rem; font-weight: 700; box-shadow: 0 0 8px rgba(232,184,74,.35); }
.vi-group .vi-subs a:hover { background: #fff0b8; }
@media (max-width: 700px) { .vid-index { columns: 1; } .vi-group li > a { padding: .7rem .3rem; } }

/* videos.html: separation between year buttons and the titles index */
.vi-sep { display: flex; align-items: center; gap: .9rem; max-width: 760px; margin: 3rem auto 1rem; color: #e8b84a; }
.vi-sep::before, .vi-sep::after { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, transparent, #e8b84a 40%, #e8b84a 60%, transparent); }
.vi-sep::before { background: linear-gradient(90deg, transparent, #e8b84a); } .vi-sep::after { background: linear-gradient(90deg, #e8b84a, transparent); }
.vi-sep span { font-size: 1.3rem; line-height: 1; text-shadow: 0 0 10px rgba(255,200,80,.9); }
.vi-head { text-align: center; margin: 0 0 1.4rem; font-family: var(--font-en); font-size: 1.35rem; font-weight: 700; color: var(--blue-deep); letter-spacing: .02em; }
.vi-head::after { width: 70px; }
/* Hebrew titles: real RTL blocks so trailing punctuation sits at the visual end */
.vi-group li[dir="rtl"] { text-align: right; unicode-bidi: isolate; }
.vi-group li[dir="rtl"] > a, .vi-group li[dir="rtl"] > .vi-t { unicode-bidi: plaintext; }
.seconds5 > p[dir="rtl"] { unicode-bidi: isolate; font-family: var(--font-he); font-size: 1.25rem; }
/* index titles centered (English and Hebrew); multi-video buttons centered with the title */
.vi-group li, .vi-group li[dir="rtl"] { text-align: center; }
.vi-group li > .vi-t { padding-inline: .2rem; }
.vi-group li .vi-subs { display: inline-block; }
/* 19 years + Extras = 20 buttons: let Extras take a normal cell so rows stay even (2 per row on phones, 5 on desktop) */
.yr-nav .year-grid .year-extra, .gal .year-grid .year-extra { grid-column: auto; }

/* dropdown items: no blue underline in any state, only the soft blue background */
.submenu a,
.submenu a:hover,
.submenu a:focus,
.submenu a:focus-visible,
.submenu a:active,
.submenu a[aria-current="page"] { box-shadow: none; text-decoration: none; border-bottom: 0; }
.submenu a:focus-visible { outline: none; color: var(--blue-deep); background: var(--blue-soft); }

/* gallery.html list = same items/labels/font/look as the Gallery dropdown (v81) */
.gal.gal-list {
  display: block; text-align: start;
  width: fit-content; min-width: 16rem; max-width: 100%; box-sizing: border-box;
  margin: 0.5rem auto 1.5rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 0.45rem 0;
}
.gal.gal-list .line2 { display: none; }
.gal.gal-list a.gal-item {
  display: block;
  font-family: var(--font-en); font-weight: 500; font-size: 1.05rem;
  color: var(--blue-deep); text-decoration: none;
  padding: 0.6rem 1.2rem; border-radius: 0; line-height: 1.45; white-space: nowrap;
}
.gal.gal-list a.gal-item .he { font-family: var(--font-he); font-weight: 700; }
.gal.gal-list a.gal-item .lock-icon { width: 13px; height: 13px; vertical-align: -1px; margin-inline-end: .15rem; }
.gal.gal-list a.gal-item:hover, .gal.gal-list a.gal-item:focus-visible { background: var(--blue-soft); color: var(--blue); outline: none; }
/* phone menu: indent Gallery/Archive sub-items under their parent */
@media (max-width: 800px) {
  .site-nav .has-sub > .submenu, .site-nav .has-sub > .submenu.wide { margin: 0 0 0.4rem 1.6rem; padding: 0; border-left: 2px solid var(--line); }
  .site-nav .has-sub > .submenu li a { padding-left: 0.9rem; }
  .site-nav .has-sub > .submenu .group { padding-left: 0.9rem; }
}

/* front-page video: direct HTML5 stream (v82) */
button.video-poster { border: 0; padding: 0; margin: 0; background: none; cursor: pointer; width: 100%; font: inherit; }
.video-wrap.is-stream .video-poster { display: flex; }
.video-wrap.is-stream .video-poster[hidden] { display: none; }
.video-wrap.is-stream .video-open { display: none; }
/* front-page video download link (v83) */
.video-dl { text-align: center; margin: .6rem 0 0; }
.video-dl a { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-en); font-weight: 600; font-size: .92rem; color: var(--blue-deep); text-decoration: none; border: 1px solid var(--line); background: var(--paper, #fff); border-radius: 999px; padding: .4rem .95rem; }
.video-dl a:hover, .video-dl a:focus-visible { background: var(--blue-soft); color: var(--blue); }
.video-dl svg { width: 1rem; height: 1rem; }
/* jump-to-unit box (chidon books, tanya) + back to top (v84) */
.jump-box { max-width: 760px; margin: .6rem auto 1.4rem; padding: .7rem .8rem .8rem; background: var(--paper, #fff); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 0 12px rgba(232,184,74,.35); box-sizing: border-box; }
.jump-head { margin: 0 0 .5rem; text-align: center; font-family: var(--font-en); font-size: .85rem; font-weight: 600; color: var(--muted); }
.jump-head .he { font-family: var(--font-he); font-weight: 700; font-size: .95rem; }
.jump-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: 0 0 .45rem; }
.jump-row:last-child { margin-bottom: 0; }
.jump-label { flex: 0 0 100%; text-align: center; font-family: var(--font-he); font-weight: 700; font-size: .95rem; color: var(--blue-deep); text-decoration: none; margin: .15rem 0 .05rem; }
.jump-chip { display: inline-block; min-width: 2.1rem; text-align: center; box-sizing: border-box; padding: .22rem .5rem; border: 1px solid #1f4f8f; border-radius: 999px; background: #fff; color: #1f4f8f; text-decoration: none; font-family: var(--font-he); font-weight: 700; font-size: .95rem; line-height: 1.3; }
.jump-chip.all { background: #fff6dc; border-color: #e8b84a; }
.jump-chip:hover, .jump-chip:focus-visible { background: #1f4f8f; color: #fff; outline: none; }
.chidon-card[id], .chidon-second-title[id], .main-title[id] { scroll-margin-top: 1rem; }
.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 30; padding: .45rem .85rem; border-radius: 999px; background: #1f4f8f; color: #fff; text-decoration: none; font-family: var(--font-en); font-weight: 600; font-size: .9rem; box-shadow: 0 4px 14px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .2s; }
.to-top .he { font-family: var(--font-he); }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover, .to-top:focus-visible { background: var(--blue, #2a6fb8); color: #fff; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* phone numbers as tel: links, styled like the email links */
.contact-number a.tel-link, a.tel-link { font-weight: 600; white-space: nowrap; }
/* button shown but not clickable (camp Scholarships, for now) */
a.link-button.is-disabled, a.link-button.is-disabled:hover, a.link-button.is-disabled:focus { cursor: default; pointer-events: none; transform: none; filter: none; }
/* email: Gmail or other app (v86) */
.email-choice { text-align: center; margin: -0.4rem 0 1.4rem; }
.email-choice-l { margin: 0 0 .5rem; font-weight: 600; color: var(--blue-deep, #16497e); }
.email-choice-btns { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.email-choice-btns .link-button { text-align: center; }
@media (max-width: 480px) { .email-choice-btns .link-button { flex: 1 1 40%; padding-left: .6rem; padding-right: .6rem; } }
a.gmail-link { display: inline-block; margin-inline-start: .35rem; padding: .05rem .5rem; border: 1px solid var(--line, #dfe8f3); border-radius: 999px; font-size: .8rem; font-weight: 600; line-height: 1.5; text-decoration: none; color: var(--blue-deep, #16497e); vertical-align: 1px; }
a.gmail-link:hover, a.gmail-link:focus-visible { background: var(--blue-soft); color: var(--blue); }

/* Front page: 'Open in Google Drive' under the video, always shown (gold, underlined, small - like the video viewer) */
.video-wrap .video-open, .video-wrap.is-desktop .video-open { display: block; margin: .5rem 0 0; text-align: center; font-size: .85rem; font-weight: 600; }
.video-wrap .video-open a { color: #9a7a2e; text-decoration: underline; text-underline-offset: 2px; }
.video-wrap .video-open a:hover { color: #7d6123; }

/* Chidon Audio: books as cards on the main page; book pages: unit chips + recordings flow right to left (v88) */
.book-grid { direction: rtl; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; max-width: 860px; margin: 1.2rem auto .5rem; }
.book-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; min-height: 9.5rem; padding: 1rem .75rem; box-sizing: border-box; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 0 12px rgba(232,184,74,.30); text-decoration: none; text-align: center; transition: box-shadow .15s, transform .15s; }
.book-card:hover, .book-card:focus-visible { box-shadow: 0 0 16px rgba(232,184,74,.65); transform: translateY(-2px); outline: none; }
.book-card-title { font-family: var(--font-he); font-weight: 700; font-size: 1.6rem; color: var(--blue-deep); line-height: 1.2; }
.book-card-sub { font-family: var(--font-he); font-size: 1rem; color: var(--muted); }
.book-card-n { font-family: var(--font-en); font-size: .78rem; font-weight: 600; color: #9a7a2e; }
@media (max-width: 600px) { .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } .book-card { min-height: 8rem; } .book-card-title { font-size: 1.4rem; } }
.jump-row[dir="rtl"] { direction: rtl; justify-content: flex-start; }
.jump-row[dir="rtl"] .jump-label { text-align: center; }
.chidon-row { direction: rtl; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chidon-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; aspect-ratio: 1 / 1; box-sizing: border-box; border: 1px solid var(--line); }
.chidon-card .chidon-title { font-size: 1.25rem; margin: 0 0 .9rem; }
.chidon-card audio { direction: ltr; }
@media (max-width: 800px) { .chidon-row { grid-template-columns: 1fr; } .chidon-card { aspect-ratio: auto; } .chidon-card .chidon-title { font-size: 1.1rem; margin: 0 0 .45rem; } }

/* Chidon book pages v89: jump box split into one square box per section group; recordings 2 per row (not square) */
.jump-box.jump-groups { max-width: 980px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; direction: rtl; background: none; border: 0; box-shadow: none; padding: 0; }
.jump-groups .jump-head { grid-column: 1 / -1; margin: 0; }
.jump-groups .jump-row { aspect-ratio: 1 / 1; margin: 0; padding: .8rem .7rem; box-sizing: border-box; align-content: center; justify-content: center; background: var(--paper, #fff); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 0 12px rgba(232,184,74,.35); }
.jump-groups .jump-label { font-size: 1.05rem; margin: 0 0 .35rem; }
@media (max-width: 800px) { .jump-box.jump-groups { grid-template-columns: 1fr; gap: .6rem; } .jump-groups .jump-row { aspect-ratio: auto; } }
.chidon-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chidon-card { aspect-ratio: auto; }
.chidon-card .chidon-title { font-size: 1.15rem; margin: 0 0 .5rem; }
@media (max-width: 800px) { .chidon-row { grid-template-columns: 1fr; } }

/* v90: group boxes rectangular, width in proportion to their chip count */
.jump-box.jump-groups { display: flex; flex-wrap: wrap; align-items: stretch; }
.jump-groups .jump-head { flex: 0 0 100%; }
.jump-groups .jump-row { aspect-ratio: auto; flex: var(--n, 10) 1 0; min-width: 0; align-content: flex-start; }
@media (max-width: 800px) { .jump-groups .jump-row { flex: 0 0 100%; } }

/* bilingual labels: English left, Hebrew right */
.jump-head { direction: ltr; unicode-bidi: isolate; }
.jump-groups .jump-label { font-size: 1.3rem; }

/* contact v91: one gold-edged card per contact (like the Chidon book cards) */
.contact-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; max-width: 900px; margin: .8rem auto .5rem; }
.contact-card { flex: 0 1 calc((100% - 2rem) / 3); min-width: 0; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 10rem; padding: 1.1rem .9rem; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 0 12px rgba(232,184,74,.30); }
.contact-grid .contact-card .contact-person, .page-title + div .contact-grid .contact-person:first-of-type { margin: 0 0 .45rem; }
.contact-card .contact-email { overflow-wrap: anywhere; }
@media (max-width: 700px) { .contact-card { flex-basis: 100%; min-height: 0; } }
.contact-card .contact-email { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.contact-card { justify-content: flex-start; }

/* tanya v92: perek chips centred; recordings 2 per row (right to left), 1 per row on phones */
.jump-box:not(.jump-groups) .jump-row[dir="rtl"] { justify-content: center; }
.tanya-row { direction: rtl; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tanya-row > .audio-card:only-child { grid-column: 1 / -1; }
.tanya-row .audio-card { text-align: center; border: 1px solid var(--line); }
.tanya-row audio { direction: ltr; }
@media (max-width: 800px) { .tanya-row { grid-template-columns: 1fr; } }

/* tanya v105: whole-perek chip on title line; אלע 12 full-width on row 1; remaining perokim 2-col on desktop */
.jump-box.tanya-jumps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); direction: rtl; justify-content: center; align-items: stretch; gap: .7rem; max-width: 980px; margin: .6rem auto 1.4rem; background: none; border: 0; box-shadow: none; padding: 0; }
.tanya-jumps .jump-head { grid-column: 1 / -1; margin: 0 0 .15rem; }
.tanya-jumps .jump-row-solo { grid-column: 1 / -1; display: flex; justify-content: center; background: none; border: 0; box-shadow: none; padding: 0; margin: 0; width: 100%; max-width: 100%; }
.tanya-jumps .jump-row { width: auto; max-width: none; margin: 0; padding: .7rem .75rem .75rem; box-sizing: border-box; align-content: flex-start; justify-content: center; background: var(--paper, #fff); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 0 12px rgba(232,184,74,.35); }
.tanya-jumps .jump-row-solo .jump-row { flex: 1 1 auto; width: 100%; max-width: 100%; }
.tanya-jumps .jump-row-solo .jump-title { flex: 0 0 auto; width: max-content; max-width: 100%; margin-bottom: 0; }
.tanya-jumps .jump-title { flex: 0 0 100%; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: .45rem; margin: 0 0 .4rem; min-width: 0; }
.tanya-jumps .jump-label { flex: 0 0 auto; font-size: 1.15rem; margin: 0; white-space: nowrap; }
.tanya-jumps .jump-title .jump-chip.all { flex: 0 1 auto; }
.tanya-jumps .jump-chip { width: auto; min-width: 0; white-space: nowrap; padding: .2rem .65rem; }
.audio-card[id] { scroll-margin-top: 1rem; }
@media (max-width: 800px) {
  .jump-box.tanya-jumps { grid-template-columns: 1fr; }
  .tanya-jumps .jump-row,
  .tanya-jumps .jump-row-solo .jump-row { width: 100%; max-width: 100%; }
  .tanya-jumps .jump-chip { white-space: nowrap; }
  .tanya-jumps .jump-title { gap: .35rem; }
}



/* parents v95: Live Bus Tracker gold-edged card */
.bus-tracker-card { box-sizing: border-box; max-width: 34rem; margin: 1.5rem auto 0; padding: 1.15rem 1.15rem 1.2rem; background: var(--cream); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 0 12px rgba(232,184,74,.30); text-align: center; }
.bus-tracker-title { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; margin: 0 0 .9rem; font-size: 1.15rem; font-weight: 700; color: var(--blue-deep); line-height: 1.3; direction: ltr; }
.bus-tracker-title > span:first-child { font-family: var(--font-en); text-align: left; }
.bus-tracker-title .he { font-family: var(--font-he); text-align: right; }
.bus-tracker-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; }
.bus-tracker-btns .link-button { margin: 0; text-align: center; }
@media (max-width: 600px) {
  .bus-tracker-btns { flex-direction: column; align-items: stretch; }
  .bus-tracker-btns .link-button { width: 100%; }
}

/* bus v96: phone-friendly maps + full-screen viewer button */
@media (max-width: 800px) {
  .map-responsive,
  .map-frame { aspect-ratio: auto; height: 70vh; min-height: 18rem; }
}
.page-body .map-responsive { margin-bottom: .2rem; }
.bus-map-open { text-align: center; margin: .45rem 0 0; }
.bus-map-open .link-button { margin: 0; }
@media (max-width: 600px) {
  .bus-map-open .link-button { display: block; width: 100%; box-sizing: border-box; }
}

/* bus v97: gap after each map's full-screen button before the next run title */
.bus-map-open { margin: .45rem 0 56px; }
.bus-map-open + .line + .bus2 { margin-top: 0; }
@media (max-width: 800px) {
  .bus-map-open { margin-bottom: 40px; }
}

/* bus v98: run time + bus names centered as a title above each map (keep color) */
.page-body .bus2 { text-align: center; font-size: 1.25rem; line-height: 1.35; width: 100%; }

/* bus v99: plain-route pins on a POI-free basemap (no tappable transit/POI cards) */
.map-responsive .bus-live-map { position: absolute; inset: 0; width: 100%; height: 100%; background: #e8eef4; }
.map-responsive .bus-live-map .leaflet-container { width: 100%; height: 100%; }
.bus-map-err { margin: 1rem; color: #16497e; font-weight: 600; text-align: center; }

/* Parents HTML calendar 5787 (v=101) */
.cal-page {
  max-width: 920px; margin: 0 auto; padding: 0 0 2.2rem;
  --cal-off: #c45c5c;
  --cal-off-fill: #f4d4d4;
  --cal-early: #e8b84a;
  --cal-early-fill: #f7e4a8;
  --cal-event: #4d82c0;
  --cal-event-fill: #d5e4f5;
}
.cal-heading { text-align: center; margin: 0 0 1.1rem; }
.cal-lang { display: block; width: 100%; margin: 0.15rem 0 1.15rem; }
.cal-lang-switch { display: flex; width: 100%; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--cream, #fffaf0); box-shadow: 0 0 0 1px rgba(232,184,74,.4); }
.cal-lang-btn { border: 0; background: transparent; font-family: var(--font-en); font-weight: 700; font-size: 0.95rem; padding: 0.4rem 0.75rem 0.45rem; color: #16497e; cursor: pointer; line-height: 1.15; display: flex; flex: 1 1 0; flex-direction: column; align-items: center; justify-content: center; min-width: 0; width: 50%; }
.cal-lang-main { display: block; }
.cal-lang-main.he { font-family: var(--font-he); font-size: 1.2rem; }
.cal-lang-sub { display: block; font-family: var(--font-en); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.01em; margin-top: 0.12rem; opacity: 0.82; line-height: 1.2; text-align: center; overflow-wrap: break-word; }
.cal-lang-btn[aria-pressed="true"] { background: #16497e; color: #ffe8a8; }
.cal-lang-btn[aria-pressed="true"] .cal-lang-sub { opacity: 0.9; }
.cal-lang-btn:focus-visible { outline: 2px solid #16497e; outline-offset: -2px; }
.cal-month-nav { margin: 0 0 1.15rem; }
.cal-pick-label { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; margin: 0 0 0.4rem; font-weight: 700; color: #16497e; font-size: 1.05rem; }
.cal-pick-label .he { font-family: var(--font-he); font-size: 1.2rem; }
.cal-pick-row { display: flex; align-items: stretch; gap: 0.4rem; }
.cal-pick-arrow { flex: 0 0 2.4rem; border: 1px solid var(--line); border-radius: 12px; background: var(--cream, #fffaf0); color: #16497e; font-size: 1.45rem; line-height: 1; cursor: pointer; box-shadow: 0 0 0 1px rgba(232,184,74,.35); }
.cal-pick-arrow:hover { background: #fff; }
.cal-pick-arrow:disabled { opacity: 0.35; cursor: default; }
.cal-pick-arrow:focus-visible { outline: 2px solid #16497e; outline-offset: 1px; }
.cal-pick-wrap { position: relative; flex: 1 1 auto; min-width: 0; }
.cal-pick-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; text-align: start; border: 1px solid var(--line); border-radius: 12px; background: var(--cream, #fffaf0); color: #16497e; font-family: var(--font-en); font-weight: 700; font-size: 1.05rem; padding: 0.5rem 0.85rem; cursor: pointer; box-shadow: 0 0 0 1px rgba(232,184,74,.4); }
.cal-pick-toggle .he { font-family: var(--font-he); font-size: 1.2rem; }
.cal-pick-toggle[aria-expanded="true"] { border-color: #16497e; }
.cal-pick-toggle:focus-visible { outline: 2px solid #16497e; outline-offset: 1px; }
.cal-pick-list { position: absolute; z-index: 8; left: 0; right: 0; top: calc(100% + 0.25rem); margin: 0; padding: 0.25rem 0; list-style: none; max-height: min(18rem, 60vh); overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--cream, #fffaf0); box-shadow: 0 8px 24px rgba(22,73,126,.16), 0 0 0 1px rgba(232,184,74,.35); }
.cal-pick-list[hidden] { display: none; }
.cal-pick-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; padding: 0.45rem 0.85rem; cursor: pointer; color: #16497e; font-weight: 650; }
.cal-pick-list li .he { font-family: var(--font-he); font-size: 1.1rem; }
.cal-pick-list li[aria-selected="true"] { background: #16497e; color: #ffe8a8; }
.cal-pick-list li:hover, .cal-pick-list li:focus { background: #d5e4f5; outline: none; }
.cal-pick-list li[aria-selected="true"]:hover, .cal-pick-list li[aria-selected="true"]:focus { background: #16497e; color: #ffe8a8; }
.cal-today-btn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; align-self: stretch; white-space: nowrap; border: 1px solid #16497e; border-radius: 12px; background: #16497e; color: #ffe8a8; font-family: var(--font-en); font-weight: 700; font-size: 1.05rem; padding: 0.5rem 0.95rem; cursor: pointer; box-shadow: 0 0 0 1px rgba(232,184,74,.5), 0 0 10px rgba(232,184,74,.4); }
.cal-today-btn .he { font-family: var(--font-he); font-size: 1.2rem; font-weight: 700; color: inherit; }
.cal-today-btn:hover { background: #1c5a9a; }
.cal-today-btn:focus-visible { outline: 2px solid #16497e; outline-offset: 2px; }
.cal-day.is-today-flash { animation: cal-today-flash 1.5s ease; }
@keyframes cal-today-flash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,184,74,0); }
  18%, 55% { box-shadow: 0 0 0 4px #e8b84a, 0 0 16px rgba(232,184,74,.9); }
}
@media (prefers-reduced-motion: reduce) {
  .cal-day.is-today-flash { animation: none; box-shadow: 0 0 0 4px #e8b84a; }
}
.cal-heading .page-title { margin-bottom: 0.15rem; }
.cal-heading .cal-title-he { margin: 0.15rem 0 0.45rem; font-family: var(--font-he); font-size: 1.35rem; color: #16497e; font-weight: 700; }
.cal-updated { margin: 0; color: #666; font-size: 0.95rem; }
.cal-upcoming, .cal-month { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 0 12px rgba(232,184,74,.30); background: var(--cream, #fffaf0); padding: 1rem 1.15rem 1.2rem; margin: 0 0 1.3rem; }
.cal-upcoming h2, .cal-month-title h2 { margin: 0; font-size: 1.2rem; color: #16497e; }
.cal-sec-head, .cal-month-title { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.7rem; padding-bottom: 0.4rem; border-bottom: 2px solid #e8b84a; }
.cal-sec-head .he, .cal-month-title .he { margin: 0; font-family: var(--font-he); font-size: 1.15rem; font-weight: 700; color: #16497e; }
.cal-upcoming ol, .cal-month-list { list-style: none; margin: 0; padding: 0 0 0 0.4rem; display: flex; flex-direction: column; gap: 0.15rem; }
.cal-item { display: flex; flex-direction: column; gap: 0.3rem; padding: 0.7rem 0.2rem 0.7rem 14px; border-top: 1px solid var(--line); }
.cal-item:first-child { border-top: 0; }
.cal-item-when { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; flex-direction: row; width: 100%; }
.cal-item-date { font-weight: 600; font-size: 0.88rem; color: #5a6a7a; }
.cal-item-he { font-family: var(--font-he); font-size: 1.15rem; font-weight: 700; color: #16497e; line-height: 1.2; }
.cal-item-body { width: 100%; }
.cal-item-titles { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; font-weight: 700; }
.cal-item-titles .he { font-family: var(--font-he); font-weight: 700; }
.cal-item-sched { margin: 0.2rem 0 0; color: #444; font-size: 0.92rem; }
.cal-item--off, .cal-item--early, .cal-item--event { padding-left: 10px; box-shadow: none; }
.cal-item--off { border-left: 4px solid var(--cal-off); }
.cal-item--early { border-left: 4px solid var(--cal-early); }
.cal-item--event { border-left: 4px solid var(--cal-event); }
.cal-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem 1.1rem; list-style: none; margin: 0 0 1.2rem; padding: 0; font-size: 0.92rem; }
.cal-legend li { display: inline-flex; align-items: center; gap: 0.4rem; }
.cal-swatch { width: 1.2rem; height: 1rem; border-radius: 3px; display: inline-block; box-sizing: border-box; background: var(--cal-fill); border: 1px solid var(--cal-mark); box-shadow: inset 4px 0 0 var(--cal-mark); }
.cal-swatch.off { --cal-mark: var(--cal-off); --cal-fill: var(--cal-off-fill); }
.cal-swatch.early { --cal-mark: var(--cal-early); --cal-fill: var(--cal-early-fill); }
.cal-swatch.event { --cal-mark: var(--cal-event); --cal-fill: var(--cal-event-fill); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.cal-dow { text-align: center; font-size: 0.72rem; font-weight: 700; color: #666; padding: 0.25rem 0; }
.cal-dow-he { display: block; font-family: var(--font-he); font-size: 1.05rem; font-weight: 700; color: #16497e; line-height: 1.15; white-space: nowrap; }
.cal-dow-en { display: block; font-size: 0.62rem; font-weight: 600; color: #666; }
.cal-day { min-height: 3.15rem; border-radius: 6px; background: #f7f7f5; padding: 0.18rem 0.22rem 0.28rem; font-size: 0.78rem; }
.cal-day.is-empty { background: transparent; }
.cal-day.is-today { outline: 2px solid #16497e; outline-offset: 0; }
.cal-day.is-link { cursor: pointer; }
.cal-day.is-link:hover { box-shadow: 0 0 0 2px rgba(22, 73, 126, .45); }
.cal-day.is-link:focus-visible { outline: 2px solid #16497e; outline-offset: 1px; }
.cal-month-list .cal-item, .cal-ev-anchor { scroll-margin-top: 1.25rem; }
.cal-ev-anchor { display: block; height: 0; overflow: hidden; }
.cal-item { transition: background-color .4s ease-out; }
.cal-item.is-flash { background-color: #fff3c4; transition: background-color .12s ease-out; }
.cal-day.off { background: var(--cal-off-fill); }
.cal-day.early { background: var(--cal-early-fill); }
.cal-day.event { background: var(--cal-event-fill); }
.cal-daynum { display: block; font-weight: 700; }
.cal-daynum.he { font-family: var(--font-he); font-size: 1.15rem; font-weight: 700; color: #16497e; line-height: 1.15; }
.cal-grid[dir="rtl"] .cal-day { text-align: center; }
.cal-grid[dir="rtl"] .cal-greg-date { text-align: center; }
.cal-he-date { display: block; font-family: var(--font-he); font-size: 0.8rem; font-weight: 700; color: #16497e; line-height: 1.2; }
.cal-greg-date { display: block; font-size: 0.68rem; color: #555; line-height: 1.2; unicode-bidi: isolate; }
.cal-parsha { display: block; font-family: var(--font-he); font-weight: 700; font-size: 0.72rem; color: #16497e; line-height: 1.15; margin-top: 0.12rem; overflow-wrap: anywhere; text-align: center; }
.cal-parsha-en { display: block; font-weight: 650; font-size: 0.68rem; color: #16497e; line-height: 1.15; overflow-wrap: normal; word-break: normal; text-align: center; }
.cal-month-list { margin-top: 0.7rem; }
.cal-notes { margin: 1.1rem 0 1.3rem; color: #444; font-size: 0.95rem; }
.cal-notes p { margin: 0.35rem 0; }
.cal-notes .he { font-family: var(--font-he); }
.cal-pdf { text-align: center; margin: 0.4rem 0 0; }
@media (max-width: 800px) {
  .cal-day { min-height: 2.7rem; font-size: 0.72rem; padding: 0.22rem 0.15rem 0.28rem; }
  .cal-grid { gap: 4px; }
  .cal-he-date { font-size: 0.72rem; }
  .cal-greg-date { font-size: 0.62rem; }
  .cal-parsha { font-size: 0.62rem; }
  .cal-parsha-en { font-size: 0.55rem; }
  /* English layout on phones: transliteration only — both names do not fit the Saturday cell. */
  .cal-grid:not([dir="rtl"]) .cal-parsha { display: none; }
  .cal-daynum.he { font-size: 1.05rem; }
  .cal-dow-he { font-size: 0.72rem; }
  .cal-heading .cal-title-he { font-size: 1.2rem; }
  .cal-item-titles { font-size: 0.95rem; }
  .cal-lang-btn { padding: 0.32rem 0.4rem 0.36rem; font-size: 0.88rem; }
  .cal-lang-main.he { font-size: 1.05rem; }
  .cal-lang-sub { font-size: 0.62rem; }
  .cal-pick-label { font-size: 0.95rem; }
  .cal-pick-label .he { font-size: 1.1rem; }
  .cal-pick-arrow { flex-basis: 2.1rem; font-size: 1.3rem; }
  .cal-pick-toggle { font-size: 0.95rem; padding: 0.45rem 0.65rem; }
  .cal-pick-toggle .he, .cal-pick-list li .he { font-size: 1.05rem; }
  .cal-pick-list li { padding: 0.4rem 0.65rem; font-size: 0.9rem; }
  .cal-pick-row { flex-wrap: wrap; }
  .cal-today-btn { flex: 1 1 100%; font-size: 0.95rem; padding: 0.45rem 0.75rem; }
  .cal-today-btn .he { font-size: 1.1rem; }
}

/* lichtig v106: tuck English (left) and Hebrew (right) under the logo banner ends */
@media (min-width: 801px) {
  .lichtig-en { left: max(0.5rem, calc(50% - var(--banner-max) / 2)); }
  .lichtig-nav { right: max(0.5rem, calc(50% - var(--banner-max) / 2)); }
}

/* Google Drive audio embeds: Pages/Android crop an 80px iframe (play button + seek bar). */
.drive-audio {
  width: 100%;
  max-width: 36rem;
  height: 160px;
  margin: 0.35rem auto 0;
  background: var(--cream, #f6f3ed);
  border-radius: 10px;
  overflow: hidden;
}
.drive-audio iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--cream, #f6f3ed);
}
.audio-card:has(.drive-audio),
.chidon-card:has(.drive-audio) {
  aspect-ratio: auto;
}

/* gallery.html: responsive card grid (same labels/links; EN left, HE right) */
.gal.gal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  max-width: 44rem;
  width: 100%;
  margin: 0.75rem auto 2rem;
  padding: 0;
  text-align: start;
  align-items: stretch;
}
.gal.gal-grid .gal-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  box-sizing: border-box;
  min-height: 5.25rem;
  padding: 1rem 1.15rem;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(232,184,74,.30);
  text-decoration: none;
  color: var(--blue-deep);
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.3;
  transition: box-shadow .15s, transform .15s;
}
.gal.gal-grid .gal-card:hover,
.gal.gal-grid .gal-card:focus-visible {
  box-shadow: 0 0 16px rgba(232,184,74,.65);
  transform: translateY(-2px);
  outline: none;
  background: var(--cream);
  color: var(--blue-deep);
}
.gal.gal-grid .gal-card-en {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 1.08rem;
  text-align: left;
  line-height: 1.3;
}
.gal.gal-grid .gal-card-he {
  font-family: var(--font-he);
  font-weight: 700;
  font-size: 1.2rem;
  text-align: right;
  line-height: 1.35;
}
.gal.gal-grid .gal-card .lock-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  position: relative;
  top: 0;
  margin-inline-end: 0;
}
@media (max-width: 600px) {
  .gal.gal-grid { grid-template-columns: 1fr; gap: 0.7rem; }
  .gal.gal-grid .gal-card { min-height: 4.6rem; padding: 0.9rem 1rem; }
}

/* preview home: logo | welcome text | Rebbe portrait (both circles use .emblem) */
.intro.intro-rebbe {
  margin-top: 0;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.5rem 1.75rem;
  align-items: center;
}
.intro.intro-rebbe + .hero { margin-top: 1.5rem; }
.intro.intro-rebbe .emblem { margin: 0 auto; }
@media (max-width: 800px) {
  .intro.intro-rebbe {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .intro.intro-rebbe .mission { text-align: center; }
}

/* site-wide story audio player (resumes across /preview pages) */
.st-player { position: fixed; left: .5rem; right: .5rem; bottom: .5rem; z-index: 1100; max-width: 640px; margin: 0 auto; display: grid; grid-template-columns: auto auto 1fr auto; gap: .3rem .5rem; align-items: center;
  background: #1d2a38; color: #ffe8a8; border-radius: 14px; padding: .55rem .7rem; box-shadow: 0 0 0 1px rgba(242,193,78,.8), 0 8px 26px rgba(0,0,0,.35), 0 0 18px rgba(242,193,78,.35); }
.st-player[hidden] { display: none; }
.st-player.st-player-moved { right: auto; bottom: auto; margin: 0; width: min(640px, calc(100vw - 16px)); max-width: min(640px, calc(100vw - 16px)); }
.st-player-grip { grid-row: 1; grid-column: 2; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; color: #ffe8a8; font-size: 1.25rem; line-height: 1; letter-spacing: -.05em; padding: .35rem .4rem; border-radius: 8px; }
.st-player-grip:hover, .st-player-grip:focus-visible { background: rgba(255,255,255,.12); outline: none; }
.st-player-grip:active { cursor: grabbing; }
.st-player-t { font-family: var(--font-he); font-weight: 700; font-size: 1.05rem; text-align: right; overflow-wrap: anywhere; grid-row: 1; grid-column: 3; }
.st-player audio { grid-column: 1 / -1; width: 100%; height: 40px; }
.st-player-x { grid-row: 1; grid-column: 4; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.st-player-x:hover, .st-player-x:focus-visible { background: rgba(255,255,255,.22); outline: none; }
.st-player-play { grid-row: 1; grid-column: 1; border: 0; background: linear-gradient(#ffe08a, #f2c14e); color: #1d2a38; min-width: 32px; height: 32px; border-radius: 999px; font-family: var(--font-en); font-weight: 700; font-size: .85rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .3rem; padding: 0 .7rem 0 .55rem; }
.st-player-play:hover, .st-player-play:focus-visible { background: #fff3c4; outline: none; }
.st-player-play .st-player-ic { width: 16px; height: 16px; fill: currentColor; flex: none; display: none; }
.st-player-play:not(.is-playing) .st-player-ic-play { display: block; }
.st-player-play.is-playing .st-player-ic-pause { display: block; }
.st-player-play-l { display: none; }
.st-player-needs-play .st-player-play { padding-right: .85rem; box-shadow: 0 0 0 2px #fff, 0 0 16px rgba(242,193,78,.9); }
.st-player-needs-play .st-player-play-l { display: inline; }

/* nav v126: public Home/Apply/Donate/Contact + one Parents tab holding everything else */
.nav-parents > .submenu { left: auto; right: 0; transform: none; }
.nav-parents > a .he { font-family: var(--font-he); font-weight: 700; }
.nav-teachers > a .he { font-family: var(--font-he); font-weight: 700; }
.parent-links li a .he { font-family: var(--font-he); font-weight: 700; }

/* parents landing v127: same book-card tiles as the main Chidon page; bilingual labels stay LTR (English left, Hebrew right); no invented descriptions */
.book-grid-parents { direction: ltr; display: flex; flex-wrap: wrap; justify-content: center; }
.book-grid-parents .book-card { flex: 0 0 calc((100% - 3rem) / 4); max-width: calc((100% - 3rem) / 4); }
@media (max-width: 600px) { .book-grid-parents .book-card { flex: 0 0 calc((100% - .75rem) / 2); max-width: calc((100% - .75rem) / 2); } }
/* parents landing v133: wide, low tiles (~2:1) */
.book-grid-parents .book-card { min-height: 5rem; padding: .5rem .6rem; aspect-ratio: 2 / 1; }
@media (max-width: 600px) { .book-grid-parents .book-card { min-height: 4.4rem; padding: .4rem .5rem; aspect-ratio: 2 / 1; } }
.book-grid-parents .book-card-title { font-family: var(--font-en); font-size: 1.15rem; }
.book-grid-parents .book-card-title .he { font-family: var(--font-he); font-weight: 700; white-space: nowrap; }
@media (max-width: 600px) { .book-grid-parents .book-card-title { font-size: 1.05rem; } }

/* parents landing v136: small content icon above each tile label (icon is decorative; label order unchanged) */
.book-grid-parents .book-card { gap: .2rem; }
.book-grid-parents .book-card-icon { display: block; font-size: 1.35rem; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
@media (max-width: 600px) { .book-grid-parents .book-card-icon { font-size: 1.2rem; } }

/* nav v137: small decorative icon before each Parents submenu item (aligned in a fixed-width slot) */
.submenu .menu-icon { display: inline-block; width: 1.5em; margin-right: .4rem; text-align: center; font-size: 1.05em; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; vertical-align: -0.08em; }

/* bus v138: no "Open map full screen" button on desktop (the nav's mobile breakpoint is 800px); phones/tablets keep it. The paragraph and its spacing stay so the gap before the next run title is unchanged. */
@media (min-width: 801px) {
  .bus-map-open .link-button { display: none; }
}

/* bus v139: run title headings about 1.5x (was 1.25rem): 1.875rem on desktop, scaled down on phones so the longest titles wrap cleanly; font, color and weight unchanged */
.page-body .bus2 { font-size: clamp(1.5rem, 1.1rem + 2.2vw, 1.875rem); line-height: 1.3; overflow-wrap: anywhere; }

/* bus v140: phones only - each run title stays on ONE line; the size follows the viewport width (content width is about 100vw - 64px; the longest title is about 18.2em wide, so 19.5 leaves slack). Desktop unchanged. */
@media (max-width: 600px) {
  .page-body .bus2 { font-size: calc((100vw - 64px) / 18.8); white-space: nowrap; overflow-wrap: normal; line-height: 1.3; }
}

/* bus v140: jump box (same yr-nav/chef-nav year-grid buttons as the Videos/Weeks pages) and anchored run titles that clear the top of the page */
#bus-jump { margin: 1.2rem auto 0; }
.bus2[id] { scroll-margin-top: 1.25rem; }

/* bus v140: Live Bus Tracker as one wide row on desktop (title left: English then Hebrew; three buttons side by side); phones keep the three buttons in one row when they fit */
@media (min-width: 801px) {
  .bus-tracker-card { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; max-width: 52rem; padding: .85rem 1.2rem; text-align: left; }
  .bus-tracker-title { margin: 0; flex: 0 0 auto; justify-content: flex-start; gap: .5rem; white-space: nowrap; }
  .bus-tracker-title > span:first-child::after { content: " ·"; }
  .bus-tracker-btns { flex: 0 1 auto; flex-wrap: nowrap; justify-content: flex-end; }
  .bus-tracker-btns .link-button { white-space: nowrap; }
}
@media (max-width: 600px) {
  .bus-tracker-btns { flex-direction: row; flex-wrap: nowrap; gap: .4rem; }
  .bus-tracker-btns .link-button { flex: 1 1 0; width: auto; min-width: 0; padding-left: .3rem; padding-right: .3rem; font-size: clamp(.74rem, 3.5vw, .92rem); white-space: nowrap; }
}
@media (min-width: 801px) {
  .bus-top { max-width: 52rem; }
  .bus-tracker-card { width: 100%; }
  #bus-jump .year-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 52rem; }
  #bus-jump .year-btn { padding-left: .3rem; padding-right: .3rem; white-space: nowrap; }
}

/* bus v141: phone tracker buttons never clip - tighter card padding, slightly smaller text, buttons size to their text and share the row evenly */
@media (max-width: 600px) {
  .bus-tracker-card { width: 100%; padding-left: .6rem; padding-right: .6rem; }
  .bus-tracker-btns { gap: .35rem; }
  .bus-tracker-btns .link-button { flex: 1 1 auto; min-width: auto; padding: .6rem .2rem; font-size: clamp(.7rem, 3.2vw, .86rem); overflow: visible; text-overflow: clip; }
}
