/* RSBC Church Core — front-end styles.
   Uses the child theme's CSS variables with safe fallbacks. */

/* ---------- Sermons ---------- */
.rsbc-sermon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.rsbc-sermon-card,
.rsbc-sermon-latest {
  background: #fff;
}

.rsbc-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 0.75rem;
}
.rsbc-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.rsbc-sermon-title {
  margin: 0.25rem 0;
  font-size: 1.15rem;
}
.rsbc-sermon-title a {
  text-decoration: none;
  color: var(--rsbc-primary, #1f3a5f);
}
.rsbc-sermon-meta {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
}

/* ---------- Events ---------- */
.rsbc-event-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rsbc-event-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid #e5e2da;
}
.rsbc-event-date {
  font-weight: 600;
  color: var(--rsbc-primary, #1f3a5f);
  min-width: 220px;
}
.rsbc-event-title {
  font-size: 1.05rem;
  text-decoration: none;
}
.rsbc-event-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--rsbc-accent, #b08d3e);
  color: #fff;
  border-radius: 3px;
  padding: 2px 7px;
}
.rsbc-event-location {
  flex-basis: 100%;
  font-size: 0.9rem;
  color: #666;
}

/* ---------- Giving ---------- */
.rsbc-give-intro {
  font-size: 1.1rem;
}
.rsbc-give-button {
  display: inline-block;
  background: var(--rsbc-primary, #1f3a5f);
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}
.rsbc-give-button:hover {
  background: var(--rsbc-accent, #b08d3e);
  color: #fff;
}
.rsbc-give-address {
  border-left: 3px solid var(--rsbc-accent, #b08d3e);
  padding-left: 1rem;
  line-height: 1.7;
}

/* ---------- Monthly Calendar ---------- */
.rsbc-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.rsbc-cal-month {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--rsbc-primary, #1f3a5f);
}
.rsbc-cal-nav {
  background: var(--rsbc-primary, #1f3a5f);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 0.4rem 0.9rem;
  font-size: 1rem;
  cursor: pointer;
}
.rsbc-cal-nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.rsbc-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.rsbc-cal-dow {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #888;
  padding: 4px 0;
}
.rsbc-cal-cell {
  position: relative;
  min-height: 56px;
  background: #fff;
  border: 1px solid #e5e2da;
  border-radius: 4px;
  padding: 4px 6px;
}
.rsbc-cal-empty {
  background: transparent;
  border-color: transparent;
}
.rsbc-cal-daynum {
  font-size: 0.85rem;
  color: #555;
}
.rsbc-cal-today {
  border-color: var(--rsbc-accent, #b08d3e);
  border-width: 2px;
}
.rsbc-cal-has-events {
  cursor: pointer;
  background: var(--rsbc-light, #f7f5f0);
}
.rsbc-cal-has-events:hover,
.rsbc-cal-has-events:focus {
  outline: 2px solid var(--rsbc-primary, #1f3a5f);
}
.rsbc-cal-selected {
  background: var(--rsbc-primary, #1f3a5f);
}
.rsbc-cal-selected .rsbc-cal-daynum {
  color: #fff;
}
.rsbc-cal-count {
  position: absolute;
  bottom: 4px;
  right: 6px;
  background: var(--rsbc-accent, #b08d3e);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  padding: 0 4px;
}
.rsbc-cal-panel {
  margin-top: 1.25rem;
  border-top: 2px solid var(--rsbc-accent, #b08d3e);
  padding-top: 1rem;
}
.rsbc-cal-hint {
  color: #777;
  font-style: italic;
}
.rsbc-cal-panel-date {
  color: var(--rsbc-primary, #1f3a5f);
  margin: 0 0 0.75rem;
}
.rsbc-cal-event {
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
}
.rsbc-cal-event-line {
  margin: 0 0 0.2rem;
}
.rsbc-cal-event-loc {
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
  color: #666;
}
.rsbc-cal-gcal {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--rsbc-primary, #1f3a5f);
}
.rsbc-cal-gcal:hover {
  color: var(--rsbc-accent, #b08d3e);
}
@media (max-width: 600px) {
  .rsbc-cal-cell { min-height: 44px; padding: 2px 4px; }
  .rsbc-cal-count { min-width: 15px; height: 15px; line-height: 15px; font-size: 0.62rem; }
}

/* ---------- Latest Post (pastor's blog) ---------- */
.rsbc-latest-post-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rsbc-accent, #b08d3e);
}
.rsbc-latest-post-title {
  margin: 0 0 0.25rem;
}
.rsbc-latest-post-title a {
  text-decoration: none;
  color: var(--rsbc-primary, #1f3a5f);
}
.rsbc-latest-post-date {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  color: #777;
}
.rsbc-latest-post-more {
  font-weight: 600;
  text-decoration: none;
  color: var(--rsbc-primary, #1f3a5f);
}
.rsbc-latest-post-more:hover {
  color: var(--rsbc-accent, #b08d3e);
}

/* ---------- Bible reader ---------- */
.rsbc-bible-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  background: var(--rsbc-light, #f7f5f0);
  border: 1px solid #e9e4d8;
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.75rem;
}
.rsbc-bible-pick select {
  padding: 0.45rem 0.6rem;
  border: 1px solid #d8d2c2;
  border-radius: 4px;
  font-size: 1rem;
  background: #fff;
}
.rsbc-bible-search {
  display: flex;
  gap: 0.4rem;
}
.rsbc-bible-search input[type="search"] {
  padding: 0.45rem 0.7rem;
  border: 1px solid #d8d2c2;
  border-radius: 4px;
  min-width: 200px;
}
.rsbc-bible-search button {
  background: var(--rsbc-primary, #1f3a5f);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 0.45rem 1rem;
  cursor: pointer;
}
.rsbc-bible-search button:hover {
  background: var(--rsbc-accent, #b08d3e);
}
.rsbc-bible-heading {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.rsbc-bible-trans {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--rsbc-accent, #b08d3e);
}
.rsbc-verse {
  margin: 0 0 0.65rem;
  line-height: 1.85;
}
.rsbc-verse:target {
  background: #fdf6e3;
  outline: 2px solid var(--rsbc-accent-soft, #d9c391);
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
}
.rsbc-verse-num {
  color: var(--rsbc-accent, #b08d3e);
  font-weight: 700;
  margin-right: 0.15rem;
}
.rsbc-xref {
  display: inline-block;
  margin-left: 0.45rem;
  vertical-align: baseline;
}
.rsbc-xref summary {
  display: inline-block;
  cursor: pointer;
  font-size: 0.78rem;
  color: var(--rsbc-primary, #1f3a5f);
  background: var(--rsbc-light, #f7f5f0);
  border: 1px solid #e0dac9;
  border-radius: 999px;
  padding: 0 0.55rem;
  line-height: 1.5;
  user-select: none;
  list-style: none;
}
.rsbc-xref summary::-webkit-details-marker { display: none; }
.rsbc-xref[open] summary {
  background: var(--rsbc-primary, #1f3a5f);
  color: #fff;
}
.rsbc-xref-list {
  display: block;
  font-size: 0.9rem;
  background: var(--rsbc-light, #f7f5f0);
  border-left: 3px solid var(--rsbc-accent, #b08d3e);
  border-radius: 0 6px 6px 0;
  padding: 0.5rem 0.9rem;
  margin: 0.4rem 0 0.2rem;
}
.rsbc-bible-pager {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0 1rem;
  font-weight: 600;
}
.rsbc-bible-pager a { text-decoration: none; }
.rsbc-bible-prev { margin-right: auto; }
.rsbc-bible-next { margin-left: auto; }
.rsbc-bible-credit {
  font-size: 0.82rem;
  color: #8a8e95;
  border-top: 1px solid #eee;
  padding-top: 0.75rem;
  margin-top: 2rem;
}
.rsbc-search-hit { margin-bottom: 0.9rem; }
.rsbc-search-hit mark {
  background: #fdf0d0;
  padding: 0 2px;
}
@media (max-width: 600px) {
  .rsbc-bible-nav { flex-direction: column; align-items: stretch; }
  .rsbc-bible-search input[type="search"] { flex: 1; min-width: 0; }
}

/* ---------- Calendar v1.4 dress-up ---------- */
.rsbc-cal-month {
  font-family: var(--rsbc-display, Georgia, serif);
  font-size: 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.rsbc-cal-today-btn {
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--rsbc-accent, #b08d3e);
  border: 1px solid var(--rsbc-accent, #b08d3e);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  cursor: pointer;
}
.rsbc-cal-today-btn:hover {
  background: var(--rsbc-accent, #b08d3e);
  color: #fff;
}
.rsbc-cal-grid {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--rsbc-shadow, 0 2px 14px rgba(31,58,95,0.08));
  background: #fff;
  padding: 8px;
}
.rsbc-cal-cell {
  min-height: 84px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: background 0.15s ease, transform 0.1s ease;
}
.rsbc-cal-cell:nth-child(7n+1):not(.rsbc-cal-empty),
.rsbc-cal-cell:nth-child(7n):not(.rsbc-cal-empty) {
  background: #fbfaf6; /* faint weekend tint */
}
.rsbc-cal-has-events {
  background: var(--rsbc-light, #f7f5f0) !important;
}
.rsbc-cal-has-events:hover {
  transform: translateY(-1px);
  outline-color: var(--rsbc-accent, #b08d3e);
}
.rsbc-cal-today {
  background: #fdf6e3 !important;
}
.rsbc-cal-today .rsbc-cal-daynum {
  background: var(--rsbc-accent, #b08d3e);
  color: #fff;
  border-radius: 999px;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  display: inline-block;
}
.rsbc-cal-chips {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}
.rsbc-cal-chip {
  font-size: 0.68rem;
  line-height: 1.35;
  background: var(--rsbc-primary, #1f3a5f);
  color: #fff;
  border-radius: 3px;
  padding: 1px 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rsbc-cal-chip-weekly {
  background: transparent;
  color: var(--rsbc-primary, #1f3a5f);
  border: 1px solid var(--rsbc-accent-soft, #d9c391);
}
.rsbc-cal-more {
  font-size: 0.65rem;
  color: #888;
}
.rsbc-cal-selected,
.rsbc-cal-selected.rsbc-cal-today {
  background: var(--rsbc-primary, #1f3a5f) !important;
}
.rsbc-cal-selected .rsbc-cal-chip {
  background: rgba(255,255,255,0.18);
}
.rsbc-cal-selected .rsbc-cal-chip-weekly {
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.rsbc-cal-selected .rsbc-cal-more { color: #cfd4dc; }

/* Detail panel as a card */
.rsbc-cal-panel {
  background: var(--rsbc-card, #fbfaf7);
  border: 1px solid #e9e4d8;
  border-left: 4px solid var(--rsbc-accent, #b08d3e);
  border-radius: 6px 10px 10px 6px;
  box-shadow: var(--rsbc-shadow, 0 2px 14px rgba(31,58,95,0.08));
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #e9e4d8; /* override old rule */
}
.rsbc-cal-event {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #efeadd;
}
.rsbc-cal-event:last-child { border-bottom: 0; }
.rsbc-cal-event-main {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  flex: 1;
  min-width: 220px;
}
.rsbc-cal-event-time {
  font-weight: 700;
  color: var(--rsbc-primary, #1f3a5f);
  white-space: nowrap;
}
.rsbc-cal-event-body a {
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--rsbc-ink, #20242b);
}
.rsbc-cal-event-body a:hover { color: var(--rsbc-accent, #b08d3e); }
.rsbc-cal-event-loc {
  display: block;
  font-size: 0.85rem;
  color: #777;
}
.rsbc-cal-gcal {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--rsbc-primary, #1f3a5f);
  border: 1px solid var(--rsbc-primary, #1f3a5f);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.rsbc-cal-gcal:hover {
  background: var(--rsbc-accent, #b08d3e);
  border-color: var(--rsbc-accent, #b08d3e);
  color: #fff;
}

/* Mobile: badge instead of chips */
@media (max-width: 600px) {
  .rsbc-cal-cell { min-height: 48px; }
  .rsbc-cal-chips, .rsbc-cal-more { display: none; }
}
@media (min-width: 601px) {
  .rsbc-cal-count { display: none; }
}

/* ---------- Prayer requests ---------- */
.rsbc-prayer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.rsbc-prayer-card {
  background: var(--rsbc-card, #fbfaf7);
  border: 1px solid #e9e4d8;
  border-top: 3px solid var(--rsbc-accent, #b08d3e);
  border-radius: 8px;
  box-shadow: var(--rsbc-shadow, 0 2px 14px rgba(31,58,95,0.08));
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
}
.rsbc-prayer-text {
  margin: 0 0 0.75rem;
  flex: 1;
}
.rsbc-prayer-meta {
  margin: 0;
  font-size: 0.88rem;
  font-style: italic;
  color: #777;
}
.rsbc-prayer-form label {
  font-weight: 600;
  color: var(--rsbc-primary, #1f3a5f);
}
.rsbc-prayer-form input[type="text"],
.rsbc-prayer-form textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #d8d2c2;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}
.rsbc-prayer-form-note {
  font-size: 0.9rem;
  color: #777;
}
.rsbc-optional {
  font-weight: 400;
  color: #999;
  font-size: 0.85em;
}
.rsbc-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}
.rsbc-prayer-notice {
  background: var(--rsbc-light, #f7f5f0);
  border-left: 4px solid var(--rsbc-accent, #b08d3e);
  border-radius: 0 6px 6px 0;
  padding: 0.8rem 1.1rem;
}
.rsbc-prayer-ok {
  border-left-color: #3a7d44;
}
.rsbc-prayer-empty {
  font-style: italic;
  color: #777;
}

/* ---------- Bible: tabs + topical index ---------- */
.rsbc-bible-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.rsbc-bible-tabs a {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--rsbc-primary, #1f3a5f);
  background: var(--rsbc-light, #f7f5f0);
  border: 1px solid #e9e4d8;
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
}
.rsbc-bible-tabs a.rsbc-tab-on,
.rsbc-bible-tabs a:hover {
  background: var(--rsbc-primary, #1f3a5f);
  color: #fff;
  border-color: var(--rsbc-primary, #1f3a5f);
}
.rsbc-topic-search {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.rsbc-topic-search input[type="search"] {
  flex: 1;
  max-width: 420px;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d8d2c2;
  border-radius: 4px;
}
.rsbc-topic-search button {
  background: var(--rsbc-primary, #1f3a5f);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
}
.rsbc-topic-search button:hover { background: var(--rsbc-accent, #b08d3e); }
.rsbc-topic-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1.5rem;
}
.rsbc-topic-letter {
  display: inline-block;
  width: 34px;
  height: 34px;
  line-height: 32px;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
  color: var(--rsbc-primary, #1f3a5f);
  background: #fff;
  border: 1px solid #e0dac9;
  border-radius: 6px;
}
.rsbc-topic-letter:hover,
.rsbc-letter-on {
  background: var(--rsbc-accent, #b08d3e) !important;
  border-color: var(--rsbc-accent, #b08d3e) !important;
  color: #fff !important;
}
.rsbc-topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 3 220px;
  column-gap: 2.5rem;
}
.rsbc-topic-list li {
  padding: 0.25rem 0;
  break-inside: avoid;
}
.rsbc-topic-list a { text-decoration: none; }
.rsbc-topic-list a:hover { color: var(--rsbc-accent, #b08d3e); }
.rsbc-topic-back { margin-bottom: 0.25rem; }
.rsbc-topic-back a { text-decoration: none; font-weight: 600; }
.rsbc-topic-entries { margin-top: 0.75rem; }
.rsbc-topic-entry {
  padding: 0.55rem 0;
  border-bottom: 1px solid #efeadd;
  line-height: 1.8;
}
.rsbc-topic-label {
  font-weight: 600;
  color: var(--rsbc-primary, #1f3a5f);
}
.rsbc-topic-refs a {
  text-decoration: none;
  white-space: nowrap;
}
.rsbc-topic-refs a:hover { color: var(--rsbc-accent, #b08d3e); }
.rsbc-topic-see {
  font-style: italic;
  color: #777;
}

/* ---------- Bible reader dress-up (v1.6.1) ---------- */
/* Center the whole study area in a comfortable reading column */
.rsbc-bible-tabs,
.rsbc-bible-nav {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}
.rsbc-bible-tabs { justify-content: center; margin-bottom: 1rem; }

/* The reading panel: warm paper, gold crown rule */
.rsbc-bible {
  max-width: 860px;
  margin: 0 auto;
  background: linear-gradient(180deg, #fdfcf9 0%, #faf8f2 100%);
  border: 1px solid #e9e4d8;
  border-top: 3px solid var(--rsbc-accent, #b08d3e);
  border-radius: 10px;
  box-shadow: var(--rsbc-shadow, 0 2px 14px rgba(31,58,95,0.08));
  padding: 2.5rem 3.25rem 2rem;
}
.rsbc-bible-heading {
  justify-content: center;
  font-size: 2.2rem;
  margin-top: 0;
}
.rsbc-bible-heading::after {
  display: none;
}

/* Verse rhythm */
.rsbc-verse {
  font-size: 1.12rem;
  line-height: 1.95;
  margin: 0 0 0.45rem;
}

/* Drop-cap chapter numeral (print-Bible style) */
.rsbc-chap-drop {
  float: left;
  font-family: var(--rsbc-display, Georgia, serif);
  font-weight: 600;
  font-size: 4.4rem;
  line-height: 0.82;
  color: var(--rsbc-primary, #1f3a5f);
  padding: 0.25rem 0.85rem 0 0;
}
.rsbc-verse-first {
  min-height: 4rem;
}

/* Cross-reference pills: keep them ON the verse line */
.rsbc-xref,
.rsbc-xref summary {
  display: inline-block !important;
}
.rsbc-xref {
  margin-left: 0.4rem;
}
.rsbc-xref summary {
  font-size: 0.72rem;
  padding: 0 0.5rem;
  border-color: #e6dfcf;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.rsbc-verse:hover .rsbc-xref summary { opacity: 1; }
.rsbc-xref[open] {
  display: block !important;
  margin: 0.4rem 0 0.6rem;
}

/* Pager as buttons */
.rsbc-bible-pager a {
  background: var(--rsbc-light, #f7f5f0);
  border: 1px solid #e0dac9;
  border-radius: 999px;
  padding: 0.45rem 1.2rem;
  color: var(--rsbc-primary, #1f3a5f);
  transition: all 0.15s ease;
}
.rsbc-bible-pager a:hover {
  background: var(--rsbc-primary, #1f3a5f);
  border-color: var(--rsbc-primary, #1f3a5f);
  color: #fff;
}

@media (max-width: 700px) {
  .rsbc-bible { padding: 1.5rem 1.25rem; }
  .rsbc-chap-drop { font-size: 3.4rem; }
  .rsbc-verse { font-size: 1.05rem; }
}

/* ---------- Bible: wider panel + two-column verses (v1.6.2) ---------- */
.rsbc-bible {
  max-width: 1150px;
}
.rsbc-bible-tabs,
.rsbc-bible-nav {
  max-width: 1150px;
}
.rsbc-verses {
  columns: 2 480px;           /* 2 columns when each can be >=480px wide; else 1 */
  column-gap: 4rem;
  column-rule: 1px solid #e9e4d8;
}
.rsbc-verse {
  break-inside: avoid;        /* never split a verse across columns */
}

/* ---------- Word Study (Strong's) ---------- */
.rsbc-ws-toggle {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--rsbc-primary, #1f3a5f);
  border: 1px solid var(--rsbc-primary, #1f3a5f);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  white-space: nowrap;
}
.rsbc-ws-toggle:hover {
  background: var(--rsbc-primary, #1f3a5f);
  color: #fff;
}
.rsbc-ws-active {
  background: var(--rsbc-accent, #b08d3e);
  border-color: var(--rsbc-accent, #b08d3e);
  color: #fff;
}
.rsbc-ws-active:hover {
  background: var(--rsbc-primary, #1f3a5f);
  border-color: var(--rsbc-primary, #1f3a5f);
}
a.rsbc-strong {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted var(--rsbc-accent, #b08d3e);
}
a.rsbc-strong:hover {
  color: var(--rsbc-accent, #b08d3e);
  border-bottom-style: solid;
}
.rsbc-lexicon {
  background: var(--rsbc-card, #fbfaf7);
  border: 1px solid #e9e4d8;
  border-left: 4px solid var(--rsbc-accent, #b08d3e);
  border-radius: 6px 10px 10px 6px;
  padding: 1.1rem 1.4rem;
  margin-bottom: 1.5rem;
}
.rsbc-lex-entry + .rsbc-lex-entry {
  border-top: 1px solid #efeadd;
  margin-top: 0.9rem;
  padding-top: 0.9rem;
}
.rsbc-lex-lemma {
  font-size: 1.6rem;
  color: var(--rsbc-primary, #1f3a5f);
}
.rsbc-lex-xlit {
  font-style: italic;
  font-weight: 600;
}
.rsbc-lex-pron {
  color: #777;
}
.rsbc-lex-id {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rsbc-accent, #b08d3e);
  margin-left: 0.5rem;
}
.rsbc-lex-def {
  margin: 0.5rem 0 0;
  line-height: 1.7;
}

/* ---------- Dictionary (Easton's) ---------- */
.rsbc-dict-def {
  font-size: 1.08rem;
  line-height: 1.9;
}
.rsbc-dict-def a {
  text-decoration: none;
  border-bottom: 1px dotted var(--rsbc-accent, #b08d3e);
}
.rsbc-dict-def a:hover {
  color: var(--rsbc-accent, #b08d3e);
  border-bottom-style: solid;
}

/* ---------- Gospel Harmony ---------- */
.rsbc-harmony-intro { max-width: 760px; }
.rsbc-harmony-part {
  margin: 2.25rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--rsbc-accent, #b08d3e);
}
.rsbc-harmony-tablewrap { overflow-x: auto; }
.rsbc-harmony-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--rsbc-shadow, 0 2px 14px rgba(31,58,95,0.08));
}
.rsbc-harmony-table th {
  background: var(--rsbc-primary, #1f3a5f);
  color: #fff;
  text-align: left;
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.rsbc-harmony-table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #efeadd;
  vertical-align: top;
}
.rsbc-harmony-table tbody tr:nth-child(even) td { background: #fbfaf6; }
.rsbc-harmony-table tbody tr:hover td { background: var(--rsbc-light, #f7f5f0); }
.rsbc-h-num { color: var(--rsbc-accent, #b08d3e); font-weight: 700; white-space: nowrap; }
.rsbc-h-event { min-width: 220px; font-weight: 600; color: var(--rsbc-ink, #20242b); }
.rsbc-h-ref a { text-decoration: none; white-space: nowrap; }
.rsbc-h-ref a:hover { color: var(--rsbc-accent, #b08d3e); }
.rsbc-h-none { color: #ccc; }
@media (max-width: 700px) {
  .rsbc-harmony-table { font-size: 0.85rem; }
  .rsbc-h-event { min-width: 150px; }
}

/* ---------- Patriarch Timeline ---------- */
.rsbc-timeline {
  --rsbc-tl-namew: 120px;
  max-width: 1150px;
  margin: 0 auto;
  background: linear-gradient(180deg, #fdfcf9 0%, #faf8f2 100%);
  border: 1px solid #e9e4d8;
  border-top: 3px solid var(--rsbc-accent, #b08d3e);
  border-radius: 10px;
  box-shadow: var(--rsbc-shadow, 0 2px 14px rgba(31,58,95,0.08));
  padding: 2rem 2.25rem;
}
.rsbc-tl-body { position: relative; }
.rsbc-tl-row {
  display: flex;
  align-items: center;
  min-height: 30px;
}
.rsbc-tl-row:nth-child(even) { background: rgba(31,58,95,0.025); }
.rsbc-tl-name {
  flex: 0 0 var(--rsbc-tl-namew);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--rsbc-primary, #1f3a5f);
  padding-right: 0.5rem;
}
.rsbc-tl-name a { text-decoration: none; color: inherit; }
.rsbc-tl-name a:hover { color: var(--rsbc-accent, #b08d3e); }
.rsbc-tl-track {
  position: relative;
  flex: 1;
  height: 22px;
  background-image: repeating-linear-gradient(90deg, #ece7da 0 1px, transparent 1px calc(100% / 6));
}
.rsbc-tl-axis .rsbc-tl-track {
  background: none;
  height: 18px;
}
.rsbc-tl-tick {
  position: absolute;
  transform: translateX(-50%);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #998f78;
}
.rsbc-tl-bar {
  position: absolute;
  top: 3px;
  height: 16px;
  background: linear-gradient(180deg, #2c4d7c, var(--rsbc-primary, #1f3a5f));
  border-radius: 3px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.rsbc-tl-bar:hover {
  transform: scaleY(1.25);
  box-shadow: 0 2px 8px rgba(31,58,95,0.35);
  z-index: 3;
}
.rsbc-tl-translated {
  background: linear-gradient(180deg, #c7a558, var(--rsbc-accent, #b08d3e));
}
.rsbc-tl-years {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 6px;
  font-size: 0.68rem;
  color: #8a8270;
  white-space: nowrap;
}
/* push late-era labels inside so they don't overflow the panel */
.rsbc-tl-bar[style*="width:4."] .rsbc-tl-years,
.rsbc-tl-bar[style*="width:5"] .rsbc-tl-years { font-size: 0.66rem; }
.rsbc-tl-flood {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 2px dashed #b3502e;
  z-index: 2;
  pointer-events: none;
}
.rsbc-tl-flood span {
  position: absolute;
  top: -2px;
  left: 5px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #b3502e;
  white-space: nowrap;
}
.rsbc-tl-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: #6b6f76;
}
.rsbc-tl-key {
  display: inline-block;
  width: 22px;
  height: 11px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: baseline;
}
.rsbc-tl-key-norm { background: var(--rsbc-primary, #1f3a5f); }
.rsbc-tl-key-tr   { background: var(--rsbc-accent, #b08d3e); }
.rsbc-tl-key-fl   { background: transparent; border-top: 2px dashed #b3502e; height: 0; margin-bottom: 4px; }
@media (max-width: 700px) {
  .rsbc-timeline { padding: 1.25rem 0.9rem; --rsbc-tl-namew: 86px; }
  .rsbc-tl-name { font-size: 0.8rem; }
  .rsbc-tl-years { display: none; }
}

/* ---------- Hymnal ---------- */
.rsbc-hymn-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2 360px;
  column-gap: 3rem;
}
.rsbc-hymn-list li {
  padding: 0.45rem 0;
  border-bottom: 1px solid #efeadd;
  break-inside: avoid;
}
.rsbc-hymn-list a {
  font-weight: 600;
  text-decoration: none;
  color: var(--rsbc-primary, #1f3a5f);
}
.rsbc-hymn-list a:hover { color: var(--rsbc-accent, #b08d3e); }
.rsbc-hymn-meta {
  display: block;
  font-size: 0.82rem;
  color: #8a8270;
}
.rsbc-hymn-byline {
  text-align: center;
  font-style: italic;
  color: #8a8270;
  margin-top: -0.5rem;
}
.rsbc-hymn-verse,
.rsbc-hymn-refrain {
  max-width: 560px;
  margin: 0 auto 1.4rem;
  display: flex;
  gap: 1rem;
}
.rsbc-hymn-verse p,
.rsbc-hymn-refrain p {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.9;
}
.rsbc-hymn-vnum {
  flex: 0 0 24px;
  font-family: var(--rsbc-display, Georgia, serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--rsbc-accent, #b08d3e);
  text-align: right;
}
.rsbc-hymn-refrain {
  border-left: 3px solid var(--rsbc-accent-soft, #d9c391);
  padding-left: 1rem;
  margin-left: 40px;
}
.rsbc-hymn-refrain p { font-style: italic; }
.rsbc-hymn-rlabel {
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rsbc-accent, #b08d3e);
  padding-top: 0.4rem;
}
