*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'David Libre', Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.7;
  color: #111;
  background: #fff;
  margin: 0;
  padding: 0;
  font-variant-numeric: oldstyle-nums;
}

body.review-popup-open {
  padding-top: 92px;
}

.review-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 460;
  border-bottom: 1px solid #d9cebd;
  background: #f7f2e8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.review-popup-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-popup-text {
  color: #493f34;
  font-size: 14px;
  line-height: 1.5;
}

.review-popup-text a,
.review-popup-text a:visited,
.review-popup-text a:hover,
.review-popup-text a:active {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.review-popup-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.review-popup-btn {
  border: 1px solid #b9aa95;
  background: #fff;
  color: #493f34;
  min-height: 34px;
  padding: 0 12px;
  cursor: pointer;
  font-family: 'David Libre', Georgia, serif;
  font-size: 14px;
}

.review-popup-btn:hover,
.review-popup-btn:active {
  background: #f0e7d8;
}

.review-popup-btn-secondary {
  background: #f9f4ea;
}

.install-popup {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 470;
  border: 1px solid #d9cebd;
  border-radius: 12px;
  background: #fffaf0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.install-popup-content {
  max-width: 920px;
  margin: 0 auto;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.install-popup-text {
  color: #493f34;
  font-size: 14px;
  line-height: 1.45;
}

.install-popup-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.install-popup-btn {
  border: 1px solid #b9aa95;
  background: #fff;
  color: #493f34;
  min-height: 34px;
  padding: 0 12px;
  cursor: pointer;
  font-family: 'David Libre', Georgia, serif;
  font-size: 14px;
}

.install-popup-btn:hover,
.install-popup-btn:active {
  background: #f0e7d8;
}

.install-popup-btn-secondary {
  background: #f9f4ea;
}

body.dark-mode .install-popup {
  border-color: #5a544b;
  background: #2f2b25;
}

body.dark-mode .install-popup-text,
body.dark-mode .install-popup-btn {
  color: #ece3d2;
}

body.dark-mode .install-popup-btn {
  border-color: #6e665a;
  background: #3b362e;
}

body.dark-mode .install-popup-btn:hover,
body.dark-mode .install-popup-btn:active {
  background: #4a443b;
}

/* ── Layout raiz para o drawer push ── */
#page-layout {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 780px) {
  body.review-popup-open {
    padding-top: 132px;
  }

  .review-popup-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .review-popup-actions {
    width: 100%;
  }

  .install-popup {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .install-popup-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .install-popup-actions {
    width: 100%;
  }
}

/* ── Top bar ── */
#topbar {
  border-bottom: 1px solid #999;
  padding: 6px 0 4px;
  font-size: 14px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}

#topbar a, #topbar button.link-btn {
  color: #00c;
  text-decoration: none;
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  margin-bottom: 5px;
}
#topbar a:hover, #topbar button.link-btn:hover { text-decoration: underline; }
#topbar span { color: #555; }

#edition-selector {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

#edition-selector label { color: #555; }

.theme-toggle-btn {
  border: 1px solid #999;
  background: #f6f6f6;
  color: #222;
  font-family: 'David Libre', Georgia, serif;
  font-size: 13px;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
}

.theme-toggle-btn:hover {
  background: #ececec;
}

select {
  font-family: 'David Libre', Georgia, serif;
  font-size: 14px;
  padding: 2px 4px;
  border: 1px solid #999;
  background: #fff;
  color: #111;
  cursor: pointer;
}

/* ── Compare mode toggle ── */
#compare-bar { display: none !important; }

/* ── Nav ── */
#nav {
  margin: 10px 0 0;
  font-size: 14px;
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.nav-row .book-title {
  flex: 1;
  text-align: center;
  font-weight: bold;
  color: #111;
  line-height: normal;
}

.nav-row a, .chapter-links a {
  color: #00c;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
}
.nav-row a:hover, .chapter-links a:hover { text-decoration: underline; }
.nav-row .dimmed { color: #999; }

.chapter-links {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.chapter-links .label { color: #555; }
.chapter-links a.current { font-weight: bold; color: #111; text-decoration: none; cursor: default; }

#chapter-actions {
  margin: 4px 0 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 18px;
}

.chapter-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.ver-original-btn,
.compare-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1px solid #b9bcc8;
  border-radius: 999px;
  background: #f6f7fb;
  color: #4d5568;
  font-family: 'David Libre', Georgia, serif;
  font-size: 12px;
  line-height: normal;
  cursor: pointer;
  letter-spacing: 0.02em;
  text-decoration: none;
  margin-top: 0;
}

.compare-toggle-label {
  display: inline-block;
}

.compare-toggle-icon {
  display: none;
}

.compare-toggle-btn.active .compare-toggle-icon,
.compare-toggle-btn-undo .compare-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  min-width: 10px;
  font-size: 9px;
  line-height: 1;
}

.compare-toggle-icon:empty {
  display: none;
}

.ver-original-btn:hover,
.compare-toggle-btn:hover {
  background: #efe6c4;
  border-color: #bea35a;
  text-decoration: none;
}

.compare-toggle-btn.active {
  background: #e8edf9;
  border-color: #6f85c9;
  color: #2f4f9d;
}

.compare-toggle-btn.compare-toggle-btn-undo {
  background: #fff2f1;
  border-color: #d87067;
  color: #a43f37;
}

.compare-toggle-btn.compare-toggle-btn-undo:hover {
  background: #ffe8e5;
  border-color: #c75b52;
}

.compare-toggle-btn.disabled,
.compare-toggle-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.compare-status {
  color: #888;
  font-style: italic;
  font-size: 13px;
}

/* ── Main content area ── */
#main-area { display: block; }

#main-area.single #col-primary { display: block; }
#main-area.single #col-compare { display: none; }
#main-area.single #compare-grid { display: none; }

#main-area.compare #col-primary { display: none; }
#main-area.compare #col-compare { display: none; }
#main-area.compare #compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
}

#col-compare-header { display: none; }

/* ── Compare grid ── */
#compare-grid { display: none; }

.cg-cell {
  padding: 6px 0 10px;
  font-size: 18px;
  line-height: 1.7;
}

.cg-header-cell {
  padding: 18px 0 6px;
}

.cg-edition-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #999;
  margin-bottom: 4px;
}

.cg-chapter-title {
  font-size: 19px;
  font-weight: bold;
  margin-bottom: 2px;
}

.cg-summary-text {
  font-size: 14px;
  color: #555;
  font-style: italic;
}

.cg-rule {
  grid-column: 1 / -1;
  border: none;
  border-top: 1px solid #aaa;
  height: 0;
  margin: 4px 0 8px;
}

.cg-divider {
  grid-column: 1 / -1;
  border-top: 1px solid #ddd;
  height: 0;
  margin: 0;
}

/* ── Chapter header ── */
.chapter-header {
  margin: 18px 0 6px;
}

.chapter-title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chapter-header h1 {
  font-size: 19px;
  font-weight: bold;
  margin-bottom: 2px;
}

.chapter-header .summary {
  font-size: 14px;
  color: #555;
  font-style: italic;
  margin-bottom: 10px;
}

hr.section-rule {
  border: none;
  border-top: 1px solid #aaa;
  margin: 8px 0 12px;
}

/* ── Verses ── */
.verse {
  margin-bottom: 4px;
  font-size: 17px;
  padding: 0 8px;
}

.vnum {
  display: inline-block;
  min-width: 1.8em;
  text-align: right;
  font-weight: bold;
  margin-right: 6px;
  color: #111;
  font-size: 18px;
  font-variant-numeric: lining-nums tabular-nums;
  vertical-align: baseline;
}

.vnum a {
  color: inherit;
  text-decoration: none;
}

.prophetic { font-style: italic; }

.verse.highlighted { background: #fffff0; }

.verse.verse-marked {
  background-color: #fff2a8;
  box-shadow: inset 0 0 0 1px rgba(219, 180, 61, 0.25);
  border-radius: 3px;
  transition: background-color 0.2s ease;
  padding-top: 8px;
  padding-bottom: 8px;
}

/* ── Footnote reference ── */
sup.fnref {
  font-size: 12px;
  cursor: pointer;
  color: #00c;
  margin-left: 2px;
  position: relative;
}

/* ── Inline footnote popup ── */
.fn-popup {
  display: none;
  position: absolute;
  z-index: 100;
  background: #fffff0;
  border: 1px solid #888;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.6;
  width: 420px;
  max-width: 90vw;
  box-shadow: 2px 3px 8px rgba(0,0,0,0.18);
  left: 0;
  top: 1.4em;
  color: #111;
  text-align: left;
}

.fn-popup.active { display: block; }
.fn-popup .fn-label { font-weight: bold; font-style: italic; }
.fn-popup .fn-close {
  position: absolute;
  top: 5px;
  right: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #555;
  line-height: 1;
  background: none;
  border: none;
  padding: 2px 4px;
}
.fn-popup .fn-close:hover { color: #000; }

/* ── Bio boxes ── */
.bio {
  padding: 10px 0;
  margin: 12px 0;
  font-size: 16px;
}

.bio .bio-title {
  font-weight: bold;
  font-variant: small-caps;
  font-size: 17px;
  margin-bottom: 4px;
}

/* ── Bottom nav ── */
#bottomnav {
  margin-top: 24px;
  font-size: 14px;
  border-top: 1px solid #aaa;
  padding-top: 8px;
}

#bottomnav .nav-row { margin-bottom: 4px; }

/* ── Loading / error states ── */
.loading-msg {
  color: #888;
  font-style: italic;
  padding: 20px 0;
  font-size: 15px;
}

.error-msg {
  color: #a00;
  font-size: 15px;
  padding: 10px 0;
}

/* ── Botões de ações de capítulo (badge) ── */

.inline-pdf-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.inline-pdf-toggle.active {
  background: #e8edf9;
  border-color: #6f85c9;
  color: #2f4f9d;
}

.chapter-pdf-fallback-frame {
  width: 100%;
  min-height: 78vh;
  border: 0;
  background: #fff;
}

.pdfjs-status {
  min-height: 0;
  font-size: 13px;
  color: #6b5f52;
  margin: 0;
  position: absolute;
  top: 8px;
  left: 12px;
  right: 12px;
  z-index: 8;
  background: transparent;
  pointer-events: none;
}

.pdfjs-mobile-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 0;
  padding: 8px;
  border: 1px solid #d9cebd;
  background: #f7f2e8;
  position: sticky;
  top: 0;
  z-index: 5;
}

.pdfjs-tool-btn {
  border: 1px solid #b9aa95;
  background: #fff;
  color: #493f34;
  min-height: 34px;
  min-width: 40px;
  padding: 0 10px;
  cursor: pointer;
  font-family: 'David Libre', Georgia, serif;
  font-size: 14px;
}

.pdfjs-tool-btn:active {
  background: #f0e7d8;
}

.pdfjs-tool-btn-label {
  min-width: 62px;
  font-weight: bold;
}

.pdfjs-canvas-wrap {
  width: 100%;
  min-height: 60vh;
  overflow: auto;
  touch-action: pan-x pan-y;
  position: relative;
}

.pdfjs-pages {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdfjs-pages canvas {
  display: block;
  max-width: none;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

body.pdf-modal-open {
  overflow: hidden;
}

#pdf-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 420;
  background: rgba(0, 0, 0, 0.65);
  padding: 0;
  overscroll-behavior: contain;
}

#pdf-modal.open {
  display: block;
}

#pdf-modal-panel {
  background: #fff;
  border: 0;
  width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
}

#pdf-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ccc;
  padding: calc(8px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) 8px calc(12px + env(safe-area-inset-left));
}

#pdf-modal-title {
  color: #555;
  font-style: italic;
}

#pdf-modal-close {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #555;
}

#modal-pdf-status { top: 10px; }

.pdfjs-canvas-wrap-modal {
  margin: 0 calc(12px + env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-left));
  min-height: 0;
  flex: 1;
  display: flex;
  justify-content: center;
}

#modal-pdf-pages {
  min-width: 100%;
  align-items: center;
}

#modal-pdf-toolbar {
  margin: 0;
  width: 100%;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  padding-left: calc(12px + env(safe-area-inset-left));
  padding-right: calc(12px + env(safe-area-inset-right));
}

/* Envoltório do conteúdo principal */
#content-wrapper {
  flex: 1;
  min-width: 0;
  overflow: visible;
  transition: flex 0.25s ease;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px 60px;
}

/* ── Drawer de PDF original ── */
#pdf-panel {
  flex: 0 0 0;
  width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-left: 0px solid #888;
  background: #fff;
  transition: flex-basis 0.25s ease, border-left-width 0.25s step-start;
}

#pdf-panel.open {
  flex: 0 0 min(50vw, 720px);
  border-left-width: 1px;
}

#pdf-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid #ccc;
  font-size: 14px;
  flex-shrink: 0;
  white-space: nowrap;
}

#pdf-panel-header span { color: #555; font-style: italic; }

#pdf-panel-close {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
  color: #555;
  line-height: 1;
  padding: 2px 4px;
}
#pdf-panel-close:hover { color: #000; }

#pdf-frame {
  flex: 1;
  border: none;
  width: 100%;
  min-width: 280px;
}

/* ── Book selector overlay ── */
#book-selector {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  justify-content: center;
  align-items: flex-start;
  padding-top: 50px;
}

#book-selector.open { display: flex; }

#book-panel {
  background: #fff;
  border: 1px solid #888;
  padding: 16px 24px 24px;
  max-width: 680px;
  width: 96vw;
  max-height: 82vh;
  overflow-y: auto;
  font-size: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

#book-panel h2 {
  font-size: 17px;
  font-weight: bold;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid #ddd;
}

#book-panel .close-btn {
  float: right;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 16px;
  color: #555;
  line-height: 1;
  margin-top: -2px;
}

.testament-section { margin-bottom: 4px; }
.testament-section + .testament-section {
  border-top: 1px solid #ddd;
  padding-top: 14px;
  margin-top: 8px;
}

.testament-title {
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #555;
  margin-bottom: 10px;
}

.book-group { margin-bottom: 8px; }
.book-group .group-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 3px;
}

.book-group a {
  display: inline-block;
  color: #00c;
  text-decoration: none;
  margin: 1px 10px 2px 0;
  font-size: 15px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}
.book-group a:hover { text-decoration: underline; }
.book-group a.current-book { font-weight: bold; color: #111; cursor: default; text-decoration: none; }
.book-group a.unavailable { color: #aaa; cursor: not-allowed; }

/* ── Intro modal ── */
#intro-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  justify-content: center;
  align-items: flex-start;
  padding-top: 50px;
}

#intro-modal.open { display: flex; }

#intro-panel {
  background: #fff;
  border: 1px solid #888;
  padding: 16px 24px 24px;
  max-width: 680px;
  width: 96vw;
  max-height: 82vh;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.7;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  position: relative;
}

#intro-panel .close-btn {
  float: right;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 16px;
  color: #555;
  line-height: 1;
  margin-top: -2px;
}

#intro-content h3 { font-size: 17px; margin-bottom: 10px; border-bottom: 1px solid #ddd; padding-bottom: 8px; }
#intro-content p { margin-bottom: 10px; }
#intro-content em.footnote { font-size: 13px; color: #888; display: block; margin-top: 2px; }

/* ── Responsivo ── */
@media (max-width: 700px) {
  #pdf-panel.open { flex: 0 0 100vw; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }

  #content-wrapper {
    padding: 0 10px;
  }

  #edition-selector { margin-left: 0; }

  #main-area.compare #compare-grid { grid-template-columns: 1fr; }

  /* Popup de notas: fixo na parte inferior da tela para não ser cortado */
  .fn-popup {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 16px;
    top: auto;
    width: auto;
    max-width: calc(100vw - 20px);
    max-height: 45vh;
    overflow-y: auto;
    z-index: 300;
  }

  /* No fallback mobile, o PDF não deve ficar preso à caixa do conteúdo textual */
  #chapter-pdf-toolbar,
  #content .pdfjs-canvas-wrap {
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }

  #chapter-pdf-toolbar {
    border-left: 0;
    border-right: 0;
    padding-left: 12px;
    padding-right: 12px;
  }

  #content .pdfjs-canvas-wrap {
    padding: 0 0 8px;
  }
}

/* ── Modo noturno ── */
body.dark-mode {
  color: #eee6d6;
  background: #15120f;
}

body.dark-mode .review-popup {
  border-color: #7e6a46;
  background: #4a3d1c;
}

body.dark-mode .review-popup-text {
  color: #e9d9a7;
}

body.dark-mode .review-popup-btn {
  border-color: #8f7840;
  background: #2a221b;
  color: #e9d9a7;
}

body.dark-mode .review-popup-btn:hover,
body.dark-mode .review-popup-btn:active {
  background: #5a4a24;
}

body.dark-mode #content-wrapper,
body.dark-mode #pdf-panel,
body.dark-mode #book-panel,
body.dark-mode #intro-panel {
  background: #1d1814;
}

body.dark-mode #topbar,
body.dark-mode #bottomnav,
body.dark-mode #pdf-panel.open,
body.dark-mode #pdf-panel-header,
body.dark-mode #book-panel,
body.dark-mode #intro-panel,
body.dark-mode .cg-rule,
body.dark-mode hr.section-rule,
body.dark-mode .cg-divider {
  border-color: #4d4338;
}

body.dark-mode #topbar span,
body.dark-mode #edition-selector label,
body.dark-mode .chapter-links .label,
body.dark-mode .chapter-header .summary,
body.dark-mode .cg-summary-text,
body.dark-mode #pdf-panel-header span,
body.dark-mode .loading-msg,
body.dark-mode #intro-content em.footnote,
body.dark-mode .testament-title,
body.dark-mode .book-group .group-label {
  color: #b4a899;
}

body.dark-mode #topbar a,
body.dark-mode #topbar button.link-btn,
body.dark-mode .nav-row a,
body.dark-mode .chapter-links a,
body.dark-mode .book-group a,
body.dark-mode sup.fnref {
  color: #8fb9ff;
}

body.dark-mode #topbar-edition-label,
body.dark-mode .nav-row .book-title,
body.dark-mode .chapter-links a.current,
body.dark-mode .chapter-header h1,
body.dark-mode .cg-chapter-title,
body.dark-mode .vnum,
body.dark-mode #pdf-panel-close,
body.dark-mode #book-panel .close-btn,
body.dark-mode #intro-panel .close-btn {
  color: #f3e8d5;
}

body.dark-mode select,
body.dark-mode .theme-toggle-btn {
  background: #2a231d;
  border-color: #5c4f41;
  color: #eee6d6;
}

body.dark-mode .theme-toggle-btn:hover {
  background: #3a3128;
}

body.dark-mode .compare-toggle-btn.compare-toggle-btn-undo {
  background: #4c2724;
  border-color: #a85f57;
  color: #f4c8c4;
}

body.dark-mode .ver-original-btn,
body.dark-mode .compare-toggle-btn {
  background: #2a2f3b;
  border-color: #5c657a;
  color: #c7d0e5;
}

body.dark-mode .ver-original-btn:hover,
body.dark-mode .compare-toggle-btn:hover {
  background: #5a4a24;
  border-color: #a0864b;
}

body.dark-mode .compare-toggle-btn.compare-toggle-btn-undo:hover {
  background: #5a2f2b;
  border-color: #bd7269;
}

body.dark-mode .compare-toggle-btn.disabled,
body.dark-mode .compare-toggle-btn:disabled {
  background: #2b313d;
  border-color: #4d576d;
  color: #9ba6bd;
}

body.dark-mode .compare-status,
body.dark-mode .nav-row .dimmed {
  color: #9a8f82;
}

body.dark-mode .verse.highlighted {
  background: #3d3628;
}

body.dark-mode .verse.verse-marked {
  background-color: #51462a;
  box-shadow: inset 0 0 0 1px rgba(247, 203, 88, 0.35);
}

body.dark-mode .fn-popup {
  background: #2d251f;
  border-color: #6a5c4e;
  color: #eee3d1;
  box-shadow: 2px 3px 8px rgba(0,0,0,0.45);
}

body.dark-mode #book-selector,
body.dark-mode #intro-modal {
  background: rgba(0,0,0,0.65);
}

body.dark-mode .error-msg {
  color: #ff9f9f;
}

body.dark-mode .inline-pdf-toggle.active {
  background: #3a4968;
  border-color: #88a3d9;
  color: #f3e8d5;
}

body.dark-mode .pdfjs-page-info,
body.dark-mode .pdfjs-status {
  color: #b4a899;
}

body.dark-mode .pdfjs-canvas-wrap {
  border-color: #5c4f41;
  background: #221c17;
}

body.dark-mode .pdfjs-mobile-toolbar {
  border-color: #5c4f41;
  background: #2a221b;
}

body.dark-mode .pdfjs-tool-btn {
  border-color: #6a5a49;
  background: #1e1813;
  color: #f3e8d5;
}

body.dark-mode .pdfjs-tool-btn:active {
  background: #312820;
}

body.dark-mode #pdf-modal-panel,
body.dark-mode #pdf-modal-header {
  background: #1d1814;
  border-color: #4d4338;
}

body.dark-mode #pdf-modal-title,
body.dark-mode #pdf-modal-close {
  color: #f3e8d5;
}
