/* Calls to action by topic (lib/cta-map.js): a quiet line, a closing card and a thin topic band.
   No popups and nothing sticky. Light, parchment and dark follow the reading theme of the page ([data-theme]). */
:root {
  --rbc-bord: #7e022b; --rbc-bord-2: #5c011f; --rbc-gold: #c9a24a; --rbc-gold-2: #ecd08c;
  --rbc-bg: #fbf6ec; --rbc-line: rgba(201, 162, 74, .55); --rbc-ink: #4a3a2e; --rbc-k: #9a7424;
}
[data-theme="parchment"] { --rbc-bg: #f4e8cc; --rbc-line: rgba(160, 122, 37, .55); --rbc-ink: #4b3a24; }
[data-theme="dark"] {
  --rbc-bg: #34060f; --rbc-line: rgba(201, 162, 74, .45); --rbc-ink: rgba(255, 255, 255, .84); --rbc-k: #ecd08c;
}

/* the quiet line under the print and share buttons */
.rbc-line { margin: 14px 0 0; font-size: 17px; line-height: 1.5; }
.rbc-line a {
  color: var(--rbc-bord); text-decoration: underline; text-decoration-color: var(--rbc-line);
  text-underline-offset: 4px; font-weight: 600;
}
.rbc-line a:hover { text-decoration-color: currentColor; }
[data-theme="dark"] .rbc-line a { color: var(--rbc-gold-2); }
.rbc-arr { display: inline-block; margin-inline-start: 6px; text-decoration: none; }

/* the closing card */
.rbc-card {
  box-sizing: border-box; max-width: 720px; margin: 28px auto 0; padding: 22px 20px 20px;
  background: var(--rbc-bg); border: 1px solid var(--rbc-line); border-top: 3px solid var(--rbc-gold);
  border-radius: 14px; display: flex; flex-direction: column; gap: 16px; color: var(--rbc-ink);
}
.rbc-card .rbc-k { display: block; font-size: 15px; font-weight: 600; letter-spacing: .3px; color: var(--rbc-k); }
body .rbc-card .rbc-h {
  margin: 4px 0 6px; font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--rbc-bord-2);
}
[data-theme="dark"] .rbc-card .rbc-h, body [data-theme="dark"] .rbc-card .rbc-h { color: #f3e2b3; }
.rbc-card p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--rbc-ink); }
.rbc-acts { display: flex; flex-direction: column; gap: 10px; }
.rbc-card a.rbc-btn {
  display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px;
  border-radius: 12px; background: linear-gradient(180deg, #8d0632, var(--rbc-bord)); color: var(--rbc-gold-2);
  font-size: 18px; font-weight: 700; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--rbc-bord-2); box-shadow: 0 8px 18px -12px rgba(126, 2, 43, .8);
  transition: transform .15s ease, box-shadow .15s ease;
}
.rbc-card a.rbc-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 22px -12px rgba(126, 2, 43, .9); }
[data-theme="dark"] .rbc-card a.rbc-btn { background: var(--rbc-gold-2); color: var(--rbc-bord-2); border-color: var(--rbc-gold); }
.rbc-card a.rbc-alt {
  display: block; text-align: center; font-size: 16px; color: var(--rbc-bord);
  text-decoration: underline; text-decoration-color: var(--rbc-line); text-underline-offset: 4px;
}
[data-theme="dark"] .rbc-card a.rbc-alt { color: var(--rbc-gold-2); }
.rbc-card a:focus-visible, .rbc-line a:focus-visible, .rbc-strip a:focus-visible { outline: 2px solid var(--rbc-gold); outline-offset: 2px; }

@media (min-width: 760px) {
  .rbc-card { flex-direction: row; align-items: center; gap: 24px; padding: 24px 26px; }
  .rbc-card .rbc-txt { flex: 1 1 auto; min-width: 0; }
  .rbc-acts { flex: 0 0 auto; min-width: 230px; }
}

/* the thin band of a topic under the chips of /segulot (never inside the sticky bar) */
.rbs-ctastrip { padding: 12px 0 0; }
.rbs-ctastrip[hidden] { display: none; }
.rbc-strip {
  box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 44px; padding: 8px 14px; border-radius: 10px; background: var(--rbc-bg);
  border: 1px solid var(--rbc-line); border-inline-start: 3px solid var(--rbc-gold); font-size: 16px; color: var(--rbc-ink);
}
.rbc-strip-t { min-width: 0; }
.rbc-strip a.rbc-strip-a { flex: 0 0 auto; color: var(--rbc-bord); font-weight: 700; text-decoration: none; white-space: nowrap; }
.rbc-strip a.rbc-strip-a:hover { text-decoration: underline; }
[data-theme="dark"] .rbc-strip a.rbc-strip-a { color: var(--rbc-gold-2); }
@media (max-width: 520px) {
  .rbc-strip { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* the chip of the active season leads the row */
.rbs-chip.is-season { box-shadow: inset 0 0 0 2px var(--rbc-gold); }

/* share buttons above the closing card of an article (lib/share.js) */
.rbc-share { margin: 26px 0 0; }

/* in an article the card stands where the section card stood */
.rbx .rbc-card, .rbart .rbc-card { margin-top: 32px; }

@media print { .rbc-card, .rbc-line, .rbc-strip, .rbs-ctastrip { display: none !important; } }
