/* ================================================================
   "Modern Ancient" Palette — Scattered Israelites Bible
   Bootstrap 5 Overrides + Domain-Specific Styles
   ================================================================ */

/* ---- PALETTE TOKENS ---- */
:root {
  --charcoal-900: #1C1917;
  --charcoal-800: #292524;
  --charcoal-700: #44403C;

  --warm-50:  #FAFAF9;
  --warm-100: #F5F5F4;
  --warm-200: #E7E5E4;
  --warm-300: #D6D3D1;

  --text-primary:   #1C1917;
  --text-secondary: #57534E;
  --text-muted:     #6B6560;

  --terracotta:    #C2410C;
  --terracotta-dk: #9A3412;
  --gold:          #B45309;
  --gold-light:    #F59E0B;
  --olive:         #4D7C0F;
  --olive-dark:    #3F6212;

  /* Bootstrap theme color overrides */
  --bs-primary: #C2410C;
  --bs-primary-rgb: 194, 65, 12;
  --bs-success: #4D7C0F;
  --bs-success-rgb: 77, 124, 15;
  --bs-warning: #B45309;
  --bs-warning-rgb: 180, 83, 9;
  --bs-body-font-family: "Inter", system-ui, -apple-system, sans-serif;
  --bs-body-font-size: 1.125rem;
  --bs-body-color: #1C1917;
  --bs-body-bg: #f5f5f5;
  --bs-link-color: #C2410C;
  --bs-link-hover-color: #9A3412;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1.125rem;
  color: var(--text-primary);
  background: var(--warm-50);
  line-height: 1.6;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 { font-family: "Inter", system-ui, -apple-system, sans-serif; font-weight: 700; }

.hebrew {
  font-family: "Noto Sans Hebrew", "Noto Serif Hebrew", "SBL Hebrew", sans-serif;
}

a { color: var(--terracotta); transition: color 0.15s; }
a:hover { color: var(--terracotta-dk); }

/* ---- BOOTSTRAP COMPONENT OVERRIDES ---- */

/* Navbar */
.navbar {
  background: #FFFFFF !important;
  border-bottom: 2px solid var(--warm-200) !important;
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.375rem;
  color: #4A3728 !important;
  letter-spacing: -0.01em;
}
.navbar-brand:hover { color: var(--terracotta) !important; }
.navbar .nav-link {
  color: #5C4033 !important;
  font-size: 1rem;
}
.navbar .nav-link:hover { color: var(--terracotta) !important; }
.navbar-toggler {
  border-color: rgba(92,64,51,0.3);
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2892,64,51,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Secondary nav (study tools) */
.navbar-study {
  background: var(--warm-100) !important;
  border-bottom: 1px solid var(--warm-200) !important;
  padding-top: 0;
  padding-bottom: 0;
  min-height: auto;
}
.navbar-study .nav-link {
  font-size: 0.875rem !important;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}
.navbar-study .nav-link-featured {
  font-weight: 600;
  color: var(--terracotta) !important;
}
.navbar-study .navbar-toggler {
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
}

/* Dropdown */
.navbar .dropdown-menu {
  border: 1px solid var(--warm-200);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 0.5rem 0;
}
.navbar .dropdown-item {
  font-size: 0.9375rem;
  color: #5C4033;
  padding: 0.5rem 1.25rem;
}
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background: var(--warm-100);
  color: var(--terracotta);
}
.navbar .dropdown-divider {
  border-color: var(--warm-200);
}

/* Buttons */
.btn-primary {
  --bs-btn-bg: #C2410C;
  --bs-btn-border-color: #C2410C;
  --bs-btn-hover-bg: #9A3412;
  --bs-btn-hover-border-color: #9A3412;
  --bs-btn-active-bg: #9A3412;
  --bs-btn-active-border-color: #7C2D12;
}
.btn-success {
  --bs-btn-bg: #4D7C0F;
  --bs-btn-border-color: #4D7C0F;
  --bs-btn-hover-bg: #3F6212;
  --bs-btn-hover-border-color: #3F6212;
  --bs-btn-active-bg: #3F6212;
  --bs-btn-active-border-color: #365314;
}
.btn-warning {
  --bs-btn-bg: #B45309;
  --bs-btn-border-color: #B45309;
  --bs-btn-hover-bg: #92400E;
  --bs-btn-hover-border-color: #92400E;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
}
.btn-outline-primary {
  --bs-btn-color: #C2410C;
  --bs-btn-border-color: #C2410C;
  --bs-btn-hover-bg: #C2410C;
  --bs-btn-hover-border-color: #C2410C;
  --bs-btn-active-bg: #9A3412;
  --bs-btn-active-border-color: #9A3412;
}

/* Pagination */
.page-link {
  color: var(--terracotta);
}
.page-link:hover {
  color: var(--terracotta-dk);
}
.page-item.active .page-link {
  background-color: var(--terracotta);
  border-color: var(--terracotta);
}

/* Breadcrumbs */
.breadcrumb { overflow-wrap: break-word; }
.breadcrumb-item a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}
.breadcrumb-item a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}
.breadcrumb-item.active {
  color: var(--text-secondary);
}

/* Cards — custom card-header uppercase styling */
.card {
  border-color: var(--warm-200);
}
.card-header {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background-color: var(--warm-100);
  border-bottom-color: var(--warm-200);
}

/* Form focus states */
.form-control:focus,
.form-select:focus {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 0.2rem rgba(194, 65, 12, 0.15);
}

/* ---- SECTION HEADINGS ---- */
.section-divider {
  margin: 2.5rem 0 0;
  padding: 1.5rem 0 0.5rem;
  border-top: 2px solid var(--warm-200);
}
.section-divider:first-child { margin-top: 0; border-top: none; padding-top: 0; }
.section-divider h2 {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ---- DIVISION HEADING (book list) ---- */
.division-heading {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--olive);
  margin-bottom: 0.75rem;
}
.division-heading span {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--text-muted);
}

/* ---- BOOK LIST ---- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.book-card {
  display: block;
  padding: 0.5rem 0.75rem;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 500;
  min-width: 0;
  color: var(--text-primary);
  background: white;
  border: 1px solid var(--warm-200);
  border-radius: 0.5rem;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.book-card:hover {
  border-color: var(--terracotta);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  color: var(--text-primary);
}

/* ---- CHAPTER GRID (legacy) ---- */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(3rem, 1fr));
  gap: 0.375rem;
}
.chapter-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-primary);
  background: white;
  border: 1px solid var(--warm-200);
  border-radius: 0.375rem;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.chapter-tile:hover {
  border-color: var(--terracotta);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  color: var(--text-primary);
}

/* ---- CHAPTER LIST (rich cards) ---- */
.chapter-list-container { max-width: 960px; margin: 0 auto; padding: 0 1rem; }
.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.chapter-card-rich {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 0.875rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.chapter-card-rich:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-1px);
  color: inherit;
  text-decoration: none;
}
.chapter-card-rich:hover .chapter-card-name { color: var(--terracotta); }
.chapter-card-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.chapter-card-info { flex: 1; min-width: 0; }
.chapter-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.15s;
}
.chapter-card-summary {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- ENGLISH VERSE (quick-read line) ---- */
.verse-english {
  font-size: 1.375rem;
  line-height: 1.8;
  color: var(--text-primary);
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--warm-100);
  border-radius: 0 0.375rem 0.375rem 0;
}

/* ---- VERSE DISPLAY ---- */
.verse-block { margin-bottom: 1.5rem; text-align: right; }
.verse-words {
  direction: rtl;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}
.verse-block-ltr { text-align: left; }
.verse-words-ltr { direction: ltr; }
.word-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.625rem;
  border-radius: 0.375rem;
  cursor: pointer;
  direction: ltr;
  transition: background-color 0.15s;
  text-decoration: none;
  color: inherit;
}
.word-cell:hover { background-color: var(--warm-100); color: inherit; text-decoration: none; }
.word-cell.active { background-color: var(--warm-200); }
.word-surface {
  font-size: 1.75rem;
  line-height: 2.25rem;
  direction: rtl;
  color: var(--text-primary);
}
.word-translit {
  font-size: 0.9750rem;
  line-height: 1.125rem;
  color: #9a3412;
  font-style: italic;
  font-family: monospace;
}
.word-gloss {
  font-size: 0.975rem;
  line-height: 1.375rem;
  color: var(--text-secondary);
}
.word-translation-alt {
  font-size: 0.8125rem;
  line-height: 1.125rem;
  color: var(--text-muted);
  font-style: italic;
}
.word-morph-code {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--text-muted);
  font-family: ui-monospace, "Cascadia Code", "Fira Code", monospace;
}
.verse-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--terracotta);
  background: transparent;
  border-radius: 9999px;
  margin-left: 0.25rem;
  direction: ltr;
  text-decoration: none;
  transition: background-color 0.15s;
}
.verse-number:hover { background-color: var(--warm-100); }

/* ---- WORD STUDY CARD ---- */
.word-study-hero {
  text-align: center;
  padding: 2rem 1.5rem;
  background: white;
  border: 1px solid var(--warm-200);
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
}
.word-study-hero .big-hebrew {
  font-size: 4rem;
  line-height: 1.2;
  color: var(--text-primary);
  direction: rtl;
  margin-bottom: 0.5rem;
}
.word-study-hero .translit {
  font-size: 1.375rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 0.25rem;
}
.word-study-hero .strongs-code {
  font-size: 1.125rem;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  color: var(--terracotta);
  letter-spacing: 0.05em;
}
.word-study-hero .gloss-large {
  font-size: 1.25rem;
  color: var(--text-primary);
}
.word-study-hero .location {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
}

/* KV table inside cards */
.kv-table { width: 100%; font-size: 0.9375rem; border-collapse: collapse; }
.kv-table td { padding: 0.375rem 0; }
.kv-table td:first-child {
  color: var(--text-muted);
  padding-right: 0.75rem;
  white-space: nowrap;
  width: 40%;
}
.kv-table td:last-child { color: var(--text-primary); text-align: right; }
.kv-table tr + tr td { border-top: 1px solid var(--warm-100); }

/* ---- DETAIL TABLE (extends Bootstrap .table) ---- */
.detail-table .col-hebrew {
  font-size: 1.25rem;
  direction: rtl;
  text-align: right;
}
.detail-table .col-hebrew .word-translit {
  display: block;
  text-align: right;
}
.detail-table .col-link {
  color: var(--text-primary);
  text-decoration: none;
}
.detail-table .col-link:hover { color: var(--terracotta-dk); text-decoration: underline; }
.detail-table .col-mono {
  font-family: ui-monospace, "Cascadia Code", "Fira Code", monospace;
  font-size: 0.9125rem;
  color: var(--text-secondary);
}

/* Highlighted row in usage table */
.detail-table tr.table-active td {
  background-color: rgba(180, 83, 9, 0.08);
  font-weight: 600;
}

/* Morphology details toggle */
details.morphology-details > summary { cursor: pointer; list-style: none; }
details.morphology-details > summary::before { content: "\25B6\00a0"; font-size: 0.6em; vertical-align: middle; }
details.morphology-details[open] > summary::before { content: "\25BC\00a0"; }

/* ---- HIGHLIGHTED WORD (in-context) ---- */
.word-cell.highlight {
  background: rgba(180, 83, 9, 0.1);
  outline: 2px solid var(--gold);
  border-radius: 0.375rem;
}
.word-cell.highlight .word-surface { font-weight: 700; }
.word-cell.highlight .word-gloss { font-weight: 600; }

/* ---- SECTION HEADING (inline) ---- */
.section-heading {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* ---- NIGER-CONGO COMPARISON CARD ---- */
.comparison-card {
  border-left: 4px solid #2e7d32;
}
.comparison-card .card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  background: #f0fdf4;
  border-bottom: none;
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  text-transform: none;
  letter-spacing: normal;
}
.comparison-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
}
.comparison-surface {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}
.comparison-nc-surface {
  color: #1b5e20;
}
.comparison-translit {
  font-style: italic;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.comparison-meaning {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.comparison-arrow {
  color: #4caf50;
  font-size: 1.375rem;
  flex-shrink: 0;
}
.comparison-lang {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #4caf50;
  background: #dcfce7;
  padding: 0.1875rem 0.5rem;
  border-radius: 9999px;
  margin-left: auto;
}
.comparison-meta {
  background: var(--warm-50);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  font-size: 1rem;
}
.comparison-meta .badge {
  font-size: 0.875rem;
  padding: 0.375rem 0.625rem;
}
.comparison-roots {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.comparison-note {
  color: var(--text-secondary);
  font-style: italic;
}

/* Niger-Congo comparison entry on list page */
.nc-entry {
  border: 1px solid #8b8b8b;
  border-radius: 0.5rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  background: white;
  font-size: 0.9375rem;
}
.nc-entry-link {
  text-decoration: none;
  color: inherit;
}
.nc-entry-link:hover {
  text-decoration: underline;
  color: inherit;
}
.nc-entry .card {
  border: none;
  margin-bottom: 0;
  margin-top: 0;
}

/* Niger-Congo badge in word study hero */
.hero-nc-preview {
  display: block;
  margin: 0.75rem 0;
  padding: 0.5rem 1rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0.5rem;
  font-size: 0.9375rem;
  color: #2e7d32;
  text-decoration: none;
}
.hero-nc-preview:hover {
  background: #dcfce7;
  color: #1b5e20;
}
.hero-nc-pair { font-weight: 600; }
.hero-nc-lang { font-weight: 400; font-size: 0.8125rem; }

/* Niger-Congo section heading */
.section-divider .nc-heading {
  color: #2e7d32;
}

/* Comparison indicator badge on word cells */
.comparison-badge {
  display: inline-block;
  font-style: italic;
  font-size: 0.95rem;
  color: #2e7d32;
  line-height: 1;
}

/* Spacing utility */
.mb-card { margin-bottom: 1.5rem; margin-top: 1.5rem; }

/* ---- MORPH CODE HOVER (chapter view) ---- */
.morph-hover .word-morph-code {
  opacity: 0;
  transition: opacity 0.2s ease;
}
.morph-hover:hover .word-morph-code,
.morph-hover:focus-within .word-morph-code {
  opacity: 1;
}

/* ---- KV UTILITY CLASSES ---- */
.kv-mono {
  font-family: ui-monospace, "Cascadia Code", "Fira Code", monospace;
  font-size: 0.875rem;
}
.kv-hebrew {
  font-size: 1.25rem;
  direction: rtl;
}
.kv-italic { font-style: italic; }
.kv-small { font-size: 0.875rem; }

/* ---- VERSE SEPARATORS ---- */
.verse-block + .verse-block {
  border-top: 1px solid var(--warm-100);
  padding-top: 1.5rem;
}

/* ---- NIGER-CONGO ADD BUTTON ---- */
.btn-nc-add {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: white;
  background: #2e7d32;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s;
}
.btn-nc-add:hover {
  background: #1b5e20;
  color: white;
}
.nc-add-link {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

/* ---- ARTICLE BODY (Markdown-rendered content) ---- */
.article-body {
  max-width: 48rem;
  line-height: 1.8;
}
.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4 {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.article-body h2 { font-size: 1.5rem; }
.article-body h3 { font-size: 1.25rem; }
.article-body h4 { font-size: 1.125rem; }
.article-body p { margin-bottom: 1.25rem; }
.article-body blockquote {
  border-left: 4px solid var(--terracotta);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--warm-100);
  border-radius: 0 0.375rem 0.375rem 0;
  color: var(--text-secondary);
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body pre {
  background: var(--charcoal-900);
  color: var(--warm-100);
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.article-body code {
  font-family: ui-monospace, "Cascadia Code", "Fira Code", monospace;
  font-size: 0.9em;
}
.article-body :not(pre) > code {
  background: var(--warm-100);
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  color: var(--terracotta-dk);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.article-body th,
.article-body td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--warm-200);
  text-align: left;
}
.article-body th {
  background: var(--warm-100);
  font-weight: 600;
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}
.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.article-body li { margin-bottom: 0.375rem; }
.article-body hr {
  border: none;
  border-top: 2px solid var(--warm-200);
  margin: 2rem 0;
}

/* ---- ACCESSIBILITY ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--charcoal-900);
  color: #FAFAF9;
  font-weight: 600;
  border-radius: 0 0 0.5rem 0.5rem;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 0; }

/* Focus ring for keyboard navigation */
a:focus-visible,
button:focus-visible,
.word-cell:focus-visible,
.book-card:focus-visible,
.chapter-tile:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 2px;
  border-radius: 0.25rem;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

/* ---- FOOTER ---- */
footer {
  background: var(--charcoal-900);
  border-top: 3px solid var(--gold-light);
}
footer .ministry-name {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1.25rem;
  color: #FAFAF9;
  margin-bottom: 0.375rem;
}
footer .tagline {
  font-size: 0.9375rem;
  color: #D6D3D1;
  margin-bottom: 1rem;
}
footer .attribution {
  font-size: 0.8125rem;
  color: #A8A29E;
}
footer .attribution a {
  color: #D6D3D1;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}
footer .attribution a:hover { color: var(--gold-light); }

/* ---- BREADCRUMB BAR (shared) ---- */
.breadcrumb-bar {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  margin-bottom: 1.5rem;
}
.breadcrumb-bar .breadcrumb { margin-bottom: 0; font-size: 0.9375rem; }

/* ---- CONTENT HEADING (shared) ---- */
.content-heading {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--warm-200);
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}
.content-heading:first-child { margin-top: 0; }

/* ---- PALEO-HEBREW ---- */
.paleo-hebrew {
  font-family: "Noto Sans Phoenician", "Segoe UI Historic", sans-serif;
}
.word-paleo {
  font-family: "Noto Sans Phoenician", "Segoe UI Historic", sans-serif;
  font-size: 0.875rem;
  color: #aaa;
}

/* ================================================================
   PAGE-SPECIFIC STYLES
   ================================================================ */

/* ---- HOME PAGE ---- */
.home-container { max-width: 960px; margin: 0 auto; }
.hero-banner { border-radius: 12px; overflow: hidden; margin-bottom: 2.5rem; }
.hero-overlay {
  background: linear-gradient(135deg, rgba(44,30,18,0.88) 0%, rgba(26,26,46,0.82) 100%);
  padding: 3.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero-overlay h1 {
  font-size: 2.75rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  margin-bottom: 0.75rem;
}
.hero-tagline {
  color: rgba(255,255,255,0.85);
  font-size: 1.0625rem;
  margin-bottom: 1.5rem;
  max-width: 520px;
}
.hero-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.hero-perk {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.875rem;
  color: #fff;
}
.hero-lead-magnet-text {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  margin-bottom: 0.75rem;
  max-width: 480px;
}
.hero-subscribe-form {
  margin-bottom: 0.5rem;
  max-width: 480px;
  width: 100%;
}
.hero-subscribe-form .form-control {
  max-width: 300px;
  background: rgba(255,255,255,0.95);
}
@media (max-width: 576px) {
  .hero-subscribe-form .form-control { max-width: none; }
}
.perk-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  padding: 1.5rem;
  text-align: center;
}
.perk-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.perk-badge-free {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  background: #e8f5e9;
  color: #2e7d32;
  margin-bottom: 0.5rem;
}
.perk-badge-paid {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  background: #fff3e0;
  color: #e65100;
  margin-bottom: 0.5rem;
}
.home-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.home-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}
.home-card .card-img-top { height: 160px; object-fit: cover; }
.home-card .card-body { padding: 1.25rem 1.5rem; }
.home-card-title {
  color: var(--terracotta);
  font-weight: 600;
  font-size: 1.0625rem;
  text-decoration: none;
}
.home-card-title:hover { color: var(--terracotta-dk); }
.explore-card {
  display: block;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
}
.explore-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-1px);
  text-decoration: none;
}
.explore-card h3 {
  color: var(--terracotta);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.explore-card p {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-bottom: 0;
}

/* ---- LEAD MAGNET ---- */
.lead-magnet-card {
  background: var(--charcoal-900);
  color: #fff;
  border-radius: 12px;
  padding: 2rem 2.5rem;
  border-left: 4px solid var(--gold-light);
}
.lead-magnet-card h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}
.lead-magnet-card p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.25rem;
}
.lead-magnet-form .form-control {
  max-width: 320px;
}
@media (max-width: 576px) {
  .lead-magnet-card { padding: 1.5rem 1.25rem; }
  .lead-magnet-form .form-control { max-width: none; }
}

/* ---- WORD PAIR SHOWCASE ---- */
.word-pair-showcase {
  margin-bottom: 1.25rem;
}
.word-pair-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  max-width: 320px;
  margin: 0 auto;
}
.word-pair-card {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 10px;
  padding: 0.875rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.125rem;
}
.wp-hebrew {
  font-family: 'Noto Sans Hebrew', 'SBL Hebrew', serif;
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.wp-translit {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em;
}
.wp-divider {
  display: block;
  width: 20px;
  height: 2px;
  background: #F59E0B;
  border-radius: 1px;
  margin: 0.3rem 0;
}
.wp-bantu {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #FCD34D;
  line-height: 1.2;
}
.wp-lang {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.word-pair-teaser {
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  margin-top: 0.625rem;
  margin-bottom: 0;
  font-style: italic;
}

/* ---- EMAIL CAPTURE POPUP ---- */
.email-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.email-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}
.email-popup {
  position: relative;
  background: var(--charcoal-900);
  color: #fff;
  border-radius: 16px;
  padding: 2.5rem 2.5rem 2rem;
  max-width: 520px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.email-popup-overlay.active .email-popup {
  transform: translateY(0);
}
.email-popup-accent {
  width: 60px;
  height: 4px;
  background: var(--gold-light);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
}
.email-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.email-popup-close:hover { color: #fff; }
.email-popup-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.625rem;
}
.email-popup-text {
  color: rgba(255,255,255,0.8);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
}
.email-popup-form {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  align-items: center;
}
.email-popup-form .form-control {
  max-width: 320px;
  width: 100%;
  background: rgba(255,255,255,0.95);
  text-align: center;
}
.email-popup-form .btn {
  width: 100%;
  max-width: 320px;
}
.email-popup-privacy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.75rem;
  margin-bottom: 0;
}
@media (max-width: 576px) {
  .email-popup { padding: 2rem 1.5rem 1.5rem; }
}

/* ---- VIDEO THUMBNAIL CARD (homepage grid) ---- */
.video-thumb-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}
.video-thumb-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
.video-thumb-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}
.video-thumb-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--terracotta);
  padding: 0.875rem 1.25rem;
  margin: 0;
}

/* ---- SECTION PAGE (Learn, Hebrew, Shop …) ---- */
.section-container { max-width: 960px; margin: 0 auto; padding: 0 1rem; }
.section-hero-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  margin-bottom: 1.5rem;
}
.section-title { font-size: 2rem; font-weight: 700; color: var(--text-primary); }
.section-lead { font-size: 1.0625rem; color: var(--text-secondary); line-height: 1.7; }
.section-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }
.meta-pill {
  background: #e0e0e0;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.series-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.series-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  color: inherit;
  text-decoration: none;
}
.series-card .card-body { flex: 1; padding: 1.25rem 1.5rem; }
.series-card-title {
  color: var(--terracotta);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.series-card-desc { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5; }
.series-card-footer {
  border-top: 1px solid #f0f0f0;
  padding: 0.625rem 1.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ---- SERIES PAGE ---- */
.series-container { max-width: 800px; margin: 0 auto; }
.series-article-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  margin-bottom: 1rem;
}
.series-article-card .card-body { padding: 1.25rem 1.5rem; }
.article-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 0.8125rem;
  font-weight: 700;
  flex-shrink: 0;
}
.article-title-link {
  color: var(--terracotta);
  font-weight: 600;
  font-size: 1.125rem;
  text-decoration: none;
}
.article-title-link:hover { color: var(--olive); }
.article-subtitle { font-size: 0.875rem; color: var(--text-muted); }
.article-summary { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.6; }
.article-meta-row { font-size: 0.8125rem; color: var(--text-muted); }

/* ---- VIDEO EMBED (article page) ---- */
.video-embed {
  position: relative;
  padding-bottom: 56.25%;  /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-download {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

/* ---- ARTICLE PAGE ---- */
.article-container { max-width: 800px; margin: 0 auto; }
.article-container .card {
  background: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  overflow: hidden;
}
.article-container .article-body {
  font-size: 1rem;
  color: #333;
  padding: 2rem 2.5rem;
  max-width: none;
}
.article-container .article-body h2 { font-size: 1.375rem; font-weight: 600; margin-top: 1.75rem; }
.article-container .article-body h3 { font-size: 1.125rem; font-weight: 600; margin-top: 1.5rem; }
.article-container .article-body blockquote {
  border-left-color: #4caf50;
  background: #f9fbe7;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.series-nav {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e8e8e8;
}
.series-nav a { font-weight: 500; font-size: 0.9375rem; }
.series-nav small {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ---- BOOK LIST (rich cards) ---- */
.bible-container { max-width: 960px; margin: 0 auto; }
.book-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.book-card-rich {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 0.875rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}
.book-card-rich:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transform: translateY(-1px);
  color: inherit;
  text-decoration: none;
}
.book-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.book-info { flex: 1; min-width: 0; }
.book-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.15s;
}
.book-card-rich:hover .book-name { color: var(--terracotta); }
.book-summary {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-chapters {
  font-size: 0.8125rem;
  color: #aaa;
  margin-top: 0.25rem;
}
.footer-links {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.footer-links a { font-size: 0.9375rem; }

/* ---- CHAPTER VIEW ---- */
.chapter-container { max-width: 960px; margin: 0 auto; padding: 0 1rem; }
.chapter-container h1 { font-size: 32px; font-weight: 700; color: #1a1a2e; line-height: 1.3; }
.chapter-subtitle { font-size: 1rem; color: #888; margin-bottom: 0; }
.chapter-container .content-heading .morph-link {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  font-size: 0.875rem;
  color: #0d6efd;
}
.chapter-container .btn-outline-primary { border-radius: 8px; font-size: 0.9375rem; }
.verse-card {
  background: #fff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}
.verse-card .verse-block { margin-bottom: 0; }
.verse-card .verse-number { font-size: 1rem; }
.verse-card .verse-english {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  border-left: none;
  background: none;
  padding: 0.375rem;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 0;
}
.verse-card .word-cell.morph-hover:hover { background: #f8f9fa; border-radius: 8px; }
.verse-card + .verse-card .verse-block { border-top: none; padding-top: 0; }

/* ---- VERSE VIEW (single-verse study) ---- */
.verse-container { max-width: 800px; margin: 0 auto; }
.verse-container h1 { font-size: 32px; font-weight: 700; color: #1a1a2e; line-height: 1.3; }
.verse-container .btn-outline-primary { border-radius: 8px; font-size: 1rem; }
.verse-container .content-heading {
  color: #1a1a2e;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  margin-top: 2rem;
}
.verse-english-block {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.7;
  color: #333;
  border-left: 4px solid var(--terracotta, #C2410C);
}
.verse-english-block .verse-ref {
  font-weight: 600;
  color: #1a1a2e;
  margin-right: 0.25rem;
}
.verse-container .card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.verse-container .card-body { padding: 1.25rem 1.5rem; }
.verse-container .word-cell.morph-hover:hover {
  background: #f8f9fa;
  border-radius: 8px;
}
.verse-container .table { margin-bottom: 0; }
.verse-container .table-light { --bs-table-bg: #fff; }
.verse-container .table th {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #888;
  border-bottom-width: 1px;
}
.verse-container .table thead th { border-bottom: 2px solid #e8e8e8; }
.verse-container .table td {
  font-size: 0.9375rem;
  vertical-align: middle;
  border-color: #f0f0f0;
}
.verse-container .table-hover tbody tr:hover { background-color: #f8f7f5; }

/* Niger-Congo comparison hint (word cells & tables) */
.word-nc-hint {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: #2e7d32;
  margin-top: 2px;
}
.word-nc-hint .nc-hint-word { font-weight: 600; }
.word-nc-hint .nc-hint-lang { font-weight: 400; color: #6a9e6e; }
.nc-hint-inline {
  font-size: 0.8125rem;
  color: #2e7d32;
  display: block;
  margin-top: 2px;
}
.nc-hint-inline .nc-hint-word { font-weight: 600; }
.nc-hint-inline .nc-hint-lang { font-weight: 400; color: #6a9e6e; }

/* ---- WORD VIEW (scoped overrides) ---- */
.word-container { max-width: 800px; margin: 0 auto; }
.word-container .card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.word-container .card-header {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 12px 12px 0 0;
  font-weight: 600;
  font-size: 1rem;
  color: #1a1a2e;
  padding: 0.875rem 1.5rem;
}
.word-container .card-header code {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8125rem;
}
.word-container .card-body { padding: 1.25rem 1.5rem; }
.word-container .card-footer {
  background: #fff;
  border-top: 1px solid #f0f0f0;
  border-radius: 0 0 12px 12px;
  padding: 0.875rem 1.5rem;
}
.word-container .table { margin-bottom: 0; }
.word-container .table-light { --bs-table-bg: #fff; }
.word-container .table th {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #888;
  border-bottom-width: 1px;
}
.word-container .table thead th {
  border-bottom: 2px solid #e8e8e8;
}
.word-container .table td {
  font-size: 0.9375rem;
  vertical-align: middle;
  border-color: #f0f0f0;
}
.word-container .table-hover tbody tr:hover { background-color: #f8f7f5; }
.word-container .word-study-hero {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  padding: 2rem 2.5rem;
  margin-bottom: 1.5rem;
}
.word-container .content-heading {
  color: #1a1a2e;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  margin-top: 2rem;
}
.word-container .content-heading code {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8125rem;
  text-transform: none;
  letter-spacing: normal;
}
.word-container .btn-outline-primary { border-radius: 8px; font-size: 1rem; }

/* Paleo-Hebrew hero display */
.big-paleo {
  font-family: 'Noto Sans Phoenician', sans-serif;
  font-size: 2rem;
  color: #888;
  margin-bottom: 0.25rem;
  letter-spacing: 0.1em;
}

/* Niger-Congo intro (word view) */
.nc-intro { font-size: 1.0625rem; margin-bottom: 0.75rem; }
.nc-intro .hebrew { font-size: 1.25rem; font-weight: 600; }
.nc-intro .nc-translit { font-style: italic; color: #888; }
.nc-intro .nc-gloss { color: #555; }
.nc-view-all { font-size: 0.9375rem; margin-bottom: 0.75rem; }

/* ---- COMPARISON PAGE ---- */
.comparison-container { max-width: 960px; margin: 0 auto; padding: 0; }
.stat-badge {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 9999px;
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
  color: #555;
}
.entry-header {
  background: #f0fdf4;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.375rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.entry-number {
  font-size: 1rem;
  font-weight: 700;
  color: #2e7d32;
  min-width: 1.5rem;
}
.entry-header .nc-entry-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}
.entry-header .nc-entry-link:hover { opacity: 0.8; }
.entry-header .hebrew { font-size: 1.5rem; font-weight: 700; }
.entry-translit {
  font-size: 1.125rem;
  font-style: italic;
  color: #555;
}
.entry-arrow {
  font-size: 0.875rem;
  color: #888;
}
.entry-gloss {
  font-size: 0.9375rem;
  color: #888;
  margin-bottom: 0.75rem;
  padding-left: 0.25rem;
}
.comparison-container .card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
}
.comparison-container .nc-entry {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 1.75rem;
}
.comparison-container .table th {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #888;
  border-bottom-width: 1px;
}
.comparison-container .table thead th {
  border-bottom: 2px solid #e8e8e8;
}
.comparison-container .table td {
  font-size: 0.9375rem;
  vertical-align: middle;
  border-color: #f0f0f0;
}
.comparison-container .table-hover tbody tr:hover { background-color: #f8f7f5; }
.comparison-container .table-light { --bs-table-bg: #fff; }
.comparison-container .comparison-nc-surface {
  font-weight: 600;
  color: var(--terracotta);
}
.languages-footer {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  padding: 1rem 1.5rem;
  margin-top: 1rem;
}
.languages-footer p { margin-bottom: 0; font-size: 0.9375rem; color: #888; }
.languages-footer a { color: #555; }
.languages-footer a:hover { color: var(--text-primary); }

/* ---- RESPONSIVE ---- */

/* Tablets and large phones */
@media (max-width: 768px) {
  .navbar-brand { font-size: 1.125rem; }
  .verse-english { font-size: 1.125rem; padding: 0.75rem 1rem; }
  .word-study-hero .big-hebrew { font-size: 3rem; }
  .comparison-card .card-header { padding: 1rem; gap: 0.75rem; }
  .comparison-surface { font-size: 1.25rem; }
  .comparison-meta { padding: 0.5rem 1rem; }
  .hero-overlay { padding: 2.5rem 1.5rem; }
  .hero-overlay h1 { font-size: 2rem; }
  .book-thumb { width: 60px; height: 60px; }
  .chapter-card-thumb { width: 48px; height: 48px; }
  .section-hero-img { height: 180px; }
  .article-container .article-body { padding: 1.25rem 1rem; }
  .entry-header { padding: 0.5rem 0.75rem; }
}

/* Phones */
@media (max-width: 576px) {
  body { font-size: 1rem; }
  .book-grid { grid-template-columns: repeat(3, 1fr); }
  .chapter-grid { grid-template-columns: repeat(5, 1fr); }
  .verse-english { font-size: 1rem; padding: 0.625rem 0.75rem; }
  .word-study-hero { padding: 1.25rem 1rem; }
  .word-study-hero .big-hebrew { font-size: 2.5rem; }
  .word-study-hero .translit { font-size: 1.125rem; }
  .word-study-hero .gloss-large { font-size: 1.03125rem; }
  .kv-table td:first-child { width: 35%; }
  footer .ministry-name { font-size: 1.0625rem; }
  footer .tagline { font-size: 0.8125rem; }
}

/* ---- AUTH PAGES ---- */
.signup-benefits { padding: 0.5rem 0; }
.signup-benefits h5 { font-size: 1.125rem; margin-bottom: 1.25rem; color: var(--charcoal-800); }
.benefit-item {
  display: flex;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}
.benefit-item p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0.125rem 0 0;
  line-height: 1.5;
}
.benefit-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}
.card .form-control, .card .form-select { background-color: #fff; }
.auth-footer-card {
  text-align: center;
  margin-top: 1.25rem;
  padding: 1.25rem;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.auth-footer-card p {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

/* ---- MEMBERSHIP BADGES ---- */
.badge-gold { background: #B45309; color: #fff; padding: 0.25em 0.6em; border-radius: 0.25rem; font-size: 0.75rem; }
.badge-free { background: #e8f5e9; color: #2e7d32; padding: 0.25em 0.6em; border-radius: 0.25rem; font-size: 0.75rem; }

/* Small phones */
@media (max-width: 400px) {
  .navbar-brand { font-size: 1rem; }
  .chapter-grid { grid-template-columns: repeat(4, 1fr); }
  .word-surface { font-size: 1.5rem; line-height: 2rem; }
  .word-cell { padding: 0.375rem 0.5rem; }
  .kv-table td:first-child { width: 30%; }
}
