/* Layout: right-to-left, one reading column (max 760px) for text; wider 1120px frame for the homepage.
   Espresso leather and antique gold, like a bound sefer; warm ivory pages. */
:root {
  --paper: #f6efe3;
  --surface: #fffaf2;
  --ink: #2a1a10;
  --ink-2: #5b4432;
  --ink-3: #8c735d;
  --line: #e6d8c3;
  --navy: #6b4527;
  --navy-2: #80563a;
  --gold: #9a6b22;
  --gold-bright: #d4ab5e;
  --gold-hover: #e2bf78;
  --on-gold: #2b170c;
  --gold-soft: #f1e1c0;
  --mark: #f3d995;
  --mark-word: #e0b24c;
  --on-navy: #f5ead8;
  --shadow: 0 1px 2px rgba(43, 23, 12, .06), 0 10px 28px rgba(43, 23, 12, .10);

  --f-display: "Frank Ruhl Libre", "David Libre", "Times New Roman", serif;
  --f-text: "Frank Ruhl Libre", "David Libre", "Times New Roman", serif;
  --f-rashi: "Noto Rashi Hebrew", "Frank Ruhl Libre", serif;
  --f-ui: "Noto Sans Hebrew", "Arial Hebrew", Arial, sans-serif;

  --wrap: 1120px;
  --read: 760px;
  --r: 10px;
}
/* always light – the site does not follow the device's dark mode */
:root { color-scheme: light; }
:root[data-theme="dark"] {
  --paper: #1a0f09; --surface: #24160d; --ink: #f3e7d4; --ink-2: #cdb89c; --ink-3: #9c8468;
  --line: #3a2617; --navy: #120a05; --navy-2: #2e1b0f; --gold: #d4ab5e; --gold-soft: #3d2a14;
  --mark: #5a3f17; --mark-word: #9a6e24; --on-navy: #f5ead8;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 10px 28px rgba(0,0,0,.3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
.hp { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); opacity: 0; }
.fb-form { position: relative; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.6 var(--f-ui);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; margin: 0; line-height: 1.2; }
.num { font-variant-numeric: tabular-nums; }

.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font: 600 12px/1 var(--f-ui); letter-spacing: .08em; color: var(--gold);
  display: inline-flex; gap: 8px; align-items: center;
}

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--navy); }
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--navy); color: var(--on-navy);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 9px; flex: none;
  background: linear-gradient(160deg, #6b3f1f, #2b170c);
  border: 1px solid rgba(212,171,94,.55);
  display: grid; place-items: center;
  font: 700 19px/1 var(--f-display); color: var(--gold-bright);
}
.brand-name { font: 700 19px/1.1 var(--f-display); }
.brand-name small { display: block; font: 400 12px/1.3 var(--f-ui); color: rgba(243,241,234,.65); letter-spacing: .02em; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  text-decoration: none; font-size: 15px; padding: 8px 12px; border-radius: 8px;
  color: rgba(243,241,234,.82);
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.nav .btn-gold { color: var(--on-gold); }
.btn-gold {
  background: var(--gold-bright); color: var(--on-gold); text-decoration: none; font-weight: 600;
  padding: 9px 16px; border-radius: 8px; border: 0; display: inline-flex; gap: 8px; align-items: center;
}
.btn-gold:hover { background: var(--gold-hover); }
.btn-line {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 9px 16px; border-radius: 8px; text-decoration: none; font-weight: 600;
  display: inline-flex; gap: 8px; align-items: center;
}
.btn-line:hover { border-color: var(--gold); }
.lang { display: inline-flex; border: 1px solid rgba(212,171,94,.35); border-radius: 8px; overflow: hidden; margin-inline-start: auto; flex: none; }
.lang button { background: none; border: 0; color: rgba(245,234,216,.7); font-size: 13px; font-weight: 600; padding: 6px 10px; }
.lang button[aria-pressed="true"] { background: rgba(212,171,94,.2); color: var(--gold-bright); }
.lang + .menu-btn + .nav { margin-inline-start: 8px; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 9px; border: 1px solid rgba(212,171,94,.35); background: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; flex: none; }
.menu-btn span { width: 18px; height: 2px; background: var(--gold-bright); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 900px) {
  .site-head .wrap { gap: 10px; }
  .menu-btn { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 100%; inset-inline: 0; margin: 0 !important;
    background: var(--navy); border-bottom: 1px solid rgba(212,171,94,.3); box-shadow: 0 14px 30px rgba(0,0,0,.3);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px));
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 14px; font-size: 17px; border-radius: 9px; }
  .nav .btn-gold { justify-content: center; margin-top: 6px; }
  .site-head { position: sticky; }
}
@media (max-width: 520px) {
  .brand-name small { display: none; }
  .brand-name { font-size: 16px; }
  .brand-logo { width: 42px !important; height: 33px !important; }
  .lang button { padding: 6px 7px; font-size: 12px; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--navy), #3a2010); color: var(--on-navy); position: relative; overflow: hidden; border-bottom: 1px solid rgba(212,171,94,.35); }
.site-head { border-bottom-color: rgba(212,171,94,.25) !important; }
.sponsor { background: linear-gradient(135deg, #2b170c, #4a2914) !important; border: 1px solid rgba(212,171,94,.35); }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(640px 320px at 85% 0%, rgba(212,171,94,.18), transparent 70%),
    radial-gradient(560px 300px at 0% 100%, rgba(120,62,28,.45), transparent 70%);
}
.hero .wrap { position: relative; z-index: 1; padding-block: 56px 64px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--gold-bright); }
.hero p.lede { font-size: 18px; color: rgba(243,241,234,.78); max-width: 34em; margin: 18px 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-ghost {
  color: var(--on-navy); border: 1px solid rgba(243,241,234,.25); padding: 9px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.hero .btn-ghost:hover { border-color: var(--gold-bright); }

.today {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px; padding: 24px; backdrop-filter: blur(6px);
}
.today .label { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: rgba(243,241,234,.6); }
.pill-live { background: var(--gold-bright); color: var(--on-gold); font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 99px; }
.today h2 { font-size: 30px; margin: 14px 0 4px; }
.today .meta { color: rgba(243,241,234,.7); font-size: 14px; }
.today .play-row { display: flex; align-items: center; gap: 16px; margin-top: 22px; text-decoration: none; }
.play-circle {
  width: 56px; height: 56px; border-radius: 50%; background: var(--gold-bright); color: var(--on-gold);
  display: grid; place-items: center; flex: none; transition: transform .15s;
}
.play-row:hover .play-circle { transform: scale(1.06); }
.play-row strong { display: block; font-size: 17px; }
.play-row span { font-size: 13px; color: rgba(243,241,234,.6); }
.today .poster { border-radius: 10px; overflow: hidden; margin-top: 20px; aspect-ratio: 16/9; background: #0a0f1d; max-width: 100%; }
.today .poster img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; padding-block: 40px 44px; } }

/* ---------- Sections ---------- */
.band { padding-block: 64px; }
.band + .band { border-top: 1px solid var(--line); }
.band-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.band-head h2 { font-size: clamp(26px, 3.2vw, 34px); margin-top: 8px; }
.band-head p { margin: 6px 0 0; color: var(--ink-2); }

/* Week strip */
.week { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 12px; }
.week .dd { flex-direction: column; gap: 2px; }
.day {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px; text-decoration: none; display: flex; flex-direction: column; gap: 4px;
  transition: border-color .15s, transform .15s;
}
.day:hover { border-color: var(--gold); transform: translateY(-2px); }
.day .dl { font: 700 20px/1.2 var(--f-display); }
.day .dh { font-size: 14px; color: var(--ink-2); }
.day .dd { font-size: 13px; color: var(--ink-3); margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; gap: 8px; }
.day.is-today { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.day.is-today .dh, .day.is-today .dd { color: rgba(243,241,234,.7); }
.day .tag { font: 700 11px/1 var(--f-ui); font-style: normal; background: var(--gold-bright); color: var(--on-gold); padding: 3px 7px; border-radius: 99px; margin-inline-start: 6px; vertical-align: middle; }

/* Archive */
.year-tabs { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--line); padding: 4px; border-radius: 10px; }
.year-tabs button { border: 0; background: none; padding: 7px 16px; border-radius: 7px; font-weight: 600; color: var(--ink-2); }
.year-tabs button[aria-selected="true"] { background: var(--navy); color: var(--on-navy); }
.parshiyos { display: grid; gap: 12px; }
.parsha { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.parsha summary {
  list-style: none; cursor: pointer; padding: 18px 20px; display: flex; align-items: center; gap: 16px;
}
.parsha summary::-webkit-details-marker { display: none; }
.parsha summary h3 { font-size: 22px; }
.parsha summary .count { color: var(--ink-3); font-size: 14px; margin-inline-start: auto; }
.parsha summary .chev { transition: transform .2s; color: var(--ink-3); }
.parsha[open] summary .chev { transform: rotate(180deg); }
.parsha ul { list-style: none; margin: 0; padding: 0 8px 8px; }
.parsha li a {
  display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center;
  padding: 11px 12px; border-radius: 8px; text-decoration: none; border-top: 1px solid var(--line);
}
.parsha li:first-child a { border-top-color: transparent; }
.parsha li a:hover { background: var(--paper); }
.parsha li .dl { font-weight: 700; }
.parsha li .dh { color: var(--ink-2); font-size: 14px; }
.parsha li .dur { color: var(--ink-3); font-size: 13px; }

/* Books */
.books { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.book { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; grid-template-columns: 150px 1fr; gap: 20px; }
.book-cover { aspect-ratio: 1/1; border-radius: 10px; background: #fff; overflow: hidden; box-shadow: var(--shadow); align-self: start; }
.book-cover img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.25); }
.book h3 { font-size: 21px; }
.book .opts { display: grid; gap: 8px; margin-top: 14px; }
.book .opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.book .opt:hover { border-color: var(--gold); }
.book .opt b { font-variant-numeric: tabular-nums; }
.book .opt span.buy { font-size: 13px; color: var(--gold); font-weight: 600; }
.fineprint { font-size: 13px; color: var(--ink-3); margin-top: 14px; }

/* Sponsor */
.sponsor { background: var(--navy); color: var(--on-navy); border-radius: 18px; padding: 44px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; position: relative; overflow: hidden; }
.sponsor h2 { font-size: clamp(26px, 3.4vw, 36px); }
.sponsor p { color: rgba(243,241,234,.75); margin: 12px 0 0; }
.sponsor .quote { font: 500 18px/1.5 var(--f-display); color: var(--gold-bright); margin-top: 18px; }
.tiers { display: grid; gap: 10px; }
.tier { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); text-decoration: none; }
.tier:hover { border-color: var(--gold-bright); background: rgba(255,255,255,.04); }
.tier b { font-family: var(--f-display); font-size: 19px; }
.tier span { font-size: 14px; color: rgba(243,241,234,.65); }
@media (max-width: 760px) { .sponsor { grid-template-columns: 1fr; padding: 28px 22px; } }

/* Listen elsewhere */
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.channel span span { font-size: 12.5px; }
.channel { display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; }
.channel:hover { border-color: var(--gold); }
.channel .ic { width: 40px; height: 40px; border-radius: 9px; background: var(--gold-soft); color: var(--gold); display: grid; place-items: center; flex: none; }
.channel b { display: block; }
.channel .ic { width: 44px; height: 44px; border-radius: 11px; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.channel .ic svg { width: 24px; height: 24px; }
.ic-wa { background: #25d366 !important; }
.ic-tg { background: #26a5e4 !important; }
.ic-pod { background: linear-gradient(180deg, #f452ff, #832bc1) !important; }
.ic-pod svg { width: 28px !important; height: 28px !important; }
.ic-bt { background: #27286f !important; }
.ic-bt svg { width: 20px !important; height: 20px !important; }
.ic-mail { background: linear-gradient(180deg, #4aa3ff, #1a6fe0) !important; }
.channel span { font-size: 13px; color: var(--ink-3); }

.site-foot { border-top: 1px solid var(--line); padding-block: 32px 40px; color: var(--ink-3); font-size: 14px; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Shiur page ---------- */
.shiur-top { background: var(--navy); color: var(--on-navy); }
.shiur-top .wrap { padding-block: 28px 0; max-width: var(--read); }
.crumbs { font-size: 14px; color: rgba(243,241,234,.6); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; }
.shiur-top h1 { font-size: clamp(28px, 4vw, 40px); margin-top: 10px; }
.shiur-top .meta { color: rgba(243,241,234,.7); font-size: 15px; margin-top: 6px; }

.player {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 64px); z-index: 15;
  background: var(--navy); color: var(--on-navy); padding-bottom: 14px;
  box-shadow: 0 6px 20px rgba(43,23,12,.22); border-bottom: 1px solid rgba(212,171,94,.3);
}
.player .wrap { max-width: var(--read); padding-top: 18px; }
.video-box { border-radius: 10px; overflow: hidden; background: #000; margin-bottom: 14px; aspect-ratio: 16/9; max-width: 100%; }
.video-box video { width: 100%; height: 100%; display: block; }
.ctrls { display: flex; align-items: center; gap: 10px; direction: ltr; }
.ctrl { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); background: transparent; display: grid; place-items: center; flex: none; color: var(--on-navy); font-size: 12px; font-weight: 600; }
.ctrl:hover { border-color: var(--gold-bright); }
.ctrl.main { width: 52px; height: 52px; background: var(--gold-bright); color: var(--on-gold); border: 0; }
.scrub { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.scrub input { width: 100%; accent-color: var(--gold-bright); }
.times { display: flex; justify-content: space-between; font-size: 12px; color: rgba(243,241,234,.6); font-variant-numeric: tabular-nums; }
.subrow { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.seg { display: inline-flex; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; overflow: hidden; }
.seg button { background: none; border: 0; padding: 5px 11px; font-size: 13px; color: rgba(243,241,234,.75); }
.seg button[aria-pressed="true"] { background: rgba(220,176,88,.2); color: var(--gold-bright); }
.chips { display: flex; gap: 6px; overflow-x: auto; margin-inline-start: auto; }
.chip { background: rgba(255,255,255,.06); border: 1px solid transparent; border-radius: 99px; padding: 4px 12px; font-size: 13px; white-space: nowrap; color: rgba(243,241,234,.8); }
.chip.on { border-color: var(--gold-bright); color: var(--gold-bright); }
@media (max-width: 600px) { .ctrl.skip { display: none; } .chips { margin-inline-start: 0; width: 100%; } }

.reader { max-width: var(--read); margin: 0 auto; padding-block: 36px 80px; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.hint { font-size: 14px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; margin-bottom: 28px; }
.hint i { background: var(--mark); padding: 0 6px; border-radius: 4px; font-style: normal; color: var(--ink); }
.sec { margin-bottom: 44px; scroll-margin-top: 260px; }
.sec-h { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; margin-bottom: 20px; border-bottom: 2px solid var(--ink); }
.sec-name { font-size: 30px; }
.sec-ref { font: 400 14px/1.4 var(--f-ui); color: var(--ink-2); }
.intro-go { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; cursor: pointer; display: flex; gap: 14px; align-items: center; margin: 0; }
.intro-go:hover { border-color: var(--gold); }
.intro-play { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--gold-bright); display: grid; place-items: center; flex: none; font-size: 13px; }
.unit { padding-block: 16px; border-bottom: 1px solid var(--line); }
.unit:last-child { border-bottom: 0; }
.tx { font: 400 25px/1.9 var(--f-text); margin: 0; }
.vn { font: 700 15px/1 var(--f-ui); color: var(--gold); margin-inline-end: 6px; vertical-align: 4px; }
.tg { font: 400 18px/1.85 var(--f-text); color: var(--ink-2); margin: 10px 0 0; }
.tglab, .cm summary { font: 600 12px/1 var(--f-ui); letter-spacing: .05em; color: var(--ink-3); border: 1px solid var(--line); border-radius: 5px; padding: 3px 7px; margin-inline-end: 8px; vertical-align: 3px; }
.cm { margin-top: 12px; }
.cm summary { display: inline-block; cursor: pointer; list-style: none; }
.cm summary::-webkit-details-marker { display: none; }
.cm summary::after { content: " +"; }
.cm[open] summary::after { content: " −"; }
.cm-body { font: 400 17px/1.85 var(--f-rashi); color: var(--ink-2); margin-top: 10px; padding-inline-start: 14px; border-inline-start: 2px solid var(--gold-soft); }
.cm-body small { font-family: var(--f-ui); font-size: 12px; color: var(--ink-3); }
.ph { border-radius: 5px; cursor: pointer; transition: background .2s; }
.ph i { font-style: normal; border-radius: 4px; transition: background .15s; }
.ph:hover { background: color-mix(in srgb, var(--mark) 45%, transparent); }
.ph.now { background: var(--mark); }
.ph i.now { background: var(--mark-word); }
.loading { text-align: center; padding: 80px 0; color: var(--ink-3); }

.next-prev { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; flex-wrap: wrap; }

/* ---------- Letterhead ---------- */
.brand-logo { width: 52px; height: 41px; flex: none; }
.letterhead {
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(212,171,94,.16), transparent 70%),
    linear-gradient(180deg, var(--navy), #3a2010);
  color: var(--on-navy); text-align: center; border-bottom: 1px solid rgba(212,171,94,.35);
}
.letterhead .wrap { padding-block: 44px 48px; display: flex; flex-direction: column; align-items: center; }
.lh-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 40px; width: 100%; max-width: 980px; }
.lh-logo { margin: 0; line-height: 0; }
.lh-logo { display: flex; justify-content: center; }
.lh-logo img { margin-inline: auto; width: min(360px, 72vw); height: auto; filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.brand-logo { object-fit: contain; }
.lh-days { list-style: none; margin: 0; padding: 0; font: 900 clamp(18px, 2.3vw, 30px)/1.12 var(--f-display); color: rgba(212,171,94,.2); }
.lh-days li.on { color: var(--gold-bright); text-shadow: 0 0 22px rgba(212,171,94,.35); }
.lh-sub { margin: 18px 0 0; color: rgba(245,234,216,.75); font-size: 16px; }
.ornament { display: flex; align-items: center; gap: 14px; margin: 22px 0 18px; color: var(--gold-bright); width: min(360px, 80%); }
.ornament span { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,171,94,.7), transparent); }
.lh-heb { font: 700 clamp(24px, 3.2vw, 34px)/1.25 var(--f-display); color: var(--on-navy); }
.lh-greg { font-size: 15px; color: rgba(245,234,216,.7); margin-top: 6px; letter-spacing: .02em; direction: ltr; }
.lh-parsha { display: inline-block; margin-top: 14px; font: 600 14px/1 var(--f-ui); color: var(--gold-bright); border: 1px solid rgba(212,171,94,.45); padding: 7px 16px; border-radius: 99px; }
.lh-parsha:empty { display: none; }
.lh-cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.letterhead .btn-ghost { color: var(--on-navy); border: 1px solid rgba(245,234,216,.25); padding: 9px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.letterhead .btn-ghost:hover { border-color: var(--gold-bright); }
@media (max-width: 720px) { .lh-row { grid-template-columns: 1fr; } .lh-days { display: none; } }

/* ---------- Calendar ---------- */
.cal-nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cal-mode { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 3px; margin-inline-end: 8px; }
.cal-mode button { border: 0; background: none; padding: 7px 14px; border-radius: 7px; font-weight: 600; color: var(--ink-2); }
.cal-mode button[aria-pressed="true"] { background: var(--navy); color: var(--gold-bright); }
.cd-g-heb { direction: rtl; font-family: var(--f-display); font-size: 12px; }
.cal-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; min-width: 40px; height: 40px; padding: 0 12px; font-weight: 600; color: var(--ink); }
.cal-btn:hover { border-color: var(--gold); }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .cal-layout { grid-template-columns: 1fr; } }
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.cal-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.cal-title h3 { font-size: 28px; }
.cal-title span { color: var(--ink-3); font-size: 14px; direction: ltr; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-week span { text-align: center; font: 600 13px/1.2 var(--f-ui); color: var(--ink-2); padding: 6px 0; }
.cal-week small { display: block; font-weight: 400; font-size: 11px; color: var(--ink-3); }
.cd {
  position: relative; min-height: 92px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper);
  padding: 8px; display: flex; flex-direction: column; align-items: stretch; gap: 4px; text-align: start; color: var(--ink);
  transition: border-color .15s, background .15s;
}
.cd-empty { border-color: transparent; background: transparent; }
button.cd:hover { border-color: var(--gold); }
.cd-top { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; }
.cd-h { font: 700 19px/1 var(--f-display); }
.cd-g { font-size: 11px; color: var(--ink-3); direction: ltr; white-space: nowrap; }
.cd-sp { font-size: 11.5px; line-height: 1.35; color: var(--gold); font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cd-parsha { font: 700 12px/1.3 var(--f-display); color: var(--gold); margin-top: auto; text-wrap: balance; }
.cd.is-today .cd-parsha { color: var(--gold-bright); }
.dp-parsha { display: inline-block; margin-top: 10px; font: 700 14px/1 var(--f-ui); color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); padding: 6px 12px; border-radius: 99px; }
@media (max-width: 600px) { .cd-parsha { font-size: 9.5px; } }
.cd-tag { font: 700 11px/1 var(--f-ui); color: var(--on-gold); background: var(--gold-bright); align-self: start; padding: 3px 7px; border-radius: 99px; }
.cd-dot { position: absolute; bottom: 8px; left: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.cd.is-past:not(.is-today) .cd-h { color: var(--ink-2); }
.cd.is-shabbos { background: var(--gold-soft); }
.cd.has-sp { background: var(--surface); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.cd.has-sp::before { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 16px 16px 0; border-color: transparent var(--gold-bright) transparent transparent; border-top-right-radius: 8px; }
.cd.is-today { background: var(--navy); border-color: var(--navy); color: var(--on-navy); box-shadow: 0 0 0 3px rgba(212,171,94,.55); }
.cd.is-today .cd-h { color: var(--gold-bright); font-size: 22px; font-weight: 900; }
.cd.is-today .cd-g { color: rgba(245,234,216,.75); font-weight: 700; }
.cd.is-today .cd-sp { color: var(--gold-bright); }
.cd.is-today .cd-dot { background: var(--gold-bright); }
.cd.is-sel:not(.is-today) { border-color: var(--gold); border-width: 2px; padding: 7px; }
.cal-legend { display: flex; gap: 18px; margin-top: 14px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.lg-today { background: var(--navy); box-shadow: 0 0 0 2px rgba(212,171,94,.55); }
.lg-sp { background: var(--gold-bright); }
.lg-sh { background: var(--ink-3); border-radius: 50% !important; width: 7px !important; height: 7px !important; }
@media (max-width: 600px) {
  .cal { padding: 12px; }
  .cal-week, .cal-grid { gap: 3px; }
  .cal-week span { font-size: 0; } .cal-week small { font-size: 11px; }
  .cd { min-height: 58px; padding: 5px; } .cd-sp, .cd-tag { display: none; }
  .cd-h { font-size: 15px; } .cd-g { font-size: 10px; }
  .cd.has-sp .cd-h { color: var(--gold); }
}

.day-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); display: grid; gap: 18px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 84px); scroll-margin-top: 84px; }
.dp-date { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.dp-wd { font-size: 14px; color: var(--ink-3); }
.dp-wd em { font-style: normal; background: var(--gold-bright); color: var(--on-gold); font-weight: 700; font-size: 11px; padding: 2px 8px; border-radius: 99px; margin-inline-start: 6px; }
.dp-date h3 { font-size: 28px; margin-top: 4px; }
.dp-g { display: block; color: var(--ink-2); font-size: 14px; margin-top: 4px; direction: ltr; text-align: right; }
.dp-sp { background: linear-gradient(135deg, var(--navy), #4a2914); color: var(--on-navy); border-radius: 12px; padding: 20px; text-align: center; border: 1px solid rgba(212,171,94,.35); }
.dp-sp .eyebrow { color: var(--gold-bright); }
.dp-type { font: 500 16px/1.3 var(--f-display); color: rgba(245,234,216,.8); margin-top: 12px; }
.dp-name { font: 700 24px/1.3 var(--f-display); color: var(--gold-bright); margin-top: 4px; text-wrap: balance; }
.dp-by { font-size: 14px; color: rgba(245,234,216,.7); margin-top: 8px; }
.dp-empty p { margin: 10px 0 14px; color: rgba(245,234,216,.8); }
.dp-sh { display: grid; gap: 8px; }
.dp-link { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; }
.dp-link:hover { border-color: var(--gold); }
.dp-link span { width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--gold-bright); display: grid; place-items: center; font-size: 10px; }
.dp-link small { color: var(--ink-3); }
.dp-muted { color: var(--ink-3); margin: 0; }
.dp-admin { display: grid; gap: 6px; padding: 16px; border: 1px dashed var(--gold); border-radius: 10px; background: var(--paper); }
.dp-admin label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-top: 6px; }
.dp-admin input, .dp-admin select { font: inherit; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); width: 100%; }
.dp-admin input:focus, .dp-admin select:focus { outline: 2px solid var(--gold); border-color: transparent; }
.dp-actions { display: flex; gap: 8px; margin-top: 10px; }
.dp-status { margin: 4px 0 0; font-size: 13px; color: var(--ink-2); min-height: 1em; }
.demo-note { margin: 14px 0 0; font-size: 13px; color: var(--ink-3); }
.admin-link { background: none; border: 0; color: var(--ink-3); font-size: 13px; text-decoration: underline; padding: 0; }

/* today card in the week section */
.week-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: start; }
.week-layout .today { background: linear-gradient(160deg, var(--navy), #4a2914); color: var(--on-navy); border-color: rgba(212,171,94,.35); }
@media (max-width: 900px) { .week-layout { grid-template-columns: 1fr; } }

/* ================= v3: full-width calendar, phone fixes ================= */
.arr::before { content: "→"; }
.arr-next::before { content: "←"; }
[dir="ltr"] .arr-prev::before { content: "←"; }
[dir="ltr"] .arr-next::before { content: "→"; }

.cal { padding: 24px; }
.cal-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.cal-bar .cal-title { border: 0; padding: 0; margin: 0; flex-direction: column; align-items: flex-start; gap: 2px; }
.cal-bar .cal-title h3 { font-size: 32px; }
.cal-nav { gap: 10px; }
.cal-arrows { display: flex; gap: 6px; }
.cal-mode { margin: 0; }
.wk-s { display: none; }
.cal-week span b { font-weight: 600; }
.cal-week, .cal-grid { gap: 8px; }
.cd { min-height: 128px; padding: 10px; gap: 6px; border-radius: 10px; }
.cd-h { font-size: 22px; }
.cd-g { font-size: 12px; }
.cd-sp { font-size: 13.5px; line-height: 1.4; -webkit-line-clamp: 4; }
.cd-parsha { font-size: 13px; }
.cd-dot { left: auto; inset-inline-end: 10px; bottom: 10px; }
.cd.has-sp::before { content: none; }
.cd.has-sp { box-shadow: inset 0 3px 0 var(--gold-bright); }
.cd.is-today { box-shadow: 0 0 0 3px rgba(212,171,94,.55); }
.cd.is-today .cd-h { font-size: 26px; }
.cd-m { font-style: normal; }
.month-sp { display: none; }

.day-panel { position: static; margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 26px; align-items: start; }
.dp-col { display: grid; gap: 18px; min-width: 0; }
.dp-g { text-align: start; }
@media (max-width: 760px) { .day-panel { grid-template-columns: 1fr; padding: 20px; } }

@media (max-width: 1024px) {
  .cd { min-height: 112px; padding: 8px; }
  .cd-sp { font-size: 12.5px; -webkit-line-clamp: 3; }
  .cd-parsha { font-size: 12px; }
}
@media (max-width: 760px) {
  .cal { padding: 16px; }
  .cal-week, .cal-grid { gap: 5px; }
  .cd { min-height: 92px; padding: 6px; }
  .cd-h { font-size: 18px; }
  .cd-g { font-size: 11px; }
  .cd-sp { font-size: 11px; -webkit-line-clamp: 3; }
  .cd-parsha { font-size: 10.5px; }
  .wk-l { display: none; } .wk-s { display: block; font-size: 14px; }
}
@media (max-width: 600px) {
  .cal { padding: 12px 10px; }
  .cal-bar .cal-title h3 { font-size: 26px; }
  .cal-nav { width: 100%; justify-content: space-between; }
  .cal-week, .cal-grid { gap: 4px; }
  .cd { min-height: 66px; padding: 5px 4px; gap: 2px; border-radius: 8px; }
  .cd-top { flex-direction: column; align-items: flex-start; gap: 1px; }
  .cd-h { font-size: 16px; } .cd.is-today .cd-h { font-size: 18px; }
  .cd-g { font-size: 10px; } .cd-m { display: none; }
  .cd-sp, .cd-tag { display: none; }
  .cd-parsha { font-size: 9px; line-height: 1.2; }
  .cd-dot { inset-inline-end: 5px; bottom: 5px; width: 5px; height: 5px; }
  .cd.has-sp { background: var(--gold-soft); box-shadow: inset 0 3px 0 var(--gold-bright); }
  .cd.has-sp .cd-h { color: var(--gold); }
  .cal-week small { display: none; }
  .month-sp { display: block; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
  .month-sp h4 { margin: 0 0 8px; font: 700 15px/1.3 var(--f-display); }
  .month-sp p { margin: 0; color: var(--ink-3); font-size: 14px; }
  .month-sp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
  .month-sp button { width: 100%; display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: center; text-align: start; background: var(--paper); border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; }
  .ms-d b { display: block; font: 700 15px/1.2 var(--f-display); }
  .ms-d small { color: var(--ink-3); font-size: 11px; }
  .ms-n { font-size: 14px; font-weight: 600; color: var(--gold); }
  .channels { grid-template-columns: 1fr; }
  .band { padding-block: 44px; }
  .band-head h2 { font-size: 26px; }
  .tx { font-size: 22px; }
  .tg { font-size: 17px; }
  .cm-body { font-size: 16px; }
  .ctrl.skip { display: grid; width: 36px; height: 36px; font-size: 11px; }
  .ctrl.main { width: 46px; height: 46px; }
  .video-box { max-height: 30vh; aspect-ratio: auto; }
  .video-box video { max-height: 30vh; object-fit: contain; }
  .week-layout .today { padding: 18px; }
  .sponsor { border-radius: 14px; }
  .book { grid-template-columns: 76px 1fr; padding: 18px; gap: 14px; }
}
/* ---------- Shiur page extras ---------- */
.video-box { position: relative; }
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-wrap .video-box { aspect-ratio: 16 / 9; }
.sec-note { color: var(--ink-3); font-size: 14px; margin: 0; }
.fs-btn { position: absolute; bottom: 10px; inset-inline-end: 10px; width: 38px; height: 38px; border-radius: 9px; border: 1px solid rgba(212,171,94,.5); background: rgba(18,10,5,.65); color: var(--gold-bright); display: grid; place-items: center; z-index: 3; }
.fs-btn:hover { background: rgba(18,10,5,.85); }
.cap { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); max-width: 92%; z-index: 2; direction: rtl; text-align: center;
  font: 700 clamp(16px, 2.6vw, 26px)/1.45 var(--f-text); color: #fff; padding: .2em .5em; pointer-events: none;
  text-shadow: 0 0 3px #000, 0 0 3px #000, 0 1px 2px #000, 0 0 10px rgba(0,0,0,.8); opacity: 0; transition: opacity .45s ease; }
.cap.cap-on { opacity: 1; }
.cap span { transition: color .3s ease; }
.cap span.on { color: var(--gold-bright); }
.video-box:fullscreen { display: grid; place-items: center; background: #000; border-radius: 0; }
.video-box:fullscreen video { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.video-box:fullscreen .cap { font-size: clamp(22px, 3vw, 40px); }
.seg .cc-toggle { border-inline-start: 1px solid rgba(255,255,255,.14); }

.sp-line { display: flex; gap: 14px; align-items: flex-start; border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line)); background: var(--surface); border-radius: 12px; padding: 14px 18px; margin-bottom: 14px; }
.sp-line:empty { display: none; }
.sp-line.has { background: linear-gradient(135deg, var(--navy), #4a2914); color: var(--on-navy); border-color: rgba(212,171,94,.4); }
.sp-star { color: var(--gold-bright); font-size: 18px; line-height: 1.4; }
.sp-line .sp-lab { display: block; font-size: 13px; color: var(--ink-3); }
.sp-line.has .sp-lab { color: rgba(245,234,216,.7); }
.sp-line b { display: block; font: 700 20px/1.35 var(--f-display); color: var(--gold-bright); }
.sp-line:not(.has) .sp-lab { font-size: 14px; color: var(--ink-2); }
.sp-line a { color: var(--gold); font-weight: 700; }
.sp-purpose { display: block; margin-top: 4px; font-size: 14px; color: rgba(245,234,216,.85); white-space: normal; }
.sp-q { display: block; font: 500 14px/1.4 var(--f-display); color: var(--gold); margin-top: 4px; }

.info-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; font-size: 14px; color: var(--ink-2); }
.info-row:has(> :not([hidden])) { min-height: 1em; }
.views-day { display: inline-flex; align-items: center; gap: 6px; }
.resume-note { display: inline-flex; gap: 8px; align-items: center; background: var(--gold-soft); color: var(--ink); padding: 5px 12px; border-radius: 99px; }
.resume-note button { background: none; border: 0; color: var(--gold); font-weight: 700; text-decoration: underline; padding: 0; }

.tools { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.tool-btns { display: flex; gap: 6px; margin-inline-start: auto; }
.tool { height: 38px; min-width: 42px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); font: 700 15px/1 var(--f-display); color: var(--ink); }
.tool:hover { border-color: var(--gold); }
.tool-help { display: inline-flex; gap: 6px; align-items: center; font-family: var(--f-ui); font-size: 14px; }
.tool-help span { width: 20px; height: 20px; border-radius: 50%; background: var(--navy); color: var(--gold-bright); display: grid; place-items: center; font-size: 12px; }
.views-pick { display: grid; gap: 8px; }
.vp-ask { font-size: 13px; color: var(--ink-3); }
.vp-cards { display: flex; gap: 8px; flex-wrap: wrap; }
.vp-card { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 14px; }
[dir="rtl"] .vp-card { padding: 6px 6px 6px 12px; }
.vp-card img { width: 26px; height: 36px; object-fit: cover; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.vp-ic { width: 26px; height: 36px; border-radius: 3px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; font: 700 12px/1 var(--f-display); }
.vp-card[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }

.tx { font-size: calc(25px * var(--tx-scale, 1)); }
.tg { font-size: calc(18px * var(--tx-scale, 1)); }
.cm-body { font-size: calc(17px * var(--tx-scale, 1)); }
@media (max-width: 600px) { .tx { font-size: calc(22px * var(--tx-scale, 1)); } .tg { font-size: calc(17px * var(--tx-scale, 1)); } .cm-body { font-size: calc(16px * var(--tx-scale, 1)); } }

.sec-h { position: relative; }
.sec-go { align-self: flex-start; margin-top: 8px; display: inline-flex; gap: 6px; align-items: center; background: var(--navy); color: var(--gold-bright); border: 0; border-radius: 99px; padding: 6px 14px; font: 600 13px/1 var(--f-ui); }
.sec-go:hover { background: var(--navy-2); }

.pdf-view { display: grid; gap: 18px; margin-bottom: 30px; }
.pdf-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 700 18px/1.2 var(--f-display); }
.pdf-page { position: relative; margin: 0; background: #fff; border-radius: 6px; box-shadow: var(--shadow); overflow: hidden; cursor: pointer; max-width: 100%; }
.pdf-page img { width: 100%; height: 100%; display: block; }
.pdf-marks { position: absolute; inset: 0; pointer-events: none; }
.pdf-marks i { position: absolute; background: rgba(242, 198, 74, .45); border-radius: 3px; mix-blend-mode: multiply; box-shadow: 0 0 0 2px rgba(242,198,74,.35); }
.pdf-page figcaption { position: absolute; bottom: 6px; inset-inline-end: 10px; font-size: 11px; color: #8c735d; background: rgba(255,255,255,.8); padding: 2px 8px; border-radius: 99px; }

.help-dlg { border: 1px solid rgba(212,171,94,.4); border-radius: 16px; padding: 0; max-width: min(560px, calc(100vw - 32px)); width: 100%; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.help-dlg::backdrop { background: rgba(18,10,5,.55); }
.help-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; background: var(--navy); color: var(--gold-bright); }
.help-head h2 { font-size: 22px; }
.help-x { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(212,171,94,.4); background: none; color: var(--gold-bright); }
.help-dlg ol { margin: 0; padding: 18px 22px 22px; padding-inline-start: 42px; display: grid; gap: 10px; line-height: 1.6; }
.help-dlg mark { background: var(--mark); color: var(--ink); padding: 0 4px; border-radius: 3px; }

/* ---------- Views on the homepage ---------- */
.vw { display: inline-flex; align-items: center; gap: 4px; }
.vw svg { opacity: .7; }
.views-total { margin-top: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; display: grid; gap: 10px; }
.vt-main { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.vt-num { font: 900 clamp(30px, 4vw, 44px)/1 var(--f-display); color: var(--gold); font-variant-numeric: tabular-nums; }
.vt-lab { font-size: 15px; color: var(--ink-2); }
.vt-sub { font-size: 13px; color: var(--ink-3); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.vt-sub button { background: none; border: 0; color: var(--gold); font-weight: 700; padding: 0; }
.vt-plat { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.vt-plat div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--paper); }
.vt-plat b { display: block; font: 700 20px/1.2 var(--f-display); font-variant-numeric: tabular-nums; }
.vt-plat span { font-size: 12.5px; color: var(--ink-3); }

/* ---------- Feedback ---------- */
.fb-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .fb-grid { grid-template-columns: 1fr; } }
.fb-form { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 8px; box-shadow: var(--shadow); }
.fb-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 4px; margin-bottom: 8px; }
.fb-tabs button { border: 0; background: none; border-radius: 7px; padding: 9px 8px; font-weight: 600; color: var(--ink-2); }
.fb-tabs button[aria-pressed="true"] { background: var(--navy); color: var(--gold-bright); }
.fb-form label { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-top: 4px; }
.fb-form input, .fb-form textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); width: 100%; }
.fb-form textarea { min-height: 110px; resize: vertical; }
.fb-form input:focus, .fb-form textarea:focus { outline: 2px solid var(--gold); border-color: transparent; }
.fb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fb-row > div { display: grid; gap: 6px; min-width: 0; }
@media (max-width: 520px) { .fb-row { grid-template-columns: 1fr; } }
.fb-priv { font-size: 13px; color: var(--ink-3); margin: 0; }
.fb-form .btn-gold { justify-content: center; margin-top: 8px; }
.fb-status { font-size: 14px; margin: 0; min-height: 1.2em; color: var(--ink-2); }
.fb-list { display: grid; gap: 12px; }
.fb-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.fb-item header { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.fb-item header b { font: 700 16px/1.3 var(--f-display); }
.fb-item header small { color: var(--ink-3); font-size: 12px; }
.fb-item p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.fb-item .fb-del { background: none; border: 0; color: #b4442e; font-size: 12px; font-weight: 700; padding: 0; margin-top: 8px; }
.fb-item .fb-contact { display: block; margin-top: 6px; font-size: 13px; color: var(--gold); direction: ltr; text-align: start; }
.fb-empty { color: var(--ink-3); background: var(--surface); border: 1px dashed var(--line); border-radius: 12px; padding: 20px; text-align: center; }
.fb-more { justify-self: center; }
.fb-all { max-width: min(680px, calc(100vw - 24px)); }
.fb-all-list { max-height: min(70vh, 640px); overflow-y: auto; padding: 16px 18px 20px; overscroll-behavior: contain; }
.fb-all-list .fb-item { background: var(--paper); }
.fb-inbox { margin-top: 26px; border: 1px dashed var(--gold); border-radius: 14px; padding: 18px; background: var(--paper); }
.fb-inbox h3 { font-size: 20px; margin-bottom: 12px; }

/* About the Maggid Shiur */
.about { background: linear-gradient(180deg, var(--navy), #3a2010); color: var(--on-navy); border-block: 1px solid rgba(212,171,94,.35); position: relative; overflow: hidden; }
.about::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 400px at 20% 50%, rgba(212,171,94,.12), transparent 70%); pointer-events: none; }
.about .wrap { position: relative; padding-block: 72px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.about-photo { margin: 0; position: relative; }
.about-photo::before { content: ""; position: absolute; inset: -14px 14px 14px -14px; border: 1px solid rgba(212,171,94,.55); border-radius: 18px; pointer-events: none; }
[dir="rtl"] .about-photo::before { inset: -14px -14px 14px 14px; }
.about-photo img { position: relative; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 24px 50px rgba(0,0,0,.45); filter: sepia(.12) saturate(1.05); }
.about-photo::after { content: ""; position: absolute; inset: 0; border-radius: 16px; background: linear-gradient(180deg, transparent 60%, rgba(43,23,12,.35)); pointer-events: none; }
.about-text h2 { font-size: clamp(28px, 3.6vw, 42px); color: var(--gold-bright); margin-top: 10px; }
.about-text .eyebrow { color: var(--gold-bright); }
.about-text p { font-size: 18px; line-height: 1.75; color: rgba(245,234,216,.85); margin: 0 0 24px; max-width: 34em; }
.ornament-start { margin: 18px 0 20px; width: 200px; }
.about-facts { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.about-facts li { border: 1px solid rgba(212,171,94,.3); border-radius: 12px; padding: 14px; background: rgba(255,255,255,.03); }
.about-facts b { display: block; font: 700 18px/1.2 var(--f-display); color: var(--gold-bright); }
.about-facts span { display: block; font-size: 13px; color: rgba(245,234,216,.7); margin-top: 4px; }
.about-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.about .btn-ghost { color: var(--on-navy); border: 1px solid rgba(245,234,216,.25); padding: 9px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.about .btn-ghost:hover { border-color: var(--gold-bright); }
@media (max-width: 860px) {
  .about .wrap { padding-block: 48px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 520px; margin-inline: auto; width: calc(100% - 14px); }
}
@media (max-width: 520px) {
  .about-facts { grid-template-columns: 1fr; }
  .about-text p { font-size: 16px; }
}
.video-wrap { background: var(--navy); }
.video-wrap .wrap { max-width: var(--read); padding-block: 18px 0; }
.video-wrap .video-box { margin: 0; box-shadow: 0 10px 30px rgba(0,0,0,.35); border: 1px solid rgba(212,171,94,.25); }
@media (max-width: 600px) { .video-wrap .video-box, .video-wrap video { max-height: none !important; aspect-ratio: 16/9 !important; } }
.poster { position: relative; display: block; }
.poster-play { position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%; background: rgba(43,23,12,.7); color: var(--gold-bright); display: grid; place-items: center; border: 1px solid rgba(212,171,94,.6); }
.week .dh { min-height: 1.4em; }
@media (max-width: 600px) { .ctrl.skip { display: grid !important; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Partners strip (one thin flowing line) ---------- */
.partners { background: var(--navy); border-block: 1px solid rgba(212,171,94,.35); }
.pt-strip { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 14px; width: 100%; max-width: 1240px; margin: 0 auto; padding: 10px 16px; color: var(--on-navy); }
.pt-strip:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: -4px; border-radius: 8px; }
.pt-lab { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 700 15px/1 var(--f-display); color: var(--gold-bright); padding-inline-end: 14px; border-inline-end: 1px solid rgba(212,171,94,.35); }
.pt-star { font-size: 12px; }
.pt-view { flex: 1; min-width: 0; overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.pt-track { display: flex; width: max-content; animation: pt-flow var(--pt-dur, 30s) linear infinite; }
.pt-strip:hover .pt-track, .pt-strip:focus-visible .pt-track { animation-play-state: paused; }
.pt-set { display: flex; align-items: center; flex: none; }
.pt-item { display: inline-flex; align-items: center; gap: 8px; padding: 0 6px; white-space: nowrap; direction: rtl; }
.pt-item b { font: 600 15px/1 var(--f-ui); color: #f3e7d4; }
.pt-item img { height: 26px; width: auto; max-width: 70px; object-fit: contain; background: #fff; border-radius: 5px; padding: 2px 4px; }
.pt-mono { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(212,171,94,.18); color: var(--gold-bright); font: 700 13px/1 var(--f-display); }
.pt-sep { color: rgba(212,171,94,.55); font-size: 10px; padding: 0 14px; }
.pt-all { flex: none; font: 600 13px/1 var(--f-ui); color: var(--on-gold); background: var(--gold-bright); padding: 7px 12px; border-radius: 99px; white-space: nowrap; }
.pt-strip:hover .pt-all { background: var(--gold-hover); }
@keyframes pt-flow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .pt-track { animation: none; } .pt-view { overflow-x: auto; } }
@media (max-width: 640px) {
  .pt-strip { gap: 10px; padding: 9px 12px; }
  .pt-lab { font-size: 14px; padding-inline-end: 10px; }
  .pt-lab span:last-child { display: none; }
  .pt-all { font-size: 12px; padding: 6px 10px; }
}

/* All partners dialog */
.pt-dlg { max-width: min(760px, calc(100vw - 32px)); }
.pt-sub { margin: 0; padding: 14px 22px 0; color: var(--ink-2); font-size: 15px; }
.pt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; padding: 16px 22px 22px; max-height: min(62vh, 560px); overflow-y: auto; }
.pt-card { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--paper); }
.pt-logo { flex: none; width: 56px; height: 56px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.pt-logo img { max-width: 48px; max-height: 48px; object-fit: contain; }
.pt-logo .pt-mono { width: 56px; height: 56px; border-radius: 0; font-size: 22px; background: var(--navy); }
.pt-info { min-width: 0; display: grid; gap: 3px; }
.pt-info b { font: 700 16px/1.25 var(--f-display); overflow-wrap: anywhere; }
.pt-info small { color: var(--ink-3); font-size: 13px; }
.pt-info a { color: var(--gold); font-weight: 600; font-size: 13px; text-decoration: none; }
.pt-info a:hover { text-decoration: underline; }

/* ---------- Mini sponsor ($108): one section of the day ---------- */
.cd-mini { display: block; margin-top: 6px; font: 600 11px/1.3 var(--f-ui); color: var(--gold); }
.cd.is-today .cd-mini { color: var(--gold-bright); }
.cd.has-mini { box-shadow: inset 0 -3px 0 rgba(212,171,94,.55); }
.ms-part { font-style: normal; font-size: 11px; font-weight: 700; background: var(--gold-soft); color: var(--gold); padding: 2px 6px; border-radius: 99px; }
.dp-co { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; color: var(--gold); }
.dp-co img { height: 24px; max-width: 70px; object-fit: contain; background: #fff; border-radius: 4px; padding: 2px; }
.dp-mini { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.dp-mini-h { display: grid; gap: 4px; margin-bottom: 8px; }
.dp-mini-h small { color: var(--ink-2); font-size: 13px; }
.dp-mini-h small b { color: var(--gold); }
.dp-mini ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dp-mini li { display: flex; align-items: baseline; gap: 8px; padding: 7px 10px; border-radius: 8px; background: var(--paper); font-size: 14px; min-width: 0; }
.dp-mini li.on { background: var(--gold-soft); grid-column: 1 / -1; }
.dp-mini-p { flex: none; font-family: var(--f-display); min-width: 52px; }
.dp-mini-n { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.dp-mini-n small { color: var(--ink-2); font-size: 12px; }
.dp-mini-co { color: var(--gold) !important; font-weight: 600; }
.dp-mini-give { color: var(--gold); font-size: 12.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.dp-mini-give:hover { text-decoration: underline; }
@media (max-width: 420px) { .dp-mini ul { grid-template-columns: 1fr; } }

/* Shiur page: sponsor of one section, under its heading */
.sec-sp { margin: -4px 0 12px; font-size: 14px; color: var(--ink-2); }
.sec-sp.has { display: inline-block; background: var(--gold-soft); border: 1px solid rgba(154,107,34,.25); border-radius: 8px; padding: 6px 12px; }
.sec-sp.has b { color: var(--ink); }
.sec-sp-co { color: var(--gold); font-weight: 600; }
.sec-sp a { color: var(--gold); text-decoration: none; font-size: 13px; font-weight: 600; }
.sec-sp a:hover { text-decoration: underline; }

/* Video refused by Vimeo on this site: audio note */
.vid-blocked { margin: 10px 0 0; padding: 10px 14px; border-radius: 10px; background: rgba(212,171,94,.14); border: 1px solid rgba(212,171,94,.35); color: var(--gold-bright); font-size: 14px; text-align: center; }

/* Straight columns in the reader: the pasuk number hangs on the side, Onkelos gets its label above, and every line starts at the same place */
.tx.has-lab { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: baseline; }
.tx.has-lab .vn { margin: 0; vertical-align: 0; text-align: start; }
.tg.has-lab, .unit .cm { margin-inline-start: 30px; }
.tg.has-lab { display: block; }
.tg.has-lab .tglab { display: table; margin: 0 0 4px; vertical-align: 0; }
.tg.has-lab .lt, .tx.has-lab .lt { display: block; min-width: 0; overflow-wrap: break-word; }
@media (max-width: 600px) {
  .tx.has-lab { grid-template-columns: 24px minmax(0, 1fr); }
  .tg.has-lab, .unit .cm { margin-inline-start: 24px; }
}

/* Small notes inside the text (e.g. other readings) */
.nt { font-family: var(--f-ui); font-size: .62em; color: var(--ink-3); }

/* ---------- Compact letterhead + the big "today's shiur" button (first thing on the page) ---------- */
.letterhead .wrap { padding-block: 18px 14px; gap: 14px; }
.today-btn {
  display: flex; align-items: center; gap: 16px; width: min(760px, 100%); box-sizing: border-box;
  padding: 16px 22px; border-radius: 18px; text-decoration: none; color: var(--on-gold);
  background: linear-gradient(135deg, #e7c67f 0%, var(--gold-bright) 45%, #b98a3c 100%);
  box-shadow: 0 10px 28px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.45);
  transition: transform .15s ease, box-shadow .15s ease;
}
.today-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.45); }
.today-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.tb-star { flex: none; font-size: 38px; line-height: 1; color: var(--navy); text-shadow: 0 1px 0 rgba(255,255,255,.35); animation: tb-glow 2.6s ease-in-out infinite; }
@keyframes tb-glow { 50% { transform: scale(1.12) rotate(8deg); } }
@media (prefers-reduced-motion: reduce) { .tb-star { animation: none; } }
.tb-text { display: grid; gap: 4px; min-width: 0; }
.tb-text b { font: 800 clamp(20px, 3vw, 28px)/1.15 var(--f-display); color: var(--navy); }
.tb-text small { font: 600 14px/1.3 var(--f-ui); color: rgba(43,23,12,.78); overflow-wrap: anywhere; }
.tb-play { flex: none; margin-inline-start: auto; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: var(--gold-bright); box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.tb-play svg { margin-inline-start: 3px; }
[dir="rtl"] .tb-play svg { margin-inline-start: 0; margin-inline-end: 3px; }

.lh-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 18px; width: 100%; }
.lh-bar .lh-logo img { width: 62px; height: auto; filter: drop-shadow(0 3px 8px rgba(0,0,0,.35)); }
.lh-bar .lh-date { text-align: start; }
.lh-bar .lh-heb { font: 700 20px/1.2 var(--f-display); }
.lh-bar .lh-greg { font-size: 13px; margin-top: 2px; }
.lh-bar .lh-parsha { margin-top: 0; font-size: 13px; padding: 6px 13px; }
.lh-cal { font: 600 13px/1 var(--f-ui); color: rgba(245,234,216,.85); text-decoration: none; border: 1px solid rgba(245,234,216,.25); padding: 7px 13px; border-radius: 99px; }
.lh-cal:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.letterhead .lh-days { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; font: 700 13px/1.4 var(--f-display); color: rgba(245,234,216,.62); }
.letterhead .lh-days li.on { color: #f3cf86; text-shadow: none; border-bottom: 2px solid var(--gold-bright); }

@media (max-width: 600px) {
  .letterhead .wrap { padding-block: 14px 12px; gap: 12px; }
  .today-btn { gap: 12px; padding: 14px 16px; border-radius: 16px; }
  .tb-star { font-size: 30px; }
  .tb-text b { font-size: 20px; }
  .tb-text small { font-size: 13px; }
  .tb-play { width: 46px; height: 46px; }
  .lh-bar { gap: 8px 12px; }
  .lh-bar .lh-logo img { width: 48px; }
  .lh-bar .lh-heb { font-size: 17px; }
  .lh-cal { display: none; }
  .letterhead .lh-days { font-size: 12px; gap: 3px 10px; }
}

/* Sections of the day: never let the sponsor link run outside its box */
.dp-mini ul { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.dp-mini li { flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 10px; }
.dp-mini li .dp-mini-p { min-width: 0; }
.dp-mini-give { white-space: nowrap; flex: none; }
.dp-mini-n { flex: 1 1 160px; }

/* ---------- Today's video on the homepage ---------- */
.today-video { width: min(760px, 100%); display: grid; gap: 8px; }
.tv-box { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 10px 28px rgba(0,0,0,.4); border: 1px solid rgba(212,171,94,.35); }
.tv-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv-start { all: unset; position: absolute; inset: 0; cursor: pointer; display: grid; place-items: center; }
.tv-start:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: -3px; }
.tv-start img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tv-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(0,0,0,.05), rgba(0,0,0,.45)); }
.tv-btn { position: relative; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; color: var(--navy);
  background: linear-gradient(135deg, #e7c67f, var(--gold-bright) 50%, #b98a3c); box-shadow: 0 8px 26px rgba(0,0,0,.5), 0 0 0 8px rgba(212,171,94,.25);
  transition: transform .15s ease; }
.tv-btn svg { margin-left: 6px; }
.tv-start:hover .tv-btn { transform: scale(1.07); }
.tv-label { position: absolute; bottom: 14px; inset-inline: 0; text-align: center; font: 700 16px/1.2 var(--f-display); color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.tv-box.is-audio { aspect-ratio: auto; display: grid; gap: 8px; padding: 16px; background: var(--navy-2); }
.tv-box.is-audio audio { width: 100%; }
.tv-note { margin: 0; font-size: 13px; color: rgba(245,234,216,.8); text-align: center; }
.tv-text { justify-self: center; font: 600 14px/1.3 var(--f-ui); color: var(--gold-bright); text-decoration: none; }
.tv-text:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .tv-box { border-radius: 12px; }
  .tv-btn { width: 74px; height: 74px; }
  .tv-btn svg { width: 36px; height: 36px; }
  .tv-label { font-size: 14px; bottom: 10px; }
}

/* Big start button on the shiur page, when the browser does not let the shiur start by itself */
.has-big-play { position: relative; }
.big-play { position: absolute; z-index: 5; inset: 0; margin: auto; width: 96px; height: 96px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--navy);
  background: linear-gradient(135deg, #e7c67f, var(--gold-bright) 50%, #b98a3c);
  box-shadow: 0 8px 26px rgba(0,0,0,.55), 0 0 0 10px rgba(212,171,94,.28); animation: big-pulse 1.8s ease-in-out infinite; }
.big-play svg { margin-left: 6px; }
.big-play:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
#player .big-play { position: static; margin: 10px auto; width: 72px; height: 72px; }
@keyframes big-pulse { 50% { box-shadow: 0 8px 26px rgba(0,0,0,.55), 0 0 0 18px rgba(212,171,94,.12); } }
@media (prefers-reduced-motion: reduce) { .big-play { animation: none; } }
@media (max-width: 600px) { .big-play { width: 78px; height: 78px; } }

/* ---------- Small video in the corner while reading ---------- */
.video-box .mini-ctl { display: none; }
.video-box.is-mini {
  position: fixed; z-index: 40; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 14px;
  width: 340px; max-width: 46vw; aspect-ratio: 16 / 9; margin: 0; border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0,0,0,.5); border: 2px solid var(--gold-bright);
  animation: mini-in .22s ease-out;
}
@keyframes mini-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .video-box.is-mini { animation: none; } }
.video-box.is-mini .cap, .video-box.is-mini .fs-btn, .video-box.is-mini .big-play { display: none !important; }
.video-box.is-mini .mini-ctl { display: flex; gap: 6px; position: absolute; z-index: 3; top: 6px; inset-inline-start: 6px; }
.mini-ctl button { width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(18,10,5,.78); color: var(--gold-bright); font-size: 15px; line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.mini-ctl button:hover { background: var(--navy); }
@media (max-width: 600px) {
  .video-box.is-mini { width: 52vw; max-width: none; inset-inline-end: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); border-radius: 10px; }
  .mini-ctl button { width: 28px; height: 28px; font-size: 13px; }
}

/* follow-along switch and the floating pause / resume pill */
.follow-pill { position: fixed; z-index: 60; bottom: max(18px, env(safe-area-inset-bottom)); inset-inline-start: 50%; transform: translateX(50%);
  display: inline-flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 10px 18px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent);
  background: var(--navy); color: var(--on-navy); font: inherit; font-size: .95rem; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 22px rgba(0,0,0,.28); }
[dir="ltr"] .follow-pill { transform: translateX(-50%); }
.follow-pill[data-k="pause"] { background: color-mix(in srgb, var(--navy) 88%, transparent); font-weight: 500; }
.follow-pill[data-k="resume"], .follow-pill[data-k="goto"] { background: var(--gold-bright); color: #2b170c; border-color: transparent; }
.follow-pill:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.follow-pill[hidden] { display: none; }
@media (max-width: 600px) { .follow-pill { inset-inline-start: 12px; transform: none; bottom: max(14px, env(safe-area-inset-bottom)); max-width: calc(46vw - 20px); white-space: normal; line-height: 1.25; padding: 9px 14px; font-size: .88rem; } [dir="ltr"] .follow-pill { transform: none; } }

/* the kind donation request */
.ask-dlg { width: min(440px, calc(100vw - 32px)); border: 1px solid color-mix(in srgb, var(--gold-bright) 55%, var(--line)); border-radius: 18px;
  padding: 30px 26px 20px; background: var(--surface); color: var(--ink); text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.35);
  background-image: radial-gradient(120% 60% at 50% 0%, color-mix(in srgb, var(--gold-bright) 16%, transparent), transparent 70%);
  animation: ask-in .35s cubic-bezier(.2,.8,.2,1); }
.ask-dlg::backdrop { background: rgba(18,10,5,.55); animation: ask-fade .35s; }
.ask-dlg.out { animation: ask-out .22s forwards; }
.ask-dlg .ask-star { width: 54px; height: 54px; margin: 0 auto 10px; display: grid; place-items: center; border-radius: 50%; font-size: 26px;
  color: #2b170c; background: var(--gold-bright); box-shadow: 0 0 0 8px color-mix(in srgb, var(--gold-bright) 22%, transparent); }
.ask-dlg h2 { margin: 0 0 10px; font-size: 1.45rem; color: var(--ink); overflow-wrap: anywhere; }
.ask-dlg p { margin: 0 0 12px; line-height: 1.65; color: var(--ink-2); overflow-wrap: anywhere; }
.ask-dlg .ask-q { font-size: .95rem; color: var(--gold); font-weight: 600; margin-bottom: 18px; }
.ask-btns { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.ask-btns .ask-go { display: block; padding: 13px 18px; font-size: 1.05rem; text-align: center; }
.ask-btns .ask-mini { display: block; padding: 10px 16px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--gold) 50%, var(--line));
  color: var(--ink); text-decoration: none; font-weight: 600; }
.ask-btns .ask-mini:hover { background: var(--gold-soft, rgba(212,171,94,.12)); }
.ask-later { margin-top: 12px; background: none; border: 0; color: var(--ink-3); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ask-x { position: absolute; top: 10px; inset-inline-end: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-3); font-size: 16px; cursor: pointer; }
.ask-x:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
@keyframes ask-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
@keyframes ask-out { to { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes ask-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ask-dlg, .ask-dlg::backdrop, .ask-dlg.out { animation: none; } }

/* calm, steady follow switch (no floating buttons) */
#follow .fl-paused { background: color-mix(in srgb, var(--gold-bright) 22%, transparent); color: #fff; }
.follow-pill { display: none !important; }
/* the floating video is bigger on a computer screen */
@media (min-width: 1000px) { .video-box.is-mini { width: min(560px, 36vw); max-width: none; } }
/* play / pause on the small video */
.video-box .mini-pp { display: none; }
.video-box.is-mini .mini-pp { display: grid; place-items: center; position: absolute; z-index: 3; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); cursor: pointer;
  background: rgba(18,10,5,.55); color: #fff; box-shadow: 0 3px 12px rgba(0,0,0,.45); opacity: .9; transition: opacity .2s, background .2s; }
.video-box.is-mini .mini-pp:hover { background: rgba(18,10,5,.8); opacity: 1; }
.video-box.is-mini .mini-pp:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
@media (max-width: 600px) { .video-box.is-mini .mini-pp { width: 44px; height: 44px; } }

/* the small video's buttons only show after a tap, then fade away */
.video-box .mini-tap { display: none; }
.video-box.is-mini .mini-tap { display: block; position: absolute; inset: 0; z-index: 2; cursor: pointer; background: transparent; }
.video-box.is-mini .mini-pp, .video-box.is-mini .mini-ctl { opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.video-box.is-mini.ctl-on .mini-pp { opacity: .92; pointer-events: auto; }
.video-box.is-mini.ctl-on .mini-ctl { opacity: 1; pointer-events: auto; }
.video-box.is-mini .mini-pp:focus-visible, .video-box.is-mini .mini-ctl button:focus-visible { opacity: 1; pointer-events: auto; }
.video-box.is-mini .mini-ctl:focus-within { opacity: 1; pointer-events: auto; }

/* ===================== Homepage redesign: calm and in order ===================== */
.band { padding-block: 44px; }
.band-head { margin-bottom: 18px; }
.band-head h2 { font-size: clamp(22px, 2.6vw, 28px); }

/* --- one sponsor bar under the video --- */
.spb { width: min(760px, 100%); }
.spb-bar { all: unset; box-sizing: border-box; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 18px;
  border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(212,171,94,.5); color: var(--on-navy); transition: background .15s, border-color .15s; }
.spb-bar:hover { background: rgba(255,255,255,.12); border-color: var(--gold-bright); }
.spb-bar:focus-visible { outline: 3px solid var(--gold-bright); outline-offset: 2px; }
.spb-star { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-bright); color: #2b170c; font-size: 18px; }
.spb-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.spb-text b { font: 700 18px/1.25 var(--f-display); color: #f3cf86; }
.spb-text small { font-size: 13.5px; color: rgba(245,234,216,.8); overflow-wrap: anywhere; }
.spb-go { flex: none; font-size: 26px; line-height: 1; color: var(--gold-bright); transition: transform .2s; }
[dir="rtl"] .spb-go { transform: scaleX(-1); }
.spb-bar[aria-expanded="true"] .spb-go { transform: rotate(90deg); }
.spb-panel { position: relative; margin-top: 10px; background: var(--surface); color: var(--ink); border-radius: 14px; padding: 20px 18px 16px; border: 1px solid rgba(212,171,94,.5); box-shadow: 0 12px 30px rgba(0,0,0,.25); text-align: start; }
.spb-x { position: absolute; top: 8px; inset-inline-end: 8px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-3); font-size: 16px; cursor: pointer; }
.spb-x:hover { background: var(--gold-soft); }
.spr-what { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 16px; padding-inline-end: 34px; }
.spr-what button { display: grid; gap: 2px; text-align: center; padding: 12px 10px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; font: inherit; }
.spr-what button b { font: 700 17px/1.2 var(--f-display); }
.spr-what button small { font-size: 12.5px; color: var(--ink-3); }
.spr-what button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.spr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.spr-f { display: grid; gap: 5px; min-width: 0; }
.spr-wide, .spr-taken { grid-column: 1 / -1; }
.spr-f label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.spr-f input, .spr-f select { font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); width: 100%; min-width: 0; box-sizing: border-box; }
.spr-f input:focus, .spr-f select:focus { outline: 2px solid var(--gold); border-color: transparent; }
.spr-pair { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 8px; }
.spr-heb { font-size: 13px; color: var(--gold); font-weight: 600; min-height: 1.2em; }
.spr-taken { margin: 0; font-size: 13.5px; color: #8a4b12; background: #fbecd2; border-radius: 8px; padding: 8px 12px; }
.spr-send { margin-top: 16px; width: 100%; justify-content: center; padding: 13px; font-size: 16px; }
.spr-status { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-2); min-height: 1em; text-align: center; }
.spr-done { text-align: center; padding: 8px 6px; }
.spr-done-star { width: 50px; height: 50px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-bright); color: #2b170c; font-size: 22px; }
.spr-done h3 { font-size: 22px; margin: 0 0 6px; }
.spr-done p { color: var(--ink-2); line-height: 1.6; margin: 0 0 12px; }
@media (max-width: 600px) {
  .spr-grid { grid-template-columns: 1fr; }
  .spr-pair { grid-template-columns: 1fr; }
  .spb-text b { font-size: 16px; }
  .spb-text small { font-size: 12.5px; }
}

/* --- the calendar: smaller and lighter --- */
#calendar-band .wrap { max-width: 860px; }
.cal { padding: 16px; }
.cal-bar { padding-bottom: 10px; margin-bottom: 8px; }
.cal-bar .cal-title h3 { font-size: 22px; }
.cal-title span { font-size: 13px; }
.cal-btn { height: 34px; min-width: 34px; padding: 0 10px; }
.cal-mode button { padding: 5px 11px; font-size: 13px; }
.cal-week, .cal-grid { gap: 5px; }
.cal-week span { font-size: 12px; padding: 3px 0; }
.cd { min-height: 70px; padding: 6px 7px; gap: 3px; border-radius: 8px; }
.cd-h { font-size: 17px; }
.cd.is-today .cd-h { font-size: 19px; }
.cd-g { font-size: 10.5px; }
.cd-sp { font-size: 11px; line-height: 1.3; -webkit-line-clamp: 2; }
.cd-parsha { font-size: 11px; }
.cd-mini { font-size: 10.5px; margin-top: 2px; }
.cd-tag { font-size: 10px; padding: 2px 6px; }
.cal-legend { margin-top: 10px; font-size: 12px; gap: 14px; }
.day-panel { padding: 18px; gap: 18px; margin-top: 14px; }
.dp-date h3 { font-size: 22px; }
.dp-name { font-size: 20px; }
.dp-give { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
  padding: 8px 14px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--line)); color: var(--gold); font-weight: 600; font-size: 14px; }
.dp-give:hover { background: var(--gold-soft); }
.dp-give:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
@media (max-width: 600px) { .cd { min-height: 50px; padding: 4px; } .cd-h { font-size: 15px; } .cal { padding: 10px; } }
/* partners strip inside the calendar box */
.partners-in { margin-top: 14px; border: 1px solid rgba(212,171,94,.45); border-radius: 12px; overflow: hidden; }
.partners-in .pt-strip { padding: 8px 12px; max-width: none; }

/* --- the week: seven even tiles --- */
#week-band .week-layout { display: block; }
#week-band .today { display: none; }
#week-band .wrap { max-width: 980px; }
.week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day { padding: 10px 10px 9px; gap: 2px; border-radius: 10px; text-align: center; align-items: center; }
.day .dl { font-size: 16px; }
.day .dh { font-size: 12.5px; }
.day .dd { font-size: 11.5px; padding-top: 6px; justify-content: center; }
.day .tag { display: block; margin: 4px auto 0; width: max-content; }
@media (max-width: 760px) { .week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 420px) { .week { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* --- the maggid shiur: a bit more compact --- */
.about .wrap { padding-block: 48px; }

/* --- views --- */
.band-views { padding-block: 30px; }
.band-views .views-total { margin-top: 0; }

/* --- the books: small and quiet --- */
.band-books { padding-block: 30px; }
.band-books .band-head { margin-bottom: 12px; }
.band-books .band-head h2 { font-size: 20px; }
.band-books .band-head p, .band-books .fineprint { font-size: 13px; }
.band-books .books { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.band-books .book { grid-template-columns: 70px 1fr; gap: 12px; padding: 12px; border-radius: 10px; box-shadow: none; }
.band-books .book h3 { font-size: 16px; }
.band-books .book p { font-size: 13px; margin: 4px 0 0; }
.band-books .book .opts { gap: 5px; margin-top: 8px; }
.band-books .book .opt { padding: 6px 10px; font-size: 13px; }

/* --- the sponsor bar: bold gold --- */
.spb-bar { padding: 14px 16px; gap: 14px; border-radius: 16px; border: 0;
  background: linear-gradient(135deg, #e7c47a, #d4ab5e 55%, #c39443); color: #2b170c;
  box-shadow: 0 10px 26px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.5); transition: transform .15s, box-shadow .15s; }
.spb-bar:hover { background: linear-gradient(135deg, #efd08f, #dcb66b 55%, #c99c4c); transform: translateY(-1px); box-shadow: 0 14px 30px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.55); }
.spb-bar:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.spb-star { width: 46px; height: 46px; font-size: 22px; background: #2b170c; color: #f3cf86; box-shadow: 0 0 0 4px rgba(43,23,12,.15); }
.spb-text b { font: 900 21px/1.2 var(--f-display); color: #2b170c; }
.spb-text small { font-size: 14px; font-weight: 600; color: #4a2914; }
.spb-cta { flex: none; padding: 10px 20px; border-radius: 99px; background: #2b170c; color: #f3cf86; font: 700 16px/1 var(--f-ui); white-space: nowrap; }
.spb-bar[aria-expanded="true"] .spb-cta { background: #4a2914; }
@media (max-width: 600px) {
  .spb-bar { padding: 12px; gap: 10px; }
  .spb-star { width: 38px; height: 38px; font-size: 18px; }
  .spb-text b { font-size: 18px; }
  .spb-text small { font-size: 12.5px; }
  .spb-cta { padding: 9px 13px; font-size: 14px; }
}
/* company logo in the sponsor form */
.spr-logo-in { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spr-logo-in input[type=file] { flex: 1 1 200px; padding: 8px; background: var(--paper); }
#spr-logo-prev { height: 52px; max-width: 140px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px; }
.fb-logo { display: block; max-height: 56px; max-width: 150px; margin: 6px 0; background: #fff; border-radius: 6px; padding: 3px; border: 1px solid var(--line); }
/* archive page */
.arch-main { min-height: 60vh; }
.arch-back { color: var(--gold); font-weight: 600; text-decoration: none; font-size: 14px; }
.arch-back:hover { text-decoration: underline; }

/* admin only: a thin line on top, the tools are on admin.html */
.adm-note { background: #2b170c; color: #f3e7d4; text-align: center; font-size: 13px; padding: 6px 12px; }
.adm-note a { color: #f3cf86; font-weight: 700; margin-inline-start: 6px; }

/* ===================== Statistics page ===================== */
.st-more { display: flex; width: max-content; margin: 14px auto 0; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 99px;
  background: var(--navy); color: #f3cf86; font-weight: 700; text-decoration: none; }
.st-more:hover { background: var(--navy-2); }
.st-head { background: linear-gradient(180deg, var(--navy), #4a2914); color: var(--on-navy); text-align: center; border-bottom: 1px solid rgba(212,171,94,.4); }
.st-head .wrap { padding-block: 22px 34px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.st-head .arch-back { align-self: flex-start; color: #f3cf86; }
.st-logo { width: min(260px, 60vw); height: auto; filter: drop-shadow(0 8px 22px rgba(0,0,0,.4)); margin-top: 6px; }
.st-head h1 { font: 900 clamp(30px, 5vw, 46px)/1.1 var(--f-display); color: #f3cf86; margin: 6px 0 0; }
.st-sub { margin: 0; color: rgba(245,234,216,.85); font-size: 16px; }
.st-date { display: grid; gap: 2px; margin-top: 8px; padding: 10px 22px; border: 1px solid rgba(212,171,94,.45); border-radius: 14px; background: rgba(255,255,255,.05); }
.st-date b { font: 700 20px/1.3 var(--f-display); color: #fff; }
.st-date span { font-size: 13px; color: rgba(245,234,216,.75); }
.st-since { margin: 4px 0 0; font-size: 13.5px; color: rgba(245,234,216,.75); }
.st-body { max-width: 900px; padding-block: 28px 56px; display: grid; gap: 34px; }
.st-hero-num { text-align: center; display: grid; gap: 4px; justify-items: center; }
.st-big { font: 900 clamp(44px, 9vw, 80px)/1 var(--f-display); color: var(--gold); }
.st-big-lab { font-size: 17px; color: var(--ink-2); max-width: 30em; }
.st-hero-num small { color: var(--ink-3); font-size: 13px; }
.st-sec h2 { font-size: 22px; margin: 0 0 4px; }
.st-note { margin: 0 0 12px; color: var(--ink-3); font-size: 14px; }
.st-plats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }
.st-plat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: grid; gap: 6px; }
.st-plat h3 { font: 600 15px/1.2 var(--f-ui); color: var(--ink-2); margin: 0; }
.st-plat > b { font: 900 30px/1.1 var(--f-display); color: var(--ink); }
.st-plat small { color: var(--ink-3); font-size: 12.5px; line-height: 1.5; }
.st-pct { font-size: 13px; color: var(--ink-2); font-weight: 600; }
.st-bt { display: block; height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--gold) 14%, var(--paper)); overflow: hidden; }
.st-bt i { display: block; height: 100%; border-radius: 99px; background: var(--gold-bright); }
.st-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.st-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 4px; text-align: center; }
.st-tile b { font: 900 26px/1.15 var(--f-display); color: var(--gold); }
.st-tile span { font-size: 13px; color: var(--ink-2); }
.st-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.st-bars li { display: grid; grid-template-columns: minmax(90px, 200px) minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.st-bl { font-weight: 600; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.st-bl:hover { color: var(--gold); text-decoration: underline; }
.st-bars .st-bt { height: 14px; border-radius: 4px; }
.st-bars .st-bt i { border-radius: 4px; }
.st-bv { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; min-width: 4.5em; text-align: end; }
@media (max-width: 600px) {
  .st-bars li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; }
  .st-bars .st-bl { grid-column: 1 / -1; white-space: normal; }
  .st-tile b { font-size: 22px; }
}
.st-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 600px) { .st-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* stats: sponsors & partners */
.st-sp .st-tiles { margin-bottom: 14px; }
.st-cos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.st-co { display: grid; justify-items: center; gap: 6px; padding: 14px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-align: center; text-decoration: none; color: var(--ink); }
a.st-co:hover { border-color: var(--gold); }
.st-co img { height: 48px; max-width: 120px; object-fit: contain; background: #fff; border-radius: 6px; padding: 3px; }
.st-co-mono { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); font: 700 22px/1 var(--f-display); }
.st-co b { font-size: 15px; overflow-wrap: anywhere; }
.st-co small { color: var(--ink-3); font-size: 12px; }
.st-sp-go { margin-top: 16px; }

/* top menu: every option in its own outlined box – easy to see and to press */
.nav { gap: 6px; }
.nav a:not(.btn-gold) { border: 1px solid rgba(212,171,94,.5); border-radius: 9px; padding: 7px 12px; color: #f5ead8; font-weight: 600; font-size: 14.5px;
  background: rgba(255,255,255,.04); transition: background .15s, border-color .15s; }
.nav a:not(.btn-gold):hover { border-color: var(--gold-bright); background: rgba(212,171,94,.16); color: #fff; }
.nav a[aria-current="page"] { border-color: var(--gold-bright) !important; background: rgba(212,171,94,.24) !important; color: #f3cf86 !important; }
.nav a:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 2px; }
@media (min-width: 901px) and (max-width: 1180px) { .nav a:not(.btn-gold) { padding: 6px 9px; font-size: 13.5px; } .nav { gap: 4px; } }
@media (max-width: 900px) {
  .nav.open { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .nav a:not(.btn-gold) { padding: 13px 12px; font-size: 16px; text-align: center; }
  .nav .btn-gold { grid-column: 1 / -1; margin-top: 2px; padding: 13px; }
}
/* stats page photo */
.st-photo { margin: 0; position: relative; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 44px rgba(43,23,12,.28); border: 1px solid rgba(212,171,94,.5); }
.st-photo img { display: block; width: 100%; height: auto; }
.st-photo figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 40px 18px 14px; text-align: center; color: #f3cf86;
  font: 700 clamp(18px, 2.6vw, 26px)/1.3 var(--f-display); background: linear-gradient(180deg, transparent, rgba(20,10,4,.82)); }
/* stats photo: a framed gold box with the daily number */
.st-photo figcaption.st-ph-box { position: absolute; inset-inline: auto 4%; top: 50%; bottom: auto; transform: translateY(-50%); width: min(300px, 34%);
  display: grid; justify-items: center; gap: 4px; padding: 22px 18px 18px; text-align: center; color: #f5ead8; font: inherit;
  background: rgba(30,16,7,.72); border: 2px solid var(--gold-bright); border-radius: 16px; box-shadow: 0 0 0 6px rgba(212,171,94,.18), 0 14px 34px rgba(0,0,0,.4);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.st-ph-pre { font-size: 15px; color: rgba(245,234,216,.85); }
.st-ph-box b { font: 900 clamp(34px, 5vw, 54px)/1 var(--f-display); color: #f3cf86; }
.st-ph-lab { font: 700 clamp(15px, 1.9vw, 19px)/1.3 var(--f-display); color: #fff; }
.st-ph-sub { font-size: 13.5px; color: rgba(245,234,216,.85); padding-top: 8px; margin-top: 4px; border-top: 1px solid rgba(212,171,94,.45); width: 100%; }
.st-ph-name { font: 700 13px/1.3 var(--f-display); color: #f3cf86; margin-top: 6px; }
@media (max-width: 640px) {
  .st-photo { border-radius: 14px; }
  .st-photo figcaption.st-ph-box { position: static; transform: none; width: auto; border-radius: 0 0 14px 14px; border-width: 0; border-top: 2px solid var(--gold-bright); box-shadow: none; background: #2b170c; padding: 16px; }
}

/* ===== One round menu button (six dots, one for each option); the six boxes open from it with a short animation ===== */
.site-head .wrap { position: relative; }
.site-head .menu-btn { display: inline-grid !important; grid-template-columns: repeat(3, 5px); grid-auto-rows: 5px; gap: 4px; place-content: center;
  width: 46px; height: 46px; border-radius: 50%; padding: 0; flex: none; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #4a2914, #2b170c); border: 2px solid var(--gold-bright);
  box-shadow: 0 0 0 4px rgba(212,171,94,.16), 0 4px 12px rgba(0,0,0,.35); transition: transform .25s ease, box-shadow .2s; }
.site-head .menu-btn:hover { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(212,171,94,.22), 0 6px 16px rgba(0,0,0,.4); }
.site-head .menu-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.site-head .menu-btn i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-bright); transition: transform .3s ease, opacity .3s ease; }
.site-head .menu-btn[aria-expanded="true"] { transform: rotate(90deg); background: radial-gradient(circle at 35% 30%, #6b4527, #3a2010); }
.site-head .menu-btn[aria-expanded="true"] i:nth-child(odd) { transform: scale(1.25); }
.site-head .menu-btn[aria-expanded="true"] i:nth-child(even) { opacity: .45; }
.head-donate { flex: none; padding: 10px 18px; font-size: 15px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.lang + .menu-btn + .nav { margin: 0 !important; }

/* the panel: hidden until the button is pressed, on every screen size */
.site-head .nav { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  position: absolute; top: calc(100% + 8px); inset-inline-end: 16px; width: min(480px, calc(100vw - 32px)); margin: 0 !important;
  padding: 14px; border-radius: 18px; background: #2b170c; border: 1px solid rgba(212,171,94,.55); box-shadow: 0 22px 50px rgba(0,0,0,.45);
  flex-direction: unset; align-items: stretch; z-index: 80;
  opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.96); transform-origin: top left;
  transition: opacity .22s ease, transform .26s cubic-bezier(.2,.8,.2,1), visibility 0s linear .26s; }
[dir="ltr"] .site-head .nav { transform-origin: top right; }
.site-head .nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity .22s ease, transform .26s cubic-bezier(.2,.8,.2,1), visibility 0s; }
.site-head .nav a, .site-head .nav a:not(.btn-gold) { display: grid; place-items: center; text-align: center; min-height: 64px; padding: 12px 8px !important; border-radius: 14px;
  border: 1.5px solid rgba(212,171,94,.55); background: rgba(255,255,255,.05); color: #f5ead8; font: 700 16px/1.25 var(--f-display) !important;
  opacity: 0; transform: translateY(8px) scale(.94); transition: opacity .25s ease, transform .3s cubic-bezier(.2,.8,.2,1), background .15s, border-color .15s; }
.site-head .nav.open a { opacity: 1; transform: none; }
.site-head .nav.open a:nth-child(1) { transition-delay: .03s, .03s, 0s, 0s; }
.site-head .nav.open a:nth-child(2) { transition-delay: .06s, .06s, 0s, 0s; }
.site-head .nav.open a:nth-child(3) { transition-delay: .09s, .09s, 0s, 0s; }
.site-head .nav.open a:nth-child(4) { transition-delay: .12s, .12s, 0s, 0s; }
.site-head .nav.open a:nth-child(5) { transition-delay: .15s, .15s, 0s, 0s; }
.site-head .nav.open a:nth-child(6) { transition-delay: .18s, .18s, 0s, 0s; }
.site-head .nav a:hover { background: rgba(212,171,94,.2); border-color: var(--gold-bright); color: #fff; }
.site-head .nav a[aria-current="page"] { background: rgba(212,171,94,.26) !important; border-color: var(--gold-bright) !important; color: #f3cf86 !important; }
@media (max-width: 600px) {
  .site-head .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); inset-inline: 12px; width: auto; }
  .site-head .menu-btn { width: 42px; height: 42px; }
  .head-donate { padding: 8px 12px; font-size: 14px; }
  .brand-name small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .site-head .nav, .site-head .nav a, .site-head .menu-btn, .site-head .menu-btn i { transition: none !important; }
}
@media (max-width: 600px) {
  .brand-name { white-space: nowrap; font-size: 15px; }
  .brand-logo { width: 34px; height: auto; }
  .site-head .wrap { gap: 8px; }
  .lang button { padding: 6px 7px; font-size: 12px; }
}
@media (max-width: 360px) { .brand-name { display: none; } }
/* sponsor form: three choices, any amount, anonymous */
.spr-what { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.spr-any { display: grid; gap: 10px; }
.spr-any[hidden] { display: none; }
.spr-any > label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.spr-chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.spr-chips button { padding: 11px 4px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 700 16px/1 var(--f-ui); cursor: pointer; }
.spr-chips button[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.spr-amt-in { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; background: #fff; padding: 0 12px; }
.spr-amt-in span { font: 700 18px/1 var(--f-ui); color: var(--gold); }
.spr-amt-in input { flex: 1; border: 0; outline: 0; padding: 11px 0; font: inherit; font-size: 17px; background: transparent; color: var(--ink); min-width: 0; }
.spr-amt-in:focus-within { outline: 2px solid var(--gold); border-color: transparent; }
.spr-note { margin: 0; font-size: 13.5px; color: var(--ink-3); }
.spr-anon { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px dashed color-mix(in srgb, var(--gold) 55%, var(--line)); border-radius: 10px; background: var(--paper); cursor: pointer; }
.spr-anon input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold); flex: none; }
.spr-anon b { font-size: 15px; }
.spr-anon small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
#spr-grid[hidden] { display: none; }
@media (max-width: 600px) {
  .spr-what { gap: 6px; padding-inline-end: 30px; }
  .spr-what button { padding: 10px 4px; }
  .spr-what button b { font-size: 15px; }
  .spr-chips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* phone header: the name gives way, the buttons always fit */
@media (max-width: 600px) {
  .site-head .brand { min-width: 0; flex: 1 1 auto; overflow: hidden; }
  .site-head .brand-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .site-head .lang { margin-inline-start: 0; }
  .head-donate { padding: 8px 10px; }
}
@media (max-width: 400px) { .site-head .brand-name { display: none; } }

/* ---------- v52: calendar closed until the sponsor bar is pressed ---------- */
.band-cal[hidden] { display: none !important; }
.band-cal.cal-open { animation: calDrop .38s ease-out; }
@keyframes calDrop { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.band-cal .band-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cal-close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line, rgba(0,0,0,.15)); background: var(--surface, #fff); color: var(--ink-2, #4a2914); font-size: 17px; cursor: pointer; }
.cal-close:hover { background: var(--gold-soft, #f6ead1); }
.cal-pick { margin: -6px 0 14px; font-size: 15px; color: var(--ink-3, #7a5a3d); }
.cal-any { display: block; margin: 14px auto 0; padding: 10px 18px; border-radius: 99px; border: 1.5px dashed rgba(184,134,52,.7); background: transparent; color: var(--ink-2, #4a2914); font: 600 15px/1.3 var(--f-ui); cursor: pointer; }
.cal-any:hover { background: var(--gold-soft, #f6ead1); }
.band-cal .spb-panel { max-width: 760px; margin: 18px auto 0; scroll-margin-top: 80px; }
.band-cal { scroll-margin-top: 64px; }
.spb-eye { font-size: 12.5px !important; font-weight: 700 !important; letter-spacing: .02em; color: #6b4527 !important; text-transform: none; }
.spb-has .spb-text b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spb-has .spb-cta { background: transparent; color: #2b170c; border: 2px solid #2b170c; padding: 8px 16px; }
/* ---------- v53: partners line always under the sponsor bar ---------- */
.partners-top { margin-top: 10px; background: rgba(28,14,6,.55); }
.partners-top .pt-strip { padding: 8px 12px; }
.pt-empty .pt-track { animation: none; width: auto; }
.pt-empty .pt-view { -webkit-mask-image: none; mask-image: none; direction: rtl; }
.pt-empty .pt-item b { font-weight: 500; color: rgba(243,231,212,.85); white-space: normal; }
/* ---------- v54: sign-in gate ---------- */
html.gate-wait body > *:not(.gate), html.gate-on body > *:not(.gate) { visibility: hidden; }
html.gate-on, html.gate-on body { overflow: hidden; }
.gate { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 20px 16px; overflow-y: auto; visibility: visible;
  background: radial-gradient(120% 80% at 50% 0%, #7a5032 0%, #4a2914 55%, #2b170c 100%); }
.gate-card { width: min(420px, 100%); background: var(--surface, #fffaf1); color: var(--ink, #2b170c); border-radius: 20px; padding: 26px 22px 18px; text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.45); border: 1px solid rgba(212,171,94,.6); animation: gateIn .35s ease-out; }
@keyframes gateIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.gate-lang { display: inline-flex; gap: 4px; margin-bottom: 10px; background: rgba(184,134,52,.12); border-radius: 99px; padding: 3px; }
.gate-lang button { border: 0; background: transparent; padding: 5px 12px; border-radius: 99px; font: 600 13px/1 var(--f-ui); color: var(--ink-2, #4a2914); cursor: pointer; }
.gate-lang button[aria-pressed="true"] { background: #2b170c; color: #f3cf86; }
.gate-logo { display: block; width: 150px; max-width: 60%; height: auto; margin: 4px auto 8px; }
.gate h2 { margin: 0 0 6px; font: 900 26px/1.2 var(--f-display); color: #4a2914; }
.gate-sub { margin: 0 0 18px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2, #4a2914); }
.gate-ok { background: #f3ead6; border-radius: 12px; padding: 12px; }
.gate-google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 16px; border-radius: 12px; border: 1px solid #d9cbb3; background: #fff;
  font: 700 16px/1 var(--f-ui); color: #1f1f1f; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.gate-google:hover { background: #f8f8f8; }
.gate-or { display: flex; align-items: center; gap: 10px; margin: 16px 0; color: var(--ink-3, #7a5a3d); font-size: 13.5px; }
.gate-or::before, .gate-or::after { content: ""; flex: 1; height: 1px; background: #e3d6bf; }
.gate-form { display: grid; gap: 10px; }
.gate-form input { width: 100%; box-sizing: border-box; padding: 13px 14px; border-radius: 12px; border: 1px solid #d9cbb3; font: 500 16px/1.2 var(--f-ui); background: #fff; color: #2b170c; text-align: center; }
.gate-form input:focus { outline: 2px solid #c99c4c; outline-offset: 1px; }
.gate-form .btn-gold { width: 100%; justify-content: center; padding: 13px; font-size: 16px; }
.gate-link { margin-top: 6px; border: 0; background: none; color: #8a5a2b; font: 600 14.5px/1 var(--f-ui); text-decoration: underline; cursor: pointer; }
.gate-note { margin: 10px 0 0; font-size: 13px; line-height: 1.45; color: #8a4b1a; background: #fbefd9; border-radius: 10px; padding: 8px 10px; }
.gate-err { margin: 12px 0 0; color: #b3261e; font-size: 14px; font-weight: 600; }
.gate-priv { margin: 16px 0 0; font-size: 12px; color: var(--ink-3, #7a5a3d); }
.who { font-size: 13px; opacity: .9; }
.who-out { border: 0; background: none; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
/* ---------- v58: views band above the video ---------- */
.vc { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 14px 0 4px; padding: 12px 16px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(243,207,134,.16), rgba(243,207,134,.06)); border: 1px solid rgba(212,171,94,.45); animation: vcIn .5s ease-out; }
@keyframes vcIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.vc[hidden] { display: none; }
.vc-main { display: flex; align-items: center; gap: 10px; }
.vc-eye { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #f3cf86, #c99c4c); color: #2b170c; flex: none; }
.vc-n { font: 900 30px/1 var(--f-display); color: #f3cf86; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.vc-l { display: grid; font: 700 15px/1.2 var(--f-ui); color: #f5ead8; }
.vc-l small { font-weight: 500; font-size: 12.5px; color: rgba(245,234,216,.7); }
.vc-plats { display: flex; flex-wrap: wrap; gap: 8px; margin-inline-start: auto; }
.vc-p { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 9px; border-radius: 99px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); white-space: nowrap; }
.vc-p svg { flex: none; }
.vc-pn { font: 600 13px/1 var(--f-ui); color: rgba(245,234,216,.85); }
.vc-p b { font: 700 14.5px/1 var(--f-ui); color: #fff; }
.vc-p small { font-size: 11.5px; color: rgba(245,234,216,.65); }
@media (max-width: 600px) {
  .vc { padding: 10px 12px; gap: 10px; }
  .vc-n { font-size: 26px; }
  .vc-eye { width: 32px; height: 32px; }
  .vc-plats { margin-inline-start: 0; width: 100%; }
  .vc-p { padding: 5px 9px 5px 7px; }
  .vc-pn { display: none; }
}
.shiur-top { display: flow-root; }

/* ---------- v59: views = just a small number ---------- */
.vc { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 6px; margin: 10px 0 0; padding: 4px 11px; border-radius: 99px;
  background: rgba(243,207,134,.12); border: 1px solid rgba(212,171,94,.4); color: #f3cf86; animation: none; }
.vc[hidden] { display: none; }
.vc .vc-n { font: 700 15px/1.2 var(--f-ui); color: #f3cf86; letter-spacing: 0; font-variant-numeric: tabular-nums; min-width: 4ch; }
@media (max-width: 600px) { .vc { padding: 3px 10px; } .vc .vc-n { font-size: 14px; } }

/* ---------- v62: today's views on the homepage picture ---------- */
.tv-views { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px;
  border-radius: 99px; background: rgba(18,10,5,.72); border: 1px solid rgba(212,171,94,.55); color: #f3cf86; pointer-events: none;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.tv-views[hidden] { display: none; }
.tv-views b { font: 700 15px/1.2 var(--f-ui); font-variant-numeric: tabular-nums; min-width: 4ch; }
@media (max-width: 600px) { .tv-views { top: 8px; inset-inline-start: 8px; padding: 4px 9px; } .tv-views b { font-size: 13.5px; } }
/* ---------- v64: cover Batorah's logo corner (bottom right of the video) with our own label ---------- */
.video-box { container-type: inline-size; }
.wm-frame { position: absolute; inset: 0; margin: auto; width: 100%; aspect-ratio: 16 / 9; max-height: 100%; z-index: 1; pointer-events: none; }
.video-box:fullscreen .wm-frame { width: min(100%, calc(100vh * 16 / 9)); }
.wm { position: absolute; right: 0.6%; bottom: 1.2%; width: 20%; height: 11.5%; display: grid; place-items: center; border-radius: 1cqw;
  background: rgba(24,14,7,.62); -webkit-backdrop-filter: blur(14px) saturate(.8); backdrop-filter: blur(14px) saturate(.8);
  border: 1px solid rgba(212,171,94,.45); color: #f3cf86; font: 700 2.3cqw/1 var(--f-display); letter-spacing: .02em; white-space: nowrap; }
.video-box.is-mini .wm { font-size: 2.6cqw; }
.tv-box { container-type: inline-size; }
.tv-box .wm-frame { z-index: 1; }

/* ---------- v66: paying inside our page ---------- */
.pay[hidden] { display: none; }
.pay-back { border: 0; background: none; color: #8a5a2b; font: 600 14px/1 var(--f-ui); cursor: pointer; padding: 4px 0 10px; }
.pay-sum { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: #f6ead1; border: 1px solid rgba(184,134,52,.35); }
.pay-sum b { font: 900 26px/1 var(--f-display); color: #4a2914; }
.pay-sum span { font-size: 14px; color: #4a2914; }
.pay-how { margin: 14px 0 8px; font: 700 15px/1.3 var(--f-ui); color: var(--ink, #2b170c); }
.pay-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.pay-tabs button { border: 1px solid #d9cbb3; background: #fff; color: #2b170c; border-radius: 99px; padding: 8px 14px; font: 600 14px/1 var(--f-ui); cursor: pointer; }
.pay-tabs button[aria-selected="true"] { background: #2b170c; color: #f3cf86; border-color: #2b170c; }
.pay-note { margin: 12px 0 8px; font-size: 13.5px; color: var(--ink-3, #7a5a3d); }
.pay-frame { border: 1px solid #e3d6bf; border-radius: 12px; overflow: hidden; background: #fff; }
.pay-frame iframe { display: block; width: 100%; height: 640px; border: 0; }
.pay-frame.pay-card iframe { height: 900px; }
.pay-newwin { display: inline-block; margin-top: 6px; font-size: 13px; color: #8a5a2b; }
.pay-ojc { display: inline-flex; margin: 4px 0 6px; }
.pay-after { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px dashed #e3d6bf; }
.pay-after span { font-size: 14px; color: var(--ink-2, #4a2914); }
@media (max-width: 600px) { .pay-frame iframe { height: 560px; } .pay-frame.pay-card iframe { height: 980px; } .pay-tabs button { padding: 7px 11px; font-size: 13px; } }
/* ---------- v71: how often (once / every month / every year) ---------- */
.spr-freq-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.spr-freq-btns button { border: 1px solid #d9cbb3; background: #fff; color: #2b170c; border-radius: 99px; padding: 8px 14px; font: 600 14px/1 var(--f-ui); cursor: pointer; }
.spr-freq-btns button[aria-pressed="true"] { background: #2b170c; color: #f3cf86; border-color: #2b170c; }
.spr-mday { margin-top: 10px; }
.spr-mday small { display: block; margin-bottom: 6px; color: var(--ink-3, #7a5a3d); font-size: 13px; }
.spr-mday-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.spr-mday-grid button { border: 1px solid #e3d6bf; background: #fffaf1; border-radius: 8px; padding: 7px 0; font: 700 14px/1 var(--f-display); color: #4a2914; cursor: pointer; }
.spr-mday-grid button[aria-pressed="true"] { background: linear-gradient(135deg, #f3cf86, #c99c4c); border-color: #b8862f; color: #2b170c; }
.spr-freq-note { display: block; margin-top: 8px; font-weight: 700; color: #8a5a2b; font-size: 13.5px; }
.pay-rec { margin: 0 0 8px; padding: 8px 10px; border-radius: 10px; background: #fbefd9; color: #6b4527; font-size: 13.5px; font-weight: 600; }
@media (max-width: 600px) { .spr-mday-grid { grid-template-columns: repeat(6, 1fr); } }
/* ---------- v74: ❤ like a shiur, then a small gift ---------- */
.like { display: inline-flex; align-items: center; gap: 6px; margin: 10px 8px 0 0; padding: 4px 12px; border-radius: 99px; cursor: pointer;
  background: rgba(243,207,134,.12); border: 1px solid rgba(212,171,94,.4); color: #f3cf86; font: 700 15px/1.2 var(--f-ui); vertical-align: top; }
[dir="rtl"] .like { margin: 10px 0 0 8px; }
.like[hidden] { display: none; }
.like-heart { font-size: 17px; line-height: 1; color: rgba(243,207,134,.75); transition: transform .2s, color .2s; }
.like.on { background: rgba(214,69,80,.18); border-color: rgba(240,120,130,.6); }
.like.on .like-heart { color: #ff5a6a; }
.like.pop .like-heart { animation: likePop .45s ease-out; }
@keyframes likePop { 0% { transform: scale(1); } 40% { transform: scale(1.6); } 100% { transform: scale(1); } }
.like-ask { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(243,207,134,.14); border: 1px solid rgba(212,171,94,.45); color: #f5ead8; animation: vcIn .35s ease-out; }
.like-ask[hidden] { display: none; }
.la-t { display: block; font: 700 15px/1.4 var(--f-ui); margin-bottom: 8px; }
.la-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.la-chips button { border: 0; border-radius: 99px; padding: 8px 14px; font: 700 14px/1 var(--f-ui); cursor: pointer; background: linear-gradient(135deg, #f3cf86, #c99c4c); color: #2b170c; }
.la-chips button[data-la="0"] { background: rgba(255,255,255,.12); color: #f3cf86; border: 1px solid rgba(212,171,94,.5); }
.la-later { margin-top: 8px; border: 0; background: none; color: rgba(245,234,216,.7); font-size: 13px; text-decoration: underline; cursor: pointer; }
dialog.like-pay { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid rgba(212,171,94,.6); border-radius: 16px; background: #fffaf1; color: #2b170c; overflow: auto; }
dialog.like-pay::backdrop { background: rgba(20,10,4,.6); }
.lp-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #f6ead1; position: sticky; top: 0; z-index: 1; }
.lp-head b { font: 900 18px/1.2 var(--f-display); }
.lp-x { border: 0; background: none; font-size: 18px; cursor: pointer; width: 36px; height: 36px; border-radius: 50%; }
.lp-amt { display: flex; align-items: center; gap: 8px; padding: 10px 16px 0; font-weight: 700; }
.lp-amt input { width: 120px; padding: 8px 10px; border-radius: 10px; border: 1px solid #d9cbb3; font-size: 16px; }
.lp-tab { padding: 10px 16px 6px; font-weight: 700; font-size: 14px; }
#lp-frame { display: block; width: calc(100% - 24px); margin: 0 12px; height: 760px; border: 1px solid #e3d6bf; border-radius: 12px; background: #fff; }
.lp-others { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 16px; font-size: 13.5px; }
.lp-others a { color: #8a5a2b; font-weight: 600; }
.lp-foot { padding: 6px 16px 16px; }
.lp-done { padding: 30px 20px; text-align: center; }
.lp-star { font-size: 30px; color: #c99c4c; }
.lp-done p { font: 700 17px/1.5 var(--f-ui); margin: 8px 0 16px; }
/* ---------- v75: download (MP3 + PDF) ---------- */
.dl-wrap { position: relative; display: inline-block; vertical-align: top; }
.dl-btn { display: inline-flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 4px 12px; border-radius: 99px; cursor: pointer;
  background: rgba(243,207,134,.12); border: 1px solid rgba(212,171,94,.4); color: #f3cf86; font: 700 14px/1.2 var(--f-ui); }
.dl-btn[hidden] { display: none; }
.dl-menu { position: absolute; top: calc(100% + 6px); inset-inline-start: 0; z-index: 30; display: grid; min-width: 210px; padding: 6px; border-radius: 12px;
  background: #fffaf1; border: 1px solid rgba(212,171,94,.6); box-shadow: 0 12px 28px rgba(0,0,0,.3); }
.dl-menu[hidden] { display: none; }
.dl-menu a, .dl-menu button { display: block; text-align: start; padding: 10px 12px; border-radius: 8px; border: 0; background: none; color: #2b170c; font: 600 14.5px/1.2 var(--f-ui); text-decoration: none; cursor: pointer; }
.dl-menu a:hover, .dl-menu button:hover { background: #f6ead1; }
.dl-menu button:disabled { opacity: .6; cursor: wait; }
.dl-st { display: block; padding: 0 12px; font-size: 12.5px; color: #8a5a2b; }
.dl-st:empty { display: none; }
/* v77: comment name locked to the account */
.fb-locked { background: #f3ead6 !important; color: #4a2914; cursor: not-allowed; }
.fb-name-note { display: block; margin-top: 4px; font-size: 12px; color: #8a5a2b; }
.fb-name-note:empty { display: none; }

/* ---------- Player bar: one slim row while reading; a tap opens the rest ---------- */
.ctrl.more { display: none; }
.player.is-compact { padding-bottom: 8px; }
.player.is-compact .wrap { padding-top: 8px; }
.player.is-compact .ctrl.main { width: 42px; height: 42px; }
.player.is-compact .ctrl.more { display: grid; }
.player.is-compact .ctrl.more[aria-expanded="true"] { background: rgba(220,176,88,.2); border-color: var(--gold-bright); color: var(--gold-bright); }
.player.is-compact .times { font-size: 11px; }
/* the settings drop down over the text (nothing on the page moves) */
.player.is-compact .subrow {
  display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0;
  padding: 10px max(20px, calc((100% - var(--read)) / 2 + 20px)) 14px;
  background: var(--navy); border-bottom: 1px solid rgba(212,171,94,.3); box-shadow: 0 12px 24px rgba(43,23,12,.3);
}
.player.is-compact.is-open .subrow { display: flex; }
/* the small video never hides the last lines: the page can scroll them up above it */
body:has(.video-box.is-mini) .reader { padding-bottom: calc(90px + min(30vw, 320px)); }

/* ---------- 2026-11-11 maggid shiur's requests ---------- */
/* views: small text at the end of the info line, pressable */
.meta-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.vmini { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer;
  color: rgba(243,241,234,.7); font: 500 14px/1.2 var(--f-ui); font-variant-numeric: tabular-nums; }
.vmini[hidden] { display: none; }
.vmini::before { content: "·"; margin-inline-end: 6px; color: rgba(243,241,234,.5); }
.vmini:hover, .vmini[aria-expanded="true"] { color: #f3cf86; }
.vmini-lh::before { content: none; }
.vmini-lh { font-size: 13px; padding: 5px 10px; border-radius: 99px; border: 1px solid rgba(212,171,94,.3); }
.views-note { margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(243,207,134,.1); border: 1px solid rgba(212,171,94,.35);
  color: #f5ead8; font-size: 13.5px; line-height: 1.5; max-width: 520px; }
.views-note[hidden] { display: none; }
.views-note p { margin: 0 0 6px; }
.views-note ul { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.views-note li b { color: #f3cf86; font-weight: 700; }
.views-note small { opacity: .75; }
.views-note .vn-more { opacity: .8; font-size: 12.5px; }
.vn-x { border: 0; background: none; color: #f3cf86; text-decoration: underline; cursor: pointer; padding: 0; font: inherit; font-size: 12.5px; }
.views-note-lh { margin: 8px auto 0; }
/* download: only inside the PDF view, on its bar */
.pdf-bar { flex-wrap: wrap; }
.pdf-bar-act { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.pdf-dl { display: inline-flex; align-items: center; gap: 6px; }
.pdf-dl:disabled { opacity: .6; cursor: wait; }
.pdf-dl-st { flex-basis: 100%; font: 500 13px/1.3 var(--f-ui); color: var(--ink-3, #7a5a3d); }
.pdf-dl-st:empty { display: none; }
/* full-screen button: see-through, top corner – no dark box over the day written on the video */
.fs-btn { top: 8px; bottom: auto; width: 34px; height: 34px; background: transparent; border: 0; color: #fff; opacity: .7;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.85)) drop-shadow(0 0 4px rgba(0,0,0,.5)); transition: opacity .2s; }
.fs-btn:hover, .fs-btn:focus-visible { background: transparent; opacity: 1; }
/* about page (was a band on the homepage) */
.about-main { background: linear-gradient(180deg, var(--navy), #3a2010); min-height: 60vh; }
.about-back-wrap { padding-top: 18px; }
.about-back-wrap .arch-back { color: #f3cf86; }
.about-page { border-block: 0; }
.about-h { font-size: clamp(28px, 3.6vw, 42px); color: var(--gold-bright); margin-top: 10px; font-family: var(--f-display); }
/* the logo cover: text never smaller than readable */
.wm { font-size: max(9px, 2.3cqw); }
.video-box.is-mini .wm { font-size: max(9px, 2.6cqw); }
/* phones (iPhone): full screen inside the page, so the cover and captions stay on the video */
html.fs-fake-on, html.fs-fake-on body { overflow: hidden; }
.video-box.fs-fake { position: fixed !important; inset: 0 !important; z-index: 9000; width: 100vw !important; height: 100vh !important; height: 100dvh !important;
  max-width: none !important; aspect-ratio: auto !important; margin: 0 !important; border-radius: 0 !important; background: #000; transform: none !important; }
.video-box.fs-fake iframe { position: absolute; inset: 0; margin: auto; width: 100%; height: auto; aspect-ratio: 16 / 9; max-height: 100%; }
.video-box.fs-fake .wm-frame { width: min(100%, calc(100dvh * 16 / 9)); }
.video-box.fs-fake .cap { font-size: clamp(16px, 4.2vw, 30px); }
.video-box.fs-fake .fs-btn { top: max(10px, env(safe-area-inset-top)); opacity: .9; }
/* the logo cover, sized for the whole path of Batorah's animated logo (it slides along the bottom right, up to ~29% in and ~21% up) */
.wm { right: 0; bottom: 0; width: 30%; height: 21%; border-radius: 1.6cqw 0 0 0; border-width: 1px 0 0 1px;
  background: linear-gradient(135deg, rgba(43,23,12,.86), rgba(24,14,7,.9)); font-size: max(10px, 2.6cqw); }
[dir="rtl"] .wm { border-radius: 1.6cqw 0 0 0; }
.video-box.is-mini .wm { font-size: max(9px, 2.8cqw); }
/* the logo cover, soft: a light frosted blur that fades out toward the picture (no black box, no hard edges);
   the opaque part spans the whole path of Batorah's moving logo; small gold name in the corner */
.wm { right: 0; bottom: 0; width: 40%; height: 31%; border: 0; border-radius: 0;
  background: radial-gradient(130% 130% at 100% 100%, rgba(40,24,12,.28) 0%, rgba(40,24,12,.12) 55%, rgba(40,24,12,0) 80%);
  -webkit-backdrop-filter: blur(18px) saturate(1.05); backdrop-filter: blur(18px) saturate(1.05);
  -webkit-mask-image: radial-gradient(130% 130% at 100% 100%, #000 64%, transparent 100%); mask-image: radial-gradient(130% 130% at 100% 100%, #000 64%, transparent 100%);
  display: flex; align-items: flex-end; justify-content: flex-end; padding: 0 3.2% 2.6% 0;
  color: #f6dd9e; font-size: max(10px, 2.4cqw); text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 0 10px rgba(0,0,0,.35); }
[dir="rtl"] .wm { border-radius: 0; }
.video-box.is-mini .wm { font-size: max(9px, 2.6cqw); }
/* the name sits in the very corner (right, also in RTL) */
.wm { justify-content: flex-end; direction: ltr; }

/* the logo cover, final shape (Levy's request): a framed label – gold rim, a light blur inside, our name on the blur.
   Sized for the whole path of Batorah's moving logo (~29% in, ~21% up); same proportions on PC and phone. */
.wm { right: 0.9%; bottom: 1.4%; width: 30%; height: 21.5%; padding: 0;
  display: flex; align-items: center; justify-content: center; direction: rtl;
  border: max(1.5px, .22cqw) solid rgba(222,184,110,.85); border-radius: 1.6cqw;
  background: linear-gradient(160deg, rgba(255,250,240,.16), rgba(255,240,215,.06));
  -webkit-backdrop-filter: blur(12px) saturate(1.05); backdrop-filter: blur(12px) saturate(1.05);
  -webkit-mask-image: none; mask-image: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12), 0 2px 10px rgba(0,0,0,.18), inset 0 0 0 1px rgba(255,255,255,.12);
  color: #fbe6b0; font: 700 max(11px, 2.7cqw)/1.1 var(--f-display); letter-spacing: .02em;
  text-shadow: 0 1px 2px rgba(0,0,0,.6), 0 0 8px rgba(0,0,0,.35); }
[dir="rtl"] .wm { border-radius: 1.6cqw; }
.video-box.is-mini .wm { font-size: max(9px, 2.9cqw); border-width: 1px; }
/* logo cover a little smaller (Levy: it took too much) – covers the logo where it usually sits */
.wm { width: 22%; height: 15.5%; right: 0.9%; bottom: 1.4%; font-size: max(10px, 2.3cqw); }
.video-box.is-mini .wm { font-size: max(9px, 2.5cqw); }

/* the "yellow shows where the maggid shiur learns – press a word" line lives in the instructions (?) only */
.hint { display: none !important; }

/* phone: text / PDF choices and the tools on ONE line */
@media (max-width: 600px) {
  .tools { flex-wrap: nowrap; align-items: center; gap: 6px; margin-bottom: 14px; }
  .views-pick { gap: 0; min-width: 0; }
  .vp-ask { display: none; }
  .vp-cards { flex-wrap: nowrap; gap: 4px; }
  .vp-card { padding: 6px 8px; gap: 0; border-radius: 8px; white-space: nowrap; }
  .vp-card b { font-size: 12px; }
  .vp-card img, .vp-card .vp-ic { display: none; }
  .tool-btns { gap: 4px; flex: none; }
  .tool { height: 30px; min-width: 30px; padding: 0 6px; font-size: 13px; border-radius: 8px; }
  .tool-help b { display: none; }
  .tool-help span { width: 18px; height: 18px; }
}@media (max-width: 600px) {
  .vp-cards { gap: 3px; }
  .vp-card { padding: 5px 6px; }
  .vp-card b { font-size: 11.5px; }
  .tool { min-width: 28px; height: 28px; padding: 0 4px; font-size: 12.5px; }
  .tool-btns { gap: 3px; }
}
/* the name fills the framed label (so it reads as a name tag, not as "something blurred") */
.wm { font-size: max(12px, 3.7cqw); font-weight: 900; letter-spacing: .01em; line-height: 1; }
.video-box.is-mini .wm { font-size: max(10px, 3.7cqw); }
/* the name tag is on the shiur page video all the time – its start picture has Batorah's logo too */

/* hotline: listen by phone – near the top of the homepage; each number dials on a phone */
.hotline { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px; margin: 12px auto 0; max-width: 760px; }
.hot-lab { display: inline-flex; align-items: center; gap: 6px; font: 700 14px/1.2 var(--f-ui); color: #f3cf86; }
.hot-num { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 99px; text-decoration: none;
  border: 1px solid rgba(212,171,94,.45); background: rgba(243,207,134,.08); color: #f5ead8; transition: background .15s, border-color .15s; }
.hot-num:hover, .hot-num:focus-visible { background: rgba(243,207,134,.18); border-color: #f3cf86; }
.hot-num small { font: 600 11px/1 var(--f-ui); color: rgba(243,207,134,.85); letter-spacing: .02em; }
.hot-num b { font: 700 14px/1 var(--f-ui); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .hotline { gap: 6px; }
  .hot-lab { flex-basis: 100%; justify-content: center; font-size: 13px; }
  .hot-num { padding: 6px 9px; gap: 4px; }
  .hot-num b { font-size: 12.5px; }
  .hot-num small { font-size: 10px; }
}.hot-short { display: none; }
@media (max-width: 600px) {
  .hot-long { display: none; }
  .hot-short { display: inline; }
  .hotline { gap: 5px; margin-top: 10px; }
  .hot-num { padding: 5px 8px; gap: 4px; }
  .hot-num b { font-size: 12px; }
}
@media (max-width: 600px) { .hotline { gap: 4px; } .hot-num { padding: 5px 6px; gap: 3px; } .hot-num b { font-size: 11.5px; letter-spacing: -.01em; } .hot-num small { font-size: 9.5px; } }

/* hotline, small (Levy: not a whole line): a little button at the side; it opens a small window with the 3 numbers */
.hotline { display: flex; justify-content: flex-end; position: relative; margin: 8px auto 0; max-width: 760px; gap: 0; flex-wrap: nowrap; }
.hot-btn { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; cursor: pointer;
  border: 1px solid rgba(212,171,94,.45); background: rgba(243,207,134,.08); color: #f3cf86; font: 600 13px/1.2 var(--f-ui); }
.hot-btn:hover, .hot-btn[aria-expanded="true"] { background: rgba(243,207,134,.18); border-color: #f3cf86; }
.hot-pop { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 40; display: grid; gap: 6px; min-width: 220px; padding: 10px;
  border-radius: 14px; background: #fffaf1; border: 1px solid rgba(212,171,94,.6); box-shadow: 0 14px 30px rgba(0,0,0,.35); animation: vcIn .2s ease-out; }
.hot-pop[hidden] { display: none; }
.hot-title { font: 700 13px/1.2 var(--f-ui); color: #6b4527; padding: 0 4px 2px; }
.hot-pop .hot-num { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  border: 1px solid #e3d6bf; background: #fff; color: #2b170c; }
.hot-pop .hot-num:hover, .hot-pop .hot-num:focus-visible { background: #f6ead1; border-color: #c99c4c; }
.hot-pop .hot-num small { font: 600 12px/1 var(--f-ui); color: #8a5a2b; letter-spacing: 0; }
.hot-pop .hot-num b { font: 700 15px/1 var(--f-ui); color: #2b170c; letter-spacing: 0; }
.hot-lab, .hot-short, .hot-long { display: none !important; }
@media (max-width: 600px) {
  .hotline { margin-top: 8px; }
  .hot-btn { font-size: 12.5px; padding: 5px 10px; }
  .hot-pop .hot-num { padding: 10px 12px; }
  .hot-pop .hot-num b { font-size: 15px; }
  .hot-pop .hot-num small { font-size: 12px; }
}
.hotline { width: 100%; align-self: stretch; box-sizing: border-box; }

/* hotline button now sits in the date line (parsha · views · calendar), same chip look; its little window opens under it */
.hotline-lh { display: inline-flex; width: auto; align-self: center; margin: 0; position: relative; max-width: none; }
.hotline-lh .hot-btn { font: 600 13px/1.2 var(--f-ui); padding: 5px 11px; border-color: rgba(212,171,94,.3); background: transparent; }
.hotline-lh .hot-pop { inset-inline-end: auto; inset-inline-start: 50%; transform: translateX(50%); }
@media (max-width: 600px) { .hotline-lh .hot-pop { inset-inline-start: auto; inset-inline-end: -60px; transform: none; } }

/* all the platforms at the bottom: logos */
.ic-yt { background: #ff0033 !important; }
.ic-yt svg { width: 26px !important; height: 26px !important; }
.ic-img { background: #fff !important; padding: 0; overflow: hidden; }
.ic-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ic-phone { background: linear-gradient(180deg, #c99c4c, #8a5a2b) !important; }
.ic-phone svg { width: 22px !important; height: 22px !important; }
.channel-btn { font: inherit; text-align: start; cursor: pointer; width: 100%; color: inherit; }
/* platforms: a neat grid of logos – logo on top, name under it (11 platforms fit evenly) */
.channels { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.channel { flex-direction: column; justify-content: flex-start; text-align: center; gap: 8px; padding: 14px 8px 12px; min-width: 0; }
.channel > span:last-child { display: grid; gap: 2px; min-width: 0; width: 100%; }
.channel b { font-size: 14px; line-height: 1.2; }
.channel span span { font-size: 11.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel .ic { width: 48px; height: 48px; border-radius: 12px; }
@media (max-width: 600px) {
  .channels { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .channel { padding: 12px 6px 10px; }
  .channel b { font-size: 13px; }
  .channel .ic { width: 44px; height: 44px; }
}
/* a platform without a link: shown, not pressable */
.channel-nolink { cursor: default; }
.channel-nolink:hover { border-color: var(--line); }
.ic-ablik { background: linear-gradient(180deg, #e2463a, #a8231b) !important; font: 900 16px/1 var(--f-display); color: #fff; letter-spacing: .02em; }