/* ============================================================
   Bible page — bilingual passage lookup (bible.html)
   Uses the tokens defined in styles.css.
   ============================================================ */

.bible-head .page-head-inner { padding-top: clamp(1.5rem, 3vw, 2.2rem); padding-bottom: clamp(1.5rem, 3vw, 2.2rem); }
.bible-head .crumbs { margin-bottom: 0.7rem; }
.bible-head .eyebrow { margin-bottom: 0.5em; }
.bible-head h1 { max-width: none; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.bible-head .lede { margin-top: 0.4rem; font-size: 1.05rem; }
.bible-section { padding-top: clamp(1.4rem, 3vw, 2.2rem); }

/* ---------- Search ---------- */
.bible-search {
  display: flex;
  gap: 0.6rem;
  max-width: 760px;
}
.bible-search input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1.2rem;
  padding: 0.75em 1em;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: 4px;
}
.bible-search input:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; }
.bible-search .btn { white-space: nowrap; }

.bible-hint {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.bible-hint button {
  font: inherit;
  color: var(--navy);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--brass);
  padding: 0;
  margin: 0 0.5em 0 0.2em;
  cursor: pointer;
}
.bible-hint button:hover { color: var(--brass); }

/* ---------- Options ---------- */
.bible-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.4rem;
  margin-top: 1.5rem;
  padding: 0.9rem 1.1rem;
  background: var(--white);
  border: 1px solid var(--paper-tint);
  border-left: 3px solid var(--brass);
  border-radius: 6px;
  font-size: 0.95rem;
}
.bible-field { display: flex; align-items: center; gap: 0.5em; font-weight: 500; }
.bible-field select {
  font: inherit;
  padding: 0.35em 0.5em;
  border: 1px solid #c9c6ba;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  max-width: 100%;
}
.bible-check { display: inline-flex; align-items: center; gap: 0.4em; cursor: pointer; }
.bible-check input { width: 1.05em; height: 1.05em; accent-color: var(--navy); }
.bible-size input { accent-color: var(--navy); width: 130px; }
.bible-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-left: auto; }
.bible-btn {
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5em 0.9em;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--navy);
  border-radius: 3px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.bible-btn:hover { background: var(--navy); color: var(--paper); }
.bible-btn:disabled { opacity: 0.4; cursor: default; }
.bible-btn:disabled:hover { background: var(--white); color: var(--navy); }
.bible-btn-gold { background: var(--brass); border-color: var(--brass); color: var(--navy-deep); }
.bible-btn-gold:hover { background: var(--brass-soft); border-color: var(--brass-soft); color: var(--navy-deep); }
.bible-btn[hidden] { display: none; }

.bible-status { min-height: 1.5em; margin: 0.9rem 0 0.4rem; font-size: 0.98rem; color: var(--ink-soft); }
.bible-status.is-error { color: #a3271b; font-weight: 500; }

/* ---------- Passage card ---------- */
.bible-card {
  --bible-size: 22px;
  background: #fff;
  color: #111;
  border: 1px solid var(--paper-tint);
  border-radius: 6px;
  padding: clamp(1.2rem, 3.5vw, 2.6rem);
  font-size: var(--bible-size);
  min-height: 6em;
}
.bible-card:empty { display: none; }
.bible-passage + .bible-passage { margin-top: 1.6em; padding-top: 1.4em; border-top: 1px solid #e3e1d8; }

.bible-ml {
  font-family: var(--font-ml);
  font-weight: 700;
  line-height: 1.72;
}
.bible-en {
  font-family: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  line-height: 1.42;
  margin-top: 0.3em;
}
.bible-ml + .bible-en { margin-top: 0.35em; }
.bible-vn {
  font-family: 'Libre Caslon Text', Georgia, serif;
  font-weight: 400;
  font-size: 0.92em;
  color: #8b8b8b;
  margin-right: 0.12em;
}
.bible-ref {
  font-family: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 0.1em;
}
.bible-ref .bible-abbr { font-weight: 400; font-size: 0.72em; color: #6f6f6f; margin-left: 0.5em; }

.bible-notes {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 62em;
}
.bible-notes p + p { margin-top: 0.6rem; }

/* ---------- Clean view (screenshots / screen share) ---------- */
.bible-exit { display: none; }

html.bible-clean,
html.bible-clean body { background: #fff; }
html.bible-clean .site-header,
html.bible-clean .page-head,
html.bible-clean .bible-search,
html.bible-clean .bible-hint,
html.bible-clean .bible-controls,
html.bible-clean .bible-status,
html.bible-clean .bible-notes,
html.bible-clean .site-footer { display: none; }
html.bible-clean .bible-section { padding: 0; }
html.bible-clean .bible-section .container { max-width: none; padding: 0; }
html.bible-clean .bible-card {
  border: 0;
  border-radius: 0;
  padding: clamp(1.2rem, 3vw, 2.4rem) clamp(1.4rem, 3.5vw, 3rem);
}
/* Nearly invisible until hovered, so it never shows up in a screenshot. */
html.bible-clean .bible-exit {
  display: block;
  position: fixed;
  top: 0;
  right: 0;
  font: inherit;
  font-size: 0.85rem;
  padding: 0.5em 0.9em;
  color: var(--paper);
  background: var(--navy-deep);
  border: 0;
  border-radius: 0 0 0 6px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}
html.bible-clean .bible-exit:hover,
html.bible-clean .bible-exit:focus-visible { opacity: 1; }

@media (max-width: 640px) {
  .bible-search { flex-direction: column; }
  .bible-actions { margin-left: 0; }
  .bible-controls { gap: 0.6rem 1rem; }
}

@media print {
  .site-header, .page-head, .bible-search, .bible-hint, .bible-controls,
  .bible-status, .bible-notes, .site-footer, .bible-exit { display: none !important; }
  .bible-card { border: 0; padding: 0; }
}
