/* ═══════════════════════════════════════════════════════════════
   UTOT — Flowing Bible Study Reader View
   Premium Book & Magazine Reading Experience
   ═══════════════════════════════════════════════════════════════ */

/* ── Reading Progress Bar ─────────────────────────────────── */
.reader-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(212, 168, 74, 0.1);
  z-index: 1000;
  pointer-events: none;
}

.reader-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400), var(--gold-200));
  box-shadow: 0 0 10px rgba(212, 168, 74, 0.5);
  transition: width 0.1s linear;
}

/* ── Reader Layout Grid ───────────────────────────────────── */
.reader-layout {
  display: flex;
  min-height: calc(100vh - var(--header-height, 64px));
  background: var(--bg-primary);
  color: var(--text-primary);
  position: relative;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ── Table of Contents Sidebar ────────────────────────────── */
.reader-sidebar {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: var(--header-height, 64px);
  height: calc(100vh - var(--header-height, 64px));
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  overflow-y: auto;
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  transition: transform 0.3s var(--ease-out);
  z-index: 90;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-600) transparent;
}

.reader-sidebar::-webkit-scrollbar {
  width: 5px;
}

.reader-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.reader-sidebar::-webkit-scrollbar-thumb {
  background: var(--border-accent);
  border-radius: var(--radius-full);
}

.reader-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--gold-400);
}

/* Sidebar Title Header */
.reader-sidebar-header {
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: var(--space-sm);
}

.reader-sidebar-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-300);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* Table of Contents Container */
.reader-toc {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  list-style: none;
}

/* TOC Part Structure */
.toc-part {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.toc-part-header {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-400);
  padding: var(--space-xs) var(--space-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.toc-part-header:hover {
  background: var(--gold-glow);
}

.toc-part-chapters {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: var(--space-xs);
}

/* TOC Chapter Item */
.toc-chapter {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.toc-chapter:hover {
  color: var(--text-primary);
  background: rgba(212, 168, 74, 0.06);
  border-left-color: var(--border-accent);
}

.toc-chapter.active {
  color: var(--gold-200);
  background: var(--gold-glow);
  border-left-color: var(--gold-300);
  font-weight: 600;
  box-shadow: 0 0 12px rgba(212, 168, 74, 0.08);
}

.toc-chapter-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-500);
  min-width: 24px;
}

/* ── Mobile TOC Bar & Drawer Controls ─────────────────────── */
.reader-nav-mobile {
  display: none;
  position: sticky;
  top: var(--header-height, 64px);
  z-index: 80;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: var(--space-sm) var(--space-md);
  align-items: center;
  justify-content: space-between;
}

.btn-toc-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--gold-300);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-toc-toggle:hover {
  background: var(--gold-glow);
  border-color: var(--border-accent);
  color: var(--gold-200);
}

.toc-mobile-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.reader-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 85;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.reader-mobile-overlay.active {
  display: block;
  opacity: 1;
}

/* ── Reader Main Content Area ─────────────────────────────── */
.reader-content {
  flex: 1;
  max-width: 780px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-xl);
  line-height: 1.85;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  color: var(--text-primary);
}

.reader-content p {
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
  font-weight: 400;
  letter-spacing: -0.003em;
}

.reader-content p::selection,
.reader-content h1::selection,
.reader-content h2::selection,
.reader-content h3::selection,
.reader-content span::selection {
  background: var(--gold-500);
  color: #000000;
}

.reader-content p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  float: left;
  line-height: 0.8;
  margin-right: 0.75rem;
  margin-top: 0.2rem;
  color: var(--gold-300);
  font-weight: 700;
}

/* Drop cap reset for nested cards or callouts */
.verse-callout p:first-of-type::first-letter,
.discussion-card p:first-of-type::first-letter {
  font-size: inherit;
  float: none;
  line-height: inherit;
  margin: 0;
  color: inherit;
}

/* ── Typography & Headings ────────────────────────────────── */
.reader-content h1,
.reader-content h2,
.reader-content h3,
.reader-content h4 {
  font-family: var(--font-serif);
  color: var(--text-primary);
  line-height: 1.25;
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.reader-content h1 {
  font-size: 2.5rem;
  color: var(--gold-200);
  letter-spacing: -0.02em;
}

.reader-content h2 {
  font-size: 1.85rem;
  color: var(--gold-300);
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: var(--space-xs);
}

.reader-content h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold-400);
  margin-top: var(--space-xs);
  border-radius: var(--radius-full);
}

.reader-content h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
}

/* ── Part Header / Hero Divider ────────────────────────────── */
.reader-part-header {
  text-align: center;
  padding: var(--space-3xl) 0 var(--space-2xl) 0;
  margin-bottom: var(--space-2xl);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.reader-part-badge {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--gold-400);
  background: var(--gold-glow);
  border: 1px solid var(--border-accent);
  padding: 4px 16px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.reader-part-header h1 {
  font-size: 2.75rem;
  font-family: var(--font-serif);
  color: var(--gold-200);
  margin-top: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.reader-part-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Ornamental Motif Divider */
.reader-part-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  color: var(--gold-400);
}

.reader-part-divider::before,
.reader-part-divider::after {
  content: '';
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--border-accent));
}

.reader-part-divider::after {
  background: linear-gradient(90deg, var(--border-accent), transparent);
}

.reader-part-divider span {
  font-size: 1.2rem;
}

/* ── Chapter Structure ────────────────────────────────────── */
.reader-chapter {
  padding-top: var(--space-2xl);
  margin-bottom: var(--space-3xl);
  border-top: 1px solid var(--border-subtle);
}

.reader-chapter:first-of-type {
  border-top: none;
  padding-top: 0;
}

.reader-chapter-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  color: var(--gold-200);
  margin-bottom: var(--space-md);
}

/* ── Section Container & Animations ───────────────────────── */
.reader-section {
  margin-bottom: var(--space-2xl);
  opacity: 0;
  transform: translateY(20px);
  animation: readerSectionFadeIn 0.8s var(--ease-out) forwards;
}

@keyframes readerSectionFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Key Verse Callout Box ────────────────────────────────── */
.verse-callout {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(30, 25, 15, 0.7) 100%);
  border: 1px solid var(--border-accent);
  border-left: 4px solid var(--gold-300);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  margin: var(--space-xl) 0;
  box-shadow: var(--shadow-md), 0 0 20px rgba(212, 168, 74, 0.05);
}

.verse-callout::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--gold-500);
  opacity: 0.25;
  line-height: 1;
  pointer-events: none;
}

.verse-callout-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--gold-200);
  margin-bottom: var(--space-md);
}

.verse-callout-ref {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-400);
  text-align: right;
  display: block;
}

/* ── Theme Tags / Pills ───────────────────────────────────── */
.reader-themes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.theme-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 168, 74, 0.08);
  border: 1px solid var(--border-accent);
  color: var(--gold-200);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all var(--transition-fast);
  cursor: default;
}

.theme-tag:hover {
  background: rgba(212, 168, 74, 0.18);
  border-color: var(--gold-300);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(212, 168, 74, 0.2);
  transform: translateY(-1px);
}

.theme-tag::before {
  content: '🏷️';
  font-size: 0.75rem;
}

/* ── Discussion Question Cards ────────────────────────────── */
.discussion-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

.discussion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
}

.discussion-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-gold);
}

.discussion-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.discussion-icon {
  font-size: 1.25rem;
  color: var(--gold-300);
}

.discussion-card-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-200);
}

.discussion-card-body {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: var(--text-primary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.discussion-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* ── "Ask UTOT about this" Buttons ───────────────────────── */
.btn-ask-reader {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: linear-gradient(135deg, rgba(212, 168, 74, 0.15) 0%, rgba(184, 134, 45, 0.08) 100%);
  border: 1px solid var(--border-accent);
  color: var(--gold-200);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.btn-ask-reader:hover {
  background: linear-gradient(135deg, rgba(212, 168, 74, 0.28) 0%, rgba(184, 134, 45, 0.18) 100%);
  border-color: var(--gold-300);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-ask-reader:active {
  transform: translateY(0);
}

.btn-ask-reader .btn-icon {
  font-size: 1rem;
}

/* ── Cross-Reference Links ────────────────────────────────── */
.cross-ref {
  color: var(--gold-300);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(212, 168, 74, 0.4);
  text-underline-offset: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  padding: 0 2px;
  border-radius: 2px;
}

.cross-ref:hover {
  color: var(--gold-200);
  text-decoration-color: var(--gold-200);
  background: var(--gold-glow);
  text-shadow: 0 0 8px rgba(212, 168, 74, 0.3);
}

/* ── Back to Top Button ───────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-accent);
  color: var(--gold-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s var(--ease-out);
  z-index: 95;
  box-shadow: var(--shadow-md);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--gold-500);
  color: #000000;
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}

/* ── Scroll Animations & Keyframes ────────────────────────── */
@keyframes headingGlow {
  0% {
    text-shadow: 0 0 0px transparent;
  }
  50% {
    text-shadow: 0 0 12px rgba(212, 168, 74, 0.4);
  }
  100% {
    text-shadow: 0 0 0px transparent;
  }
}

.reader-section h2.animate-heading,
.reader-section h3.animate-heading {
  animation: headingGlow 2s ease-in-out;
}

/* ── Responsive Media Queries ─────────────────────────────── */
@media (max-width: 1024px) {
  .reader-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    transform: translateX(-100%);
    box-shadow: var(--shadow-lg);
  }

  .reader-sidebar.open {
    transform: translateX(0);
  }

  .reader-nav-mobile {
    display: flex;
  }

  .reader-content {
    padding: var(--space-xl) var(--space-lg);
  }
}

@media (max-width: 640px) {
  .reader-content {
    font-size: 1rem;
    padding: var(--space-lg) var(--space-md);
  }

  .reader-content h1 {
    font-size: 2rem;
  }

  .reader-content h2 {
    font-size: 1.5rem;
  }

  .reader-part-header h1 {
    font-size: 2.1rem;
  }

  .verse-callout {
    padding: var(--space-lg);
  }

  .verse-callout-text {
    font-size: 1.1rem;
  }

  .back-to-top {
    bottom: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   Additional Reader Classes (reader.js generated elements)
   ═══════════════════════════════════════════════════════════════ */

/* ── Reader View Container ────────────────────────────────── */
.reader-view {
  overflow: hidden;
  height: calc(100vh - var(--header-height, 60px));
}

#reader-content {
  height: 100%;
}

/* ── Reader Main (scrollable content area) ────────────────── */
.reader-main {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-3xl) var(--space-xl);
  max-width: 820px;
  margin: 0 auto;
  scroll-behavior: smooth;
}

.reader-main::-webkit-scrollbar {
  width: 6px;
}

.reader-main::-webkit-scrollbar-track {
  background: transparent;
}

.reader-main::-webkit-scrollbar-thumb {
  background: var(--border-accent);
  border-radius: var(--radius-full);
}

/* ── Loading State ────────────────────────────────────────── */
.reader-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 60vh;
  gap: var(--space-lg);
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.loading-spinner-large {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--gold-300);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── TOC Toggle Button (mobile hamburger) ─────────────────── */
.reader-toc-toggle {
  display: none;
  position: fixed;
  top: calc(var(--header-height, 60px) + var(--space-md));
  left: var(--space-md);
  z-index: 91;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-accent);
  color: var(--gold-300);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.reader-toc-toggle:hover {
  background: var(--gold-glow);
  color: var(--gold-200);
}

@media (max-width: 1024px) {
  .reader-toc-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .reader-main {
    padding: var(--space-xl) var(--space-lg);
  }
}

@media (max-width: 640px) {
  .reader-main {
    padding: var(--space-lg) var(--space-md);
  }
}

/* ── Sidebar Close Button ─────────────────────────────────── */
.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: var(--space-xs);
  transition: color var(--transition-fast);
}

.sidebar-close:hover {
  color: var(--gold-300);
}

@media (max-width: 1024px) {
  .sidebar-close {
    display: block;
  }

  .reader-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

/* ── TOC Part Title ───────────────────────────────────────── */
.toc-part-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-400);
  padding: var(--space-xs) var(--space-sm);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.toc-part-icon {
  font-size: 1rem;
}

/* ── Part Header Elements ─────────────────────────────────── */
.part-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: var(--space-md);
}

.part-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--gold-200);
  margin: 0 0 var(--space-sm);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.part-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  color: var(--gold-400);
}

/* ── Chapter Elements ─────────────────────────────────────── */
.chapter-header {
  margin-bottom: var(--space-lg);
}

.chapter-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold-200);
  margin: 0 0 var(--space-sm);
  font-weight: 600;
  line-height: 1.3;
}

.chapter-period {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-right: var(--space-md);
}

.chapter-books {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--gold-400);
  font-weight: 500;
}

.chapter-summary {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  padding-left: var(--space-md);
  border-left: 3px solid var(--border-accent);
  font-style: italic;
}

/* ── Section Elements ─────────────────────────────────────── */
.section-heading {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--text-primary);
  margin: 0 0 var(--space-md);
  font-weight: 600;
}

.section-content {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-primary);
}

.section-content p {
  margin-bottom: var(--space-md);
}

.section-content strong {
  color: var(--gold-200);
  font-weight: 600;
}

.section-content em {
  color: var(--text-secondary);
}

.content-list-item {
  margin-left: var(--space-xl);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  list-style-type: disc;
}

/* ── Scripture References ─────────────────────────────────── */
.scripture-ref {
  color: var(--gold-300);
  text-decoration: underline;
  text-decoration-color: rgba(212, 168, 74, 0.4);
  text-underline-offset: 3px;
  transition: all var(--transition-fast);
}

.scripture-ref:hover {
  color: var(--gold-200);
  text-decoration-color: var(--gold-200);
  background: var(--gold-glow);
  border-radius: 2px;
}

/* ── Callout Title ────────────────────────────────────────── */
.callout-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold-300);
  margin: 0 0 var(--space-md);
  font-weight: 600;
}

/* ── Verse List ───────────────────────────────────────────── */
.verse-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.verse-link {
  display: inline-block;
  color: var(--gold-200);
  background: rgba(212, 168, 74, 0.1);
  border: 1px solid var(--border-accent);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.verse-link:hover {
  background: rgba(212, 168, 74, 0.25);
  color: #fff;
  transform: translateY(-1px);
}

.verse-interlinear-btn {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.verse-interlinear-btn:hover {
  border-color: var(--gold-400);
  color: var(--gold-300);
  background: var(--gold-glow);
}

/* ── Themes Row ───────────────────────────────────────────── */
.themes-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

/* ── Discussion List ──────────────────────────────────────── */
.discussion-list {
  padding-left: var(--space-xl);
  margin: 0;
}

.discussion-list li {
  margin-bottom: var(--space-md);
  line-height: 1.7;
  color: var(--text-primary);
  font-size: 1rem;
}

/* ── Chapter Actions ──────────────────────────────────────── */
.chapter-actions {
  display: flex;
  justify-content: center;
  padding: var(--space-xl) 0;
  margin-top: var(--space-lg);
}

/* ── Reader Part Divider fix for the reader-part-header ─── */
.reader-part {
  margin-bottom: var(--space-3xl);
}

.reader-part-header .part-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.reader-part-header .part-divider::before,
.reader-part-header .part-divider::after {
  content: '';
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--border-accent));
}

.reader-part-header .part-divider::after {
  background: linear-gradient(90deg, var(--border-accent), transparent);
}

@media (max-width: 640px) {
  .part-title {
    font-size: 1.8rem;
  }

  .chapter-title {
    font-size: 1.5rem;
  }

  .part-icon {
    font-size: 2.2rem;
  }
}
