/* Chabad of Jackson Heights – design system (BRIEF.md section 6) */

:root {
  --teal: #178F9F;
  --teal-dark: #0E6E7B;
  --aqua: #4CBECE;
  --green: #578A45;
  --button-green: #4F7F3E;
  --green-dark: #315F3C;
  --text: #343333;
  --muted: #65706D;
  --border: #D9E5E0;
  --white: #FFFFFF;
  --gray: #ECECEC;
  --ivory: #FBFAF6;

  --grad-footer: linear-gradient(135deg, #173A34 0%, #134C46 48%, #0A4F5A 100%);
  --grad-signup: linear-gradient(135deg, #4CBECE 0%, #2BAFBE 38%, #178F9F 72%, #137C8B 100%);
  --grad-drawer: linear-gradient(165deg, #0E6E7B 0%, #176E73 52%, #315F3C 100%);

  --font-head: "Montserrat", Arial, sans-serif;
  --font-body: "Inter", Arial, sans-serif;

  --radius-sm: 8px;
  --radius: 12px;
  --shadow-header: 0 2px 12px rgba(31, 57, 52, 0.09);
  --max: 1140px;
  --gutter: 20px;
  --section-pad: 56px;
  --utility-h: 36px;
  --header-h: 72px;
}

@media (min-width: 768px) {
  :root { --section-pad: 80px; --gutter: 32px; }
}

/* ---------- Base ---------- */

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

/* --header-offset is measured by site.js (header height incl. the preview banner) */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-offset, 108px) + 12px); }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.drawer-open { overflow: hidden; }

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

a { color: var(--teal); }
a:hover { color: var(--green); }

h1, h2, h3 { font-family: var(--font-head); margin: 0; line-height: 1.2; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }

.container { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(860px + 2 * var(--gutter)); }
.container--prose { max-width: calc(760px + 2 * var(--gutter)); }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--white); color: var(--teal); padding: 10px 16px; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 700;
}
.skip-link:focus { top: 12px; }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--sm { width: 16px; height: 16px; }

.label {
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}

/* Preview-only strip explaining the [bracketed] drafts */
.draft-banner {
  background: #FFF4C2; color: #4A3F00; text-align: center;
  font-size: 14px; line-height: 1.4; padding: 8px var(--gutter);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn--block { display: flex; width: 100%; }

.btn--primary { background: var(--button-green); color: var(--white); }
.btn--primary:hover { background: var(--green-dark); color: var(--white); }

.btn--donate { background: var(--green); color: var(--white); }
.btn--donate:hover { background: var(--green-dark); color: var(--white); }

.btn--submit {
  background: var(--teal); color: var(--white);
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
}
.btn--submit:hover { background: var(--green); color: var(--white); }

.btn--outline { background: transparent; border-color: var(--aqua); color: var(--teal); }
.btn--outline:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }

.btn--on-photo { background: transparent; border-color: var(--white); color: var(--white); }
.btn--on-photo:hover { background: var(--white); color: var(--teal-dark); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); box-shadow: var(--shadow-header);
  transition: background-color .25s, box-shadow .25s, transform .3s ease;
}
.site-header.is-hidden { transform: translateY(-100%); box-shadow: none; }

.utility { height: var(--utility-h); border-bottom: 1px solid var(--border); font-size: 14px; }
.utility__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.utility a {
  color: var(--green-dark); text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: 13px; letter-spacing: 0.04em;
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px;
}
.utility a:hover { color: var(--green); }
.utility__links { display: flex; gap: 20px; }

.header__main { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; flex: none; align-items: center; gap: 10px; white-space: nowrap; color: var(--teal); text-decoration: none; }
.brand:hover { color: var(--teal-dark); }
.brand__mark {
  width: 54px; height: 40px; flex: none; background: currentColor;
  -webkit-mask: url(/assets/img/logo-mark.png) center / contain no-repeat;
          mask: url(/assets/img/logo-mark.png) center / contain no-repeat;
}
.brand__text { display: flex; flex-direction: column; font-family: var(--font-head); line-height: 1; }
.brand__name { font-weight: 700; font-size: 24px; letter-spacing: -0.01em; }
.brand__place { font-weight: 600; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; margin-top: 4px; }

.nav { display: none; align-items: center; gap: 28px; }
.nav__list { display: flex; align-items: center; gap: 0; }
/* 15px and tight padding so all the menu items fit on one line from 1180px (checked with a wider stand-in font) */
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 8px;
  font-family: var(--font-head); font-weight: 500; font-size: 15px; white-space: nowrap;
  color: var(--teal); text-decoration: none;
}
.nav__link:hover { color: var(--green); }
.nav__group { position: relative; }
.nav__dropdown {
  position: absolute; top: 100%; left: 0; min-width: 220px; padding: 8px 0;
  background: var(--white); border-top: 3px solid var(--teal-dark);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); box-shadow: 0 10px 24px rgba(31, 57, 52, 0.12);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__group:hover .nav__dropdown,
.nav__group:focus-within .nav__dropdown { opacity: 1; visibility: visible; transform: none; }
.nav__dropdown a {
  display: block; padding: 10px 18px; color: var(--teal); text-decoration: none;
  font-family: var(--font-head); font-weight: 500; font-size: 15px;
}
.nav__dropdown a:hover { color: var(--green); background: var(--ivory); }

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -8px; padding: 0;
  background: none; border: 0; border-radius: var(--radius-sm); color: var(--teal); cursor: pointer;
}
.menu-toggle .icon { width: 30px; height: 30px; stroke-width: 2.2; }

/* Desktop menu from 1180px; below that the phone menu (the full menu doesn't fit on tablets) */
@media (min-width: 1180px) {
  .nav { display: flex; }
  .menu-toggle { display: none; }
}

/* Desktop, scrolled down: the header steps aside and a Menu button opens the side menu */
.menu-fab { display: none; }
@media (min-width: 1180px) {
  body.menu-fab-on .menu-fab {
    position: fixed; top: 16px; right: 20px; z-index: 120;
    display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px 0 16px;
    background: var(--teal); color: var(--white); border: 0; border-radius: 24px; cursor: pointer;
    font-family: var(--font-head); font-weight: 700; font-size: 15px; box-shadow: 0 6px 20px rgba(10, 30, 40, 0.22);
  }
  body.menu-fab-on .menu-fab:hover { background: var(--teal-dark); }
  .menu-fab .icon { width: 22px; height: 22px; stroke-width: 2.2; }
}

/* Homepage: header sits transparent over the hero until the visitor scrolls */
.site-header--overlay { position: fixed; left: 0; right: 0; }
.site-header--overlay:not(.is-solid) { background: transparent; box-shadow: none; }
.site-header--overlay:not(.is-solid) .utility { border-bottom-color: rgba(255, 255, 255, 0.18); }
.site-header--overlay:not(.is-solid) .utility a,
.site-header--overlay:not(.is-solid) .brand,
.site-header--overlay:not(.is-solid) .nav__list > li > .nav__link,
.site-header--overlay:not(.is-solid) .menu-toggle { color: var(--white); }
.site-header--overlay:not(.is-solid) .nav__list > li > .nav__link:hover { color: var(--aqua); }
.site-header--overlay:not(.is-solid) .btn--donate { background: transparent; border-color: var(--white); }
.site-header--overlay:not(.is-solid) .btn--donate:hover { background: var(--white); color: var(--teal-dark); }

/* ---------- Phone menu drawer ---------- */

.drawer {
  position: fixed; inset: 0; z-index: 150;
  display: flex; flex-direction: column;
  background: var(--grad-drawer); color: var(--white);
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer[hidden] { display: none; }
/* Desktop: the menu opens as a panel on the right (from the Menu button) */
@media (min-width: 1180px) { .drawer { left: auto; width: 420px; box-shadow: -12px 0 40px rgba(10, 30, 40, 0.3); } }
.drawer__top { display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); }
.drawer .brand, .drawer .brand:hover { color: var(--white); }
.drawer__close {
  width: 48px; height: 48px; margin-right: -8px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; color: var(--white); cursor: pointer; border-radius: var(--radius-sm);
}
.drawer__close .icon { width: 30px; height: 30px; stroke-width: 2.2; }
.drawer__list { padding: 8px var(--gutter) 0; }
.drawer__list > li { border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
.drawer__row { display: flex; align-items: center; justify-content: space-between; }
.drawer__link {
  display: flex; align-items: center; min-height: 56px; flex: 1;
  color: var(--white); text-decoration: none;
  font-family: var(--font-head); font-weight: 600; font-size: 20px;
}
.drawer__link:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.drawer__toggle {
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.1); border: 0; border-radius: 50%; color: var(--white); cursor: pointer;
}
.drawer__toggle .icon { transition: transform .2s; }
.drawer__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.drawer__sub { padding: 0 0 12px 16px; }
.drawer__sub a {
  display: flex; align-items: center; min-height: 44px; color: rgba(255, 255, 255, 0.9); text-decoration: none;
  font-family: var(--font-head); font-weight: 500; font-size: 17px;
}
.drawer__sub a:hover { color: var(--white); text-decoration: underline; }
.drawer__actions { flex: 1; align-content: start; padding: 24px var(--gutter); display: grid; gap: 14px; }
.drawer__phone {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  color: var(--white); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 17px;
}
.drawer__phone:hover { color: var(--white); text-decoration: underline; }
.drawer__bottom {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom));
  background: var(--green-dark);
}
.drawer__bottom a {
  color: var(--white); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center;
  font-family: var(--font-head); font-weight: 600; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
}
.drawer__bottom span { color: rgba(255, 255, 255, 0.4); }

/* ---------- Sections ---------- */

.section { padding: var(--section-pad) 0; }
.section--tight { padding: 40px 0; }
.section--ivory { background: var(--ivory); }
.section--gray { background: var(--gray); }

.section-title {
  text-align: center; text-transform: uppercase; font-weight: 700;
  font-size: 30px; letter-spacing: -0.9px; margin-bottom: 12px;
}
@media (min-width: 768px) { .section-title { font-size: 36px; } }
.section-title--teal { color: var(--teal); }
.section-title--green { color: var(--green); }

.accent-bar { display: block; width: 80px; height: 6px; margin: 0 auto 36px; border-radius: 3px; background: var(--green); }

.section-note { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.section-more { text-align: center; margin: 24px 0 0; }
.section-more a { font-family: var(--font-head); font-weight: 700; text-decoration: none; }
.section-more a:hover { text-decoration: underline; }

/* Gray box standing in for a photo that hasn't been supplied yet */
.placeholder-img {
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(135deg, #DCDCDC 0 12px, #D3D3D3 12px 24px);
  color: #6E6E6E; font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* ---------- Hero ---------- */

.hero {
  position: relative; isolation: isolate;
  display: flex; align-items: center;
  min-height: min(92svh, 820px);
  padding: calc(var(--header-offset, 108px) + 32px) 0 64px;
  color: var(--white); text-align: center;
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__media img { object-fit: cover; object-position: center 60%; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 30, 40, 0.45) 0%, rgba(10, 30, 40, 0) 22%),
    radial-gradient(ellipse 75% 55% at 50% 52%, rgba(10, 30, 40, 0.42) 0%, rgba(10, 30, 40, 0) 100%),
    rgba(10, 30, 40, 0.22);
}
.hero__content { max-width: 900px; }
/* Inter (the body font) – softer than Montserrat for the big aqua letters (Meir, 2026-10-29).
   Each | part of the headline stays on one line; the size shrinks on narrow phones so it's always two lines. */
.hero__title {
  font-family: var(--font-body); font-weight: 800; text-transform: uppercase; color: var(--aqua);
  font-size: min(30px, 7.4vw); line-height: 1.12; letter-spacing: 0; margin-bottom: 18px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45), 0 2px 22px rgba(0, 0, 0, 0.35);
}
.hero__title span { display: inline-block; white-space: nowrap; }
.hero__text { text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55), 0 1px 14px rgba(0, 0, 0, 0.35); font-size: 17px; line-height: 1.55; margin: 0 auto 16px; max-width: 760px; text-wrap: pretty; }
.hero__text:last-of-type { margin-bottom: 32px; }
@media (min-width: 768px) {
  .hero__title { font-size: 47.52px; }
  .hero__text { font-size: 23px; }
}

/* ---------- Event cards ---------- */

.carousel { position: relative; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px var(--gutter) 12px; margin: 0 calc(-1 * var(--gutter));
  scroll-padding: 0 var(--gutter); scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
@media (min-width: 600px) { .carousel__track { grid-auto-columns: calc((100% - 16px) / 2.15); } }
@media (min-width: 1024px) {
  .carousel__track { grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; margin: 0; padding: 4px 0 12px; scroll-padding: 0; }
}

.carousel__arrow {
  display: none; position: absolute; top: 38%; z-index: 2;
  width: 48px; height: 48px; align-items: center; justify-content: center;
  background: var(--white); color: var(--teal); border: 1px solid var(--border); border-radius: 50%;
  box-shadow: 0 2px 10px rgba(31, 57, 52, 0.12); cursor: pointer;
}
.carousel__arrow:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.carousel__arrow[disabled] { opacity: 0; pointer-events: none; }
.carousel__arrow--prev { left: -24px; }
.carousel__arrow--next { right: -24px; }
@media (min-width: 1024px) { .carousel.is-scrollable .carousel__arrow { display: inline-flex; } }

.swipe-hint { text-align: center; color: var(--muted); font-size: 15px; margin: 8px 0 0; }
@media (min-width: 1024px) { .swipe-hint { display: none; } }

.event-card {
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.event-card__media { aspect-ratio: 4 / 5; overflow: hidden; }
.event-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.event-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.event-card__date {
  font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 8px;
}
.event-card__title { font-size: 18px; font-weight: 700; color: var(--teal); margin-bottom: 8px; }
.event-card__excerpt {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 18px;
}
.event-card__body .btn { margin-top: auto; }
.event-month {
  margin: 28px 0 10px; font-family: var(--font-head); font-weight: 700; font-size: 14px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.event-month:first-child { margin-top: 0; }
.event-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.event-row { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
.event-row summary {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; min-height: 72px;
  cursor: pointer; list-style: none;
}
.event-row summary::-webkit-details-marker { display: none; }
.event-row summary:focus-visible { outline: 3px solid var(--aqua); outline-offset: 2px; border-radius: var(--radius); }
.event-row__date {
  flex: none; width: 56px; display: flex; flex-direction: column; align-items: center; line-height: 1.1;
  padding: 6px 0; border-radius: var(--radius-sm); background: var(--ivory); color: var(--teal);
  font-family: var(--font-head); font-weight: 700; font-size: 12px; text-transform: uppercase;
}
.event-row__date strong { font-size: 24px; color: var(--text); }
.event-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.event-row__text strong { font-family: var(--font-head); font-weight: 700; color: var(--teal); }
.event-row__text span { color: var(--muted); font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-row__icon { flex: none; color: var(--teal); }
.event-row__icon .icon { width: 22px; height: 22px; }
.event-row[open] .event-row__icon { color: var(--green); }
.event-row__card { padding: 0 14px 14px; }
.event-row__card .event-card { border: 0; max-width: 480px; margin: 0 auto; }
.event-row__card .event-card__title { display: none; }
.event-row__card .event-card__date { margin-top: 4px; }
.event-row[open] .event-row__text span { white-space: normal; }
.event-row[open] .event-row__card .event-card__excerpt { display: none; }
.event-empty { text-align: center; font-size: 19px; }
.event-card__cal {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-top: 6px;
  font-family: var(--font-head); font-weight: 600; font-size: 14px; text-decoration: none;
}
.event-card__cal:hover { text-decoration: underline; }

/* ---------- Program tiles (photo, dark overlay, white label) ---------- */

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .tiles { gap: 20px; } }
@media (min-width: 1024px) { .tiles { grid-template-columns: repeat(4, 1fr); } }

.tile {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; overflow: hidden; isolation: isolate;
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--white); text-decoration: none; text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.tile picture, .tile img, .tile__placeholder { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.tile img { object-fit: cover; transition: transform .3s; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(10, 30, 40, 0.45); transition: opacity .2s; }
/* Photo tiles: photo stays bright; only the bottom darkens behind the label */
.tile:not(.tile--no-photo) { align-items: flex-end; }
.tile:not(.tile--no-photo)::after { background: linear-gradient(180deg, rgba(10, 30, 40, 0) 40%, rgba(10, 30, 40, 0.55) 68%, rgba(10, 30, 40, 0.85) 100%); }
.tile:not(.tile--no-photo) .tile__label { padding-bottom: 16px; }
.tile--no-photo::after { background: rgba(10, 30, 40, 0.38); }
.tile__label {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1.25;
  letter-spacing: 0.06em; text-transform: uppercase; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
@media (min-width: 600px) { .tile__label { font-size: 18px; } }
.tile__needed { font-weight: 600; font-size: 11px; letter-spacing: 0.12em; opacity: 0.85; }
.tile:hover { color: var(--white); }
.tile--no-photo:hover::after { background: rgba(10, 30, 40, 0.52); }

/* ---------- Shabbat times info card ---------- */

.info-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 20px; margin-top: 28px; }
@media (min-width: 768px) { .info-card { padding: 36px 40px; } }
.times { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; margin: 0; }
@media (min-width: 1024px) { .times { grid-template-columns: repeat(4, 1fr); } }
.times__cell { text-align: center; }
.times__cell .label { font-size: 13px; }
.times__value {
  margin: 8px 0 0; font-family: var(--font-head); font-weight: 700; color: var(--teal);
  font-size: 20px; line-height: 1.25;
}
@media (min-width: 768px) { .times__value { font-size: 26px; } }
.info-card__note { text-align: center; color: var(--muted); font-size: 15px; margin: 24px 0 0; }

/* ---------- Mailing-list band ---------- */

.signup { background: var(--grad-signup); padding: var(--section-pad) 0; text-align: center; }
.signup__title {
  color: var(--white); text-transform: uppercase; font-weight: 700;
  font-size: 30px; letter-spacing: -0.9px; margin-bottom: 10px;
  text-shadow: 0 1px 10px rgba(10, 60, 70, 0.25);
}
@media (min-width: 768px) { .signup__title { font-size: 36px; } }
/* Dark text per the brief; kept on the lighter left half of the gradient by limiting width */
.signup__text { color: #0B2F35; font-weight: 500; font-size: 18px; margin-bottom: 24px; }
.signup__form { max-width: 560px; margin: 0 auto; display: grid; gap: 12px; }
.signup__fields { display: grid; gap: 12px; }
@media (min-width: 600px) { .signup__fields { grid-template-columns: 1fr 1.4fr; } }
.field {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white);
  font: inherit; font-size: 17px; color: var(--text);
}
.field::placeholder { color: #6F7775; }
.field:focus-visible { outline: 3px solid var(--green-dark); outline-offset: 2px; }
.signup .btn--primary { min-height: 50px; font-size: 17px; }
.signup__status { margin: 4px 0 0; color: #0B2F35; }

/* ---------- Links row ---------- */

.link-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-width: 760px; margin: 0 auto; }
@media (min-width: 600px) { .link-row { grid-template-columns: repeat(4, 1fr); } }
.link-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 16px 8px; border-radius: var(--radius); text-decoration: none; color: var(--muted);
}
.link-item__icon {
  width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--teal); border-radius: 50%; color: var(--teal);
  transition: background-color .2s, color .2s;
}
.link-item__icon .icon { width: 26px; height: 26px; }
.link-item:hover .link-item__icon { background: var(--teal); color: var(--white); }
.link-item:hover .label { color: var(--teal); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--grad-footer); border-top: 4px solid rgba(76, 190, 206, 0.22);
  color: var(--white); text-align: center; padding: 48px 0 40px;
}
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.site-footer .brand, .site-footer .brand:hover { color: var(--white); }
.footer__line { margin: 0; font-weight: 500; line-height: 1.7; display: flex; flex-wrap: wrap; justify-content: center; column-gap: 12px; }
.footer__line a { color: var(--white); text-decoration: none; }
.footer__line a:hover { text-decoration: underline; color: var(--white); }
.footer__sep { opacity: 0.45; }
@media (max-width: 767px) {
  .footer__line { flex-direction: column; }
  .footer__sep { display: none; }
}
.footer__social { display: flex; align-items: center; gap: 12px; }
.social {
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgba(255, 255, 255, 0.10); border: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--white); transition: transform .2s, background-color .2s;
}
.social .icon { fill: currentColor; stroke: none; width: 22px; height: 22px; }
.social:hover { color: var(--white); background: rgba(255, 255, 255, 0.18); transform: translateY(-2px); }
.footer__small { margin: 0; font-size: 15px; color: rgba(255, 255, 255, 0.72); }
.footer__small a { color: rgba(255, 255, 255, 0.72); }
.footer__small a:hover { color: var(--white); }


/* ---------- Inner pages ---------- */

.page-hero { background: var(--ivory); padding: 48px 0 40px; text-align: center; border-bottom: 1px solid var(--border); }
@media (min-width: 768px) { .page-hero { padding: 72px 0 56px; } }
.page-hero__title {
  color: var(--teal); text-transform: uppercase; font-weight: 800;
  font-size: 34px; line-height: 1.12; letter-spacing: -0.5px;
}
@media (min-width: 768px) { .page-hero__title { font-size: 44px; } }
.page-hero__intro { margin: 16px auto 0; max-width: 640px; font-size: 19px; color: var(--text); text-wrap: pretty; }
@media (min-width: 768px) { .page-hero__intro { font-size: 21px; } }

.prose > :last-child { margin-bottom: 0; }
.prose p { margin: 0 0 1em; }
.prose-h3 { font-size: 20px; font-weight: 700; color: var(--teal); margin: 1.4em 0 0.5em; }
.prose-h3:first-child { margin-top: 0; }
.prose-list { margin: 0 0 1em; padding-left: 0; }
.prose-list li { position: relative; padding-left: 24px; margin-bottom: 0.5em; }
.prose-list li::before {
  content: ""; position: absolute; left: 4px; top: 0.62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
}
.prose-actions { margin: 24px 0 0; }
.prose-actions + .prose-actions { margin-top: 12px; }

/* Cards inside page sections */
.cards { display: grid; gap: 16px; margin-top: 8px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card__title { font-size: 18px; font-weight: 700; color: var(--teal); margin-bottom: 8px; }
.card p { margin: 0 0 0.6em; }
.card p:last-child { margin-bottom: 0; }

/* Open/close questions */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 20px; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--teal);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; font-size: 24px; font-weight: 500; color: var(--green); flex: none; }
.faq__item[open] summary::after { content: "–"; }
.faq__body { padding: 0 20px 18px; }
.faq__body > :last-child { margin-bottom: 0; }

/* Contact details */
.contact-list { display: grid; gap: 14px; margin: 28px 0; }
@media (min-width: 700px) { .contact-list { grid-template-columns: repeat(2, 1fr); } }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.contact-list .icon { color: var(--teal); margin-top: 2px; }
.contact-list li > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-list a { font-weight: 500; overflow-wrap: anywhere; }

/* Upcoming holidays */
.holidays-card { margin-top: 0; }
.holiday-list { display: grid; gap: 0; }
.holiday-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.holiday-list li:last-child { border-bottom: 0; }
.holiday-list__name { font-family: var(--font-head); font-weight: 700; color: var(--teal); }
.holiday-list__date { color: var(--muted); white-space: nowrap; }
.holiday-list__loading { color: var(--muted); justify-content: center !important; }

/* ---------- Forms ---------- */

.form--card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; }
@media (min-width: 768px) { .form--card { padding: 32px; } }
.form__grid { display: grid; gap: 18px; margin-bottom: 22px; }
.form__intro { margin: 0 0 20px; font-size: 17px; }
.form__note { font-size: 15px; color: var(--muted); }
@media (min-width: 640px) {
  .form__grid { grid-template-columns: 1fr 1fr; }
  .form__field--wide { grid-column: 1 / -1; }
}
.form__field { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
.form__field > label, .form__checks legend {
  font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--text);
}
.form__req { color: var(--green); }
.form__checks { border: 0; padding: 0; }
.form__checks legend { padding: 0; margin-bottom: 6px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 17px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--teal); }
textarea.field { resize: vertical; min-height: 130px; }
select.field { appearance: auto; }
.field:focus-visible { outline: 3px solid var(--aqua); outline-offset: 1px; border-color: var(--teal); }
.form .btn--submit { width: 100%; }
@media (min-width: 640px) { .form .btn--submit { width: auto; min-width: 220px; } }
.form__status { margin: 14px 0 0; font-weight: 600; color: var(--green-dark); min-height: 1.5em; }
.form__status:empty { display: none; }
.form__status.is-error { color: #A3342B; }
.form__done {
  background: var(--white); border: 1px solid var(--border); border-left: 6px solid var(--green);
  border-radius: var(--radius); padding: 24px; color: var(--green-dark);
}
.form__done p { margin: 0 0 14px; font-family: var(--font-head); font-weight: 600; font-size: 18px; }
.form__again {
  background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 16px; color: var(--teal); text-decoration: underline; text-underline-offset: 3px;
}
.form__again:hover { color: var(--green); }
.signup .form__done { text-align: center; border-left-width: 1px; }
.form__followup { margin: 0 0 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.form__done .form__followup-q { margin: 0 0 12px; font-family: var(--font-body); font-weight: 400; font-size: 17px; color: var(--text); }
.form__followup-options { display: flex; flex-wrap: wrap; gap: 10px; }
.form__followup-options[hidden] { display: none; }
.form__followup-other { display: flex; gap: 10px; flex: 1 1 100%; }
.form__followup-other .field { flex: 1; min-width: 0; }
.form__done .form__followup-thanks { margin: 0; font-size: 17px; }

/* ---------- Photo page top (Donate) ---------- */

.photo-hero { position: relative; background: linear-gradient(135deg, #173A34 0%, #134C46 48%, #0A4F5A 100%); color: var(--white); }
.photo-hero__img { display: block; position: relative; }
.photo-hero__img img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.photo-hero__img img { -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); }
.photo-hero__text { position: relative; margin-top: -72px; padding-bottom: 44px; text-align: center; }
.photo-hero__title {
  margin: 0; font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  font-size: 34px; line-height: 1.1; color: var(--aqua); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}
.photo-hero__sub { margin: 10px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.3; }
.photo-hero__intro { margin: 16px auto 0; max-width: 560px; font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, 0.92); text-wrap: pretty; }
@media (min-width: 900px) {
  .photo-hero { display: grid; grid-template-columns: 1fr minmax(0, 1140px) 1fr; padding: 64px 0; }
  .photo-hero__img { grid-column: 2; grid-row: 1; justify-self: end; width: 46%; margin-right: 20px; }
  .photo-hero__img img { border-radius: var(--radius); -webkit-mask-image: none; mask-image: none; }
  .photo-hero__text { grid-column: 2; grid-row: 1; align-self: center; margin: 0; padding: 0 20px; width: 54%; text-align: left; }
  .photo-hero__title { font-size: 47.52px; }
  .photo-hero__sub { font-size: 24px; }
  .photo-hero__intro { margin-left: 0; font-size: 19px; padding-right: 40px; }
}

/* ---------- Donate page giving box ---------- */

.give { max-width: 560px; margin: 0 auto; display: grid; gap: 20px; }
.give fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.give input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.give__freq { display: grid; grid-template-columns: 1fr 1fr; background: var(--gray); border-radius: var(--radius-sm); padding: 4px; }
.give__freq span {
  display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 6px; cursor: pointer;
  font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--muted);
}
.give__freq input:checked + span { background: var(--white); color: var(--teal); box-shadow: 0 1px 3px rgba(31, 57, 52, 0.15); }
/* Small bright-green heart beside "Monthly" (Meir, 2026-11-04) */
.give__heart { width: 17px; height: 17px; margin-left: 6px; fill: #3DAA4A; stroke: #3DAA4A; stroke-width: 1.5; }
.give__card { min-height: 60px; }
.give__loading { margin: 0; padding: 16px 0; color: var(--muted); font-size: 15px; text-align: center; }
.give__hint { font-weight: 400; color: var(--muted); }
.give__amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 640px) { .give__amounts { grid-template-columns: repeat(6, 1fr); } }
.give__amount span {
  display: flex; align-items: center; justify-content: center; min-height: 52px; cursor: pointer;
  border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--text);
  transition: border-color .2s, background-color .2s, color .2s;
}
.give__amount span:hover { border-color: var(--aqua); }
.give__amount input:checked + span { background: var(--teal); border-color: var(--teal); color: var(--white); }
.give input[type="radio"]:focus-visible + span { outline: 3px solid var(--aqua); outline-offset: 2px; }
.give__other[hidden] { display: none; }
.give__dollar { position: relative; display: block; }
.give__dollar > span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.give__dollar .field { padding-left: 30px; }
.give .btn--submit { width: 100%; min-height: 54px; font-size: 17px; }
.give__note { margin: -8px 0 0; text-align: center; font-size: 15px; color: var(--muted); }
.give .form__status { margin: 0; text-align: center; }
.give[hidden] { display: none; }
.give__or { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--muted); font-size: 15px; }
.give__or::before, .give__or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.give__paypal { width: 100%; min-height: 50px; background: #FFC439; color: #111; font-size: 16px; }
.give__paypal:hover { background: #F2BA36; color: #111; }
.give__paypal-mark { font-family: Verdana, Arial, sans-serif; font-style: italic; font-weight: 700; font-size: 19px; letter-spacing: -0.5px; }
.give__paypal-mark span:first-child { color: #003087; }
.give__paypal-mark span:last-child { color: #009CDE; }
.give__pay { max-width: 560px; margin: 0 auto; display: block; scroll-margin-top: 20px; }
.give__pay .form__again { margin-bottom: 8px; }

/* ---------- 404 ---------- */

.notfound { text-align: center; min-height: 50vh; }
.notfound .section-title { margin-bottom: 20px; }

/* ---------- Motion (mouse only, and only if the visitor allows motion) ---------- */

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .event-card:hover, .tile:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(31, 57, 52, 0.10); }
  .event-card:hover .event-card__media img,
  .tile:hover img { transform: scale(1.025); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Times card inside a narrow page column: always 2 × 2 */
.prose .times { grid-template-columns: 1fr 1fr; }

/* ---------- Hebrew School: styled after the Canva flyer ---------- */

.theme-hebrew-school, .hs-hero, .hs-info {
  --hs-coral: #D9473E;   /* flyer #E15A51, darkened slightly so it reads on light backgrounds */
  --hs-navy: #162F66;
  --hs-yellow: #F1C942;
  --hs-teal: #3E9C95;
}
.hs-hero { position: relative; background: #F8F8F8; padding: 40px 0 0; overflow: hidden; } /* #F8F8F8 = the flyer's background, so the kids' photos blend in */
@media (min-width: 768px) { .hs-hero { padding-top: 64px; } }
.hs-hero__main { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* Girl, schedule badge, boy – laid out like the flyer, standing on the navy wave */
.hs-stage { position: relative; display: flex; align-items: flex-end; justify-content: space-between; margin-top: 24px; max-width: 1280px; margin-left: auto; margin-right: auto; }
.hs-kid { width: clamp(118px, 30vw, 330px); flex: none; }
.hs-kid img { width: 100%; height: auto; }
.hs-stage .hs-badge { margin-bottom: clamp(48px, 9vw, 110px); }

.hs-letters { display: flex; gap: 14px; margin: 0 0 6px; font-size: 32px; font-weight: 700; line-height: 1; }
.hs-letters span:nth-child(1) { color: var(--hs-navy); transform: rotate(-6deg); }
.hs-letters span:nth-child(2) { color: var(--hs-yellow); transform: rotate(5deg); }
.hs-letters span:nth-child(3) { color: var(--hs-coral); transform: rotate(-8deg); }

.hs-kicker {
  margin: 0; font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  color: var(--hs-coral); font-size: 34px; line-height: 1.1; letter-spacing: 0.01em;
}
.hs-banner {
  margin: 10px 0 12px; display: inline-block;
  background: var(--hs-teal); color: var(--white);
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  font-size: 40px; line-height: 1; letter-spacing: 0.02em;
  padding: 14px 26px 12px; transform: rotate(-1.5deg);
  border-radius: 10px 4px 12px 6px / 6px 12px 4px 10px;
  box-shadow: 6px 6px 0 rgba(22, 47, 102, 0.12);
}
.hs-banner span { display: block; transform: rotate(1.5deg); }
.hs-tagline {
  margin: 8px 0 24px; font-family: var(--font-head); font-weight: 800; text-transform: uppercase;
  color: var(--hs-navy); font-size: 19px; letter-spacing: 0.02em;
}
@media (min-width: 768px) {
  .hs-kicker { font-size: 48px; }
  .hs-banner { font-size: 64px; padding: 16px 36px 14px; }
  .hs-tagline { font-size: 24px; }
}
.hs-cta { background: var(--hs-coral); color: var(--white); font-size: 17px; padding: 12px 28px; }
.hs-cta:hover { background: var(--hs-navy); color: var(--white); }

.hs-badge {
  flex: none; width: 142px; height: 142px; padding: 0 10px; text-align: center; border-radius: 50%;
  background: var(--hs-teal); color: var(--white);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  box-shadow: 0 0 0 8px rgba(62, 156, 149, 0.18);
  font-family: var(--font-head); font-weight: 800; line-height: 1.15;
}
.hs-badge__big { font-size: 12.5px; }
.hs-badge__wave {
  width: 64px; height: 10px; margin: 4px 0;
  background: radial-gradient(circle at 6px 0, transparent 5px, var(--white) 5px 7px, transparent 7px) 0 2px / 12px 10px repeat-x;
}
@media (min-width: 600px) { .hs-badge { width: 190px; height: 190px; } .hs-badge__big { font-size: 19px; } .hs-badge__wave { width: 90px; margin: 8px 0; } }
@media (min-width: 1024px) { .hs-badge { width: 240px; height: 240px; } .hs-badge__big { font-size: 23px; } }

.hs-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(28px, 5vw, 64px); fill: var(--hs-navy); z-index: 1; }

/* Sections on this page pick up the flyer colors */
.theme-hebrew-school .section-title { color: var(--hs-coral); }
.theme-hebrew-school .accent-bar { background: var(--hs-yellow); }
.theme-hebrew-school.section--gray { background: var(--hs-navy); }
.theme-hebrew-school.section--gray .section-title { color: var(--white); }
.theme-hebrew-school .card { border: 0; padding: 24px; }
.theme-hebrew-school .card__title { color: var(--hs-navy); font-size: 20px; }
.theme-hebrew-school .card__title::before { content: "✷ "; color: var(--hs-coral); }
.theme-hebrew-school .card a { color: var(--hs-coral); font-weight: 600; }
.theme-hebrew-school .prose-h3 { color: var(--hs-navy); }
.theme-hebrew-school .prose-list li::before { background: var(--hs-coral); }
.theme-hebrew-school .btn--submit { background: var(--hs-coral); }
.theme-hebrew-school .btn--submit:hover { background: var(--hs-navy); }
.theme-hebrew-school.section--gray .prose > p,
.theme-hebrew-school.section--gray .prose > p a { color: var(--white); }

/* Flyer image with download button */
.flyer { margin: 8px auto 0; max-width: 480px; text-align: center; }
.flyer img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(22, 47, 102, 0.12); }
.flyer figcaption { margin-top: 20px; }
.theme-hebrew-school .btn--outline { border-color: var(--hs-coral); color: var(--hs-coral); }
.theme-hebrew-school .btn--outline:hover { background: var(--hs-coral); color: var(--white); }
.theme-hebrew-school.section--gray .btn--outline { background: var(--hs-coral); border-color: var(--hs-coral); color: var(--white); }
.theme-hebrew-school.section--gray .btn--outline:hover { background: var(--white); border-color: var(--white); color: var(--hs-navy); }

/* ---------- Phones: a calmer header ---------- */
.header-call { display: none; }
@media (max-width: 767px) {
  .utility { display: none; }                 /* phone number moves to a call button next to the menu */
  .header-call {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; color: var(--teal); margin-left: auto;
  }
  .header-call .icon { width: 24px; height: 24px; }
  .site-header--overlay:not(.is-solid) .header-call { color: var(--white); }
  .header__main { gap: 8px; height: 64px; }
  .brand__mark { width: 46px; height: 34px; }
  .brand__name { font-size: 21px; }
  .brand__place { font-size: 11px; }
  .draft-banner { font-size: 12px; padding: 5px var(--gutter); }
}
/* Phones: shorter hero, so the next section peeks in (the cue to scroll) */
@media (max-width: 767px) { .hero { min-height: 0; padding-bottom: 48px; } }

.field::placeholder { color: #6F7775; }

/* Photo gallery (Social events) */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.gallery__item { aspect-ratio: 1 / 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }

/* Featured block (Torah study: this semester's course) */
.feature {
  background: var(--grad-signup); color: var(--white); border-radius: var(--radius);
  padding: 36px 24px; text-align: center; margin-bottom: 20px;
}
@media (min-width: 768px) { .feature { padding: 56px 48px; } }
.feature__label { margin: 0 0 10px; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #0B2F35; }
.feature__title { font-weight: 800; text-transform: uppercase; font-size: 32px; line-height: 1.1; margin: 0 0 12px; text-shadow: 0 1px 10px rgba(10, 60, 70, 0.25); }
@media (min-width: 768px) { .feature__title { font-size: 44px; } }
.feature__details { margin: 0 0 14px; font-family: var(--font-head); font-weight: 600; color: #0B2F35; }
.feature__text { margin: 0 auto 24px; max-width: 560px; font-size: 18px; color: #0B2F35; font-weight: 500; }
.feature__btn { min-width: 200px; }
.feature__btn:hover { background: var(--white); color: var(--teal-dark); }
.feature + p { text-align: center; color: var(--muted); }
@media (min-width: 768px) { .gallery--pairs { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Email signup pop-up ---------- */
body.popup-open { overflow: hidden; }
.popup {
  position: fixed; inset: 0; z-index: 160; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(10, 30, 40, 0.55); padding: 0;
}
.popup[hidden] { display: none; }
@media (min-width: 600px) { .popup { align-items: center; padding: 20px; } }
.popup__card {
  position: relative; width: 100%; max-width: 440px;
  background: var(--grad-signup); color: var(--white); text-align: center;
  border-radius: 16px 16px 0 0; padding: 36px 24px calc(28px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px rgba(10, 30, 40, 0.25);
}
@media (min-width: 600px) { .popup__card { border-radius: var(--radius); padding: 40px 32px 32px; } }
.popup__close {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; border-radius: 50%; color: var(--white); cursor: pointer;
}
.popup__title { text-transform: uppercase; font-weight: 800; font-size: 26px; margin: 0 0 8px; }
.popup__text { color: #0B2F35; font-weight: 500; margin: 0 0 18px; }
.popup__form { display: grid; gap: 10px; }
.popup .form__status { color: #0B2F35; }
.popup .form__done { text-align: center; border-left-width: 1px; }
@media (prefers-reduced-motion: no-preference) {
  .popup:not([hidden]) .popup__card { animation: popup-in .3s ease-out; }
  @keyframes popup-in { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
}
.popup__card:focus { outline: none; }

/* ---------- Synagogue notice (a few seconds before jhshul.com opens) ---------- */
.shul-note {
  position: fixed; inset: 0; z-index: 170; display: flex; align-items: center; justify-content: center;
  background: rgba(10, 30, 40, 0.55); padding: 20px;
}
.shul-note[hidden] { display: none; }
.shul-note__card {
  position: relative; width: 100%; max-width: 400px; background: var(--white); color: var(--text);
  border-radius: var(--radius); padding: 36px 24px 26px; text-align: center; box-shadow: 0 10px 40px rgba(10, 30, 40, 0.3);
}
.shul-note__card:focus { outline: none; }
.shul-note .popup__close { color: var(--muted); }
.shul-note__icon { width: 34px; height: 34px; color: var(--teal); margin-bottom: 10px; }
.shul-note__text { font-size: 18px; font-weight: 600; line-height: 1.45; color: #0B2F35; margin: 0 0 14px; }
.shul-note__going { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.shul-note__bar { height: 4px; border-radius: 2px; background: var(--gray); overflow: hidden; margin: 0 0 18px; }
.shul-note__bar span { display: block; height: 100%; width: 0; background: var(--teal); }
.shul-note.is-running .shul-note__bar span { width: 100%; transition: width var(--shul-seconds, 3s) linear; }

/* Times card: time large, day and date small underneath; holiday on its own row */
.times__main { display: block; }
.times__sub { display: block; margin-top: 4px; font-family: var(--font-body); font-weight: 500; font-size: 15px; color: var(--muted); }
.times__sub:empty { display: none; }
.times__cell--wide { grid-column: 1 / -1; }
@media (min-width: 1024px) { .times:not(.times--holiday) { grid-template-columns: repeat(3, 1fr); } .times:not(.times--holiday) .times__cell--wide { grid-column: auto; } }
.times--holiday { grid-template-columns: 1fr; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.theme-hebrew-school.section--gray .prose li,
.theme-hebrew-school.section--gray .prose strong { color: var(--white); }
.theme-hebrew-school.section--gray .prose li::before { background: var(--hs-yellow); }
.theme-hebrew-school.section--gray .prose a:not(.btn) { color: var(--hs-yellow); }

/* Hebrew School page top: details and flyer points (option A) */
.hs-eyebrow { margin: 0 0 14px; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.hs-details { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px 0 18px; }
.hs-details span {
  background: var(--hs-navy); color: var(--white); border-radius: 999px; padding: 6px 14px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
}
.hs-points { margin: 0 auto 8px; max-width: 460px; text-align: left; display: grid; gap: 8px; }
.hs-points li { position: relative; padding-left: 30px; color: var(--hs-navy); font-weight: 500; }
.hs-points li::before { content: "✷"; position: absolute; left: 0; top: 0; color: var(--hs-coral); font-size: 20px; line-height: 1.4; }
.hs-stage .hs-cta { margin-bottom: clamp(56px, 11vw, 130px); white-space: nowrap; }
@media (max-width: 420px) { .hs-stage .hs-cta { padding: 10px 14px; font-size: 15px; } }
.hs-stage--kids-only { justify-content: space-between; }
/* Desktop: the kids stand at the sides of the content instead of below it */
@media (min-width: 1000px) {
  .hs-hero { padding-bottom: 150px; }
  .hs-stage { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; max-width: none; pointer-events: none; }
  .hs-kid { width: clamp(220px, 21vw, 320px); }
  .hs-stage .hs-cta { pointer-events: auto; margin-bottom: 70px; }
}

/* Kids page: program pills (navigation) at the top; facts as plain text */
.hs-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 24px; }
.hs-pills a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border-radius: 999px;
  background: var(--hs-navy); color: var(--white); text-decoration: none;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
}
.hs-pills a:hover { background: var(--hs-coral); color: var(--white); }
.hs-pills a:first-child { background: var(--hs-coral); }
.hs-details span:not(.hs-dot) { background: none; color: var(--hs-navy); padding: 0; border-radius: 0; font-size: 17px; }
.hs-details .hs-dot { background: none; color: var(--hs-coral); padding: 0; font-weight: 800; }

/* ---------- JLI course pages (match the 2026–27 course postcard) ---------- */

:root {
  --jli-navy: #172340;
  --jli-gold: #C99A62;
  --jli-gold-dark: #8A5A24;
  --jli-cream: #F4EFE6;
  --jli-serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
}
.jli-hero { background: var(--jli-navy); color: var(--white); text-align: center; }
.jli-hero__band { padding: 48px 20px 44px; max-width: 900px; }
@media (min-width: 768px) { .jli-hero__band { padding: 72px 20px 60px; } }
.jli-eyebrow {
  margin: 0 0 16px; font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--jli-gold);
}
.jli-title { margin: 0; font-family: var(--jli-serif); font-weight: 700; font-size: 32px; line-height: 1.15; color: var(--white); text-wrap: balance; }
@media (min-width: 768px) { .jli-title { font-size: 46px; } }
.jli-tagline { margin: 12px 0 0; font-family: var(--jli-serif); font-style: italic; font-size: 21px; line-height: 1.35; color: var(--jli-gold); text-wrap: balance; }
@media (min-width: 768px) { .jli-tagline { font-size: 27px; } }
.jli-tagline--small { font-size: 19px; }
@media (min-width: 768px) { .jli-tagline--small { font-size: 21px; } }
.jli-text { margin: 22px auto 0; max-width: 720px; font-size: 17px; line-height: 1.65; color: rgba(255, 255, 255, 0.92); }
.jli-when {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin: 24px auto 0; padding: 14px 18px;
  max-width: 720px; border: 1px solid rgba(201, 154, 98, 0.5); border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 700; font-size: 17px;
}
.jli-when span { white-space: nowrap; }
.jli-credits { margin: 20px auto 0; max-width: 720px; font-size: 15px; color: rgba(255, 255, 255, 0.75); }
.jli-credits strong { color: var(--jli-gold); }

.jli-lower { background: var(--jli-cream); padding: 28px 0 48px; color: var(--jli-navy); }
@media (min-width: 768px) { .jli-lower { padding: 32px 0 64px; } }
.jli-topics {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 0; padding: 14px 0;
  border-top: 1px solid rgba(23, 35, 64, 0.2); border-bottom: 1px solid rgba(23, 35, 64, 0.2);
  font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
}
.jli-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; text-align: center; }
@media (min-width: 768px) {
  .jli-topics { display: flex; }
  .jli-topics li { display: inline-flex; align-items: center; }
  .jli-topics li + li::before { content: "◆"; margin: 0 10px; font-size: 9px; color: var(--jli-gold-dark); }
}
.jli-fit { margin: 24px 0 0; text-align: center; font-family: var(--jli-serif); font-style: italic; font-size: 20px; line-height: 1.45; }
.jli-fit span { color: var(--jli-gold-dark); white-space: nowrap; }
.jli-columns { display: grid; gap: 28px; margin-top: 32px; }
@media (min-width: 768px) {
  .jli-columns { grid-template-columns: 1fr 1fr; gap: 0; }
  .jli-columns > * + * { border-left: 1px solid rgba(23, 35, 64, 0.2); padding-left: 40px; }
  .jli-columns > :first-child { padding-right: 40px; }
  .jli-columns--one { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
}
.jli-register__title { margin: 0 0 8px; font-family: var(--jli-serif); font-weight: 700; font-size: 26px; color: var(--jli-navy); }
.jli-register p { margin: 0 0 18px; }
.jli-btn { background: var(--jli-navy); color: var(--white); width: 100%; }
.jli-btn:hover { background: var(--jli-gold-dark); color: var(--white); }
@media (min-width: 768px) { .jli-btn { width: auto; } }
.jli-season__label {
  margin: 0 0 12px; font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; color: #5C6478;
}
.jli-season li { padding: 10px 0; border-bottom: 1px solid rgba(23, 35, 64, 0.12); }
.jli-season li:last-child { border-bottom: 0; }
.jli-season__when { font-family: var(--font-head); font-weight: 800; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--jli-gold-dark); margin-right: 8px; }
.jli-season__name { font-family: var(--jli-serif); font-weight: 700; font-size: 20px; }
.jli-season__name a { color: var(--jli-navy); text-decoration-color: var(--jli-gold); text-underline-offset: 4px; }
.jli-season__name a:hover { color: var(--jli-gold-dark); }
.jli-season__details { display: block; margin-top: 2px; font-size: 16px; color: #4A5368; }
.jli-more { margin: 28px 0 0; text-align: center; }
.jli-more a { font-family: var(--font-head); font-weight: 700; color: var(--jli-navy); }

/* Sections below a JLI page top */
.theme-jli.section--gray { background: var(--white); }
.theme-jli.section--ivory { background: var(--jli-cream); }
.theme-jli .section-title { font-family: var(--jli-serif); text-transform: none; letter-spacing: 0; color: var(--jli-navy); }
.theme-jli .accent-bar { background: var(--jli-gold); }
.theme-jli .card { border-color: rgba(23, 35, 64, 0.15); }
.theme-jli .card__title { font-family: var(--jli-serif); color: var(--jli-navy); font-size: 20px; }

/* ---------- Page drawings (e.g. the Shabbat table) ---------- */

.page-hero:has(+ .page-art) { border-bottom: 0; padding-bottom: 8px; }
.page-art { background: var(--ivory); padding: 8px 0 32px; color: var(--text); border-bottom: 1px solid var(--border); }
.page-art svg { display: block; width: 100%; max-width: 720px; height: auto; margin: 0 auto; }
.page-art .ground { fill: var(--ivory); }
.page-art .flame { stroke: var(--teal); }
.page-art--photo { padding-top: 16px; }
.page-art--photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 768px) { .page-art--photo img { aspect-ratio: 3 / 2; max-height: 560px; } }

/* ---------- Shabbat times: one slim line above the homepage footer ---------- */

.times-strip { background: var(--ivory); border-top: 1px solid var(--border); padding: 14px 0; }
.times-strip__line {
  margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 18px;
  font-size: 15px; color: var(--muted); text-align: center;
}
.times-strip__note { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }
.times-strip .times { display: contents; }
.times-strip .times__cell { white-space: nowrap; }
.times-strip [data-time] { font-weight: 600; color: var(--text); }
.times-strip .times__main { display: inline; }
.times-strip .times__sub { display: none; }
.times-strip__learn { margin-left: 4px; font-weight: 600; }
.times-strip__learn::after { content: " ›"; }

.page-note { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--border); font-size: 16px; color: var(--muted); }

/* ---------- This semester's course (layout: course) – quiet single column on cream ---------- */

.page-course main, .page-course .course { background: var(--jli-cream); }
.course__strip { background: var(--jli-navy); color: var(--white); padding: 22px 0 24px; text-align: center; }
@media (min-width: 768px) { .course__strip { padding: 32px 0 34px; } }
.course__strip-label {
  margin: 0 0 6px; font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--jli-gold);
}
.course__catalog { margin: 0; font-family: var(--jli-serif); font-weight: 700; font-size: 26px; line-height: 1.2; color: var(--white); }
@media (min-width: 768px) { .course__catalog { font-size: 34px; } }
.course__lineup {
  list-style: none; margin: 18px auto 0; padding: 0; max-width: 760px;
  display: grid; gap: 12px; grid-template-columns: 1fr;
}
@media (min-width: 640px) { .course__lineup { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.course__lineup a {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 16px 44px 16px 18px; text-align: left; text-decoration: none;
  background: var(--jli-cream); color: var(--jli-navy); border: 2px solid var(--jli-gold); border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); transition: background-color .15s, transform .15s;
}
.course__lineup a:hover { background: var(--white); transform: translateY(-1px); }
.course__lineup-when { font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--jli-gold-dark); }
.course__lineup strong { font-family: var(--jli-serif); font-weight: 700; font-size: 20px; line-height: 1.25; }
.course__lineup-go { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 30px; line-height: 1; color: var(--jli-gold-dark); }
#featured, #coming-next { scroll-margin-top: 16px; }
.course { padding: 12px 10px 48px; }
@media (min-width: 768px) { .course { padding: 40px 20px 72px; } }
.course__sheet {
  max-width: 760px; margin: 0 auto; padding: 22px 18px 36px; background: var(--white);
  border-radius: var(--radius); color: #2A2D34;
}
@media (min-width: 768px) { .course__sheet { padding: 40px 56px 56px; } }
.course__banner img { display: block; width: 100%; height: auto; border-radius: var(--radius-sm); }
.course__eyebrow {
  margin: 24px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--jli-gold-dark);
}
.course__title { margin: 6px 0 0; font-family: var(--jli-serif); font-weight: 700; font-size: 32px; line-height: 1.2; color: var(--jli-navy); }
@media (min-width: 768px) { .course__title { font-size: 40px; } }
.course__tagline { margin: 10px 0 0; font-family: var(--jli-serif); font-style: italic; font-size: 19px; line-height: 1.45; color: #4A5368; }
.course__prose { margin-top: 28px; }
.course__prose p { margin: 0 0 1.15em; font-size: 17px; line-height: 1.75; }
.course__prose strong { font-style: italic; }

.course__facts { margin: 32px 0 0; padding: 22px 22px; background: #F6F2EA; border-radius: var(--radius); }
.course__facts dl { margin: 0; display: grid; gap: 16px; }
.course__facts dt { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--jli-navy); }
.course__facts dd { margin: 2px 0 0; font-size: 17px; line-height: 1.6; }
.course__free { font-weight: 700; color: var(--jli-gold-dark); }

.course__actions { display: grid; gap: 12px; margin: 24px 0 0; }
@media (min-width: 640px) { .course__actions { grid-template-columns: 1fr 1fr; } }
.course__btn { width: 100%; background: var(--jli-navy); color: var(--white); border: 2px solid var(--jli-navy); }
.course__btn:hover { background: var(--jli-gold-dark); border-color: var(--jli-gold-dark); color: var(--white); }
.course__btn--outline { background: transparent; color: var(--jli-navy); }

.course__lessons { margin: 28px 0 0; border: 1px solid rgba(23, 35, 64, 0.14); border-radius: var(--radius); }
.course__lessons summary {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 56px; padding: 14px 20px;
  cursor: pointer; list-style: none; font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--jli-navy);
}
.course__lessons summary::-webkit-details-marker { display: none; }
.course__lessons summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-top: -4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.2s;
}
.course__lessons[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.course__lessons summary:focus-visible { outline: 3px solid var(--jli-gold); outline-offset: 2px; border-radius: var(--radius); }
.course__lessons ol { list-style: none; margin: 0; padding: 0 20px 8px; }
.course__lessons li { padding: 16px 0; border-top: 1px solid rgba(23, 35, 64, 0.1); }
.course__lessons h3 { font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.4; color: var(--jli-navy); }
.course__lessons h3 span { text-transform: uppercase; letter-spacing: 0.02em; }
.course__lessons p { margin: 6px 0 0; font-size: 16px; line-height: 1.65; }

.course__notes { margin: 28px 0 0; text-align: center; font-size: 15px; font-style: italic; line-height: 1.6; color: #5A6070; }
.course__notes a { color: var(--jli-navy); }
.course__rule { margin: 36px 0 0; border: 0; border-top: 1px solid rgba(23, 35, 64, 0.12); }
#register { scroll-margin-top: 16px; }

.course__sheet + .course__sheet, .course__notes--page + .course__sheet { margin-top: 20px; }
.course__sheet--card .course__eyebrow { margin-top: 0; }
.course__sheet--card .course__banner + .course__eyebrow { margin-top: 22px; }
.course__card-title { margin: 6px 0 0; font-family: var(--jli-serif); font-weight: 700; font-size: 26px; line-height: 1.25; color: var(--jli-navy); }
.course__summary { margin: 12px 0 0; font-size: 17px; line-height: 1.7; }
.course__sheet--card .course__facts { margin-top: 20px; }
.course__folded { padding: 0 20px 12px; }
.course__folded .course__prose { margin-top: 4px; }
.course__folded-label {
  margin: 24px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--jli-gold-dark);
}
.course__folded ol { padding: 0; }
.course__notes--page { max-width: 760px; margin: 20px auto 0; }
.course__sheet--form .course__h2 { margin-top: 0; }
.course__more { margin: 28px 0 0; text-align: center; }
.course__more a { font-family: var(--font-head); font-weight: 700; color: var(--jli-navy); }

/* Registration form: light lines, small labels – like a well-made form app, not big boxes */
.course__h2 { margin: 32px 0 20px; font-family: var(--jli-serif); font-weight: 700; font-size: 26px; color: var(--jli-navy); }
.cform { display: grid; gap: 20px; }
.cform[hidden], .cform__done[hidden] { display: none; }
.cform__field { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; }
.cform__field > label:not(.cform__choice), .cform__field > legend {
  padding: 0; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: #23262F;
}
.cform__field > legend { margin-bottom: 8px; }
.cform__req { color: #B3261E; }
.cform__input {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #CFCAC0; border-radius: 6px;
  background: var(--white); font: inherit; font-size: 17px; color: #23262F; transition: border-color 0.15s, box-shadow 0.15s;
}
.cform__input::placeholder { color: #8A8F98; }
.cform__input:hover { border-color: #A9A397; }
.cform__input:focus { outline: none; border-color: var(--jli-navy); box-shadow: 0 0 0 3px rgba(23, 35, 64, 0.15); }
textarea.cform__input { resize: vertical; min-height: 96px; }
select.cform__input { appearance: auto; }
.cform__address { gap: 10px; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cform__choice { display: flex; align-items: flex-start; gap: 12px; padding: 6px 0; font-size: 17px; line-height: 1.45; cursor: pointer; }
.cform__choice input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--jli-navy); }
.cform__sub { margin: 0 0 6px 32px; display: grid; gap: 2px; }
.cform__sub[hidden], .cform__pay[hidden] { display: none; }
.cform__hint { margin: 0; font-size: 15px; font-style: italic; color: #5A6070; }
.cform__hint--indent { margin-left: 32px; margin-top: -4px; }
.cform__hint[hidden] { display: none; }
.cform__pay { padding: 18px 18px 14px; background: #F6F2EA; border-radius: var(--radius); display: grid; gap: 8px; }
.cform__pay-title { font-family: var(--jli-serif); font-weight: 700; font-size: 20px; color: var(--jli-navy); }
.cform__lines { list-style: none; margin: 4px 0 6px; padding: 0; }
.cform__lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid rgba(23, 35, 64, 0.1); font-size: 16px; }
.cform__lines li:last-child { border-bottom: 0; font-weight: 700; }
.cform__submit { justify-self: start; min-width: 200px; background: var(--jli-navy); color: var(--white); }
.cform__submit:hover { background: var(--jli-gold-dark); color: var(--white); }
@media (max-width: 639px) { .cform__submit { width: 100%; } }
.cform__status { margin: -6px 0 0; font-weight: 600; color: var(--jli-navy); }
.cform__status:empty { display: none; }
.cform__status.is-error { color: #A3342B; }
.cform__card { margin-top: 6px; }
.cform__card[hidden], .cform__card [hidden] { display: none; }
.cform__done { margin-top: 8px; padding: 22px; background: #F6F2EA; border-radius: var(--radius); font-size: 17px; }
.cform__done p { margin: 0; }
.cform__done p[hidden] { display: none; }
.cform__course { padding: 4px 0; border-bottom: 1px solid rgba(23, 35, 64, 0.1); }
.cform__course:first-of-type { border-top: 1px solid rgba(23, 35, 64, 0.1); }
.cform__choice--course { padding: 12px 0; }
.cform__choice--course strong { display: block; font-family: var(--jli-serif); font-size: 18px; color: var(--jli-navy); }
.cform__course-meta { display: block; margin-top: 2px; font-size: 15px; color: #5A6070; }
.cform__course > .cform__sub { margin-bottom: 12px; }
.cform__bundle { margin: 8px 0 0; font-weight: 600; color: var(--jli-gold-dark); }
.course__also { max-width: 560px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid rgba(23, 35, 64, 0.15); text-align: center; }
.course__also-title {
  margin: 0 0 6px; font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; color: #5C6478;
}
.course__also p { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; }
.course__also a { display: inline-flex; align-items: center; min-height: 44px; font-size: 17px; color: var(--jli-navy); text-decoration-color: var(--jli-gold); text-underline-offset: 4px; }
.course__also a:hover { color: var(--jli-gold-dark); }

/* ---------- Holiday dinners ---------- */
.dinners { max-width: 640px; margin: 0 auto; }
.dinners__loading { color: var(--muted); }
.dinners__label { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-dark); }
.dinners__name { margin: 6px 0 0; font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1.2; color: var(--teal); }
.dinners__evenings { list-style: none; margin: 12px 0 0; padding: 0; }
.dinners__evenings li { padding: 4px 0; font-size: 17px; }
.dinners__opens { margin: 12px 0 20px; font-weight: 600; }
.dinners__dinner + .dinners__dinner { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border); }
.dinners__line { margin: 10px 0 0; }
.dinners__line:first-of-type { font-family: var(--font-head); font-weight: 600; color: var(--green-dark); }
.dinners__form { margin-top: 36px; padding: 24px 20px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); }
@media (min-width: 640px) { .dinners__form { padding: 32px; } }
.dinners__form[hidden] { display: none; }
.dinners__where { margin: 0; font-weight: 600; }
.dinners__questions { margin: 0; font-size: 16px; color: var(--muted); }
.dinners .cform__submit { background: var(--teal); }
.dinners .cform__submit:hover { background: var(--green); }
.dinners .cform__choice input { accent-color: var(--teal); }
.dinners__other { max-width: 160px; }
.dinners__clear { margin-left: 6px; padding: 0; border: 0; background: none; font: inherit; font-style: normal; color: var(--teal); text-decoration: underline; cursor: pointer; }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid #CFCAC0; border-radius: 6px; overflow: hidden; width: max-content; }
.stepper button { width: 48px; min-height: 46px; border: 0; background: #F3F1EC; font-size: 22px; color: #23262F; cursor: pointer; }
.stepper .cform__input { width: 70px; border: 0; border-radius: 0; text-align: center; -moz-appearance: textfield; }
.stepper .cform__input::-webkit-outer-spin-button, .stepper .cform__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.dinners [hidden] { display: none !important; }
.course__unit { padding: 16px 0 4px; border-top: 1px solid rgba(23, 35, 64, 0.1); }
.course__lessons .course__unit-title { font-family: var(--jli-serif); font-weight: 700; font-size: 18px; color: var(--jli-navy); }
.course__unit > p { margin: 6px 0 0; font-size: 16px; line-height: 1.65; }
.course__unit ol li:first-child { border-top: 0; }
.course__subtitle { margin: 8px 0 0; font-size: 16px; color: #5A6070; }
.prose-note { font-size: 16px !important; color: var(--muted); }
.prose-standout { margin: 0 auto; max-width: 560px; text-align: center; font-family: var(--font-head); font-weight: 600; font-size: 20px; line-height: 1.45; color: var(--teal-dark); }


/* ---------- Neighborhood celebrations ---------- */
.park--next { max-width: 640px; margin: 0 auto; text-align: center; }
.park--next .flyer { margin-bottom: 28px; }
.park__name { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 26px; line-height: 1.2; color: var(--teal); }
.park__when { margin: 10px 0 0; font-size: 17px; font-weight: 600; }
.park__details { margin-top: 16px; }
.park__details p { margin: 6px 0 0; }
.park__list .holiday-list__date { text-align: right; }

/* ---------- "See photos" (full-screen photos) ---------- */
.photos { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: #0d1a1a; }
.photos::backdrop { background: rgba(10, 20, 20, 0.94); }
.photos__list { list-style: none; margin: 0 auto; padding: 64px 12px 32px; max-width: 824px; display: grid; gap: 12px; }
.photos__list img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.photos__close { position: fixed; top: 12px; right: 12px; z-index: 1; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--white); color: #222; font-size: 30px; line-height: 44px; cursor: pointer; }
.gallery + .prose-actions { margin-top: 20px; text-align: center; }
.prose:has([data-photos]) .gallery__item { cursor: pointer; }

/* ---------- {formal} sections: the course-page look (navy, gold, serif) for paid, structured offerings ---------- */
.section--formal { background: var(--jli-navy); color: rgba(255, 255, 255, 0.92); }
.section--formal .section-title { font-family: var(--jli-serif); font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--white); }
.section--formal .accent-bar { background: var(--jli-gold); }
.section--formal .prose a:not(.btn) { color: var(--jli-gold); }
.section--formal .prose strong { color: var(--jli-gold); font-family: var(--font-head); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.section--formal .prose-list li::marker, .section--formal .prose-list li::before { color: var(--jli-gold); background-color: var(--jli-gold); }
.section--formal .btn--primary { background: var(--jli-gold); color: var(--jli-navy); }
.section--formal .btn--primary:hover { background: var(--white); color: var(--jli-navy); }
.section--formal .cform, .section--formal form { color: var(--text, #343333); }
.section--formal .btn--submit { background: var(--jli-navy); color: var(--white); }
.section--formal .btn--submit:hover { background: var(--jli-gold-dark); }

/* ---------- Torah study page top: short navy title, cream description, then the catalog band ---------- */
.jli-hero--short .jli-hero__band { padding: 40px 20px 36px; }
@media (min-width: 768px) { .jli-hero--short .jli-hero__band { padding: 60px 20px 52px; } }
.torah-intro { background: var(--jli-cream); color: var(--jli-navy); padding: 32px 0 30px; text-align: center; }
@media (min-width: 768px) { .torah-intro { padding: 44px 0 40px; } }
.torah-intro__text { margin: 0 auto; max-width: 640px; font-size: 18px; line-height: 1.65; }
.torah-intro__credits { margin: 18px auto 0; max-width: 560px; font-size: 14px; line-height: 1.55; color: #5C6478; }
.torah-intro__credits strong { color: var(--jli-gold-dark); }
.course__catalog a { color: inherit; text-decoration: none; }
.course__catalog a:hover { text-decoration: underline; text-decoration-color: var(--jli-gold); }
.hs-note { margin: 10px auto 0; max-width: 460px; font-size: 14px; font-style: italic; color: var(--hs-navy); opacity: 0.8; }
.hs-note__link { padding: 0; border: 0; background: none; font: inherit; font-style: normal; font-weight: 700; color: var(--hs-coral); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hs-note__form { max-width: 520px; margin: 16px auto 0; text-align: left; }
a.hs-note__link { display: inline; }

/* Kids page (2026-10-30): the wave leads into a navy Hebrew School band (details, points, the main button);
   the program sections below start with a straight edge on cream, so they read as separate */
.hs-info { background: var(--hs-navy); color: var(--white); padding: 12px 0 44px; text-align: center; }
@media (min-width: 768px) { .hs-info { padding: 20px 0 56px; } }
.hs-info .hs-details span:not(.hs-dot) { color: var(--white); }
.hs-info .hs-details .hs-dot { color: var(--hs-yellow); }
.hs-info .hs-points li { color: var(--white); }
.hs-info .hs-points li::before { color: var(--hs-yellow); }
.hs-info .hs-note { color: var(--white); opacity: 0.85; margin-top: 18px; }
.hs-info .hs-note__link { color: var(--hs-yellow); }
.hs-cta { font-size: 19px; padding: 14px 32px; box-shadow: 0 6px 18px rgba(217, 71, 62, 0.35); }
.hs-cta--band { margin-top: 22px; background: var(--hs-yellow); color: var(--hs-navy); box-shadow: none; }
.hs-cta--band:hover { background: var(--white); color: var(--hs-navy); }
/* sections below: cream first (straight edge after the navy band), then navy, alternating */
.theme-hebrew-school.section--gray { background: #FBF7EF; }
.theme-hebrew-school.section--gray .section-title { color: var(--hs-coral); }
.theme-hebrew-school.section--gray .prose > p, .theme-hebrew-school.section--gray .prose > p a,
.theme-hebrew-school.section--gray .prose li, .theme-hebrew-school.section--gray .prose strong { color: var(--hs-navy); }
.theme-hebrew-school.section--gray .btn--outline { background: none; border-color: var(--hs-coral); color: var(--hs-coral); }
.theme-hebrew-school.section--gray .btn--outline:hover { background: var(--hs-coral); color: var(--white); }
.theme-hebrew-school.section--ivory { background: var(--hs-navy); }
.theme-hebrew-school.section--ivory .section-title { color: var(--white); }
.theme-hebrew-school.section--ivory .prose > p, .theme-hebrew-school.section--ivory .prose strong { color: var(--white); }
.theme-hebrew-school.section--ivory .btn--outline { background: none; border-color: var(--white); color: var(--white); }
.theme-hebrew-school.section--ivory .btn--outline:hover { background: var(--white); color: var(--hs-navy); }
.hs-badge__small { font-size: 10.5px; font-weight: 700; margin-top: 3px; opacity: 0.95; }
@media (min-width: 600px) { .hs-badge__small { font-size: 14px; margin-top: 5px; } }
@media (min-width: 1024px) { .hs-badge__small { font-size: 16px; } }
.hs-info { padding-top: 24px; }
@media (min-width: 1000px) {
  .hs-hero:has(.hs-badge) { padding-bottom: 300px; }
  .hs-stage .hs-badge { margin-bottom: 64px; width: 220px; height: 220px; }
}
.hs-badge__stars { margin: 4px 0; font-size: 9px; letter-spacing: 0.35em; color: var(--hs-yellow); }
@media (min-width: 600px) { .hs-badge__stars { margin: 8px 0; font-size: 12px; } }

/* Footer, compact (Meir, 2026-10-30): no repeated name line (the logo and © line carry it), smaller text,
   phone and email share a line, smaller logo and buttons */
.site-footer { padding: 28px 0 24px; }
.footer__inner { gap: 14px; }
.site-footer .brand { transform: scale(0.85); transform-origin: center; margin: -4px 0; }
.footer__line { font-size: 15px; line-height: 1.6; }
.footer__pair { display: inline-flex; flex-wrap: wrap; justify-content: center; column-gap: 10px; }
.footer__pair .footer__sep { display: inline; }
.footer__social .btn--donate { min-height: 38px; padding: 6px 18px; font-size: 15px; }
.footer__social .social { width: 38px; height: 38px; }
.footer__social .social .icon { width: 18px; height: 18px; }
.footer__small { font-size: 13px; }
.social--label { width: auto !important; padding: 0 16px 0 12px; border-radius: var(--radius-sm); gap: 6px; font-weight: 700; font-size: 15px; text-decoration: none; }
.footer__social .social--label { height: 38px; }
.link-button { padding: 0; border: 0; background: none; font: inherit; color: var(--teal); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { color: var(--green-dark); }
.card .form-reveal { margin-top: 16px; }
.drawer__bottom a { gap: 8px; }
.drawer__bottom a .icon { width: 16px; height: 16px; }
