/* UnityNext Bible surfaces (library, chapters, reader).
 * Loaded only on /bible. Tokens come from unity-next.css (body.unity-next-theme);
 * the share modal styles live in unity-next.css because the modal also renders
 * on the home feed. The reader's interaction hooks (js_bible-*) are owned by
 * the script in bible.tpl. */

/* Reading-surface tokens (warm "paper" look, gold accents for verse chrome) */
body.unity-next-theme {
  --uc-paper: #fffdf9;
  --uc-paper-edge: #f6efe2;
  --uc-ink: #2b2521;
  --uc-ink-soft: #5d534b;
  --uc-verse-gold: #b8862b;
  --uc-verse-gold-soft: rgb(201 154 61 / 14%);
  --uc-verse-gold-strong: rgb(201 154 61 / 26%);
}

body.unity-next-theme.night-mode {
  --uc-paper: var(--uc-night-surface);
  --uc-paper-edge: var(--uc-night-surface-2);
  --uc-ink: var(--uc-night-text);
  --uc-ink-soft: var(--uc-night-text-muted);
  --uc-verse-gold: #e0b866;
  --uc-verse-gold-soft: rgb(224 184 102 / 16%);
  --uc-verse-gold-strong: rgb(224 184 102 / 30%);
}

/* ------------------------------------------------------------------ */
/* Library (books) and chapters                                        */
/* ------------------------------------------------------------------ */
.bible-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}

.bible-book-card {
  display: flex;
  min-height: 54px;
  padding: 12px;
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-control);
  align-items: center;
  gap: 10px;
  background: var(--uc-surface);
  color: inherit;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.bible-book-card:hover {
  border-color: var(--uc-primary);
  color: var(--uc-primary);
  transform: translateY(-1px);
}

.bible-book-icon {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: var(--uc-radius-sm);
  align-items: center;
  justify-content: center;
  background: var(--uc-primary-soft);
  color: var(--uc-primary);
}

.bible-chapters-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bible-chapter-btn {
  min-width: 46px;
  border: 1px solid var(--uc-border) !important;
  border-radius: var(--uc-radius-sm);
  background: var(--uc-surface) !important;
  font-weight: 600;
}

.bible-chapter-btn:hover {
  border-color: var(--uc-primary) !important;
  color: var(--uc-primary);
}

.unity-next-theme .unity-next-bible-hero {
  position: relative;
  min-height: 260px;
  margin-block-end: 16px;
  padding: clamp(28px, 5vw, 54px);
  overflow: hidden;
  border-radius: var(--uc-radius-panel);
  background: radial-gradient(circle at 84% 14%, rgb(255 228 145 / 28%), transparent 25%),
    radial-gradient(circle at 8% 92%, rgb(255 255 255 / 12%), transparent 32%),
    linear-gradient(135deg, #3d2419, #8f3306 52%, #c9962c);
  color: #fff;
  box-shadow: 0 22px 46px rgb(91 52 32 / 22%);
}

.unity-next-theme .unity-next-bible-hero::after {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 32px, rgb(255 255 255 / 3%) 33px 34px);
  content: "";
  pointer-events: none;
}

.unity-next-theme .unity-next-bible-hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.unity-next-theme .unity-next-bible-eyebrow {
  display: inline-flex;
  margin-block-end: 13px;
  padding: 6px 10px;
  border: 1px solid rgb(255 255 255 / 26%);
  border-radius: var(--uc-radius-pill);
  align-items: center;
  gap: 7px;
  background: rgb(255 255 255 / 11%);
  color: #fff6e5;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.unity-next-theme .unity-next-bible-hero h1 {
  max-width: 560px;
  margin: 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.08;
}

.unity-next-theme .unity-next-bible-hero p {
  max-width: 560px;
  margin: 14px 0 22px;
  color: rgb(255 255 255 / 86%);
  font-size: 16px;
  line-height: 1.65;
}

.unity-next-theme .unity-next-bible-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.unity-next-theme .unity-next-bible-hero .btn {
  min-height: 42px;
  padding-inline: 17px;
  border-radius: var(--uc-radius-control);
  font-weight: 700;
}

.unity-next-theme .unity-next-bible-hero .btn-outline-light {
  border-color: rgb(255 255 255 / 50%);
}

.unity-next-theme .unity-next-bible-feature-row {
  display: grid;
  margin-block-end: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.unity-next-theme .unity-next-bible-feature {
  display: flex;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-media);
  align-items: center;
  gap: 11px;
  background: var(--uc-surface);
  box-shadow: var(--uc-shadow-sm);
}

.unity-next-theme .unity-next-bible-feature > i {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: var(--uc-radius-sm);
  place-items: center;
  background: var(--uc-primary-soft);
  color: var(--uc-primary);
}

.unity-next-theme .unity-next-bible-feature strong,
.unity-next-theme .unity-next-bible-feature small {
  display: block;
}

.unity-next-theme .unity-next-bible-feature strong {
  color: var(--uc-text);
  font-size: 13px;
}

.unity-next-theme .unity-next-bible-feature small {
  margin-block-start: 2px;
  color: var(--uc-text-muted);
  font-size: 11px;
  line-height: 1.35;
}

.unity-next-theme .unity-next-bible-library {
  overflow: hidden;
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-panel);
  box-shadow: var(--uc-shadow-card);
}

.unity-next-theme .unity-next-bible-library > .card-header {
  display: flex;
  min-height: 78px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--uc-border);
  align-items: center;
  gap: 12px;
}

.unity-next-theme .unity-next-bible-library-title {
  margin-inline-end: auto;
}

.unity-next-theme .unity-next-bible-library-title strong,
.unity-next-theme .unity-next-bible-library-title small {
  display: block;
}

.unity-next-theme .unity-next-bible-library-title strong {
  color: var(--uc-text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
}

.unity-next-theme .unity-next-bible-library-title small {
  margin-block-start: 2px;
  color: var(--uc-text-muted);
  font-size: 12px;
}

.unity-next-theme .unity-next-bible-filter {
  position: relative;
  width: min(270px, 100%);
}

.unity-next-theme .unity-next-bible-filter > .fa-magnifying-glass {
  position: absolute;
  z-index: 1;
  inset-block-start: 50%;
  inset-inline-start: 12px;
  color: var(--uc-text-muted);
  font-size: 12px;
  pointer-events: none;
  transform: translateY(-50%);
}

.unity-next-theme .unity-next-bible-filter .form-control {
  height: 38px;
  padding-inline: 34px 31px;
  border-radius: var(--uc-radius-sm);
  background: var(--uc-gray-25);
  font-size: 12px;
}

.unity-next-theme .unity-next-bible-filter-clear {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 7px;
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: var(--uc-radius-xs);
  background: transparent;
  color: var(--uc-text-muted);
  transform: translateY(-50%);
}

.unity-next-theme .unity-next-bible-book-grid {
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 10px;
}

.unity-next-theme .unity-next-bible-book {
  min-height: 66px;
  border-radius: var(--uc-radius-control);
  background: var(--uc-surface);
  box-shadow: var(--uc-shadow-xs);
}

.unity-next-theme .unity-next-bible-book:hover {
  box-shadow: var(--uc-shadow-primary);
}

/* ------------------------------------------------------------------ */
/* Reader                                                               */
/* ------------------------------------------------------------------ */
.unity-next-theme .bible-reader-card {
  position: relative;
  overflow: visible;
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-panel);
  background: var(--uc-paper);
  box-shadow: var(--uc-shadow-card);
}

/* toolbar */
.unity-next-theme .bible-reader-card > .card-header {
  position: sticky;
  z-index: 20;
  top: calc(var(--uc-header-height, 64px) + 8px);
  padding: 10px 12px;
  border-bottom: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-panel) var(--uc-radius-panel) 0 0;
  background: rgb(255 255 255 / 92%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.bible-reader-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.unity-next-theme .uc-bible-group {
  display: inline-flex;
  height: 40px;
  padding-inline-start: 10px;
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-control);
  align-items: center;
  gap: 4px;
  background: var(--uc-surface);
  box-shadow: var(--uc-shadow-xs);
}

.unity-next-theme .uc-bible-group:focus-within {
  border-color: var(--uc-primary-tint);
  box-shadow: 0 0 0 3px rgb(217 80 12 / 10%);
}

.unity-next-theme .uc-bible-group-icon {
  display: inline-grid;
  place-items: center;
  color: var(--uc-primary);
  font-size: 13px;
}

.bible-reader-toolbar .form-select {
  display: inline-block;
  width: auto;
  max-width: 180px;
}

.unity-next-theme .bible-reader-toolbar .uc-bible-group .form-select {
  height: 36px;
  min-height: 0;
  padding: 0 26px 0 8px;
  border: 0;
  border-radius: var(--uc-radius-sm);
  background-color: transparent;
  background-position: right 8px center;
  color: var(--uc-text);
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
  cursor: pointer;
}

.unity-next-theme .bible-reader-toolbar .uc-bible-group .form-select:hover {
  background-color: var(--uc-surface-muted);
}

.unity-next-theme .bible-reader-toolbar .uc-bible-select-chapter {
  max-width: 78px;
}

.unity-next-theme .bible-reader-toolbar .uc-bible-select-parallel {
  max-width: 150px;
  color: var(--uc-text-muted);
}

.unity-next-theme .bible-reader-toolbar .uc-bible-group .form-select + .form-select {
  border-inline-start: 1px solid var(--uc-border);
  border-radius: 0 var(--uc-radius-sm) var(--uc-radius-sm) 0;
}

.bible-reader-search {
  position: relative;
  display: flex;
  min-width: 170px;
  max-width: 340px;
  flex: 1 1 210px;
  align-items: center;
}

.bible-reader-search > .fa-magnifying-glass {
  position: absolute;
  left: 13px;
  color: var(--uc-text-muted);
  font-size: 12px;
  pointer-events: none;
}

.unity-next-theme .bible-reader-toolbar .bible-reader-search .form-control {
  height: 40px;
  min-height: 0;
  padding-left: 34px;
  padding-right: 30px;
  border: 1px solid transparent;
  border-radius: var(--uc-radius-control);
  background: var(--uc-surface-muted);
  color: var(--uc-text);
  font-size: 13px;
  box-shadow: none;
}

.unity-next-theme .bible-reader-toolbar .bible-reader-search .form-control:focus {
  border-color: var(--uc-primary-tint);
  background: var(--uc-surface);
  box-shadow: 0 0 0 3px rgb(217 80 12 / 10%);
}

.bible-search-clear {
  position: absolute;
  right: 6px;
  display: grid;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: var(--uc-radius-pill);
  place-items: center;
  background: transparent;
  color: var(--uc-text-muted);
  cursor: pointer;
}

.bible-search-clear:hover {
  background: var(--uc-gray-200);
  color: var(--uc-text);
}

.bible-search-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: none;
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-control);
  overflow: hidden;
  background: var(--uc-surface);
  box-shadow: var(--uc-shadow-lg);
}

.bible-search-results.is-open {
  display: block;
}

.bible-search-jump {
  display: block;
  padding: 11px 14px;
  color: var(--uc-primary-dark);
  font-weight: 600;
  text-decoration: none;
}

.bible-search-jump:hover {
  background: var(--uc-primary-soft);
}

.bible-search-empty {
  padding: 11px 14px;
  color: var(--uc-text-muted);
  font-size: 13px;
}

.unity-next-theme .uc-bible-tools {
  display: inline-flex;
  margin-inline-start: auto;
  align-items: center;
  gap: 4px;
}

.unity-next-theme .uc-bible-tool {
  display: inline-grid;
  width: 40px;
  height: 40px;
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-control);
  place-items: center;
  background: var(--uc-surface);
  color: var(--uc-text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.unity-next-theme .uc-bible-tool:hover,
.unity-next-theme .uc-bible-tool:focus-visible {
  border-color: var(--uc-primary-tint);
  background: var(--uc-primary-soft);
  color: var(--uc-primary-dark);
}

/* body */
.unity-next-theme .bible-reader-card > .card-body {
  padding: clamp(22px, 4vw, 44px) clamp(18px, 4vw, 48px) clamp(20px, 3vw, 36px);
  background: transparent;
}

.unity-next-theme .uc-bible-heading {
  margin: 0 auto 24px;
  text-align: center;
}

.bible-reader-ref {
  position: relative;
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  text-align: center;
}

.unity-next-theme .bible-reader-ref {
  padding-block-end: 16px;
  color: var(--uc-ink);
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -.01em;
}

.unity-next-theme .bible-reader-ref::after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 44px;
  height: 3px;
  border-radius: var(--uc-radius-pill);
  background: linear-gradient(90deg, var(--uc-verse-gold), var(--uc-primary));
  content: "";
  transform: translateX(-50%);
}

.bible-share-hint {
  display: inline-flex;
  margin: 0 auto;
  padding: 7px 14px;
  border: 1px dashed var(--uc-verse-gold-strong);
  border-radius: var(--uc-radius-pill);
  align-items: center;
  gap: 8px;
  background: var(--uc-verse-gold-soft);
  color: var(--uc-ink-soft);
  font-size: 12px;
}

.bible-share-hint > i {
  color: var(--uc-verse-gold);
}

.bible-reader-layout {
  position: relative;
}

.bible-reader-layout.is-parallel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 30px;
}

.bible-reader-layout.is-loading {
  opacity: .35;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.bible-reader-pane {
  position: relative;
  min-width: 0;
}

.bible-reader-layout.is-parallel .js_bible-parallel-pane {
  padding-inline-start: 30px;
  border-inline-start: 1px solid var(--uc-verse-gold-strong);
}

.bible-pane-label {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--uc-verse-gold-strong);
  color: var(--uc-verse-gold);
  font-family: var(--body-font-family, "Poppins", system-ui, sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
}

.bible-reader-text {
  max-width: 46rem;
  margin: 0 auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.95;
  text-align: left;
}

.unity-next-theme .bible-reader-text {
  color: var(--uc-ink);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 2;
}

.bible-reader-text.font-sm {
  font-size: 15px !important;
  line-height: 1.85 !important;
}

.bible-reader-text.font-lg {
  font-size: 21px !important;
  line-height: 2.05 !important;
}

.bible-reader-text .p,
.bible-reader-text .m {
  margin: 0 0 1.05em;
}

.bible-reader-text .q1 {
  margin-left: 1.6em;
}

.bible-reader-text .q2 {
  margin-left: 3.2em;
}

.bible-reader-text .s,
.bible-reader-text .s1,
.bible-reader-text .s2 {
  margin: 1.7em 0 .65em;
  color: var(--uc-primary-dark);
  font-family: var(--body-font-family, "Poppins", system-ui, sans-serif);
  font-size: .78em;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.bible-reader-text .label,
.bible-reader-text .yv-vlbl {
  margin: 0 3px 0 5px;
  color: var(--uc-verse-gold);
  font-family: var(--body-font-family, "Poppins", system-ui, sans-serif);
  font-size: .58em;
  font-style: normal;
  font-weight: 700;
  line-height: 0;
  vertical-align: super;
  user-select: none;
}

.bible-reader-text .yv-v {
  display: none;
}

.bible-reader-text .verse.bible-verse {
  padding: 1px 3px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 140ms ease, box-shadow 140ms ease;
}

.bible-reader-text .verse.bible-verse:hover {
  background: var(--uc-verse-gold-soft);
}

.bible-reader-text .verse.is-selected {
  background: var(--uc-verse-gold-strong);
  box-shadow: 0 0 0 1px var(--uc-verse-gold);
}

.bible-reader-text .verse:focus-visible {
  outline: 3px solid rgb(217 80 12 / 45%);
  outline-offset: 3px;
}

.bible-reader-text mark.bible-hit {
  border-radius: 3px;
  background: #ffe08a;
  color: inherit;
}

.bible-copyright {
  padding-top: 8px;
  border-top: 1px solid var(--uc-border);
  color: var(--uc-text-muted) !important;
}

.bible-loader {
  padding: 26px 0;
  text-align: center;
}

/* selection action bar */
.bible-action-bar {
  position: sticky;
  z-index: 20;
  bottom: 0;
  display: flex;
  padding: 12px 18px;
  border-top: 1px solid var(--uc-verse-gold-strong);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--uc-surface);
  box-shadow: 0 -8px 24px rgb(16 24 40 / 6%);
}

.bible-action-bar[hidden] {
  display: none;
}

.bible-action-count {
  color: var(--uc-ink-soft);
  font-size: 14px;
}

.bible-action-count strong {
  display: inline-grid;
  min-width: 26px;
  height: 26px;
  margin-inline-end: 4px;
  border-radius: var(--uc-radius-pill);
  place-items: center;
  background: var(--uc-verse-gold-soft);
  color: var(--uc-verse-gold);
  font-size: 13px;
}

.bible-action-buttons {
  display: flex;
  gap: 8px;
}

/* footer navigation */
.unity-next-theme .uc-bible-footer {
  display: flex;
  padding: 12px 16px;
  border-top: 1px solid var(--uc-border);
  border-radius: 0 0 var(--uc-radius-panel) var(--uc-radius-panel);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--uc-surface);
}

.unity-next-theme .uc-bible-nav,
.unity-next-theme .uc-bible-nav-books {
  display: inline-flex;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-control);
  align-items: center;
  gap: 8px;
  background: var(--uc-surface);
  color: var(--uc-text);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.unity-next-theme .uc-bible-nav:hover,
.unity-next-theme .uc-bible-nav-books:hover {
  border-color: var(--uc-primary-tint);
  background: var(--uc-primary-soft);
  color: var(--uc-primary-dark);
}

.unity-next-theme .uc-bible-nav:disabled {
  opacity: .4;
  cursor: default;
}

.unity-next-theme .uc-bible-nav:disabled:hover {
  border-color: var(--uc-border);
  background: var(--uc-surface);
  color: var(--uc-text);
}

.unity-next-theme .uc-bible-nav-books {
  color: var(--uc-text-secondary);
}

/* desktop side arrows (delegating to the footer buttons). The zero-height
   wrapper is sticky, so the arrows follow the reader while it scrolls. */
.unity-next-theme .uc-bible-arrows {
  position: sticky;
  z-index: 15;
  top: 50vh;
  height: 0;
  margin-inline: calc(-1 * clamp(18px, 4vw, 48px));
}

.unity-next-theme .uc-bible-arrow {
  position: absolute;
  top: 0;
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--uc-border);
  border-radius: var(--uc-radius-pill);
  place-items: center;
  background: var(--uc-surface);
  color: var(--uc-text-secondary);
  font-size: 14px;
  cursor: pointer;
  box-shadow: var(--uc-shadow-md);
  transform: translateY(-50%);
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.unity-next-theme .uc-bible-arrow:hover {
  border-color: var(--uc-primary-tint);
  background: var(--uc-primary-soft);
  color: var(--uc-primary-dark);
}

.unity-next-theme .uc-bible-arrow-prev {
  left: -23px;
}

.unity-next-theme .uc-bible-arrow-next {
  right: -23px;
}

.unity-next-theme .bible-reader-card:has(.js_bible-prev:disabled) .uc-bible-arrow-prev,
.unity-next-theme .bible-reader-card:has(.js_bible-next:disabled) .uc-bible-arrow-next {
  opacity: .35;
  pointer-events: none;
}

@media (min-width: 1200px) {
  .unity-next-theme .uc-bible-arrow {
    display: grid;
  }
}

/* verse of the day widget */
.unity-next-theme .unity-next-bible-votd {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: var(--uc-radius-card);
  box-shadow: var(--uc-shadow-md);
}

.unity-next-theme .unity-next-bible-votd .card-body {
  padding: 18px;
}

.unity-next-theme .unity-next-bible-votd .kretan-bible-banner-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.unity-next-theme .unity-next-bible-votd .bible-votd-text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.72;
}

/* night mode */
body.unity-next-theme.night-mode .unity-next-bible-feature,
body.unity-next-theme.night-mode .unity-next-bible-library,
body.unity-next-theme.night-mode .bible-reader-card,
body.unity-next-theme.night-mode .bible-book-card,
body.unity-next-theme.night-mode .unity-next-bible-book,
body.unity-next-theme.night-mode .bible-chapter-btn {
  border-color: var(--uc-night-border);
  background: var(--uc-night-surface);
}

body.unity-next-theme.night-mode .unity-next-bible-library > .card-header,
body.unity-next-theme.night-mode .bible-reader-card > .card-header {
  border-color: var(--uc-night-border);
  background: rgb(22 28 37 / 92%);
}

body.unity-next-theme.night-mode .uc-bible-group,
body.unity-next-theme.night-mode .uc-bible-tool,
body.unity-next-theme.night-mode .uc-bible-nav,
body.unity-next-theme.night-mode .uc-bible-nav-books,
body.unity-next-theme.night-mode .uc-bible-arrow,
body.unity-next-theme.night-mode .uc-bible-footer,
body.unity-next-theme.night-mode .bible-action-bar,
body.unity-next-theme.night-mode .bible-search-results {
  border-color: var(--uc-night-border);
  background: var(--uc-night-surface-2);
  color: var(--uc-night-text);
}

body.unity-next-theme.night-mode .bible-reader-toolbar .uc-bible-group .form-select {
  color: var(--uc-night-text);
  color-scheme: dark;
}

body.unity-next-theme.night-mode .bible-reader-toolbar .bible-reader-search .form-control {
  background: var(--uc-night-surface-2);
  color: var(--uc-night-text);
}

body.unity-next-theme.night-mode .unity-next-bible-feature strong,
body.unity-next-theme.night-mode .unity-next-bible-library-title strong,
body.unity-next-theme.night-mode .bible-reader-ref,
body.unity-next-theme.night-mode .bible-reader-text {
  color: var(--uc-night-text);
}

body.unity-next-theme.night-mode .bible-copyright {
  border-top-color: var(--uc-night-border);
}

body.unity-next-theme.night-mode .bible-reader-text mark.bible-hit {
  background: #7a5a12;
  color: #fff;
}

@media (max-width: 991.98px) {
  .unity-next-theme .unity-next-bible-feature-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .unity-next-theme .unity-next-bible-hero {
    min-height: 0;
    margin-inline: -2px;
    padding: 28px 22px;
    border-radius: var(--uc-radius-card);
  }

  .unity-next-theme .unity-next-bible-hero p {
    font-size: 14px;
  }

  .unity-next-theme .unity-next-bible-library > .card-header {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .unity-next-theme .unity-next-bible-filter {
    width: 100%;
    order: 3;
  }

  .unity-next-theme .unity-next-bible-book-grid {
    grid-template-columns: 1fr;
  }

  .unity-next-theme .bible-reader-card > .card-header {
    position: static;
    padding: 10px;
    border-radius: var(--uc-radius-card) var(--uc-radius-card) 0 0;
  }

  .unity-next-theme .uc-bible-group {
    flex: 1 1 100%;
  }

  .unity-next-theme .uc-bible-group .form-select:first-of-type {
    flex: 1 1 auto;
    max-width: none;
  }

  .bible-reader-search {
    max-width: none;
    flex: 1 1 auto;
  }

  .unity-next-theme .bible-reader-card > .card-body {
    padding: 22px 16px 20px;
  }

  .unity-next-theme .bible-reader-text {
    font-size: 17px;
    line-height: 1.9;
  }

  .bible-reader-layout.is-parallel {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .bible-reader-layout.is-parallel .js_bible-parallel-pane {
    margin-top: 10px;
    padding-top: 14px;
    padding-inline-start: 0;
    border-top: 1px solid var(--uc-verse-gold-strong);
    border-inline-start: 0;
  }

  .unity-next-theme .uc-bible-nav span,
  .unity-next-theme .uc-bible-nav-books span {
    display: none;
  }

  .unity-next-theme .uc-bible-nav,
  .unity-next-theme .uc-bible-nav-books {
    min-width: 46px;
    justify-content: center;
  }

  .unity-next-theme .uc-bible-footer {
    position: sticky;
    z-index: 20;
    bottom: calc(70px + env(safe-area-inset-bottom));
  }
}
