/* Kasho Community — shared styles (v2 redesign)
   Fonts are loaded by a <link> in each page head (Frank Ruhl Libre + Heebo, both cover Hebrew/Yiddish). */

:root {
  --navy: #1b2d3e;
  --navy-2: #243d55;
  --navy-3: #2f4f6b;
  --ink: #1f2d3a;
  --muted: #566778;
  --accent: #157a6b;
  --accent-dark: #0f6155;
  --accent-soft: #e6f3f0;
  --gold: #9a7a52;
  --gold-2: #b8955f;
  --gold-soft: #f6efe2;
  --paper: #ffffff;
  --cream: #faf7f1;
  --background: #f4f1ea;
  --border: #e4ddd0;
  --border-cool: #dbe3ea;
  --announcement: #fffaf0;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(27, 45, 62, .06), 0 2px 8px rgba(27, 45, 62, .05);
  --shadow: 0 2px 6px rgba(27, 45, 62, .05), 0 12px 32px rgba(27, 45, 62, .08);
  --shadow-lg: 0 8px 18px rgba(27, 45, 62, .08), 0 24px 54px rgba(27, 45, 62, .14);
  --font-body: "Heebo", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-display: "Frank Ruhl Libre", "Heebo", Georgia, serif;
  --wrap: 1200px;
  --header-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  background: var(--background);
  color: var(--ink);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .hebrew, .display {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}

h2 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); }
h3 { font-size: 1.2rem; }

img { max-width: 100%; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }

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

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

[data-lang][hidden], [hidden] { display: none !important; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 2000;
  padding: 10px 16px; border-radius: 8px; background: var(--navy); color: #fff;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
button, .button, .lang-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit; font-weight: 600; line-height: 1.3;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
button:hover, .button:hover { background: var(--accent-dark); color: #fff; }
button:active, .button:active { transform: translateY(1px); }
button:disabled { opacity: .6; cursor: wait; }
.button + .button { margin-inline-start: 6px; }
.button-gold { background: var(--gold); }
.button-gold:hover { background: #82653f; }
.button-ghost { background: transparent; border-color: currentColor; color: var(--navy); }
.button-ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.button-light { background: #fff; color: var(--navy); }
.button-light:hover { background: var(--gold-soft); color: var(--navy); }
.button-outline-light { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.button-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.secondary { background: #5f7488; }
.secondary:hover { background: #4b5f72; }

.lang-button { font-family: var(--font-display); }

/* ---------- Site header ---------- */
.site-header { position: sticky; top: 0; z-index: 900; background: var(--paper); box-shadow: 0 1px 0 var(--border), 0 6px 20px rgba(27,45,62,.06); }

.topstrip { background: var(--navy); color: rgba(255,255,255,.86); font-size: 13.5px; }
.topstrip-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.today-line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.today-line > span:empty { display: none; }
.today-heb { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: #f1dfbf; }
.today-parsha::before, .today-greg::before { content: "·"; margin-inline-end: 14px; opacity: .45; }
.today-line > span:first-child::before { content: none; }
.topstrip-actions { display: flex; align-items: center; gap: 6px 16px; flex-shrink: 0; }
.topstrip-link { color: rgba(255,255,255,.86); text-decoration: none; font-weight: 500; }
.topstrip-link:hover { color: #fff; text-decoration: underline; }
.topstrip .lang-button {
  padding: 3px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 700;
  background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff;
}
.topstrip .lang-button:hover { background: var(--gold); border-color: var(--gold); }

.mainbar-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); flex-shrink: 0; }
.brand-mark { width: 48px; height: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--navy); letter-spacing: .01em; }
.brand-sub { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
html[lang="yi"] .brand-sub { letter-spacing: 0; text-transform: none; font-size: 14px; }
.brand:hover .brand-name { color: var(--accent-dark); }

.primary-nav { flex: 1; display: flex; justify-content: center; min-width: 0; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; }
.nav-list > li > a, .nav-parent {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 12px; border: 0; border-radius: 9px;
  background: transparent; color: var(--ink);
  font: 500 15.5px/1.2 var(--font-body);
  text-decoration: none; white-space: nowrap; cursor: pointer;
}
html[lang="yi"] .nav-list > li > a, html[lang="yi"] .nav-parent { font-size: 16.5px; }
.nav-list > li > a:hover, .nav-parent:hover, .nav-list > li:focus-within > .nav-parent { background: var(--cream); color: var(--accent-dark); }
.nav-list > li > a[aria-current="page"], .has-sub.is-current > .nav-parent { color: var(--accent-dark); box-shadow: inset 0 -2px 0 var(--gold-2); border-radius: 9px 9px 2px 2px; }
.nav-parent .chev { width: 12px; height: 12px; opacity: .7; transition: transform .15s ease; }
.nav-parent[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav-home { display: none; }

.sub-menu {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; top: calc(100% + 8px); inset-inline-start: -8px;
  min-width: 230px; background: var(--paper);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility 0s linear .15s;
  z-index: 950;
}
.sub-menu::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.has-sub:hover > .sub-menu, .has-sub.open > .sub-menu {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s;
}
.sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; }
.sub-menu a:hover, .sub-menu a:focus-visible { background: var(--cream); color: var(--accent-dark); }
.sub-menu a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-login {
  display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 10px;
  background: var(--navy); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; border: 0;
}
.header-login:hover, .header-login[aria-current="page"] { background: var(--accent-dark); color: #fff; }
.account-menu { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 190px; padding: 6px;
  background: var(--paper); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 960;
}
.dropdown-menu a, .dropdown-menu button {
  display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px;
  background: none; color: var(--ink); font: inherit; font-weight: 500; text-align: start; text-decoration: none;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--cream); color: var(--accent-dark); }

.menu-toggle { display: none; width: 46px; height: 46px; padding: 0; border-radius: 12px; background: var(--cream); border: 1px solid var(--border); color: var(--navy); }
.menu-toggle:hover { background: var(--gold-soft); color: var(--navy); }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; inset-inline-start: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
body.nav-open .menu-icon { background: transparent; }
body.nav-open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

.drawer-extra { display: none; }
.nav-overlay { position: fixed; inset: 0; z-index: 980; background: rgba(15, 26, 37, .45); opacity: 0; transition: opacity .2s ease; }
body.nav-open .nav-overlay { opacity: 1; }

/* Drawer navigation (tablet and phone) */
@media (max-width: 1099px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav {
    position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 1000;
    width: min(340px, 86vw); height: 100dvh; padding: 24px 18px 30px;
    flex-direction: column; justify-content: flex-start; overflow-y: auto;
    background: var(--navy); box-shadow: 10px 0 40px rgba(10, 20, 30, .3);
    transform: translateX(-105%); transition: transform .25s ease, visibility 0s linear .25s; visibility: hidden;
  }
  html[dir="rtl"] .primary-nav { transform: translateX(105%); }
  body.nav-open .primary-nav { transform: none; visibility: visible; transition-delay: 0s; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-home { display: block; }
  .nav-list > li > a, .nav-parent { width: 100%; justify-content: space-between; padding: 12px 14px; color: #fff; font-size: 17px; }
  .nav-list > li > a:hover, .nav-parent:hover, .nav-list > li:focus-within > .nav-parent { background: rgba(255,255,255,.1); color: #fff; }
  .nav-list > li > a[aria-current="page"], .has-sub.is-current > .nav-parent { color: #fff; background: rgba(184,149,95,.25); box-shadow: none; border-radius: 9px; }
  .sub-menu {
    position: static; min-width: 0; padding: 2px 0 8px; margin-inline-start: 14px; padding-inline-start: 10px;
    background: none; border: 0; border-inline-start: 2px solid rgba(255,255,255,.18); border-radius: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none; display: none;
  }
  .sub-menu::before { content: none; }
  .has-sub:hover > .sub-menu { display: none; }
  .has-sub.open > .sub-menu { display: block; }
  .sub-menu a { color: rgba(255,255,255,.9); padding: 9px 12px; }
  .sub-menu a:hover, .sub-menu a:focus-visible { background: rgba(255,255,255,.1); color: #fff; }
  .sub-menu a[aria-current="page"] { background: rgba(255,255,255,.14); color: #fff; }
  .drawer-extra { display: block; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }
  .drawer-extra .lang-button { width: 100%; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }
}

/* Floating variant: full-screen chat app shows only a menu button that opens the drawer. */
.site-header--floating { position: fixed; top: 10px; inset-inline-start: 10px; background: none; box-shadow: none; z-index: 1001; }
.site-header--floating .topstrip, .site-header--floating .brand, .site-header--floating .header-login { display: none; }
.site-header--floating .mainbar-inner { min-height: 0; width: auto; }
.site-header--floating .wrap { width: auto; }
.site-header--floating .menu-toggle { display: inline-flex; background: var(--navy); color: #fff; border-color: rgba(255,255,255,.4); box-shadow: 0 6px 18px rgba(20,35,50,.25); }
.site-header--floating .primary-nav {
  position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 1000;
  width: min(340px, 86vw); height: 100dvh; padding: 72px 18px 30px;
  flex-direction: column; justify-content: flex-start; overflow-y: auto;
  background: var(--navy); box-shadow: 10px 0 40px rgba(10, 20, 30, .3);
  transform: translateX(-105%); transition: transform .25s ease; visibility: hidden;
}
html[dir="rtl"] .site-header--floating .primary-nav { transform: translateX(105%); }
body.nav-open .site-header--floating .primary-nav { transform: none; visibility: visible; }
.site-header--floating .nav-list { flex-direction: column; align-items: stretch; }
.site-header--floating .nav-home { display: block; }
.site-header--floating .nav-list > li > a, .site-header--floating .nav-parent { width: 100%; justify-content: space-between; padding: 12px 14px; color: #fff; font-size: 17px; }
.site-header--floating .nav-list > li > a:hover, .site-header--floating .nav-parent:hover { background: rgba(255,255,255,.1); color: #fff; }
.site-header--floating .sub-menu { position: static; display: none; opacity: 1; visibility: visible; transform: none; background: none; border: 0; box-shadow: none; padding: 2px 0 8px; margin-inline-start: 14px; border-inline-start: 2px solid rgba(255,255,255,.18); border-radius: 0; }
.site-header--floating .has-sub.open > .sub-menu { display: block; }
.site-header--floating .sub-menu a { color: rgba(255,255,255,.9); }
.site-header--floating .sub-menu a:hover { background: rgba(255,255,255,.1); color: #fff; }
.site-header--floating .drawer-extra { display: block; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }
.site-header--floating .drawer-extra .lang-button { width: 100%; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); }
.chat-page .site-footer { display: none; }
.chat-page .skip-link { display: none; }

/* ---------- Page title band ---------- */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 300px at 85% -40%, rgba(184,149,95,.28), transparent 60%),
    linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 60%, #1f4a57 100%);
  color: #fff; padding: 38px 0 44px;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cpath d='M28 4 52 28 28 52 4 28Z' fill='none' stroke='%23fff' stroke-width='1'/%3E%3Ccircle cx='28' cy='28' r='3' fill='%23fff'/%3E%3C/svg%3E");
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { margin: 6px 0 0; color: #fff; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); letter-spacing: .005em; }
.page-sub { margin: 8px 0 0; color: rgba(255,255,255,.8); font-size: 1.05rem; max-width: 720px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.breadcrumb a { color: #e9d6b4; text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.crumb-sep { opacity: .45; }

/* ---------- Main content ---------- */
main { display: block; padding: 40px 18px 72px; }

.card {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 3.2vw, 40px);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: start;
}
.card + .card, .card + div + .card, div + .card { margin-top: 26px; }
.card > h2:first-child, .card > h2[hidden] + h2, .card > h2:first-child + h2 { margin-top: 0; }
.card h2 { margin: 0 0 10px; }
.card p { margin: 8px 0; }
.card p:first-child { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.announcement { background: var(--announcement); border-color: #eedfb8; }
.announcement h2 { margin-top: 0; }

.section-item { padding: 22px 0; border-top: 1px solid var(--border); }
.section-item:first-child { padding-top: 0; border-top: 0; }
.section-item:last-child { padding-bottom: 0; }
.section-item h2 { margin: 0 0 6px; }
.section-item p { margin: 4px 0; }

.map-link, .contact-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-weight: 600; text-decoration: none;
}
.map-link::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.2 7 13 7 13s7-7.8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E") center/contain no-repeat; }
a.map-link[href^="gallery"]::before { -webkit-mask: none; mask: none; content: "▸"; background: none; width: auto; height: auto; }
.map-link:hover { text-decoration: underline; }

.branch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.branch {
  display: flex; align-items: center; justify-content: center; min-height: 92px; padding: 22px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--cream);
  color: var(--navy); font: 700 1.25rem/1.2 var(--font-display); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.branch:hover, .branch:focus-visible { transform: translateY(-2px); box-shadow: var(--shadow); background: var(--navy); color: #fff; border-color: var(--navy); }

.camp-photo { display: block; width: 100%; height: auto; margin-top: 16px; border-radius: var(--radius-sm); }

.admin-link { display: block; width: max-content; margin: 34px auto 0; color: var(--muted); font-size: 12px; text-decoration: none; }

/* ---------- Forms ---------- */
input, select, textarea {
  width: 100%; margin-top: 6px; padding: 11px 13px;
  border: 1px solid #c9c2b4; border-radius: 10px; background: #fff; color: var(--ink);
  font: inherit; transition: border-color .15s ease, box-shadow .15s ease;
}
input[type="checkbox"], input[type="radio"] { width: auto; margin-top: 0; accent-color: var(--accent); }
input[type="file"] { padding: 9px; background: var(--cream); }
select {
  padding-inline-end: 38px; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%23566778' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 12px 8px; cursor: pointer;
}
html[dir="rtl"] select { background-position: left 13px center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(21, 122, 107, .18); }
input:disabled, select:disabled { background: #f2f0eb; color: var(--muted); cursor: not-allowed; }
label { display: block; margin-top: 16px; font-weight: 600; text-align: start; color: var(--navy); }
textarea { min-height: 150px; resize: vertical; }
form button[type="submit"] { margin-top: 18px; }

.admin-actions { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
#status { min-height: 24px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; background: var(--navy); color: rgba(255,255,255,.78); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1fr 1.1fr 1.1fr; gap: 40px; padding: 56px 0 44px; }
.footer-mark { width: 64px; height: auto; display: block; margin-bottom: 14px; }
.footer-name { margin: 0 0 8px; font: 700 1.2rem/1.35 var(--font-display); color: #fff; }
.footer-brand p { margin: 0 0 8px; max-width: 34ch; }
.site-footer h2 { margin: 4px 0 14px; color: #e9d6b4; font: 600 13px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
html[lang="yi"] .site-footer h2 { letter-spacing: 0; font-size: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; text-decoration: underline; }
.site-footer a[aria-current="page"] { color: #e9d6b4; }
.footer-places li, .footer-contact li { display: flex; flex-direction: column; margin-bottom: 14px; }
.footer-places strong, .footer-contact strong { color: #fff; font-weight: 600; }
.footer-places span { font-size: 14px; color: rgba(255,255,255,.66); }
html[dir="rtl"] .footer-places span, html[dir="rtl"] .footer-contact a[dir="ltr"] { text-align: right; }
.footer-contact a { width: fit-content; }
.footer-donate { margin-top: 4px; }
.site-footer .footer-donate:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: 14px; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 18px 0; }
.footer-bottom p { margin: 0; }
.footer-bottom-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.site-footer .lang-button { padding: 2px 12px; border-radius: 999px; background: transparent; border-color: rgba(255,255,255,.35); color: #fff; font-size: 14px; }
.site-footer .lang-button:hover { background: var(--gold); border-color: var(--gold); }

/* Legacy plain header (admin page keeps its own layout) */
body > header:not(.site-header) {
  background: linear-gradient(120deg, var(--navy), var(--navy-2));
  color: #fff; padding: 26px 20px 30px; text-align: center;
}
body > header:not(.site-header) .site-logo { display: block; width: 84px; height: auto; margin: 0 auto 10px; filter: brightness(1.9) contrast(1.05); }
body > header:not(.site-header) h1 { margin: 0; color: #fff; }
.site-logo { max-width: 120px; }

/* ---------- Shared page helpers ---------- */
.lead { font-size: 1.12rem; color: var(--muted); }
.eyebrow { display: inline-block; margin-bottom: 8px; color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
html[lang="yi"] .eyebrow { letter-spacing: 0; font-size: 15px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.wide { width: min(1200px, 100%); margin-inline: auto; }
.card.wide { width: min(1200px, 100%); }

.place-card {
  display: flex; flex-direction: column; gap: 6px; padding: 26px;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease, transform .15s ease;
}
.place-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.place-card h3 { margin: 0; font-size: 1.35rem; }
.place-card .place-kicker { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
html[lang="yi"] .place-card .place-kicker { letter-spacing: 0; font-size: 14.5px; }
.place-card address { font-style: normal; color: var(--muted); }
.place-card .place-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: auto; padding-top: 10px; }
.place-card .place-links a { font-weight: 600; text-decoration: none; }
.place-card .place-links a:hover { text-decoration: underline; }
.place-photo { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--cream); }

.contact-person { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.contact-person:first-of-type { border-top: 0; }
.contact-person strong { font-family: var(--font-display); font-size: 1.12rem; color: var(--navy); }
.contact-person a { font-weight: 600; white-space: nowrap; text-decoration: none; }

.print-button { background: var(--cream); color: var(--navy); border-color: var(--border); }
.print-button:hover { background: var(--gold-soft); color: var(--navy); }

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  :root { --header-h: 64px; }
  body { font-size: 16px; }
  .wrap { width: calc(100% - 28px); }
  .brand-mark { width: 40px; }
  .brand-name { font-size: 19px; }
  .brand-sub { font-size: 11px; }
  .header-login { padding: 8px 13px; font-size: 14px; }
  .menu-toggle { width: 42px; height: 42px; }
  .topstrip { font-size: 12.5px; }
  .today-greg, .topstrip-link { display: none; }
  .today-heb { font-size: 14px; }
  .today-parsha::before { margin-inline-end: 8px; }
  .page-hero { padding: 24px 0 28px; }
  .page-sub { font-size: .98rem; }
  main { padding: 22px 12px 48px; }
  .card { padding: 22px 18px; }
  .card + .card, div + .card { margin-top: 18px; }
  .branch-grid, .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 28px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  input, select, textarea { font-size: 16px; } /* iOS zooms into smaller inputs */
}
@media (max-width: 380px) {
  .brand-sub { display: none; }
}

/* ---------- Print ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .site-header, .site-footer, .nav-overlay, .skip-link, .menu-toggle, .breadcrumb, .print-button, .no-print, .ad-strip { display: none !important; }
  .page-hero { background: none !important; color: #000; padding: 0 0 8pt; border-bottom: 2pt solid #000; }
  .page-hero::after { display: none; }
  .page-hero h1, .page-sub { color: #000 !important; }
  main { padding: 10pt 0; }
  .card, .place-card { box-shadow: none !important; border: 1px solid #bbb; break-inside: avoid; width: 100% !important; }
  a { color: #000; text-decoration: none; }
  .button { border: 1px solid #000; background: none !important; color: #000 !important; }
}

/* ---------- Icons ---------- */
.ico { width: 26px; height: 26px; flex-shrink: 0; }
.ico-sm { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; }
html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* ---------- Home ---------- */
.home main { padding: 0 0 0; }
.home-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 92% 0%, rgba(184,149,95,.33), transparent 62%),
    radial-gradient(700px 400px at 0% 110%, rgba(21,122,107,.35), transparent 60%),
    linear-gradient(125deg, #15263a 0%, var(--navy-2) 55%, #1d4652 100%);
  padding: 72px 0 120px;
}
.home-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cpath d='M32 4 60 32 32 60 4 32Z' fill='none' stroke='%23fff' stroke-width='1'/%3E%3Cpath d='M32 16 48 32 32 48 16 32Z' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E");
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .8fr); gap: 56px; align-items: center; }
.hero-eyebrow { margin: 0 0 10px; color: #e9d6b4; font: 700 1.15rem/1.3 var(--font-display); letter-spacing: .02em; }
.home-hero h1 { margin: 0; color: #fff; font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4.1rem); line-height: 1.08; letter-spacing: -.005em; }
.hero-lead { margin: 18px 0 0; max-width: 40em; font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); line-height: 1.6; color: rgba(255,255,255,.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-actions .button { padding: 12px 22px; font-size: 1.02rem; }
.hero-actions .button + .button { margin: 0; }

.today-card {
  position: relative; padding: 26px 28px; border-radius: 18px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 20px 50px rgba(5, 15, 25, .25); backdrop-filter: blur(4px);
}
.today-card-label { margin: 0; color: #e9d6b4; font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
html[lang="yi"] .today-card-label { letter-spacing: 0; font-size: 15px; }
.today-card-heb { margin: 6px 0 0; font: 800 2.1rem/1.15 var(--font-display); color: #fff; }
.today-card-greg { margin: 4px 0 0; color: rgba(255,255,255,.78); }
.shabbos-box { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); }
.shabbos-title { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; font: 700 1.2rem/1.3 var(--font-display); color: #fff; }
.shabbos-title .ico-sm { color: #e9d6b4; }
.shabbos-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.shabbos-table th { padding: 4px 0 6px; color: rgba(255,255,255,.6); font-weight: 500; font-size: 13px; text-align: end; }
.shabbos-table td { padding: 6px 0; border-top: 1px solid rgba(255,255,255,.1); text-align: end; font-variant-numeric: tabular-nums; color: #fff; font-weight: 600; }
.shabbos-table td:first-child, .shabbos-table th:first-child { text-align: start; color: rgba(255,255,255,.85); font-weight: 500; }
.shabbos-note { margin: 10px 0 0; font-size: 12.5px; color: rgba(255,255,255,.55); }

.quick-links {
  position: relative; z-index: 2; margin-top: -72px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.quick-tile {
  display: flex; align-items: center; gap: 14px; padding: 18px 18px;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); color: var(--ink); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.quick-tile:hover, .quick-tile:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--gold-2); color: var(--ink); }
.quick-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 13px; background: var(--gold-soft); color: var(--gold); flex-shrink: 0; transition: background .15s ease, color .15s ease; }
.quick-tile:hover .quick-icon { background: var(--navy); color: #f1dfbf; }
.quick-text { display: flex; flex-direction: column; min-width: 0; }
.quick-title { font: 700 1.15rem/1.25 var(--font-display); color: var(--navy); }
.quick-desc { font-size: 14px; color: var(--muted); line-height: 1.35; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 28px; margin-top: 44px; align-items: start; }
.home-col-side { display: flex; flex-direction: column; gap: 28px; }
.home-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 32px; }
.home-card h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 1.45rem; }
.home-card h2 .ico-sm { color: var(--gold); width: 22px; height: 22px; }

.section-head-row { margin-bottom: 14px; }
.section-head-row .eyebrow { margin-bottom: 2px; }
.notice-card { background: linear-gradient(180deg, #fffdf8, #fff 40%); border-top: 4px solid var(--gold-2); }
.notice-summary { margin: 0 0 18px; color: var(--ink); font-size: 1.04rem; }
.notice-text {
  margin: 0 auto; padding: 26px 22px; max-width: 620px; text-align: center;
  background: var(--cream); border: 1px solid var(--border); border-radius: 12px;
  font-family: var(--font-display); color: var(--navy);
  box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 7px #eadfca;
}
.notice-text .notice-line { margin: 2px 0; font-size: 1.15rem; line-height: 1.5; }
.notice-text .notice-big { font-size: 1.85rem; font-weight: 800; color: var(--navy); }
.notice-text .notice-strong { font-size: 1.35rem; font-weight: 700; color: var(--gold); }
.notice-text .notice-small { font-size: .95rem; opacity: .75; }
.notice-original { margin-top: 16px; text-align: center; }
.notice-original summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 15px; }
.notice-original img { display: block; width: 345px; max-width: 100%; height: auto; margin: 12px auto 0; border-radius: 6px; border: 1px solid var(--border); }

.widget-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.widget-date { margin: 0; color: var(--muted); font-size: 14px; }
.loc-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 16px 0 6px; padding: 4px; background: var(--cream); border: 1px solid var(--border); border-radius: 11px; }
.loc-tab { padding: 8px 6px; border-radius: 8px; background: transparent; color: var(--muted); font-size: 14.5px; font-weight: 600; border: 0; }
.loc-tab:hover { background: rgba(255,255,255,.8); color: var(--navy); }
.loc-tab[aria-selected="true"] { background: var(--paper); color: var(--navy); box-shadow: var(--shadow-sm); }
.zman-list { margin: 8px 0 0; }
.zman-list .zman-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 2px; border-bottom: 1px dashed var(--border); }
.zman-list .zman-row:last-child { border-bottom: 0; }
.zman-list dt { color: var(--ink); }
.zman-list dd { margin: 0; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.zman-list .zman-row.is-next { background: var(--gold-soft); border-radius: 8px; padding-inline: 10px; border-bottom-color: transparent; }
.zman-list .zman-row.is-next dt::after { content: attr(data-next); margin-inline-start: 8px; font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; }
.zman-list .zman-row.is-past { opacity: .55; }
.zman-loading, .zman-error { padding: 14px 0; color: var(--muted); }
.widget-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; text-decoration: none; }
.widget-more:hover { text-decoration: underline; }

.simchas-hero h2 { margin-bottom: 6px; }
.simcha-home-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.simcha-home-item:last-child { border-bottom: 0; }
.simcha-home-item h3 { margin: 0 0 4px; font-size: 1.1rem; }
.simcha-home-item p { margin: 0; color: var(--muted); }
.offline-note { margin: 10px 0 0 !important; padding: 12px 14px; border-radius: 10px; background: var(--cream); color: var(--muted) !important; font-size: 15px; }

.ad-strip {
  display: flex; align-items: center; gap: 14px; margin-top: 28px; padding: 14px 22px;
  background: var(--paper); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm);
  color: var(--ink); text-decoration: none;
}
.ad-strip:hover { box-shadow: var(--shadow); color: var(--ink); }
.ad-strip .ad-tag { flex-shrink: 0; padding: 3px 10px; border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ad-strip .ad-text { flex: 1; min-width: 0; }
.ad-strip .ad-text strong { display: block; }
.ad-strip .ad-text span { display: block; font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.home-section { padding: 72px 0 0; }
.home-section:last-child { padding-bottom: 80px; }
.section-head { margin-bottom: 26px; }
.section-head h2 { margin: 0; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); }
.places .place-card { border-top: 4px solid var(--accent); }
.place-links a .ico-sm { margin-inline-end: 4px; color: var(--gold); }
.place-more { margin-inline-start: auto; }
.place-card-photo .place-photo { aspect-ratio: 16 / 7; }

.about-band { margin-top: 72px; padding: 72px 0; background: var(--cream); border-block: 1px solid var(--border); }
.about-band + .home-section { padding-top: 72px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.about-copy p { font-size: 1.06rem; }
.about-copy h2 { margin: 0 0 14px; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); }
.about-copy .button { margin-top: 10px; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 7px; width: 2px; background: linear-gradient(var(--gold-2), var(--accent)); opacity: .5; }
.timeline li { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0 12px 36px; }
html[dir="rtl"] .timeline li { padding: 12px 36px 12px 0; }
.timeline li::before { content: ""; position: absolute; top: 18px; inset-inline-start: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 3px solid var(--gold-2); }
.timeline li:last-child::before { border-color: var(--accent); background: var(--accent); }
.tl-year { font: 700 1.2rem/1.35 var(--font-display); color: var(--gold); }
.tl-text { color: var(--ink); }

.cta-section { padding-top: 72px; }
.cta-card { display: flex; gap: 20px; padding: 34px; border-radius: 18px; }
.cta-card h2 { margin: 0 0 6px; font-size: 1.55rem; }
.cta-card p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cta-actions .button + .button { margin: 0; }
.cta-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; flex-shrink: 0; }
.cta-donate { background: linear-gradient(130deg, var(--navy), #22465a); color: rgba(255,255,255,.85); }
.cta-donate h2 { color: #fff; }
.cta-donate .cta-icon { background: rgba(233,214,180,.15); color: #e9d6b4; }
.cta-share { background: var(--paper); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.cta-share .cta-icon { background: var(--accent-soft); color: var(--accent); }

@media (max-width: 1099px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .today-card { max-width: 560px; }
  .home-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 860px) {
  .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .home-hero { padding: 34px 0 86px; }
  .hero-eyebrow { font-size: 1rem; }
  .hero-lead { margin-top: 12px; }
  .hero-actions { margin-top: 20px; }
  .hero-actions .button { flex: 1 1 auto; padding: 11px 16px; font-size: .98rem; }
  .today-card { padding: 16px 18px; }
  .today-card-label, .today-card-heb, .today-card-greg { display: none; }
  .shabbos-box { margin-top: 0; padding-top: 0; border-top: 0; }
  .home-hero .today-card:not(:has(.shabbos-box:not([hidden]))) { display: none; }
  .quick-links { margin-top: -58px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .quick-tile { flex-direction: column; justify-content: center; gap: 6px; padding: 12px 4px; text-align: center; border-radius: 12px; }
  .quick-icon { width: 40px; height: 40px; border-radius: 11px; }
  .quick-icon .ico { width: 22px; height: 22px; }
  .quick-title { font-size: .84rem; font-family: var(--font-body); font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
  html[lang="yi"] .quick-title { font-size: .8rem; }
  .quick-text { width: 100%; }
  .quick-desc { display: none; }
  .home-grid { margin-top: 26px; gap: 20px; }
  .home-col-side { gap: 20px; }
  .home-card { padding: 22px 18px; }
  .notice-text { padding: 18px 12px; }
  .notice-text .notice-big { font-size: 1.5rem; }
  .home-section { padding-top: 48px; }
  .home-section:last-child { padding-bottom: 52px; }
  .about-band { margin-top: 48px; padding: 44px 0; }
  .about-band + .home-section { padding-top: 48px; }
  .timeline li { grid-template-columns: 1fr; gap: 0; }
  .cta-section { padding-top: 48px; }
  .cta-card { flex-direction: column; padding: 24px 20px; gap: 14px; }
  .ad-strip { flex-wrap: wrap; }
}

/* ---------- Inner pages ---------- */
.page-intro { width: min(1200px, 100%); margin: 0 auto 26px; }
.place-links-stack { flex-direction: column; gap: 8px; }
.bm-card { padding-top: 22px; }
.bm-card h2 { margin: 0; font-size: 1.5rem; }
.bm-card h2 a { color: var(--navy); text-decoration: none; }
.bm-card h2 a:hover { color: var(--accent-dark); }
.bm-logo { display: grid; place-items: center; height: 150px; margin-bottom: 12px; border-radius: var(--radius-sm); background: var(--cream); border: 1px solid var(--border); }
.bm-logo img { max-height: 120px; max-width: 80%; object-fit: contain; }
.bm-more { margin-top: 16px; align-self: flex-start; }
.place-links-stack a { word-break: break-word; }

.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; width: min(1200px, 100%); margin: 0 auto; align-items: start; }
.page-layout > * { min-width: 0; }
.page-layout .card { width: 100%; margin: 0; }
.page-layout .card + .card, .page-layout div + .card { margin-top: 22px; }
.page-aside { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 140px; }
.page-aside .card { margin: 0 !important; padding: 24px; }
.page-aside h2 { font-size: 1.25rem; }
.page-feed > .card:first-child, .page-feed > div:first-child + .card { margin-top: 0; }
@media (max-width: 960px) {
  .page-layout { grid-template-columns: 1fr; }
  .page-aside { position: static; order: -1; }
}

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; width: min(1100px, 100%); margin: 0 auto; }
.contact-grid .card { width: 100%; margin: 0; }
.contact-card h2 { display: flex; align-items: center; gap: 10px; }
.contact-card .contact-mail { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 14px; font-weight: 600; text-decoration: none; word-break: break-all; }
.contact-card .contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.contact-card .contact-actions .button + .button { margin: 0; }
.contact-person a .ico-sm { margin-inline-end: 4px; color: var(--gold); }

.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; width: min(1160px, 100%); margin: 0 auto; align-items: start; }
.about-layout .card { width: 100%; margin: 0; }
.about-layout .card p { font-size: 1.08rem; line-height: 1.8; }
.about-aside { position: sticky; top: 140px; }
.about-aside h2 { font-size: 1.3rem; margin: 0 0 12px; }
.about-aside .timeline li { grid-template-columns: 1fr; gap: 0; padding-block: 8px; }
.about-aside .timeline li::before { top: 14px; }
.source-note { font-size: 13px !important; color: var(--muted); }
@media (max-width: 960px) {
  .about-layout { grid-template-columns: 1fr; }
  .about-aside { position: static; }
}
@media (max-width: 680px) {
  .contact-grid { grid-template-columns: 1fr; gap: 18px; }
  .bm-logo { height: 120px; }
}

.bm-fullname { font-size: 1.6rem; margin: 2px 0 6px; }
.bm-address { display: flex; align-items: center; gap: 6px; font-style: normal; color: var(--muted); }
.bm-address .ico-sm, .contact-mail .ico-sm { color: var(--gold); }
.contact-heading { margin: 22px 0 4px; font-size: 1.05rem; color: var(--muted); font-family: var(--font-body); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
html[lang="yi"] .contact-heading { letter-spacing: 0; text-transform: none; }
.page-aside .home-card { padding: 24px; }

.place-card h2 { margin: 0; font-size: 1.5rem; }
.camp-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; margin-top: 24px; padding: 18px; }
.camp-feature .camp-photo { margin: 0; aspect-ratio: 4 / 3; object-fit: cover; height: auto; }
.camp-feature .camp-text { padding: 10px 14px; }
.place-links .map-link { margin-top: 0; }
@media (max-width: 680px) { .camp-feature { grid-template-columns: 1fr; gap: 12px; } }
@media (max-width: 960px) { .page-layout.details-first .page-aside { order: 0; } }

/* ---------- Simcha invitations: home banner, menu and footer links ---------- */
.invite-promo .inv-kicker { margin: 0 0 6px; font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
html[lang="yi"] .invite-promo .inv-kicker { letter-spacing: 0; font-size: .95rem; }
.invite-promo { padding: 8px 0 34px; }
.invite-promo-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 24px;
  padding: 34px 40px; border-radius: 20px; color: #fff;
  background: radial-gradient(700px 300px at 90% 120%, rgba(184,149,95,.45), transparent 60%), linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 65%, #1f4a57 100%); box-shadow: var(--shadow-md, 0 10px 30px rgba(20,30,45,.18)); }
.invite-promo-card h2 { margin: 4px 0 8px; color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); }
.invite-promo-card p { margin: 0 0 18px; color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 560px; }
.invite-promo-card .inv-kicker { color: #e1c48f; }
.invite-promo-card .button { margin: 0 0 8px; }
.invite-promo-art { margin: -10px 0 -40px; justify-self: center; }
.invite-promo-art img { display: block; width: min(380px, 100%); height: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35)); }
.nav-invite > a { color: var(--gold) !important; font-weight: 700; }
.footer-invite { display: inline-flex; margin-top: 10px; color: #e1c48f; font-weight: 600; }

@media (max-width: 860px) {
  .invite-promo-card { grid-template-columns: 1fr; padding: 26px 22px 0; text-align: start; }
  .invite-promo-art { margin: 0 auto -6px; }
  .invite-promo-art img { width: min(300px, 86%); }
}

/* Desktop header on narrower laptops (1100–1359px): keep the whole menu on one line. */
@media (min-width: 1100px) and (max-width: 1359px) {
  .mainbar-inner { gap: 14px; }
  .nav-list > li > a, .nav-parent { padding: 9px 8px; font-size: 14.5px; }
  html[lang="yi"] .nav-list > li > a, html[lang="yi"] .nav-parent { font-size: 15.5px; }
}
@media (min-width: 1100px) and (max-width: 1239px) {
  .brand-text { display: none; }
}


/* =====================================================================
   v3 features: install banner, share-zmanim card, Shabbos page, yahrzeit
   ===================================================================== */
.link-button { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { background: none; color: #fff; }
.footer-bottom-links .link-button { color: inherit; font-weight: 500; }

/* ---------- Install banner (phones) ---------- */
.install-banner {
  position: fixed; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 1500;
  display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center;
  max-width: 520px; margin-inline: auto; padding: 14px 44px 14px 14px;
  background: #fff; color: var(--ink); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 10px 40px rgba(15, 28, 40, .25);
  transform: translateY(140%); opacity: 0; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease;
}
html[dir="rtl"] .install-banner { padding: 14px 14px 14px 44px; }
.install-banner.is-visible { transform: none; opacity: 1; }
.install-banner-icon { width: 48px; height: 48px; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.install-banner-text { display: flex; flex-direction: column; line-height: 1.35; }
.install-banner-text strong { font: 700 1.04rem/1.3 var(--font-display); color: var(--navy); }
.install-banner-text span { font-size: .9rem; color: var(--muted); }
.install-banner-actions { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; }
.install-banner-actions .button { padding: 9px 18px; }
.install-later { padding: 9px 12px; background: none; color: var(--muted); border: 0; font-weight: 500; }
.install-later:hover { background: var(--cream); color: var(--navy); }
.install-close { position: absolute; top: 6px; inset-inline-end: 6px; width: 34px; height: 34px; padding: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 22px; line-height: 1; }
.install-close:hover { background: var(--cream); color: var(--navy); }

.ios-sheet { position: fixed; inset: 0; z-index: 1600; }
.ios-sheet-backdrop { position: absolute; inset: 0; background: rgba(10, 20, 30, .45); opacity: 0; transition: opacity .25s ease; }
.ios-sheet-panel {
  position: absolute; inset-inline: 0; bottom: 0; max-width: 560px; margin-inline: auto;
  padding: 26px 24px calc(22px + env(safe-area-inset-bottom, 0px)); text-align: center;
  background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.2);
  transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.ios-sheet.is-open .ios-sheet-backdrop { opacity: 1; }
.ios-sheet.is-open .ios-sheet-panel { transform: none; }
.ios-sheet-icon { border-radius: 15px; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.ios-sheet-panel h2 { margin: 12px 0 14px; font-size: 1.35rem; }
.ios-sheet-close { position: absolute; top: 10px; inset-inline-end: 10px; width: 36px; height: 36px; padding: 0; border-radius: 50%; background: var(--cream); color: var(--navy); font-size: 22px; }
.ios-steps { list-style: none; margin: 0 0 18px; padding: 0; text-align: start; display: grid; gap: 10px; }
.ios-steps li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; background: var(--cream); border-radius: 14px; line-height: 1.4; }
.ios-steps small { display: block; color: var(--muted); font-size: .85rem; }
.ios-steps small svg { width: 16px; height: 16px; vertical-align: -3px; }
.ios-step-icon { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: #fff; color: #0a7aff; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.ios-step-icon svg { width: 24px; height: 24px; }
.ios-step-text { font-weight: 700; font-size: .9rem; }
.ios-sheet-done { width: 100%; padding: 12px; }

/* ---------- Share zmanim ---------- */
.share-zmanim-btn { width: 100%; margin-top: 14px; }
.share-zmanim-btn[disabled] { opacity: .55; cursor: default; }
.zmanim-tools .share-zmanim-btn { width: auto; margin-top: 0; }
.zshare { position: fixed; inset: 0; z-index: 1600; display: none; }
.zshare.is-open { display: grid; place-items: center; padding: 16px; }
html.zshare-lock, html.zshare-lock body { overflow: hidden; }
.zshare-backdrop { position: absolute; inset: 0; background: rgba(10, 20, 30, .6); }
.zshare-panel {
  position: relative; width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow: auto;
  padding: 22px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
}
.zshare-panel h2 { margin: 0 40px 14px 0; font-size: 1.3rem; }
html[dir="rtl"] .zshare-panel h2 { margin: 0 0 14px 40px; }
.zshare-close { position: absolute; top: 12px; inset-inline-end: 12px; width: 36px; height: 36px; padding: 0; border-radius: 50%; background: var(--cream); color: var(--navy); font-size: 22px; }
.zshare-preview { display: grid; place-items: center; min-height: 240px; padding: 10px; background: var(--background); border-radius: 14px; }
.zshare-preview img { display: block; width: 100%; max-width: 340px; height: auto; border-radius: 10px; box-shadow: var(--shadow); }
.zshare-loading { color: var(--muted); }
.zshare-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.zshare-actions .zshare-native { grid-column: 1 / -1; padding: 13px; font-size: 1.05rem; }
.zshare-actions .zshare-copylink { grid-column: 1 / -1; }
.zshare-actions [aria-disabled="true"] { opacity: .5; pointer-events: none; }
.zshare-hint { margin: 12px 0 0; font-size: .88rem; color: var(--muted); }

/* ---------- Home additions ---------- */
.shabbos-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: #f1dfbf; font-weight: 600; text-decoration: none; }
.shabbos-link:hover { color: #fff; text-decoration: underline; }
html[dir="rtl"] .shabbos-link .arrow { transform: scaleX(-1); display: inline-block; }
@media (min-width: 1100px) { .quick-links { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 680px) { .quick-tile--extra { display: none !important; } }
.weekly-band { padding-top: 8px; }
.feature-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 28px;
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d9c9ac; }
.feature-card h3 { margin: 0; font-size: 1.4rem; }
.feature-card p { margin: 4px 0 10px; color: var(--muted); }
.feature-card .button { margin-top: auto; }
.feature-kicker { margin: 6px 0 0 !important; color: var(--gold) !important; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
html[lang="yi"] .feature-kicker { letter-spacing: 0; font-size: 15px; }
.feature-kicker [data-parsha]:not(:empty)::before { content: "· "; }
.feature-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--gold-soft); color: var(--gold); }
.feature-shabbos { background: linear-gradient(160deg, #fff 55%, var(--gold-soft)); }
.feature-yahrzeit .feature-icon { background: var(--accent-soft); color: var(--accent); }
.feature-icon-app { background: none; }
.feature-icon-app img { border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.feature-note { font-size: .92rem; margin-top: auto !important; }

/* ---------- Shabbos page ---------- */
.shabbos-page { max-width: 1200px; margin-inline: auto; }
.sb-banner {
  position: relative; overflow: hidden; margin: 0 auto 26px; padding: clamp(26px, 4vw, 46px);
  color: #fff; text-align: center; border-radius: 22px;
  background:
    radial-gradient(600px 260px at 50% -10%, rgba(201,168,116,.38), transparent 70%),
    linear-gradient(135deg, #15263a, var(--navy-2) 60%, #1d4652);
  box-shadow: var(--shadow-lg);
}
.sb-banner::before, .sb-banner::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(233,214,180,.35); border-radius: 14px; pointer-events: none; }
.sb-banner::after { inset: 18px; border-color: rgba(233,214,180,.18); }
.sb-banner-inner { position: relative; z-index: 1; }
.sb-kicker { margin: 0; color: #e9d6b4; font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
html[lang="yi"] .sb-kicker { letter-spacing: 0; font-size: 16px; }
.sb-parsha-he { margin: 8px 0 0; color: #fff; font: 800 clamp(2.1rem, 1.4rem + 3vw, 3.4rem)/1.1 var(--font-display); }
.sb-parsha-en { margin: 6px 0 0; color: rgba(255,255,255,.85); font: 500 1.2rem/1.3 var(--font-display); }
.sb-dates { margin: 12px 0 0; color: rgba(255,255,255,.8); font-size: 1.05rem; }
.sb-dates #sbDateHe { font-family: var(--font-display); font-weight: 700; color: #f1dfbf; font-size: 1.15em; }
.sb-dot { margin-inline: 10px; opacity: .6; }
.sb-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.sb-chip { padding: 4px 12px; border-radius: 999px; background: rgba(233,214,180,.16); border: 1px solid rgba(233,214,180,.4); color: #f1dfbf; font-size: .9rem; font-weight: 600; }
.sb-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.sb-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 26px; align-items: start; }
.sb-grid .card { width: 100%; margin: 0; }
.sb-card h2 { display: flex; align-items: center; gap: 10px; }
.sb-card h2 .ico-sm { width: 22px; height: 22px; color: var(--gold); }
.sb-table-wrap { overflow-x: auto; margin-top: 6px; }
.sb-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sb-table th, .sb-table td { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: end; white-space: nowrap; }
.sb-table thead th { color: var(--muted); font-size: .82rem; font-weight: 600; vertical-align: bottom; }
.sb-table thead th small { display: block; font-weight: 500; color: var(--gold); }
.sb-table tbody th { text-align: start; font-weight: 600; color: var(--navy); white-space: normal; }
.sb-table td { font-weight: 600; color: var(--ink); }
.sb-table td.sb-strong { color: var(--navy); font-size: 1.12rem; font-weight: 700; }
.sb-table tr.sb-group th { padding-top: 16px; color: var(--gold); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; border-bottom: 2px solid var(--gold-soft); }
html[lang="yi"] .sb-table tr.sb-group th { letter-spacing: 0; font-size: .95rem; }
.sb-table tbody tr:not(.sb-group):hover { background: var(--cream); }
.sb-loading { text-align: center !important; color: var(--muted); font-weight: 400 !important; white-space: normal !important; padding: 26px 8px !important; }
.sb-note { margin-top: 14px !important; font-size: .88rem; color: var(--muted); }
.sb-torah { width: 100%; max-width: none; margin-top: 26px; }
.sb-torah h2 { margin-top: 0; }
.sb-empty { margin: 8px 0 0; padding: 34px 20px; text-align: center; border-radius: 16px; background: linear-gradient(180deg, var(--cream), #fff); border: 1px dashed #d9c9ac; }
.sb-empty-orn { width: 140px; height: 26px; color: var(--gold-2); }
.sb-empty-title { margin: 10px 0 4px !important; font: 700 1.6rem/1.2 var(--font-display); color: var(--navy); }
.sb-empty-text { margin: 0 auto !important; max-width: 34em; color: var(--muted); }
.sb-torah-item + .sb-torah-item { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.sb-torah-item h3 { margin: 0 0 4px; font-size: 1.45rem; }
.sb-torah-by { margin: 0 0 10px !important; color: var(--gold); font-weight: 600; }
.sb-torah-text p { margin: 0 0 12px; font-size: 1.06rem; line-height: 1.8; }
.sb-torah-text[dir="rtl"] p { font-family: var(--font-display); font-size: 1.18rem; }
.sb-torah-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.sb-audio { width: 100%; margin-top: 10px; }
.sb-torah-parsha { color: var(--gold); font-weight: 700; }
@media (max-width: 960px) { .sb-grid { grid-template-columns: 1fr; gap: 18px; } }
@media (max-width: 680px) {
  .sb-banner { border-radius: 16px; margin-bottom: 18px; }
  .sb-actions .button { flex: 1 1 100%; }
  .sb-table th, .sb-table td { padding: 9px 4px; font-size: .93rem; }
  .sb-table thead th { font-size: .74rem; white-space: normal; }
  .sb-table td.sb-strong { font-size: 1rem; }
  .sb-torah { margin-top: 18px; }
}

/* ---------- Yahrzeit page ---------- */
.yahrzeit-page { max-width: 1200px; margin-inline: auto; }
.yz-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 26px; align-items: start; }
.yz-layout .card { width: 100%; margin: 0; }
.yz-side { display: grid; gap: 26px; }
.yz-side .card + .card { margin-top: 0; }
.yz-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.yz-field > label, .yz-field > legend { font-weight: 600; color: var(--navy); padding: 0; margin-bottom: 6px; }
.yz-field input[type="text"], .yz-field input[type="date"], .yz-field input[type="number"], .yz-field select {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 1.05rem; color: var(--ink);
  background: #fff; border: 1px solid #cfc6b6; border-radius: 10px;
}
.yz-field input:focus, .yz-field select:focus { outline: 3px solid rgba(184,149,95,.35); border-color: var(--gold); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 4px; background: var(--cream); border: 1px solid var(--border); border-radius: 12px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 46px; padding: 8px 10px; border-radius: 9px; font-weight: 600; color: var(--muted); text-align: center; cursor: pointer; line-height: 1.25; }
.seg label small { font-weight: 400; font-size: .8rem; }
.seg input:checked + label { background: #fff; color: var(--navy); box-shadow: 0 1px 4px rgba(27,45,62,.14); }
.seg input:focus-visible + label { outline: 3px solid var(--gold-2); outline-offset: 1px; }
.yz-help { margin: 6px 0 0 !important; font-size: .88rem; color: var(--muted); }
.yz-heb-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 110px; gap: 10px; }
.yz-heb-row .yz-field { margin-bottom: 0; }
.yz-year-he { font-family: var(--font-display); font-weight: 700; color: var(--navy); }
.yz-preview { margin: 12px 0 0 !important; padding: 12px 14px; background: var(--gold-soft); border-radius: 10px; color: var(--navy); font-weight: 500; }
.yz-error { margin: 12px 0 0 !important; padding: 12px 14px; background: #fdecea; border: 1px solid #f3c2bc; border-radius: 10px; color: #8a1f12; font-weight: 500; }
.yz-submit { width: 100%; margin-top: 18px; padding: 14px; font-size: 1.08rem; }
.yz-privacy { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0 !important; font-size: .88rem; color: var(--muted); }
.yz-privacy .ico-sm { margin-top: 3px; color: var(--accent); }
.yz-result h2 { margin: 0; font-size: 1.7rem; }
.yz-result .eyebrow { margin-bottom: 2px; }
.yz-summary { margin: 8px 0 18px !important; color: var(--muted); line-height: 1.6; }
.yz-summary .yz-he { font-family: var(--font-display); }
.yz-summary .yz-each { display: inline-block; margin-top: 6px; color: var(--navy); font-size: 1.08rem; }
.yz-years { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.yz-year { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.yz-year.is-next { background: var(--gold-soft); border-color: #e2cfa8; }
.yz-year-main p { margin: 0 !important; }
.yz-hdate { font: 700 1.12rem/1.3 var(--font-display); color: var(--navy); }
.yz-date { font-weight: 600; color: var(--ink); }
.yz-eve { font-size: .88rem; color: var(--muted); }
.yz-alt { margin-top: 4px !important; font-size: .9rem; color: var(--accent-dark); font-weight: 500; }
.yz-year-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.yz-badge { padding: 2px 10px; border-radius: 999px; background: var(--gold); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.yz-gcal { font-size: .82rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.yz-gcal:hover { text-decoration: underline; }
.yz-adar-note { margin: 14px 0 0 !important; padding: 12px 14px; background: var(--accent-soft); border-radius: 10px; color: var(--accent-dark); font-size: .92rem; }
.yz-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.yz-actions .button:first-child { grid-column: 1 / -1; padding: 13px; font-size: 1.05rem; }
.yz-actions .button[disabled] { opacity: .75; cursor: default; background: var(--accent-dark); }
.yz-saved-msg { margin: 12px 0 0 !important; color: var(--accent-dark); font-weight: 600; }
.yz-steps { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; color: var(--muted); }
.yz-saved-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.yz-saved-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: var(--cream); border-radius: 12px; }
.yz-saved-info { display: flex; flex-direction: column; min-width: 0; }
.yz-saved-info strong { color: var(--navy); font-size: 1.05rem; overflow-wrap: anywhere; }
.yz-saved-info span { font-size: .88rem; color: var(--muted); }
.yz-saved-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.yz-saved-actions .button { padding: 7px 14px; }
.yz-remove { padding: 7px 10px; background: none; color: #a0392b; border: 0; font-weight: 600; }
.yz-remove:hover { background: #fdecea; color: #7d2216; }
.yz-rules { width: 100%; max-width: none; margin-top: 26px !important; }
.yz-rules summary { cursor: pointer; font: 700 1.15rem/1.3 var(--font-display); color: var(--navy); }
.yz-rules ul { margin: 14px 0 0; padding-inline-start: 22px; display: grid; gap: 8px; color: var(--muted); }
@media (max-width: 960px) { .yz-layout { grid-template-columns: 1fr; gap: 18px; } .yz-side { gap: 18px; } }
@media (max-width: 680px) {
  .yz-heb-row { grid-template-columns: 84px minmax(0, 1fr); }
  .yz-heb-row .yz-field:last-child { grid-column: 1 / -1; }
  .yz-year { padding: 11px 12px; }
  .yz-actions { grid-template-columns: 1fr; }
  .yz-rules { margin-top: 18px !important; }
}

/* ---------- Offline page ---------- */
.offline-page { min-height: 100vh; display: grid; place-items: center; }
.offline-card { text-align: center; }
.offline-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 !important; }

@media print {
  .install-banner, .ios-sheet, .zshare, .share-zmanim-btn, [data-install-app], .no-print, .yz-form-card, .yz-saved, .yz-intro, .yz-rules, .yz-gcal { display: none !important; }
  .sb-banner { background: none !important; color: #000; box-shadow: none; border: 2pt solid #000; padding: 14pt; margin-bottom: 12pt; }
  .sb-banner::before, .sb-banner::after { display: none; }
  .sb-parsha-he, .sb-parsha-en, .sb-dates, .sb-dates #sbDateHe, .sb-kicker, .sb-chip { color: #000 !important; }
  .sb-chip { background: none; border-color: #000; }
  .sb-grid { grid-template-columns: 1fr 1fr; gap: 12pt; }
  .sb-table th, .sb-table td { padding: 4pt 3pt; font-size: 10.5pt; }
  .sb-torah { break-inside: auto; }
  .yz-layout { display: block; }
  .yz-year { break-inside: avoid; }
}

.yz-he { font-family: var(--font-display); font-weight: 700; unicode-bidi: isolate; }
.yz-strong { font-weight: 600; color: var(--ink); }
.yz-year { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 680px) {
  .yz-year { grid-template-columns: 1fr; gap: 6px; }
  .yz-year-side { flex-direction: row; justify-content: space-between; align-items: center; }
  .yz-year:not(.is-next) .yz-year-side { justify-content: flex-start; }
}


/* ---------- Footer link to the Chol Hamoed site ---------- */
.footer-external { display: inline-block; margin-top: 8px; color: #e9d6b4; font-weight: 600; text-decoration: none; }
.footer-external:hover { color: #fff; text-decoration: underline; }
.footer-brand .footer-invite + .footer-external { margin-inline-start: 0; display: block; }
.family-band { padding-top: 0; }
.feature-kids .feature-icon { background: #fff4d6; color: #b07d12; }
.feature-rides .feature-icon { background: #e8eef6; color: var(--navy-3); }
.feature-cholhamoed { background: linear-gradient(160deg, #fff 55%, var(--accent-soft)); }
.feature-cholhamoed .feature-icon { background: var(--accent-soft); color: var(--accent); }

/* ---------- Kids' corner ---------- */
.kids-page { max-width: 1100px; margin-inline: auto; }
.kids-hero {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-bottom: 26px; padding: clamp(24px, 4vw, 44px); border-radius: 24px; color: #fff;
  background: radial-gradient(500px 240px at 90% 0%, rgba(255, 214, 120, .35), transparent 70%), linear-gradient(135deg, #1d4652, var(--navy-2));
  box-shadow: var(--shadow-lg);
}
.kids-hero h2 { margin: 6px 0 8px; color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.8rem); }
.kids-hero p { margin: 0; color: rgba(255,255,255,.88); font-size: 1.1rem; max-width: 34em; }
.kids-kicker { color: #ffd98a !important; font-weight: 700; font-size: 13px !important; letter-spacing: .14em; text-transform: uppercase; }
html[lang="yi"] .kids-kicker { letter-spacing: 0; font-size: 16px !important; }
.kids-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.kids-hero-art { flex: 0 0 auto; width: 200px; color: #ffd98a; opacity: .95; }
.kids-card { width: 100%; max-width: none; }
.kids-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.kids-card-head h2 { margin: 0; }
.kids-stars { display: flex; gap: 2px; font-size: 1.7rem; line-height: 1; }
.kstar { color: #e2dccf; transition: color .25s ease, transform .25s ease; }
.kstar.is-on { color: #f2b51c; transform: scale(1.12); }
.kids-sub { color: var(--muted); }
.quiz-body { margin-top: 18px; }
.quiz-loading { color: var(--muted); }
.quiz-list { margin: 0; padding: 0; list-style: none; counter-reset: q; display: grid; gap: 16px; }
.quiz-q { counter-increment: q; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: #fffdf8; }
.quiz-q-text { margin: 0 0 12px !important; font: 700 1.2rem/1.4 var(--font-display); color: var(--navy); }
.quiz-q-text::before { content: counter(q) ". "; color: var(--gold); }
.quiz-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.quiz-opt { justify-content: flex-start; min-height: 52px; padding: 12px 16px; text-align: start; background: #fff; color: var(--ink); border: 2px solid var(--border); border-radius: 14px; font-size: 1.05rem; font-weight: 600; }
.quiz-opt:hover:not([disabled]) { border-color: var(--gold-2); background: var(--gold-soft); color: var(--navy); }
.quiz-opt[disabled] { cursor: default; opacity: .7; }
.quiz-opt.is-right { opacity: 1; border-color: #2e9d62; background: #e7f6ee; color: #145c36; }
.quiz-opt.is-right::after { content: " ✓"; margin-inline-start: auto; }
.quiz-opt.is-wrong { opacity: 1; border-color: #e0a19a; background: #fdf0ee; color: #8a2a1e; }
.quiz-feedback { margin: 10px 0 0 !important; font-weight: 600; }
.quiz-feedback.good { color: #1d7a48; }
.quiz-feedback.try { color: #8a5a12; }
.quiz-done { margin-top: 20px; padding: 22px; text-align: center; border-radius: 16px; background: linear-gradient(180deg, #fff6dc, #fff); border: 1px solid #f0dca4; }
.quiz-done-title { margin: 0 0 12px !important; font: 800 1.5rem/1.3 var(--font-display); color: var(--navy); }
.quiz-empty { padding: 30px 18px; text-align: center; border-radius: 16px; background: linear-gradient(180deg, var(--cream), #fff); border: 1px dashed #d9c9ac; }
.quiz-empty-orn { width: 140px; height: 26px; color: var(--gold-2); }
.quiz-empty-title { margin: 8px 0 4px !important; font: 700 1.45rem/1.3 var(--font-display); color: var(--navy); }
.quiz-other { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.quiz-other-label { margin: 0 0 8px !important; font-weight: 600; color: var(--muted); }
.quiz-other-list { display: flex; flex-wrap: wrap; gap: 8px; }
.quiz-other-btn, .chip-btn { padding: 8px 14px; background: var(--cream); color: var(--navy); border: 1px solid var(--border); border-radius: 999px; font-weight: 600; }
.quiz-other-btn:hover, .chip-btn:hover { background: var(--gold-soft); color: var(--navy); border-color: var(--gold-2); }
.coloring-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 16px; }
.coloring-card { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: #fff; transition: transform .18s ease, box-shadow .18s ease; }
.coloring-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.coloring-art { padding: 14px; background: #fff; border-bottom: 1px solid var(--border); }
.coloring-art svg { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; }
.coloring-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; background: var(--cream); }
.coloring-name { font: 700 1.1rem/1.2 var(--font-display); color: var(--navy); }
.coloring-print-btn { padding: 8px 14px; }
.coloring-print { display: none; }
@media (max-width: 860px) { .coloring-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kids-hero-art { width: 130px; } }
@media (max-width: 680px) {
  .kids-hero { flex-direction: column; align-items: flex-start; border-radius: 18px; margin-bottom: 18px; }
  .kids-hero-art { position: absolute; inset-inline-end: 12px; top: 12px; width: 90px; opacity: .45; }
  .kids-hero-actions .button { flex: 1 1 auto; }
  .coloring-grid { gap: 12px; }
  .coloring-card figcaption { flex-direction: column; align-items: stretch; text-align: center; }
  .quiz-opts { grid-template-columns: 1fr; }
}
@media print {
  body.printing-coloring > *:not(main), body.printing-coloring main > *:not(.coloring-print) { display: none !important; }
  body.printing-coloring main { padding: 0 !important; }
  body.printing-coloring .coloring-print { display: block !important; text-align: center; }
  body.printing-coloring .coloring-print svg { width: 100%; height: 225mm; }
  .coloring-print-foot { margin: 4mm 0 0; font-size: 10pt; color: #555; }
  .kids-hero, .quiz-other, .coloring-print-btn { display: none !important; }
}

/* ---------- Rides board ---------- */
.rides-page { max-width: 980px; margin-inline: auto; }
.rides-page .card { width: 100%; }
.rides-intro { display: flex; gap: 18px; align-items: flex-start; }
.rides-intro h2 { margin: 0 0 6px; }
.rides-intro p { color: var(--muted); }
.rides-state { text-align: center; }
.rides-state h2 { margin: 0 0 8px; }
.rides-state p { max-width: 36em; margin-inline: auto !important; color: var(--muted); }
.rides-state .button { margin-top: 14px; }
.rides-loading { color: var(--muted); }
.rides-type { margin-bottom: 14px; }
.rides-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.rides-wide { grid-column: 1 / -1; }
.rides-form .button { width: 100%; padding: 13px; font-size: 1.05rem; }
.rides-status { margin-top: 10px !important; font-weight: 600; color: var(--accent-dark); }
.rides-list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.rides-list-head h2 { margin: 0; }
.rides-filter { display: flex; gap: 6px; }
.chip-btn[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.rides-list { display: grid; gap: 12px; }
.ride-card { position: relative; padding: 16px 18px; border: 1px solid var(--border); border-inline-start: 5px solid var(--accent); border-radius: 14px; background: #fff; }
.ride-card.ride-request { border-inline-start-color: var(--gold); }
.ride-card p { margin: 2px 0 !important; }
.ride-tag { display: inline-block; margin-bottom: 4px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark); font-size: .8rem; font-weight: 700; }
.ride-request .ride-tag { background: var(--gold-soft); color: #7a5a2e; }
.ride-route { margin: 2px 0 4px; font-size: 1.25rem; }
.ride-arrow { color: var(--gold); }
.ride-when { color: var(--muted); font-weight: 500; }
.ride-notes { color: var(--ink); }
.ride-card .yz-remove { position: absolute; top: 10px; inset-inline-end: 10px; }
.rides-empty { color: var(--muted); text-align: center; padding: 18px 0; }
@media (max-width: 680px) { .rides-grid { grid-template-columns: 1fr; } .rides-intro { flex-direction: column; } }

/* ===== Shabbos Hilula Kadisha 5787 (hilula.html) + home announcement card ===== */
.hilula-page { max-width: 1200px; margin-inline: auto; }
.hl-banner .sb-kicker { font-family: var(--font-display); letter-spacing: 0; text-transform: none; font-size: 1.05rem; }
.hl-actions .button { display: inline-flex; align-items: center; gap: 8px; }
.hl-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 26px; align-items: start; }
.hl-grid .card { width: 100%; margin: 0; }
.hl-side { display: grid; gap: 26px; }
.hl-side .card + .card { margin-top: 0; }
.hl-poster { padding: 14px; text-align: center; }
.hl-poster-link { position: relative; display: block; border-radius: 10px; overflow: hidden; line-height: 0; background: #0f1d2c; }
.hl-poster-link img { display: block; width: 100%; height: auto; }
.hl-poster-link:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }
.hl-zoom { position: absolute; inset-inline-end: 12px; bottom: 12px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: rgba(15,29,44,.78); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.3); }
.hl-zoom svg { width: 22px; height: 22px; }
.hl-poster figcaption { margin-top: 10px; color: var(--muted); font-size: .92rem; line-height: 1.4; }
.hl-dl { margin: 0; display: grid; gap: 0; }
.hl-dl > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.hl-dl > div:last-child { border-bottom: 0; }
.hl-dl dt { color: var(--gold); font-weight: 600; font-size: .86rem; letter-spacing: .04em; text-transform: uppercase; padding-top: 2px; }
html[lang="yi"] .hl-dl dt { letter-spacing: 0; text-transform: none; font-size: .95rem; }
.hl-dl dd { margin: 0; color: var(--navy); font-weight: 600; }
.hl-he { display: block; font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; color: var(--navy); direction: rtl; text-align: start; }
html[dir="ltr"] .hl-he { text-align: left; }
html[lang="yi"] .hl-he { margin-top: 0; }
.hl-poster-text {
  padding: 22px 16px; text-align: center; background: var(--cream); border: 1px solid var(--border); border-radius: 12px;
  font-family: var(--font-display); color: var(--navy); box-shadow: inset 0 0 0 6px #fff, inset 0 0 0 7px #eadfca;
}
.hl-poster-text .hl-line { margin: 3px 0; font-size: 1.08rem; line-height: 1.5; }
.hl-poster-text .hl-big { font-size: 1.9rem; font-weight: 800; line-height: 1.25; margin: 4px 0; }
.hl-poster-text .hl-crown { font-size: 1.5rem; font-weight: 800; color: var(--gold); letter-spacing: .04em; }
.hl-poster-text .hl-strong { font-size: 1.28rem; font-weight: 700; color: var(--gold); }
.hl-poster-text .hl-small { font-size: .98rem; opacity: .8; }
.hl-times { width: 100%; max-width: 1200px; margin-top: 26px !important; }
.hl-times h2 { display: flex; align-items: center; gap: 10px; }
.hl-times h2 .ico-sm { color: var(--gold); width: 22px; height: 22px; }
.hl-cal-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 16px 0 6px; }
.hl-cal-label { margin: 0 !important; color: var(--muted); font-size: .92rem; font-weight: 600; }
.hl-locs { display: flex; flex-wrap: wrap; gap: 6px; }
.hl-loc { background: #fff; color: var(--navy); border: 1px solid var(--border); padding: 7px 14px; border-radius: 999px; font-size: .92rem; font-weight: 600; }
.hl-loc:hover { background: var(--gold-soft); color: var(--navy); }
.hl-loc[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.hl-lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; margin: 0; }
.hl-lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.hl-lightbox::backdrop { background: rgba(10,18,28,.92); }
.hl-lightbox img { display: block; max-width: calc(100vw - 24px); max-height: calc(100vh - 90px); width: auto; height: auto; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.5); cursor: zoom-out; }
.hl-close { position: fixed; top: 12px; inset-inline-end: 12px; width: 44px; height: 44px; padding: 0; border-radius: 50%; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.4); color: #fff; font-size: 28px; line-height: 1; }
.hl-close:hover { background: rgba(255,255,255,.26); }
.hl-open-full { color: #e9d6b4; font-weight: 600; font-size: .95rem; }
html.hl-noscroll { overflow: hidden; }
@media (max-width: 860px) {
  .hl-grid { grid-template-columns: 1fr; gap: 18px; }
  .hl-side { gap: 18px; }
  .hl-times { margin-top: 18px !important; }
  .hl-poster { padding: 10px; }
}
@media (max-width: 680px) {
  .hl-actions .button { flex: 1 1 100%; justify-content: center; }
  .hl-dl > div { grid-template-columns: 1fr; gap: 2px; }
  .hl-poster-text .hl-big { font-size: 1.6rem; }
}
@media print {
  .hl-actions, .hl-cal-row, .hl-zoom, .hl-poster figcaption, .hl-lightbox { display: none !important; }
  .hl-grid { grid-template-columns: 1fr 1fr; gap: 12pt; }
}

/* Home: current announcement card (poster thumbnail + title) */
.ann-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; align-items: center; margin-top: 18px; padding: 16px; color: inherit; text-decoration: none;
  background: linear-gradient(135deg, #15263a, #1f3a52); border-radius: 14px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.ann-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: inherit; }
.ann-card:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }
.ann-thumb { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.35); }
.ann-body { color: #fff; }
.ann-kicker { margin: 0 0 4px; font-family: var(--font-display); color: #e9d6b4; font-size: 1rem; }
.ann-title { margin: 0; font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 800; line-height: 1.2; color: #fff; }
.ann-en { margin: 6px 0 0; font-size: 1.02rem; font-weight: 600; color: #fff; }
.ann-meta { margin: 6px 0 0; color: #d9e2ea; font-size: .98rem; }
.ann-meta [lang="he"] { font-family: var(--font-display); font-size: 1.08rem; }
.ann-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 9px 16px; border-radius: 999px; background: var(--gold); color: #fff; font-weight: 600; font-size: .95rem; }
.ann-card:hover .ann-cta { background: #82653f; }
@media (max-width: 680px) {
  .ann-card { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .ann-title { font-size: 1.45rem; }
  .ann-en, .ann-meta { font-size: .92rem; }
  .ann-cta { margin-top: 10px; padding: 7px 13px; font-size: .9rem; }
}

.hl-side .sb-banner { margin: 0; }
.hl-dates > span { display: block; }
.hl-dates-he { font-family: var(--font-display); font-size: 1.15rem; color: #fff; }
.hl-dates-greg { margin-top: 2px; }
.ann-kicker, .ann-title, .ann-en, .ann-meta, .ann-cta-wrap { display: block; }
.ann-en[hidden] { display: none; }
.ann-meta > span { display: block; }
.ann-meta > span[hidden] { display: none; }
.ann-body { line-height: 1.35; }
.ann-cta { line-height: 1.3; }
@media (max-width: 680px) {
  .ann-kicker { font-size: .84rem; }
  .ann-meta [lang="he"] { font-size: .98rem; }
}

/* Neutral share confirmation (copy fallback) */
.k-toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 2000; max-width: min(92vw, 420px); padding: 11px 18px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .95rem; text-align: center; box-shadow: 0 10px 30px rgba(10, 20, 30, .25); opacity: 0; transform: translate(-50%, 12px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.k-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media print { .k-toast { display: none !important; } }
