/* Chabad of Lamorinda website. System fonts (no downloads), one file, light and dark themes. */
:root {
  --ink: #16213a; --muted: #5a6478; --bg: #ffffff; --soft: #f6f3ec; --card: #ffffff; --line: #e6e1d6;
  --navy: #14284b; --navy-2: #1f3d6e; --gold: #c99a2e; --gold-2: #e2b84d; --gold-ink: #85600f; --link: #1f4f9a; --ok: #1d7a46; --err: #b3261e;
  --r: 14px; --shadow: 0 1px 2px rgba(20,40,75,.06), 0 6px 20px rgba(20,40,75,.07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #ecebe7; --muted: #a9b0bf; --bg: #0f1522; --soft: #151d2e; --card: #182236; --line: #27324a; --link: #8fb4ff; --shadow: none; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); margin-top: 1.4em; }
h3 { font-size: 1.2rem; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.sec { padding: 40px 16px; }
.muted { color: var(--muted); }
.he { font-family: "Frank Ruhl Libre", "Times New Roman", serif; font-weight: 400; }
.skip { position: absolute; top: -80px; inset-inline-start: 8px; background: #fff; padding: 8px 12px; z-index: 99; }
.skip:focus { top: 8px; }
html, body { overflow-x: clip; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* top strip + header */
.topstrip { display: block; text-align: center; background: var(--navy); color: #f3e3b5; font-size: .85rem; padding: 6px 12px; text-decoration: none; }
.hdr { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 1.15rem var(--serif); white-space: nowrap; }
.nav-wide { display: none; gap: 4px; margin-left: auto; }
.nav-wide a, .menu nav a { color: var(--ink); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
.nav-wide a:hover, .nav-wide a[aria-current] { background: var(--soft); }
.hdr-cta { display: flex; gap: 8px; margin-left: auto; }
.menu { order: 3; }
.menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 22px; height: 2px; background: var(--ink); position: relative; content: ""; }
.menu summary span::before { position: absolute; top: -7px; } .menu summary span::after { position: absolute; top: 7px; }
.menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: grid; }
.menu nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); }
@media (min-width: 1100px) { .nav-wide { display: flex; } .hdr-cta { margin-inline-start: 8px; } }
@media (min-width: 1100px) and (max-width: 1399px) { .nav-wide .nw-more { display: none; } .nav-wide a { padding: 8px 8px; } }
@media (min-width: 1400px) { .menu { display: none; } }
@media (max-width: 420px) { .brand span { font-size: 1rem; } .hdr-cta .ghost { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1.5px solid var(--navy); background: var(--navy); color: #fff; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.sm { min-height: 38px; padding: 6px 14px; font-size: .92rem; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #1b1405; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost-l { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn[disabled] { opacity: .6; cursor: default; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, #2f5aa0 0, transparent 60%), linear-gradient(160deg, var(--navy), #0d1b36); color: #fff; padding: 56px 0 64px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { font-size: 1.15rem; color: #dfe6f3; max-width: 52ch; }
.hero-in { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero-in { grid-template-columns: 1.5fr 1fr; } }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--gold-ink); margin: 0 0 8px; }
.hero .eyebrow { color: var(--gold-2); }
.hero .card .eyebrow { color: var(--gold-ink); }
.shabbat-card { color: var(--ink); }
.shabbat-card .big, .answer .big { font: 600 2.6rem/1.1 var(--serif); margin: 4px 0; }
.lead-d { font-size: 1.15rem; color: var(--muted); }

/* cards and grids */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.tile { text-decoration: none; color: var(--ink); transition: transform .15s; }
.tile:hover { transform: translateY(-2px); border-color: var(--gold); }
.tile p { color: var(--muted); margin: 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sec-h h2 { margin-top: 0; }
.band { background: var(--soft); border-block: 1px solid var(--line); padding: 32px 0; }
.band-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.band h2 { margin: 0 0 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .95rem; }
.chip.on, .chip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* events */
.evs { display: grid; gap: 14px; }
@media (min-width: 900px) { .evs { grid-template-columns: 1fr 1fr; } }
.ev { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.ev h3 { margin: 0 0 4px; } .ev h3 a { color: var(--ink); text-decoration: none; } .ev p { margin: 4px 0; }
.ev-date { flex: 0 0 64px; height: 70px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; align-content: center; text-decoration: none; }
.ev-date span { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-2); } .ev-date b { font: 600 1.7rem/1 var(--serif); }
.when { font-weight: 600; font-size: 1.1rem; }
.hero-img { border-radius: var(--r); margin: 12px 0; }
.crumbs { margin: 0 0 8px; font-size: .9rem; }
.weekly { display: grid; gap: 6px; margin: 0 0 24px; padding: 0; list-style: none; }
.weekly li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.weekly b { flex: 0 0 110px; }

/* RSVP + forms */
.rsvp { margin: 24px 0; border-color: var(--gold); }
.rsvp h2 { margin-top: 0; }
.stepper { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--soft); color: var(--ink); font-size: 1.3rem; cursor: pointer; }
.stepper output { min-width: 2ch; text-align: center; font-weight: 700; font-size: 1.1rem; }
.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 10px 0; }
label { display: grid; gap: 4px; font-weight: 600; font-size: .95rem; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%; }
input[type=checkbox], input[type=radio] { width: 20px; min-height: 20px; }
.fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tool { display: grid; gap: 14px; margin: 20px 0; }
.radios { border: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.radios label { display: flex; gap: 6px; align-items: center; font-weight: 400; }
.msg { padding: 10px 14px; border-radius: 10px; background: var(--soft); }
.msg.ok { color: var(--ok); } .msg.err { color: var(--err); }
.person { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 10px 0; display: grid; gap: 10px; }
.account section { margin: 28px 0; }

/* tables, Q&A, directory, photos */
.tbl-wrap { overflow-x: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tbl { width: 100%; border-collapse: collapse; margin: 12px 0; }
.tbl th, .tbl td { text-align: start; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.qa { border-bottom: 1px solid var(--line); padding: 12px 0; }
.qa summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.qa div { padding-top: 6px; }
.dir { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.dir-i h3 { margin: 0 0 4px; font-size: 1.1rem; } .dir-i p { margin: 0; color: var(--muted); }
.pics { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.pics img { aspect-ratio: 1; object-fit: cover; border-radius: 10px; width: 100%; }
.pics.big { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.list li { margin: 6px 0; }
blockquote { border-inline-start: 4px solid var(--gold); margin: 16px 0; padding: 4px 16px; color: var(--muted); }
.join-card { background: linear-gradient(135deg, var(--soft), var(--card)); }

/* footer */
.ftr { margin-top: 48px; background: var(--navy); color: #d9e0ee; padding: 40px 0 20px; font-size: .95rem; }
.ftr a { color: #fff; text-decoration: none; display: block; padding: 3px 0; }
.ftr a:hover { color: var(--gold-2); }
.ftr p { margin: 4px 0; }
.ftr .social a { display: inline-block; margin-inline-end: 14px; }
.ftr-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.ftr-name { font: 600 1.2rem var(--serif); color: #fff; }
.ftr-h { color: var(--gold-2); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; }
.ftr-base { border-top: 1px solid rgba(255,255,255,.15); margin-top: 24px; padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .85rem; }
.ftr-base a { display: inline; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* photo hero (Facebook photos) */
.hero.photo { position: relative; overflow: hidden; }
.mosaic { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; opacity: .35; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .mosaic { grid-template-columns: repeat(6, 1fr); } }
.hero.photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(20,40,75,.9), rgba(13,27,54,.75)); z-index: 1; }
.hero.photo .hero-in { position: relative; z-index: 2; }
.local { border-color: var(--gold); margin: 28px 0; }
.support { margin-top: 28px; background: var(--soft); }
.post h2 { margin-top: 0; }
textarea { font: inherit; }
.nav-wide a, .hdr-cta a, .brand { white-space: nowrap; }
.brand { flex-shrink: 0; } nav.chips { margin: 16px 0; }

/* languages */
.langs { display: flex; gap: 2px; margin: 0; align-items: center; }
.langs a { padding: 6px 8px; border-radius: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.langs a[aria-current] { background: var(--soft); color: var(--ink); }
.langs.wide { display: none; }
@media (min-width: 700px) { .langs.wide { display: flex; } }
.menu .langs { padding: 12px 8px; }
[dir="rtl"] body { font-family: "Segoe UI", Arial, "Noto Sans Hebrew", system-ui, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: "Frank Ruhl Libre", "David", "Times New Roman", serif; }
[dir="rtl"] .hero h1 { max-width: 18ch; }
[dir="rtl"] .sec-h a::after, [dir="rtl"] a .arrow { display: inline-block; transform: scaleX(-1); }

/* help, Kaddish, Tehillim, sponsor */
.callbox { border-color: var(--gold); margin: 16px 0 24px; }
.callbox.urgent { background: #fff6e0; border-color: #e0a800; }
@media (prefers-color-scheme: dark) { .callbox.urgent { background: #2b2410; } }
.btn.call { font-size: 1.1rem; }
.chip.urgent { border-color: #e0a800; font-weight: 600; }
.tile.urgent { border-color: #e0a800; }
.help-band { background: var(--soft); }
.tehillim { margin: 18px 0; }
.tehillim h2 { margin-top: 0; }
.chapters a { display: inline-block; min-width: 2.2em; text-align: center; padding: 2px 4px; }
.occasion { margin: 24px 0; border-color: var(--gold); }
.dedication { font-size: 1.1rem; }
.loved-one .hand, .dedication-card .hand { font-size: 1.5rem; margin: 0 0 .3rem; color: var(--gold-ink); }
.loved-one .occ { border: 0; padding: 0; margin: 0 0 .8rem; }
.loved-one .occ legend { font-weight: 600; margin-bottom: .4rem; }
.dedication-card { text-align: center; background: var(--soft); }
.dedication-card .ded-text { font-family: var(--serif); font-size: 1.35rem; font-style: italic; margin: .2rem 0 .6rem; }
.give-next { margin-top: 12px; }

/* "Ask us" chat */
.chat-fab { position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 40; border: 0; border-radius: 999px; padding: 14px 20px; background: var(--navy); color: #fff; font: 600 1rem var(--sans); box-shadow: 0 6px 24px rgba(0,0,0,.25); cursor: pointer; }
.chat-fab::before { content: "💬 "; }
.chat { position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 50; width: min(400px, calc(100vw - 32px)); height: min(600px, calc(100vh - 32px)); height: min(600px, calc(100dvh - 32px)); display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.25); overflow: hidden; }
.chat[hidden] { display: none; }
.chat-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--navy); color: #fff; }
.chat-h span { display: flex; gap: 8px; align-items: center; }
.chat-h .linkish { color: #f3e3b5; }
.chat-h .x { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.cm { max-width: 88%; padding: 10px 12px; border-radius: 14px; font-size: .95rem; line-height: 1.45; }
.cm p { margin: 0 0 6px; } .cm p:last-child { margin: 0; }
.cm .li::before { content: "• "; }
.cm.user { align-self: flex-end; background: var(--navy); color: #fff; }
.cm.assistant { align-self: flex-start; background: var(--soft); color: var(--ink); }
.chat-log .chips { gap: 6px; } .chat-log .chip { font-size: .85rem; padding: 6px 10px; cursor: pointer; }
.chat-in { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-in input { flex: 1; min-height: 40px; }
.chat-f { margin: 0; padding: 6px 12px 10px; font-size: .78rem; }
.linkish { background: none; border: 0; padding: 0; color: var(--link); font: inherit; text-decoration: underline; cursor: pointer; }
.handoff { display: grid; gap: 6px; background: var(--soft); padding: 10px; border-radius: 12px; }
@media print { .chat-fab, .chat { display: none; } }

.search { width: 100%; max-width: 480px; }
.tile[hidden] { display: none; }
.parsha h2 { margin-top: 0; }

/* illustrations */
.art { display: block; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, var(--soft) 70%); padding: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.art-sm { width: 56px; height: 56px; margin-bottom: 10px; }
.art-lg { width: 96px; height: 96px; padding: 12px; }
.page-art { float: inline-end; margin: 0 0 8px 16px; }
@media (max-width: 600px) { .page-art .art-lg { width: 72px; height: 72px; } }
.tile.has-art { position: relative; overflow: hidden; }
.tile.has-art:hover .art { transform: rotate(-6deg) scale(1.06); }
.art { transition: transform .25s ease; }
.ev .art { flex: 0 0 auto; width: 48px; height: 48px; margin: 0; order: 3; }
@media (max-width: 480px) { .ev .art { display: none; } }
@media (prefers-color-scheme: dark) { .art { background: radial-gradient(circle at 30% 30%, #2a3550, #1b2438 70%); } }

/* ---------- polish: a calmer, more upscale look ---------- */
body { letter-spacing: .005em; }
h1 { letter-spacing: -.015em; font-weight: 600; }
h2 { letter-spacing: -.01em; font-weight: 600; }
.sec-h { margin-bottom: 18px; }
.sec-h h2 { position: relative; padding-bottom: 10px; }
.sec-h h2::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 44px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.sec-h > a, .shabbat-card a, .weekly a, .tile { text-decoration: none; }
.sec-h > a { color: var(--gold-ink); font-weight: 600; font-size: .95rem; }
.sec-h > a:hover, .shabbat-card a:hover, .weekly a:hover { text-decoration: underline; }
.shabbat-card a { color: var(--navy-2); font-weight: 600; }
.btn { letter-spacing: .01em; transition: transform .15s, box-shadow .15s, filter .15s; }
.btn:hover { transform: translateY(-1px); }
.btn.gold { background: linear-gradient(180deg, #d9ab3e, var(--gold)); box-shadow: 0 4px 14px rgba(201,154,46,.28); }
.card { border-radius: 18px; }
.tile { transition: transform .2s, box-shadow .2s, border-color .2s; }
.tile:hover { box-shadow: 0 2px 4px rgba(20,40,75,.06), 0 14px 34px rgba(20,40,75,.12); }
.tile h3 { margin-bottom: 6px; }
.ev { border-radius: 18px; transition: box-shadow .2s; } .ev:hover { box-shadow: 0 14px 34px rgba(20,40,75,.12); }
.ev-date { background: linear-gradient(160deg, var(--navy-2), var(--navy)); }

/* hero: a soft, large illustration behind the text */
.hero { position: relative; overflow: hidden; }
.hero:not(.photo)::after { content: ""; position: absolute; width: 520px; height: 520px; inset-inline-end: -90px; bottom: -150px; background: url(/assets/art/menorah.svg) center/contain no-repeat; opacity: .07; pointer-events: none; }
.hero .hero-in { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.4rem); }
.hero .shabbat-card { border: 0; box-shadow: 0 20px 50px rgba(0,0,0,.25); }

/* every week: a row of cards instead of a list */
.weekly { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.weekly li { flex-direction: column; gap: 2px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.weekly b { flex: none; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; color: var(--gold-ink); }
.weekly a { color: var(--ink); font: 600 1.05rem/1.3 var(--serif); }

/* next holiday */
.holiday-band { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 28px; border-radius: 22px; background: radial-gradient(600px 240px at 0% 0%, #fff6dc 0, transparent 70%), var(--soft); border: 1px solid var(--line); }
.holiday-band .hb-text { flex: 1 1 260px; }
.holiday-band h2 { margin: 0 0 4px; }
.holiday-band p { margin: 0; }
.holiday-band .art-lg { width: 88px; height: 88px; }
@media (prefers-color-scheme: dark) { .holiday-band { background: var(--soft); } .shabbat-card a { color: var(--link); } }

/* For your family (signed-in members) */
.foryou { border-color: var(--gold); background: linear-gradient(160deg, #fffaf0, var(--card)); }
.foryou .more { color: var(--gold-ink); font-weight: 600; margin-top: 8px; }
@media (prefers-color-scheme: dark) { .foryou { background: var(--card); } }

/* search */
.search-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--ink); }
.search-btn:hover { background: var(--soft); }
.searchbar { display: flex; gap: 10px; margin: 8px 0 20px; }
.searchbar input { font-size: 1.1rem; border-radius: 999px; padding-inline: 18px; }
.results { display: grid; gap: 12px; }
.result .eyebrow { margin-bottom: 4px; }
.answer-card { border-color: var(--gold); margin-bottom: 16px; }
.answer-card h2 { margin-top: 0; font-size: 1.25rem; }
@media (max-width: 440px) { .hdr-in { gap: 6px; } .hdr-cta { gap: 2px; } .hdr-cta .btn.gold { padding: 6px 12px; } .search-btn { width: 36px; } .brand { gap: 6px; } .brand span { font-size: .95rem; } }
.answer-card p:first-of-type { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 400px) { .search-btn { display: none; } }
.meta { font-size: .95rem; margin: -4px 0 20px; } .meta a { color: var(--gold-ink); font-weight: 600; text-decoration: none; } .meta a:hover { text-decoration: underline; }

/* share with a friend */
.share { margin: 32px 0 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--soft); }
.share-h { margin: 0 0 10px; font: 600 1.05rem var(--serif); }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.sh { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 .92rem var(--sans); text-decoration: none; cursor: pointer; }
.sh:hover { border-color: var(--gold); }
.sh.native { background: var(--navy); color: #fff; border-color: var(--navy); }
.sh.wa { color: #17703c; } .sh.fb { color: #1b5fc4; } .sh.tg { color: #13679d; }
@media (prefers-color-scheme: dark) { .sh.wa, .sh.fb, .sh.tg { color: var(--ink); } }
.quick { margin: 14px 0; padding: 14px 16px; border: 1px dashed var(--gold); border-radius: 14px; background: #fffaf0; }
.quick-h { margin: 0 0 6px; font-weight: 600; }
@media (prefers-color-scheme: dark) { .quick { background: var(--card); } }

/* explore: topic shortcuts with pictures */
.explore { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 0 0 22px; }
.explore a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 10px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, var(--card), var(--soft)); color: var(--ink); text-decoration: none; text-align: center; font-weight: 600; transition: transform .2s, box-shadow .2s, border-color .2s; }
.explore a:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 10px 26px rgba(20,40,75,.1); }
.explore .art { width: 52px; height: 52px; margin: 0; }
.explore small { color: var(--muted); font-weight: 400; font-size: .8rem; }
@media (min-width: 1000px) { .ftr-grid { grid-template-columns: 1.3fr repeat(5, 1fr); } }

/* footer groups: folding on phones */
.ftr-col summary { list-style: none; }
.ftr-col summary::-webkit-details-marker { display: none; }
@media (max-width: 699px) {
  .ftr-col { border-top: 1px solid rgba(255,255,255,.12); }
  .ftr-col summary { cursor: pointer; padding: 12px 0; margin: 0; display: flex; justify-content: space-between; align-items: center; }
  .ftr-col summary::after { content: "+"; font-size: 1.2rem; color: var(--gold-2); }
  .ftr-col[open] summary::after { content: "−"; }
  .ftr-links { padding-bottom: 10px; }
  .ftr-grid { gap: 0; }
}
[dir="rtl"] .ftr a[dir="ltr"] { text-align: right; }

/* event facts */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 8px 0 22px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--soft); }
.facts p { margin: 0; } .facts .eyebrow { margin-bottom: 4px; } .facts .when { font-size: 1rem; }

/* guide: on this page */
.toc { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 0 0 22px; padding: 12px 14px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); }
.toc .eyebrow { width: 100%; margin: 0 0 2px; }
.toc a { font-size: .92rem; padding: 4px 10px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.toc a:hover { border-color: var(--gold); }
h2[id] { scroll-margin-top: 80px; }

.cat-h { display: flex; align-items: center; gap: 12px; margin-top: 1.6em; }
.cat-h .art { width: 48px; height: 48px; margin: 0; padding: 6px; }
.cat-h small { font: 400 .95rem var(--sans); color: var(--muted); }

/* phones: compact schedule and cards (picture beside the text) */
@media (max-width: 600px) {
  .weekly { grid-template-columns: 1fr; gap: 8px; }
  .weekly li { flex-direction: row; align-items: baseline; gap: 12px; padding: 12px 14px; }
  .weekly b { flex: 0 0 98px; }
  .holiday-band { padding: 20px; gap: 14px; } .holiday-band .art-lg { width: 56px; height: 56px; padding: 6px; }
  .weekly li > span { flex: 1; }
  .tile.has-art { display: grid; grid-template-columns: 48px 1fr; column-gap: 14px; align-items: start; }
  .tile.has-art > .art { grid-row: 1 / span 4; width: 48px; height: 48px; margin: 0; }
  .tile.has-art > :not(.art) { grid-column: 2; }
  .grid { gap: 10px; }
}

/* account: getting started */
.start .bar { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; margin: 6px 0 12px; }
.start .bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.steps li.done { color: var(--muted); }
.nudge { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: #fffaf0; border: 1px dashed var(--gold); }
@media (prefers-color-scheme: dark) { .nudge { background: var(--card); } }
.card > h2:first-child { margin-top: 0; }
.cm.typing { display: flex; gap: 5px; align-items: center; padding: 14px 16px; }
.cm.typing span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: chat-dot 1.2s infinite ease-in-out; }
.cm.typing span:nth-child(2) { animation-delay: .15s; } .cm.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .cm.typing span { animation: none; opacity: .6; } }
.chat-log .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-log .chips .chip { text-align: start; }
.shabbat-card .big-l { margin-top: 0; color: var(--ink); }
.sh-times { margin: 12px 0 14px; border-top: 1px solid var(--line); }
.sh-times > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sh-times dt { margin: 0; }
.sh-times dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rabbi-contact { margin: 28px 0; border-inline-start: 4px solid var(--gold, #c9a227); }
.rabbi-contact h2 { margin-top: 0; }
.cm.reach { display: flex; flex-direction: column; gap: 8px; max-width: 100%; }
.cm.reach .btns { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.cm.reach .muted { margin: 0; font-size: .85rem; }
.rabbi-contact.consult .who { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.rabbi-contact.consult .who .btns { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.consult-line { margin: 28px 0 8px; padding: 12px 16px; background: var(--soft); border-radius: 12px; border-inline-start: 4px solid var(--gold, #c9a227); }
.cm.reach > span { font-weight: 600; font-size: .9rem; }
.first-call { margin: 6px 0 14px; } .first-call a { color: inherit; text-decoration-color: var(--gold, #c9a227); text-underline-offset: 3px; }
.mz-total { font-size: 1.15rem; } .mz-total strong { font-size: 2rem; color: var(--navy); font-family: var(--serif, Georgia, serif); }
.mitzvah .mz-h { font-size: 1.15rem; margin: 0 0 6px; } .mitzvah .mz-h a { color: inherit; text-decoration: none; }
.mz-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mitzvah .rabbi-contact { margin: 12px 0 0; box-shadow: none; }
.mz-cta { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; border-inline-start: 4px solid var(--gold, #c9a227); }
.mz-cta .btn { align-self: flex-start; }
.consult-line .btn { margin-inline-end: 8px; margin-bottom: 6px; vertical-align: middle; }
/* /learn: the first guides of each subject as cards, the rest as a compact two-column list */
.more-guides { list-style: none; padding: 0; margin: 14px 0 6px; columns: 2 280px; column-gap: 28px; }
.more-guides li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid var(--line); }
.more-guides a { text-decoration: none; color: var(--ink); } .more-guides a:hover { color: var(--navy); text-decoration: underline; }

/* giving form, Chai Club levels and honor board */
.give { display: grid; gap: 16px; margin: 16px 0 24px; border-color: var(--gold); }
.give fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.give legend { font-weight: 600; font-size: .95rem; margin-bottom: 6px; padding: 0; }
.chip.pick { display: inline-flex; align-items: center; gap: 0; cursor: pointer; font-weight: 600; min-height: 44px; padding: 10px 16px; }
.chip.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip.pick:has(input:checked) { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip.pick:has(input:focus-visible) { outline: 3px solid var(--gold-2); outline-offset: 2px; }
.give .small { font-size: .85rem; margin: 0; }
.club-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 16px 0; }
.club-l { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; gap: 2px; background: var(--card); border-top: 5px solid var(--lv, var(--gold)); }
.club-l span { color: var(--muted); font-size: .9rem; }
.club-l.platinum, .club-row.platinum { --lv: #8a96a8; } .club-l.gold, .club-row.gold { --lv: #c99a2e; } .club-l.silver, .club-row.silver { --lv: #b4bcc8; } .club-l.bronze, .club-row.bronze { --lv: #b07a4a; }
.club-row { border-inline-start: 5px solid var(--lv); padding-inline-start: 12px; margin: 12px 0; }
.club-row h3 { margin: 0 0 4px; }
.club-row ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* guide pages: the action first, one inviting "read next" at the end */
.action-top { margin: 14px 0 18px; border-color: var(--gold); background: var(--soft); }
.action-top p { margin: 0 0 10px; } .action-top .btns { margin: 0; }
details.toc { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 14px 0; }
details.toc summary { cursor: pointer; font-weight: 600; }
details.toc a { display: block; padding: 6px 0; }
.occasion-line { padding: 10px 14px; border-radius: 10px; background: var(--soft); }
.read-next { margin: 32px 0 8px; }
.read-next .eyebrow { margin-bottom: 8px; }
.rn-main { display: flex; gap: 16px; align-items: center; text-decoration: none; color: inherit; border-color: var(--gold); padding: 18px; }
.rn-main:hover { box-shadow: var(--shadow, 0 4px 16px rgba(0,0,0,.08)); }
.rn-main .art { flex: none; width: 80px; height: 80px; }
.rn-t { display: grid; gap: 4px; } .rn-t strong { font-size: 1.15rem; line-height: 1.3; } .rn-t span { color: var(--muted); }
.rn-t .rn-go { color: var(--link); font-weight: 600; }
.rn-more { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.rn-more a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); }

/* ---------- home: large banners (carousel) ---------- */
.hero-banners { position: relative; background: var(--navy); }
.bn-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.bn-track::-webkit-scrollbar { display: none; }
.bn { --b1: #14284b; --b2: #1f3d6e; flex: 0 0 100%; scroll-snap-align: start; position: relative; min-height: 380px; display: flex; align-items: center; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 85% 30%, rgba(255,255,255,.14), transparent 45%), linear-gradient(120deg, var(--b1), var(--b2)); }
.bn.theme-blue { --b1: #173a73; --b2: #2d63b5; } .bn.theme-green { --b1: #12503d; --b2: #2a8a63; } .bn.theme-gold { --b1: #4f3606; --b2: #8f6716; } .bn.theme-burgundy { --b1: #5a1630; --b2: #9c3557; }
.bn-in { position: relative; z-index: 2; max-width: 1140px; width: 100%; margin: 0 auto; padding: 40px 20px 64px; }
.bn-in > * { max-width: 620px; }
.bn h2 { font-size: clamp(1.9rem, 5.5vw, 3.2rem); line-height: 1.1; margin: 0 0 12px; color: #fff; }
.bn-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--gold-2); margin: 0 0 10px; }
.bn-text { font-size: 1.15rem; line-height: 1.5; opacity: .95; margin: 0 0 18px; }
.bn-art { position: absolute; z-index: 1; inset-inline-end: max(16px, calc(50% - 560px)); top: 50%; transform: translateY(-50%); width: clamp(140px, 30vw, 300px); aspect-ratio: 1; border-radius: 50%; background: #fff; box-shadow: 0 0 0 12px rgba(255,255,255,.15); display: grid; place-items: center; }
.bn-art .art { width: 72%; height: 72%; background: none; border: 0; box-shadow: none; }
.bn-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bn.has-img::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,18,35,.85), rgba(10,18,35,.35) 70%, rgba(10,18,35,.1)); }
.bn-nav { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 10px; z-index: 3; }
.bn-dots { display: flex; gap: 8px; }
.bn-dots button { width: 12px; height: 12px; min-height: 0; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; }
.bn-dots button[aria-selected="true"] { background: #fff; }
.bn-prev, .bn-next { width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.2); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
@media (max-width: 700px) {
  .bn { min-height: 440px; align-items: flex-end; }
  .bn-art { top: 22px; transform: none; width: 120px; inset-inline-end: 16px; }
  .bn-in { padding-top: 150px; }
  .bn.has-img .bn-in { padding-top: 200px; }
  .bn.has-img::after { background: linear-gradient(0deg, rgba(10,18,35,.9) 45%, rgba(10,18,35,.15)); }
  .bn-prev, .bn-next { display: none; }
}

/* this Shabbat, in one line */
.shabbat-strip { background: var(--soft); border-bottom: 1px solid var(--line); padding: 12px 0; }
.shabbat-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.shabbat-strip span { display: grid; line-height: 1.2; } .shabbat-strip small { color: var(--muted); font-size: .78rem; }
.shabbat-strip b { font-size: 1.1rem; }
.shabbat-strip .ss-h { display: flex; align-items: center; gap: 8px; } .ss-h .art { width: 36px; height: 36px; } .ss-h .muted { font-size: .9rem; }
.shabbat-strip .btn { margin-inline-start: auto; }

/* smaller banners */
.sbs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.sb { --b1: #173a73; --b2: #2d63b5; position: relative; display: flex; gap: 14px; align-items: center; min-height: 116px; padding: 16px; border-radius: 16px; color: #fff; text-decoration: none; overflow: hidden;
  background: linear-gradient(120deg, var(--b1), var(--b2)); box-shadow: 0 2px 10px rgba(0,0,0,.08); transition: transform .15s; }
.sb:hover { transform: translateY(-2px); }
.sb.theme-navy { --b1: #14284b; --b2: #1f3d6e; } .sb.theme-green { --b1: #12503d; --b2: #2a8a63; } .sb.theme-gold { --b1: #5c3f08; --b2: #8f6716; } .sb.theme-burgundy { --b1: #5a1630; --b2: #9c3557; }
.sb-art { flex: none; width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(255,255,255,.18); } .sb-art .art { width: 48px; height: 48px; background: none; border: 0; box-shadow: none; }
.sb-img { flex: none; width: 84px; height: 84px; object-fit: cover; border-radius: 12px; }
.sb-t { display: grid; gap: 3px; } .sb-t strong { font-size: 1.05rem; line-height: 1.25; } .sb-t span { font-size: .9rem; opacity: .9; line-height: 1.35; }
.sb-t .sb-eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--gold-2); opacity: 1; }
.week-strip { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.week-strip a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-size: .92rem; }
.week-strip a:hover { border-color: var(--gold); }

/* what we have built, get involved, try this */
.built .lead-d { max-width: 760px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.stat { text-align: center; padding: 18px 10px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.stat b { display: block; font-size: 2.4rem; color: var(--navy); font-family: Georgia, serif; } .stat span { color: var(--muted); }
.hl, .gi { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 16px; }
.hl-i, .gi-i { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto 1fr; column-gap: 14px; row-gap: 2px; padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.hl-i .art, .gi-i .art { grid-row: span 2; width: 56px; height: 56px; }
.hl-i span, .gi-i span { color: var(--muted); font-size: .93rem; }
.hl-i:hover, .gi-i:hover { border-color: var(--gold); }
.gi-i { border-top: 4px solid var(--gold); }
.here { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; } .here p { margin: 0; max-width: 640px; }
.try { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.try a, .try button { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 14px 8px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; }
.try .art { width: 48px; height: 48px; } .try a:hover, .try button:hover { border-color: var(--gold); }
.follow { margin-top: 14px; }

.shabbat-strip .quick { flex-basis: 100%; }

/* ================= Warm, personal look (Oct 2026) =================
   Lora for headings (a soft book serif), Caveat for small handwritten touches, cream paper colors and real photos.
   Fonts are stored on the site (site/assets/fonts), no outside requests. */
@font-face { font-family: "Lora"; font-weight: 500; font-style: normal; font-display: swap; src: url(/assets/fonts/lora-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-weight: 600; font-style: normal; font-display: swap; src: url(/assets/fonts/lora-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Lora"; font-weight: 500; font-style: italic; font-display: swap; src: url(/assets/fonts/lora-latin-500-italic.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Lora"; font-weight: 500; font-style: normal; font-display: swap; src: url(/assets/fonts/lora-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Lora"; font-weight: 600; font-style: normal; font-display: swap; src: url(/assets/fonts/lora-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Caveat"; font-weight: 600; font-display: swap; src: url(/assets/fonts/caveat-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Caveat"; font-weight: 600; font-display: swap; src: url(/assets/fonts/caveat-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491; }
@font-face { font-family: "Frank Ruhl Libre"; font-weight: 500; font-display: swap; src: url(/assets/fonts/frank-ruhl-libre-hebrew-500-normal.woff2) format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Frank Ruhl Libre"; font-weight: 700; font-display: swap; src: url(/assets/fonts/frank-ruhl-libre-hebrew-700-normal.woff2) format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
:root {
  --bg: #fffcf6; --soft: #f7efe1; --card: #ffffff; --line: #eadfca; --ink: #23263a; --muted: #625d58;
  --gold: #c8962a; --gold-2: #e7bb55; --gold-ink: #8a5f0e; --clay: #b5532f; --navy: #1b2d52; --navy-2: #2b4778;
  --serif: "Lora", "Frank Ruhl Libre", Georgia, serif; --hand: "Caveat", "Segoe Print", cursive;
  --r: 18px; --shadow: 0 1px 2px rgba(70,45,10,.06), 0 8px 24px rgba(70,45,10,.08);
}
@media (prefers-color-scheme: dark) { :root { --bg: #17140f; --soft: #211c15; --card: #241f18; --line: #3a3126; --ink: #f1ebe0; --muted: #b9ad9c; --gold-ink: #e7bb55; --link: #f0c56a; } }
body { background: var(--bg); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-weight: 600; }
.eyebrow, .bn-eyebrow, .sb-t .sb-eyebrow { font-family: var(--hand); text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 1.45rem; line-height: 1.1; color: var(--gold-ink); }
.bn-eyebrow, .sb-t .sb-eyebrow { color: var(--gold-2); font-size: 1.6rem; }
.sb-t .sb-eyebrow { font-size: 1.25rem; }
.hand { font-family: var(--hand); font-weight: 600; font-size: 1.5em; line-height: 1.1; color: var(--gold-ink); }
.sec-h h2::after { width: 72px; height: 10px; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 10'%3E%3Cpath d='M2 6c8-5 14 3 22-1s14-5 22-1 14 4 24-1' fill='none' stroke='%23c8962a' stroke-width='2.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat; bottom: -4px; }
.card, .hl-i, .gi-i, .try a, .try button, .stat { border-radius: var(--r); box-shadow: var(--shadow); border-color: var(--line); }
.band { background: var(--soft); border-color: var(--line); }
.btn { border-radius: 999px; }
.btn.gold { box-shadow: 0 3px 0 rgba(120,80,10,.25); }

/* real photos */
.bn.has-img::after { background: linear-gradient(90deg, rgba(25,15,5,.82), rgba(25,15,5,.45) 55%, rgba(25,15,5,.05)); }
.bn-img { object-position: center 40%; }
.sb.has-photo { padding: 0; min-height: 230px; align-items: flex-end; background: #2a1d10; }
.sb.has-photo .sb-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.sb.has-photo:hover .sb-photo { transform: scale(1.04); }
.sb.has-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,12,4,.88) 15%, rgba(20,12,4,.25) 60%, rgba(20,12,4,0)); }
.sb.has-photo .sb-t { position: relative; z-index: 1; padding: 16px; }
.sb.has-photo .sb-t strong { font-family: var(--serif); font-size: 1.25rem; }
.page-photo { margin: 0 0 18px; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 7; box-shadow: var(--shadow); }
.page-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.page-photo + .page-art, .has-photo-page .page-art { display: none; }
@media (max-width: 700px) { .page-photo { aspect-ratio: 4 / 3; margin-inline: -16px; border-radius: 0; } }

/* our story (home) */
.story { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .story { grid-template-columns: 1fr 1.1fr; } }
.story-photo { position: relative; }
.story-photo img { border-radius: var(--r); box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.story-photo .tag { position: absolute; bottom: -14px; inset-inline-start: 18px; background: var(--card); border-radius: 999px; padding: 6px 16px; box-shadow: var(--shadow); font-family: var(--hand); font-size: 1.4rem; color: var(--gold-ink); }
.story p { font-size: 1.08rem; }
.story .sign { font-family: var(--hand); font-size: 1.9rem; color: var(--gold-ink); margin: 6px 0 0; line-height: 1.1; }
.timeline { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: baseline; }
.timeline b { font-family: var(--hand); font-size: 1.6rem; color: var(--clay); line-height: 1; }
@media (max-width: 700px) {
  .sbs { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sb.has-photo { min-height: 180px; border-radius: 14px; }
  .sb.has-photo .sb-t { padding: 12px; } .sb.has-photo .sb-t strong { font-size: 1.02rem; } .sb.has-photo .sb-t > span:not(.sb-eyebrow) { display: none; }
  .sb.has-photo .sb-t .sb-eyebrow { font-size: 1.1rem; }
  .hl { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: -16px; padding: 4px 16px 12px; scrollbar-width: none; }
  .hl::-webkit-scrollbar { display: none; }
  .hl-i { flex: 0 0 78%; scroll-snap-align: start; }
  .gi { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gi-i { grid-template-columns: 1fr; padding: 14px; } .gi-i .art { grid-row: auto; width: 44px; height: 44px; } .gi-i span { display: none; }
  .story-photo img { aspect-ratio: 4 / 3; }
}

/* Spin the dreidel */
.dreidel-game { text-align: center; padding: 24px 16px; background: radial-gradient(circle at 50% 30%, #fff8e6, var(--card) 70%); }
.dr-stage { height: 190px; display: grid; place-items: center; perspective: 600px; }
.dreidel { position: relative; width: 112px; height: 132px; border-radius: 16px 16px 50% 50% / 16px 16px 60% 60%; background: linear-gradient(135deg, #2b4f9a, #1b2d52 60%, #c8962a); box-shadow: inset -10px -10px 0 rgba(0,0,0,.18), 0 14px 18px -10px rgba(0,0,0,.45); display: grid; place-items: center; }
.dreidel::before { content: ""; position: absolute; top: -34px; left: 50%; width: 16px; height: 40px; margin-left: -8px; border-radius: 8px; background: linear-gradient(90deg, #a87418, #e7bb55, #a87418); }
.dr-letter { font-family: "Frank Ruhl Libre", serif; font-size: 4rem; font-weight: 700; color: #fff; line-height: 1; margin-top: -8px; }
.dreidel.spinning { animation: drspin .25s linear infinite; }
.dreidel.landed { animation: drland .5s ease-out; }
@keyframes drspin { 0% { transform: rotate(-8deg) rotateY(0); } 50% { transform: rotate(8deg) rotateY(180deg); } 100% { transform: rotate(-8deg) rotateY(360deg); } }
@keyframes drland { 0% { transform: rotate(14deg); } 40% { transform: rotate(-8deg); } 70% { transform: rotate(4deg); } 100% { transform: rotate(0); } }
@media (prefers-reduced-motion: reduce) { .dreidel.spinning, .dreidel.landed { animation: none; } }
.dr-msg { font-family: var(--hand); font-size: 1.7rem; color: var(--gold-ink); min-height: 2.2em; margin: 4px 0; line-height: 1.15; }
.dr-score { display: flex; justify-content: center; gap: 24px; } .dr-score b { font-size: 1.6rem; display: block; color: var(--ink); }
.dr-score span { color: var(--muted); }
.dr-rules { list-style: none; padding: 0; display: grid; gap: 8px; } .dr-rules .he { font-size: 1.6rem; display: inline-block; width: 1.4em; color: var(--gold-ink); }
.play-cta { display: grid; gap: 2px; margin: 20px 0; text-decoration: none; color: inherit; border-color: var(--gold); background: linear-gradient(120deg, #fff8e6, var(--card)); }
.play-cta strong { font-family: var(--serif); font-size: 1.3rem; } .play-cta span:last-child { color: var(--muted); }
.dreidel-game .btns { justify-content: center; }
.this-shabbat { border-color: var(--gold); background: var(--soft); } .this-shabbat p { margin: 4px 0; } .this-shabbat b { white-space: nowrap; }
.shabbat-page h2 { margin-top: 1.6em; }

/* calendar (/calendar): month grid on computers, day list on phones */
.cal-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 10px 0 14px; }
.cal-bar h2 { margin: 0; min-width: 10ch; text-align: center; }
.cal-legend { margin-inline-start: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--card); }
.cal-h { padding: 8px; font-weight: 700; font-size: .85rem; text-align: center; background: var(--soft); border-bottom: 1px solid var(--line); }
.cal-d { min-height: 118px; padding: 6px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-d:nth-child(7n) { border-inline-end: 0; }
.cal-d.out { background: var(--soft); opacity: .5; }
.cal-d.today { background: #fff7e3; box-shadow: inset 0 0 0 2px var(--gold); }
.cal-n { font-weight: 700; font-size: .9rem; }
.ce { display: block; font-size: .78rem; line-height: 1.25; padding: 3px 6px; border-radius: 6px; text-decoration: none; color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.cal-legend .ce { display: inline-block; }
a.ce:hover { filter: brightness(.95); text-decoration: underline; }
.ce.ev { background: #fbe3c4; border-inline-start: 3px solid var(--clay); }
.ce.ev.c-holiday { background: #fff0b8; border-color: var(--gold); }
.ce.ev.c-kids, .ce.ev.c-family, .ce.ev.c-teens { background: #dcefe3; border-color: #2a8a63; }
.ce.wk { background: #e3ebf7; border-inline-start: 3px solid var(--navy-2); }
.ce.hol { background: var(--navy); color: #fff; font-weight: 600; }
.ce.pa { background: transparent; color: var(--gold-ink); font-style: italic; padding-block: 0; }
.ce.sh { background: transparent; color: var(--muted); padding-block: 0; }
.ce-act { font-size: .72rem; font-weight: 700; color: var(--clay); margin: -2px 0 2px 6px; text-decoration: none; }
.ce-act::after { content: " ›"; }
.cal-list { display: none; }
@media (max-width: 760px) {
  .cal-grid, .cal-legend { display: none; }
  .cal-list { display: grid; gap: 12px; }
  .cl-day { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--shadow); }
  .cl-day.today { border-color: var(--gold); }
  .cl-day h3 { margin: 0 0 8px; font-size: 1.05rem; }
  .cl-item { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 6px 0; }
  .cl-item .ce { font-size: .95rem; padding: 6px 10px; flex: 1 1 60%; }
  .cl-item .muted { flex-basis: 100%; font-size: .85rem; padding-inline-start: 10px; }
}

/* forms that feel part of the page: soft panels instead of boxed fieldsets */
form.tool { gap: 16px; padding: 22px; }
form.tool fieldset.kids { border: 0; margin: 0; padding: 14px 14px 4px; border-radius: 14px; background: var(--soft); }
form.tool fieldset.kids legend { float: left; width: 100%; padding: 0 0 8px; font-weight: 700; font-size: .95rem; }
form.tool fieldset.kids legend + * { clear: both; }
form.tool .fields.kid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
form.tool input, form.tool select, form.tool textarea { background: var(--card); }
form.tool fieldset.radios { gap: 10px 18px; }
form.tool fieldset.radios legend { font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
form.tool .btn.gold { justify-self: start; min-width: 200px; }
/* the answer of a calculator */
.card.answer { margin: 18px 0; border-color: var(--gold); background: linear-gradient(160deg, #fff8e6, var(--card) 60%); text-align: center; padding: 22px 18px; }
.card.answer .big { font-family: var(--serif); font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 600; margin: 4px 0; line-height: 1.2; }
.card.answer .he { font-size: 1.2rem; }
.card.answer .btns { justify-content: center; }
.parsha-answer { margin: 16px auto 4px; padding-top: 14px; border-top: 1px dashed var(--line); max-width: 420px; }
.parsha-answer .hand { margin: 0; }
.start-prep { margin-top: 30px; padding-top: 6px; }
.start-prep .hand { margin: 0; } .start-prep h2 { margin-top: 2px; }
.start-card .btns { margin: 0; }

/* Chai Club (/chai-club): levels, joining and the honor board, all in the site's own style */
.chai .club-levels { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.chai .club-l { border-top: 0; text-align: center; justify-items: center; padding: 16px 10px; gap: 4px; box-shadow: var(--shadow); border-radius: var(--r); background: var(--card); }
.chai .club-l .medal { margin-bottom: 4px; filter: drop-shadow(0 3px 4px rgba(60,40,10,.25)); }
.chai .club-l b { font-family: var(--serif); font-size: 1.2rem; }
.club-l.platinum { background: linear-gradient(180deg, #eef5fd, var(--card) 70%); } .club-l.gold { background: linear-gradient(180deg, #fff4d6, var(--card) 70%); }
.club-l.silver { background: linear-gradient(180deg, #f3f4f6, var(--card) 70%); } .club-l.bronze { background: linear-gradient(180deg, #fbe9da, var(--card) 70%); }
.cl-count { font-family: var(--hand); font-size: 1.2rem; color: var(--gold-ink); min-height: 1em; }
.chip.pick.with-medal { gap: 6px; padding-inline-start: 10px; } .chip.pick .medal { flex: none; }
.honor { display: grid; gap: 14px; margin-top: 14px; }
.hb-tier { --lv: #c98a55; --lv2: #fbe9da; background: var(--card); border: 1px solid var(--line); border-inline-start: 5px solid var(--lv); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.hb-tier.platinum { --lv: #6f93bf; --lv2: #eef5fd; } .hb-tier.gold { --lv: #d4a53a; --lv2: #fff4d6; } .hb-tier.silver { --lv: #a7adb6; --lv2: #f3f4f6; }
.hb-tier header { display: flex; align-items: center; gap: 12px; }
.hb-tier header h3 { margin: 0; font-size: 1.25rem; } .hb-tier header .muted { font-size: .9rem; }
.hb-count { margin-inline-start: auto; font-family: var(--hand); font-size: 1.25rem; color: var(--gold-ink); white-space: nowrap; }
.hb-names { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hb-names li { display: inline-flex; align-items: center; gap: 7px; padding: 6px 14px 6px 8px; border-radius: 999px; background: var(--lv2); border: 1px solid var(--line); font-family: var(--serif); font-weight: 600; }
.hb-quiet, .hb-empty { margin: 10px 0 0; }
@media (prefers-color-scheme: dark) { .hb-names li, .chai .club-l { background: var(--card); } }

/* Light the menorah (/menorah) */
.menorah-game { text-align: center; }
.mn-nights { justify-content: center; margin-bottom: 8px; }
.mn-nights .chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.mn-stage { padding: 54px 4px 0; }
.mn-row { display: flex; justify-content: center; align-items: flex-end; gap: clamp(6px, 2.4vw, 16px); min-height: 110px; }
.mn-c { position: relative; width: clamp(18px, 6vw, 26px); height: 64px; padding: 0; border: 0; border-radius: 4px 4px 2px 2px; cursor: pointer;
  background: repeating-linear-gradient(135deg, #f7f1e3 0 6px, #e9dcc0 6px 9px); box-shadow: inset 0 0 0 1px #d9c8a3; }
.mn-c.mn-off { height: 10px; background: var(--line); box-shadow: none; cursor: default; } .mn-c.mn-off::before { display: none; }
.mn-shamash { height: 92px; background: repeating-linear-gradient(135deg, #fbf3d9 0 6px, #ecd9a6 6px 9px); }
.mn-c::before { content: ""; position: absolute; left: 50%; top: -7px; width: 2px; height: 7px; background: #4a3b2a; transform: translateX(-50%); }
.mn-flame { position: absolute; left: 50%; bottom: calc(100% + 6px); width: 16px; height: 26px; transform: translateX(-50%) scale(0); transform-origin: 50% 100%;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 50% 70%, #fff7c2 0 25%, #ffc93c 45%, #ff8a1f 80%); box-shadow: 0 0 18px 6px rgba(255, 190, 60, .55); transition: transform .35s ease-out; }
.mn-c.lit .mn-flame { transform: translateX(-50%) scale(1); animation: mn-flicker 1.6s ease-in-out infinite alternate; }
@keyframes mn-flicker { 0% { transform: translateX(-50%) scale(1) rotate(-2deg); } 100% { transform: translateX(-50%) scale(1.06, .96) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .mn-c.lit .mn-flame { animation: none; } }
.mn-base { height: 12px; margin: 0 auto; width: min(100%, 380px); border-radius: 0 0 40px 40px; background: linear-gradient(var(--gold-2), var(--gold)); }
.mn-msg { min-height: 3em; margin: 14px 0 4px; font-size: 1.05rem; }
.mn-tonight { font-size: 1.1rem; background: var(--soft); border-radius: var(--r); padding: 12px 16px; }
.mn-bless .he { font-size: 1.35rem; line-height: 1.7; margin: 0; }
.mn-bless.mn-dim { opacity: .55; }

/* Fundraising campaigns: the campaign page, the home page banner and the slim bar at the top of every page.
   Navy and gold, Lora headings, a little shine: dignified enough for a building campaign. */
.cmp { --c-ink: #0f1d38; --c-gold: #d4a63a; --c-gold-2: #f1d27a; }
.cmp-hero { position: relative; color: #fff; padding: clamp(40px, 8vw, 84px) 0 clamp(28px, 5vw, 48px); text-align: center; overflow: hidden;
  background: radial-gradient(1200px 400px at 50% -10%, rgba(241,210,122,.18), transparent 60%), radial-gradient(800px 300px at 100% 100%, rgba(212,166,58,.12), transparent 60%), linear-gradient(160deg, #13254a 0%, #0c1830 60%, #0a1428 100%); }
.cmp-hero.has-img { background: linear-gradient(180deg, rgba(10,20,40,.55) 0%, rgba(10,20,40,.82) 55%, #0a1428 100%), var(--cmp-img) center / cover; }
.cmp-hero::after { content: ""; position: absolute; left: 50%; bottom: 0; width: min(560px, 80%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--c-gold, #d4a63a), transparent); }
.cmp-hero .wrap { position: relative; max-width: 880px; }
.cmp-eyebrow { display: inline-block; margin: 0 0 10px; font: 600 .78rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--c-gold-2, #f1d27a); }
.cmp-eyebrow::before, .cmp-eyebrow::after { content: "✦"; margin: 0 .7em; font-size: .7em; opacity: .8; }
.cmp-title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 6.5vw, 3.6rem); line-height: 1.08; color: #fff; letter-spacing: -.01em; }
.cmp-title a { color: inherit; text-decoration: none; }
.cmp-tag { margin: 14px auto 0; max-width: 40em; font-size: clamp(1.02rem, 2.6vw, 1.22rem); color: rgba(255,255,255,.85); }
.cmp-quote { border: 0; padding: 0; margin: 22px auto 0; max-width: 36em; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: #fff; }
.cmp-quote::before { content: "“"; display: block; font-size: 3rem; line-height: .6; color: var(--c-gold); }
.cmp-quote cite { display: block; margin-top: 8px; font: 600 .85rem var(--sans); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--c-gold-2); }
.cmp-meter { margin: 26px auto 0; max-width: 720px; text-align: start; }
.cmp-meter.on-dark { padding: 22px 24px 18px; border-radius: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(241,210,122,.28); box-shadow: 0 20px 60px rgba(0,0,0,.25); backdrop-filter: blur(6px); }
.cmp-raised { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 14px; }
.cmp-raised b { font-family: var(--serif); font-weight: 600; font-size: clamp(2.3rem, 9vw, 3.6rem); line-height: 1; color: var(--navy); font-variant-numeric: tabular-nums; }
.on-dark .cmp-raised b { color: #fff6dc; text-shadow: 0 2px 18px rgba(241,210,122,.35); }
.cmp-raised span { color: var(--muted); font-size: 1.05rem; } .on-dark .cmp-raised span { color: rgba(255,255,255,.78); }
.cmp-bar { position: relative; display: block; height: 14px; border-radius: 999px; background: var(--soft); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.12); }
.on-dark .cmp-bar { background: rgba(255,255,255,.12); }
.cmp-bar i { position: relative; display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #b8862a, var(--c-gold, #d4a63a) 45%, var(--c-gold-2, #f1d27a)); transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.cmp-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); background-size: 200% 100%; animation: cmp-shine 3.2s ease-in-out infinite; }
@keyframes cmp-shine { 0% { background-position: 150% 0; } 60%, 100% { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .cmp-bar i::after { animation: none; } .cmp-bar i { transition: none; } }
.cmp-bar s { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(15,29,56,.18); } .on-dark .cmp-bar s { background: rgba(255,255,255,.25); }
.cmp-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 0; margin: 16px 0 0; }
.cmp-stats p { margin: 0; padding: 2px 8px; text-align: center; } .cmp-stats p:nth-child(even) { border-inline-start: 1px solid var(--line); }
@media (min-width: 600px) { .cmp-stats { grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); } .cmp-stats p { border-inline-start: 1px solid var(--line); } .cmp-stats p:first-child { border: 0; } }
.on-dark .cmp-stats p { border-color: rgba(255,255,255,.18); }
.cmp-stats b { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--navy); font-variant-numeric: tabular-nums; } .on-dark .cmp-stats b { color: #fff; }
.cmp-stats span { font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); } .on-dark .cmp-stats span { color: rgba(255,255,255,.7); }
.cmp-pledged { margin: 10px 0 0; text-align: center; color: var(--muted); } .on-dark .cmp-pledged { color: rgba(255,255,255,.75); }
.cmp-bonus { margin: 12px 0 0; text-align: center; font-family: var(--hand); font-size: 1.5rem; color: var(--c-gold-2); }
.cmp-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0 0; }
.cmp-ctas .btn { min-width: 150px; }
.btn.ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.55); box-shadow: none; } .btn.ghost-light:hover { background: rgba(255,255,255,.1); }
.cmp-match { background: linear-gradient(90deg, #f7e7b8, #fff4d6 50%, #f7e7b8); border-bottom: 1px solid #e6cf8a; text-align: center; padding: 14px 0; }
.cmp-match p { margin: 2px 0; } .cmp-match-h { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--c-ink); }
.cmp-matchers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: .95rem; } .cmp-matchers span { color: var(--muted); }
.cmp-nav { position: sticky; top: 0; z-index: 20; background: rgba(255,252,246,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.cmp-nav .wrap { display: flex; gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp-nav a { flex: none; padding: 12px 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; border-bottom: 2px solid transparent; } .cmp-nav a:hover { border-color: var(--gold); }
.cmp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 24px; padding-bottom: 40px; }
@media (min-width: 960px) { .cmp-grid { grid-template-columns: minmax(0, 1fr) 400px; align-items: start; } .cmp-side { position: sticky; top: 62px; } }
.cmp-side { order: -1; } @media (min-width: 960px) { .cmp-side { order: 0; } }
.cmp-sec { padding: 8px 0 18px; scroll-margin-top: 60px; } .cmp-sec > h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 10px 0 12px; }
.cmp-sec > h2::after { content: ""; display: block; width: 46px; height: 3px; margin-top: 8px; border-radius: 3px; background: linear-gradient(90deg, var(--c-gold), var(--c-gold-2)); }
.cmp-story { font-size: 1.08rem; } .cmp-story h2 { font-size: 1.3rem; }
.cmp-video { position: relative; aspect-ratio: 16 / 9; margin: 18px 0; } .cmp-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 16px; }
.cmp-gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-top: 16px; } .cmp-gallery figure { margin: 0; } .cmp-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; } .cmp-gallery figcaption { font-size: .9rem; color: var(--muted); margin-top: 4px; }
.cmp-levels { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); }
.cmp-level { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px 18px 16px; border-radius: 16px; background: linear-gradient(180deg, #fffdf7, #fff); border: 1px solid #ead9ab; box-shadow: 0 1px 0 #fff inset, var(--shadow); }
.cmp-level::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(212,166,58,.25); border-radius: 12px; pointer-events: none; }
.cmp-level-amt { margin: 0; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--c-ink); }
.cmp-level h3 { margin: 0; font-size: 1.08rem; } .cmp-level p { margin: 0; color: var(--muted); font-size: .95rem; }
.cmp-level .btn { margin-top: auto; align-self: flex-start; } .cmp-left { font-size: .85rem !important; color: #8a5f0e !important; font-weight: 600; }
.cmp-level.taken { opacity: .6; } .cmp-level.taken .btn { display: none; }
.cmp-board { list-style: none; counter-reset: amb; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.cmp-board li { counter-increment: amb; } .cmp-board a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.cmp-board a::before { content: counter(amb); width: 1.6em; text-align: center; font-family: var(--serif); font-weight: 600; color: var(--gold-ink); }
.cmp-board li:nth-child(-n+3) a { border-color: #e6cf8a; background: linear-gradient(90deg, #fffaf0, #fff); }
.cmp-bd { flex: 1; min-width: 0; display: grid; gap: 4px; } .cmp-bd .cmp-bar { height: 8px; } .cmp-bd small { color: var(--muted); }
.cmp-av { flex: none; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font: 600 .95rem var(--serif); color: var(--c-ink); background: linear-gradient(135deg, #f7e7b8, #e9c46a); }
.cmp-join-box > summary { list-style: none; display: inline-block; cursor: pointer; } .cmp-join-box > summary::-webkit-details-marker { display: none; }
.cmp-join-box[open] > summary { margin-bottom: 10px; } .cmp-join { display: grid; gap: 10px; max-width: 520px; }
.cmp-wall-tools { display: flex; gap: 8px; margin-bottom: 10px; } .cmp-wall-tools input { flex: 1; min-width: 0; width: auto; } .cmp-wall-tools select { flex: none; width: auto; }
.cmp-wall { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.cmp-wall li { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.cmp-wall li.muted { display: block; } .cmp-wall li > div { flex: 1; min-width: 0; }
.cmp-wall li p { margin: 0; } .cmp-wall li p:first-child { display: flex; justify-content: space-between; gap: 10px; } .cmp-wall .amt { color: var(--gold-ink); font-weight: 600; white-space: nowrap; }
.cmp-faq details { border-bottom: 1px solid var(--line); padding: 12px 0; } .cmp-faq summary { cursor: pointer; font-weight: 600; }
.cmp-give { display: grid; gap: 12px; padding: 22px 20px; border-radius: 20px; background: var(--card); border: 1px solid #ead9ab; box-shadow: 0 18px 50px rgba(15,29,56,.12); }
.cmp-give > h2 { margin: 0; font-size: 1.5rem; text-align: center; } .cmp-give fieldset { border: 0; padding: 0; margin: 0; } .cmp-give legend { font-weight: 600; margin-bottom: 6px; }
.cmp-amts { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-bottom: 8px; }
.cmp-amts label { position: relative; } .cmp-amts input { position: absolute; opacity: 0; }
.cmp-amts span { display: block; padding: 12px 6px; text-align: center; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.cmp-amts input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 4px 14px rgba(15,29,56,.25); }
.cmp-amts input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.cmp-opt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 14px; margin: 0 0 8px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.cmp-opt:has(input:checked) { border-color: var(--gold); background: #fffaf0; box-shadow: 0 0 0 1px var(--gold) inset; }
.cmp-opt > span { flex: 1; min-width: 150px; display: grid; } .cmp-opt small { color: var(--muted); } .cmp-opt select { width: auto; flex: 1 1 100%; }
@media (min-width: 420px) { .cmp-opt select { flex: 0 1 auto; } }
.cmp-matchline { margin: 0; text-align: center; font-family: var(--hand); font-size: 1.35rem; color: var(--gold-ink); }
.cmp-pledge { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: var(--soft); }
.cmp-submit { width: 100%; font-size: 1.1rem; padding: 14px; }
.cmp-trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 0; padding: 0; font-size: .8rem; color: var(--muted); } .cmp-trust li::before { content: "✓ "; color: var(--ok); }
.cmp-welcome { margin-top: 18px; text-align: center; border-color: var(--gold); } .cmp-welcome .cmp-eyebrow { color: var(--gold-ink); }
.cmp-parent { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 18px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--soft); }
.cmp-meter.mini { margin: 0; flex: 1; min-width: 220px; } .cmp-meter.mini .cmp-raised b { font-size: 1.4rem; } .cmp-meter.mini .cmp-raised { margin-bottom: 6px; } .cmp-meter.mini .cmp-stats, .cmp-meter.mini .cmp-bonus, .cmp-meter.mini .cmp-pledged { display: none; }
.cmp-sticky { position: fixed; z-index: 30; inset-inline-start: 16px; inset-inline-end: 150px; bottom: 16px; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.22); }
@media (min-width: 960px) { .cmp-sticky { display: none; } } .cmp-sticky[hidden] { display: none; }
.cmp-home { text-align: center; } .cmp-home .cmp-quick .btn { min-width: 84px; }
.cmp-topbar { display: block; background: linear-gradient(90deg, #0c1830, #13254a 50%, #0c1830); color: #fff; text-decoration: none; border-bottom: 1px solid rgba(212,166,58,.5); }
.cmp-topbar .wrap { display: flex; align-items: center; gap: 12px; padding-top: 7px; padding-bottom: 7px; font-size: .9rem; }
.cmp-topbar b { font-family: var(--serif); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cmp-topbar-m { flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; font-variant-numeric: tabular-nums; color: rgba(255,255,255,.85); }
.cmp-topbar .cmp-bar { flex: 1; height: 7px; min-width: 50px; background: rgba(255,255,255,.15); }
.cmp-topbar-go { flex: none; padding: 4px 12px; border-radius: 999px; background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1b1300; font-weight: 700; font-size: .85rem; }
@media (max-width: 560px) { .cmp-topbar b { display: none; } }

/* "Bring a friend" after an RSVP */
.invite { margin-top: 14px; padding: 14px 16px; border-radius: var(--r); background: var(--soft); border: 1px dashed var(--gold); }
.invite .hand { font-size: 1.5rem; margin: 0; color: var(--gold-ink); } .invite p { margin: 4px 0; }

/* Event flyers (/events/<slug>/flyer): one printable page */
.flyer-page { background: #eee8dc; margin: 0; padding: 16px; }
.flyer-tools { max-width: 760px; margin: 0 auto 12px; display: flex; gap: 8px; }
.flyer { max-width: 760px; margin: 0 auto; background: #fffdf8; padding: 40px 44px 28px; border-radius: 6px; box-shadow: 0 6px 30px rgba(0,0,0,.12); text-align: center; border-top: 10px solid var(--navy); }
.fl-head { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--serif); font-size: 1.2rem; color: var(--navy); }
.fl-invite { font-size: 2rem; margin: 22px 0 0; color: var(--gold-ink); }
.flyer h1 { font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.1; margin: 6px 0 18px; }
.fl-img { display: block; width: 100%; max-height: 340px; object-fit: cover; border-radius: 10px; margin: 0 0 18px; }
.fl-facts { display: grid; gap: 8px; margin: 0 auto 14px; max-width: 560px; text-align: start; }
.fl-facts p { margin: 0; display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; font-size: 1.2rem; }
.fl-facts b { color: var(--gold-ink); font-weight: 700; text-transform: uppercase; font-size: .85rem; letter-spacing: .08em; padding-top: .3em; }
.fl-sum { font-size: 1.15rem; max-width: 560px; margin: 0 auto 18px; }
.fl-qr { display: flex; align-items: center; justify-content: center; gap: 22px; margin: 18px 0; padding: 16px; border: 2px dashed var(--gold); border-radius: 14px; }
.fl-code { width: 150px; height: 150px; } .fl-code svg { width: 100%; height: 100%; }
.fl-scan { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; margin: 0 0 4px; text-align: start; } .fl-url { margin: 0; color: var(--muted); font-size: .95rem; word-break: break-all; }
.fl-foot { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; color: var(--muted); } .fl-foot p { margin: 2px 0; }
@media print { @page { size: letter; margin: 0.4in; } .flyer-page { background: #fff; padding: 0; } .flyer-tools { display: none; } .flyer { box-shadow: none; border-radius: 0; max-width: none; padding: 0.2in 0.3in; } .fl-img { max-height: 3.2in; } }
@media (max-width: 560px) { .flyer { padding: 24px 18px; } .fl-qr { flex-direction: column; } .fl-scan { text-align: center; } }

/* Chanukah quiz (/chanukah-quiz) */
.qz-q { border: 1px solid var(--line); margin: 0 0 14px; padding: 16px; min-width: 0; }
.qz-q legend { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; padding: 0 4px; float: left; width: 100%; margin-bottom: 10px; }
.qz-n { font-family: var(--hand); color: var(--gold-ink); font-size: 1.2rem; font-weight: 400; margin-inline-end: 4px; }
.qz-a { display: grid; gap: 8px; clear: both; }
@media (min-width: 560px) { .qz-a { grid-template-columns: 1fr 1fr; } }
.qz-b { text-align: start; padding: 12px 14px; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--soft); color: var(--ink); font: inherit; cursor: pointer; }
.qz-b:hover:not(:disabled) { border-color: var(--navy); }
.qz-b:disabled { cursor: default; opacity: .75; }
.qz-b.qz-right { background: color-mix(in srgb, var(--ok) 18%, transparent); border-color: var(--ok); opacity: 1; font-weight: 600; }
.qz-b.qz-wrong { background: color-mix(in srgb, var(--err) 14%, transparent); border-color: var(--err); opacity: 1; }
.qz-why { margin: 10px 0 0; }
.qz-mark { font-weight: 700; }
.qz-end { text-align: center; padding: 22px 16px; }
.qz-score { font-size: 2rem; color: var(--gold-ink); margin: 0; }

/* Guide pictures: a photo on every guide card, picture cards linking guides from events, holidays, programs,
   towns and the week's Jewish dates (links.js guideCards), and small drawings in the guide library's lists. */
.tile.has-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.tile.has-photo > :not(.tile-photo) { padding-inline: 18px; }
.tile.has-photo > :last-child { padding-bottom: 18px; }
.tile.has-photo h3 { margin-top: 14px; }
.tile-photo { display: block; width: 100%; height: auto; aspect-ratio: 56 / 38; object-fit: cover; background: var(--soft); }
.tile.has-photo:hover .tile-photo { filter: saturate(1.08); }
.guide-cards { margin: 32px 0 8px; }
.guide-cards > h2 { margin-bottom: 12px; }
.gc-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.gcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.gcard:hover { transform: translateY(-2px); border-color: var(--gold); }
.gcard .gc-img { display: block; width: 100%; height: auto; aspect-ratio: 56 / 38; object-fit: cover; background: var(--soft); }
.gcard > .art { width: 100%; height: auto; aspect-ratio: 56 / 38; padding: 22% 35%; margin: 0; background: var(--soft); }
.gc-t { display: grid; gap: 4px; padding: 12px 14px 14px; }
.gc-t strong { font-family: var(--serif); font-size: 1.05rem; line-height: 1.3; }
.gc-t span { color: var(--muted); font-size: .92rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 520px) {
  .gc-grid { grid-template-columns: 1fr; gap: 10px; }
  .gcard { flex-direction: row; align-items: stretch; }
  .gcard .gc-img, .gcard > .art { width: 112px; flex: none; aspect-ratio: auto; height: auto; min-height: 96px; }
  .gcard > .art { padding: 22px; }
  .gc-t span { -webkit-line-clamp: 2; }
}
.rn-main .gc-img { flex: none; width: 128px; height: 96px; object-fit: cover; border-radius: 12px; }
.more-guides a { display: flex; align-items: center; gap: 10px; }
.more-guides .art { width: 28px; height: 28px; margin: 0; flex: none; }
@media (max-width: 520px) {
  .tile.has-photo { display: grid; grid-template-columns: 112px 1fr; grid-template-rows: auto 1fr; }
  .tile.has-photo > .tile-photo { grid-row: 1 / span 3; width: 112px; height: 100%; min-height: 104px; aspect-ratio: auto; }
  .tile.has-photo > :not(.tile-photo) { grid-column: 2; padding-inline: 14px; }
  .tile.has-photo h3 { margin-top: 12px; font-size: 1.02rem; }
  .tile.has-photo p { font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .tile.has-photo > :last-child { padding-bottom: 0; margin-bottom: 12px; }
}

/* The weekly email: the band above the footer, the pop-up (layout.js signUp) and /subscribe */
.nl-band { background: var(--navy); color: #fff; padding: 34px 0; margin-top: 40px; }
.nl-in { display: grid; gap: 18px; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 820px) { .nl-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; } }
.nl-band h2 { color: #fff; margin: 0 0 6px; } .nl-band p { margin: 0; color: rgba(255,255,255,.85); } .nl-band .eyebrow { color: var(--gold-2); }
.nl-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nl-form input { flex: 1 1 220px; min-width: 0; min-height: 48px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); font: inherit; background: #fff; color: #1f2433; }
.nl-form .btn { min-height: 48px; }
.nl-form .nl-msg { flex-basis: 100%; margin: 4px 0 0; min-height: 1.2em; font-weight: 600; }
.nl-band .nl-msg { color: #fff; }
.nl-form.done input, .nl-form.done .btn { display: none; }
.nl-form.stack { flex-direction: column; align-items: stretch; } .nl-form.stack input { flex: none; }
.nl-form.big { display: grid; gap: 8px; max-width: 460px; margin: 18px 0 28px; } .nl-form.big input { border-radius: 12px; } .nl-form.big label { font-weight: 600; }
.nl-pop { position: fixed; z-index: 60; inset-inline-end: 18px; bottom: 18px; width: min(380px, calc(100vw - 24px)); background: var(--card); color: var(--ink); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 18px; padding: 22px 20px 16px; box-shadow: 0 18px 50px rgba(20,40,75,.25); transform: translateY(24px); opacity: 0; transition: transform .3s, opacity .3s; }
.nl-pop.on { transform: none; opacity: 1; }
.nl-pop h2 { margin: 0 0 6px; font-size: 1.35rem; } .nl-pop p { margin: 0 0 12px; } .nl-pop .eyebrow { margin: 0; }
.nl-pop .nl-small { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }
.nl-x { position: absolute; top: 8px; inset-inline-end: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 50%; }
.nl-x:hover { background: var(--soft); }
@media (max-width: 520px) { .nl-pop { inset-inline: 12px; bottom: 12px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .nl-pop { transition: none; } }
.tile.has-photo > .eyebrow { margin: 12px 0 0; } .tile.has-photo > .eyebrow + h3 { margin-top: 2px; }

/* Home page: the Shabbat strip's buttons, and room for the "Ask us" button on phones */
.ss-btns { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 600px) { .shabbat-strip { padding-bottom: 76px; } }
@media (max-width: 440px) { html[lang="ru"] .brand span { font-size: .82rem; white-space: normal; line-height: 1.15; max-width: 7.5em; } }
.more-results { margin-top: 12px; } .more-results > summary { list-style: none; display: inline-block; cursor: pointer; } .more-results > summary::-webkit-details-marker { display: none; } .more-results[open] > summary { display: none; }
.rsvp-done .hand, .invited { font-size: 1.4rem; color: var(--gold-ink); margin: 6px 0 10px; }

/* Review fixes: "Read next" as a big picture card on phones; the library's long lists one tap away */
@media (max-width: 640px) {
  .rn-main { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; gap: 0; }
  .rn-main .gc-img { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0; }
  .rn-main .art { margin: 16px auto 0; }
  .rn-main .rn-t { padding: 14px 16px 16px; }
  .rn-main .rn-t span:not(.rn-go) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
.more-wrap { margin: 12px 0 4px; } .more-wrap > summary { list-style: none; display: inline-block; cursor: pointer; } .more-wrap > summary::-webkit-details-marker { display: none; } .more-wrap[open] > summary { display: none; }
html { scroll-padding-top: 84px; }
@media (max-width: 600px) { form[data-give], .give { padding-bottom: 76px; } }
@media (max-width: 440px) { .brand { margin-inline-end: 8px; } }
.nw { white-space: nowrap; }
/* Donate: the funds as one compact list, other ways to give folded */
.fund-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.fund-list li + li { border-top: 1px solid var(--line); }
.fund-list a { display: flex; flex-direction: column; padding: 10px 2px; text-decoration: none; color: inherit; position: relative; padding-inline-end: 28px; }
.fund-list a::after { content: '›'; position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--gold, #c9a227); }
[dir="rtl"] .fund-list a::after { content: '‹'; }
.fund-list span { color: var(--muted, #666); font-size: .95rem; }
.card.ways { padding-top: 4px; padding-bottom: 4px; }
.card.ways .qa:last-child { border-bottom: 0; }
/* Chanukah quiz: the running score stays at the top while you play */
.qz-bar { position: sticky; top: 64px; z-index: 5; display: flex; align-items: center; gap: 12px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin: 0 0 14px; }
.qz-prog { flex: 1; height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.qz-prog i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .3s; }
.qz-bar b { white-space: nowrap; font-size: .95rem; }
.qz-q { scroll-margin-top: 130px; }
/* The quiet giving form at the end of Kaddish, yahrzeit, Tehillim, tzedakah and some holiday pages (give.js GIVE_ON) */
.give-box { margin: 2.2rem 0 1.5rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.give-box > p { color: var(--muted); }
/* Step-by-step series of guides (series.json, local.js seriesBox) */
.series-line { margin: -.4rem 0 1rem; font-size: .95rem; }
.series-line a { color: var(--gold-ink); text-decoration: none; font-weight: 600; }
.card.series { margin: 2rem 0; border-color: var(--gold-2); }
.card.series h2 { margin-top: .2rem; }
.series-bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin: .4rem 0 1rem; }
.series-bar i { display: block; height: 100%; background: var(--gold); }
.series-next { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; background: var(--soft); padding: 14px 16px; }
.series-next strong { font-family: Lora, Georgia, serif; font-size: 1.15rem; }
.series-next span:last-child { color: var(--muted); font-size: .95rem; }
.series-all summary { cursor: pointer; color: var(--link); margin-top: .4rem; }
.series-all ol { padding-inline-start: 1.4rem; margin: .6rem 0 0; }
.series-all li { margin: .25rem 0; }
.series-all li.done a { color: var(--muted); }
.hp { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; } /* never push it far to the left: in Hebrew (right-to-left) that makes the page 10,000 px wide */
/* A series page: the parts numbered in order */
.series-page .gc-grid { counter-reset: part; }
.series-page .gcard { position: relative; }
.series-page .gcard::before { counter-increment: part; content: counter(part); position: absolute; top: 8px; inset-inline-start: 8px; z-index: 1; background: var(--gold); color: #fff; font-weight: 700; border-radius: 999px; min-width: 28px; height: 28px; display: grid; place-items: center; font-size: .9rem; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
/* Phone fixes from the visitor check: the "Ask us" button shrinks to a round icon after the first screen so it never
   hides buttons or text; bigger tap areas for menorah candles, banner dots and breadcrumbs */
@media (max-width: 600px) {
  .chat-fab.compact { font-size: 0; padding: 0; width: 56px; height: 56px; display: grid; place-items: center; }
  .chat-fab.compact::before { content: "💬"; font-size: 1.5rem; }
  main { padding-bottom: 72px; }
}
.bn-dots button { position: relative; }
.bn-dots button::after { content: ""; position: absolute; inset: -10px; }
.crumbs a { display: inline-block; padding: 8px 0; }
.mn-c > .mn-hit { position: absolute; inset: 0 -9px; }
/* Jewish stories and jokes (/stories) */
.joke-of-day { background: var(--soft); border-color: var(--gold-2); font-size: 1.1rem; }
.card.joke p:first-child { font-size: 1.02rem; }
.story-text { font-size: 1.08rem; line-height: 1.7; }
.story-source { margin-top: 1.4rem; border-top: 1px solid var(--line); padding-top: .8rem; }

/* Add to calendar and send it to someone (event pages, weekly classes, programs) */
.addcal { display: flex; flex-wrap: wrap; gap: .5rem; margin: .7rem 0 .3rem; align-items: flex-start; }
.addcal details { position: relative; }
.addcal summary { list-style: none; cursor: pointer; display: inline-block; }
.addcal summary::-webkit-details-marker { display: none; }
.addcal details[open] summary { background: var(--soft); }
.addcal-links { display: grid; gap: .35rem; margin-top: .45rem; padding: .6rem; background: var(--card, #fff); border: 1px solid var(--line, #e6dccb); border-radius: 12px; min-width: 14rem; }
.addcal-links a { padding: .55rem .7rem; border-radius: 8px; text-decoration: none; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.addcal-links a:hover, .addcal-links a:focus { background: var(--soft); }
.addcal-send .share { margin-top: .45rem; padding: .6rem; border: 1px solid var(--line, #e6dccb); border-radius: 12px; background: var(--card, #fff); }
.addcal-for { margin: .4rem 0 0; }
.weekly li .addcal { margin: .45rem 0 .2rem; }

/* Events with a picture: the picture leads, full width */
.ev.has-pic { flex-direction: column; position: relative; padding: 0; overflow: hidden; gap: 0; grid-column: 1 / -1; }
.ev.has-pic .ev-pic img { display: block; width: 100%; aspect-ratio: 2.286 / 1; object-fit: cover; }
.ev.has-pic .ev-date { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 1; }
.ev.has-pic .ev-body { padding: 16px; }
@media (min-width: 900px) { .ev.has-pic { flex-direction: row; } .ev.has-pic .ev-pic { flex: 0 0 52%; } .ev.has-pic .ev-pic img { height: 100%; aspect-ratio: auto; min-height: 260px; } }
.ev.has-pic .ev-date { display: none; }

.sponsor-pick { margin: 10px 0 4px; } .sponsor-pick p { margin: 0 0 6px; } .sponsor-pick .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sponsor-pick .chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font: 600 1rem var(--sans, inherit); cursor: pointer; }
.sponsor-pick .chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* A small whole-picture version of a flyer ("card" in events.json): never cropped */
.ev.pic-whole .ev-pic { background: var(--navy); display: grid; place-items: center; }
.ev.pic-whole .ev-pic img { width: 100%; max-width: 420px; height: auto; aspect-ratio: auto; min-height: 0; object-fit: contain; }
@media (min-width: 900px) { .ev.pic-whole .ev-pic { flex: 0 0 38%; } }

.media-box { margin: 18px 0; } .media-box .media-h { margin: 0 0 10px; font-size: 1.2rem; } .media-box .cmp-video { margin: 0 0 14px; }

.sponsor-pick .chips input { width: 9.5em; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font: inherit; background: #fff; }

@media print { .flyer { padding: 14px 24px 10px; border-top-width: 6px; } .fl-invite { font-size: 1.5rem; margin-top: 8px; } .flyer h1 { font-size: 2.1rem; margin: 2px 0 8px; } .fl-img { max-height: 190px; margin-bottom: 8px; } .fl-facts p { font-size: 1.05rem; } .fl-sum { font-size: 1rem; margin-bottom: 8px; } .fl-qr { margin: 8px 0; padding: 8px; } .fl-code { width: 120px; height: 120px; } .fl-foot { margin-top: 8px; padding-top: 6px; } }

a.ask-rabbi { text-decoration: underline dotted var(--gold-ink, #8a6a1f); text-underline-offset: 3px; }

.legacy-aside { margin: 16px 0; padding: 14px 16px; border: 1px solid var(--line); border-inline-start: 4px solid var(--gold); border-radius: 12px; background: var(--card); font-size: .95rem; }
.legacy-aside p { margin: 0 0 8px; } .legacy-aside .hand { font-size: 1.25rem; color: var(--gold-ink); }
@media (min-width: 1000px) { .legacy-aside { float: inline-end; width: 270px; margin: 4px -300px 16px 20px; } [dir=rtl] .legacy-aside { margin: 4px 20px 16px -300px; } }

/* Learn library: subjects */
.grid.subs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.sub-tile h3 { margin: 0 0 4px; font-size: 1.05rem; } .sub-tile p { margin: 0 0 6px; font-size: .92rem; } .sub-tile .muted { font-size: .85rem; }
.topic-list { list-style: none; margin: 8px 0 18px; padding: 0; display: grid; gap: 6px; }
.topic-list li a { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); text-decoration: none; color: inherit; }
.topic-list li a strong { display: block; } .topic-list li a .muted { display: block; font-size: .88rem; }
.topic-list li a:hover { border-color: var(--gold); }

/* Weekly parsha: the Rebbe's teaching, story, ideas and essay */
.parsha-nav { margin: 1rem 0 1.4rem; }
.parsha-rich h2 { margin-top: 1.8em; border-top: 1px solid var(--line, #e7dcc6); padding-top: .9em; }
.parsha-rich h2:first-child { border-top: 0; padding-top: 0; }
.parsha-teach { border-inline-start: 4px solid var(--gold, #b8872b); }

/* The bequest wording builder (guide: sample bequest language) */
.bequest .fields { display: grid; gap: 10px; margin: 12px 0; }
.bequest label { display: block; font-weight: 600; }
.bequest input, .bequest select { width: 100%; margin-top: 4px; }
.bequest .bq-out { background: var(--cream, #fffdf6); border-inline-start: 4px solid var(--gold, #b8872b); color: var(--ink, #222); font-family: Lora, Georgia, serif; direction: ltr; text-align: left; }
.bequest-share { margin-top: 22px; }
