/* ==========================================================================
   Article pages — what sits around the text (server/lib/article-page.js,
   article-extras.js; public/v2/article-flow.js). Builds on pages.css (.rbart)
   and daily.css (.rbd-cta). RTL: the first grid child lands on the right.
   ========================================================================== */

/* ── reading progress: a thin gold line, phone and desktop alike ───────── */
.rbart-page .rbart-prog { height: 3px; }
.rbart-page .rbart-prog span {
  background: linear-gradient(90deg, #8a6a2c, #ecd08c 55%, #b58b3c);
  box-shadow: 0 0 10px rgba(181, 139, 60, .55);
  transition: width .12s linear;
}

/* ── the call to action chosen by the topic ─────────────────────────────── */
.rbd-cta-k { display: inline-block; margin-bottom: 6px; font-size: 15px; font-weight: 600;
  color: #ecd08c; letter-spacing: .02em; }
.rbd-cta--parnasa { background: radial-gradient(120% 170% at 100% 0%, #1b3354, #081421);
  border: 1px solid rgba(201, 162, 74, .55); }
.rbd-cta--refua { background: radial-gradient(120% 170% at 100% 0%, #13414c, #081a24);
  border: 1px solid rgba(201, 162, 74, .4); }
.rbd-cta--hilula { background: radial-gradient(120% 170% at 100% 0%, #93083a, #5c011f);
  border: 1px solid #c9a24a; }
.rbd-cta--smart::after {
  content: ''; position: absolute; inset-inline-end: -70px; top: -90px; width: 260px; height: 260px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(236, 208, 140, .16), rgba(236, 208, 140, 0) 70%);
}
.rbd-cta--smart > * { position: relative; z-index: 1; }

/* ── "עוד תכנים מרתקים עבורך היום" ─────────────────────────────────────── */
.rbart-trio { background: var(--paper2); border-top: 1px solid var(--line); margin-top: 40px; }
.rbart-trio .rbp-kicker { color: var(--gold); }
.rbart-trio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rbart-trio-slot { display: flex; min-width: 0; }
.rbart-tc {
  flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; border-radius: 22px; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: inherit;
  transition: transform .24s cubic-bezier(.2, .7, .3, 1), box-shadow .24s, border-color .24s;
}
.rbart-tc[hidden] { display: none; }
.rbart-tc:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--gold) 45%, transparent);
  box-shadow: 0 26px 48px -30px rgba(10, 18, 32, .55); }
.rbart-tc-pic { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--grad-soft); }
.rbart-tc-pic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.rbart-tc:hover .rbart-tc-pic img { transform: scale(1.04); }
.rbart-tc-pic .mark { position: absolute; inset: 0; display: grid; place-items: center;
  font-family: 'almoni-tzar', sans-serif; font-size: 34px;
  color: color-mix(in oklab, var(--nav) 55%, var(--a2));
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in oklab, var(--acc) 18%, transparent),
    color-mix(in oklab, var(--a2) 22%, transparent)); }
/* a segula's preview is a printed page: shown whole, on parchment */
.rbart-tc--page .rbart-tc-pic { background: linear-gradient(135deg, #fffaf0, #f3e6c8); }
.rbart-tc--page .rbart-tc-pic img { object-fit: contain; padding: 14px; filter: drop-shadow(0 10px 16px rgba(60, 44, 16, .25)); }
.rbart-tc--page .rbart-tc-pic .mark { background: none; color: var(--gold); }
.rbart-tc-body { display: flex; flex-direction: column; gap: 7px; padding: 18px 20px 18px; flex: 1 1 auto; min-width: 0; }
.rbart-tc-k { font-size: 14.5px; font-weight: 600; color: var(--gold); }
.rbart-tc-h { font-family: 'almoni-tzar', sans-serif; font-weight: 600; font-size: 22px; line-height: 1.28; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rbart-tc-x { font-size: 16px; line-height: 1.6; color: var(--ink2);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rbart-tc-go { margin-top: auto; align-self: flex-end; color: var(--acc); font-size: 19px; transition: transform .24s; }
.rbart-tc:hover .rbart-tc-go { transform: translateX(-4px); }

@media (max-width: 900px) {
  .rbart-trio-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .rbart-tc { display: grid; grid-template-columns: 128px minmax(0, 1fr); }
  .rbart-tc-pic { aspect-ratio: auto; height: 100%; min-height: 118px; }
  .rbart-tc-pic .mark { font-size: 22px; }
  .rbart-tc-body { padding: 14px 16px; gap: 5px; }
  .rbart-tc-h { font-size: 19.5px; }
  .rbart-tc-x { display: none; }
  .rbart-tc-go { display: none; }
}

/* ── the next articles, set below this one ─────────────────────────────── */
.rbart-flow { padding-bottom: 10px; }
.rbart-more { padding-top: 34px; }
.rbart-sep {
  display: flex; align-items: center; gap: 16px; margin: 0; color: var(--gold);
  font-family: 'almoni-tzar', sans-serif; font-size: 18.5px; line-height: 1.4;
}
.rbart-sep::before, .rbart-sep::after { content: ''; flex: 1 1 40px; height: 1px;
  background: linear-gradient(90deg, rgba(181, 139, 60, 0), rgba(181, 139, 60, .6), rgba(181, 139, 60, 0)); }
.rbart-sep span { flex: 0 1 auto; max-width: 78%; text-align: center; }
.rbart-sep b { color: var(--ink); font-weight: 600; }
.rbart-shell--more { padding-top: 26px; }
.rbart-more-head { margin: 0 0 22px; }
.rbart-more-k { display: inline-flex; align-items: center; min-height: 28px; padding: 0 13px; border-radius: 999px;
  background: var(--grad-soft); color: var(--acc); font-size: 13.5px; font-weight: 600; }
.rbart-more-head h2 { margin: 12px 0 0; font-family: 'almoni-tzar', sans-serif; font-weight: 600;
  font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.rbart-more-meta { margin: 10px 0 0; font-size: 16px; color: var(--mut); }
.rbart-more-pic { margin: 0 0 28px; }
.rbart-more-pic img { display: block; width: 100%; max-height: 420px; object-fit: cover; border-radius: 22px;
  box-shadow: 0 30px 56px -38px rgba(10, 18, 32, .6); }
.rbart-flow-status { margin: 18px 0 0; text-align: center; font-size: 16px; color: var(--mut); min-height: 1.4em; }

@media (max-width: 600px) {
  .rbart-sep { font-size: 16.5px; gap: 10px; }
  .rbart-sep span { max-width: 86%; }
  .rbart-more-pic img { max-height: 240px; border-radius: 18px; }
}

/* ── each section's own mark (server/lib/section-identity.js) ──────────── */

/* הלכה יומית — "ההלכה בדקה" */
.rbart-minute {
  margin: 0 0 32px; padding: 18px 22px 20px; border-radius: 18px;
  background: var(--paper2); border: 1px solid var(--line); border-inline-start: 4px solid var(--gold);
}
.rbart-minute-k { display: inline-flex; align-items: center; gap: 8px; font-size: 15.5px; font-weight: 600; color: #8a6a2c; }
.rbart-minute-k svg { width: 18px; height: 18px; fill: currentColor; }
.rbp .rbart-minute p { margin: 8px 0 0; font-family: 'almoni-tzar', sans-serif; font-size: 21px; line-height: 1.6; color: var(--ink); }

/* שרפי קודש — "תעודת זהות של החכם" */
.rbart-idcard {
  margin: 0 0 32px; border-radius: 20px; overflow: hidden; border: 1px solid var(--cream-line);
  background: linear-gradient(135deg, #fffaf0, #f7ecd4); box-shadow: 0 22px 44px -34px rgba(60, 44, 16, .6);
}
.rbart-idcard-h {
  display: flex; align-items: center; gap: 10px; padding: 12px 22px;
  background: radial-gradient(120% 200% at 100% 0%, var(--nav2), var(--nav)); color: #ecd08c;
  font-family: 'almoni-tzar', sans-serif; font-weight: 600; font-size: 19px;
}
.rbart-idcard-h span { font-size: 13px; }
.rbart-idcard dl { margin: 0; padding: 6px 22px 12px; }
.rbart-idcard-r { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px dashed rgba(181, 139, 60, .38); }
.rbart-idcard-r:last-child { border-bottom: 0; }
.rbart-idcard dt { font-size: 15.5px; font-weight: 600; color: #8a6a2c; }
.rbart-idcard dd { margin: 0; font-size: 18.5px; line-height: 1.5; color: var(--ink); }
.rbart-idcard-r--name dd { font-family: 'almoni-tzar', sans-serif; font-weight: 600; font-size: 22px; }
@media (max-width: 600px) {
  .rbart-idcard dl { padding: 4px 16px 10px; }
  .rbart-idcard-r { grid-template-columns: 70px minmax(0, 1fr); gap: 10px; }
}

/* פרשת השבוע — a 16:9 cover and a 4:3 picture inside */
.rbart-lead--cover { max-width: 1004px; }
.rbart-lead--cover img, .rbart-more-pic--cover img { aspect-ratio: 16 / 9; height: auto; max-height: none; }
.rbart-body img.rbart-pic43 { width: 100%; max-width: 36rem; aspect-ratio: 4 / 3; height: auto;
  object-fit: cover; margin-inline: auto; }

@media (prefers-reduced-motion: reduce) {
  .rbart-page .rbart-prog span, .rbart-tc, .rbart-tc-pic img, .rbart-tc-go { transition: none; }
}

/* ── the date and reading-time line under the title: the site face ──────
   (pages.css sets every hero sub line in the body face; on an article it is
   a meta line, set like the crumbs and the title) */
.rbp.rbart-page .rbp-hero .sub { font-family: 'almoni-tzar', sans-serif; letter-spacing: .01em; }
