[hidden] { display: none !important; }
/* היכל אירית — לוח בית הכנסת · v3 light (Chabad Israel: white, bordeaux #660822, orange #F78B29) */
:root {
  --bd: #660822; --bd2: #8A1C3A; --bd-soft: #F7ECEF;
  --or: #F78B29; --or2: #FBB57E; --or-ink: #C25E0C; --or-soft: #FFF3E7; --or-line: #F6D3B3;
  --paper: #FBF8F5; --card: #FFFFFF; --ink: #24191C; --ink2: #4A3D41; --muted: #7C6E72; --dim: #A3979A;
  --line: #ECE3DD; --line2: #F3ECE7;
  --shadow: 0 1px 2px rgba(102,8,34,.05), 0 10px 30px rgba(102,8,34,.07);
  /* legacy names still used by now.css / board.js */
  --gold: var(--or); --gold2: var(--or2); --gold3: var(--or-ink); --cream: var(--ink); --n1: var(--bd);
  --serif: "Frank Ruhl Libre", "David Libre", "Times New Roman", serif;
  --sans: "Heebo", "Assistant", "Arial Hebrew", Arial, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; height: 100%; background: var(--paper); overflow: hidden; }
body { font-family: var(--sans); color: var(--ink); -webkit-font-smoothing: antialiased; cursor: none; }
.num, .t { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- stage (scaled design canvas) ---------- */
.stage {
  position: absolute; top: 0; left: 0; transform-origin: 0 0;
  display: grid; overflow: hidden;
  background: var(--paper);
}
.stage.landscape {
  width: 1920px; height: 1080px; padding: 38px 46px 26px;
  grid-template-columns: 500px 1fr 430px;
  grid-template-rows: 158px 22px 1fr 146px;
  grid-template-areas: "top top top" "rule rule rule" "prayers slides zmanim" "bottom bottom bottom";
  column-gap: 30px; row-gap: 18px;
}
.stage.portrait {
  width: 1080px; height: 1920px; padding: 52px 44px 40px;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 294px 30px 690px 1fr 260px;
  grid-template-areas: "top top" "rule rule" "prayers zmanim" "slides slides" "bottom bottom";
  column-gap: 26px; row-gap: 22px;
}

/* ---------- background ---------- */
.bg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(1300px 420px at 50% -6%, rgba(247,139,41,.07), transparent 70%),
    radial-gradient(900px 600px at 100% 100%, rgba(102,8,34,.035), transparent 70%),
    linear-gradient(180deg, #FFFFFF 0%, var(--paper) 40%, #F8F3EF 100%);
  transition: filter 2s ease; }
/* the thin bordeaux band with an orange hairline, like the top of the Chabad Israel logo card */
.bg::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 10px; background: var(--bd); }
.bg::after { content: ""; position: absolute; top: 10px; left: 0; right: 0; height: 3px; background: var(--or); }
.bg-glow { display: none; }
.bg-pattern { display: none; }
@keyframes breathe { 0%,100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
.stage > *:not(.bg):not(.bh):not(.status) { position: relative; z-index: 1; }

/* ---------- header ---------- */
.top { grid-area: top; display: grid; align-items: center; }
.landscape .top { grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 20px; }
.landscape .clockbox { min-width: 330px; }
.brand { display: flex; align-items: center; gap: 24px; min-width: 0; }
.flag { height: 100px; width: auto; }
.brand-text { min-width: 0; padding-right: 24px; border-right: 2px solid var(--line); }
h1 { max-width: 760px; overflow: hidden; font-family: var(--serif); font-weight: 800; font-size: 54px; line-height: 1.04; color: var(--bd); letter-spacing: .2px; white-space: nowrap; }
.sub { margin-top: 8px; font-size: 27px; font-weight: 500; color: var(--muted); letter-spacing: .3px; white-space: nowrap; }
.day { text-align: center; padding: 0 24px; }
.bh { position: absolute; top: 22px; right: 22px; font-family: var(--serif); font-size: 21px; color: var(--bd); opacity: .55; z-index: 2; }
.hdate { overflow: hidden; font-family: var(--serif); font-weight: 700; font-size: 58px; line-height: 1.05; color: var(--ink); white-space: nowrap; }
.dayline { overflow: hidden; margin-top: 6px; font-size: 29px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.chips { margin-top: 10px; display: flex; gap: 10px; justify-content: center; flex-wrap: nowrap; min-height: 0; }
.chip { font-size: 20px; font-weight: 600; padding: 4px 16px; border-radius: 99px; color: #fff; background: var(--bd); white-space: nowrap; }
.chip.soft { color: var(--or-ink); background: var(--or-soft); border: 1px solid var(--or-line); }
.clockbox { justify-self: end; text-align: left; direction: ltr; }
.clock { font-weight: 300; font-size: 112px; line-height: .92; letter-spacing: -2px; color: var(--bd); font-variant-numeric: tabular-nums; }
.clock .secs { font-size: 38px; font-weight: 400; color: var(--or); margin-left: 10px; letter-spacing: 0; vertical-align: top; position: relative; top: 14px; }
.gdate { direction: rtl; text-align: left; margin-top: 10px; font-size: 25px; color: var(--muted); white-space: nowrap; }

.portrait .top { grid-template-columns: 1fr 1fr; grid-template-rows: 130px 1fr; row-gap: 14px; }
.portrait .brand { grid-column: 1 / -1; justify-content: center; }
.portrait .day { text-align: right; padding: 0; align-self: center; }
.portrait .chips { justify-content: flex-start; }
.portrait .clockbox { align-self: center; }
.portrait .hdate { font-size: 56px; }
.portrait .clock { font-size: 120px; }

/* ornament rule */
.rule { grid-area: rule; display: flex; align-items: center; gap: 18px; }
.rule > span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 12%, var(--line) 88%, transparent); }
.rule i { font-style: normal; color: var(--or); font-size: 18px; }

/* ---------- panels ---------- */
.panel { border-radius: 24px; min-height: 0; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.prayers { grid-area: prayers; display: flex; flex-direction: column; }
.zmanim { grid-area: zmanim; display: flex; flex-direction: column; }
.slides { grid-area: slides; position: relative; background: var(--card); }
.ptitle { position: relative; font-family: var(--serif); font-weight: 700; font-size: 38px; color: var(--bd); text-align: center;
  padding: 18px 20px 16px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.ptitle::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 56px; height: 3px; margin-left: -28px; border-radius: 3px; background: var(--or); }
.ptitle small { font-family: var(--sans); font-size: 22px; font-weight: 400; color: var(--muted); margin-right: 8px; }

/* prayer rows */
.plist { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 12px 18px 14px; min-height: 0; }
.plist.dense { gap: 2px; justify-content: space-evenly; }
.pgroup { font-size: 21px; font-weight: 600; color: var(--bd2); letter-spacing: .5px; display: flex; align-items: center; gap: 14px; margin: 6px 6px 0; }
.pgroup::before, .pgroup::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.prow { line-height: 1.15; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; border-radius: 16px; transition: background .8s, opacity .8s; position: relative; }
.prow .pn { font-size: 40px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .pt { font-size: 50px; font-weight: 700; color: var(--bd); font-variant-numeric: tabular-nums; direction: ltr; }
.prow.star .pn { color: var(--bd); }
.prow.past { opacity: .38; }
.prow.next, .prow.live { background: var(--or-soft); }
.prow.next::before, .prow.live::before, .zrow.next::before { content: ""; position: absolute; right: 0; top: 18%; bottom: 18%; width: 5px; border-radius: 5px; background: var(--or); }
.prow .in { position: absolute; top: -2px; left: 18px; font-size: 18px; font-weight: 700; color: #fff; background: var(--or); padding: 2px 12px; border-radius: 99px; transform: translateY(-40%); white-space: nowrap; box-shadow: 0 3px 10px rgba(247,139,41,.3); }
.prow.live .pt { color: var(--bd); }
.prow .in.live { display: inline-flex; align-items: center; gap: 8px; }
.prow .in.live .dot { color: #fff; width: 9px; height: 9px; }
.prow.live ~ .prow.next { background: #FAF6F2; }
.prow.live ~ .prow.next::before { background: var(--or-line); }
.prow.live ~ .prow.next .in { color: var(--or-ink); background: #fff; border: 1px solid var(--or-line); box-shadow: none; }
.dense .prow { padding: 6px 20px; }
.dense .prow .pn { font-size: 34px; }
.dense .prow .pt { font-size: 42px; }
.empty { text-align: center; color: var(--muted); font-size: 28px; padding: 30px; }

/* zmanim rows */
.zlist { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; padding: 6px 16px 10px; min-height: 0; }
.zrow { position: relative; display: flex; align-items: baseline; justify-content: space-between; padding: 3px 16px; line-height: 1.22; border-radius: 12px; transition: background .8s, opacity .8s; }
.zrow .zn { font-size: 29px; color: var(--ink2); white-space: nowrap; }
.zrow .zt { font-size: 34px; font-weight: 600; color: var(--bd); font-variant-numeric: tabular-nums; direction: ltr; }
.zrow.past { opacity: .38; }
.zrow.next { background: var(--or-soft); }

/* ---------- slides ---------- */
.slidewrap { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.slide { position: absolute; top: 0; right: 0; bottom: 0; left: 0; opacity: 0; transform: scale(1.02); transition: opacity 1.4s ease, transform 2.2s cubic-bezier(.2,.7,.2,1); }
.slide.on { opacity: 1; transform: none; }
.slide.text { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 70px 80px 90px;
  background: radial-gradient(ellipse at 50% 0%, rgba(247,139,41,.07), transparent 60%), var(--card); }
.slide.text::before { content: ""; position: absolute; top: 22px; right: 22px; bottom: 22px; left: 22px; border: 1px solid var(--line); border-radius: 16px; pointer-events: none; }
.slide.text::after { display: none; }
.s-in { width: 100%; }
.orn { color: var(--or); font-size: 24px; letter-spacing: 16px; margin-bottom: 22px; }
.s-title { font-family: var(--serif); font-weight: 900; font-size: 96px; line-height: 1.08; color: var(--bd); }
.s-text { margin-top: 26px; font-size: 54px; font-weight: 400; line-height: 1.3; color: var(--ink2); white-space: pre-line; }
.s-note { margin-top: 34px; display: inline-block; font-size: 32px; font-weight: 600; color: var(--bd); background: var(--bd-soft); border: 1px solid #EBD3DA; padding: 8px 30px; border-radius: 99px; }
.slide.photo { background: #F4EEEA; }
.ph-bg { position: absolute; top: -60px; right: -60px; bottom: -60px; left: -60px; background-size: cover; background-position: center; filter: blur(50px) saturate(.85) brightness(1.1); opacity: .4; }
.ph-img { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: contain; padding: 26px; filter: drop-shadow(0 12px 26px rgba(36,25,28,.16)); }
.slide.photo.hascap .ph-img { padding-bottom: 134px; }
.portrait .slide.photo.hascap .ph-img { padding-bottom: 138px; }
.slide.photo.on .ph-img { animation: kb var(--dur, 12s) ease-out both; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.045); } }
.ph-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 40px 44px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; font-family: var(--serif); font-weight: 700; font-size: 42px; color: var(--bd);
  background: rgba(255,255,255,.94); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(36,25,28,.06); }
.ph-cap::before { content: ""; display: block; width: 46px; height: 3px; margin: 0 auto 12px; border-radius: 3px; background: var(--or); }
.slide.list { padding: 44px 60px 70px; display: flex; flex-direction: column; background: radial-gradient(ellipse at 50% 0%, rgba(247,139,41,.06), transparent 60%), var(--card); }
.l-title { font-family: var(--serif); font-weight: 800; font-size: 60px; color: var(--bd); text-align: center; margin-bottom: 8px; }
.l-sub { text-align: center; color: var(--muted); font-size: 26px; margin-bottom: 24px; }
.l-rows { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.l-row { display: flex; align-items: baseline; gap: 22px; padding: 14px 18px; border-bottom: 1px solid var(--line2); }
.l-row:last-child { border-bottom: 0; }
.l-k { flex: 0 0 auto; min-width: 210px; font-size: 32px; font-weight: 700; color: var(--bd); }
.l-v { font-size: 38px; color: var(--ink); line-height: 1.25; }
.l-v small { color: var(--muted); font-size: 26px; margin-right: 10px; white-space: nowrap; }
.progress { position: absolute; left: 48px; right: 48px; bottom: 12px; height: 3px; border-radius: 3px; overflow: hidden; background: var(--line2); z-index: 3; }
.progress span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: right center; background: var(--or); }
.dots { position: absolute; bottom: 26px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; z-index: 3; }
.dots i { width: 9px; height: 9px; border-radius: 9px; background: #E2D6CF; transition: all .6s; }
.dots i.on { width: 30px; background: var(--or); }

/* ---------- footer ---------- */
.bottom { grid-area: bottom; display: grid; gap: 30px; min-height: 0; }
.landscape .bottom { grid-template-columns: 960px 1fr; }
.portrait .bottom { grid-template-rows: 1fr 1fr; gap: 18px; }
.fbox { border-radius: 22px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); display: flex; align-items: center; overflow: hidden; min-width: 0; position: relative; }
.shabbatbox { padding: 0 30px; gap: 26px; }
.sb-head { flex: 0 0 auto; display: flex; flex-direction: column; justify-content: center; padding-left: 26px; border-left: 1px solid var(--line); height: 70%; }
.sb-k { font-size: 22px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.sb-p { font-family: var(--serif); font-size: 42px; font-weight: 700; color: var(--bd); white-space: nowrap; }
.sb-items { flex: 1; display: flex; justify-content: space-around; gap: 20px; min-width: 0; }
.sb-item { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.sb-item svg { width: 44px; height: 44px; flex: 0 0 auto; }
.sb-l { font-size: 25px; color: var(--muted); line-height: 1.1; }
.sb-t { font-size: 50px; font-weight: 700; color: var(--bd); line-height: 1.05; font-variant-numeric: tabular-nums; direction: ltr; text-align: right; }
.community { padding: 0 30px; }
.cm-item { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; gap: 22px; padding: 0 30px; opacity: 0; transform: translateY(14px); transition: opacity 1s ease, transform 1s ease; }
.cm-item.on { opacity: 1; transform: none; }
.cm-icon { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--or-soft); border: 1px solid var(--or-line); }
.cm-icon svg { width: 40px; height: 40px; }
.cm-body { min-width: 0; flex: 1; }
.cm-k { font-size: 22px; color: var(--bd2); font-weight: 600; white-space: nowrap; }
.cm-v small { font-size: 26px; color: var(--muted); }
.cm-v { font-size: 38px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.cm-v.marq { text-overflow: clip; }
.cm-v.marq > span { display: inline-block; animation: marq var(--md, 20s) linear infinite; animation-delay: 1.5s; }
.cm-v.marq > span > b { font-weight: inherit; padding-left: 90px; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---------- modes (calm: a warmer card, never a darker screen) ---------- */
.mode-shabbat .bg, .mode-erev .bg { background:
    radial-gradient(1300px 460px at 50% -6%, rgba(247,139,41,.10), transparent 70%),
    linear-gradient(180deg, #FFFFFF 0%, #FCF7F2 40%, #F9F1EA 100%); }
.mode-shabbat .prayers, .mode-erev .prayers { border-color: var(--or-line); box-shadow: 0 0 0 4px rgba(247,139,41,.07), var(--shadow); }
.mode-shabbat .shabbatbox, .mode-erev .shabbatbox { background: linear-gradient(90deg, #FFFFFF, var(--or-soft)); border-color: var(--or-line); }

/* status */
.status { position: absolute; left: 50px; bottom: 6px; font-size: 16px; color: var(--dim); z-index: 5; }
.status.warn { color: var(--or-ink); }

/* portrait tweaks */
.portrait .prow .pn { font-size: 36px; }
.portrait .prow .pt { font-size: 46px; }
.portrait .prow { padding: 10px 14px; }
.portrait .zrow .zn { font-size: 28px; }
.portrait .zrow .zt { font-size: 32px; }
.portrait .s-title { font-size: 88px; }
.portrait .shabbatbox { padding: 0 26px; }
.portrait .sb-p { font-size: 38px; }
.portrait .sb-t { font-size: 46px; }
.portrait .brand-text { border-right: 0; padding-right: 0; }

/* QR slide */
.slide.qr .qr-in { display: flex; align-items: center; justify-content: center; gap: 46px; text-align: right; }
.qr-box { flex: 0 0 auto; background: #fff; padding: 18px; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 0 0 5px var(--or-soft), 0 14px 34px rgba(102,8,34,.10); }
.qr-box img { display: block; width: 270px; height: 270px; }
.slide.qr .s-note { white-space: nowrap; }
.qr-txt { max-width: 560px; }
.qr-txt .orn { text-align: right; }
.slide.qr .s-title { font-size: 76px; }
.slide.qr .s-text { font-size: 40px; margin-top: 18px; }
.slide.qr .s-note { margin-top: 26px; font-size: 28px; }
.portrait .slide.qr .qr-in { gap: 40px; }
.portrait .qr-box img { width: 260px; height: 260px; }
.portrait .slide.qr .s-title { font-size: 64px; }
.portrait .slide.qr .s-text { font-size: 34px; }
