/* bible.css — Bible reference links + passage panel (uses the app's CSS variables when present) */
.bref {
  color: #2d5673; background: transparent; border: 0; border-bottom: 1px solid rgba(45, 86, 115, 0.45);
  padding: 0; margin: 0; font: inherit; cursor: pointer; line-height: inherit; text-align: inherit;
}
.bref:hover, .bref:focus-visible { color: #173a52; border-bottom-color: #173a52; background: rgba(45, 86, 115, 0.08); outline: none; }
.bref mark { color: inherit; }

.bible-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); z-index: 1000;
  display: flex; flex-direction: column;
  background: var(--card, #fffaf0); color: var(--ink, #2a2118);
  border-left: 1px solid var(--line, #c9b896); box-shadow: -8px 0 28px rgba(42, 33, 24, 0.22);
  font-family: var(--serif, Georgia, serif);
}
.bible-panel[hidden] { display: none; }
.bible-panel.bp-mode-compare { width: min(1100px, 100vw); }
.bp-head { display: flex; align-items: center; gap: .4rem; padding: .7rem .8rem .5rem; border-bottom: 1px solid var(--line, #c9b896);
  background: linear-gradient(180deg, rgba(255,250,240,.98), var(--parchment, #f4ecd8)); }
.bp-title { flex: 1; margin: 0; font-size: 1.2rem; color: var(--year, #3d2f22); text-align: center; }
.bp-nav, .bp-close { font: 600 1.25rem/1 var(--sans, system-ui, sans-serif); border: 1px solid var(--line, #c9b896); background: var(--card, #fffaf0);
  color: var(--accent, #7a4a2a); width: 2rem; height: 2rem; border-radius: 6px; cursor: pointer; }
.bp-nav:hover, .bp-close:hover { background: var(--parchment-dark, #e8dcc0); }
.bp-tools { padding: .5rem .8rem; border-bottom: 1px dashed var(--line, #c9b896); font-family: var(--sans, system-ui, sans-serif); font-size: .85rem;
  display: flex; flex-direction: column; gap: .45rem; color: var(--ink-soft, #5a4a3a); }
.bp-modes { display: flex; gap: 0; }
.bp-modes button { flex: 1; font: inherit; padding: .35rem .5rem; border: 1px solid var(--line, #c9b896); background: var(--card, #fffaf0); color: var(--ink-soft, #5a4a3a); cursor: pointer; }
.bp-modes button:first-child { border-radius: 6px 0 0 6px; } .bp-modes button:last-child { border-radius: 0 6px 6px 0; border-left: 0; }
.bp-modes button[aria-selected="true"] { background: var(--accent, #7a4a2a); color: #fff; border-color: var(--accent, #7a4a2a); }
.bp-single select { font: inherit; margin-left: .3rem; max-width: 100%; padding: .2rem; border: 1px solid var(--line, #c9b896); border-radius: 5px; background: #fff; }
.bp-compare { display: none; flex-wrap: wrap; align-items: center; gap: .3rem; }
.bp-mode-compare .bp-compare { display: flex; } .bp-mode-compare .bp-single { display: none; }
.bp-chip { font: inherit; font-size: .8rem; padding: .15rem .55rem; border-radius: 999px; border: 1px solid var(--line, #c9b896); background: #fff; color: var(--ink-soft, #5a4a3a); cursor: pointer; }
.bp-chip[aria-pressed="true"] { background: #2d5673; border-color: #2d5673; color: #fff; }
.bp-row2 { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.bp-btn { font: inherit; padding: .3rem .65rem; border: 1px solid var(--line, #c9b896); border-radius: 6px; background: var(--card, #fffaf0); color: var(--accent, #7a4a2a); cursor: pointer; }
.bp-btn:hover { background: var(--parchment-dark, #e8dcc0); }
.bp-btn[hidden] { display: none; }
.bp-go { display: flex; gap: .3rem; margin-left: auto; }
.bp-go input { font: inherit; width: 12.5rem; padding: .3rem .45rem; border: 1px solid var(--line, #c9b896); border-radius: 6px; }
.bp-notes:empty { display: none; }
.bp-note { margin: .5rem .8rem 0; padding: .45rem .6rem; font: .82rem/1.4 var(--sans, system-ui, sans-serif); background: #fbf3dc; border: 1px solid #e3cf98; border-radius: 6px; color: #5a4520; }
.bp-body { flex: 1; overflow: auto; padding: .4rem 1rem 1rem; }
.bp-mode-compare .bp-body { padding-top: 0; }
.bp-read { font-size: 1.06rem; line-height: 1.6; }
.bp-ch { font-size: .95rem; margin: 1rem 0 .3rem; color: var(--accent, #7a4a2a); font-family: var(--sans, system-ui, sans-serif); letter-spacing: .02em; }
.bp-v { margin: .25rem 0; padding: .1rem .35rem; border-radius: 4px; }
.bp-vn { font: 700 .7rem var(--sans, system-ui, sans-serif); color: var(--accent-soft, #a67c52); margin-right: .3rem; vertical-align: super; }
.bp-cited { background: rgba(214, 178, 92, 0.22); }
tr.bp-cited td, tr.bp-cited th { background: rgba(214, 178, 92, 0.22); }
.bp-missing { color: #9a8a76; font-style: italic; font-size: .9em; }
.bp-pil { color: #b9a988; font-size: .8em; }
.bp-cmp { width: 100%; border-collapse: collapse; font-size: .98rem; line-height: 1.5; table-layout: fixed; }
.bp-cmp th, .bp-cmp td { border-bottom: 1px solid #eadfc6; padding: .4rem .5rem; vertical-align: top; text-align: left; }
.bp-cmp thead th { position: sticky; top: 0; background: var(--card, #fffaf0); font: 700 .85rem var(--sans, system-ui, sans-serif); color: #2d5673; border-bottom: 2px solid var(--line, #c9b896); z-index: 1; }
.bp-cmp thead th small { display: block; font-weight: 400; color: var(--ink-soft, #5a4a3a); font-size: .72rem; }
.bp-cmp .bp-vn-col { width: 3.2rem; font: 700 .75rem var(--sans, system-ui, sans-serif); color: var(--accent-soft, #a67c52); }
.bp-chrow th { font: 700 .85rem var(--sans, system-ui, sans-serif); color: var(--accent, #7a4a2a); padding-top: .9rem; }
.bp-foot { border-top: 1px solid var(--line, #c9b896); padding: .45rem .8rem .6rem; font: .74rem/1.4 var(--sans, system-ui, sans-serif); color: var(--ink-soft, #5a4a3a); }
.bp-foot p { margin: .15rem 0; } .bp-foot a { color: #2d5673; } .bp-online a { margin-right: .35rem; }
.bp-loading { color: var(--ink-soft, #5a4a3a); font-style: italic; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 700px) {
  .bible-panel, .bible-panel.bp-mode-compare { width: 100vw; }
  .bp-cmp { font-size: .9rem; } .bp-go { margin-left: 0; } .bp-go input { width: 9rem; }
}
@media (max-width: 700px) { .bp-mode-compare .bp-cmp { min-width: calc(var(--n, 3) * 9rem); } }
