/* תורה וחיים – עיצוב משלנו. מסורת יהודית בלבד: מנורה, נרות, ספר תורה, אבני הכותל, בית המקדש. */
@font-face { font-family: Heebo; font-weight: 400; src: url(/fonts/heebo/files/heebo-hebrew-400-normal.woff2) format('woff2'); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: Heebo; font-weight: 400; src: url(/fonts/heebo/files/heebo-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: Heebo; font-weight: 600; src: url(/fonts/heebo/files/heebo-hebrew-600-normal.woff2) format('woff2'); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: Heebo; font-weight: 600; src: url(/fonts/heebo/files/heebo-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: Heebo; font-weight: 800; src: url(/fonts/heebo/files/heebo-hebrew-800-normal.woff2) format('woff2'); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: Heebo; font-weight: 800; src: url(/fonts/heebo/files/heebo-latin-800-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: Frank; font-weight: 700; src: url(/fonts/frank-ruhl-libre/files/frank-ruhl-libre-hebrew-700-normal.woff2) format('woff2'); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: Frank; font-weight: 700; src: url(/fonts/frank-ruhl-libre/files/frank-ruhl-libre-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: Frank; font-weight: 900; src: url(/fonts/frank-ruhl-libre/files/frank-ruhl-libre-hebrew-900-normal.woff2) format('woff2'); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: Frank; font-weight: 900; src: url(/fonts/frank-ruhl-libre/files/frank-ruhl-libre-latin-900-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --gold: #d9b45a; --gold-hi: #f3dc94; --gold-lo: #9c7a2e;
  --ink: #0b1626; --ink2: #12223a; --ink3: #1b3152;
  --cream: #f6efdc; --muted: #b9c3d3; --sky: #7fb0e6;
  --g-rgb: 217,180,90; --gh-rgb: 243,220,148; --ink-rgb: 11,22,38; --p1-rgb: 27,49,82; --p2-rgb: 18,34,58; --sky-rgb: 127,176,230; --tile: none;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; cursor: none; }
body { font-family: Heebo, sans-serif; color: var(--cream); }

#stage { position: absolute; top: 0; right: 0; height: 1080px; transform-origin: top right; direction: rtl;
  display: grid; grid-template-rows: 150px 1fr 96px; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(var(--g-rgb),.13), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(var(--sky-rgb),.10), transparent 70%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink2) 55%, var(--ink) 100%); transition: background-color 1s; }

/* ---------- כותרת עליונה ---------- */
header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 44px;
  border-bottom: 2px solid transparent; border-image: linear-gradient(90deg, transparent, var(--gold), transparent) 1; }
.shul-name { display: flex; align-items: center; gap: 22px; }
.shul-name svg { width: 78px; height: 78px; flex: none; }
.shul-name .t1 { font: 700 26px Frank, serif; color: var(--gold-hi); letter-spacing: 1px; }
.shul-name .t2 { font: 900 50px/1.05 Frank, serif; color: var(--cream); }
.shul-name .t3 { font: 600 21px Heebo; color: var(--muted); }
.clock { text-align: center; }
.clock .time { font: 800 104px/1 Heebo; letter-spacing: 2px; direction: ltr; color: #fff;
  text-shadow: 0 0 30px rgba(var(--gh-rgb),.25); font-variant-numeric: tabular-nums; }
.clock .time small { font-size: 46px; color: var(--gold); margin-inline-start: 6px; }
.dates { text-align: left; }
.dates .heb { font: 900 46px/1.1 Frank, serif; color: var(--gold-hi); }
.dates .greg { font: 400 24px Heebo; color: var(--muted); margin-top: 4px; }
.dates .special { font: 600 25px Heebo; color: var(--sky); margin-top: 4px; }

/* ---------- גוף ---------- */
main { display: grid; grid-template-columns: 470px 1fr 430px; gap: 26px; padding: 24px 34px 18px; min-height: 0; }
.panel { position: relative; border-radius: 22px; padding: 22px 26px; min-height: 0; overflow: hidden;
  background: linear-gradient(180deg, rgba(var(--p1-rgb),.78), rgba(var(--p2-rgb),.78));
  border: 1.5px solid rgba(var(--g-rgb),.45); box-shadow: inset 0 0 0 6px rgba(var(--ink-rgb),.6), 0 18px 40px rgba(0,0,0,.35); }
.panel::before { content: ''; position: absolute; inset: 9px; border-radius: 16px; border: 1px solid rgba(var(--g-rgb),.18); pointer-events: none; }
.panel h2 { font: 900 36px Frank, serif; color: var(--gold-hi); text-align: center; margin-bottom: 12px; }
.panel h2::after { content: ''; display: block; height: 2px; width: 60%; margin: 8px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.col { display: flex; flex-direction: column; gap: 22px; min-height: 0; }
.col > .panel { flex: 1 1 0; }
#prayers { flex-grow: 1.25; }
#stage.big #prayers { flex-grow: unset; }
.rows { display: flex; flex-direction: column; }
.row { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 4px; border-bottom: 1px dashed rgba(185,195,211,.18); }
.row:last-child { border-bottom: 0; }
.row .n { font: 600 29px Heebo; }
.row .n em { font-style: normal; font-size: 19px; color: var(--muted); margin-inline-start: 8px; }
.row .t { font: 800 33px Heebo; color: var(--gold-hi); direction: ltr; font-variant-numeric: tabular-nums; }
.row.past { opacity: .42; }
.row.next { background: linear-gradient(90deg, rgba(var(--g-rgb),.0), rgba(var(--g-rgb),.22)); border-radius: 10px; }
.row.hl .n { color: var(--gold-hi); font-weight: 800; }
.row.next .n::before { content: '◂ '; color: var(--gold); }
.zm .row { padding: 5px 4px; }
.zm .row .n { font-size: 24px; font-weight: 400; }
.zm .row .t { font-size: 27px; }
.shiur .row .n { font-size: 22px; flex: 1 1 auto; min-width: 0; line-height: 1.2; }
.shiur .row { gap: 22px; }
.shiur .row .t { flex: none; }
.shiur .row .t { font-size: 26px; }
.daybar { text-align: center; font: 600 22px Heebo; color: var(--sky); margin: -4px 0 8px; }

/* ---------- אזור מתחלף ---------- */
.slider { position: relative; padding: 0; border-radius: 26px; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 80px; }
.slide.on { opacity: 1; }
.slide h3 { font: 900 70px/1.15 Frank, serif; color: var(--gold-hi); margin-bottom: 26px; text-shadow: 0 3px 18px rgba(0,0,0,.45); }
.slide p { font: 600 44px/1.45 Heebo; white-space: pre-line; text-shadow: 0 2px 12px rgba(0,0,0,.5); }
.slide.photo { padding: 0; background: #000; }
.slide.photo img { width: 100%; height: 100%; object-fit: contain; }
.slide.photo .cap { position: absolute; bottom: 0; inset-inline: 0; padding: 18px; font: 700 38px Heebo; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); }
.dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(246,239,220,.25); }
.dots i.on { background: var(--gold); }

/* יארצייט */
.yz-list { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 980px; }
.yz { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 22px; padding: 16px 28px; border-radius: 18px;
  background: rgba(var(--ink-rgb),.55); border: 1px solid rgba(var(--g-rgb),.35); text-align: right; }
.yz .nm { font: 900 46px Frank, serif; }
.yz .rel { font: 400 22px Heebo; color: var(--muted); }
.yz .dt { font: 800 34px Heebo; color: var(--gold-hi); }
.yz .dt small { display: block; font: 600 22px Heebo; color: var(--sky); text-align: left; }
.yz.today { border-color: var(--gold); box-shadow: 0 0 28px rgba(var(--g-rgb),.35); }
.memorial-grid { columns: 2; column-gap: 50px; width: 100%; max-width: 1100px; text-align: right; }
.memorial-grid div { break-inside: avoid; padding: 8px 0; border-bottom: 1px dashed rgba(var(--g-rgb),.22); display: flex; justify-content: space-between; font: 600 30px Heebo; }
.memorial-grid div span { color: var(--gold-hi); font-weight: 400; font-size: 26px; }

/* ---------- תחתית ---------- */
footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 50px;
  border-top: 2px solid transparent; border-image: linear-gradient(90deg, transparent, var(--gold), transparent) 1;
  background: linear-gradient(0deg, rgba(0,0,0,.35), transparent); }
footer .mem { display: flex; align-items: center; gap: 26px; justify-self: center; font: 900 44px Frank, serif; color: var(--gold-hi); }
footer .mem svg { width: 34px; height: 64px; }
footer .donor { font: 600 26px Heebo; color: var(--muted); justify-self: start; }
footer .ticker { justify-self: end; font: 600 24px Heebo; color: var(--sky); }

/* ---------- נושאי עיצוב לשקפים (themes) ---------- */
.th-gold-frame { background: radial-gradient(ellipse at 50% 35%, var(--ink3) 0%, var(--ink) 75%); }
.th-gold-frame::after { content: ''; position: absolute; inset: 22px; border: 3px double var(--gold); border-radius: 18px; pointer-events: none;
  box-shadow: inset 0 0 0 10px rgba(var(--g-rgb),.08); }
.th-parchment { background: radial-gradient(ellipse at 50% 45%, #fbf3dc 0%, #ecdcb2 70%, #d6bf86 100%); color: #3b2a10; }
.th-parchment h3 { color: #7a5514; text-shadow: none; }
.th-parchment p { color: #3b2a10; text-shadow: none; }
.th-parchment::before, .th-parchment::after { content: ''; position: absolute; top: 0; bottom: 0; width: 46px;
  background: linear-gradient(90deg, #6b4a1c, #b48a4a 40%, #6b4a1c); }
.th-parchment::before { right: 0; border-radius: 0 26px 26px 0; } .th-parchment::after { left: 0; border-radius: 26px 0 0 26px; }
.th-kotel { background-color: #c9b48a;
  background-image: linear-gradient(rgba(70,52,28,.35) 2px, transparent 2px), linear-gradient(90deg, rgba(70,52,28,.3) 2px, transparent 2px),
    linear-gradient(90deg, rgba(70,52,28,.3) 2px, transparent 2px), radial-gradient(ellipse at 50% 40%, rgba(255,246,220,.55), rgba(120,95,55,.35));
  background-size: 100% 90px, 260px 180px, 260px 180px, 100% 100%; background-position: 0 0, 0 0, 130px 90px, 0 0; color: #2c2210; }
.th-kotel h3 { color: #4a3510; text-shadow: 0 1px 0 rgba(255,255,255,.4); }
.th-kotel p { color: #2c2210; text-shadow: 0 1px 0 rgba(255,255,255,.35); background: rgba(255,248,230,.55); padding: 18px 34px; border-radius: 16px; }
.th-memorial { background: radial-gradient(ellipse at 50% 20%, #2a2f3c 0%, #0b0d12 75%); }
.th-shabbat { background: radial-gradient(ellipse at 50% 30%, var(--ink3) 0%, var(--ink) 70%), var(--ink); }
.th-simcha { background: radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--ink3), #fff 22%) 0%, var(--ink3) 70%); }
.th-simcha::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 12% 18%, rgba(var(--gh-rgb),.5) 0 3px, transparent 4px), radial-gradient(circle at 84% 26%, rgba(var(--gh-rgb),.45) 0 3px, transparent 4px),
    radial-gradient(circle at 70% 80%, rgba(var(--gh-rgb),.4) 0 2px, transparent 3px), radial-gradient(circle at 25% 75%, rgba(var(--gh-rgb),.4) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 12%, rgba(var(--gh-rgb),.4) 0 2px, transparent 3px); }
.th-mikdash { background: linear-gradient(180deg, #f5dfa2 0%, #e7b866 45%, #8a5a26 100%); color: #2a1a06; }
.th-mikdash h3 { color: #3a2306; text-shadow: 0 1px 0 rgba(255,255,255,.35); }
.th-mikdash p { color: #2a1a06; text-shadow: none; }
.orn { position: absolute; pointer-events: none; opacity: .9; }
.orn.top { top: 34px; left: 50%; transform: translateX(-50%); width: 150px; }
.orn.bl { bottom: 26px; left: 30px; width: 46px; } .orn.br { bottom: 26px; right: 30px; width: 46px; }
.orn.skyline { bottom: 0; left: 0; width: 100%; opacity: .5; }

/* ענייני דיומא / לימוד יומי / מועדים */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 34px; width: 100%; max-width: 1150px; text-align: right; }
.kv div { padding: 8px 0; border-bottom: 1px dashed rgba(var(--g-rgb),.25); font: 700 36px Heebo; }
.kv div.k { color: var(--gold-hi); font-weight: 600; font-size: 32px; white-space: nowrap; }
.pills { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; max-width: 1150px; }
.pills span { padding: 10px 26px; border-radius: 40px; border: 1px solid rgba(var(--g-rgb),.5); background: rgba(var(--ink-rgb),.55); font: 700 34px Heebo; }
.slide .note { font: 600 32px/1.4 Heebo; margin-top: 18px; color: var(--sky); }
.slide p.study { font: 500 34px/1.55 Frank, serif; width: 100%; max-width: 100%; text-align: justify; white-space: normal; }
.up-list { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 1100px; }
.up { display: grid; grid-template-columns: 1fr auto auto; gap: 26px; align-items: center; padding: 12px 26px; border-radius: 16px;
  background: rgba(var(--ink-rgb),.55); border: 1px solid rgba(var(--g-rgb),.3); text-align: right; }
.up .nm { font: 800 36px Heebo; white-space: nowrap; }
.up .dt { font: 600 26px Heebo; color: var(--muted); white-space: nowrap; }
.up .in { font: 800 28px Heebo; color: var(--gold-hi); white-space: nowrap; text-align: left; }
.up.soon { border-color: var(--gold); }
.slide.dense { padding: 96px 40px 50px; justify-content: flex-start; }
.slide.dense .orn.top { width: 64px; top: 16px; }
.slide.dense h3 { font-size: 54px; margin-bottom: 18px; }
.slide .sc { width: 100%; display: flex; flex-direction: column; align-items: center; }
.slide.dense.th-parchment { padding-left: 80px; padding-right: 80px; }

/* ---------- חבילת העיצובים: ציורים ליד השעון ושקף ברכה ---------- */
#stage::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .07; background: var(--tile); z-index: 0; }
#stage > * { position: relative; z-index: 1; }
header { position: relative; }
.hdr-art { position: absolute; top: 12px; height: 126px; width: 150px; display: flex; align-items: center; justify-content: center; pointer-events: none;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
.hdr-art svg { max-width: 100%; max-height: 100%; }
.hdr-art.r { right: calc(50% + 200px); } .hdr-art.l { left: calc(50% + 200px); }
.th-season { background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--ink3), #fff 14%) 0%, var(--ink2) 60%, var(--ink) 100%); }
.th-season::after { content: ''; position: absolute; inset: 22px; border: 3px double var(--gold); border-radius: 18px; pointer-events: none; }
.season-art { display: flex; align-items: flex-end; justify-content: center; gap: 46px; margin-bottom: 24px; }
.season-art .sa { width: 190px; height: 190px; display: flex; align-items: flex-end; justify-content: center; filter: drop-shadow(0 8px 18px rgba(0,0,0,.5)); }
.season-art .sa.mid { width: 290px; height: 250px; }
.season-art .sa:only-child { width: 300px; height: 260px; }
.season-art svg { width: 100%; height: 100%; }
.th-season h3 { font-size: 96px; margin-bottom: 10px; }
.th-season h3.sm { font-size: 62px; }
.th-season p { font: 700 40px Heebo; color: var(--sky); }
#hdrArt { position: absolute; inset: 0; pointer-events: none; }

/* ================= עיצוב "היכל" – שמיים, עמודי אבן ירושלמית, מסגרות זהב, כרזות כחולות וקלף ================= */
#stage > .deco { display: none; position: absolute; z-index: 0; pointer-events: none; }
#stage.skin-heichal > .deco { display: block; }
#stage.skin-heichal { grid-template-rows: 168px 1fr 92px;
  background: linear-gradient(180deg, #2f6fc4 0%, #6fa8e6 30%, #b8d8f4 62%, #eef4f8 84%, #f4ead2 100%); }
#stage.skin-heichal[data-sky="dusk"] { background: linear-gradient(180deg, #1c2a63 0%, #4d4f8f 28%, #c0717a 58%, #f2b06a 82%, #f7d9a0 100%); }
#stage.skin-heichal[data-sky="night"] { background: linear-gradient(180deg, #03081c 0%, #0b1a46 40%, #1d3470 78%, #34497c 100%); }
#stage.skin-heichal[data-season="tishabav"], #stage.skin-heichal[data-season="fast"] { background: linear-gradient(180deg, #4b525c 0%, #7d858f 45%, #b8bcc0 80%, #d6d2c6 100%); }
#stage.skin-heichal::after { opacity: .05; }
#clouds { inset: 0; opacity: .95; filter: blur(5px);
  background:
    radial-gradient(ellipse 210px 60px at 14% 20%, rgba(255,255,255,.95), transparent 70%), radial-gradient(ellipse 150px 50px at 20% 15%, rgba(255,255,255,.9), transparent 70%),
    radial-gradient(ellipse 260px 70px at 82% 18%, rgba(255,255,255,.92), transparent 70%), radial-gradient(ellipse 170px 55px at 75% 12%, rgba(255,255,255,.88), transparent 70%),
    radial-gradient(ellipse 300px 80px at 46% 8%, rgba(255,255,255,.85), transparent 70%),
    radial-gradient(ellipse 240px 70px at 30% 62%, rgba(255,255,255,.7), transparent 70%), radial-gradient(ellipse 280px 80px at 68% 58%, rgba(255,255,255,.7), transparent 70%); }
[data-sky="dusk"] > #clouds { opacity: .45; filter: blur(6px) sepia(.6) saturate(2) hue-rotate(-20deg); }
[data-sky="night"] > #clouds { opacity: 1; filter: none;
  background: radial-gradient(circle at 8% 12%, #fff 0 1.6px, transparent 2.5px), radial-gradient(circle at 22% 30%, #fff 0 1.2px, transparent 2px),
    radial-gradient(circle at 37% 9%, #fff 0 1.8px, transparent 2.6px), radial-gradient(circle at 55% 22%, #fff 0 1.2px, transparent 2px),
    radial-gradient(circle at 63% 6%, #fff 0 1.5px, transparent 2.4px), radial-gradient(circle at 78% 26%, #fff 0 1.8px, transparent 2.6px),
    radial-gradient(circle at 91% 10%, #fff 0 1.3px, transparent 2.2px), radial-gradient(circle at 47% 40%, #fff 0 1px, transparent 1.8px),
    radial-gradient(circle at 15% 52%, #fff 0 1.2px, transparent 2px), radial-gradient(circle at 86% 48%, #fff 0 1.2px, transparent 2px); }
#skyline { left: 0; right: 0; bottom: 0; height: 330px; }
[data-sky="night"] > #skyline { filter: brightness(.45) saturate(.7); }
[data-sky="dusk"] > #skyline { filter: brightness(.85) sepia(.25); }
.deco.pillar { top: 0; bottom: 0; width: 92px; filter: drop-shadow(0 0 14px rgba(0,0,0,.35)); }
.deco.pillar.r { right: 0; } .deco.pillar.l { left: 0; }
[data-sky="night"] > .deco.pillar { filter: brightness(.7) drop-shadow(0 0 14px rgba(0,0,0,.5)); }
#bsd { top: 6px; right: 112px; font: 700 22px Frank, serif; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.6); z-index: 3 !important; }

/* כרזה כחולה עם מסגרת זהב */
.skin-heichal header, .skin-heichal footer {
  margin: 12px 104px 0; border: 0; border-radius: 34px;
  background: radial-gradient(ellipse 70% 120% at 50% 0%, var(--ink3), var(--ink2) 60%, var(--ink));
  box-shadow: 0 0 0 3px var(--gold-lo), 0 0 0 6px var(--gold-hi), 0 0 0 9px var(--gold), 0 0 0 11px var(--gold-lo), 0 14px 30px rgba(0,0,0,.4); }
.skin-heichal footer { margin: 0 104px 14px; border-radius: 26px; }
.skin-heichal header::before, .skin-heichal footer::before { content: ''; position: absolute; inset: 7px; border-radius: 28px; border: 1.5px solid rgba(var(--g-rgb),.55); pointer-events: none; }
.skin-heichal footer::before { border-radius: 20px; }
.skin-heichal .shul-name #logo { width: 140px; height: 140px; margin: -2px 0 -2px; flex: none; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.skin-heichal .shul-name #logo svg { width: 140px; height: 140px; }
.skin-heichal .shul-name .t2 { color: #fff; text-shadow: 0 2px 0 var(--gold-lo), 0 4px 12px rgba(0,0,0,.5); }
.skin-heichal .clock .time { color: #fff; text-shadow: 0 2px 0 var(--gold-lo), 0 0 26px rgba(var(--gh-rgb),.35); }

/* לוחות קלף עם מסגרת זהב */
.skin-heichal main { grid-template-columns: 450px 1fr 410px; padding: 26px 112px 22px; gap: 28px; }
.skin-heichal .panel { color: #16244a; border: 0;
  background: radial-gradient(ellipse at 50% 30%, #fffdf6 0%, #fbf3df 55%, #efe0bb 100%);
  box-shadow: 0 0 0 2px var(--gold-lo), 0 0 0 5px var(--gold-hi), 0 0 0 7px var(--gold), 0 0 0 9px var(--gold-lo), 0 16px 34px rgba(0,0,0,.38); }
.skin-heichal .panel::before { inset: 7px; border: 1.5px solid rgba(var(--g-rgb),.7); border-radius: 16px; }
.skin-heichal .panel:not(.slider)::after { content: ''; position: absolute; inset: 9px; pointer-events: none; opacity: .9;
  background: var(--fil) bottom right / 54px no-repeat; }
.skin-heichal .panel h2 { margin: -6px -8px 14px; padding: 6px 10px 8px; border-radius: 40px; font-size: 34px; color: var(--gold-hi);
  background: linear-gradient(180deg, var(--ink3), var(--ink)); text-shadow: 0 2px 4px rgba(0,0,0,.5);
  box-shadow: 0 0 0 2px var(--gold-hi), 0 0 0 4px var(--gold-lo), 0 6px 12px rgba(0,0,0,.25); }
.skin-heichal .panel h2::after { display: none; }
.skin-heichal .row { border-bottom: 1px dashed rgba(var(--g-rgb),.55); }
.skin-heichal .row .n { color: #16244a; }
.skin-heichal .row .n em, .skin-heichal .row .n small { color: #6d5a34; }
.skin-heichal .row .t { color: #0d1f4d; }
.skin-heichal .row.hl .n { color: #7a4f08; }
.skin-heichal .row.next { background: linear-gradient(90deg, rgba(var(--g-rgb),0), rgba(var(--g-rgb),.45)); }
.skin-heichal .row.next .n::before { color: #8a5a08; }
.skin-heichal .row.past { opacity: .38; }
.skin-heichal .daybar { color: #7a5a1a; }
.skin-heichal .zm .row .n { font-weight: 600; }

/* האזור המתחלף – שער מקושת */
.skin-heichal .slider { border-radius: 50% 50% 24px 24px / 120px 120px 24px 24px; background: var(--ink2); color: var(--cream); }
.skin-heichal .slider .slide { padding-top: 90px; }
.skin-heichal .slider .slide.dense { padding-top: 110px; }
.skin-heichal .slider::before { border-radius: 50% 50% 16px 16px / 112px 112px 16px 16px; z-index: 4; }
.skin-heichal .th-gold-frame::after, .skin-heichal .th-season::after { border-radius: 50% 50% 14px 14px / 100px 100px 14px 14px; }
.skin-heichal .slide .orn.top { top: 54px; }

/* תחתית */
.skin-heichal footer .mem { color: var(--gold-hi); }
.skin-heichal footer .donor { color: #e3e8f2; }
.skin-heichal footer .ticker { color: var(--sky); }
/* ציורי החג בפינות התחתונות, על בסיס העמודים */
#stage > #cornerArt { display: none; position: absolute; inset: 0; z-index: 3; pointer-events: none; }
#stage.skin-heichal > #cornerArt { display: block; }
#cornerArt .ca { position: absolute; bottom: 4px; width: 160px; height: 170px; display: flex; align-items: flex-end; justify-content: center;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.55)); }
#cornerArt .ca svg { max-width: 100%; max-height: 100%; }
#cornerArt .ca.r { right: 2px; } #cornerArt .ca.l { left: 2px; }
.skin-heichal footer { padding: 0 90px; }
.skin-heichal .panel:not(.slider) { padding-bottom: 30px; }
.skin-heichal .panel:not(.slider)::after { inset: 4px; background-size: 40px; opacity: .75; }

/* ================= "עיצוב לבחירה" – רקע, מסגרת, גופנים וצבעים נבחרים בנפרד (skins.js) ================= */
#stage.skin-lab { background: #05070f; }
#stage.skin-lab::after { display: none; }
#stage > #skinBg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#stage > #skinDeco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
#stage.skin-lab > .deco { display: none; }
#stage.skin-lab header, #stage.skin-lab footer { border: 0; border-image: none; background: none; }
#stage.skin-lab .shul-name #logo { width: 118px; height: 118px; flex: none; filter: drop-shadow(0 4px 10px rgba(0,0,0,.45)); }
#stage.skin-lab .shul-name #logo svg { width: 118px; height: 118px; }
#stage.skin-lab .clock .time { color: var(--cream); text-shadow: none; }
#stage.skin-lab.bg-busy header, #stage.skin-lab.bg-busy footer { text-shadow: 0 2px 4px rgba(0,0,0,.9), 0 0 18px rgba(0,0,0,.8); }
#stage.skin-lab.bg-busy .clock .time { text-shadow: 0 3px 0 rgba(0,0,0,.6), 0 0 24px rgba(0,0,0,.8); }
#stage.skin-lab main { gap: 30px; padding: 26px 40px 20px; }
#stage.skin-lab .col { gap: 26px; }
#stage.skin-lab .panel { background: none; border: 0; box-shadow: none; border-radius: 0; overflow: visible; color: var(--pin);
  padding: var(--pt, 40px) var(--px, 40px) var(--pb, 30px); }
#stage.skin-lab .panel::before, #stage.skin-lab .panel::after { display: none; }
#stage.skin-lab .panel > svg.frame { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: visible; filter: drop-shadow(0 14px 26px rgba(0,0,0,.45)); }
#stage.skin-lab .panel:not(.slider) > *:not(svg) { position: relative; z-index: 2; }
#stage.skin-lab .panel h2 { color: var(--gold-hi); }
#stage.skin-lab .row { border-bottom: 1px dashed rgba(var(--g-rgb),.35); }
#stage.skin-lab .row .n { color: var(--pin); }
#stage.skin-lab .row .n em { color: var(--muted); }
#stage.skin-lab .row .t { color: var(--gold-hi); }
#stage.skin-lab .row.next { background: linear-gradient(90deg, rgba(var(--g-rgb),0), rgba(var(--g-rgb),.28)); }
#stage.skin-lab .daybar { color: var(--muted); }
/* השקופיות בתוך המסגרת */
#stage.skin-lab .slide { inset: var(--pt, 60px) var(--px, 40px) var(--pb, 30px); z-index: 2; padding: 20px 30px; background: none !important; color: var(--pin); }
#stage.skin-lab .slide.dense { padding: 10px 20px 26px; }
#stage.skin-lab .slide.photo { padding: 0; background: #000 !important; }
#stage.skin-lab .slide::before, #stage.skin-lab .slide::after, #stage.skin-lab .slide .orn { display: none; }
#stage.skin-lab .slide h3 { color: var(--gold-hi); }
#stage.skin-lab .slide p, #stage.skin-lab .slide .kv div { color: var(--pin); background: none; }
#stage.skin-lab .slide .kv div.k, #stage.skin-lab .slide .note { color: var(--gold-hi); }
#stage.skin-lab .slide.th-season p { color: var(--muted); }
#stage.skin-lab .panel.fr-light .slide h3, #stage.skin-lab .panel.fr-light .slide p { text-shadow: none; }
#stage.skin-lab .slider .dots { bottom: calc(var(--pb, 30px) - 18px); z-index: 5; }
#stage.skin-lab .yz { background: rgba(var(--ink-rgb),.35); }
/* גופנים לפי הבחירה */
#stage.skin-lab .shul-name .t1, #stage.skin-lab .shul-name .t2, #stage.skin-lab .dates .heb, #stage.skin-lab .clock .time,
#stage.skin-lab .panel h2, #stage.skin-lab .slide h3, #stage.skin-lab footer .mem, #stage.skin-lab .yz .nm { font-family: var(--tf); }
#stage.skin-lab .shul-name .t3, #stage.skin-lab .dates .greg, #stage.skin-lab .dates .special, #stage.skin-lab .row .n, #stage.skin-lab .row .t,
#stage.skin-lab .slide p:not(.study), #stage.skin-lab .kv div, #stage.skin-lab .pills span, #stage.skin-lab .note, #stage.skin-lab .up, #stage.skin-lab .up *,
#stage.skin-lab .yz .rel, #stage.skin-lab .yz .dt, #stage.skin-lab .daybar, #stage.skin-lab footer .donor, #stage.skin-lab footer .ticker,
#stage.skin-lab .memorial-grid div { font-family: var(--bf); }
#stage.skin-lab .panel[data-frame=scroll]:not(.slider) > h2 { color: #fff4dc; text-shadow: 0 2px 3px rgba(0,0,0,.45); }
