/* ============================================================
   SACRED TEXTS — STUDY LIBRARY
   Theme: Forest Green — Accessible, High Contrast
   ============================================================ */

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

:root {
  /* Background palette — warm parchment to match landing page */
  --bg:          #F5F2EC;
  --bg-2:        #EBE8E1;
  --bg-card:     #FFFFFF;
  --bg-hover:    #EDE9E2;

  /* Borders */
  --border:      #D8D4CB;
  --border-2:    #B8B0A4;

  /* Text */
  --text-1:      #111111;
  --text-2:      #1e1e1e;
  --text-3:      #3a3a3a;
  --text-4:      #5a5a5a;

  /* Brand greens — Quran defaults (overridden per book below) */
  --green-1:     #0d2e18;   /* darkest, sidebar bg */
  --green-2:     #1B5E35;   /* sidebar accent */
  --green-3:     #1B5E35;   /* primary action */
  --green-4:     #2e7d52;   /* hover */
  --green-5:     #4caf78;   /* light accent */
  --green-light: #e2f0e8;   /* tinted background */
  --green-pale:  #f0f7f2;   /* very pale tint */
  --green-muted: #7ecba0;   /* muted accent */

  /* Nav active state — overridden per book */
  --nav-active-bg:        rgba(50,160,100,0.18);
  --nav-active-text:      #7ecba0;
  --nav-active-badge-bg:  rgba(50,160,100,0.25);
  --nav-active-dot:       #4caf78;

  /* Type badges */
  --meccan:      #2d5a27;
  --meccan-bg:   #e3f0e2;
  --medinan:     #1e4d6b;
  --medinan-bg:  #e0edf6;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 14px rgba(0,0,0,0.09), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg:   0 12px 32px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.05);

  --sidebar-w:   268px;
  --radius:      10px;
  --radius-lg:   16px;
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;
  --font-serif:  'Crimson Pro', Georgia, 'Times New Roman', serif;
}

html { font-size: 17px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-1);
  height: 100vh;
  overflow: hidden;
}

/* ── Focus Visible (Accessibility) ────────────────────────── */
:focus-visible {
  outline: 3px solid var(--green-3);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── App Shell ─────────────────────────────────────────────── */
.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── Sidebar ───────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  min-width: var(--sidebar-w);
  background: var(--green-1);
  color: #d8e8d9;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 20px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}
.logo:hover .logo-text { opacity: .75; }
.logo:hover .logo-icon { opacity: .75; }

.logo-icon {
  color: var(--green-muted);
  font-size: 14px;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  color: #e8f2e8;
  letter-spacing: 0.01em;
}

.sidebar-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.sidebar-toggle:hover { opacity: 0.8; }
.sidebar-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #d8e8d9;
  border-radius: 2px;
}

.book-section {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 20px 20px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.book-section:hover {
  background: rgba(255,255,255,0.05);
}

.book-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 6px;
}

.book-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  color: #eef6ee;
  margin-bottom: 3px;
}

.book-subtitle {
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  line-height: 1.4;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
}

.nav-section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  padding: 0 8px;
  margin-bottom: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  border-radius: 7px;
  padding: 11px 12px;
  cursor: pointer;
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  font-family: var(--font-sans);
  font-weight: 400;
  text-align: left;
  transition: background 0.15s, color 0.15s;
  margin-bottom: 2px;
}

.nav-item svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.15s;
}

.nav-item span:not(.nav-badge) { flex: 1; }

.nav-item:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.85);
}

.nav-item.active {
  background: var(--nav-active-bg);
  color: var(--nav-active-text);
}
.nav-item.active svg { opacity: 1; }

.nav-badge {
  font-size: 11px;
  font-weight: 500;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.45);
  padding: 2px 7px;
  border-radius: 10px;
  flex-shrink: 0;
}

.nav-item.active .nav-badge {
  background: var(--nav-active-badge-bg);
  color: var(--nav-active-text);
}

.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.translation-info {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nav-active-dot);
  flex-shrink: 0;
}

/* ── Main Content ──────────────────────────────────────────── */
.main-content {
  flex: 1;
  overflow-y: auto;
  position: relative;
  background: var(--bg);
}

.view { display: none; min-height: 100vh; }
.view.active { display: block; }

/* ── Dashboard ─────────────────────────────────────────────── */
.dashboard-hero {
  background: linear-gradient(135deg, var(--green-1) 0%, var(--green-2) 50%, #1a3d28 100%);
  color: #e4eee5;
  padding: 60px 60px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.dashboard-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 40%, rgba(76,175,120,0.15) 0%, transparent 55%),
              radial-gradient(ellipse at 10% 80%, rgba(27,94,53,0.3) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner { max-width: 600px; position: relative; z-index: 1; }

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-muted);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 54px;
  font-weight: 300;
  line-height: 1.08;
  color: #f0f8f0;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-size: 17px;
  line-height: 1.72;
  color: rgba(228,238,229,0.82);
  max-width: 500px;
  font-weight: 300;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}

.stat-number {
  display: block;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--green-muted);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.38);
  letter-spacing: 0.02em;
}

.stat-divider {
  width: 1px;
  height: 34px;
  background: rgba(255,255,255,0.1);
}

.hero-ornament {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  color: var(--green-muted);
  opacity: 0.55;
  position: relative;
  z-index: 1;
}
.hero-ornament svg { width: 100%; height: 100%; }

.dashboard-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding: 40px 60px 60px;
}

.explore-card--featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #eef5ef 0%, var(--bg-card) 60%);
  border-color: var(--border-2);
}

.dashboard-topic-label {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-top: 8px;
}

.dashboard-topic-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.explore-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  cursor: pointer;
  display: flex;
  gap: 22px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.18s;
}

.explore-card:hover {
  border-color: var(--green-3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.explore-card-icon {
  width: 46px;
  height: 46px;
  background: var(--green-light);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.explore-card-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--green-3);
}

.explore-card-content h3 {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: 8px;
}

.explore-card-content p {
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--text-3);
  margin-bottom: 16px;
}

.explore-card-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--green-3);
  letter-spacing: 0.01em;
}

/* ── View Header ───────────────────────────────────────────── */
.view-header {
  padding: 36px 48px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  background: var(--bg-card);
  box-shadow: 0 1px 0 var(--border);
}

.view-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--text-1);
  margin-bottom: 6px;
  line-height: 1.15;
}

.view-title-sub {
  font-weight: 300;
  color: var(--text-4);
}

.view-desc {
  font-size: 15.5px;
  color: var(--text-3);
  line-height: 1.65;
  max-width: 520px;
}

.view-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 14px;
  width: 230px;
  transition: border-color 0.15s;
}

.search-box:focus-within {
  border-color: var(--green-3);
  background: var(--bg-card);
}

.search-box svg {
  width: 15px;
  height: 15px;
  stroke: var(--text-4);
  flex-shrink: 0;
}

.search-box input {
  background: none;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: var(--font-sans);
  color: var(--text-1);
  width: 100%;
}

.search-box input::placeholder { color: var(--text-4); }

.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

.pill {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 14px;
  font-family: var(--font-sans);
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
}

.pill:hover {
  border-color: var(--green-3);
  color: var(--green-3);
}

.pill.active {
  background: var(--green-1);
  border-color: var(--green-1);
  color: var(--nav-active-text);
}

/* ── Chapters Grid ─────────────────────────────────────────── */
.chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  padding: 28px 48px 60px;
}

.chapter-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chapter-card:hover {
  border-color: var(--green-3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.chapter-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.chapter-number {
  width: 38px;
  height: 38px;
  background: var(--bg-2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.chapter-card:hover .chapter-number {
  background: var(--green-light);
  color: var(--green-2);
}

.chapter-type-badge {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.chapter-type-badge.meccan {
  background: var(--meccan-bg);
  color: var(--meccan);
}

.chapter-type-badge.medinan {
  background: var(--medinan-bg);
  color: var(--medinan);
}

.chapter-names { flex: 1; min-width: 0; }

.chapter-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-1);
  line-height: 1.2;
  margin-bottom: 2px;
}

.chapter-arabic {
  font-size: 13.5px;
  color: var(--text-4);
  font-style: italic;
}

.chapter-summary {
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--text-3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chapter-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.chapter-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  color: var(--text-4);
}

.chapter-meta-item svg {
  width: 13px;
  height: 13px;
  stroke: var(--text-4);
}

/* ── Reader Tabs ───────────────────────────────────────────── */
.reader-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 48px;
}

.reader-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 12px 24px;
  font-size: 15px;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--text-4);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  letter-spacing: 0.01em;
}

.reader-tab:hover { color: var(--text-2); }

.reader-tab.active {
  color: var(--green-3);
  border-bottom-color: var(--green-3);
}

.reader-tab-panel { display: none; }
.reader-tab-panel.active { display: block; }

/* ── Summary Analysis View ─────────────────────────────────── */
.summary-sections {
  display: flex;
  flex-direction: column;
  position: relative;
}

.summary-sections::before {
  content: '';
  position: absolute;
  left: 19px;
  top: 32px;
  bottom: 32px;
  width: 1.5px;
  background: linear-gradient(to bottom, var(--border) 0%, var(--border-2) 40%, var(--border) 100%);
  pointer-events: none;
}

.summary-section {
  display: flex;
  gap: 24px;
  padding-bottom: 36px;
  position: relative;
}

.summary-section:last-child { padding-bottom: 0; }

.summary-section.section-highlight .summary-section-body {
  animation: sectionPulse 1.8s ease-out forwards;
}
@keyframes sectionPulse {
  0%   { background: #d4edda; border-color: var(--green-3); }
  60%  { background: #eaf3ec; border-color: var(--border-2); }
  100% { background: transparent; border-color: var(--border); }
}

.summary-section-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

.summary-section-dot svg {
  width: 18px;
  height: 18px;
}

.summary-section-body {
  flex: 1;
  min-width: 0;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px 22px;
  transition: border-color 0.15s;
}

.summary-section-body:hover { border-color: var(--border-2); }

.summary-section-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.summary-type-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
}

.summary-type-badge.theology  { background: #ddeef7; color: #1a5a7a; }
.summary-type-badge.story     { background: #fdf0dd; color: #7a4a10; }
.summary-type-badge.law       { background: #ede8f5; color: #5a3d7a; }
.summary-type-badge.guidance  { background: var(--green-light); color: var(--meccan); }
.summary-type-badge.prayer    { background: #fde8ee; color: #8a2040; }
.summary-type-badge.warning   { background: #fdeee0; color: #7a3d10; }

.summary-section-dot.theology  { background: #ddeef7; }
.summary-section-dot.story     { background: #fdf0dd; }
.summary-section-dot.law       { background: #ede8f5; }
.summary-section-dot.guidance  { background: var(--green-light); }
.summary-section-dot.prayer    { background: #fde8ee; }
.summary-section-dot.warning   { background: #fdeee0; }

.summary-section-dot.theology svg  { stroke: #1a5a7a; }
.summary-section-dot.story svg     { stroke: #7a4a10; }
.summary-section-dot.law svg       { stroke: #5a3d7a; }
.summary-section-dot.guidance svg  { stroke: var(--meccan); }
.summary-section-dot.prayer svg    { stroke: #8a2040; }
.summary-section-dot.warning svg   { stroke: #7a3d10; }

.summary-verse-ref {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-4);
  background: var(--bg-2);
  padding: 3px 9px;
  border-radius: 5px;
  font-family: var(--font-sans);
}

.summary-section-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: 10px;
  line-height: 1.25;
}

.summary-section-text {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.82;
  color: var(--text-3);
}

.summary-coming-soon {
  text-align: center;
  padding: 60px 0;
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--text-4);
  font-style: italic;
}

/* ── Reader ────────────────────────────────────────────────── */
.reader-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 48px;
  background: rgba(244,246,242,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  padding: 9px 17px;
  font-size: 14.5px;
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.back-btn:hover {
  border-color: var(--green-3);
  color: var(--green-2);
  background: var(--green-pale);
}

.back-btn svg { width: 15px; height: 15px; }

.reader-chapter-info {
  flex: 1;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text-2);
  font-weight: 400;
}

.reader-controls { display: flex; gap: 6px; }

.reader-nav-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-3);
  transition: all 0.15s;
}

.reader-nav-btn:hover {
  border-color: var(--green-3);
  color: var(--green-2);
  background: var(--green-pale);
}

.reader-nav-btn:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

.reader-nav-btn svg { width: 16px; height: 16px; }

.reader-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 48px 88px;
}

.reader-chapter-header {
  text-align: center;
  margin-bottom: 52px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.reader-chapter-num {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-3);
  margin-bottom: 14px;
}

.reader-chapter-title {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 300;
  color: var(--text-1);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.reader-chapter-arabic {
  font-size: 15px;
  color: var(--text-4);
  font-style: italic;
  margin-bottom: 20px;
}

.reader-chapter-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.reader-chapter-summary {
  font-family: var(--font-serif);
  font-size: 19.5px;
  line-height: 1.72;
  color: var(--text-2);
  font-style: italic;
  max-width: 560px;
  margin: 0 auto;
}

.basmala {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 18px;
  font-style: italic;
  color: var(--text-4);
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

.verses-container { display: flex; flex-direction: column; }

.verse {
  display: flex;
  gap: 20px;
  padding: 14px 6px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: background 0.12s;
  border-radius: 6px;
}

.verse:hover {
  background: var(--green-pale);
  padding-left: 16px;
  padding-right: 10px;
}

.verse-num {
  min-width: 34px;
  height: 34px;
  background: var(--bg-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-4);
  flex-shrink: 0;
  margin-top: 4px;
}

.verse-text {
  font-family: var(--font-serif);
  font-size: 21px;
  line-height: 1.82;
  color: var(--text-1);
  font-weight: 300;
}

/* ── Stories Grid ──────────────────────────────────────────── */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  padding: 28px 48px 60px;
}

.story-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.story-card:hover {
  border-color: var(--green-3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.story-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.story-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  background: var(--green-light);
}

.story-category-badge {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--green-light);
  color: var(--meccan);
}

.story-category-badge.people {
  background: var(--medinan-bg);
  color: var(--medinan);
}

.story-category-badge.event {
  background: #f0eaf6;
  color: #5a3d7a;
}

.story-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--text-1);
  line-height: 1.25;
}

.story-excerpt {
  font-size: 15px;
  line-height: 1.68;
  color: var(--text-3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-card-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.story-chapter-ref {
  font-size: 11.5px;
  font-weight: 500;
  background: var(--bg-2);
  color: var(--text-3);
  padding: 3px 8px;
  border-radius: 5px;
}

/* ── Story Detail ──────────────────────────────────────────── */
.story-detail-content {
  max-width: 740px;
  margin: 0 auto;
  padding: 52px 48px 88px;
}

.story-detail-header {
  margin-bottom: 48px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--border);
}

.story-detail-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.story-detail-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: var(--green-light);
}

.story-detail-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 300;
  color: var(--text-1);
  margin-bottom: 16px;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.story-detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.story-detail-summary {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.75;
  color: var(--text-2);
  font-style: italic;
}

.story-section { margin-bottom: 38px; }

.story-section-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-3);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--green-light);
}

.story-section-text {
  font-family: var(--font-serif);
  font-size: 19.5px;
  line-height: 1.85;
  color: var(--text-2);
}

.story-section-text p + p { margin-top: 18px; }

.story-chapters-list { display: flex; flex-direction: column; gap: 10px; }

.story-chapter-item {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.story-chapter-item:hover {
  border-color: var(--green-3);
  background: var(--green-pale);
}
.story-chapter-item-arrow {
  margin-left: auto;
  color: var(--green-3);
  opacity: 0;
  transition: opacity 0.15s;
  flex-shrink: 0;
  align-self: center;
}
.story-chapter-item:hover .story-chapter-item-arrow {
  opacity: 1;
}

.story-chapter-item-num {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--green-3);
  background: var(--green-light);
  padding: 3px 10px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 1px;
}

.story-chapter-item-title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-1);
  margin-bottom: 4px;
}

.story-chapter-item-note {
  font-size: 14.5px;
  color: var(--text-3);
  line-height: 1.58;
}

.story-verse-highlight {
  background: var(--green-pale);
  border-left: 3px solid var(--green-3);
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.story-verse-highlight .verse-text {
  font-size: 20px;
  line-height: 1.78;
  color: var(--text-1);
}

.story-verse-highlight .verse-ref {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-4);
  font-style: italic;
}

/* ── Topic Grid ────────────────────────────────────────────── */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
  padding: 28px 48px 60px;
}

.topic-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.topic-card:hover {
  border-color: var(--green-3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.topic-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.topic-card-chapter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topic-chapter-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--green-3);
  background: var(--green-light);
  padding: 3px 9px;
  border-radius: 5px;
  white-space: nowrap;
}

.topic-chapter-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-4);
}

.topic-card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-1);
  line-height: 1.25;
}

.topic-card-verses {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-4);
  letter-spacing: 0.02em;
}

.topic-card-excerpt {
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--text-3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* type-coloured left border accent on hover */
.topic-card:hover { border-left-width: 3px; }
.topic-card[data-chapter]:hover { padding-left: 22px; }

/* ── Empty State ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 40px;
}

.empty-state svg {
  width: 40px;
  height: 40px;
  stroke: var(--border-2);
  margin-bottom: 16px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-4);
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-4); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .dashboard-hero { padding: 40px 40px; }
  .dashboard-cards { padding: 28px 40px 48px; }
  .chapters-grid { padding: 24px 32px 48px; }
  .topics-grid { padding: 24px 32px 48px; }
  .view-header { padding: 28px 32px 22px; }
  .reader-nav { padding: 12px 32px; }
  .reader-content { padding: 40px 32px 60px; }
}

@media (max-width: 1100px) {
  .dashboard-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero-ornament { display: none; }
  .dashboard-cards { grid-template-columns: 1fr; }
  .view-header { flex-direction: column; align-items: flex-start; }
  .view-controls { align-items: flex-start; width: 100%; }
  .search-box { width: 100%; max-width: 320px; }
}

@media (max-width: 680px) {
  :root { --sidebar-w: 0px; }
  .sidebar { display: none; }
  .chapters-grid { grid-template-columns: 1fr; padding: 16px 16px 40px; }
  .topics-grid { grid-template-columns: 1fr; padding: 16px 16px 40px; }
  .reader-content { padding: 28px 20px 50px; }
  .reader-chapter-title { font-size: 34px; }
  .verse-text { font-size: 17px; }
}

/* ── Science View ──────────────────────────────────────────── */

/* Domain color tokens */
:root {
  --sci-cosmology:      #1a3a6e;
  --sci-cosmology-bg:   #e8eef8;
  --sci-cosmology-mid:  #3a6aae;
  --sci-astronomy:      #4a1a8e;
  --sci-astronomy-bg:   #ede8f8;
  --sci-astronomy-mid:  #7a4ac0;
  --sci-earth:          #7a4010;
  --sci-earth-bg:       #f5ece0;
  --sci-earth-mid:      #b06030;
  --sci-ocean:          #0a4a58;
  --sci-ocean-bg:       #dff2f5;
  --sci-ocean-mid:      #1a8aaa;
  --sci-biology:        #1e4d28;
  --sci-biology-bg:     #e0f2e4;
  --sci-biology-mid:    #3a8050;
  --sci-anatomy:        #6a0a2a;
  --sci-anatomy-bg:     #f5dde8;
  --sci-anatomy-mid:    #aa2050;
  --sci-embryology:     #5a3800;
  --sci-embryology-bg:  #f5edda;
  --sci-embryology-mid: #a07020;
}

/* Status colors */
:root {
  --status-confirmed:    #1a5c2a;
  --status-confirmed-bg: #dff2e4;
  --status-alignment:    #5a4a00;
  --status-alignment-bg: #fdf4cc;
  --status-research:     #1a3a6e;
  --status-research-bg:  #deeaf8;
}

/* Hero area */
.science-hero {
  background: linear-gradient(135deg, #0f2a2a 0%, #0a3a2a 50%, #1a3a1e 100%);
  padding: 52px 56px 36px;
  position: relative;
  overflow: hidden;
}

.science-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='20' stroke='%23ffffff' stroke-width='0.3' fill='none' opacity='0.08'/%3E%3Ccircle cx='30' cy='30' r='10' stroke='%23ffffff' stroke-width='0.3' fill='none' opacity='0.08'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.science-hero-inner { position: relative; max-width: 820px; }

.science-hero-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6aebb0;
  margin-bottom: 14px;
}

.science-hero-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 300;
  color: #f0faf2;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.science-hero-desc {
  font-size: 16.5px;
  line-height: 1.72;
  color: rgba(210,240,215,0.88);
  max-width: 680px;
  margin-bottom: 36px;
}

/* Domain filter pills */
.science-domain-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  position: relative;
}

.science-pill {
  font-size: 13px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 30px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
  color: rgba(210,240,215,0.85);
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.science-pill:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.35);
  color: #f0faf2;
}

.science-pill.active {
  background: #3a8c5a;
  border-color: #3a8c5a;
  color: #fff;
}

.science-pill-count {
  font-size: 11px;
  background: rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 1px 6px;
  font-weight: 600;
}

/* Search row */
.science-search-row {
  position: relative;
}

.science-search-row .search-box {
  max-width: 380px;
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.science-search-row .search-box:focus-within {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.15);
}

.science-search-row .search-box svg { color: rgba(210,240,215,0.7); }
.science-search-row .search-box input { color: #f0faf2; }
.science-search-row .search-box input::placeholder { color: rgba(210,240,215,0.55); }

/* Science list */
.science-list {
  padding: 40px 56px 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 1000px;
}

/* Science card */
.science-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.science-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-2);
}

/* Card top bar */
.science-card-bar {
  height: 5px;
  width: 100%;
}

.science-card.cosmology .science-card-bar   { background: linear-gradient(90deg, var(--sci-cosmology), var(--sci-cosmology-mid)); }
.science-card.astronomy .science-card-bar   { background: linear-gradient(90deg, var(--sci-astronomy), var(--sci-astronomy-mid)); }
.science-card.earth .science-card-bar       { background: linear-gradient(90deg, var(--sci-earth), var(--sci-earth-mid)); }
.science-card.ocean .science-card-bar       { background: linear-gradient(90deg, var(--sci-ocean), var(--sci-ocean-mid)); }
.science-card.biology .science-card-bar     { background: linear-gradient(90deg, var(--sci-biology), var(--sci-biology-mid)); }
.science-card.anatomy .science-card-bar     { background: linear-gradient(90deg, var(--sci-anatomy), var(--sci-anatomy-mid)); }
.science-card.embryology .science-card-bar  { background: linear-gradient(90deg, var(--sci-embryology), var(--sci-embryology-mid)); }

/* Card header */
.science-card-header {
  padding: 26px 30px 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
}

.science-domain-badge {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}

.science-card.cosmology .science-domain-badge   { background: var(--sci-cosmology-bg);  color: var(--sci-cosmology); }
.science-card.astronomy .science-domain-badge   { background: var(--sci-astronomy-bg);  color: var(--sci-astronomy); }
.science-card.earth .science-domain-badge       { background: var(--sci-earth-bg);      color: var(--sci-earth); }
.science-card.ocean .science-domain-badge       { background: var(--sci-ocean-bg);      color: var(--sci-ocean); }
.science-card.biology .science-domain-badge     { background: var(--sci-biology-bg);    color: var(--sci-biology); }
.science-card.anatomy .science-domain-badge     { background: var(--sci-anatomy-bg);    color: var(--sci-anatomy); }
.science-card.embryology .science-domain-badge  { background: var(--sci-embryology-bg); color: var(--sci-embryology); }

.science-status-badge {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.science-status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.science-status-badge.confirmed  { background: var(--status-confirmed-bg);  color: var(--status-confirmed); }
.science-status-badge.alignment  { background: var(--status-alignment-bg);  color: var(--status-alignment); }
.science-status-badge.research   { background: var(--status-research-bg);   color: var(--status-research); }

.science-card-year {
  margin-left: auto;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-4);
  padding-top: 4px;
  white-space: nowrap;
}

/* Card title */
.science-card-title {
  font-family: var(--font-serif);
  font-size: 27px;
  font-weight: 500;
  color: var(--text-1);
  line-height: 1.2;
  padding: 16px 30px 0;
  letter-spacing: -0.01em;
}

/* Two-column evidence panel */
.science-evidence {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 22px 30px 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.science-evidence-panel {
  padding: 22px 22px 20px;
}

.science-evidence-panel:first-child {
  border-right: 1.5px solid var(--border);
}

.science-evidence-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.science-evidence-label svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.science-card.cosmology  .science-verse-panel .science-evidence-label { color: var(--sci-cosmology-mid); }
.science-card.astronomy  .science-verse-panel .science-evidence-label { color: var(--sci-astronomy-mid); }
.science-card.earth      .science-verse-panel .science-evidence-label { color: var(--sci-earth-mid); }
.science-card.ocean      .science-verse-panel .science-evidence-label { color: var(--sci-ocean-mid); }
.science-card.biology    .science-verse-panel .science-evidence-label { color: var(--sci-biology-mid); }
.science-card.anatomy    .science-verse-panel .science-evidence-label { color: var(--sci-anatomy-mid); }
.science-card.embryology .science-verse-panel .science-evidence-label { color: var(--sci-embryology-mid); }

.science-science-panel .science-evidence-label { color: var(--text-3); }

.science-verse-text {
  font-family: var(--font-serif);
  font-size: 18.5px;
  font-style: italic;
  line-height: 1.78;
  color: var(--text-1);
  margin-bottom: 12px;
}

.science-verse-ref {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.science-card.cosmology  .science-verse-ref { background: var(--sci-cosmology-bg);  color: var(--sci-cosmology); }
.science-card.astronomy  .science-verse-ref { background: var(--sci-astronomy-bg);  color: var(--sci-astronomy); }
.science-card.earth      .science-verse-ref { background: var(--sci-earth-bg);      color: var(--sci-earth); }
.science-card.ocean      .science-verse-ref { background: var(--sci-ocean-bg);      color: var(--sci-ocean); }
.science-card.biology    .science-verse-ref { background: var(--sci-biology-bg);    color: var(--sci-biology); }
.science-card.anatomy    .science-verse-ref { background: var(--sci-anatomy-bg);    color: var(--sci-anatomy); }
.science-card.embryology .science-verse-ref { background: var(--sci-embryology-bg); color: var(--sci-embryology); }

.science-verse-ref:hover {
  filter: brightness(0.92);
}

.science-science-text {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text-2);
}

.science-scientists {
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-4);
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.science-scientist-pill {
  background: var(--bg-2);
  padding: 2px 9px;
  border-radius: 10px;
  font-weight: 500;
}

/* Connection section */
.science-connection {
  margin: 22px 30px 0;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 20px 24px;
  border-left: 3px solid;
}

.science-card.cosmology  .science-connection { border-color: var(--sci-cosmology-mid); }
.science-card.astronomy  .science-connection { border-color: var(--sci-astronomy-mid); }
.science-card.earth      .science-connection { border-color: var(--sci-earth-mid); }
.science-card.ocean      .science-connection { border-color: var(--sci-ocean-mid); }
.science-card.biology    .science-connection { border-color: var(--sci-biology-mid); }
.science-card.anatomy    .science-connection { border-color: var(--sci-anatomy-mid); }
.science-card.embryology .science-connection { border-color: var(--sci-embryology-mid); }

.science-connection-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 10px;
}

.science-connection-text {
  font-size: 15.5px;
  line-height: 1.78;
  color: var(--text-2);
}

/* Explore section */
.science-explore {
  margin: 18px 30px 28px;
  border-top: 1.5px solid var(--border);
  padding-top: 18px;
}

.science-explore-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 12px;
}

.science-explore-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.science-explore-item {
  font-size: 14px;
  color: var(--text-3);
  padding: 8px 14px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.science-explore-item::before {
  content: '→';
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}

.science-card.cosmology  .science-explore-item::before { color: var(--sci-cosmology-mid); }
.science-card.astronomy  .science-explore-item::before { color: var(--sci-astronomy-mid); }
.science-card.earth      .science-explore-item::before { color: var(--sci-earth-mid); }
.science-card.ocean      .science-explore-item::before { color: var(--sci-ocean-mid); }
.science-card.biology    .science-explore-item::before { color: var(--sci-biology-mid); }
.science-card.anatomy    .science-explore-item::before { color: var(--sci-anatomy-mid); }
.science-card.embryology .science-explore-item::before { color: var(--sci-embryology-mid); }

/* Empty state */
.science-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
  color: var(--text-4);
  font-size: 16px;
}

/* Responsive: science */
@media (max-width: 860px) {
  .science-hero { padding: 36px 24px 28px; }
  .science-list { padding: 28px 20px 60px; }
  .science-evidence { grid-template-columns: 1fr; }
  .science-evidence-panel:first-child { border-right: none; border-bottom: 1.5px solid var(--border); }
  .science-card-header { gap: 8px; }
  .science-card-year { width: 100%; margin-left: 0; }
}

@media (max-width: 680px) {
  .science-hero-title { font-size: 30px; }
  .science-card-title { font-size: 22px; padding: 14px 18px 0; }
  .science-card-header { padding: 18px 18px 0; }
  .science-evidence { margin: 16px 18px 0; }
  .science-connection { margin: 16px 18px 0; }
  .science-explore { margin: 14px 18px 20px; }
}

/* ============================================================
   OTHER RELIGIONS SECTION
   ============================================================ */

/* ── Religion color CSS variables ────────────────────────── */
:root {
  /* Judaism */
  --rel-judaism:        #7a5200;
  --rel-judaism-mid:    #c49020;
  --rel-judaism-bg:     #f5edd8;
  --rel-judaism-accent: #c49020;

  /* Christianity */
  --rel-christianity:        #1a3a7a;
  --rel-christianity-mid:    #2a5aaa;
  --rel-christianity-bg:     #dde8f8;
  --rel-christianity-accent: #2a5aaa;

  /* Abraham */
  --rel-abraham:        #1e3a1e;
  --rel-abraham-mid:    #3a7045;
  --rel-abraham-bg:     #e4f0e6;
  --rel-abraham-accent: #3a7045;

  /* Sabians */
  --rel-sabians:        #0a4a4a;
  --rel-sabians-mid:    #1a8a80;
  --rel-sabians-bg:     #d8f0ee;
  --rel-sabians-accent: #1a8a80;

  /* Zoroastrianism */
  --rel-zoroastrianism:        #6a2a00;
  --rel-zoroastrianism-mid:    #b04a10;
  --rel-zoroastrianism-bg:     #f5e4d8;
  --rel-zoroastrianism-accent: #b04a10;

  /* Polytheism */
  --rel-polytheism:        #6a0a0a;
  --rel-polytheism-mid:    #aa1a1a;
  --rel-polytheism-bg:     #f5d8d8;
  --rel-polytheism-accent: #aa1a1a;
}

/* ── Religions Hero ───────────────────────────────────────── */
.religions-hero {
  background: linear-gradient(135deg, #1a1a3a 0%, #2a1a3a 50%, #1a2a3a 100%);
  padding: 52px 56px 48px;
  position: relative;
  overflow: hidden;
}

.religions-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(120,80,200,0.15) 0%, transparent 55%),
              radial-gradient(ellipse at 15% 80%, rgba(40,30,80,0.35) 0%, transparent 50%);
  pointer-events: none;
}

.religions-hero-inner {
  position: relative;
  max-width: 820px;
}

.religions-hero-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a080e8;
  margin-bottom: 14px;
}

.religions-hero-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 300;
  color: #f0eeff;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.religions-hero-desc {
  font-size: 16.5px;
  line-height: 1.72;
  color: rgba(220, 215, 250, 0.85);
  max-width: 680px;
}

/* ── Religions Grid ───────────────────────────────────────── */
.religions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
  padding: 40px 56px 80px;
}

/* ── Religion Card ────────────────────────────────────────── */
.religion-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.18s;
}

.religion-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* Top accent bar */
.religion-card-bar {
  height: 5px;
  width: 100%;
}

.religion-card.judaism .religion-card-bar        { background: linear-gradient(90deg, var(--rel-judaism), var(--rel-judaism-mid)); }
.religion-card.christianity .religion-card-bar   { background: linear-gradient(90deg, var(--rel-christianity), var(--rel-christianity-mid)); }
.religion-card.abraham .religion-card-bar        { background: linear-gradient(90deg, var(--rel-abraham), var(--rel-abraham-mid)); }
.religion-card.sabians .religion-card-bar        { background: linear-gradient(90deg, var(--rel-sabians), var(--rel-sabians-mid)); }
.religion-card.zoroastrianism .religion-card-bar { background: linear-gradient(90deg, var(--rel-zoroastrianism), var(--rel-zoroastrianism-mid)); }
.religion-card.polytheism .religion-card-bar     { background: linear-gradient(90deg, var(--rel-polytheism), var(--rel-polytheism-mid)); }

/* Card icon area */
.religion-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 28px 0;
}

.religion-card-icon-inner {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.religion-card.judaism .religion-card-icon-inner        { background: var(--rel-judaism-bg); }
.religion-card.christianity .religion-card-icon-inner   { background: var(--rel-christianity-bg); }
.religion-card.abraham .religion-card-icon-inner        { background: var(--rel-abraham-bg); }
.religion-card.sabians .religion-card-icon-inner        { background: var(--rel-sabians-bg); }
.religion-card.zoroastrianism .religion-card-icon-inner { background: var(--rel-zoroastrianism-bg); }
.religion-card.polytheism .religion-card-icon-inner     { background: var(--rel-polytheism-bg); }

.religion-card-icon-inner svg {
  width: 26px;
  height: 26px;
}

.religion-card.judaism .religion-card-icon-inner svg        { stroke: var(--rel-judaism); }
.religion-card.christianity .religion-card-icon-inner svg   { stroke: var(--rel-christianity); }
.religion-card.abraham .religion-card-icon-inner svg        { stroke: var(--rel-abraham); }
.religion-card.sabians .religion-card-icon-inner svg        { stroke: var(--rel-sabians); }
.religion-card.zoroastrianism .religion-card-icon-inner svg { stroke: var(--rel-zoroastrianism); }
.religion-card.polytheism .religion-card-icon-inner svg     { stroke: var(--rel-polytheism); }

/* Card body */
.religion-card-body {
  padding: 20px 28px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.religion-card-name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--text-1);
  line-height: 1.1;
  margin-bottom: 5px;
}

.religion-card-arabic {
  font-style: italic;
  font-size: 13px;
  color: var(--text-4);
  margin-bottom: 14px;
}

.religion-card-stat {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.religion-card.judaism .religion-card-stat        { background: var(--rel-judaism-bg); color: var(--rel-judaism); }
.religion-card.christianity .religion-card-stat   { background: var(--rel-christianity-bg); color: var(--rel-christianity); }
.religion-card.abraham .religion-card-stat        { background: var(--rel-abraham-bg); color: var(--rel-abraham); }
.religion-card.sabians .religion-card-stat        { background: var(--rel-sabians-bg); color: var(--rel-sabians); }
.religion-card.zoroastrianism .religion-card-stat { background: var(--rel-zoroastrianism-bg); color: var(--rel-zoroastrianism); }
.religion-card.polytheism .religion-card-stat     { background: var(--rel-polytheism-bg); color: var(--rel-polytheism); }

.religion-card-chapters {
  font-size: 12px;
  color: var(--text-4);
  margin-bottom: 12px;
}

.religion-card-chapters strong {
  color: var(--text-3);
  font-weight: 600;
}

.religion-card-overview {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-3);
  flex: 1;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.religion-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  align-self: flex-start;
  transition: opacity 0.18s, transform 0.18s;
}

.religion-card-cta:hover {
  opacity: 0.85;
  transform: translateX(2px);
}

.religion-card.judaism .religion-card-cta        { background: var(--rel-judaism-bg); color: var(--rel-judaism); }
.religion-card.christianity .religion-card-cta   { background: var(--rel-christianity-bg); color: var(--rel-christianity); }
.religion-card.abraham .religion-card-cta        { background: var(--rel-abraham-bg); color: var(--rel-abraham); }
.religion-card.sabians .religion-card-cta        { background: var(--rel-sabians-bg); color: var(--rel-sabians); }
.religion-card.zoroastrianism .religion-card-cta { background: var(--rel-zoroastrianism-bg); color: var(--rel-zoroastrianism); }
.religion-card.polytheism .religion-card-cta     { background: var(--rel-polytheism-bg); color: var(--rel-polytheism); }

/* ── Religion Detail View ─────────────────────────────────── */
.religion-detail-content {
  max-width: 860px;
  padding-bottom: 80px;
}

/* Detail header */
.religion-detail-header {
  padding: 52px 56px 40px;
  position: relative;
  overflow: hidden;
}

.religion-detail-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(255,255,255,0.12) 0%, transparent 55%);
  pointer-events: none;
}

.religion-detail-header-inner {
  position: relative;
  z-index: 1;
}

/* Header color variants */
.religion-detail-header.judaism        { background: linear-gradient(135deg, #3a2000 0%, #5a3500 50%, #6a4200 100%); }
.religion-detail-header.christianity   { background: linear-gradient(135deg, #0a1a4a 0%, #1a2a6a 50%, #1a3a7a 100%); }
.religion-detail-header.abraham        { background: linear-gradient(135deg, #0d2010 0%, #163320 50%, #1a3d22 100%); }
.religion-detail-header.sabians        { background: linear-gradient(135deg, #052525 0%, #0a3535 50%, #0a4040 100%); }
.religion-detail-header.zoroastrianism { background: linear-gradient(135deg, #3a1400 0%, #5a2200 50%, #6a2a00 100%); }
.religion-detail-header.polytheism     { background: linear-gradient(135deg, #350000 0%, #550505 50%, #650a0a 100%); }

.religion-detail-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 12px;
}

.religion-detail-name {
  font-family: var(--font-serif);
  font-size: 46px;
  font-weight: 300;
  color: rgba(255,255,255,0.96);
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.religion-detail-arabic {
  font-style: italic;
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.religion-detail-tagline {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
  max-width: 640px;
  font-weight: 300;
  margin-bottom: 26px;
}

.religion-detail-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.2);
}

.religion-detail-chapters-row {
  margin-top: 14px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
}

.religion-detail-chapters-row strong {
  color: rgba(255,255,255,0.7);
}

/* Sections list */
.religion-sections {
  padding: 40px 56px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.religion-section {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}

.religion-section:last-child {
  border-bottom: none;
}

.religion-section-bar {
  width: 4px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 4px;
  align-self: stretch;
}

.religion-detail-header.judaism ~ .religion-sections .religion-section-bar,
.religion-sections .religion-section-bar.judaism        { background: linear-gradient(180deg, var(--rel-judaism), var(--rel-judaism-mid)); }
.religion-sections .religion-section-bar.christianity   { background: linear-gradient(180deg, var(--rel-christianity), var(--rel-christianity-mid)); }
.religion-sections .religion-section-bar.abraham        { background: linear-gradient(180deg, var(--rel-abraham), var(--rel-abraham-mid)); }
.religion-sections .religion-section-bar.sabians        { background: linear-gradient(180deg, var(--rel-sabians), var(--rel-sabians-mid)); }
.religion-sections .religion-section-bar.zoroastrianism { background: linear-gradient(180deg, var(--rel-zoroastrianism), var(--rel-zoroastrianism-mid)); }
.religion-sections .religion-section-bar.polytheism     { background: linear-gradient(180deg, var(--rel-polytheism), var(--rel-polytheism-mid)); }

.religion-section-content {
  flex: 1;
}

.religion-section-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--text-1);
  line-height: 1.25;
  margin-bottom: 10px;
}

.religion-section-verse-ref {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 14px;
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}

.religion-section-verse-ref.judaism        { background: var(--rel-judaism-bg); color: var(--rel-judaism); }
.religion-section-verse-ref.christianity   { background: var(--rel-christianity-bg); color: var(--rel-christianity); }
.religion-section-verse-ref.abraham        { background: var(--rel-abraham-bg); color: var(--rel-abraham); }
.religion-section-verse-ref.sabians        { background: var(--rel-sabians-bg); color: var(--rel-sabians); }
.religion-section-verse-ref.zoroastrianism { background: var(--rel-zoroastrianism-bg); color: var(--rel-zoroastrianism); }
.religion-section-verse-ref.polytheism     { background: var(--rel-polytheism-bg); color: var(--rel-polytheism); }

.religion-section-body {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-2);
}

/* Dashboard card for religions */
.explore-card--religions {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #1e1e40 0%, #f0eeff 60%);
  border-color: #c4b8f0;
}

/* ── Responsive: Religions ────────────────────────────────── */
@media (max-width: 860px) {
  .religions-hero { padding: 36px 24px 32px; }
  .religions-grid { padding: 28px 20px 60px; grid-template-columns: 1fr; }
  .religion-detail-header { padding: 36px 24px 28px; }
  .religion-sections { padding: 28px 24px 0; }
  .religion-detail-name { font-size: 34px; }
}

@media (max-width: 680px) {
  .religions-hero-title { font-size: 30px; }
  .religion-detail-name { font-size: 28px; }
  .religion-section { flex-direction: column; gap: 12px; }
  .religion-section-bar { width: 100%; height: 3px; align-self: auto; margin-top: 0; }
}

/* ============================================================ */
/* SPIRITUALITY SECTION                                          */
/* ============================================================ */

:root {
  --spirit-soul:   #3a5bc8;
  --spirit-nafs:   #8a3ab8;
  --spirit-dhikr:  #1a8a5a;
  --spirit-tawbah: #c8503a;
  --spirit-sabr:   #2a7a9a;
  --spirit-shukr:  #b8820a;
  --spirit-qalb:   #9a2a4a;
  --spirit-taqwa:  #3a7a2a;
}

.spirit-hero {
  background: linear-gradient(140deg, #0d1140 0%, #1a1a5a 50%, #0d2240 100%);
  padding: 56px 48px 48px;
  position: relative;
  overflow: hidden;
}
.spirit-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 40%, rgba(100,120,255,0.18) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(80,200,180,0.10) 0%, transparent 50%);
  pointer-events: none;
}
.spirit-hero-inner { position: relative; max-width: 700px; }
.spirit-hero-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(160,180,255,0.85);
  margin-bottom: 14px;
}
.spirit-hero-title {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.12;
  font-family: Georgia, serif;
}
.spirit-hero-desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(200,215,255,0.85);
  max-width: 600px;
  margin: 0;
}

/* Grid of concept cards */
.spirit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 36px 40px 60px;
}

.spirit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  display: flex;
  flex-direction: column;
}
.spirit-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.12); }

.spirit-card-bar { height: 4px; }
.spirit-card.soul   .spirit-card-bar { background: var(--spirit-soul); }
.spirit-card.nafs   .spirit-card-bar { background: var(--spirit-nafs); }
.spirit-card.dhikr  .spirit-card-bar { background: var(--spirit-dhikr); }
.spirit-card.tawbah .spirit-card-bar { background: var(--spirit-tawbah); }
.spirit-card.sabr   .spirit-card-bar { background: var(--spirit-sabr); }
.spirit-card.shukr  .spirit-card-bar { background: var(--spirit-shukr); }
.spirit-card.qalb   .spirit-card-bar { background: var(--spirit-qalb); }
.spirit-card.taqwa  .spirit-card-bar { background: var(--spirit-taqwa); }

.spirit-card-body { padding: 24px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.spirit-card-arabic {
  font-size: 11px;
  font-style: italic;
  color: var(--text-4);
  margin-bottom: 6px;
  letter-spacing: .04em;
}
.spirit-card-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  font-family: Georgia, serif;
  margin-bottom: 10px;
}
.spirit-card-tagline {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.55;
  margin-bottom: 14px;
  flex: 1;
}
.spirit-card-stat {
  font-size: 12px;
  color: var(--text-4);
  line-height: 1.5;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-style: italic;
}
.spirit-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* Spirituality detail view reuses religion detail styles */
/* with spirit-specific color overrides */
.spirit-detail-header.soul   { background: linear-gradient(140deg, #1a2a6a, #2a3a8a); }
.spirit-detail-header.nafs   { background: linear-gradient(140deg, #3a1a5a, #5a2a8a); }
.spirit-detail-header.dhikr  { background: linear-gradient(140deg, #0a3a28, #1a5a40); }
.spirit-detail-header.tawbah { background: linear-gradient(140deg, #4a1a10, #7a2a1a); }
.spirit-detail-header.sabr   { background: linear-gradient(140deg, #0a2a3a, #1a4a5a); }
.spirit-detail-header.shukr  { background: linear-gradient(140deg, #3a2a08, #5a4010); }
.spirit-detail-header.qalb   { background: linear-gradient(140deg, #3a0a1a, #5a1a2a); }
.spirit-detail-header.taqwa  { background: linear-gradient(140deg, #0a2a0a, #1a4a1a); }

.spirit-section-bar.soul   { background: var(--spirit-soul); }
.spirit-section-bar.nafs   { background: var(--spirit-nafs); }
.spirit-section-bar.dhikr  { background: var(--spirit-dhikr); }
.spirit-section-bar.tawbah { background: var(--spirit-tawbah); }
.spirit-section-bar.sabr   { background: var(--spirit-sabr); }
.spirit-section-bar.shukr  { background: var(--spirit-shukr); }
.spirit-section-bar.qalb   { background: var(--spirit-qalb); }
.spirit-section-bar.taqwa  { background: var(--spirit-taqwa); }

.spirit-verse-ref.soul   { background: rgba(58,91,200,.1); color: var(--spirit-soul); border: 1px solid rgba(58,91,200,.25); }
.spirit-verse-ref.nafs   { background: rgba(138,58,184,.1); color: var(--spirit-nafs); border: 1px solid rgba(138,58,184,.25); }
.spirit-verse-ref.dhikr  { background: rgba(26,138,90,.1); color: var(--spirit-dhikr); border: 1px solid rgba(26,138,90,.25); }
.spirit-verse-ref.tawbah { background: rgba(200,80,58,.1); color: var(--spirit-tawbah); border: 1px solid rgba(200,80,58,.25); }
.spirit-verse-ref.sabr   { background: rgba(42,122,154,.1); color: var(--spirit-sabr); border: 1px solid rgba(42,122,154,.25); }
.spirit-verse-ref.shukr  { background: rgba(184,130,10,.1); color: var(--spirit-shukr); border: 1px solid rgba(184,130,10,.25); }
.spirit-verse-ref.qalb   { background: rgba(154,42,74,.1); color: var(--spirit-qalb); border: 1px solid rgba(154,42,74,.25); }
.spirit-verse-ref.taqwa  { background: rgba(58,122,42,.1); color: var(--spirit-taqwa); border: 1px solid rgba(58,122,42,.25); }

/* ============================================================ */
/* FUTURE / PROPHECIES SECTION                                   */
/* ============================================================ */

.future-hero {
  background: linear-gradient(140deg, #0a2a18 0%, #0d3a20 50%, #0a1a30 100%);
  padding: 56px 48px 40px;
  position: relative;
  overflow: hidden;
}
.future-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(60,200,100,0.14) 0%, transparent 55%),
              radial-gradient(ellipse at 20% 80%, rgba(60,120,200,0.10) 0%, transparent 50%);
  pointer-events: none;
}
.future-hero-inner { position: relative; max-width: 700px; margin-bottom: 32px; }
.future-hero-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(140,220,160,0.85);
  margin-bottom: 14px;
}
.future-hero-title {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.12;
  font-family: Georgia, serif;
}
.future-hero-desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(180,220,200,0.85);
  max-width: 600px;
  margin: 0;
}

.future-filter-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.future-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: rgba(200,230,210,0.9);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.future-pill.active, .future-pill:hover {
  background: rgba(60,200,100,0.2);
  border-color: rgba(60,200,100,0.5);
  color: #a0eab0;
}
.future-pill-count {
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
}

.future-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 36px 40px 60px;
}

.future-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.future-card-bar { height: 4px; }
.future-card.historical .future-card-bar { background: linear-gradient(90deg, #c8a000, #e8c020); }
.future-card.ongoing    .future-card-bar { background: linear-gradient(90deg, #2a7a5a, #40b080); }
.future-card.eschatological .future-card-bar { background: linear-gradient(90deg, #7a2a9a, #a040c0); }

.future-card-inner { padding: 28px 32px 28px; }
.future-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.future-cat-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
}
.future-card.historical    .future-cat-badge { background: rgba(200,160,0,.15); color: #9a7800; border: 1px solid rgba(200,160,0,.3); }
.future-card.ongoing       .future-cat-badge { background: rgba(42,122,90,.15); color: #1a7a50; border: 1px solid rgba(42,122,90,.3); }
.future-card.eschatological .future-cat-badge { background: rgba(122,42,154,.15); color: #7a28a0; border: 1px solid rgba(122,42,154,.3); }

.future-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-2);
  color: var(--text-3);
  border: 1px solid var(--border);
}
.future-timeframe {
  font-size: 11px;
  color: var(--text-4);
  margin-left: auto;
  font-style: italic;
}
.future-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-1);
  font-family: Georgia, serif;
  margin: 0 0 18px;
  line-height: 1.3;
}

.future-evidence-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.future-panel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.future-panel-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.future-verse-text {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-2);
  font-style: italic;
}
.future-verse-ref-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.future-context-text {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-2);
}

.future-fulfillment {
  background: var(--bg-2);
  border-left: 3px solid #2a7a5a;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.future-fulfillment-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #2a7a5a;
  margin-bottom: 6px;
}
.future-fulfillment-text {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-2);
}

.future-explore {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.future-explore-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 8px;
}
.future-explore-item {
  font-size: 13px;
  color: var(--text-3);
  padding: 4px 0 4px 16px;
  position: relative;
  line-height: 1.55;
}
.future-explore-item::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 12px;
}

/* ============================================================ */
/* WAR VERSES / VIOLENCE IN CONTEXT SECTION                      */
/* ============================================================ */

.violence-hero {
  background: linear-gradient(140deg, #1a0e04 0%, #2a1808 60%, #1a1030 100%);
  padding: 56px 48px 48px;
  position: relative;
  overflow: hidden;
}
.violence-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 35%, rgba(200,120,40,0.14) 0%, transparent 55%),
              radial-gradient(ellipse at 20% 80%, rgba(80,80,180,0.10) 0%, transparent 50%);
  pointer-events: none;
}
.violence-hero-inner { position: relative; max-width: 700px; }
.violence-hero-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(220,180,120,0.85);
  margin-bottom: 14px;
}
.violence-hero-title {
  font-size: 42px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.12;
  font-family: Georgia, serif;
}
.violence-hero-desc {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(220,200,170,0.85);
  max-width: 600px;
  margin: 0;
}

.violence-content {
  padding: 0 0 60px;
}

/* Principles banner */
.violence-principles {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 36px 40px 32px;
}
.violence-principles-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 24px;
}
.violence-principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.violence-principle-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 18px 16px;
}
.violence-principle-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(180,120,40,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #b87828;
}
.violence-principle-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 8px;
  line-height: 1.3;
}
.violence-principle-body {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
}

/* Verse context cards */
.violence-verses {
  padding: 32px 40px 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.violence-verse-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.violence-verse-bar {
  height: 4px;
  background: linear-gradient(90deg, #8a4810, #c87830);
}
.violence-verse-inner { padding: 26px 30px 26px; }
.violence-verse-headline {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-1);
  font-family: Georgia, serif;
  margin-bottom: 6px;
}
.violence-ref-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(180,120,40,0.1);
  color: #9a6020;
  border: 1px solid rgba(180,120,40,0.25);
  margin-bottom: 16px;
}
.violence-full-verse {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-2);
  font-style: italic;
  background: var(--bg-2);
  border-left: 3px solid rgba(180,120,40,0.5);
  padding: 14px 18px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 20px;
}
.violence-context-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.violence-context-panel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
}
.violence-context-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-bottom: 8px;
}
.violence-context-text {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-2);
}
.violence-principle-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(60,160,80,0.08);
  border: 1px solid rgba(60,160,80,0.2);
  border-radius: 8px;
  margin-top: 4px;
}
.violence-principle-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a8a4a;
  flex-shrink: 0;
  margin-top: 6px;
}
.violence-principle-text {
  font-size: 13px;
  color: #2a6a3a;
  line-height: 1.55;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 860px) {
  .spirit-hero, .future-hero, .violence-hero { padding: 36px 24px 32px; }
  .spirit-grid { padding: 28px 20px 60px; grid-template-columns: 1fr; }
  .future-list, .violence-principles, .violence-verses { padding-left: 20px; padding-right: 20px; }
  .future-evidence-grid, .violence-context-grid { grid-template-columns: 1fr; }
  .future-timeframe { display: none; }
}
@media (max-width: 680px) {
  .spirit-hero-title, .future-hero-title, .violence-hero-title { font-size: 28px; }
  .violence-principles-grid { grid-template-columns: 1fr; }
}

/* ============================================================ */
/* MULTI-SCRIPTURE SYSTEM: Book Switcher + Bible Sections        */
/* ============================================================ */

/* ── Book Switcher ─────────────────────────────────────────── */

.book-switcher {
  position: relative;
  margin: 0 12px 8px;
}

.book-switcher-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background .15s;
  color: #fff;
}
.book-switcher-btn:hover { background: rgba(255,255,255,0.13); }

.book-switcher-icon {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255,255,255,0.85);
}
.book-switcher-text {
  flex: 1;
  text-align: left;
  min-width: 0;
}
.book-switcher-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1px;
}
.book-switcher-title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.book-switcher-caret {
  color: rgba(255,255,255,0.4);
  flex-shrink: 0;
  transition: transform .2s;
}
.book-switcher-btn.open .book-switcher-caret { transform: rotate(180deg); }

/* Dropdown */
.book-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #1c2820;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 10px 8px;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  display: none;
}
.book-dropdown.open { display: block; }

.book-dropdown-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 4px 8px 8px;
}

.book-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 10px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: background .13s;
  color: rgba(255,255,255,0.75);
}
.book-choice:hover { background: rgba(255,255,255,0.08); }
.book-choice.active { background: rgba(255,255,255,0.1); color: #fff; }

.book-choice-symbol {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.book-choice-symbol.quran { background: rgba(74,180,100,0.2); color: #6aab76; }
.book-choice-symbol.ot    { background: rgba(200,170,50,0.18); color: #c8aa30; }
.book-choice-symbol.nt    { background: rgba(180,80,80,0.18); color: #c87070; }

.book-choice-info { flex: 1; text-align: left; }
.book-choice-name { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.9); }
.book-choice-meta { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 1px; }

.book-choice-check { color: rgba(255,255,255,0.3); flex-shrink: 0; }
.book-choice.active .book-choice-check { color: #6aab76; }

/* Nav helper styles */
.hidden-nav { display: none; }
.nav-indent { padding-left: 28px; }
.nav-label-note {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  padding: 0 14px 4px 14px;
  line-height: 1.3;
}
.nav-label-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-right: 4px;
  vertical-align: middle;
}
.nav-label-badge.torah    { background: rgba(200,170,50,0.25); color: #c8b050; }
.nav-label-badge.historical { background: rgba(80,140,200,0.25); color: #70aacc; }
.nav-label-badge.wisdom   { background: rgba(80,180,120,0.25); color: #60b890; }
.nav-label-badge.prophet  { background: rgba(200,90,70,0.25); color: #c87060; }
.nav-label-badge.gospel   { background: rgba(180,70,70,0.25); color: #c06060; }
.nav-label-badge.acts-badge { background: rgba(120,100,200,0.25); color: #9080cc; }
.nav-label-badge.paul-badge { background: rgba(60,140,180,0.25); color: #50a8c8; }
.nav-label-badge.epistle-badge { background: rgba(160,120,60,0.25); color: #c09040; }
.nav-label-badge.apoc-badge { background: rgba(160,60,160,0.25); color: #b050b0; }

.nav-badge--soon {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.35);
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 4px;
}

/* ── Bible Hero Sections ───────────────────────────────────── */

:root {
  --ot-dark:   #1a1200;
  --ot-mid:    #2a1e04;
  --ot-accent: #c8a830;
  --ot-light:  #f8f2e0;
  --nt-dark:   #1a0508;
  --nt-mid:    #2a0c10;
  --nt-accent: #c84848;
  --nt-light:  #f8eaea;
}

.bible-hero {
  padding: 56px 48px 48px;
  position: relative;
  overflow: hidden;
}
.bible-hero.ot {
  background: linear-gradient(140deg, #1a1c06 0%, #292e09 50%, #1f2207 100%);
}
.bible-hero.ot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 35%, rgba(180,190,50,0.15) 0%, transparent 55%),
              radial-gradient(ellipse at 15% 80%, rgba(90,110,20,0.20) 0%, transparent 50%);
  pointer-events: none;
}
.bible-hero.nt {
  background: linear-gradient(140deg, #110c2e 0%, #1e1450 50%, #130a38 100%);
}
.bible-hero.nt::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 75% 35%, rgba(100,80,200,0.18) 0%, transparent 55%),
              radial-gradient(ellipse at 15% 80%, rgba(60,40,140,0.22) 0%, transparent 50%);
  pointer-events: none;
}
.bible-hero-inner { position: relative; max-width: 760px; }
.bible-hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.bible-hero.ot .bible-hero-eyebrow { color: rgba(190,205,80,0.9); }
.bible-hero.nt .bible-hero-eyebrow { color: rgba(168,150,240,0.9); }
.bible-hero-title {
  font-size: 46px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 16px;
  line-height: 1.1;
  font-family: Georgia, serif;
}
.bible-hero-subtitle {
  font-size: 15px;
  line-height: 1.7;
  max-width: 620px;
  margin: 0 0 32px;
}
.bible-hero.ot .bible-hero-subtitle { color: rgba(215,220,170,0.85); }
.bible-hero.nt .bible-hero-subtitle { color: rgba(195,185,235,0.85); }

.bible-hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}
.bible-stat { text-align: center; padding: 0 24px; }
.bible-stat:first-child { padding-left: 0; }
.bible-stat-num {
  display: block;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  font-family: Georgia, serif;
}
.bible-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
}
.bible-hero.ot .bible-stat-label { color: rgba(190,205,80,0.75); }
.bible-hero.nt .bible-stat-label { color: rgba(168,150,240,0.75); }
.bible-stat-div {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.12);
}

/* ── Who Follows Banner ────────────────────────────────────── */

.who-follows-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
}
.who-follows-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 32px;
  border-right: 1px solid var(--border);
}
.who-follows-item:last-child { border-right: none; }
.who-follows-item.jewish { background: linear-gradient(135deg, #fffbea 0%, var(--bg-card) 70%); }
.who-follows-item.christian { background: linear-gradient(135deg, #fff5f5 0%, var(--bg-card) 70%); }
.who-follows-item.gospel-fact { background: linear-gradient(135deg, #fff5f0 0%, var(--bg-card) 70%); }
.who-follows-item.paul-fact { background: linear-gradient(135deg, #f0f5ff 0%, var(--bg-card) 70%); }
.who-follows-symbol {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.who-follows-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 6px;
}
.who-follows-desc {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
}

/* ── Bible Section Cards (Dashboard) ──────────────────────── */

.bible-section-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 32px 40px 60px;
}

.bible-section-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  display: flex;
  flex-direction: column;
}
.bible-section-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.1); }

.bible-section-card-bar { height: 4px; }
.bible-section-card.torah        .bible-section-card-bar { background: #c8a830; }
.bible-section-card.historical   .bible-section-card-bar { background: #5090c0; }
.bible-section-card.wisdom       .bible-section-card-bar { background: #40a870; }
.bible-section-card.major-prophet .bible-section-card-bar { background: #c05040; }
.bible-section-card.minor-prophet .bible-section-card-bar { background: #b86030; }
.bible-section-card.gospel       .bible-section-card-bar { background: #c04040; }
.bible-section-card.acts         .bible-section-card-bar { background: #7060c0; }
.bible-section-card.paul         .bible-section-card-bar { background: #3080b0; }
.bible-section-card.epistle      .bible-section-card-bar { background: #b08030; }
.bible-section-card.apocalypse   .bible-section-card-bar { background: #a030a0; }

.bible-section-card-body { padding: 22px 22px 20px; flex: 1; display: flex; flex-direction: column; }
.bible-section-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.bible-section-card.torah        .bible-section-card-label { color: #9a7a10; }
.bible-section-card.historical   .bible-section-card-label { color: #3070a0; }
.bible-section-card.wisdom       .bible-section-card-label { color: #208050; }
.bible-section-card.major-prophet .bible-section-card-label { color: #a03020; }
.bible-section-card.minor-prophet .bible-section-card-label { color: #904010; }
.bible-section-card.gospel       .bible-section-card-label { color: #a02020; }
.bible-section-card.acts         .bible-section-card-label { color: #5040a0; }
.bible-section-card.paul         .bible-section-card-label { color: #1060a0; }
.bible-section-card.epistle      .bible-section-card-label { color: #906010; }
.bible-section-card.apocalypse   .bible-section-card-label { color: #801080; }

.bible-section-card-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-1);
  font-family: Georgia, serif;
  margin-bottom: 8px;
}
.bible-section-card-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-4);
  margin-bottom: 10px;
}
.bible-section-card-summary {
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 12px;
}
.bible-section-card-note {
  font-size: 12px;
  color: var(--text-4);
  line-height: 1.5;
  padding: 10px 12px;
  background: var(--bg-2);
  border-radius: 7px;
  font-style: italic;
  border-left: 2px solid var(--border-2);
  margin-bottom: 12px;
}
.bible-section-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  margin-top: auto;
}

/* ── Bible Books Grid ──────────────────────────────────────── */

.bible-books-header {
  padding: 28px 40px 0;
  border-bottom: 1px solid var(--border);
}
.bible-books-header.ot { background: linear-gradient(135deg, #fffbea 0%, var(--bg) 60%); }
.bible-books-header.nt { background: linear-gradient(135deg, #fff5f5 0%, var(--bg) 60%); }
.bible-books-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.bible-books-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-1);
  font-family: Georgia, serif;
}
.bible-books-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 20px;
}
.bible-filter-pill {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-2);
  background: var(--bg-card);
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .13s, border-color .13s;
}
.bible-filter-pill.active,
.bible-filter-pill:hover {
  background: var(--text-1);
  color: #fff;
  border-color: var(--text-1);
}

.bible-books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  padding: 28px 40px 60px;
}

.bible-book-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.bible-book-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.09); }

.bible-book-card-bar { height: 3px; }
.bible-book-card.torah        .bible-book-card-bar { background: #c8a830; }
.bible-book-card.historical   .bible-book-card-bar { background: #5090c0; }
.bible-book-card.wisdom       .bible-book-card-bar { background: #40a870; }
.bible-book-card.major-prophet .bible-book-card-bar { background: #c05040; }
.bible-book-card.minor-prophet .bible-book-card-bar { background: #b86030; }
.bible-book-card.gospel       .bible-book-card-bar { background: #c04040; }
.bible-book-card.acts         .bible-book-card-bar { background: #7060c0; }
.bible-book-card.paul         .bible-book-card-bar { background: #3080b0; }
.bible-book-card.epistle      .bible-book-card-bar { background: #b08030; }
.bible-book-card.apocalypse   .bible-book-card-bar { background: #a030a0; }

.bible-book-card-inner { padding: 16px 18px 16px; }
.bible-book-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.bible-book-number {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-4);
  background: var(--bg-2);
  padding: 2px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.bible-book-jesus-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(200,64,64,0.1);
  color: #a02020;
  border: 1px solid rgba(200,64,64,0.2);
  flex-shrink: 0;
}
.bible-book-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-1);
  font-family: Georgia, serif;
  margin-bottom: 2px;
}
.bible-book-original {
  font-size: 11px;
  color: var(--text-4);
  font-style: italic;
  margin-bottom: 8px;
}
.bible-book-meta {
  display: flex;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.bible-book-meta-item {
  font-size: 11px;
  color: var(--text-4);
  display: flex;
  align-items: center;
  gap: 4px;
}
.bible-book-summary {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.55;
}
.bible-book-author {
  font-size: 11px;
  color: var(--text-4);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Bible Reader Placeholder ──────────────────────────────── */

.bible-reader-placeholder { padding: 40px; }
.placeholder-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-4);
  margin-bottom: 32px;
}
.placeholder-state svg { opacity: 0.3; margin-bottom: 16px; }
.placeholder-state h3 { font-size: 18px; font-weight: 600; color: var(--text-3); margin-bottom: 8px; }
.placeholder-state p { font-size: 14px; }

/* Book detail panel in reader */
.bible-book-detail {
  max-width: 760px;
  margin: 0 auto;
}
.bible-book-detail-header {
  padding: 28px 32px;
  border-radius: 14px;
  margin-bottom: 24px;
}
.bible-book-detail-header.ot { background: linear-gradient(135deg, #fffbea, #f5ecc0); border: 1px solid #d4c060; }
.bible-book-detail-header.nt { background: linear-gradient(135deg, #fff0f0, #f5d0d0); border: 1px solid #d08080; }
.bible-book-detail-name {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-1);
  font-family: Georgia, serif;
  margin-bottom: 4px;
}
.bible-book-detail-original { font-size: 14px; color: var(--text-4); font-style: italic; margin-bottom: 16px; }
.bible-book-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
.bible-book-detail-item { font-size: 13px; color: var(--text-3); }
.bible-book-detail-item strong { color: var(--text-1); }
.bible-book-detail-summary {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 16px;
}
.bible-book-detail-figures {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bible-book-detail-figure-pill {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--text-3);
  border: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 860px) {
  .bible-hero { padding: 36px 24px 32px; }
  .bible-section-cards, .bible-books-grid { padding: 20px; }
  .who-follows-banner { grid-template-columns: 1fr; }
  .who-follows-item { border-right: none; border-bottom: 1px solid var(--border); }
  .bible-books-header { padding: 20px 20px 0; }
  .bible-hero-title { font-size: 32px; }
  .bible-book-detail-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   OT TOPIC VIEWS: Stories, Law, Wisdom, Prophecy
   ============================================================ */

/* Hero sections for each topic */
.ot-topic-hero {
  padding: 48px 48px 40px;
  position: relative;
  overflow: hidden;
}
.ot-topic-hero.stories  { background: linear-gradient(135deg, #1a2e1a 0%, #2d4a1e 60%, #1e3a2a 100%); }
.ot-topic-hero.law      { background: linear-gradient(135deg, #1e1e0a 0%, #3a3010 60%, #2a2218 100%); }
.ot-topic-hero.wisdom   { background: linear-gradient(135deg, #0d1e2e 0%, #1a2e4a 60%, #162438 100%); }
.ot-topic-hero.prophecy { background: linear-gradient(135deg, #1e0a1e 0%, #3a1040 60%, #2a0e30 100%); }

.ot-topic-hero-inner { position: relative; z-index: 1; max-width: 700px; }
.ot-topic-hero .back-btn { margin-bottom: 20px; }

.ot-topic-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 10px;
}

.ot-topic-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 14px;
}

.ot-topic-subtitle {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,.65);
  max-width: 600px;
}

/* Filter pills (shared) */
.ot-topic-filter-row {
  display: flex;
  gap: 8px;
  padding: 20px 48px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.ot-topic-pill {
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: none;
  font-size: 13px;
  font-family: var(--font-sans);
  color: var(--text-2);
  cursor: pointer;
  transition: all .15s;
}
.ot-topic-pill:hover { background: var(--bg-2); color: var(--text-1); }
.ot-topic-pill.active {
  background: var(--green-1);
  border-color: var(--green-1);
  color: #fff;
  font-weight: 500;
}

/* Islamic parallel badge */
.quran-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #c27c00;
  background: rgba(194,124,0,.1);
  border: 1px solid rgba(194,124,0,.25);
  border-radius: 4px;
  padding: 2px 7px;
}

/* ── OT STORIES ─────────────────────────────────────────── */
.ot-stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 32px 48px;
}

.ot-story-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .15s, transform .15s;
  display: flex;
  flex-direction: column;
}
.ot-story-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); transform: translateY(-2px); }

.ot-story-card-bar {
  height: 4px;
  width: 100%;
}
.ot-story-card-bar.torah    { background: linear-gradient(90deg, #c27c00, #e8a020); }
.ot-story-card-bar.history  { background: linear-gradient(90deg, #1a5fa8, #2d7dd2); }
.ot-story-card-bar.wisdom   { background: linear-gradient(90deg, #1a7a6a, #22a08a); }
.ot-story-card-bar.prophecy { background: linear-gradient(90deg, #6a1a8a, #9a30c0); }

.ot-story-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.ot-story-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.ot-story-card-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-1);
  line-height: 1.3;
}

.ot-story-card-ref {
  font-size: 11px;
  color: var(--text-3);
  background: var(--bg-2);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ot-story-card-tagline {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  margin-bottom: 14px;
  flex: 1;
}

.ot-story-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ot-story-card-figures {
  font-size: 11px;
  color: var(--text-3);
}

/* ── OT STORY DETAIL ─────────────────────────────────────── */
.ot-story-detail-hero {
  padding: 48px 48px 40px;
}
.ot-story-detail-hero.torah    { background: linear-gradient(135deg, #1e1408 0%, #3a2808 60%, #2a1e0a 100%); }
.ot-story-detail-hero.history  { background: linear-gradient(135deg, #081422 0%, #0a2240 60%, #0c1a30 100%); }
.ot-story-detail-hero.wisdom   { background: linear-gradient(135deg, #081a18 0%, #0e2e2a 60%, #0a2020 100%); }
.ot-story-detail-hero.prophecy { background: linear-gradient(135deg, #180820 0%, #2a1040 60%, #1e0a2a 100%); }

.ot-story-detail-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 10px;
}
.ot-story-detail-title {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 8px;
}
.ot-story-detail-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,.55);
  margin-bottom: 20px;
}
.ot-story-detail-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ot-story-detail-meta-tag {
  font-size: 12px;
  background: rgba(255,255,255,.1);
  border-radius: 6px;
  padding: 4px 10px;
  color: rgba(255,255,255,.7);
}

.ot-story-detail-body { padding: 40px 48px; max-width: 860px; }

.ot-story-overview {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-1);
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.ot-story-section { margin-bottom: 36px; }

.ot-story-section-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}

.ot-story-verse-block {
  background: var(--bg-2);
  border-left: 3px solid var(--green-muted);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin-bottom: 14px;
}
.ot-story-verse-block.torah    { border-left-color: #c27c00; }
.ot-story-verse-block.history  { border-left-color: #1a5fa8; }
.ot-story-verse-block.wisdom   { border-left-color: #1a7a6a; }
.ot-story-verse-block.prophecy { border-left-color: #6a1a8a; }

.ot-story-verse-text {
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-1);
  margin-bottom: 6px;
  font-style: italic;
}
.ot-story-verse-ref {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  letter-spacing: .04em;
}

.ot-story-section-body {
  font-size: 15px;
  line-height: 1.72;
  color: var(--text-2);
}

.ot-story-quran-box {
  background: rgba(194,124,0,.06);
  border: 1px solid rgba(194,124,0,.2);
  border-radius: 10px;
  padding: 20px 24px;
  margin-top: 32px;
}
.ot-story-quran-box-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #c27c00;
  margin-bottom: 8px;
}
.ot-story-quran-box-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
}

/* ── OT LAW ─────────────────────────────────────────────── */
.ot-law-list { padding: 32px 48px; display: flex; flex-direction: column; gap: 24px; }

.ot-law-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.ot-law-card-top {
  display: flex;
  align-items: stretch;
}

.ot-law-card-accent {
  width: 6px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #c27c00, #e8a020);
}

.ot-law-card-content { padding: 24px 28px; flex: 1; }

.ot-law-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.ot-law-card-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text-1);
  line-height: 1.2;
}

.ot-law-card-ref {
  font-size: 11px;
  color: var(--text-3);
  background: var(--bg-2);
  border-radius: 5px;
  padding: 3px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ot-law-card-overview {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 20px;
}

.ot-law-items { display: flex; flex-direction: column; gap: 10px; }

.ot-law-item {
  display: flex;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg-2);
  border-radius: 8px;
}

.ot-law-item-num {
  font-size: 13px;
  font-weight: 700;
  color: #c27c00;
  min-width: 22px;
  padding-top: 1px;
}

.ot-law-item-body { flex: 1; }

.ot-law-item-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 4px;
}

.ot-law-item-explanation {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-2);
}

.ot-law-item-quran {
  font-size: 12px;
  color: #c27c00;
  margin-top: 5px;
  font-style: italic;
}

/* ── OT WISDOM ──────────────────────────────────────────── */
.ot-wisdom-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding: 32px 48px;
}

.ot-wisdom-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.ot-wisdom-card-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ot-wisdom-card-type.psalm    { color: #1a5fa8; }
.ot-wisdom-card-type.proverb  { color: #c27c00; }
.ot-wisdom-card-type.wisdom   { color: #1a7a6a; }
.ot-wisdom-card-type.song     { color: #8a3a70; }

.ot-wisdom-card-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--text-1);
  line-height: 1.3;
  margin-bottom: 6px;
}

.ot-wisdom-card-author {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 14px;
}

.ot-wisdom-card-verse {
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-2);
  padding: 12px 14px;
  background: var(--bg-2);
  border-radius: 6px;
  margin-bottom: 14px;
}

.ot-wisdom-card-explanation {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 12px;
}

.ot-wisdom-card-quran {
  font-size: 12px;
  color: #c27c00;
  padding: 8px 12px;
  background: rgba(194,124,0,.06);
  border-radius: 6px;
  line-height: 1.5;
}

/* ── OT PROPHECY ────────────────────────────────────────── */
.ot-prophecy-list { padding: 32px 48px; display: flex; flex-direction: column; gap: 20px; }

.ot-prophecy-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.ot-prophecy-card-bar {
  height: 3px;
}
.ot-prophecy-card-bar.messianic      { background: linear-gradient(90deg, #6a1a8a, #9a30c0); }
.ot-prophecy-card-bar.historical     { background: linear-gradient(90deg, #1a5fa8, #2d7dd2); }
.ot-prophecy-card-bar.eschatological { background: linear-gradient(90deg, #7a1a1a, #c02020); }

.ot-prophecy-card-body { padding: 24px 28px; }

.ot-prophecy-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.ot-prophecy-card-category {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 4px;
}
.ot-prophecy-card-category.messianic      { background: rgba(106,26,138,.1); color: #6a1a8a; }
.ot-prophecy-card-category.historical     { background: rgba(26,95,168,.1);  color: #1a5fa8; }
.ot-prophecy-card-category.eschatological { background: rgba(122,26,26,.1);  color: #7a1a1a; }

.ot-prophecy-card-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--text-1);
  line-height: 1.3;
}

.ot-prophecy-card-overview {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
  margin-bottom: 16px;
}

.ot-prophecy-card-verse {
  font-family: var(--font-serif);
  font-size: 14px;
  font-style: italic;
  line-height: 1.65;
  color: var(--text-2);
  padding: 14px 16px;
  background: var(--bg-2);
  border-left: 3px solid #6a1a8a;
  border-radius: 0 6px 6px 0;
  margin-bottom: 16px;
}
.ot-prophecy-card-verse.historical     { border-left-color: #1a5fa8; }
.ot-prophecy-card-verse.eschatological { border-left-color: #7a1a1a; }

.ot-prophecy-card-ref {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  margin-top: 4px;
  display: block;
}

.ot-prophecy-views {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.ot-prophecy-view {
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--bg-2);
}

.ot-prophecy-view-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.ot-prophecy-view-label.christian { color: #8a3a14; }
.ot-prophecy-view-label.jewish    { color: #1a5fa8; }
.ot-prophecy-view-label.islamic   { color: #c27c00; }

.ot-prophecy-view-body {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-2);
}

@media (max-width: 860px) {
  .ot-topic-hero { padding: 32px 24px 28px; }
  .ot-topic-filter-row { padding: 16px 24px; }
  .ot-stories-grid, .ot-wisdom-grid { padding: 20px 24px; grid-template-columns: 1fr; }
  .ot-law-list, .ot-prophecy-list { padding: 20px 24px; }
  .ot-story-detail-body { padding: 28px 24px; }
  .ot-story-detail-hero { padding: 32px 24px 28px; }
  .ot-prophecy-views { grid-template-columns: 1fr; }
  .ot-topic-title { font-size: 30px; }
}

/* ============================================================
   BOOK READER — Rich detail layout for OT/NT books
   ============================================================ */

/* Hero section — color per category */
.book-reader-hero {
  padding: 48px 48px 40px;
  position: relative;
}
.book-reader-hero.torah         { background: linear-gradient(135deg, #1e1408 0%, #3a2808 60%, #2a1e0a 100%); }
.book-reader-hero.historical    { background: linear-gradient(135deg, #081422 0%, #0a2240 60%, #0c1a30 100%); }
.book-reader-hero.wisdom        { background: linear-gradient(135deg, #081a18 0%, #0e2e2a 60%, #0a2020 100%); }
.book-reader-hero.major-prophet { background: linear-gradient(135deg, #180820 0%, #2a1040 60%, #1e0a2a 100%); }
.book-reader-hero.minor-prophet { background: linear-gradient(135deg, #100a20 0%, #201038 60%, #180a28 100%); }
.book-reader-hero.gospel        { background: linear-gradient(135deg, #0a1a10 0%, #143020 60%, #0e2018 100%); }
.book-reader-hero.paul          { background: linear-gradient(135deg, #1a0808 0%, #300e0e 60%, #201010 100%); }
.book-reader-hero.epistle       { background: linear-gradient(135deg, #0a1020 0%, #142030 60%, #0e1828 100%); }
.book-reader-hero.acts          { background: linear-gradient(135deg, #100a08 0%, #281808 60%, #1e1208 100%); }
.book-reader-hero.apocalypse    { background: linear-gradient(135deg, #180818 0%, #301030 60%, #200820 100%); }

.book-reader-hero-inner { max-width: 720px; }

.book-reader-hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 10px;
}

.book-reader-hero-name {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 6px;
}

.book-reader-hero-original {
  font-size: 15px;
  color: rgba(255,255,255,.45);
  margin-bottom: 14px;
}

.book-reader-hero-tagline {
  font-size: 18px;
  color: rgba(255,255,255,.75);
  font-style: italic;
  margin-bottom: 20px;
}

.book-reader-hero-stats {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.book-reader-stat {
  font-size: 13px;
  color: rgba(255,255,255,.55);
}

.book-reader-stat-div {
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,.2);
}

/* Body layout */
.book-reader-body {
  padding: 40px 48px;
  max-width: 820px;
}

.book-reader-overview {
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-1);
  margin-bottom: 32px;
}

/* Key verse */
.book-key-verse {
  background: var(--bg-2);
  border-left: 3px solid var(--green-1);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin-bottom: 28px;
}

.book-key-verse-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.book-key-verse-text {
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  line-height: 1.65;
  color: var(--text-1);
  margin: 0 0 8px;
}

.book-key-verse-ref {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
}

/* Themes */
.book-themes-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.book-theme-pill {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  color: var(--text-2);
}

/* Chapter highlights */
.book-highlights-section { margin-bottom: 32px; }

.book-highlights-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 16px;
}

.book-highlights-list { display: flex; flex-direction: column; gap: 12px; }

.book-highlight {
  display: flex;
  gap: 16px;
  padding: 16px 18px;
  background: var(--bg-2);
  border-radius: 10px;
}

.book-highlight-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--green-1);
  min-width: 20px;
  padding-top: 1px;
  flex-shrink: 0;
}

.book-highlight-body { flex: 1; }

.book-highlight-ch {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 3px;
}

.book-highlight-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 5px;
}

.book-highlight-summary {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

/* Islamic connection box */
.book-islamic-box {
  background: rgba(194,124,0,.06);
  border: 1px solid rgba(194,124,0,.2);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 28px;
}

.book-islamic-box-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #c27c00;
  margin-bottom: 8px;
}

.book-islamic-box-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
}

/* Meta row at bottom */
.book-reader-meta-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.book-reader-meta-item {
  font-size: 13px;
  color: var(--text-2);
}

.book-reader-meta-item strong { color: var(--text-1); font-weight: 600; }

@media (max-width: 860px) {
  .book-reader-hero { padding: 32px 24px 28px; }
  .book-reader-body { padding: 28px 24px; }
  .book-reader-hero-name { font-size: 32px; }
}

/* ============================================================
   OT PERSPECTIVES: Islam Links, NT Links, Spirituality, War
   ============================================================ */

.ot-persp-hero {
  padding: 48px 48px 40px;
  position: relative;
  overflow: hidden;
}
.ot-persp-hero.islam    { background: linear-gradient(135deg, #0e1a0e 0%, #1a3010 60%, #102010 100%); }
.ot-persp-hero.nt-link  { background: linear-gradient(135deg, #10100a 0%, #28200a 60%, #1e1808 100%); }
.ot-persp-hero.spir     { background: linear-gradient(135deg, #0a0e1e 0%, #101a38 60%, #0c1428 100%); }
.ot-persp-hero.war      { background: linear-gradient(135deg, #1a0a08 0%, #301010 60%, #200c0a 100%); }

.ot-persp-hero-inner { position: relative; z-index: 1; max-width: 700px; }
.ot-persp-hero .back-btn { margin-bottom: 20px; }
.ot-persp-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 10px;
}
.ot-persp-title {
  font-family: var(--font-serif); font-size: 40px; font-weight: 600;
  color: #fff; line-height: 1.1; margin-bottom: 14px;
}
.ot-persp-subtitle {
  font-size: 16px; line-height: 1.65; color: rgba(255,255,255,.6); max-width: 620px;
}

/* ── Islam Links & Spirituality Grid ── */
.ot-persp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding: 32px 48px;
}

.ot-persp-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: box-shadow .15s, transform .15s;
}
.ot-persp-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); transform: translateY(-2px); }

.ot-persp-card-bar { height: 4px; }
.ot-persp-card-bar.torah        { background: linear-gradient(90deg,#c27c00,#e8a020); }
.ot-persp-card-bar.history      { background: linear-gradient(90deg,#1a5fa8,#2d7dd2); }
.ot-persp-card-bar.wisdom       { background: linear-gradient(90deg,#1a7a6a,#22a08a); }
.ot-persp-card-bar.major-prophet{ background: linear-gradient(90deg,#6a1a8a,#9a30c0); }
.ot-persp-card-bar.minor-prophet{ background: linear-gradient(90deg,#3a2a80,#5a4ab0); }

.ot-persp-card-body { padding: 20px; }
.ot-persp-card-names {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.ot-persp-card-ot-name {
  font-family: var(--font-serif); font-size: 17px;
  font-weight: 500; color: var(--text-1);
}
.ot-persp-card-arrow { color: var(--text-3); font-size: 14px; }
.ot-persp-card-islamic-name {
  font-size: 14px; color: #c27c00; font-weight: 600;
}
.ot-persp-card-ref {
  font-size: 11px; color: var(--text-3);
  background: var(--bg-2); border-radius: 4px; padding: 2px 6px; white-space: nowrap;
}
.ot-persp-card-tagline {
  font-size: 13px; color: var(--text-2); line-height: 1.5; margin-bottom: 12px;
}
.ot-persp-card-meta {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.ot-persp-card-quran-ref {
  font-size: 11px; color: #c27c00;
  background: rgba(194,124,0,.08); border: 1px solid rgba(194,124,0,.2);
  border-radius: 4px; padding: 2px 7px;
}

/* Spirituality cards */
.ot-spir-card-hebrew {
  font-size: 22px; color: var(--text-1); margin-bottom: 6px;
  font-family: var(--font-serif); letter-spacing: .02em;
}
.ot-spir-card-parallel {
  font-size: 11px; color: var(--green-1); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px;
}

/* ── Islam Link Detail View ── */
.ot-persp-detail-hero {
  padding: 48px 48px 36px;
}
.ot-persp-detail-hero.torah        { background: linear-gradient(135deg,#1e1408,#3a2808 60%,#2a1e0a 100%); }
.ot-persp-detail-hero.history      { background: linear-gradient(135deg,#081422,#0a2240 60%,#0c1a30 100%); }
.ot-persp-detail-hero.wisdom       { background: linear-gradient(135deg,#081a18,#0e2e2a 60%,#0a2020 100%); }
.ot-persp-detail-hero.major-prophet{ background: linear-gradient(135deg,#180820,#2a1040 60%,#1e0a2a 100%); }
.ot-persp-detail-hero.minor-prophet{ background: linear-gradient(135deg,#100820,#201040 60%,#180a30 100%); }

.ot-persp-detail-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 10px;
}
.ot-persp-detail-names-row {
  display: flex; align-items: center; gap: 14px; margin-bottom: 8px; flex-wrap: wrap;
}
.ot-persp-detail-ot { font-family: var(--font-serif); font-size: 36px; font-weight: 600; color: #fff; }
.ot-persp-detail-sep { font-size: 24px; color: rgba(255,255,255,.3); }
.ot-persp-detail-islamic { font-family: var(--font-serif); font-size: 28px; color: #e8a020; }
.ot-persp-detail-tagline { font-size: 15px; color: rgba(255,255,255,.55); margin-top: 8px; }

.ot-persp-detail-body { padding: 36px 48px; max-width: 860px; }
.ot-persp-detail-overview {
  font-size: 16px; line-height: 1.75; color: var(--text-1);
  margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border);
}

.ot-persp-two-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px;
}
.ot-persp-col-box {
  background: var(--bg-2); border-radius: 10px; padding: 18px 20px;
}
.ot-persp-col-box-label {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 10px;
}
.ot-persp-col-box-label.shared  { color: var(--green-1); }
.ot-persp-col-box-label.differs { color: #c27c00; }
.ot-persp-col-box ul { margin: 0; padding-left: 16px; }
.ot-persp-col-box li {
  font-size: 13px; line-height: 1.6; color: var(--text-2); margin-bottom: 6px;
}

/* ── NT Links list ── */
.ot-nt-links-list { padding: 32px 48px; display: flex; flex-direction: column; gap: 24px; }

.ot-nt-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
}
.ot-nt-card-top { display: flex; align-items: stretch; }
.ot-nt-card-accent {
  width: 5px; flex-shrink: 0;
}
.ot-nt-card-accent.prophecy { background: linear-gradient(180deg,#6a1a8a,#9a30c0); }
.ot-nt-card-accent.type     { background: linear-gradient(180deg,#1a5fa8,#2d7dd2); }

.ot-nt-card-content { padding: 22px 26px; flex: 1; }
.ot-nt-card-header {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px;
}
.ot-nt-card-cat {
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 4px;
  white-space: nowrap; flex-shrink: 0;
}
.ot-nt-card-cat.prophecy { background: rgba(106,26,138,.1); color: #6a1a8a; }
.ot-nt-card-cat.type     { background: rgba(26,95,168,.1); color: #1a5fa8; }
.ot-nt-card-title {
  font-family: var(--font-serif); font-size: 20px; font-weight: 500; color: var(--text-1);
}
.ot-nt-card-refs {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
}
.ot-nt-card-ref-pill {
  font-size: 11px; color: var(--text-3);
  background: var(--bg-2); border-radius: 4px; padding: 2px 7px;
}
.ot-nt-card-verse {
  font-family: var(--font-serif); font-style: italic; font-size: 14px;
  line-height: 1.65; color: var(--text-2);
  padding: 12px 16px; background: var(--bg-2);
  border-left: 3px solid #6a1a8a; border-radius: 0 6px 6px 0; margin-bottom: 14px;
}
.ot-nt-card-verse.type { border-left-color: #1a5fa8; }

.ot-nt-views { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.ot-nt-view-box { padding: 12px 14px; border-radius: 8px; background: var(--bg-2); }
.ot-nt-view-label {
  font-size: 10px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; margin-bottom: 5px;
}
.ot-nt-view-label.christian { color: #8a3a14; }
.ot-nt-view-label.islamic   { color: #c27c00; }
.ot-nt-view-body { font-size: 12px; line-height: 1.55; color: var(--text-2); }

/* ── OT Spirituality Detail ── */
.ot-spir-detail-hero {
  padding: 48px 48px 36px;
  background: linear-gradient(135deg,#0a0e1e,#101a38 60%,#0c1428 100%);
}
.ot-spir-detail-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 10px;
}
.ot-spir-detail-hebrew {
  font-size: 28px; color: rgba(255,255,255,.5);
  font-family: var(--font-serif); margin-bottom: 6px;
}
.ot-spir-detail-name {
  font-family: var(--font-serif); font-size: 38px; font-weight: 600;
  color: #fff; line-height: 1.1; margin-bottom: 10px;
}
.ot-spir-parallel-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: #e8a020;
  background: rgba(232,160,32,.12); border-radius: 6px; padding: 4px 10px;
}

.ot-spir-detail-body { padding: 36px 48px; max-width: 860px; }
.ot-spir-overview {
  font-size: 16px; line-height: 1.75; color: var(--text-1);
  margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border);
}
.ot-spir-section { margin-bottom: 32px; }
.ot-spir-section-title {
  font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 12px;
}
.ot-spir-verse-block {
  background: var(--bg-2); border-left: 3px solid #1a5fa8;
  border-radius: 0 8px 8px 0; padding: 14px 18px; margin-bottom: 12px;
}
.ot-spir-verse-text {
  font-family: var(--font-serif); font-size: 15px; font-style: italic;
  line-height: 1.6; color: var(--text-1); margin-bottom: 6px;
}
.ot-spir-verse-ref { font-size: 11px; font-weight: 600; color: var(--text-3); }
.ot-spir-section-body { font-size: 15px; line-height: 1.72; color: var(--text-2); }

/* ── OT War & Hard Passages ── */
.ot-war-content { padding: 0 48px 48px; }

.ot-war-intro {
  background: var(--bg-2); border-radius: 12px;
  padding: 28px 32px; margin: 32px 0 36px;
}
.ot-war-intro-overview {
  font-size: 15px; line-height: 1.75; color: var(--text-2); margin-bottom: 24px;
}
.ot-war-principles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ot-war-principle {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 16px 18px;
}
.ot-war-principle-title {
  font-size: 14px; font-weight: 600; color: var(--text-1); margin-bottom: 6px;
}
.ot-war-principle-body { font-size: 13px; line-height: 1.6; color: var(--text-2); }

.ot-war-passages { display: flex; flex-direction: column; gap: 24px; }
.ot-war-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.ot-war-card-bar { height: 3px; background: linear-gradient(90deg,#7a1a1a,#c02020); }
.ot-war-card-body { padding: 24px 28px; }
.ot-war-card-headline {
  font-family: var(--font-serif); font-size: 21px;
  font-weight: 500; color: var(--text-1); margin-bottom: 6px;
}
.ot-war-card-ref {
  font-size: 11px; color: var(--text-3);
  background: var(--bg-2); border-radius: 4px; padding: 2px 7px;
  display: inline-block; margin-bottom: 14px;
}
.ot-war-card-verse {
  font-family: var(--font-serif); font-style: italic; font-size: 14px;
  line-height: 1.65; color: var(--text-2); padding: 14px 16px;
  background: var(--bg-2); border-left: 3px solid #7a1a1a;
  border-radius: 0 6px 6px 0; margin-bottom: 16px;
}
.ot-war-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; margin-top: 14px;
}
.ot-war-section-body { font-size: 14px; line-height: 1.65; color: var(--text-2); }
.ot-war-islamic-box {
  background: rgba(194,124,0,.06); border: 1px solid rgba(194,124,0,.2);
  border-radius: 8px; padding: 14px 18px; margin-top: 16px;
}
.ot-war-islamic-label {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #c27c00; margin-bottom: 6px;
}
.ot-war-islamic-body { font-size: 13px; line-height: 1.6; color: var(--text-2); }

@media (max-width: 860px) {
  .ot-persp-hero { padding: 32px 24px 28px; }
  .ot-persp-grid { padding: 20px 24px; grid-template-columns: 1fr; }
  .ot-persp-detail-body, .ot-spir-detail-body { padding: 28px 24px; }
  .ot-nt-links-list, .ot-war-content { padding-left: 24px; padding-right: 24px; }
  .ot-persp-two-cols, .ot-nt-views, .ot-war-principles { grid-template-columns: 1fr; }
  .ot-persp-title { font-size: 30px; }
}

/* ============================================================
   NT TOPICS — Words of Jesus, Parables, Miracles
   ============================================================ */

/* Hero banners */
.nt-topic-hero {
  padding: 52px 48px 44px;
  position: relative;
  overflow: hidden;
}
.nt-topic-hero.jesus-words {
  background: linear-gradient(135deg, #1a2a3a 0%, #2d4a6e 60%, #1e3a5f 100%);
  color: #fff;
}
.nt-topic-hero.parables {
  background: linear-gradient(135deg, #2a1a0a 0%, #6e4a1e 60%, #4a2d0a 100%);
  color: #fff;
}
.nt-topic-hero.miracles {
  background: linear-gradient(135deg, #1a2a1a 0%, #2e5a2e 60%, #1a3a1a 100%);
  color: #fff;
}
.nt-topic-hero-inner { max-width: 760px; position: relative; z-index: 1; }
.nt-topic-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; opacity: .65; margin-bottom: 10px;
}
.nt-topic-title {
  font-family: var(--font-serif); font-size: 40px; font-weight: 400;
  line-height: 1.1; margin: 0 0 14px;
}
.nt-topic-subtitle {
  font-size: 15px; line-height: 1.65; opacity: .8; max-width: 620px;
}

/* Filter pills */
.nt-topic-filter-row {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 20px 48px; border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.nt-topic-pill {
  padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border);
  background: var(--bg-2); color: var(--text-2); font-size: 12px;
  font-weight: 500; cursor: pointer; transition: all .15s;
}
.nt-topic-pill:hover { border-color: var(--text-2); color: var(--text-1); }
.nt-topic-pill.active {
  background: var(--text-1); color: var(--bg); border-color: var(--text-1);
}

/* Detail nav bar */
.nt-topic-detail-nav {
  padding: 16px 48px; border-bottom: 1px solid var(--border);
  background: var(--bg);
}

/* ── Words of Jesus grid ── */
.nt-words-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px; padding: 28px 48px;
}
.nt-word-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px 24px;
  cursor: pointer; transition: all .15s;
}
.nt-word-card:hover { border-color: var(--text-2); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.nt-word-card-eyebrow {
  font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 6px;
}
.nt-word-card-title {
  font-family: var(--font-serif); font-size: 20px; font-weight: 500;
  color: var(--text-1); margin-bottom: 4px;
}
.nt-word-card-subtitle { font-size: 12px; color: var(--text-3); margin-bottom: 12px; }
.nt-word-card-verse {
  font-size: 13px; line-height: 1.55; color: var(--text-2);
  font-style: italic; border-left: 2px solid var(--border);
  padding-left: 12px; margin-bottom: 12px;
}
.nt-word-card-source { font-size: 11px; color: var(--text-3); }
.nt-word-card-islam-badge {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 10px; padding: 4px 10px; border-radius: 20px;
  background: rgba(0,160,100,.08); border: 1px solid rgba(0,160,100,.2);
  font-size: 10px; font-weight: 600; color: #00a064; text-transform: uppercase;
  letter-spacing: .06em;
}

/* Words of Jesus detail */
.nt-word-detail {
  max-width: 760px; margin: 0 auto; padding: 40px 48px 80px;
}
.nt-word-detail-category {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 10px;
}
.nt-word-detail-title {
  font-family: var(--font-serif); font-size: 38px; font-weight: 400;
  color: var(--text-1); margin-bottom: 6px;
}
.nt-word-detail-subtitle { font-size: 14px; color: var(--text-3); margin-bottom: 24px; }
.nt-word-detail-verse-block {
  background: var(--bg-2); border-left: 3px solid #2d6aad;
  border-radius: 0 10px 10px 0; padding: 18px 22px; margin-bottom: 28px;
}
.nt-word-detail-verse {
  font-family: var(--font-serif); font-size: 18px; font-style: italic;
  color: var(--text-1); line-height: 1.55; margin-bottom: 6px;
}
.nt-word-detail-ref { font-size: 12px; color: var(--text-3); }
.nt-word-detail-overview {
  font-size: 15px; line-height: 1.7; color: var(--text-2); margin-bottom: 28px;
}
.nt-word-items { margin-bottom: 28px; }
.nt-word-items-title {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 12px;
}
.nt-word-item {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.nt-word-item:last-child { border-bottom: none; }
.nt-word-item-num {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--text-3); margin-top: 2px;
}
.nt-word-item-text {
  font-family: var(--font-serif); font-size: 16px; font-style: italic;
  color: var(--text-1); margin-bottom: 4px;
}
.nt-word-item-explanation { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.nt-word-islam-box {
  background: rgba(0,160,100,.06); border: 1px solid rgba(0,160,100,.18);
  border-radius: 12px; padding: 22px 24px; margin-bottom: 20px;
}
.nt-word-islam-box-title {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #00a064; margin-bottom: 10px;
}
.nt-word-islam-box-text { font-size: 14px; line-height: 1.65; color: var(--text-2); }
.nt-word-diff-box {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 20px;
}
.nt-word-diff-box-title {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 8px;
}
.nt-word-diff-box-text { font-size: 13px; line-height: 1.6; color: var(--text-2); }

/* ── Parables grid ── */
.nt-parables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px; padding: 28px 48px;
}
.nt-parable-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px 24px;
  cursor: pointer; transition: all .15s;
}
.nt-parable-card:hover { border-color: var(--text-2); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.nt-parable-card-theme {
  display: inline-block; padding: 3px 9px; border-radius: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 10px;
}
.nt-parable-card-theme.repentance { background: rgba(180,80,80,.12); color: #b45050; }
.nt-parable-card-theme.kingdom    { background: rgba(80,80,180,.12); color: #5050b4; }
.nt-parable-card-theme.judgment   { background: rgba(180,120,40,.12); color: #b47828; }
.nt-parable-card-theme.wealth     { background: rgba(100,60,20,.12); color: #6b3e12; }
.nt-parable-card-theme.faith      { background: rgba(40,120,40,.12); color: #287828; }
.nt-parable-card-theme.prayer     { background: rgba(60,60,140,.12); color: #3c3c8c; }
.nt-parable-card-theme.service    { background: rgba(60,120,120,.12); color: #3c7878; }
.nt-parable-card-title {
  font-family: var(--font-serif); font-size: 20px; font-weight: 500;
  color: var(--text-1); margin-bottom: 4px;
}
.nt-parable-card-subtitle { font-size: 12px; color: var(--text-3); margin-bottom: 12px; }
.nt-parable-card-verse {
  font-size: 13px; font-style: italic; color: var(--text-2);
  line-height: 1.55; border-left: 2px solid var(--border);
  padding-left: 12px; margin-bottom: 12px;
}
.nt-parable-card-source { font-size: 11px; color: var(--text-3); }
.nt-parable-characters {
  display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px;
}
.nt-parable-char {
  padding: 2px 8px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border);
  font-size: 10px; color: var(--text-3);
}

/* Parable detail */
.nt-parable-detail {
  max-width: 760px; margin: 0 auto; padding: 40px 48px 80px;
}
.nt-parable-detail-theme {
  display: inline-block; padding: 4px 12px; border-radius: 12px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 14px;
}
.nt-parable-detail-title {
  font-family: var(--font-serif); font-size: 38px; font-weight: 400;
  color: var(--text-1); margin-bottom: 6px;
}
.nt-parable-detail-subtitle { font-size: 14px; color: var(--text-3); margin-bottom: 24px; }
.nt-parable-detail-verse-block {
  background: var(--bg-2); border-left: 3px solid #8b6914;
  border-radius: 0 10px 10px 0; padding: 18px 22px; margin-bottom: 28px;
}
.nt-parable-detail-verse {
  font-family: var(--font-serif); font-size: 18px; font-style: italic;
  color: var(--text-1); line-height: 1.55; margin-bottom: 6px;
}
.nt-parable-detail-ref { font-size: 12px; color: var(--text-3); }
.nt-parable-detail-overview { font-size: 15px; line-height: 1.7; color: var(--text-2); margin-bottom: 20px; }
.nt-parable-detail-meaning { font-size: 15px; line-height: 1.7; color: var(--text-2); margin-bottom: 28px; }
.nt-parable-islam-box {
  background: rgba(0,160,100,.06); border: 1px solid rgba(0,160,100,.18);
  border-radius: 12px; padding: 22px 24px; margin-bottom: 20px;
}
.nt-parable-islam-box-title {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #00a064; margin-bottom: 10px;
}
.nt-parable-islam-box-text { font-size: 14px; line-height: 1.65; color: var(--text-2); }
.nt-parable-surprise-box {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 20px;
}
.nt-parable-surprise-title {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 8px;
}
.nt-parable-surprise-text { font-size: 13px; line-height: 1.6; color: var(--text-2); }

/* ── Miracles grid ── */
.nt-miracles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px; padding: 28px 48px;
}
.nt-miracle-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 22px 24px;
  cursor: pointer; transition: all .15s;
}
.nt-miracle-card:hover { border-color: var(--text-2); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.12); }
.nt-miracle-card-cat {
  display: inline-block; padding: 3px 9px; border-radius: 10px;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 10px;
}
.nt-miracle-card-cat.healing     { background: rgba(40,120,180,.12); color: #2878b4; }
.nt-miracle-card-cat.nature      { background: rgba(30,100,50,.12); color: #1e6432; }
.nt-miracle-card-cat.resurrection{ background: rgba(120,60,120,.12); color: #783c78; }
.nt-miracle-card-cat.provision   { background: rgba(180,140,30,.12); color: #b48c1e; }
.nt-miracle-card-cat.exorcism    { background: rgba(100,40,40,.12); color: #642828; }
.nt-miracle-card-title {
  font-family: var(--font-serif); font-size: 20px; font-weight: 500;
  color: var(--text-1); margin-bottom: 4px;
}
.nt-miracle-card-subtitle { font-size: 12px; color: var(--text-3); margin-bottom: 12px; }
.nt-miracle-card-verse {
  font-size: 13px; font-style: italic; color: var(--text-2);
  line-height: 1.55; border-left: 2px solid var(--border);
  padding-left: 12px; margin-bottom: 12px;
}
.nt-miracle-card-source { font-size: 11px; color: var(--text-3); }
.nt-miracle-quran-badge {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 10px; padding: 4px 10px; border-radius: 20px;
  background: rgba(0,160,100,.08); border: 1px solid rgba(0,160,100,.2);
  font-size: 10px; font-weight: 600; color: #00a064; text-transform: uppercase;
  letter-spacing: .06em;
}

/* Miracle detail */
.nt-miracle-detail {
  max-width: 760px; margin: 0 auto; padding: 40px 48px 80px;
}
.nt-miracle-detail-cat {
  display: inline-block; padding: 4px 12px; border-radius: 12px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 14px;
}
.nt-miracle-detail-title {
  font-family: var(--font-serif); font-size: 38px; font-weight: 400;
  color: var(--text-1); margin-bottom: 6px;
}
.nt-miracle-detail-subtitle { font-size: 14px; color: var(--text-3); margin-bottom: 24px; }
.nt-miracle-detail-verse-block {
  background: var(--bg-2); border-left: 3px solid #2e5a2e;
  border-radius: 0 10px 10px 0; padding: 18px 22px; margin-bottom: 28px;
}
.nt-miracle-detail-verse {
  font-family: var(--font-serif); font-size: 18px; font-style: italic;
  color: var(--text-1); line-height: 1.55; margin-bottom: 6px;
}
.nt-miracle-detail-ref { font-size: 12px; color: var(--text-3); }
.nt-miracle-detail-overview { font-size: 15px; line-height: 1.7; color: var(--text-2); margin-bottom: 20px; }
.nt-miracle-detail-significance { font-size: 15px; line-height: 1.7; color: var(--text-2); margin-bottom: 28px; }
.nt-miracle-gospels {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px;
}
.nt-miracle-gospel-tag {
  padding: 4px 12px; border-radius: 8px;
  background: rgba(46,90,46,.1); border: 1px solid rgba(46,90,46,.2);
  font-size: 11px; font-weight: 600; color: #2e5a2e;
}
.nt-miracle-islam-box {
  background: rgba(0,160,100,.06); border: 1px solid rgba(0,160,100,.18);
  border-radius: 12px; padding: 22px 24px;
}
.nt-miracle-islam-box-title {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #00a064; margin-bottom: 10px;
}
.nt-miracle-islam-box-text { font-size: 14px; line-height: 1.65; color: var(--text-2); }

@media (max-width: 860px) {
  .nt-topic-hero { padding: 32px 24px 28px; }
  .nt-topic-title { font-size: 28px; }
  .nt-topic-filter-row { padding: 16px 24px; }
  .nt-topic-detail-nav { padding: 14px 24px; }
  .nt-words-grid, .nt-parables-grid, .nt-miracles-grid { padding: 20px 24px; grid-template-columns: 1fr; }
  .nt-word-detail, .nt-parable-detail, .nt-miracle-detail { padding: 28px 24px 60px; }
  .nt-word-detail-title, .nt-parable-detail-title, .nt-miracle-detail-title { font-size: 28px; }
}

/* ============================================================
   ORIGIN STORY SECTIONS (Scripture dashboards)
   ============================================================ */

/* ── Origin attribution (compact table style) ── */
.origin-story-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.origin-story-section.ot { background: color-mix(in srgb, var(--bg-2) 96%, #4a6a2a 4%); }
.origin-story-section.nt { background: color-mix(in srgb, var(--bg-2) 96%, #4a3a7a 4%); }

.origin-story-inner {
  max-width: 1000px; margin: 0 auto;
  padding: 24px 48px 28px;
}
.origin-attribution-header {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.origin-attribution-title {
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
}
.origin-attribution-note {
  font-size: 12px; color: var(--text-3);
}

/* Compact row table */
.origin-attribution-table { display: flex; flex-direction: column; }
.origin-attr-row {
  display: grid;
  grid-template-columns: 180px 200px 1fr 90px;
  gap: 0 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}
.origin-attr-row:last-child { border-bottom: none; }
.origin-attr-role {
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text-3);
}
.origin-attr-name {
  font-family: var(--font-serif); font-size: 15px; font-weight: 500;
  color: var(--text-1);
}
.origin-attr-what { font-size: 12px; line-height: 1.5; color: var(--text-2); }
.origin-attr-when {
  font-size: 11px; color: var(--text-3); text-align: right;
  white-space: nowrap;
}

@media (max-width: 860px) {
  .origin-story-inner { padding: 20px 24px 24px; }
  .origin-attr-row { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 2px 12px; padding: 10px 0; }
  .origin-attr-what { grid-column: 1 / -1; margin-top: 2px; }
  .origin-attr-when { text-align: left; }
}

/* ============================================================
   PER-BOOK THEME OVERRIDES
   Set via body[data-book] attribute when switching books
   ============================================================ */

/* ── Old Testament: Olive / Earth ────────────────────────── */
body[data-book="old-testament"] {
  --green-1:     #1e2208;   /* sidebar bg */
  --green-2:     #2e3810;   /* sidebar mid */
  --green-3:     #4A5A18;   /* primary olive */
  --green-4:     #5e7220;   /* hover olive */
  --green-5:     #7a9030;   /* light olive accent */
  --green-light: #edf0d8;   /* pale olive bg */
  --green-pale:  #f5f7e6;   /* very pale olive */
  --green-muted: #b8c46a;   /* muted olive */

  --nav-active-bg:        rgba(140,160,40,0.18);
  --nav-active-text:      #c4cf6a;
  --nav-active-badge-bg:  rgba(140,160,40,0.25);
  --nav-active-dot:       #8aab30;
}

/* ── New Testament: Indigo / Deep Purple ─────────────────── */
body[data-book="new-testament"] {
  --green-1:     #110c2e;   /* sidebar bg */
  --green-2:     #1e1448;   /* sidebar mid */
  --green-3:     #4432a0;   /* primary purple */
  --green-4:     #5545bb;   /* hover purple */
  --green-5:     #7264c8;   /* light purple accent */
  --green-light: #e8e4f5;   /* pale purple bg */
  --green-pale:  #f2f0fa;   /* very pale purple */
  --green-muted: #9b8fe0;   /* muted purple */

  --nav-active-bg:        rgba(100,80,200,0.18);
  --nav-active-text:      #b0a4e8;
  --nav-active-badge-bg:  rgba(100,80,200,0.25);
  --nav-active-dot:       #7264c8;
}

/* ── Book-themed cards: icon and hover accents ────────────── */
/* These already cascade via var(--green-3)/var(--green-light) */

/* ── Bible hero title: use Crimson Pro to match landing ───── */
.bible-hero-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 50px;
}

/* ── Hero stat numbers: match landing page serif style ──────  */
.bible-stat-num {
  font-family: var(--font-serif);
  font-weight: 400;
}
