:root {
  --ink: #0a3147;
  --ink-2: #123f56;
  --blue: #0b6fa4;
  --gold: #b99655;
  --gold-dark: #5d4320;
  --gold-light: #e8d9b8;
  --line: #d3d8db;
  --muted: #5d6d76;
  --paper: #fffef9;
  --white: #ffffff;
  --font-main: "DM Sans", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --max: 1104px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  padding-bottom: 88px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.55;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: 0;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 0;
  height: 3px;
  background: var(--blue);
  transform-origin: left center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 249, 0.96);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  background: var(--paper);
  object-fit: contain;
}

.brand-text {
  display: block;
  width: 186px;
  height: 42px;
  min-width: 0;
  max-width: 186px;
  overflow: hidden;
}

.brand-name,
.brand-subtitle {
  display: block;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
  transition: opacity 180ms ease, transform 180ms ease;
}

.brand-text.is-changing .brand-name,
.brand-text.is-changing .brand-subtitle {
  opacity: 0;
  transform: translateY(3px);
}

.brand-name {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-subtitle {
  color: var(--gold-dark);
  font-size: 1rem;
}

.brand-text[dir="rtl"],
.brand-text[lang="he"] {
  direction: ltr;
  text-align: left;
}

.brand-text[lang="he"] .brand-name {
  font-size: 1rem;
}

.brand-text[lang="he"] .brand-subtitle {
  font-size: 1rem;
}

.brand-text[lang="ru"] .brand-subtitle {
  font-size: 1rem;
}

.nav-toggle {
  display: inline-grid;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  gap: 4px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
}

.nav-toggle span {
  height: 2px;
  background: var(--blue);
}

.site-nav {
  position: absolute;
  top: 72px;
  right: 16px;
  left: 16px;
  display: none;
  flex-direction: column;
  padding: 8px 0;
  border: 1px solid var(--line);
  background: var(--paper);
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  min-height: 56px;
  padding: 16px 18px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover {
  color: var(--blue);
}

.thumb-nav {
  position: fixed;
  right: 10px;
  bottom: max(10px, env(safe-area-inset-bottom));
  left: 10px;
  z-index: 35;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(10, 49, 71, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(10, 49, 71, 0.16);
  backdrop-filter: blur(14px);
}

.thumb-nav a {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.thumb-nav a:first-child {
  background: var(--blue);
  color: var(--white);
}

.editorial-page {
  max-width: var(--max);
  margin: 0 auto;
  border-right: 1px solid rgba(211, 216, 219, 0.35);
  border-left: 1px solid rgba(211, 216, 219, 0.35);
}

.masthead {
  padding: 1.05rem 1.35rem 0.78rem;
  border-bottom: 3px double var(--ink);
  text-align: center;
}

.masthead-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.masthead-name {
  padding: 0.1rem 0 0.48rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 12vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 0.98;
}

.masthead-sub {
  display: flex;
  align-items: center;
  gap: 8px;
}

.masthead-sub span {
  flex: 1;
  height: 1px;
  background: var(--ink);
}

.masthead-sub em {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.8vw, 1rem);
  font-style: italic;
  white-space: nowrap;
}

.masthead-live {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.7rem;
  margin-top: 0.7rem;
  color: var(--gold-dark);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.text-swipe {
  animation: text-swipe-in 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes text-swipe-in {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: 0.2;
    transform: translateX(-10px);
  }

  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    transform: translateX(0);
  }
}

.masthead-live strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.hero {
  padding: 1.8rem 1.35rem 1.45rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.hero-logo,
.bs,
.section-divider,
.quick-card {
  display: none;
}

.hero-kicker,
.eyebrow,
.program-list span,
.zelle-box span,
.schedule-list p,
.time-table h3,
.resource-toggle small {
  color: var(--gold-dark);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 660px;
  margin: 0 auto 0.7rem;
  font-size: clamp(3.1rem, 16vw, 5.25rem);
  font-weight: 700;
  line-height: 0.96;
}

.hero h1 em {
  color: var(--blue);
  font-style: italic;
}

.hero-copy > p:not(.hero-kicker) {
  max-width: 660px;
  margin: 0 auto 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 4.7vw, 1.45rem);
  font-style: italic;
  line-height: 1.45;
}

.hero-actions,
.visit-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.button,
.copy-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 15px 24px;
  border: 1px solid var(--blue);
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.copy-button {
  width: min(100%, 228px);
}

.button.primary,
.copy-button {
  background: var(--blue);
  color: var(--white);
}

.button.secondary {
  background: transparent;
  color: var(--blue);
}

.button:hover,
.copy-button:hover,
.tab-button:hover {
  transform: translateY(-1px);
}

.status-strip {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 820px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.status-strip div {
  padding: 0.82rem 0.9rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.status-strip div:last-child {
  border-right: 0;
  border-bottom: 0;
}

.status-strip span,
.block-label,
.section-intro > .eyebrow {
  display: block;
  color: var(--gold-dark);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-strip strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.section,
.visit-section {
  max-width: none;
  margin: 0;
  padding: 1.55rem clamp(1.35rem, 4vw, 2.4rem);
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.section-intro {
  max-width: 760px;
  margin: 0 auto 1.1rem;
  text-align: center;
}

.section-intro > .eyebrow,
.block-label {
  padding-top: 0.45rem;
  border-top: 2px solid var(--ink);
  text-align: center;
}

.section-intro h2 {
  margin: 0.65rem auto 0.35rem;
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 700;
  line-height: 1.02;
}

.section-intro h2::after {
  display: none;
}

.section-intro p:not(.eyebrow),
.give-section p,
.visit-panel p,
.program-list p,
.community-grid p,
.resource-grid p,
.faq-answer p,
.fine-print {
  color: var(--muted);
}

.schedule-tabs {
  display: grid;
  gap: 8px;
  max-width: 720px;
  margin: 0 auto 1rem;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 254, 249, 0.82);
}

.tab-button {
  min-height: 58px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(180deg, var(--white), rgba(232, 217, 184, 0.18));
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: inset 0 -2px 0 rgba(185, 150, 85, 0.22);
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.tab-button:last-child {
  border-bottom: 1px solid var(--line);
}

.tab-button.is-active {
  border-color: var(--gold);
  background: var(--ink);
  color: var(--white);
  box-shadow: inset 0 -3px 0 var(--gold);
}

.tab-button:active {
  box-shadow: inset 0 -1px 0 rgba(185, 150, 85, 0.35);
  transform: translateY(1px);
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
  animation: tab-in 180ms ease;
}

@keyframes tab-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.schedule-list {
  display: grid;
  max-width: 1000px;
  margin: 0 auto;
}

.schedule-list article,
.time-table div {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.schedule-list article:last-child,
.time-table div:last-child {
  border-bottom: 0;
}

.schedule-list p {
  margin-bottom: 0;
}

.schedule-list h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.schedule-list strong,
.time-table dd {
  display: block;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 7vw, 1.85rem);
  font-weight: 700;
  line-height: 1.05;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.schedule-list strong.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.time-table {
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}

.time-table h3 {
  margin-bottom: 0.4rem;
  text-align: center;
}

.time-table dl {
  margin: 0;
}

.time-table dt {
  color: var(--muted);
}

.time-table dd {
  opacity: 1;
  transform: none;
}

.zmanim-panel {
  display: grid;
  gap: 1rem;
}

.zmanim-panel h3 {
  margin-bottom: 0.25rem;
  font-size: 1.65rem;
}

.zmanim-list,
.resource-grid,
.community-grid,
.program-list,
.sponsor-grid,
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.zmanim-item,
.resource-grid article,
.community-grid article,
.program-list article,
.sponsor-grid article {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.zmanim-item span {
  display: block;
  color: var(--muted);
  font-size: 1rem;
}

.zmanim-item strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.program-list h3,
.community-grid h3,
.sponsor-grid h3,
.resource-grid h3 {
  margin: 0.25rem auto;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.05;
}

.program-list p,
.community-grid p,
.sponsor-grid p,
.resource-grid p {
  max-width: 360px;
  margin: 0 auto;
}

.resource-grid a,
.resource-accordion a,
.sponsors-contact {
  color: var(--blue);
  font-weight: 600;
  text-underline-offset: 4px;
}

.resource-grid-main {
  max-width: 860px;
  margin: 0 auto;
}

.resources-section {
  display: grid;
  justify-items: center;
  text-align: center;
}

.resources-section > * {
  width: min(100%, 860px);
}

.resource-accordion {
  max-width: 820px;
  margin: 1rem auto 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.resource-grid-main article {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.resource-toggle {
  position: relative;
  display: grid;
  width: 100%;
  align-items: center;
  justify-items: center;
  gap: 0.35rem;
  min-height: 72px;
  padding: 1.25rem 2.8rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.resource-toggle::after,
.faq-question::after {
  color: var(--blue);
  content: "+";
  font-size: 1.7rem;
  font-weight: 600;
}

.resource-toggle::after {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.resource-toggle[aria-expanded="true"]::after,
.faq-list article.is-open .faq-question::after {
  content: "-";
}

.resource-toggle strong,
.resource-toggle small {
  display: block;
}

.resource-toggle strong {
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.resource-drawer,
.faq-answer {
  display: none;
}

.resource-accordion article.is-open .resource-drawer,
.faq-list article.is-open .faq-answer {
  display: block;
}

.faq-list {
  display: grid;
  max-width: 860px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}

.faq-list article {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 1.15rem 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
}

.faq-answer {
  padding-bottom: 1rem;
}

.sponsors-section .section-intro p,
.give-section > div:first-child p {
  max-width: 620px;
  margin-right: auto;
  margin-left: auto;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 4vw, 1.45rem);
  font-style: italic;
}

.give-section {
  display: grid;
  gap: 1rem;
  text-align: center;
}

.zelle-box {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.zelle-box strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.45rem;
  overflow-wrap: anywhere;
}

.zelle-box small {
  min-height: 24px;
  color: var(--gold-dark);
}

.visit-panel {
  display: grid;
  gap: 1rem;
  max-width: 860px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
  justify-items: center;
}

.visit-panel h2 {
  margin-bottom: 0.4rem;
  font-size: clamp(2rem, 8vw, 3rem);
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.35rem;
  border-top: 3px double var(--ink);
  background: var(--paper);
}

.footer-grid {
  display: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
}

.footer-bottom strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-bottom small {
  display: none;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 450ms ease, transform 450ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.motion-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms ease, transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.button:focus-visible,
.copy-button:focus-visible,
.tab-button:focus-visible,
.faq-question:focus-visible,
.resource-toggle:focus-visible,
.site-nav a:focus-visible {
  outline: 3px solid rgba(185, 150, 85, 0.45);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .motion-item,
  .schedule-list strong {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .tab-panel.is-active {
    animation: none;
  }
}

@media (min-width: 560px) {
  .status-strip {
    grid-template-columns: minmax(260px, 0.9fr) minmax(340px, 1.1fr);
  }

  .status-strip div {
    border-bottom: 0;
  }

  .status-strip div:last-child {
    border-right: 0;
  }

  .schedule-tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .tab-button {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .tab-button:last-child {
    border-right: 1px solid var(--line);
  }

  .schedule-list article,
  .time-table div {
    grid-template-columns: minmax(0, 1fr) minmax(160px, auto);
    align-items: baseline;
    gap: 1rem;
  }

  .schedule-list p,
  .schedule-list h3 {
    grid-column: 1;
  }

  .schedule-list h3 {
    font-size: 1rem;
  }

  .schedule-list strong {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .zmanim-list,
  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 559px) {
  .hero-actions,
  .visit-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .schedule-list article {
    text-align: center;
  }

  .schedule-list strong {
    margin-right: auto;
    margin-left: auto;
  }
}

@media (min-width: 760px) {
  body {
    padding-bottom: 0;
  }

  .thumb-nav {
    display: none;
  }

  .site-header {
    padding-right: clamp(24px, 4vw, 48px);
    padding-left: clamp(24px, 4vw, 48px);
  }

  .nav-toggle {
    display: none;
  }

  .brand-text {
    display: block;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 22px;
    width: auto;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .site-nav a {
    padding: 0;
    min-height: 0;
  }

  .hero {
    padding-top: 2.25rem;
    padding-bottom: 1.8rem;
  }

  .section,
  .visit-section {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }

  .story-row,
  .community-grid,
  .program-list,
  .sponsor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .program-list article,
  .community-grid article,
  .sponsor-grid article {
    padding-right: 1.35rem;
    padding-left: 1.35rem;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .program-list article:last-child,
  .community-grid article:last-child,
  .sponsor-grid article:last-child {
    border-right: 0;
  }

  .give-section {
    max-width: 860px;
    margin-right: auto;
    margin-left: auto;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    text-align: center;
  }

  .give-section > div:first-child p {
    margin-left: auto;
  }

  .visit-panel {
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    text-align: center;
  }
}


@media (min-width: 900px) {
  .schedule-section .tab-panel.is-active {
    max-width: 1000px;
    margin-right: auto;
    margin-left: auto;
  }

  .resources-section {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    column-gap: 3rem;
  }

  .resources-section .section-intro {
    grid-column: 1 / -1;
    width: min(100%, 860px);
  }

  .resource-grid-main,
  .resource-accordion {
    width: 100%;
    max-width: none;
    margin-top: 0;
  }

  .resource-grid-main {
    justify-self: stretch;
  }

  .resource-accordion {
    justify-self: stretch;
  }
}
