@font-face {
  font-family: "Gilroy";
  src: url("/assets/fonts/Gilroy-ExtraBold.otf");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gilroy";
  src: url("/assets/fonts/Gilroy-ExtraBold.otf");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Gilroy";
  src: url("/assets/fonts/Gilroy-Light.otf");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Christian BSL 2026 Multi-Architecture Design System
   Switchable via html[data-design="classic" | "swiss" | "studio" | "cinema"]
   ========================================================================== */

:root {
  --brand-purple: #59289E;
  --brand-secondary: #A890D6;
  --font-display: 'Gilroy', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  --brand-purple-dark: #370B66;
  --brand-purple-light: #7E3AF2;
  --brand-purple-tint: #F4EFFA;
  --bg-page: #F6F5F8;
  --bg-surface: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-subtle: #EFECE6;
  --text-primary: #16141C;
  --text-secondary: #4A4556;
  --text-muted: #716A7E;
  --border-color: #E2DFEA;
  --mark-bg: #FEF08A;
  --mark-text: #16141C;
  --font-sans: -apple-system, BlinkMacSystemFont, "Inter", "Plus Jakarta Sans", "Segoe UI", Roboto, sans-serif;
  --font-serif: "Charter", "Iowan Old Style", "Newsreader", "Palatino Linotype", Georgia, serif;
  --font-mono: "SFMono-Regular", ui-monospace, "JetBrains Mono", Menlo, monospace;
  --shadow-sm: 0 1px 2px rgba(22, 20, 28, 0.04), 0 4px 12px rgba(22, 20, 28, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(22, 20, 28, 0.06), 0 12px 24px -4px rgba(22, 20, 28, 0.08);
  --shadow-lg: 0 12px 32px -4px rgba(22, 20, 28, 0.14), 0 4px 12px -2px rgba(22, 20, 28, 0.06);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
}

html[data-theme="dark"] {
  --brand-purple: #7C3AED;
  --brand-purple-dark: #5B21B6;
  --brand-purple-light: #C4B5FD;
  --brand-purple-tint: rgba(124, 58, 237, 0.16);
  --bg-page: #0E0D12;
  --bg-surface: #17151E;
  --bg-elevated: #201D29;
  --bg-subtle: #262331;
  --text-primary: #F4F2F8;
  --text-secondary: #C4BFD0;
  --text-muted: #8E879E;
  --border-color: #2B2738;
  --mark-bg: #F59E0B;
  --mark-text: #0E0D12;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.75);
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.container {
  width: 100%;
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hidden {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-purple);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  font-weight: 600;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ==========================================================================
   SHARED BASE COMPONENTS
   ========================================================================== */

.site-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--brand-purple);
}
html[data-theme="dark"] .brand-link {
  color: var(--brand-purple-light);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.02;
}
.brand-line-1 {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand-line-2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}
.nav-btn:hover, .nav-btn.active {
  background-color: var(--brand-purple-tint);
  color: var(--brand-purple);
}
html[data-theme="dark"] .nav-btn:hover,
html[data-theme="dark"] .nav-btn.active {
  color: var(--brand-purple-light);
}

.nav-donate {
  background-color: var(--brand-purple);
  color: #FFFFFF !important;
  border-radius: var(--radius-sm);
  padding: 0.48rem 1rem;
  margin-left: 0.25rem;
}
.nav-donate:hover {
  background-color: var(--brand-purple-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.icon-btn:hover {
  background: var(--brand-purple-tint);
  color: var(--brand-purple);
  border-color: var(--brand-purple);
}
.mobile-only {
  display: none;
}

/* Search Bar */
.search-hero {
  background-color: var(--brand-purple);
  padding: 0.95rem 0;
  position: relative;
  z-index: 150;
}

.search-container {
  position: relative;
  max-width: 780px;
}

.search-box-wrap {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 0.3rem 0.4rem 0.3rem 1rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-box-wrap:focus-within {
  border-color: var(--brand-purple-light);
  box-shadow: 0 0 0 3px rgba(126, 58, 242, 0.2);
}

.search-icon {
  display: inline-flex;
  color: var(--text-muted);
  margin-right: 0.65rem;
}

.search-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.98rem;
  font-family: inherit;
  padding: 0.5rem 0.25rem;
  outline: none;
  min-width: 0;
}

.search-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.hero-surprise-btn {
  background-color: var(--brand-purple-tint);
  color: var(--brand-purple);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  transition: all 0.15s ease;
}
html[data-theme="dark"] .hero-surprise-btn {
  color: var(--brand-purple-light);
}
.hero-surprise-btn:hover {
  background-color: var(--brand-purple);
  color: #FFFFFF;
}

/* Search Autocomplete Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 1.5rem;
  right: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 440px;
  overflow-y: auto;
  z-index: 300;
}

.search-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 0.8rem 1.15rem;
  cursor: pointer;
  color: var(--text-primary);
  transition: background-color 0.12s ease;
}
.search-item:hover, .search-item:focus {
  background-color: var(--brand-purple-tint);
  outline: none;
}

.search-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.search-item-title {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text-primary);
}
.search-item-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  background: var(--brand-purple-tint);
  color: var(--brand-purple);
}
html[data-theme="dark"] .search-item-badge {
  color: var(--brand-purple-light);
}
.search-item-badge.pending {
  background: #FEF3C7;
  color: #92400E;
}
.search-item-snippet {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-more-btn {
  display: block;
  width: 100%;
  padding: 0.8rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brand-purple);
  background: var(--bg-surface);
  border: none;
  cursor: pointer;
}
html[data-theme="dark"] .search-more-btn {
  color: var(--brand-purple-light);
}
.search-more-btn:hover {
  background-color: var(--brand-purple-tint);
}

/* View Header & A-Z Bar */
.view-header {
  padding: 2.25rem 0 1.5rem;
}
.view-title {
  color: var(--text-primary);
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 0.4rem;
}
.view-subtitle {
  color: var(--text-secondary);
  font-size: 1.02rem;
  margin: 0;
}

.az-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.5rem 0 1.75rem;
}
.az-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.82rem;
  min-width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.12s ease;
}
.az-btn:hover, .az-btn.active {
  background: var(--brand-purple);
  color: #FFFFFF;
  border-color: var(--brand-purple);
}

/* Base 3-Column Grid & Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.sign-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.sign-card-title {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.sign-card-title-btn {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font: inherit;
  color: var(--text-primary);
  cursor: pointer;
  transition: color 0.15s ease;
}
.sign-card-title-btn:hover {
  color: var(--brand-purple);
}
html[data-theme="dark"] .sign-card-title-btn:hover {
  color: var(--brand-purple-light);
}

.version-label {
  margin: 0.25rem 0 0.15rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* Video Player & Recessed Segmented Speed Controls */
.video-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #121017;
  border-radius: var(--radius-sm);
  display: block;
}
.video-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  background: var(--bg-page);
  padding: 0.28rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
}
.speed-group {
  display: inline-flex;
  align-items: center;
  background: var(--border-color);
  padding: 2px;
  border-radius: 5px;
  gap: 2px;
}
.speed-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ctrl-pill {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 0.18rem 0.48rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.12s ease;
}
.ctrl-pill.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.ctrl-pill:hover:not(.active) {
  color: var(--text-primary);
}

.sign-def {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.62;
  margin: 0;
}

/* Biblical Reference Tags */
.bible-refs-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.2rem;
}
.bible-refs-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-right: 0.2rem;
}
.bible-ref-pill {
  background: var(--bg-page);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: 5px;
  padding: 0.18rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: all 0.14s ease;
}
.bible-ref-pill:hover, .bible-ref-pill:focus {
  background: var(--brand-purple);
  color: #FFFFFF;
  border-color: var(--brand-purple);
  outline: none;
}

.card-meta-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 0.7rem;
  margin: 0;
}
.inline-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--brand-purple);
  text-decoration: underline;
  text-underline-offset: 2px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
html[data-theme="dark"] .inline-link {
  color: var(--brand-purple-light);
}

.more-explore-box {
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  margin-top: auto;
}
.more-explore-title {
  margin: 0 0 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.more-explore-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.2rem;
}

/* Detail Layout & Sidebar */
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(280px, 1fr);
  gap: 2rem;
  align-items: start;
  margin-bottom: 3.5rem;
}
.detail-main, .support-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.support-sidebar {
  text-align: left;
}
.donate-pill-btn {
  display: block;
  width: 100%;
  background: var(--brand-purple);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 650;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  margin: 0.65rem 0;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  text-align: center;
  transition: background-color 0.15s ease;
}
.donate-pill-btn:hover {
  background: var(--brand-purple-dark);
}
.donate-pill-sub {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  opacity: 0.88;
}

/* Categories Cloud */
.categories-cloud {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
  margin: 1.25rem 0 3rem;
}
.category-oval-btn {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.96rem;
  font-weight: 650;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  transition: all 0.15s ease;
}
.category-oval-btn:hover {
  border-color: var(--brand-purple);
  background: var(--brand-purple-tint);
  color: var(--brand-purple);
  transform: translateY(-1px);
}
html[data-theme="dark"] .category-oval-btn:hover {
  color: var(--brand-purple-light);
}
.category-count {
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  background: var(--bg-page);
  color: var(--text-muted);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-color);
}

/* Tabs */
.tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}
.tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.tab-btn.active, .tab-btn:hover {
  background: var(--brand-purple);
  color: #FFFFFF;
  border-color: var(--brand-purple);
}

/* Bible Verse Popover */
.verse-tooltip {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: min(430px, calc(100vw - 2rem));
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--brand-purple);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-lg);
  z-index: 500;
}
.verse-tooltip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.verse-tooltip-ref {
  font-size: 1rem;
  font-weight: 750;
  color: var(--text-primary);
}
.verse-tooltip-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--brand-purple-tint);
  color: var(--brand-purple);
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
}
html[data-theme="dark"] .verse-tooltip-badge {
  color: var(--brand-purple-light);
}
.verse-tooltip-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  padding: 0.2rem;
}
.verse-tooltip-body {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-primary);
  max-height: 220px;
  overflow-y: auto;
}
.verse-tooltip-body mark {
  background-color: var(--mark-bg);
  color: var(--mark-text);
  font-weight: 700;
  padding: 0.05rem 0.25rem;
  border-radius: 3px;
}

.translation-note-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-family: var(--font-sans);
  font-weight: 600;
  background: var(--brand-purple-tint);
  color: var(--brand-purple);
  padding: 0.05rem 0.4rem;
  border-radius: 4px;
  margin-left: 0.25rem;
  border: 1px solid var(--border-color);
}
html[data-theme="dark"] .translation-note-tag {
  color: var(--brand-purple-light);
}

.verse-tooltip-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-top: 1px solid var(--border-color);
  padding-top: 0.65rem;
}
.verse-context-btn {
  background: var(--brand-purple);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.9rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.verse-context-btn:hover {
  background: var(--brand-purple-dark);
}
.verse-tooltip-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-align: center;
}

/* Passage Reader */
.passage-reader-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  max-width: 820px;
  margin: 0 auto 3rem;
  box-shadow: var(--shadow-sm);
}
.passage-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}
.passage-verse-row {
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.3rem;
  line-height: 1.75;
  font-size: 1.04rem;
}
.passage-verse-row.highlighted-verse {
  background: var(--brand-purple-tint);
  border-left: 3px solid var(--brand-purple);
}
.passage-verse-num {
  font-size: 0.74rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--brand-purple);
  vertical-align: super;
  margin-right: 0.4rem;
}
html[data-theme="dark"] .passage-verse-num {
  color: var(--brand-purple-light);
}

/* Surprise Banner & Footer + Design Switcher Pipe Bar */
.surprise-banner {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 2.5rem 0;
  text-align: center;
}
.surprise-cta-btn {
  background: var(--brand-purple);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 650;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.15s ease;
}
.surprise-cta-btn:hover {
  background: var(--brand-purple-dark);
  transform: translateY(-1px);
}
.surprise-subtext {
  color: var(--text-muted);
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
}

.site-footer {
  background: var(--bg-page);
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0 2rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.design-switcher-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.1rem;
  margin: 0 auto 1.15rem;
  max-width: fit-content;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}
.design-switcher-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-right: 0.25rem;
}
.design-switch-btn {
  background: transparent;
  border: none;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.14s ease;
}
.design-switch-btn:hover {
  color: var(--brand-purple);
}
.design-switch-btn.active {
  background: var(--brand-purple);
  color: #FFFFFF;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}
.footer-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-secondary);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.footer-link:hover {
  color: var(--brand-purple);
  text-decoration: underline;
}

/* ==========================================================================
   DESIGN 0: CLASSIC REPLICA (html[data-design="classic"])
   Faithful to the original WordPress purple-pill aesthetic
   ========================================================================== */
html[data-design="classic"] .view-header {
  text-align: center;
}
html[data-design="classic"] .view-title,
html[data-design="classic"] .sign-card-title-btn,
html[data-design="classic"] .more-explore-title {
  color: var(--brand-purple);
}
html[data-design="classic"] .search-box-wrap,
html[data-design="classic"] .donate-pill-btn,
html[data-design="classic"] .surprise-cta-btn,
html[data-design="classic"] .bible-ref-pill,
html[data-design="classic"] .nav-donate {
  border-radius: var(--radius-pill);
}
html[data-design="classic"] .categories-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
html[data-design="classic"] .category-oval-btn {
  background: var(--brand-purple);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  padding: 0.9rem 1.6rem;
}

/* ==========================================================================
   DESIGN 1: SWISS EDITORIAL (html[data-design="swiss"])
   Oxford Dictionary / Stripe Press / Architectural Hairline Grid & Serif Body
   ========================================================================== */
html[data-design="swiss"]:not([data-theme="dark"]) {
  --bg-page: #FAF8F5;
  --bg-surface: #FFFFFF;
  --border-color: #DCD8D0;
  --brand-purple: #3D1073;
  --brand-purple-tint: #F1ECF8;
}
html[data-design="swiss"] .search-hero {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  padding: 1.1rem 0;
}
html[data-design="swiss"] .search-box-wrap {
  background: var(--bg-page);
  box-shadow: none;
  border: 1px solid var(--border-color);
  border-radius: 4px;
}
html[data-design="swiss"] .view-header {
  text-align: left;
  border-bottom: 2px solid var(--text-primary);
  padding: 2rem 0 1rem;
  margin-bottom: 1.75rem;
}
html[data-design="swiss"] .cards-grid {
  gap: 0;
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
}
html[data-design="swiss"] .sign-card {
  border: none;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-radius: 0;
  box-shadow: none;
  padding: 1.65rem;
}
html[data-design="swiss"] .sign-card:hover {
  background-color: rgba(61, 16, 115, 0.015);
}
html[data-design="swiss"] .video-player {
  border-radius: 2px;
}
html[data-design="swiss"] .sign-def,
html[data-design="swiss"] .verse-tooltip-body,
html[data-design="swiss"] .passage-verse-row {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.68;
}
html[data-design="swiss"] .bible-ref-pill {
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

/* ==========================================================================
   DESIGN 2: TACTILE STUDIO (html[data-design="studio"])
   Linear / Apple HIG: Frosted Glass, Squircle Cards, Edge-Bleed Video, Optical Shadows
   ========================================================================== */
html[data-design="studio"]:not([data-theme="dark"]) {
  --bg-page: #F3F4F7;
  --bg-surface: #FFFFFF;
  --border-color: rgba(20, 20, 30, 0.08);
}
html[data-design="studio"] .site-header {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
html[data-design="studio"][data-theme="dark"] .site-header {
  background: rgba(23, 21, 30, 0.82);
}
html[data-design="studio"] .search-hero {
  background: transparent;
  padding: 1.25rem 0 0.25rem;
}
html[data-design="studio"] .search-box-wrap {
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(15, 15, 25, 0.05), 0 10px 28px rgba(15, 15, 25, 0.06);
  border: 1px solid var(--border-color);
}
html[data-design="studio"] .view-header {
  text-align: left;
  padding: 1.5rem 0 1.25rem;
}
html[data-design="studio"] .sign-card {
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(15, 15, 25, 0.04), 0 8px 20px -4px rgba(15, 15, 25, 0.06);
  border: 1px solid var(--border-color);
}
html[data-design="studio"] .sign-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 15, 25, 0.07), 0 16px 32px -6px rgba(15, 15, 25, 0.1);
}
html[data-design="studio"] .video-player {
  border-radius: 10px;
}
html[data-design="studio"] .more-explore-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
html[data-design="studio"] .more-explore-list li .inline-link {
  display: inline-block;
  text-decoration: none;
  background: var(--bg-page);
  border: 1px solid var(--border-color);
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all 0.12s ease;
}
html[data-design="studio"] .more-explore-list li .inline-link:hover {
  border-color: var(--brand-purple);
  color: var(--brand-purple);
  background: var(--brand-purple-tint);
}

/* ==========================================================================
   DESIGN 3: CINEMA FOCUS (html[data-design="cinema"])
   Deaf-First Visual Studio: Obsidian Video Well + High-Contrast Reading Card
   ========================================================================== */
html[data-design="cinema"]:not([data-theme="dark"]) {
  --bg-page: #ECEEF2;
  --bg-surface: #FFFFFF;
}
html[data-design="cinema"] .search-hero {
  background: #110E1B;
  border-bottom: 1px solid #282238;
}
html[data-design="cinema"] .sign-card {
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  gap: 0;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 18px rgba(17, 14, 27, 0.07);
}
html[data-design="cinema"] .sign-card > .sign-card-title {
  background: #151122;
  color: #FFFFFF;
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid #262038;
}
html[data-design="cinema"] .sign-card > .sign-card-title .sign-card-title-btn {
  color: #FFFFFF;
}
html[data-design="cinema"] .sign-card > .video-block {
  background: #110E1B;
  padding: 0.75rem 1rem 0.9rem;
  gap: 0.5rem;
}
html[data-design="cinema"] .sign-card > .video-block .version-label {
  color: #B9A8E0;
}
html[data-design="cinema"] .sign-card > .video-block .video-controls-bar {
  background: #1C182B;
  border-color: #2E2744;
  color: #D8D2E8;
}
html[data-design="cinema"] .sign-card > .video-block .speed-group {
  background: #110E1B;
}
html[data-design="cinema"] .sign-card > .video-block .ctrl-pill {
  color: #B0A8C4;
}
html[data-design="cinema"] .sign-card > .video-block .ctrl-pill.active {
  background: #6D28D9;
  color: #FFFFFF;
}
html[data-design="cinema"] .sign-card > .sign-def,
html[data-design="cinema"] .sign-card > .bible-refs-wrap,
html[data-design="cinema"] .sign-card > .card-meta-note,
html[data-design="cinema"] .sign-card > .more-explore-box {
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}
html[data-design="cinema"] .sign-card > .sign-def {
  padding-top: 1.15rem;
  padding-bottom: 0.75rem;
}
html[data-design="cinema"] .sign-card > .bible-refs-wrap {
  padding-bottom: 0.85rem;
}
html[data-design="cinema"] .sign-card > .card-meta-note {
  padding-bottom: 0.85rem;
}
html[data-design="cinema"] .sign-card > .more-explore-box {
  background: var(--bg-page);
  padding-top: 0.9rem;
  padding-bottom: 1.15rem;
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .mobile-only {
    display: inline-flex;
  }
  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-color);
  }
  .main-nav.open {
    display: flex;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .hero-surprise-btn {
    display: none;
  }
}


/* Official Brand Logo & Gilroy Display Typography */
.brand-logo-img {
  height: 46px;
  width: auto;
  display: block;
}
html[data-theme="dark"] .logo-light {
  display: none !important;
}
html[data-theme="dark"] .logo-dark {
  display: block !important;
}

.view-title,
.sign-card-title,
.bento-card-title {
  font-family: var(--font-display, var(--font-sans));
}

/* Tactile Studio "More ▾" Mega-Popover */
.nav-more-wrapper {
  position: relative;
}
.nav-more-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.chevron-icon {
  transition: transform 0.18s ease;
}
.nav-more-trigger[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
}

.more-mega-menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  width: min(780px, calc(100vw - 2rem));
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 18px 48px -8px rgba(22, 20, 28, 0.18), 0 4px 14px -2px rgba(22, 20, 28, 0.08);
  padding: 1.35rem;
  z-index: 400;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.mega-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mega-col-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brand-purple);
  padding: 0.25rem 0.6rem 0.4rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.25rem;
}
html[data-theme="dark"] .mega-col-title {
  color: var(--brand-secondary, #A890D6);
}

.mega-item {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  transition: all 0.14s ease;
}
.mega-item:hover, .mega-item:focus {
  background: var(--brand-purple-tint);
  border-color: rgba(89, 40, 158, 0.14);
  outline: none;
}
.mega-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}
.mega-item:hover .mega-item-title {
  color: var(--brand-purple);
}
html[data-theme="dark"] .mega-item:hover .mega-item-title {
  color: var(--brand-secondary, #A890D6);
}
.mega-item-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 0.1rem;
}

.mega-menu-footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
}
.mega-view-all-btn {
  background: none;
  border: none;
  color: var(--brand-purple);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}
html[data-theme="dark"] .mega-view-all-btn {
  color: var(--brand-secondary, #A890D6);
}
.mega-view-all-btn:hover {
  text-decoration: underline;
}

/* Redesigned "More" Bento Grid Hub Page */
.more-bento-section {
  margin-bottom: 2.5rem;
}
.more-bento-heading {
  font-family: var(--font-display, var(--font-sans));
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-purple);
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}
html[data-theme="dark"] .more-bento-heading {
  color: var(--brand-secondary, #A890D6);
}
.more-bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.15rem;
}
.bento-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.35rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.bento-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-purple);
  box-shadow: var(--shadow-md);
}
.bento-card-badge {
  display: inline-block;
  width: fit-content;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--brand-purple-tint);
  color: var(--brand-purple);
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.65rem;
}
html[data-theme="dark"] .bento-card-badge {
  color: var(--brand-secondary, #A890D6);
}
.bento-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 0.35rem;
}
.bento-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 1rem;
}
.bento-card-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-purple);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
html[data-theme="dark"] .bento-card-cta {
  color: var(--brand-secondary, #A890D6);
}

@media (max-width: 820px) {
  .more-mega-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    margin-top: 0.5rem;
  }
  .mega-menu-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   BRAND POLISHES: #59289E Headings, #A890D6 Hover, Sticky Search, Safari Logo
   ========================================================================== */

.brand-link {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  cursor: pointer;
}
.brand-logo-img {
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

/* Headings in Official Purple #59289E and Hover in Secondary #A890D6 */
.view-title,
.sign-card-title-btn,
.bento-card-title,
.dc-item-title-btn {
  color: var(--brand-purple) !important;
  transition: color 0.15s ease;
}
html[data-theme="dark"] .view-title,
html[data-theme="dark"] .sign-card-title-btn,
html[data-theme="dark"] .bento-card-title,
html[data-theme="dark"] .dc-item-title-btn {
  color: var(--brand-secondary, #A890D6) !important;
}

.sign-card-title-btn:hover,
.bento-card:hover .bento-card-title,
.dc-item-title-btn:hover,
.inline-link:hover,
.footer-link:hover,
.nav-btn:hover {
  color: var(--brand-secondary, #A890D6) !important;
}

/* Less dominating homepage random-6 title */
.view-title.home-random-title {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin-bottom: 0.25rem;
}

/* Sticky Search Hero Bar right below the 70px sticky header */
.search-hero {
  position: sticky;
  top: 70px;
  z-index: 180;
}
html[data-design="studio"] .search-hero {
  background: rgba(243, 244, 247, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}
html[data-design="studio"][data-theme="dark"] .search-hero {
  background: rgba(14, 13, 18, 0.88);
}

/* Vocab Categories Mega-Popover */
.vocab-mega-menu {
  left: 0;
  right: auto;
  width: min(860px, calc(100vw - 2rem));
}
.vocab-mega-az {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-color);
}
.vocab-mega-az .az-btn {
  min-width: 28px;
  height: 28px;
  font-size: 0.76rem;
}
.vocab-mega-topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem 0.85rem;
  max-height: 360px;
  overflow-y: auto;
}
.vocab-topic-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.12s ease;
}
.vocab-topic-item:hover {
  background: var(--brand-purple-tint);
  color: var(--brand-purple);
}

/* Responsive Iframe Video Wrapper for Songs, Hymns & Prayers */
.iframe-video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #121017;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.iframe-video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.sign-def-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Structured Download Centre Rows & Password Gate */
.dc-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}
.dc-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.dc-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: #17151E;
  display: block;
}
.dc-item-title {
  margin: 0 0 0.5rem;
  font-family: var(--font-display, var(--font-sans));
  font-size: 1.2rem;
  font-weight: 800;
}
.dc-item-title-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.dc-lines {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.92rem;
}
.dc-line-item {
  margin: 0;
  color: var(--text-secondary);
}
.dc-download-link {
  color: var(--brand-purple);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.dc-download-link:hover {
  color: var(--brand-secondary, #A890D6);
}

/* Request Access Form & Password Gate Box */
.access-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 1.75rem;
  max-width: 640px;
  margin-top: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.form-field {
  margin-bottom: 1rem;
}
.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}
.form-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.96rem;
  background: var(--bg-page);
  color: var(--text-primary);
}
.form-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.access-granted-box {
  background: var(--brand-purple-tint);
  border: 2px solid var(--brand-purple);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.25rem;
}
.password-code-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 800;
  background: var(--brand-purple);
  color: #FFFFFF;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  margin: 0 0.2rem;
  user-select: all;
}

@media (max-width: 720px) {
  .dc-row {
    grid-template-columns: 1fr;
  }
  .vocab-mega-topics {
    grid-template-columns: 1fr;
  }
}


/* Expandable Long Definitions (Magi, Heaven, etc.) & Enhanced Download Centre */
.sign-def-clamped-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.def-expand-btn {
  background: var(--brand-purple-tint);
  color: var(--brand-purple);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  width: fit-content;
  transition: all 0.14s ease;
}
.def-expand-btn:hover {
  background: var(--brand-purple);
  color: #FFFFFF !important;
}

.dc-Action-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}
.dc-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--brand-purple-tint);
  color: var(--brand-purple);
  border: 1px solid rgba(89, 40, 158, 0.18);
  border-radius: 8px;
  padding: 0.42rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.14s ease;
}
html[data-theme="dark"] .dc-action-pill {
  color: var(--brand-secondary, #A890D6);
}
.dc-action-pill:hover {
  background: var(--brand-purple);
  color: #FFFFFF !important;
  transform: translateY(-1px);
}
.dc-key-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--bg-page);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  margin-left: 0.5rem;
  vertical-align: middle;
}
.dc-filter-bar {
  margin-bottom: 1.25rem;
  max-width: 460px;
}


/* ==========================================================================
   CUSTOM CHROMELESS BSL VIDEO STAGE (Identical in Safari & Chrome, Zero HUD Clutter)
   ========================================================================== */

.bsl-video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #D6CEEC;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}
html[data-theme="dark"] .bsl-video-stage {
  background: #1E192B;
}

.bsl-video-stage .video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

/* Central Frosted Play Button (fades out completely when playing!) */
.bsl-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 16, 36, 0.08);
  transition: opacity 0.2s ease, background-color 0.2s ease;
  pointer-events: none;
}
.bsl-video-stage:hover .bsl-play-overlay {
  background: rgba(22, 16, 36, 0.14);
}
.bsl-video-stage.is-playing .bsl-play-overlay {
  opacity: 0;
}

.bsl-play-circle {
  width: 60px;
  height: 60px;
  border-radius: 9999px;
  background: rgba(30, 22, 48, 0.68);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.85);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.16s ease, background-color 0.16s ease;
}
.bsl-video-stage:hover .bsl-play-circle {
  transform: scale(1.07);
  background: rgba(89, 40, 158, 0.88);
}

/* Razor-thin 3px bottom progress hairline (never covers the presenter's hands) */
.bsl-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(0, 0, 0, 0.12);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.bsl-video-stage.is-playing .bsl-progress-track,
.bsl-video-stage:hover .bsl-progress-track {
  opacity: 1;
}
.bsl-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--brand-purple);
  transition: width 0.08s linear;
}

.ctrl-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--brand-purple);
  color: #FFFFFF !important;
  border: none;
  border-radius: 5px;
  padding: 0.22rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.14s ease;
}
.ctrl-play-btn:hover {
  background: var(--brand-purple-dark);
}


/* Hide duplicate native browser search cancel button */
.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

/* Keep video controls bar crisp and single-line inside 3-column cards */
.video-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.3rem;
  padding: 0.3rem 0.45rem;
  overflow: hidden;
}
.ctrl-pill,
.ctrl-play-btn,
.speed-label {
  white-space: nowrap;
}
.ctrl-icon-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 26px;
  height: 26px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.12s ease;
}
.ctrl-icon-btn:hover {
  background: var(--brand-purple);
  color: #FFFFFF;
  border-color: var(--brand-purple);
}


/* Ensure multi-line More To Explore chips and reference buttons left-align cleanly */
.inline-link,
.more-explore-list li .inline-link,
.bible-ref-pill,
.category-oval-btn {
  text-align: left !important;
  justify-content: flex-start;
}


/* Purple filled central play button by default & centred homepage random-6 heading */
.bsl-play-circle {
  background: var(--brand-purple) !important;
  color: #FFFFFF !important;
  border: 2.5px solid #FFFFFF !important;
  box-shadow: 0 8px 24px rgba(89, 40, 158, 0.38) !important;
}
.bsl-video-stage:hover .bsl-play-circle {
  background: var(--brand-purple-dark) !important;
  transform: scale(1.08);
}

.view-title.home-random-title {
  text-align: center !important;
  width: 100%;
}

.video-controls-bar {
  padding: 0.32rem 0.55rem !important;
}


/* ==========================================================================
   CONTROL BAR STATE CLARITY & ANCHORED BIBLE VERSE POPOVER
   ========================================================================== */

/* Fullscreen is an action, not an active state: keep transparent until hovered */
.ctrl-icon-btn {
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  color: var(--text-muted) !important;
}
.ctrl-icon-btn:hover {
  background: var(--brand-purple-tint) !important;
  color: var(--brand-purple) !important;
  border-color: rgba(89, 40, 158, 0.2) !important;
}
html[data-theme="dark"] .ctrl-icon-btn:hover {
  color: var(--brand-secondary, #A890D6) !important;
}

/* Highlight the active Bible reference pill whose popover is currently open */
.bible-ref-pill.active-ref {
  background: var(--brand-purple) !important;
  color: #FFFFFF !important;
  border-color: var(--brand-purple) !important;
}

/* Anchored Bible Verse Popover (positioned dynamically near the clicked pill) */
.verse-tooltip {
  position: fixed;
  bottom: auto;
  right: auto;
  width: min(390px, calc(100vw - 1.5rem));
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--brand-purple);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  box-shadow: 0 14px 36px -6px rgba(22, 20, 28, 0.22), 0 4px 12px -2px rgba(22, 20, 28, 0.1);
  z-index: 600;
  animation: popoverFadeIn 0.14s ease-out;
}

@keyframes popoverFadeIn {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* ==========================================================================
   MOBILE, TABLET & FIELD-READY RESPONSIVE ARCHITECTURE
   ========================================================================== */

/* 1. Smart Auto-Hiding Header on Mobile/Landscape Scroll */
.site-header {
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
}
.search-hero {
  transition: top 0.24s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
}
body.header-hidden .site-header {
  transform: translateY(-100%);
}
body.header-hidden .search-hero {
  top: 0 !important;
}

/* 2. Prevent iOS Safari Auto-Zoom on Input Focus (must be >= 16px / 1rem) */
.search-input,
.form-input {
  font-size: 1rem !important;
}

/* 3. Tablet & Phone Multi-Orientation Breakpoints */
@media (max-width: 1024px) {
  .container {
    padding: 0 1.15rem;
  }
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Touch-Device Ergonomics (Finger-Friendly Targets) */
@media (pointer: coarse) {
  .ctrl-pill {
    padding: 0.36rem 0.68rem !important;
    font-size: 0.8rem !important;
    min-height: 32px;
  }
  .ctrl-icon-btn {
    width: 34px !important;
    height: 34px !important;
  }
  .bible-ref-pill {
    padding: 0.32rem 0.7rem !important;
    font-size: 0.84rem !important;
  }
  .def-expand-btn {
    padding: 0.4rem 0.85rem !important;
    font-size: 0.84rem !important;
  }
  .bsl-play-circle {
    width: 64px;
    height: 64px;
  }
}

/* Phone Portrait & Compact Screens (< 640px) */
@media (max-width: 640px) {
  .container {
    padding: 0 0.9rem;
  }
  .header-inner {
    min-height: 60px;
  }
  .brand-logo-img {
    height: 38px;
  }
  .search-hero {
    top: 60px;
    padding: 0.5rem 0 !important;
  }
  .search-box-wrap {
    padding: 0.2rem 0.3rem 0.2rem 0.75rem;
  }
  .hero-surprise-btn {
    display: inline-flex !important;
    padding: 0.42rem 0.75rem;
    font-size: 0.82rem;
  }
  .search-dropdown {
    left: 0.9rem;
    right: 0.9rem;
    max-height: 68dvh;
  }

  .view-header {
    padding: 1.15rem 0 0.85rem !important;
  }
  .view-title.home-random-title {
    font-size: 1.18rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .sign-card {
    padding: 1.05rem !important;
    border-radius: 14px !important;
  }
  .detail-main,
  .support-sidebar,
  .passage-reader-card,
  .access-form-card {
    padding: 1.2rem !important;
  }

  /* Horizontal Swipe Carousels for Tabs & A-Z Bar on Phones */
  .tabs-bar,
  .az-bar {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.45rem;
    margin-left: -0.9rem;
    margin-right: -0.9rem;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
  .tabs-bar::-webkit-scrollbar,
  .az-bar::-webkit-scrollbar {
    display: none;
  }
  .tab-btn,
  .az-btn {
    flex-shrink: 0;
    white-space: nowrap;
  }

  /* Native-Style Bottom Sheet for Bible Verse Popover on Phones */
  .verse-tooltip {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 18px 18px 0 0 !important;
    padding: 1.25rem 1.2rem calc(1.25rem + env(safe-area-inset-bottom, 0px)) !important;
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.28) !important;
  }
  .verse-context-btn {
    padding: 0.7rem 1rem !important;
    font-size: 0.92rem !important;
  }
}

/* Mobile Navigation Drawer (< 760px) */
@media (max-width: 760px) {
  .mobile-only {
    display: inline-flex;
  }
  .main-nav {
    display: none;
    width: 100%;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.75rem 0 1.25rem;
    border-top: 1px solid var(--border-color);
  }
  .main-nav.open {
    display: flex;
  }
  .nav-btn {
    width: 100%;
    text-align: left;
    justify-content: space-between;
    padding: 0.7rem 0.85rem;
    font-size: 1rem;
  }
  .nav-donate {
    margin-left: 0;
    text-align: center;
    justify-content: center;
    margin-top: 0.25rem;
  }
  .more-mega-menu,
  .vocab-mega-menu {
    position: static !important;
    width: 100% !important;
    box-shadow: none !important;
    background: var(--bg-page) !important;
    padding: 0.75rem !important;
    margin-top: 0.25rem !important;
    border-radius: 10px !important;
  }
  .vocab-mega-topics {
    max-height: none !important;
    grid-template-columns: 1fr !important;
  }
}

/* Phone Landscape Orientation (Short Viewport Height) */
@media (max-height: 520px) and (orientation: landscape) {
  .header-inner {
    min-height: 50px;
  }
  .brand-logo-img {
    height: 32px;
  }
  .search-hero {
    position: static !important;
    padding: 0.4rem 0 !important;
  }
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
}


/* ==========================================================================
   MENU CONTRAST & MOBILE DRAWER ACCORDION FIX
   ========================================================================== */

/* 1. Menu items in Official Brand Purple (#59289E) with high-contrast hover */
.nav-btn {
  color: var(--brand-purple) !important;
  font-weight: 700;
}
html[data-theme="dark"] .nav-btn {
  color: var(--brand-secondary, #A890D6) !important;
}

.nav-btn:hover,
.nav-btn.active,
.nav-more-trigger[aria-expanded="true"] {
  background-color: rgba(168, 144, 214, 0.28) !important;
  color: #370B66 !important;
}
html[data-theme="dark"] .nav-btn:hover,
html[data-theme="dark"] .nav-btn.active,
html[data-theme="dark"] .nav-more-trigger[aria-expanded="true"] {
  background-color: rgba(168, 144, 214, 0.22) !important;
  color: #FFFFFF !important;
}

/* Keep Donate button solid purple with white text */
.nav-donate {
  background-color: var(--brand-purple) !important;
  color: #FFFFFF !important;
}
.nav-donate:hover {
  background-color: var(--brand-secondary, #A890D6) !important;
  color: #1E0A3C !important;
}

/* 2. Mobile Navigation Drawer Fix:
      - Keep Logo (order 1) and Moon/Hamburger (order 2) on the top row
      - Use display: block (not flex column) on .main-nav.open so child items never flex-shrink to 0px! */
@media (max-width: 760px) {
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  .brand-link {
    order: 1;
  }
  .header-actions {
    order: 2;
  }
  .main-nav {
    order: 3;
    display: none;
    width: 100%;
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.65rem 0 1.25rem;
    border-top: 1px solid var(--border-color);
  }
  .main-nav.open {
    display: block !important;
  }
  .main-nav > * {
    display: block;
    width: 100%;
    margin-bottom: 0.25rem;
  }
  .nav-btn {
    display: flex !important;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0.72rem 0.9rem;
    font-size: 1rem;
  }
  .nav-donate {
    justify-content: center !important;
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
  }
  .more-mega-menu,
  .vocab-mega-menu {
    position: static !important;
    width: 100% !important;
    max-height: none !important;
    overflow: visible !important;
    box-shadow: none !important;
    background: var(--bg-page) !important;
    border: 1px solid var(--border-color) !important;
    padding: 0.75rem !important;
    margin: 0.35rem 0 0.65rem !important;
    border-radius: 12px !important;
  }
  .mega-menu-grid,
  .vocab-mega-topics {
    display: grid !important;
    grid-template-columns: 1fr !important;
    max-height: none !important;
    overflow: visible !important;
    gap: 0.5rem !important;
  }
}


/* ==========================================================================
   NATIVE APP MOBILE UI (Bottom Tab Bar + Slide-Up iOS Bottom Sheets + Bento Groups)
   ========================================================================== */

.mobile-bottom-nav {
  display: none;
}

@media (max-width: 760px) {
  /* Hide the old top hamburger button and desktop nav on phones */
  #mobile-menu-toggle,
  .main-nav {
    display: none !important;
  }

  /* Give body bottom padding so content is never hidden behind the fixed bottom tab bar */
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  /* Frosted Glass Thumb-Zone Bottom Tab Bar */
  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(62px + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(20, 20, 30, 0.09);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    z-index: 550;
    box-shadow: 0 -4px 20px rgba(22, 20, 28, 0.06);
  }
  html[data-theme="dark"] .mobile-bottom-nav {
    background: rgba(23, 21, 30, 0.88);
    border-top-color: rgba(255, 255, 255, 0.09);
  }

  .mob-tab-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    padding: 0.35rem 0;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .mob-tab-btn:active {
    transform: scale(0.92);
  }
  .mob-tab-btn.active {
    color: var(--brand-purple);
  }
  html[data-theme="dark"] .mob-tab-btn.active {
    color: var(--brand-secondary, #A890D6);
  }

  /* Keep Bible Verse Bottom Sheet above the Bottom Tab Bar */
  .verse-tooltip {
    bottom: calc(62px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Slide-Up Native Bottom Sheet Modal */
.mob-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 24, 0.42);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 650;
  animation: fadeBackdrop 0.2s ease-out;
}

.mob-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 86dvh;
  background: var(--bg-page);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -16px 48px rgba(15, 12, 24, 0.28);
  z-index: 700;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUpSheet 0.26s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes fadeBackdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUpSheet {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.mob-sheet-header {
  background: var(--bg-surface);
  padding: 0.55rem 1.15rem 0.8rem;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.mob-sheet-handle {
  width: 38px;
  height: 5px;
  border-radius: 999px;
  background: var(--border-color);
  margin: 0 auto 0.6rem;
}
.mob-sheet-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mob-sheet-title {
  font-family: var(--font-display, var(--font-sans));
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-purple);
}
html[data-theme="dark"] .mob-sheet-title {
  color: var(--brand-secondary, #A890D6);
}
.mob-sheet-close-btn {
  background: var(--brand-purple-tint);
  color: var(--brand-purple);
  border: none;
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}
html[data-theme="dark"] .mob-sheet-close-btn {
  color: var(--brand-secondary, #A890D6);
}

.mob-sheet-body {
  padding: 1rem 1rem calc(1.75rem + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

/* Quick-Action Bento Tiles at Top of Mobile Sheet */
.mob-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.mob-quick-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.mob-quick-tile.primary-donate {
  background: var(--brand-purple);
  border-color: var(--brand-purple);
  color: #FFFFFF;
}
.mob-quick-tile-title {
  font-family: var(--font-display, var(--font-sans));
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--brand-purple);
}
.mob-quick-tile.primary-donate .mob-quick-tile-title,
.mob-quick-tile.primary-donate .mob-quick-tile-sub {
  color: #FFFFFF;
}
html[data-theme="dark"] .mob-quick-tile-title {
  color: var(--brand-secondary, #A890D6);
}
.mob-quick-tile-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* 2-Column Tactile Squircle Grid for Mobile Vocab Categories */
.mob-vocab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
@media (max-width: 380px) {
  .mob-vocab-grid {
    grid-template-columns: 1fr;
  }
}
.mob-vocab-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.mob-vocab-card:active {
  background: var(--brand-purple-tint);
  border-color: var(--brand-purple);
}

/* iOS-Style Grouped Inset List for Menu Links */
.mob-group-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.35rem 0.35rem;
}
.mob-inset-group {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.mob-list-row {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 0.82rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  text-align: left;
  cursor: pointer;
  color: var(--text-primary);
}
.mob-list-row:last-child {
  border-bottom: none;
}
.mob-list-row:active {
  background: var(--brand-purple-tint);
}
.mob-row-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.mob-row-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}
.mob-row-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.mob-row-chevron {
  color: var(--text-muted);
  font-weight: 700;
  font-size: 1.05rem;
}


/* ==========================================================================
   DOWNLOAD APP PAGE (Store Badges, Promo Banner & Action Buttons)
   ========================================================================== */
.app-promo-banner {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: 1rem 0 1.25rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.app-store-badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 1rem;
  justify-content: center;
  margin: 1.35rem auto;
}
.app-store-badge-link {
  display: block;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.app-store-badge-link:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}
.app-store-badge-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.app-page-copy p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.68;
  margin: 0 0 1.1rem;
}
.app-page-copy p.lead-sub {
  font-family: var(--font-display, var(--font-sans));
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--brand-purple);
  text-align: center;
}
html[data-theme="dark"] .app-page-copy p.lead-sub {
  color: var(--brand-secondary, #A890D6);
}
.app-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}


/* Global responsive image safeguard & App Store page sizing */
img {
  max-width: 100%;
  height: auto;
}

.app-promo-banner {
  display: block !important;
  width: 100% !important;
  max-width: 540px !important;
  height: auto !important;
  margin: 1.25rem auto !important;
  border-radius: 12px !important;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.app-store-badges {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 1.25rem !important;
  margin: 1.5rem auto !important;
}

.app-store-badge-link {
  display: inline-block !important;
  width: 185px !important;
  max-width: 45% !important;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.app-store-badge-link:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.app-store-badge-img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  border-radius: 8px;
}


/* ==========================================================================
   ROMAN CATHOLIC SIGN (RCS) TACTILE PILL BADGES (Replaces raw "- RCS" text)
   ========================================================================== */
.rcs-title-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.rcs-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  padding: 0.24rem 0.58rem;
  border-radius: 9999px;
  background-color: var(--brand-purple-tint, #F4EFFA);
  color: var(--brand-purple, #59289E);
  border: 1px solid rgba(89, 40, 158, 0.24);
  vertical-align: middle;
  white-space: nowrap;
  transition: all 0.14s ease;
}
html[data-theme="dark"] .rcs-badge {
  background-color: rgba(168, 144, 214, 0.16);
  color: var(--brand-secondary, #A890D6);
  border-color: rgba(168, 144, 214, 0.32);
}

/* Compact micro-pill inside More To Explore chips and Search rows */
.rcs-badge-compact {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.18rem 0.42rem;
  margin-left: 0.38rem;
  border-radius: 999px;
  background-color: rgba(89, 40, 158, 0.11);
  color: var(--brand-purple, #59289E);
  border: 1px solid rgba(89, 40, 158, 0.22);
  vertical-align: middle;
  white-space: nowrap;
}
html[data-theme="dark"] .rcs-badge-compact {
  background-color: rgba(168, 144, 214, 0.18);
  color: var(--brand-secondary, #A890D6);
  border-color: rgba(168, 144, 214, 0.3);
}
.more-explore-list li .inline-link:hover .rcs-badge-compact {
  background-color: rgba(255, 255, 255, 0.22);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.45);
}


/* ==========================================================================
   MORE TO EXPLORE & CATEGORY PILLS: Solid Purple (#59289E) + White Text Hover
   ========================================================================== */
.more-explore-list li .inline-link:hover,
.bible-ref-pill:hover,
.category-oval-btn:hover {
  background-color: var(--brand-purple, #59289E) !important;
  border-color: var(--brand-purple, #59289E) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
}

.more-explore-list li .inline-link:hover *,
.category-oval-btn:hover * {
  color: #FFFFFF !important;
}

.more-explore-list li .inline-link:hover .rcs-badge-compact {
  background-color: rgba(255, 255, 255, 0.22) !important;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Permanently hide the A-Z bar across all views */
#az-bar {
  display: none !important;
}


/* ==========================================================================
   PENDING RE-FILM PLACEHOLDER STAGE (For posts whose video is being re-filmed)
   ========================================================================== */
.pending-video-stage {
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-purple-tint, #F4EFFA) 0%, var(--bg-surface, #FFFFFF) 100%);
  border: 1.5px dashed rgba(89, 40, 158, 0.32);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem;
  margin-bottom: 0.9rem;
  gap: 0.45rem;
}
html[data-theme="dark"] .pending-video-stage {
  background: linear-gradient(135deg, rgba(89, 40, 158, 0.18) 0%, rgba(23, 21, 30, 0.95) 100%);
  border-color: rgba(168, 144, 214, 0.32);
}
.pending-video-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: var(--brand-purple);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.pending-video-title {
  font-family: var(--font-display, var(--font-sans));
  font-size: 1rem;
  font-weight: 800;
  color: var(--brand-purple);
  margin: 0.1rem 0 0;
}
html[data-theme="dark"] .pending-video-title {
  color: var(--brand-secondary, #A890D6);
}
.pending-video-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  max-width: 36ch;
  line-height: 1.45;
  margin: 0;
}


/* 2-Column Grid for Carol Services Page (No Sidebar) */
.carol-services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .carol-services-grid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   STANDARD PAGE BUTTONS, TEXTAREA & VARIABLE ALIASES
   ========================================================================== */
:root {
  --primary: var(--brand-purple);
  --border-subtle: var(--border-color);
  --surface: var(--bg-surface);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background-color: var(--brand-purple);
  color: #FFFFFF !important;
  border: 1px solid var(--brand-purple);
  border-radius: var(--radius-sm);
  padding: 0.68rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-primary:hover {
  background-color: var(--brand-purple-dark);
  border-color: var(--brand-purple-dark);
  transform: translateY(-1px);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background-color: var(--brand-purple-tint);
  color: var(--brand-purple) !important;
  border: 1px solid rgba(89, 40, 158, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.68rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
html[data-theme="dark"] .btn-secondary {
  color: var(--brand-secondary, #A890D6) !important;
}
.btn-secondary:hover {
  background-color: var(--brand-purple);
  color: #FFFFFF !important;
}
.form-textarea {
  width: 100%;
  min-height: 120px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-page);
  color: var(--text-primary);
  resize: vertical;
}


/* ==========================================================================
   TRUE HORIZONTAL-FIRST FLEX-MASONRY GRID (Zero Vertical Stretching / Gaps)
   ========================================================================== */
.masonry-grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
  margin-bottom: 3.5rem;
}
.masonry-grid.masonry-3col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.masonry-grid.masonry-2col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.masonry-col {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-width: 0;
}
.masonry-col > .sign-card {
  height: auto !important;
}

@media (max-width: 1024px) {
  .masonry-grid.masonry-3col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
  .masonry-col {
    gap: 1.25rem;
  }
}
@media (max-width: 900px) {
  .masonry-grid.masonry-2col {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .masonry-grid.masonry-3col,
  .masonry-grid.masonry-2col {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .masonry-col {
    gap: 1.1rem;
  }
}

/* Single Sign / Song / Prayer Multi-Paragraph & Lyric Stanza Formatting */
.single-sign-text-wrap .sign-def {
  font-size: 1.03rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.single-sign-text-wrap .sign-def:last-child {
  margin-bottom: 0;
}
