/* ==========================================================================
   Daily content sections — /parasha, /halacha, /content/hilulat-tzadikim,
   /content/sarfei-kodesh. Builds on pages.css (.rbp tokens, .rba-card).
   ========================================================================== */

/* pages.css sets long text (card excerpts, the hero line, notices) in
   --rbp-text; these sections use the site face throughout */
.rbp.rbd { --rbp-text: 'almoni-tzar', sans-serif; }
.rbp.rbd .rba-card p { font-size: 17px; line-height: 1.5; }
.rbp.rbd .rba-card .when { font-size: 15px; }

/* this week's parasha */
.rbd-week { margin-top: -30px; position: relative; z-index: 2; }
.rbd-week-in {
  display: flex; align-items: center; gap: 14px 22px; flex-wrap: wrap;
  background: linear-gradient(135deg, #fffaf0, #f7ecd4); border: 1px solid var(--cream-line);
  border-radius: 20px; padding: 18px 26px; box-shadow: 0 24px 44px -32px rgba(10, 18, 32, .55);
}
.rbd-week-k { font-size: 17px; color: var(--gold); font-weight: 600; }
.rbd-week-in b { font-family: 'almoni-tzar', sans-serif; font-weight: 600; font-size: 30px; color: var(--ink); line-height: 1.1; }
.rbd-week-n { font-size: 17px; color: var(--mut); margin-inline-start: auto; }

/* lead item */
.rbd-top { padding: 40px 0 6px; }
.rbd-lead {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: stretch;
  text-decoration: none; color: inherit; background: var(--paper); border: 1px solid var(--line);
  border-radius: 26px; overflow: hidden; box-shadow: 0 30px 60px -44px rgba(10, 18, 32, .6);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.rbd-lead:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--acc) 30%, transparent);
  box-shadow: 0 36px 70px -44px rgba(10, 18, 32, .7); }
.rbd-lead-pic { position: relative; min-height: 300px; background: var(--paper2); overflow: hidden; }
.rbd-lead-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.rbd-lead:hover .rbd-lead-pic img { transform: scale(1.04); }
.rbd-lead-pic .mark { position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(120% 140% at 100% 0%, var(--nav2), var(--nav)); }
.rbd-lead-pic .mark svg { width: 64px; height: 64px; fill: rgba(255, 255, 255, .5); }
.rbd-lead-txt { display: flex; flex-direction: column; gap: 12px; padding: 34px 36px; }
.rbd-lead-k { font-size: 16.5px; color: var(--acc); font-weight: 600; }
.rbd-lead-txt h2 { margin: 0; font-family: 'almoni-tzar', sans-serif; font-weight: 600;
  font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; color: var(--ink); }
/* the lead card of a section always shows its whole title, never cut with an ellipsis (grid cards keep 2-3 lines) */
.rbd-lead-txt h2 { -webkit-line-clamp: unset; line-clamp: unset; display: block; overflow: visible; text-overflow: clip; white-space: normal; max-height: none; }
.rbd-lead-txt p { margin: 0; font-size: 19px; line-height: 1.6; color: var(--ink2); }
.rbd-lead-go { margin-top: auto; font-family: 'almoni-tzar', sans-serif; font-size: 20px; color: var(--acc); }
@media (max-width: 820px) {
  .rbd-lead { grid-template-columns: minmax(0, 1fr); }
  .rbd-lead-pic { min-height: 0; aspect-ratio: 16 / 9; }
  .rbd-lead-txt { padding: 22px 22px 26px; }
}

.rbd-grid { padding-top: 24px; padding-bottom: 30px; }

/* archive */
.rbd-archive { padding: 20px 0 30px; }
.rbd-month { margin: 0 0 22px; }
.rbd-month h3 { margin: 0 0 8px; font-family: 'almoni-tzar', sans-serif; font-weight: 600; font-size: 22px; color: var(--mut); }
.rbd-month ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rbd-month li a { display: flex; gap: 18px; align-items: baseline; padding: 12px 4px; text-decoration: none;
  color: var(--ink); border-bottom: 1px solid var(--line); transition: background .15s, padding .15s; }
.rbd-month li a:hover { background: var(--paper2); padding-inline-start: 12px; }
.rbd-month .d { flex: 0 0 140px; font-size: 16px; color: var(--mut); }
.rbd-month .t { font-size: 19px; line-height: 1.45; }
@media (max-width: 600px) { .rbd-month li a { flex-direction: column; gap: 2px; } .rbd-month .d { flex: none; } }

/* closing call to action */
.rbd-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 22px 30px; flex-wrap: wrap;
  border-radius: 28px; padding: 34px 38px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 170% at 100% 0%, var(--nav2), var(--nav));
}
.rbd-cta--ner { background: radial-gradient(120% 170% at 100% 0%, #93083a, #5c011f); border: 1px solid #c9a24a; }
.rbd-cta-txt { flex: 1 1 340px; }
.rbd-cta h2 { margin: 0 0 8px; font-family: 'almoni-tzar', sans-serif; font-weight: 600; font-size: clamp(26px, 3vw, 34px); line-height: 1.2; color: #fff; }
.rbd-cta p { margin: 0; font-size: 19px; line-height: 1.55; color: rgba(255, 255, 255, .8); max-width: 60ch; }
.rbd-cta-acts { display: flex; gap: 12px; flex-wrap: wrap; }
.rbd-btn { display: inline-flex; align-items: center; gap: 9px; min-height: 50px; padding: 0 24px; border-radius: 999px;
  text-decoration: none; font-family: 'almoni-tzar', sans-serif; font-size: 20px; white-space: nowrap;
  transition: transform .18s, filter .18s, background .18s; }
.rbd-btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
.rbd-btn svg { width: 20px; height: 20px; fill: currentColor; flex: 0 0 auto; }
.rbd-btn--wa { background: #25d366; color: #06371b; }
.rbd-btn--gold { background: #ecd08c; color: #5c011f; }
.rbd-btn--ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.rbd-btn--ghost:hover { background: rgba(255, 255, 255, .08); }
@media (max-width: 600px) {
  .rbd-cta { padding: 26px 22px; }
  .rbd-cta-acts, .rbd-btn { width: 100%; justify-content: center; }
}

/* the same CTA at the end of an article */
.rbart-col .rbd-cta { margin: 34px 0 8px; }
