/* =========================================================
   Congregation Beis Medrash Nadvorna — Bloomingburg
   Design system: lake blue + forest green, bright resort feel, calm motion
   ========================================================= */

/* Vilna — "Romm Vilna" by Ilan Elovitz (SIL Open Font License), modeled on the
   Romm Vilna Shas type. unicode-range limits it to Hebrew/Yiddish letters, so it
   sits first in every font stack and only ever draws Hebrew characters. */
@font-face {
  font-family: "Vilna";
  src: url("https://cdn.jsdelivr.net/gh/aharonium/fonts@master/Fonts/Hebrew%20Letters%20only/Ilan%20Elovitz%20(OFL)/RommVilna/RommVilna-Regular.ttf") format("truetype");
  font-weight: 100 500;
  font-display: swap;
  size-adjust: 116%;
  unicode-range: U+0590-05FF, U+FB1D-FB4F, U+200F;
}
@font-face {
  font-family: "Vilna";
  src: url("https://cdn.jsdelivr.net/gh/aharonium/fonts@master/Fonts/Hebrew%20Letters%20only/Ilan%20Elovitz%20(OFL)/RommVilna/RommVilna-Heading.otf") format("opentype");
  font-weight: 600 700;
  font-display: swap;
  size-adjust: 116%;
  unicode-range: U+0590-05FF, U+FB1D-FB4F, U+200F;
}
@font-face {
  font-family: "Vilna";
  src: url("https://cdn.jsdelivr.net/gh/aharonium/fonts@master/Fonts/Hebrew%20Letters%20only/Ilan%20Elovitz%20(OFL)/RommVilna/RommVilna-Title.otf") format("opentype");
  font-weight: 800 900;
  font-display: swap;
  size-adjust: 116%;
  unicode-range: U+0590-05FF, U+FB1D-FB4F, U+200F;
}

:root {
  /* Lake & forest — upstate New York resort */
  --brand-950: #052a36;
  --brand-900: #0a3a4c;
  --brand-800: #0c4a60;
  --brand-700: #0f5f79;
  --brand-600: #137a94;
  --brand-500: #1a96ad;
  --brand-100: #dcf0f3;
  --accent-700: #0f6e4a;
  --accent-600: #12875a;
  --accent-500: #2bbf88;
  --accent-400: #6fdcb2;
  --accent-300: #a6ecd0;
  --accent-200: #c9f2e0;
  --accent-50: #eaf8f1;
  --sun: #f6c453;
  --ivory: #f3f9f8;
  --paper: #ffffff;
  --mist: #e8f2f1;
  --line: #d9e8e8;
  --line-2: #c3d7d8;
  --ink: #0b2530;
  --ink-2: #3f5a64;
  --ink-3: #6d858c;
  --green: #12875a;
  --green-50: #e8f6ef;
  --red: #b3443a;
  --red-50: #fbecea;
  --blue: #1a6fa0;
  --blue-50: #e6f2f9;
  --grad-hero: linear-gradient(115deg, #0a3a4c 0%, #0f5f79 45%, #13927f 100%);

  --f-display: "Vilna", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-caps: "Vilna", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-body: "Vilna", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-hebrew: "Vilna", "David", "Times New Roman", serif;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-1: 0 1px 2px rgba(10, 58, 76, .04), 0 2px 10px -2px rgba(10, 58, 76, .07);
  --shadow-2: 0 14px 34px -12px rgba(10, 58, 76, .22), 0 4px 10px -4px rgba(10, 58, 76, .08);
  --shadow-3: 0 30px 60px -20px rgba(5, 42, 54, .38), 0 10px 24px -10px rgba(5, 42, 54, .2);
  --ease: cubic-bezier(.22, .7, .2, 1);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --topbar-h: 0px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--topbar-h) + 16px); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, audio, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; line-height: 1.15; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent-500); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-200); color: var(--brand-900); }

.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--accent-500); color: var(--brand-950); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 700; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.he, [lang="he"], [lang="yi"] { font-family: var(--f-hebrew); }
.he { direction: rtl; unicode-bidi: isolate; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-caps); font-size: 12px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent-600);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow--light { color: var(--accent-400); }
.eyebrow--plain::before { display: none; }

.display { font-family: var(--f-display); font-weight: 800; letter-spacing: -.03em; }
.h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(38px, 5.4vw, 70px); line-height: 1.04; letter-spacing: -.035em; }
.h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.03em; }
.h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 2vw, 25px); line-height: 1.25; letter-spacing: -.02em; }
.h4 { font-family: var(--f-body); font-weight: 700; font-size: 17px; line-height: 1.35; }
.lead { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.65; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: 13.5px; }
.accent-text { color: var(--accent-600); }
.italic { font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--brand-900); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  font-weight: 600; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s, border-color .25s;
  user-select: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn .icon { width: 18px; height: 18px; }
.btn--accent { --bg: var(--accent-600); --fg: #fff; }
.btn--accent:hover { --bg: var(--accent-700); }
.btn--primary { --bg: var(--brand-700); }
.btn--primary:hover { --bg: var(--brand-600); }
.btn--ghost { --bg: transparent; --fg: var(--brand-900); --bd: var(--line-2); }
.btn--ghost:hover { --bg: var(--paper); --bd: var(--brand-900); box-shadow: none; }
.btn--glass { --bg: rgba(255, 255, 255, .1); --fg: #fff; --bd: rgba(255, 255, 255, .28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { --bg: rgba(255, 255, 255, .2); box-shadow: none; }
.btn--light { --bg: #fff; --fg: var(--brand-800); }
.btn--light:hover { --bg: #f2fbfa; }
.btn--danger { --bg: var(--red); --fg: #fff; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn--xs { min-height: 32px; padding: 0 12px; font-size: 13px; gap: 6px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--square { padding: 0; width: 44px; min-height: 44px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--brand-900); }
.link-arrow .icon { transition: transform .3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--mist); color: var(--ink-2); border: 1px solid var(--line);
}
button.chip { cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.chip--glass { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.chip--accent { background: var(--accent-50); color: var(--accent-700); border-color: var(--accent-200); }
.chip--green { background: var(--green-50); color: var(--green); border-color: #cfe6da; }
.chip--red { background: var(--red-50); color: var(--red); border-color: #f1d2ce; }
.chip--blue { background: var(--blue-50); color: var(--blue); border-color: #d3e0ee; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.dot--pulse { position: relative; }
.dot--pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: currentColor; opacity: .35; animation: pulse 2s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .5; } 100% { transform: scale(1.8); opacity: 0; } }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--header-h);
  color: #fff; transition: background-color .35s, color .35s, box-shadow .35s, transform .45s var(--ease), top .45s var(--ease);
}
.site-header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 42, 54, .55), rgba(5, 42, 54, 0)); pointer-events: none; transition: opacity .35s; }
.site-header.is-solid { background: rgba(255, 255, 255, .9); color: var(--brand-900); box-shadow: 0 1px 0 var(--line), 0 8px 30px -18px rgba(10, 58, 76, .3); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.site-header.is-solid::before { opacity: 0; }
.site-header.is-hidden { transform: translateY(calc(-100% - var(--topbar-h))); }
.site-header { top: var(--topbar-h); }
.site-header.is-light-page { background: rgba(255, 255, 255, .92); color: var(--brand-900); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header.is-light-page::before { opacity: 0; }
.site-header .container { position: relative; height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__logo { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(43, 191, 136, .5), 0 4px 14px rgba(0, 0, 0, .25); flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand__name { font-family: var(--f-caps); font-weight: 600; font-size: 17px; letter-spacing: .12em; white-space: nowrap; }
.brand__sub { font-family: var(--f-caps); font-size: 10.5px; letter-spacing: .26em; opacity: .75; white-space: nowrap; margin-top: 3px; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav__link { position: relative; padding: 10px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; opacity: .88; transition: opacity .2s, background-color .2s; }
.nav__link:hover { opacity: 1; background: rgba(255, 255, 255, .1); }
.is-solid .nav__link:hover, .is-light-page .nav__link:hover { background: rgba(10, 58, 76, .06); }
.nav__link[aria-current="page"] { opacity: 1; }
.nav__link[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent-500); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transition: background-color .2s; position: relative; }
.icon-btn:hover { background: rgba(255, 255, 255, .12); }
.is-solid .icon-btn:hover, .is-light-page .icon-btn:hover { background: rgba(10, 58, 76, .07); }
.icon-btn .icon { width: 22px; height: 22px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-500); color: var(--brand-950); font-weight: 700; font-size: 14px; }
.burger { display: none; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: inline-grid; }
  .header-actions { margin-left: auto; }
  .header-actions .btn--donate { display: none; }
}
@media (max-width: 420px) {
  .brand__sub { display: none; }
  .brand__name { font-size: 15px; }
}

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(5, 42, 54, .5); opacity: 0; transition: opacity .35s; backdrop-filter: blur(2px); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw);
  background: var(--brand-900); color: #fff; padding: 20px 24px 32px;
  transform: translateX(100%); transition: transform .45s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
  background-image: radial-gradient(120% 60% at 100% 0%, rgba(43, 191, 136, .14), transparent 60%);
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.drawer__nav a { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); font-family: var(--f-display); font-size: 24px; }
.drawer__nav a[aria-current="page"] { color: var(--accent-400); }
.drawer__nav a .icon { opacity: .4; }
.drawer__foot { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; }

/* =========================================================
   Background slider (slow crossfade + Ken Burns)
   ========================================================= */
.bg-slider { position: absolute; inset: 0; overflow: hidden; background: var(--brand-900); }
.bg-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 2.4s ease-in-out; }
.bg-slide.is-active { opacity: 1; z-index: 1; }
.bg-slide.is-leaving { opacity: 0; z-index: 0; }
.bg-slide__img { position: absolute; inset: -2%; background-size: cover; background-position: center; will-change: transform; transform: scale(1.04); }
.bg-slide.is-active .bg-slide__img, .bg-slide.is-leaving .bg-slide__img { animation: kb-in var(--kb, 18s) linear forwards; }
.bg-slide:nth-child(3n+2).is-active .bg-slide__img, .bg-slide:nth-child(3n+2).is-leaving .bg-slide__img { animation-name: kb-left; }
.bg-slide:nth-child(3n+3).is-active .bg-slide__img, .bg-slide:nth-child(3n+3).is-leaving .bg-slide__img { animation-name: kb-out; }
@keyframes kb-in { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.16) translate3d(-1%, -1%, 0); } }
@keyframes kb-left { from { transform: scale(1.14) translate3d(2%, 0, 0); } to { transform: scale(1.14) translate3d(-2%, -1%, 0); } }
@keyframes kb-out { from { transform: scale(1.18) translate3d(0, 1%, 0); } to { transform: scale(1.05) translate3d(0, 0, 0); } }
.bg-overlay { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

.slider-ui { position: absolute; z-index: 5; left: 0; right: 0; bottom: 28px; }
.slider-ui .container { display: flex; align-items: center; gap: 18px; color: #fff; }
.slider-caption { font-family: var(--f-caps); font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; opacity: .8; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: opacity .6s; }
.slider-dots { display: flex; gap: 8px; margin-left: auto; }
.slider-dot { position: relative; width: 38px; height: 22px; display: grid; align-items: center; }
.slider-dot::before { content: ""; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .3); }
.slider-dot span { position: absolute; left: 0; top: 10px; height: 2px; width: 0; border-radius: 2px; background: var(--accent-400); }
.slider-dot.is-done span { width: 100%; }
.slider-dot.is-active span { animation: dot-fill var(--dur, 7s) linear forwards; }
.slider-paused .slider-dot.is-active span { animation-play-state: paused; }
@keyframes dot-fill { from { width: 0; } to { width: 100%; } }
.slider-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .25); color: #fff; transition: background-color .2s; }
.slider-btn:hover { background: rgba(255, 255, 255, .12); }
.slider-btn .icon { width: 16px; height: 16px; }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; min-height: max(640px, min(100svh, 980px)); color: #fff; display: flex; align-items: center; isolation: isolate; }
.hero .bg-overlay {
  background:
    linear-gradient(90deg, rgba(5, 42, 54, .82) 0%, rgba(5, 42, 54, .55) 45%, rgba(5, 42, 54, .12) 100%),
    linear-gradient(180deg, rgba(5, 42, 54, .25) 0%, rgba(5, 42, 54, 0) 30%, rgba(5, 42, 54, .55) 100%);
}
.hero__inner { position: relative; z-index: 4; width: 100%; padding-top: calc(var(--header-h) + var(--topbar-h) + 40px); padding-bottom: 120px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr); gap: 56px; align-items: end; }
.hero__he { font-family: var(--f-hebrew); font-size: clamp(20px, 2.1vw, 28px); color: var(--accent-400); font-weight: 500; margin: 18px 0 14px; direction: rtl; text-align: left; unicode-bidi: plaintext; }
.hero__title { max-width: 14ch; text-wrap: balance; }
.hero__title em { font-style: italic; color: var(--accent-400); font-weight: 500; }
.hero__lead { margin-top: 22px; max-width: 54ch; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.7; color: rgba(255, 255, 255, .82); }
.hero__ctas { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__meta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 10px; }

.glass-card {
  background: linear-gradient(160deg, rgba(12, 74, 96, .72), rgba(5, 42, 54, .72));
  border: 1px solid rgba(111, 220, 178, .28);
  border-radius: var(--r-xl); padding: 26px;
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.next-card__label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-400); }
.next-card__name { margin-top: 18px; font-family: var(--f-display); font-size: 30px; line-height: 1.1; }
.next-card__time { font-family: var(--f-display); font-size: 54px; line-height: 1; margin-top: 6px; color: #fff; letter-spacing: -.02em; }
.next-card__time small { font-size: 20px; margin-left: 6px; color: rgba(255, 255, 255, .7); font-family: var(--f-body); letter-spacing: 0; }
.next-card__where { margin-top: 10px; font-size: 14px; color: rgba(255, 255, 255, .7); display: flex; align-items: center; gap: 8px; }
.next-card__bar { margin-top: 20px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.next-card__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-600), var(--accent-400)); border-radius: inherit; transition: width 1s linear; }
.next-card__list { margin-top: 18px; display: grid; gap: 2px; }
.next-card__list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; color: rgba(255, 255, 255, .78); }
.next-card__list li b { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.next-card__foot { margin-top: 18px; display: flex; gap: 10px; }

.scroll-cue { position: absolute; z-index: 5; left: 50%; bottom: 84px; transform: translateX(-50%); width: 24px; height: 38px; border: 1.5px solid rgba(255, 255, 255, .45); border-radius: 14px; display: none; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 36px; padding-bottom: 110px; }
  .hero .bg-overlay { background: linear-gradient(180deg, rgba(5, 42, 54, .55) 0%, rgba(5, 42, 54, .6) 50%, rgba(5, 42, 54, .88) 100%); }
  .hero__title { max-width: 16ch; }
}

/* Page hero (inner pages) */
.page-hero { position: relative; min-height: clamp(420px, 62vh, 620px); color: #fff; display: flex; align-items: flex-end; isolation: isolate; }
.page-hero .bg-overlay { background: linear-gradient(180deg, rgba(5, 42, 54, .5) 0%, rgba(5, 42, 54, .35) 40%, rgba(5, 42, 54, .85) 100%); }
.page-hero__inner { position: relative; z-index: 4; width: 100%; padding-top: calc(var(--header-h) + var(--topbar-h) + 60px); padding-bottom: 92px; }
.page-hero__title { margin-top: 16px; max-width: 18ch; text-wrap: balance; }
.page-hero__he { font-family: var(--f-hebrew); font-size: clamp(18px, 1.8vw, 24px); color: var(--accent-400); margin-top: 10px; }
.page-hero__lead { margin-top: 18px; max-width: 60ch; color: rgba(255, 255, 255, .82); font-size: clamp(15px, 1.3vw, 18px); }
.page-hero .slider-ui { bottom: auto; top: calc(var(--header-h) + var(--topbar-h) + 14px); }
.page-hero .slider-ui .container { justify-content: flex-end; }

/* Breadcrumb */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: rgba(255, 255, 255, .7); }
.crumbs a:hover { color: #fff; }

/* =========================================================
   Sections
   ========================================================= */
.section { padding-block: clamp(72px, 9vw, 128px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--paper { background: var(--paper); }
.section--mist { background: var(--mist); }
.section--deep { background: var(--brand-900); color: #fff; }
.section--deep .lead { color: rgba(255, 255, 255, .72); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 32px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.sec-head--center .lead { max-width: 60ch; }
.sec-head .h2 { margin-top: 14px; }
@media (max-width: 860px) { .sec-head { grid-template-columns: 1fr; } }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Today strip ---------- */
.today { position: relative; z-index: 6; margin-top: -64px; }
.today__card { background: var(--paper); border-radius: var(--r-xl); box-shadow: var(--shadow-2); border: 1px solid var(--line); padding: 22px 26px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.today__date { display: flex; align-items: center; gap: 16px; padding-right: 28px; border-right: 1px solid var(--line); }
.today__icon { width: 52px; height: 52px; border-radius: 16px; background: var(--brand-900); color: var(--accent-400); display: grid; place-items: center; flex: none; }
.today__icon .icon { width: 24px; height: 24px; }
.today__clock { font-family: var(--f-display); font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.today__heb { font-family: var(--f-hebrew); font-size: 18px; color: var(--accent-700); margin-top: 6px; direction: rtl; unicode-bidi: plaintext; }
.today__eng { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.zman-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.zman { padding: 10px 12px; border-radius: var(--r); background: var(--ivory); border: 1px solid transparent; transition: border-color .2s, background-color .2s; }
.zman__label { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zman__time { font-family: var(--f-display); font-size: 20px; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zman.is-next { background: var(--accent-50); border-color: var(--accent-200); }
.zman.is-next .zman__label { color: var(--accent-700); }
.zman.is-past { opacity: .55; }
@media (max-width: 1180px) {
  .today__card { grid-template-columns: 1fr; gap: 18px; }
  .today__date { border-right: 0; padding-right: 0; }
  .today__card > .link-arrow { justify-self: start; }
}
@media (max-width: 720px) {
  .zman-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .today { margin-top: -48px; }
  .today__card { padding: 18px; }
}

/* ---------- Cards ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.card--pad { padding: clamp(20px, 2.4vw, 30px); }
.card--hover { transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--line-2); }

.feature { display: flex; flex-direction: column; overflow: hidden; }
.feature__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-800); }
.feature__media > div { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1.2s var(--ease); }
.feature:hover .feature__media > div { transform: scale(1.06); }
.feature__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(5, 42, 54, .55)); }
.feature__tag { position: absolute; left: 16px; bottom: 14px; z-index: 1; font-family: var(--f-hebrew); color: #fff; font-size: 19px; }
.feature__body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.feature__body p { color: var(--ink-2); font-size: 15px; }
.feature__facts { margin-top: 6px; display: grid; gap: 6px; font-size: 13.5px; }
.feature__facts li { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; border-top: 1px dashed var(--line); }
.feature__facts li span:first-child { color: var(--ink-3); }
.feature__facts li span:last-child { font-weight: 600; text-align: right; }
.feature .link-arrow { margin-top: auto; padding-top: 10px; font-size: 14.5px; }

.icon-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-50); color: var(--accent-700); border: 1px solid var(--accent-200); flex: none; }
.icon-tile .icon { width: 22px; height: 22px; }
.icon-tile--brand { background: var(--brand-900); color: var(--accent-400); border-color: var(--brand-900); }
.icon-tile--sm { width: 40px; height: 40px; border-radius: 12px; }
.icon-tile--sm .icon { width: 18px; height: 18px; }

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; padding: 5px; gap: 4px; background: var(--mist); border: 1px solid var(--line); border-radius: 999px; flex-wrap: wrap; }
.tab { padding: 9px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); transition: background-color .25s, color .25s, box-shadow .25s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--paper); color: var(--brand-900); box-shadow: var(--shadow-1); }
.tabs--dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); }
.tabs--dark .tab { color: rgba(255, 255, 255, .7); }
.tabs--dark .tab[aria-selected="true"] { background: var(--accent-500); color: var(--brand-950); }

/* ---------- Schedule ---------- */
.sched { display: grid; gap: 8px; }
.sched__row { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: center; padding: 14px 18px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); transition: border-color .2s, background-color .2s, opacity .2s; }
.sched__time { font-family: var(--f-display); font-size: 21px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sched__place { font-weight: 600; font-size: 14.5px; }
.sched__note { font-size: 13px; color: var(--ink-3); }
.sched__row.is-past { opacity: .5; }
.sched__row.is-next { border-color: var(--accent-400); background: var(--accent-50); box-shadow: 0 0 0 3px rgba(43, 191, 136, .15); }
@media (max-width: 520px) { .sched__row { grid-template-columns: 78px 1fr; } .sched__row > :last-child { grid-column: 1 / -1; justify-self: start; } }

/* ---------- Quote band (slow slider bg) ---------- */
.quote-band { position: relative; color: #fff; text-align: center; isolation: isolate; padding-block: clamp(110px, 14vw, 180px); overflow: hidden; }
.quote-band .bg-overlay { background: radial-gradient(80% 90% at 50% 50%, rgba(5, 42, 54, .45), rgba(5, 42, 54, .8)); }
.quote-band__inner { position: relative; z-index: 4; }
.quote-band__he { font-family: var(--f-hebrew); font-size: clamp(34px, 5vw, 64px); line-height: 1.25; color: var(--accent-200); font-weight: 500; }
.quote-band__en { margin-top: 18px; font-family: var(--f-display); font-style: italic; font-size: clamp(18px, 2vw, 24px); color: rgba(255, 255, 255, .85); }
.quote-band__src { margin-top: 16px; font-family: var(--f-caps); letter-spacing: .24em; font-size: 11.5px; color: var(--accent-400); }

/* ---------- Split / traveler ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.map-frame { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-2); border: 1px solid var(--line); background: var(--mist); aspect-ratio: 4 / 3.2; }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: saturate(.85) contrast(1.02); }
.map-pin-card { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 14px; background: rgba(255, 255, 255, .96); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow-2); color: var(--ink); backdrop-filter: blur(8px); }
.amenities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.amenity { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.amenity b { display: block; font-size: 14.5px; }
.amenity span { font-size: 13px; color: var(--ink-3); }
@media (max-width: 520px) { .amenities { grid-template-columns: 1fr; } }

/* ---------- Give / donate ---------- */
.give { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 960px) { .give { grid-template-columns: 1fr; } }
.amount-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.amount { position: relative; min-height: 56px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--paper); font-family: var(--f-display); font-size: 22px; transition: border-color .2s, background-color .2s, transform .2s var(--ease), color .2s; }
.amount small { display: block; font-family: var(--f-body); font-size: 13px; color: var(--ink-3); margin-top: -2px; }
.amount:hover { border-color: var(--brand-600); transform: translateY(-1px); }
.amount[aria-pressed="true"] { border-color: var(--brand-900); background: var(--brand-900); color: #fff; }
.amount[aria-pressed="true"] small { color: var(--accent-400); }
.money-input { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--paper); padding: 0 16px; min-height: 56px; transition: border-color .2s, box-shadow .2s; }
.money-input:focus-within { border-color: var(--brand-900); box-shadow: 0 0 0 4px rgba(15, 95, 121, .08); }
.money-input span { font-family: var(--f-display); font-size: 22px; color: var(--ink-3); }
.money-input input { border: 0; outline: 0; background: transparent; width: 100%; font-family: var(--f-display); font-size: 22px; min-width: 0; }

.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.item-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: var(--r-lg); background: var(--paper); border: 1.5px solid var(--line); transition: border-color .25s, box-shadow .25s, transform .3s var(--ease); text-align: left; }
.item-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.item-card.is-selected { border-color: var(--brand-900); box-shadow: 0 0 0 4px rgba(10, 58, 76, .07); }
.item-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.item-card__emoji { font-size: 30px; line-height: 1; }
.item-card__price { font-family: var(--f-display); font-size: 26px; }
.item-card__title { font-weight: 700; font-size: 16px; }
.item-card__he { font-family: var(--f-hebrew); color: var(--accent-700); font-size: 15px; }
.item-card__desc { color: var(--ink-2); font-size: 14px; flex: 1; }
.item-store { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink-3); padding: 8px 10px; border-radius: 10px; background: var(--mist); }
.item-store .icon { width: 15px; height: 15px; margin-top: 1px; color: var(--brand-600); flex: none; }
.item-store a { color: var(--brand-700); font-weight: 700; display: inline-flex; align-items: center; gap: 3px; }
.item-store a .icon { width: 12px; height: 12px; margin: 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; background: var(--paper); }
.qty button { width: 36px; height: 34px; display: grid; place-items: center; font-size: 18px; color: var(--brand-900); }
.qty button:hover { background: var(--mist); }
.qty output { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field > label, .field__label { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field__hint { font-size: 12.5px; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: var(--r);
  border: 1.5px solid var(--line); background: var(--paper); outline: 0;
  transition: border-color .2s, box-shadow .2s; font-size: 15px;
}
.textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23485263' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand-900); box-shadow: 0 0 0 4px rgba(15, 95, 121, .08); }
.input::placeholder, .textarea::placeholder { color: #a3a9b3; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand-900); flex: none; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background-color .2s, color .2s; }
.seg input:checked + span { background: var(--paper); color: var(--brand-900); box-shadow: var(--shadow-1); }
.seg input:focus-visible + span { outline: 2px solid var(--accent-500); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .3s var(--ease); color: var(--ink-3); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details > div { padding: 0 20px 18px; color: var(--ink-2); font-size: 15px; }

/* ---------- Media / audio player ---------- */
.media-list { display: grid; gap: 10px; }
.media-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 16px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s; }
.media-item:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.media-item.is-playing { border-color: var(--accent-400); background: var(--accent-50); }
.play-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-900); color: #fff; transition: transform .2s var(--ease), background-color .2s; }
.play-btn:hover { transform: scale(1.05); background: var(--brand-700); }
.play-btn .icon { width: 20px; height: 20px; }
.media-item__title { font-weight: 700; }
.media-item__meta { font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 2px; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.video-card { overflow: hidden; }
.video-card video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-card__body { padding: 16px 18px 18px; }

.player-dock { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 150%); z-index: 80; width: min(760px, calc(100% - 24px)); background: var(--brand-900); color: #fff; border-radius: 20px; padding: 12px 16px; box-shadow: var(--shadow-3); display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; transition: transform .5s var(--ease); border: 1px solid rgba(111, 220, 178, .25); }
.player-dock.is-open { transform: translate(-50%, 0); }
.player-dock .play-btn { width: 44px; height: 44px; background: var(--accent-500); color: var(--brand-950); }
.player-dock__title { font-weight: 700; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-dock__bar { display: flex; align-items: center; gap: 10px; font-size: 12px; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums; margin-top: 4px; }
.player-dock input[type="range"] { flex: 1; accent-color: var(--accent-500); height: 4px; }
.player-dock__actions { display: flex; gap: 4px; align-items: center; }
.player-dock__actions button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: rgba(255, 255, 255, .8); font-size: 12px; font-weight: 700; }
.player-dock__actions button:hover { background: rgba(255, 255, 255, .1); color: #fff; }
@media (max-width: 760px) { .player-dock { bottom: 84px; } }

/* ---------- Pop-up minyan ---------- */
.gather { display: grid; gap: 14px; }
.gather-card { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 20px 22px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden; }
.gather-card.is-formed { border-color: #bfdcc9; background: linear-gradient(135deg, #f1f9f4, #fff 60%); }
.ring { --p: 0; position: relative; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--accent-500) calc(var(--p) * 1%), var(--mist) 0); transition: --p 1s; }
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--paper); }
.ring b { position: relative; font-family: var(--f-display); font-size: 24px; line-height: 1; }
.ring small { position: relative; display: block; font-size: 10px; color: var(--ink-3); text-align: center; margin-top: 2px; }
.is-formed .ring { background: conic-gradient(var(--green) 100%, var(--mist) 0); }
.gather-card__title { font-family: var(--f-display); font-size: 22px; }
.gather-card__meta { font-size: 13.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
.gather-card__who { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.gather-card__actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
@media (max-width: 640px) { .gather-card { grid-template-columns: auto 1fr; } .gather-card__actions { grid-column: 1 / -1; flex-direction: row; align-items: center; } }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -10px; width: 7px; height: 11px; border-radius: 2px; opacity: .9; animation: fall 2.4s ease-in forwards; }
@keyframes fall { to { transform: translate3d(var(--dx, 0), 260px, 0) rotate(540deg); opacity: 0; } }

/* ---------- Announcement bar ---------- */
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.notice + .notice { margin-top: 10px; }
.notice__date { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-700); }
.notice h4 { font-size: 16px; font-weight: 700; margin-top: 2px; }
.notice p { font-size: 14.5px; color: var(--ink-2); margin-top: 4px; white-space: pre-line; }

/* ---------- Empty / skeleton ---------- */
.empty { text-align: center; padding: 40px 20px; border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); color: var(--ink-3); background: rgba(255, 255, 255, .5); }
.empty .icon { width: 30px; height: 30px; margin: 0 auto 10px; color: var(--accent-600); }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.skeleton { position: relative; overflow: hidden; background: var(--mist); border-radius: var(--r); min-height: 64px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { position: relative; background: var(--brand-950); color: rgba(255, 255, 255, .75); padding-top: 80px; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0; background: url("../img/scenes/night-sm.jpg") center bottom / cover no-repeat; opacity: .18; pointer-events: none; }
.site-footer > * { position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(43, 191, 136, .5); }
.footer-brand p { margin-top: 18px; font-size: 14.5px; max-width: 36ch; }
.footer-title { font-family: var(--f-caps); font-size: 12px; letter-spacing: .22em; color: var(--accent-400); margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; font-size: 14.5px; }
.footer-links a:hover { color: #fff; }
.footer-links li { display: flex; gap: 10px; align-items: flex-start; }
.footer-links .icon { margin-top: 3px; color: var(--accent-500); }
.footer-bottom { margin-top: 64px; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: rgba(255, 255, 255, .5); }
.footer-bottom .he { color: var(--accent-400); font-size: 15px; }

/* Mobile quick dock */
.dock { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 85; display: none; grid-template-columns: repeat(5, 1fr); padding: 6px; border-radius: 20px; background: rgba(10, 58, 76, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-3); border: 1px solid rgba(111, 220, 178, .2); transition: transform .45s var(--ease); padding-bottom: max(6px, env(safe-area-inset-bottom)); }
.dock a { display: grid; justify-items: center; gap: 3px; padding: 8px 4px; border-radius: 14px; color: rgba(255, 255, 255, .8); font-size: 11px; font-weight: 600; }
.dock a .icon { width: 21px; height: 21px; }
.dock a:hover, .dock a[aria-current="page"] { color: var(--accent-400); background: rgba(255, 255, 255, .05); }
.dock.is-hidden { transform: translateY(140%); }
@media (max-width: 760px) { .dock { display: grid; } body.has-dock { padding-bottom: 86px; } }

/* =========================================================
   Toasts & modal
   ========================================================= */
.toasts { position: fixed; z-index: 300; top: calc(var(--header-h) + var(--topbar-h) + 12px); right: 16px; display: grid; gap: 10px; width: min(380px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--brand-900); color: #fff; box-shadow: var(--shadow-3); font-size: 14.5px; animation: toast-in .45s var(--ease); border-left: 3px solid var(--accent-500); }
.toast--success { border-left-color: #58c08a; }
.toast--error { border-left-color: #e0766c; }
.toast.is-out { animation: toast-out .35s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(20px); } }

.modal { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 16px; }
.modal__scrim { position: absolute; inset: 0; background: rgba(5, 42, 54, .55); backdrop-filter: blur(3px); animation: fade-in .3s; }
.modal__box { position: relative; width: min(560px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: var(--paper); border-radius: var(--r-xl); box-shadow: var(--shadow-3); animation: modal-in .45s var(--ease); }
.modal__box--wide { width: min(820px, 100%); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 0; }
.modal__body { padding: 18px 24px 24px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 0 24px 24px; flex-wrap: wrap; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.hero-in > * { animation: rise 1.1s var(--ease) both; }
.hero-in > *:nth-child(2) { animation-delay: .08s; }
.hero-in > *:nth-child(3) { animation-delay: .16s; }
.hero-in > *:nth-child(4) { animation-delay: .24s; }
.hero-in > *:nth-child(5) { animation-delay: .32s; }
.hero-in > *:nth-child(6) { animation-delay: .4s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-slide .bg-slide__img { animation: none !important; transform: scale(1.04); }
  .bg-slide { transition-duration: 1.2s; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-in > * { animation: none; }
  .card--hover:hover, .btn:hover { transform: none; }
}

/* Utilities */
.stack { display: grid; gap: var(--gap, 16px); }
.row { display: flex; align-items: center; gap: var(--gap, 12px); flex-wrap: wrap; }
.between { justify-content: space-between; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 36px; } .mt-5 { margin-top: 56px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.tabular { font-variant-numeric: tabular-nums; }
.divider { height: 1px; background: var(--line); border: 0; margin: 24px 0; }

/* =========================================================
   Resort theme refinements (lake blue + forest green)
   ========================================================= */
.brand__name { font-family: var(--f-body); font-weight: 800; letter-spacing: .05em; font-size: 18px; }
.brand__sub { font-family: var(--f-body); font-weight: 700; letter-spacing: .3em; font-size: 9.5px; }
.brand__logo { box-shadow: 0 0 0 2px rgba(255, 255, 255, .75), 0 4px 14px rgba(0, 0, 0, .18); }
.site-header.is-solid, .site-header.is-light-page { background: rgba(255, 255, 255, .9); }
.nav__link[aria-current="page"]::after { background: var(--accent-400); }
.is-solid .nav__link[aria-current="page"]::after, .is-light-page .nav__link[aria-current="page"]::after { background: var(--accent-600); }

.next-card__time, .zman__time, .sched__time, .today__clock, .amount, .money-input span, .money-input input,
.item-card__price, .ring b, .next-card__name, .gather-card__title { font-weight: 700; letter-spacing: -.02em; }

/* Soft resort circles + lake gradient over the slow slider */
.hero .bg-overlay, .page-hero .bg-overlay {
  background:
    radial-gradient(circle at 7% 24%, rgba(255, 255, 255, .11) 0 150px, rgba(255, 255, 255, 0) 152px),
    radial-gradient(circle at 96% 80%, rgba(255, 255, 255, .09) 0 230px, rgba(255, 255, 255, 0) 232px),
    linear-gradient(115deg, rgba(8, 52, 72, .86) 0%, rgba(13, 95, 121, .58) 48%, rgba(19, 146, 127, .28) 100%),
    linear-gradient(180deg, rgba(5, 42, 54, .25) 0%, rgba(5, 42, 54, 0) 32%, rgba(5, 42, 54, .5) 100%);
}
@media (max-width: 960px) {
  .hero .bg-overlay {
    background:
      radial-gradient(circle at 100% 18%, rgba(255, 255, 255, .1) 0 120px, rgba(255, 255, 255, 0) 122px),
      linear-gradient(180deg, rgba(8, 52, 72, .7) 0%, rgba(13, 95, 121, .62) 50%, rgba(5, 42, 54, .9) 100%);
  }
}
.hero__title em { font-style: normal; background: linear-gradient(90deg, #a6ecd0, #9fe3ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__he, .page-hero__he { color: var(--accent-300); }
.glass-card { background: linear-gradient(160deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .07)); border: 1px solid rgba(255, 255, 255, .3); }
.next-card__label { color: var(--accent-300); }
.next-card__bar span { background: linear-gradient(90deg, var(--accent-500), #7fe0ff); }
.next-card__list li { border-top-color: rgba(255, 255, 255, .14); }
.slider-dot span { background: #fff; }
.eyebrow--light { color: var(--accent-300); }

.today__icon { background: var(--grad-hero); color: #fff; }
.today__heb { color: var(--accent-700); }
.icon-tile { background: var(--brand-100); color: var(--brand-700); border-color: #c5e4ea; }
.icon-tile--brand { background: var(--brand-800); color: var(--accent-300); border-color: var(--brand-800); }
.amount[aria-pressed="true"] { background: var(--brand-700); border-color: var(--brand-700); }
.amount[aria-pressed="true"] small { color: var(--accent-300); }
.tabs--dark .tab[aria-selected="true"] { background: #fff; color: var(--brand-800); }

.section--deep { background: var(--grad-hero); }
.quote-band .bg-overlay { background: radial-gradient(80% 90% at 50% 50%, rgba(5, 42, 54, .3), rgba(5, 42, 54, .72)); }
.quote-band__he { color: #fff; }
.quote-band__src { color: var(--accent-300); font-family: var(--f-body); font-weight: 800; }

.site-footer { background: var(--brand-950); }
.footer-title { color: var(--accent-300); font-family: var(--f-body); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: 11.5px; }
.footer-links .icon { color: var(--accent-400); }
.footer-bottom .he { color: var(--accent-300); }
.drawer__panel { background: var(--grad-hero); }
.drawer__nav a { font-family: var(--f-body); font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.drawer__nav a[aria-current="page"] { color: var(--accent-300); }
.dock { background: rgba(10, 58, 76, .95); border-color: rgba(255, 255, 255, .12); }
.dock a:hover, .dock a[aria-current="page"] { color: var(--accent-300); }
.player-dock { background: var(--brand-900); border-color: rgba(255, 255, 255, .14); }
.player-dock .play-btn { background: var(--accent-500); color: var(--brand-950); }
.toast { background: var(--brand-900); border-left-color: var(--accent-500); }
.avatar { background: var(--accent-500); color: var(--brand-950); }
.slider-caption, .crumbs { font-family: var(--f-body); }
.slider-caption { font-weight: 700; letter-spacing: .14em; }

/* ---------- Sponsor band (on every page) ---------- */
.sponsor-band { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--grad-hero); color: #fff; padding: clamp(24px, 3.4vw, 40px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; box-shadow: var(--shadow-2); isolation: isolate; }
.sponsor-band::before, .sponsor-band::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); z-index: -1; }
.sponsor-band::before { width: 260px; height: 260px; right: -80px; top: -120px; }
.sponsor-band::after { width: 180px; height: 180px; left: -60px; bottom: -110px; }
.sponsor-band h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.02em; }
.sponsor-band p { color: rgba(255, 255, 255, .8); margin-top: 6px; }
.sponsor-band .he { color: var(--accent-300); font-size: 18px; }
.period-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.period-pill { display: grid; gap: 2px; text-align: left; min-width: 120px; padding: 12px 18px; border-radius: 16px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); color: #fff; transition: background-color .2s, transform .25s var(--ease); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.period-pill:hover { background: rgba(255, 255, 255, .22); transform: translateY(-2px); }
.period-pill small { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-300); }
.period-pill b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.sponsored-by { display: inline-flex; gap: 10px; align-items: center; margin-top: 16px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .12); font-size: 14px; }
.sponsored-by .icon { color: var(--accent-300); }
@media (max-width: 860px) { .sponsor-band { grid-template-columns: 1fr; } }

/* Sponsorship calendar */
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow { font-size: 11px; font-weight: 700; color: var(--ink-3); text-align: center; padding: 4px 0; }
.cal__day { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: 13.5px; font-weight: 600; border: 1px solid transparent; transition: background-color .15s, border-color .15s; }
.cal__day:hover:not(:disabled) { background: var(--mist); }
.cal__day:disabled { color: #b7c6c9; cursor: not-allowed; }
.cal__day.is-taken { background: repeating-linear-gradient(45deg, var(--mist), var(--mist) 4px, #fff 4px, #fff 8px); color: var(--ink-3); text-decoration: line-through; }
.cal__day.is-range { background: var(--accent-50); border-color: var(--accent-200); }
.cal__day.is-start { background: var(--brand-700); color: #fff; }
.sp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 680px) { .sp-grid { grid-template-columns: 1fr; } }
.period-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.period-seg button { padding: 12px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--paper); text-align: left; transition: border-color .2s, box-shadow .2s; }
.period-seg button small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.period-seg button b { font-size: 20px; font-weight: 800; }
.period-seg button[aria-pressed="true"] { border-color: var(--brand-700); box-shadow: 0 0 0 4px rgba(15, 95, 121, .1); }

/* =========================================================
   Clear section headers, quick links, events
   ========================================================= */
.sec-title { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 18px; align-items: center; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sec-title .icon-tile { width: 52px; height: 52px; border-radius: 16px; }
.sec-title .icon-tile .icon { width: 24px; height: 24px; }
.sec-title h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; }
.sec-title p { color: var(--ink-2); margin-top: 4px; font-size: 15.5px; }
.sec-title > .link-arrow { white-space: nowrap; }
@media (max-width: 640px) { .sec-title { grid-template-columns: auto minmax(0, 1fr); } .sec-title > .link-arrow { grid-column: 1 / -1; } }

.today__title { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-700); margin-bottom: 8px; }
.today__title .muted { font-weight: 600; letter-spacing: .02em; text-transform: none; }

.quick-title { font-size: 15px; font-weight: 700; color: var(--ink-2); margin-bottom: 12px; letter-spacing: 0; }
.quick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.quick__item { display: grid; align-content: start; gap: 3px; padding: 16px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.quick__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: #bfe0e6; }
.quick__item .icon-tile { margin-bottom: 8px; }
.quick__item b { font-size: 15.5px; }
.quick__item > span:last-child { font-size: 13px; color: var(--ink-3); line-height: 1.4; }
@media (max-width: 1080px) { .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); } .quick__item { padding: 14px; } }

.give { align-items: stretch; }
.give .sponsor-band { grid-template-columns: 1fr; height: 100%; }

.event-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.event-card { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 16px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); align-items: start; transition: transform .3s var(--ease), box-shadow .3s; text-align: left; width: 100%; }
a.event-card:hover, button.event-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.event-date { display: grid; justify-items: center; text-align: center; border-radius: 14px; background: var(--brand-100); color: var(--brand-800); padding: 8px 4px; line-height: 1.1; }
.event-date small { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.event-date b { font-size: 24px; font-weight: 800; }
.event-date .he { font-size: 13px; color: var(--brand-600); direction: rtl; }
.event-type { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c, var(--brand-700)); }
.event-type .icon { width: 14px; height: 14px; }
.event-card h3 { font-size: 16.5px; font-weight: 700; margin-top: 4px; line-height: 1.3; }
.event-card p { font-size: 13.5px; color: var(--ink-3); margin-top: 3px; }

/* Month calendar (Events page + admin) */
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1000px) { .cal-wrap { grid-template-columns: 1fr; } }
.month-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.month-head h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -.02em; }
.month-head .he { color: var(--brand-600); font-size: 18px; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.month__dow { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); text-align: center; padding: 4px 0; }
.month__day { position: relative; min-height: 96px; padding: 8px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); text-align: left; display: flex; flex-direction: column; gap: 4px; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); overflow: hidden; }
.month__day:hover { border-color: #bfe0e6; box-shadow: var(--shadow-1); }
.month__day.is-out { background: transparent; border-style: dashed; opacity: .45; }
.month__day.is-today { border-color: var(--accent-500); box-shadow: 0 0 0 2px rgba(43, 191, 136, .25); }
.month__day.is-selected { border-color: var(--brand-700); box-shadow: 0 0 0 3px rgba(15, 95, 121, .18); }
.month__day.is-shabbos { background: #f3f9fb; }
.month__num { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; }
.month__num b { font-size: 15px; font-weight: 800; }
.month__num .he { font-size: 13px; color: var(--ink-3); }
.month__hol { font-size: 11px; font-weight: 700; color: var(--red); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.month__par { font-size: 11px; font-weight: 700; color: var(--brand-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.month__ev { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.month__ev i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--brand-700)); flex: none; }
.month__flag { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
@media (max-width: 700px) {
  .month { gap: 3px; }
  .month__day { min-height: 58px; padding: 5px; border-radius: 10px; }
  .month__num b { font-size: 13px; }
  .month__num .he, .month__hol, .month__par, .month__ev span { display: none; }
  .month__ev { justify-content: center; }
}
.day-panel { position: sticky; top: calc(var(--header-h) + var(--topbar-h) + 16px); }
.day-panel h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.day-block + .day-block { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.day-block__title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-700); margin-bottom: 10px; }
.legend-row { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12.5px; color: var(--ink-2); margin-top: 12px; }
.legend-row span { display: inline-flex; align-items: center; gap: 6px; }
.legend-row i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }

details.card > summary::-webkit-details-marker { display: none; }

/* ---------- Today's sponsor line (topbar.js) ---------- */
html.has-topbar { --topbar-h: 34px; }
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 91; height: var(--topbar-h); overflow: hidden;
  background: linear-gradient(90deg, #072e3c 0%, #0f5f79 55%, #12875a 100%); color: #eaf7f4;
  font-size: 13.5px; line-height: 1; box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .12);
  transition: transform .45s var(--ease); animation: topbar-in .5s var(--ease) backwards;
}
@keyframes topbar-in { from { transform: translateY(-100%); } }
.topbar.is-hidden { transform: translateY(-100%); }
.topbar__inner { position: relative; height: 100%; }
.topbar__item {
  position: absolute; inset: 0 var(--gutter, 24px); display: flex; align-items: center; justify-content: center; gap: 12px;
  opacity: 0; transform: translateY(8px); transition: opacity .6s, transform .6s var(--ease); pointer-events: none;
}
.topbar__item.is-on { opacity: 1; transform: none; pointer-events: auto; }
.topbar__tag {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
  font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff;
}
.topbar__tag svg { width: 12px; height: 12px; color: #9ff0cf; }
.topbar__text { min-width: 0; overflow: hidden; white-space: nowrap; }
.topbar__text.is-long { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.topbar__run { display: inline-block; padding: 4px 0; }
.topbar__run b { color: #fff; font-weight: 700; }
.topbar__text.is-long .topbar__run { animation: topbar-glide var(--dur, 12s) ease-in-out 1.5s infinite; }
@keyframes topbar-glide { 0%, 15% { transform: translateX(0); } 55%, 70% { transform: translateX(calc(-1 * var(--over, 0px))); } 100% { transform: translateX(0); } }
.topbar__link {
  flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 5px 11px; border-radius: 999px; border: 0; cursor: pointer;
  background: #fff; color: #0a3a4c; font: inherit; font-size: 12px; font-weight: 800; text-decoration: none; transition: background .2s, transform .2s;
}
.topbar__link:hover { background: #d9f6ea; transform: translateX(2px); }
.topbar__link svg { width: 13px; height: 13px; }
.topbar a:focus-visible, .topbar button:focus-visible { outline: 2px solid #9ff0cf; outline-offset: 2px; }
@media (max-width: 640px) {
  .topbar { font-size: 12.5px; }
  .topbar__item { gap: 8px; justify-content: flex-start; }
  .topbar__tag { padding: 4px 7px; }
  .topbar__tag span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .topbar, .topbar__item { transition: none; animation: none; }
  .topbar__text.is-long .topbar__run { animation: none; }
}
@media print { .topbar { display: none; } }
.topbar--preview { position: relative; inset: auto; z-index: auto; height: 40px; border-radius: 12px; animation: none; transform: none; }
.topbar--preview .topbar__inner { padding-inline: 0; max-width: none; }
.topbar--preview .topbar__item { inset: 0 14px; }

/* ---------- Shiur folders (library.js) ---------- */
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 26px; }
.folder-card { display: grid; grid-template-columns: 74px 1fr auto; gap: 14px; align-items: center; text-align: start; padding: 12px 14px 12px 12px; border-radius: var(--r-lg, 18px); border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; font: inherit; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.folder-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2, 0 12px 30px -16px rgba(10, 58, 76, .35)); border-color: var(--line-2); }
.folder-card__art { width: 74px; height: 74px; border-radius: 14px; display: grid; place-items: center; background: var(--folder-bg); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); overflow: hidden; padding: 6px; }
.folder-card__art .he { font-size: 21px; line-height: 1.05; text-align: center; font-weight: 700; text-shadow: 0 1px 8px rgba(0, 0, 0, .25); }
.folder-card__art svg { width: 28px; height: 28px; }
.folder-card__body { min-width: 0; display: grid; gap: 2px; }
.folder-card__body b { font-size: 16.5px; line-height: 1.25; }
.folder-card__body small { color: var(--ink-3); font-size: 13px; }
.folder-card__meta { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--accent-700, #12875a); font-weight: 700; margin-top: 3px; }
.folder-card__meta svg { width: 14px; height: 14px; }
.folder-card__go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--brand-900); }
.folder-card__go svg { width: 18px; height: 18px; }
.lib-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; margin-bottom: 14px; color: var(--ink-3); }
.lib-crumbs a { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-700, #0f5f79); font-weight: 700; text-decoration: none; }
.lib-crumbs a:hover { text-decoration: underline; }
.lib-crumbs svg { width: 15px; height: 15px; }
.lib-crumbs [aria-current] { color: var(--ink); font-weight: 700; }
.folder-head { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 26px 28px; margin-bottom: 22px; border-radius: 22px; background: var(--folder-bg); color: #fff; box-shadow: 0 18px 40px -24px rgba(10, 58, 76, .55); }
.folder-head::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.folder-head__he { font-size: 34px; line-height: 1.1; color: #fff; opacity: .95; text-align: left; unicode-bidi: plaintext; }
.folder-head .btn--accent { background: #fff; color: var(--brand-900); border-color: #fff; }
.folder-head .btn--accent:hover { background: #e6f7f1; }
.folder-head__title { font-size: 26px; font-weight: 800; color: #fff; margin-top: 2px; }
.folder-head__meta { margin-top: 6px; color: rgba(255, 255, 255, .8); font-weight: 600; font-size: 14px; }
.folder-head__desc { margin-top: 8px; max-width: 60ch; color: rgba(255, 255, 255, .85); }
.folder-head__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; }
.lib-list-title { margin: 4px 0 12px; }
.media-item__folder, .media-item__resume, .media-item__done { display: inline-flex; align-items: center; gap: 4px; }
.media-item__folder svg, .media-item__resume svg, .media-item__done svg { width: 13px; height: 13px; }
.media-item__folder { color: var(--brand-700, #0f5f79); font-weight: 700; }
.media-item__resume { color: var(--accent-700, #12875a); font-weight: 700; }
.media-item__done { color: var(--ink-3); }
@media (max-width: 640px) {
  .folder-grid { grid-template-columns: 1fr; }
  .folder-head { padding: 20px; }
  .folder-head__he { font-size: 28px; }
  .folder-head__title { font-size: 22px; }
}

/* ---------- Siddur ---------- */
.siddur-now { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; margin-bottom: 26px; }
.siddur-shelf { margin-top: 30px; }
.siddur-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.siddur-card { position: relative; display: grid; gap: 2px; padding: 16px 18px 16px 52px; border-radius: 16px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); text-decoration: none; text-align: right; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.siddur-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--line-2); }
.siddur-card__he { font-size: 23px; line-height: 1.2; color: var(--brand-900); direction: rtl; }
.siddur-card__en { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.siddur-card__go { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--mist); color: var(--brand-900); }
.siddur-card__go svg { width: 15px; height: 15px; }
.siddur-card--big { background: var(--grad-hero, linear-gradient(135deg, #0a3a4c, #0f5f79 55%, #12875a)); border-color: transparent; color: #fff; padding-block: 22px; }
.siddur-card--big .siddur-card__he { color: #fff; font-size: 30px; }
.siddur-card--big .siddur-card__en { color: rgba(255, 255, 255, .8); }
.siddur-card--big .siddur-card__go { background: rgba(255, 255, 255, .18); color: #fff; }
.siddur-continue { display: flex; align-items: center; gap: 12px; padding: 14px 18px; margin-bottom: 8px; border-radius: 14px; background: var(--accent-50, #e6f7f1); border: 1px solid var(--accent-200, #a6e3c8); color: var(--ink); text-decoration: none; font-weight: 600; }
.siddur-continue > svg { width: 20px; height: 20px; color: var(--accent-700); flex: none; }
.siddur-continue span { flex: 1; }
.siddur-continue .he { font-size: 1.15em; }

body.siddur-reading .site-header { transform: translateY(calc(-100% - var(--topbar-h))); }
body.siddur-reading .dock, body.siddur-reading .player-dock { display: none; }
body.siddur-reading .site-footer { display: none; }
.siddur-reader { padding-top: var(--topbar-h); min-height: 100vh; }
.siddur-bar { position: sticky; top: var(--topbar-h); z-index: 60; background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: top .45s var(--ease); }
html.topbar-off .siddur-bar { top: 0; }
.siddur-bar__inner { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.siddur-bar__title { flex: 1; min-width: 0; display: grid; line-height: 1.15; }
.siddur-bar__title b { font-size: 21px; color: var(--brand-900); text-align: left; }
.siddur-bar__title small { font-size: 12px; color: var(--ink-3); }
.siddur-bar__jump { width: auto; max-width: 260px; min-height: 40px; padding-block: 6px; font-family: var(--f-hebrew), var(--f-body); }
.siddur-bar__tools { display: flex; gap: 4px; }
.siddur-bar__tools .icon-btn { font-weight: 800; font-size: 13px; }
.siddur-page { --sd-size: 26px; padding: 24px 0 80px; background: #fff; transition: background-color .3s; }
.siddur-text { max-width: 760px; margin: 0 auto; padding: 0 22px; font-family: var(--f-hebrew), "Frank Ruehl CLM", "Times New Roman", serif; font-size: var(--sd-size); line-height: 1.95; color: #1b1b1b; text-align: justify; }
.siddur-text p { margin: 0 0 .55em; }
.siddur-text small { font-size: .62em; color: #6b7a7f; line-height: 1.5; }
.siddur-text big { font-size: 1.25em; }
.siddur-text b { font-weight: 700; color: #0a3a4c; }
.sd-sec { scroll-margin-top: 140px; }
.sd-h { font-family: var(--f-hebrew), serif; font-weight: 800; font-size: 1.15em; text-align: center; color: #0f5f79; margin: 1.6em 0 .7em; padding-bottom: .35em; border-bottom: 1px solid rgba(15, 95, 121, .18); }
.sd-sec:first-child .sd-h { margin-top: .4em; }
.sd-sep { border: 0; height: 1px; margin: 1em 25%; background: rgba(0, 0, 0, .08); }
.siddur-end { max-width: 760px; margin: 40px auto 0; padding: 0 22px; text-align: center; }
.siddur-end__he { font-size: 22px; color: var(--ink-3); margin-bottom: 18px; }
.siddur-page[data-theme="sepia"] { background: #f5ecd8; }
.siddur-page[data-theme="sepia"] .siddur-text { color: #3b2a14; }
.siddur-page[data-theme="sepia"] .siddur-text b, .siddur-page[data-theme="sepia"] .sd-h { color: #6b3f12; }
.siddur-page[data-theme="night"] { background: #0e1a20; }
.siddur-page[data-theme="night"] .siddur-text { color: #e4ece8; }
.siddur-page[data-theme="night"] .siddur-text b { color: #fff; }
.siddur-page[data-theme="night"] .siddur-text small { color: #8ea3a8; }
.siddur-page[data-theme="night"] .sd-h { color: #8fd8c4; border-color: rgba(255, 255, 255, .12); }
.siddur-page[data-theme="night"] .sd-sep { background: rgba(255, 255, 255, .12); }
body[data-siddur-theme="night"] { background: #0e1a20; }
body[data-siddur-theme="night"] .siddur-bar { background: rgba(14, 26, 32, .94); border-color: rgba(255, 255, 255, .1); }
body[data-siddur-theme="night"] .siddur-bar__title b { color: #e4ece8; }
body[data-siddur-theme="night"] .siddur-bar .icon-btn { color: #e4ece8; border-color: rgba(255, 255, 255, .18); background: transparent; }
body[data-siddur-theme="night"] .siddur-end .btn--ghost { color: #e4ece8; border-color: rgba(255, 255, 255, .25); }
body[data-siddur-theme="sepia"] { background: #f5ecd8; }
body[data-siddur-theme="sepia"] .siddur-bar { background: rgba(245, 236, 216, .95); }
@media (max-width: 760px) {
  .siddur-now { grid-template-columns: 1fr; }
  .siddur-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .siddur-card { padding: 14px 14px 14px 44px; }
  .siddur-card__he { font-size: 20px; }
  .siddur-bar__inner { flex-wrap: wrap; gap: 6px 8px; padding-block: 6px; }
  .siddur-bar__jump { order: 5; flex: 1 1 100%; max-width: none; }
  .siddur-text { padding: 0 16px; text-align: right; }
}
