/*
Theme Name: Crossway Bible
Theme URI: https://crosswaybible.com
Author: Crossway Bible
Description: A modern, original Bible reading and study platform -- search, read, and navigate Scripture by book, chapter, and verse.
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.0
Text Domain: spirit-scripture
*/

:root {
  --bg: #FAF9F6;
  --surface: #FFFFFF;
  --ink: #171717;
  --muted: #686868;
  --accent: #641F2D;
  --accent-dark: #48151F;
  --accent-light: #8A3A4A;
  --accent-tint: #F7EEF0;
  --accent-ink: #FFFFFF;
  --line: #E7E2DE;
  --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-scripture: 'Literata', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --measure: 68ch;
  --shadow: 0 8px 24px rgba(23,20,20,0.08);
}

*, *::before, *::after { box-sizing: border-box; }
:where(html, body, h1, h2, h3, h4, p, ul, ol, blockquote, figure) { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font-family: inherit; font-size: inherit; color: inherit; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 var(--space-lg); }
@media (max-width: 640px) { .container { padding: 0 var(--space-md); } }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--accent-ink); padding: var(--space-sm) var(--space-md); z-index: 1000; }
.skip-link:focus { left: var(--space-md); top: var(--space-md); }

/* ---------- Site header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 100; }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); padding: var(--space-md) 0; }
.site-logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink); }
.site-logo__icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(155deg, var(--accent-tint), var(--surface)); border: 1.5px solid var(--accent-light); color: var(--accent); flex-shrink: 0; }
.site-logo__icon svg { width: 19px; height: 19px; }
.site-logo__text em { font-style: italic; font-weight: 700; color: var(--accent); }
.primary-nav { display: flex; align-items: center; gap: var(--space-lg); }
.primary-nav ul { display: flex; list-style: none; gap: 2px; }
.primary-nav a { font-weight: 500; font-size: 0.9rem; padding: 8px 14px; border-radius: 999px; transition: background 0.15s ease, color 0.15s ease; }
.primary-nav a:hover { background: var(--accent-tint); color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: var(--space-md); position: relative; padding-left: var(--space-md); }
.header-actions::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 26px; background: var(--line); }
.header-actions .btn { transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease; }
.header-actions .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(100,31,45,0.22); }
.icon-btn { background: none; border: 1px solid var(--line); border-radius: var(--radius-md); width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { border-color: var(--accent-light); background: var(--accent-tint); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); background: var(--accent); color: var(--accent-ink); border: none; border-radius: var(--radius-md); padding: 11px 20px; font-weight: 600; font-size: 0.95rem; cursor: pointer; }
.btn:hover { opacity: 0.92; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.mobile-menu-toggle { display: none; }

@media (max-width: 880px) {
  .primary-nav ul, .header-actions .btn-outline { display: none; }
  .mobile-menu-toggle { display: grid; }
  .header-actions { padding-left: 0; }
  .header-actions::before { display: none; }
}

/* ---------- Hero / homepage ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-xl) 0 var(--space-lg);
  background: linear-gradient(190deg, #2E0A12 0%, var(--accent-dark) 45%, #230810 100%);
  border-bottom: 1px solid var(--accent-dark);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, transparent 70%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero__glow {
  position: absolute;
  top: -60px;
  right: 8%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247,238,240,0.4) 0%, rgba(247,238,240,0.12) 45%, transparent 72%);
  filter: blur(4px);
  z-index: 0;
  pointer-events: none;
}
.hero__mountains {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  width: 100%;
  height: 140px;
  z-index: 0;
  pointer-events: none;
}
.hero__grid {
  position: relative;
  z-index: 1;
}
.hero__grid { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: var(--space-xl); align-items: center; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--accent); font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; background: var(--accent-tint); border-radius: 999px; padding: 6px 14px 6px 10px; margin-bottom: var(--space-md); }
.hero__eyebrow svg { width: 13px; height: 13px; flex-shrink: 0; }
.hero h1 { font-family: var(--font-heading); font-size: clamp(2.1rem, 4.2vw, 3.25rem); line-height: 1.1; font-weight: 700; max-width: 22ch; -webkit-text-stroke: 0.5px currentColor; letter-spacing: -0.01em; }
.hero p.lede { margin-top: var(--space-md); color: var(--muted); font-size: 1.05rem; max-width: 46ch; }
.search-form { margin-top: var(--space-lg); display: flex; gap: var(--space-sm); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-sm); box-shadow: var(--shadow); }
.search-form input[type="search"] { flex: 1; border: none; background: none; padding: 12px 14px; outline: none; }
.search-examples { margin-top: var(--space-md); display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.search-examples a { font-size: 0.85rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.search-examples a:hover { border-color: var(--accent); color: var(--accent); }
.hero__panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-lg); box-shadow: var(--shadow); }
.hero__panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: var(--space-md); }
.hero__panel-head h2 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: 0; }
.hero__panel-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; background: var(--accent-tint); color: var(--accent); border-radius: var(--radius-md); }
.hero__panel-icon svg { width: 18px; height: 18px; }
.hero__panel-link { display: inline-block; margin-top: var(--space-md); font-weight: 600; color: var(--accent); }
.hero__panel-link:hover { text-decoration: underline; }

@media (max-width: 880px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } }

.hero-stats { display: flex; align-items: center; gap: var(--space-md); margin-top: var(--space-lg); flex-wrap: wrap; }
.hero-stats__item { display: flex; flex-direction: column; }
.hero-stats__item strong { font-family: var(--font-heading); font-size: 1.4rem; color: var(--ink); line-height: 1; }
.hero-stats__item span { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.hero-stats__divider { width: 1px; height: 32px; background: var(--line); }
@media (max-width: 480px) { .hero-stats { gap: var(--space-sm); } .hero-stats__item strong { font-size: 1.15rem; } }


/* ---------- Sections ---------- */
.section { padding: var(--space-xl) 0; border-top: 1px solid var(--line); }
.section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--space-lg); gap: var(--space-md); }
.section__head h2 { font-family: var(--font-heading); font-size: 1.6rem; }
.section__head a { font-size: 0.9rem; font-weight: 600; color: var(--accent); }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-md); }
.card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-lg); background: var(--surface); }
.card h3 { font-family: var(--font-heading); font-size: 1.05rem; margin-bottom: var(--space-sm); }
.card p { color: var(--muted); font-size: 0.9rem; }

.chip-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 0.9rem; }
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Book grid ---------- */
.testament-block { margin-bottom: var(--space-xl); }
.testament-block h2 { font-family: var(--font-heading); font-size: 1.3rem; margin-bottom: var(--space-md); }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-md); }
.book-grid__card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; background: var(--surface); transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.book-grid__card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-light); }
.book-grid__icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); margin-bottom: 8px; }
.book-grid__icon svg { width: 15px; height: 15px; }
.book-grid__name { font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.book-grid__count { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 3px; }
.books-search { margin: var(--space-md) 0; }
.books-search__input { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 18px; font-size: 1rem; font-family: inherit; background: var(--surface); color: var(--ink); }
.books-search__input:focus { outline: 2px solid var(--accent-light); outline-offset: 1px; }
.testament-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-lg); }
.testament-jump .tag { text-decoration: none; transition: border-color 0.15s ease, color 0.15s ease; }
.testament-jump .tag:hover { border-color: var(--accent); color: var(--accent); }

.chapter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: var(--space-sm); margin-top: var(--space-md); }
.chapter-grid a { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 0; text-align: center; background: var(--surface); font-weight: 600; }
.chapter-grid a:hover, .chapter-grid a[aria-current="page"] { border-color: var(--accent); color: var(--accent); }

/* ---------- Reader ---------- */
.reader { padding: var(--space-lg) 0 var(--space-xl); }
.reader__toolbar { position: sticky; top: 65px; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); padding: var(--space-md) 0; margin-bottom: var(--space-lg); }
.reader__crumb { display: block; font-size: 0.85rem; color: var(--muted); margin-bottom: var(--space-sm); }
.reader__crumb a { color: var(--muted); }
.reader__crumb a:hover { color: var(--accent); }
.reader__toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); flex-wrap: wrap; }
.reader__toolbar-actions { display: flex; align-items: center; gap: var(--space-sm); flex-wrap: wrap; }
.select-group { display: flex; gap: var(--space-sm); }
.select-group select { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; background: var(--surface); }
.reader__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); width: 100%; }
.reader__heading { font-family: var(--font-heading); font-size: 2rem; margin-bottom: var(--space-sm); }
.reader__version-note { color: var(--muted); font-size: 0.85rem; margin-bottom: var(--space-lg); }
.verse-list { font-family: var(--font-scripture); font-size: 1.15rem; line-height: 1.85; }
.verse { display: block; padding: 3px 0; border-bottom: 1px solid transparent; position: relative; }
.verse:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); border-radius: var(--radius-sm); }
.verse-num { font-family: var(--font-body); font-weight: 700; font-size: 0.7rem; color: var(--muted); vertical-align: super; margin-right: 6px; }
.verse-actions { display: none; gap: 6px; position: absolute; right: 0; top: -34px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 4px; }
.verse:hover .verse-actions, .verse:focus-within .verse-actions { display: flex; }
.verse-actions__btn { background: none; border: none; width: 30px; height: 30px; border-radius: var(--radius-sm); cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--muted); transition: background 0.15s ease, color 0.15s ease; }
.verse-actions__btn svg { width: 16px; height: 16px; }
.verse-actions__btn:hover { background: var(--accent-tint); color: var(--accent); }

.chapter-nav { display: flex; justify-content: space-between; margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--line); }
.chapter-nav a { font-weight: 600; }
.chapter-nav a:hover { color: var(--accent); }

.reader-error { text-align: center; padding: var(--space-xl) 0; color: var(--muted); }

@media (max-width: 640px) {
  .verse-actions { position: fixed; left: 0; right: 0; bottom: 0; top: auto; border-radius: var(--radius-lg) var(--radius-lg) 0 0; justify-content: space-around; padding: var(--space-md); }
}

/* ---------- Search results ---------- */
.search-result { border-bottom: 1px solid var(--line); padding: var(--space-lg) 0; }
.search-result h3 { font-family: var(--font-heading); font-size: 1.05rem; margin-bottom: 6px; }
.search-result p { color: var(--ink); }
.search-result mark { background: color-mix(in srgb, var(--accent-light) 35%, transparent); color: inherit; border-radius: 3px; }
.search-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: var(--space-lg); }
/* ---------- Search page redesign ---------- */
.search-results-list { display: flex; flex-direction: column; gap: var(--space-md); margin-top: var(--space-md); }
.search-result-card { display: flex; align-items: flex-start; gap: var(--space-md); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-lg); background: var(--surface); transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.search-result-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent-light); }
.search-result-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); flex-shrink: 0; }
.search-result-card__icon svg { width: 20px; height: 20px; }
.search-result-card__body { flex: 1; min-width: 0; }
.search-result-card__ref { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; color: var(--ink); margin-bottom: 4px; }
.search-result-card__text { display: block; font-family: var(--font-scripture); color: var(--muted); line-height: 1.6; }
.search-result-card__text mark { background: color-mix(in srgb, var(--accent-light) 35%, transparent); color: inherit; border-radius: 3px; }
.search-result-card__cta { align-self: center; font-weight: 600; color: var(--accent); font-size: 0.85rem; white-space: nowrap; flex-shrink: 0; }
@media (max-width: 640px) { .search-result-card { flex-wrap: wrap; } .search-result-card__cta { margin-left: 56px; } }
.search-empty { text-align: center; padding: var(--space-xl) 0; }
.search-empty__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); margin-bottom: var(--space-md); }
.search-empty__icon svg { width: 26px; height: 26px; }
.search-empty p { color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }
/* ---------- Reading Plans page redesign ---------- */
.reading-plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
@media (max-width: 900px) { .reading-plans-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .reading-plans-grid { grid-template-columns: 1fr; } }
.plan-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-lg); background: var(--surface); transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-light); }
.plan-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-sm); }
.plan-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); flex-shrink: 0; }
.plan-card__icon svg { width: 22px; height: 22px; }
.plan-card__days { font-size: 0.78rem; font-weight: 600; color: var(--accent); background: var(--accent-tint); border-radius: 999px; padding: 4px 12px; }
.plan-card__title { font-family: var(--font-heading); font-size: 1.15rem; margin-bottom: var(--space-sm); }
.plan-card__desc { color: var(--muted); font-size: 0.9rem; line-height: 1.55; flex-grow: 1; margin-bottom: var(--space-md); }
.plan-card__progress { margin-bottom: var(--space-sm); }
.plan-card__bar { width: 100%; height: 6px; border-radius: 999px; background: var(--accent-tint); overflow: hidden; margin-bottom: 6px; }
.plan-card__bar-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.2s ease; }
.plan-card__progress-label { font-size: 0.78rem; color: var(--muted); }
.plan-card__cta { font-weight: 600; color: var(--accent); font-size: 0.9rem; margin-top: auto; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: var(--space-xl) 0 var(--space-lg); margin-top: var(--space-xl); background: var(--bg); }

.footer-newsletter { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); background: var(--accent-tint); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-lg); margin-bottom: var(--space-xl); flex-wrap: wrap; }
.footer-newsletter__text h3 { font-family: var(--font-heading); font-size: 1.4rem; margin: 0 0 4px; color: var(--ink); }
.footer-newsletter__text p { color: var(--muted); font-size: 0.95rem; max-width: 42ch; margin: 0; }
.footer-newsletter__form { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 6px; box-shadow: var(--shadow); flex: 0 1 400px; min-width: 260px; }
.footer-newsletter__form input[type="email"] { flex: 1; min-width: 0; border: none; background: none; padding: 10px 12px; outline: none; font-size: 0.95rem; color: var(--ink); }
.footer-newsletter__form button { background: var(--accent); color: #fff; border: none; border-radius: var(--radius-md); padding: 0 var(--space-md); font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.15s; }
.footer-newsletter__form button:hover { background: var(--accent-dark); }
.footer-newsletter__status { flex-basis: 100%; margin: 0; font-size: 0.85rem; color: var(--accent); }
.footer-newsletter__status.is-error { color: var(--accent-dark); }

.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-lg); }
.footer-brand .site-logo { margin-bottom: var(--space-sm); }
.footer-brand__desc { color: var(--muted); font-size: 0.9rem; line-height: 1.65; max-width: 42ch; margin: 0; }
.footer-grid h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: var(--space-md); }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.footer-grid a { color: var(--ink); }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--line); display: flex; justify-content: center; color: var(--muted); font-size: 0.85rem; flex-wrap: wrap; gap: var(--space-sm); }

@media (max-width: 880px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } .footer-newsletter { flex-direction: column; align-items: flex-start; } .footer-newsletter__form { flex-basis: 100%; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Generic content pages (Topics, Reading Plans, Verse of the Day) ---------- */
.page-section { padding: var(--space-xl) 0; }
.page-heading { font-family: var(--font-heading); font-size: 2rem; margin-bottom: var(--space-sm); }
.page-lede { color: var(--muted); font-size: 1.05rem; max-width: 60ch; margin-bottom: var(--space-lg); }
.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: var(--space-md); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Verse of the Day ---------- */
.votd-card { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent-light); border-radius: var(--radius-lg); padding: var(--space-lg); box-shadow: var(--shadow); max-width: var(--measure); }
.votd-card__text { font-family: var(--font-scripture); font-size: 1.3rem; line-height: 1.7; font-style: italic; }
.votd-card__ref { margin-top: var(--space-md); color: var(--muted); font-weight: 600; }
.votd-card__actions { display: flex; gap: var(--space-sm); margin-top: var(--space-lg); flex-wrap: wrap; }

.home-votd { background: var(--accent-tint); }
.home-votd .votd-card { border-left-width: 4px; }

/* ---------- Topics ---------- */
.topic-verse-list { max-width: var(--measure); }
.topic-verse { padding: var(--space-lg) 0; border-bottom: 1px solid var(--line); }
.topic-verse__text { font-family: var(--font-scripture); font-size: 1.1rem; line-height: 1.7; margin-bottom: var(--space-sm); }
.topic-verse__ref { font-weight: 600; color: var(--accent); font-size: 0.9rem; }

/* ---------- Reading plans ---------- */
.plan-day-list { list-style: none; max-width: var(--measure); }
.plan-day { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); padding: var(--space-md) 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.plan-day__check { display: flex; align-items: center; gap: var(--space-sm); cursor: pointer; }
.plan-day__checkbox { width: 18px; height: 18px; accent-color: var(--accent); cursor: pointer; }
.plan-day__num { font-weight: 600; }
.plan-day__refs a { color: var(--accent); font-weight: 500; }
.plan-day__refs a:hover { text-decoration: underline; }
.plan-day.is-done .plan-day__num { color: var(--muted); text-decoration: line-through; }

/* ---------- Version comparison ---------- */
.compare-picker { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.compare-picker__opt { display: inline-flex; align-items: center; gap: 4px; font-size: 0.9rem; }
.compare-grid { display: grid; grid-template-columns: repeat(var(--compare-cols, 2), minmax(0, 1fr)); gap: var(--space-lg); margin-top: var(--space-lg); align-items: start; }
.compare-col { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-lg); background: var(--surface); }
.compare-col__label { font-family: var(--font-body); font-weight: 600; font-size: 1rem; color: var(--accent); margin-bottom: var(--space-md); padding-bottom: var(--space-sm); border-bottom: 1px solid var(--line); }
.compare-col .verse-list { font-size: 1rem; }
.compare-col .verse-actions { display: none !important; }

@media (max-width: 880px) {
  .compare-grid { grid-template-columns: 1fr; }
}

/* ---------- Share menu ---------- */
.share-menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); padding: var(--space-sm); display: flex; flex-direction: column; gap: 2px; min-width: 160px; z-index: 20; }
.share-menu a, .share-menu button { display: block; padding: 8px 10px; border-radius: var(--radius-sm); font-size: 0.9rem; text-align: left; background: none; border: none; cursor: pointer; width: 100%; }
.share-menu a:hover, .share-menu button:hover { background: var(--bg); color: var(--accent); }

/* ---------- Word study (glossary) ---------- */
.glossary-term { background: none; border: none; padding: 0; margin: 0; font: inherit; color: inherit; cursor: pointer; border-bottom: 1.5px dotted var(--accent); }
.glossary-term:hover { color: var(--accent); }
.glossary-popover { position: absolute; z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); padding: var(--space-md); max-width: 280px; font-family: var(--font-body); font-size: 0.9rem; line-height: 1.5; }
.glossary-popover__term { font-weight: 700; text-transform: capitalize; color: var(--accent); display: block; margin-bottom: 4px; }

/* ---------- Related verses (cross-references) ---------- */
.share-menu.xrefs-menu a { font-weight: 500; }

/* ---------- Audio player ---------- */
.audio-player { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md) 0 0; margin-top: var(--space-md); border-top: 1px solid var(--line); }
.audio-player__rate { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--muted); }
.audio-player__rate select { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 6px; background: var(--surface); }
.verse.is-speaking { background: color-mix(in srgb, var(--accent-light) 16%, transparent); border-radius: var(--radius-sm); }
/* ---------- Single content pages (Book/Topic/Person/Place): featured image + layout polish ---------- */
.post-hero-image { width: 100%; aspect-ratio: 3 / 1; max-height: 360px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); margin: 0 0 var(--space-lg); background: var(--surface); }
@media (max-width: 640px) { .post-hero-image { aspect-ratio: 16 / 9; max-height: 220px; } }
.post-type-badge { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 999px; padding: 5px 14px; margin-bottom: var(--space-sm); }
.post-body { max-width: var(--measure); font-size: 1.05rem; }
.post-body p, .book-overview p { margin-bottom: var(--space-md); line-height: 1.75; }
.post-body p:last-child, .book-overview p:last-child { margin-bottom: 0; }
.scripture-ref { color: var(--accent); font-weight: 600; border-bottom: 1.5px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.scripture-ref:hover { border-bottom-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.key-scriptures-section { margin-top: var(--space-xl); padding-top: var(--space-xl); border-top: 1px solid var(--line); }
.key-scriptures-section h2 { font-family: var(--font-heading); font-size: 1.6rem; margin-bottom: var(--space-sm); }
.related-grid-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-xl); padding-top: var(--space-xl); border-top: 1px solid var(--line); margin-bottom: var(--space-lg); }
.related-grid-heading h2 { font-family: var(--font-heading); font-size: 1.4rem; }
.card.card--ref h3 { color: var(--accent); }
/* ---------- Card thumbnails (Topics/People/Places index grids) ---------- */
.card--thumb { padding-top: 0; overflow: hidden; }
.card-thumb-img { width: calc(100% + var(--space-lg) * 2); max-width: none; aspect-ratio: 16 / 10; object-fit: cover; margin: 0 calc(-1 * var(--space-lg)) var(--space-md); }
.card--thumb h3 { margin-top: 0; }
.pagination { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }
.pagination .page-numbers { display: inline-block; padding: 0.4rem 0.75rem; border: 1px solid var(--line); border-radius: var(--radius-sm, 6px); color: var(--text); text-decoration: none; }
.pagination .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Design system additions: wine identity, header, hero, homepage sections ---------- */

/* Sticky header: translucent + subtle blur, compacts on scroll */
.site-header { background: rgba(250,249,246,0.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: padding 0.2s ease, box-shadow 0.2s ease; }
.site-header.is-scrolled .site-header__bar { padding: 10px 0; }
.site-header.is-scrolled { box-shadow: 0 2px 12px rgba(23,20,20,0.06); }
.site-logo { color: var(--ink); }
.primary-nav a[aria-current="page"] { background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.icon-btn:hover { color: var(--accent); }

/* Card hover lift, used across the site's card grids */
.card { transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-light); }
.card:hover h3 { color: var(--accent); }
.chip, .icon-btn, .btn, .btn-outline { transition: all 0.15s ease; }
.search-form:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint), var(--shadow); }

/* Hero: subtle decorative line-art, kept behind the search panel */
.hero { position: relative; overflow: hidden; }
.hero__visual { position: absolute; right: -60px; top: -40px; width: 420px; height: 420px; opacity: 0.06; pointer-events: none; color: var(--accent); z-index: 0; }
.hero__grid { position: relative; z-index: 1; }
.hero h1 { color: var(--ink); }
.hero h1 em { font-style: italic; color: var(--accent); }

/* Section variants */
.section--tint { background: var(--accent-tint); border-top: none; border-bottom: 1px solid var(--line); }
.section__head h2 { color: var(--ink); }
.section__eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-sm); }

/* Pill rows: books / topics */
.pill-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.pill-row a { border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: 0.9rem; font-weight: 500; background: var(--surface); }
.pill-row a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }
.pill-row--topics a { background: var(--accent-tint); border-color: transparent; color: var(--accent-dark); }
.pill-row--topics a:hover { background: var(--accent); color: var(--accent-ink); }

/* Version cards */
.version-card__abbr { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--accent); }
.version-card__name { font-weight: 600; margin: 4px 0 8px; }

/* Reading plan cards (homepage) */
.plan-card__days { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); background: var(--accent-tint); border-radius: 999px; padding: 4px 12px; margin-bottom: var(--space-sm); }

/* Blog cards (homepage) */
.blog-card__meta { font-size: 0.78rem; color: var(--muted); margin-bottom: 4px; }

/* CTA band */
.cta-band { background: var(--accent); color: var(--accent-ink); border-top: none; text-align: center; }
.cta-band h2 { font-family: var(--font-heading); font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: var(--space-sm); }
.cta-band p { color: rgba(255,255,255,0.82); font-size: 1.05rem; max-width: 52ch; margin: 0 auto var(--space-lg); }
.cta-band__actions { display: flex; gap: var(--space-md); justify-content: center; flex-wrap: wrap; }
.cta-band .btn { background: var(--accent-ink); color: var(--accent); }
.cta-band .btn:hover { background: var(--accent-tint); }
.cta-band .btn-outline { border-color: rgba(255,255,255,0.5); color: var(--accent-ink); }
.cta-band .btn-outline:hover { border-color: var(--accent-ink); background: rgba(255,255,255,0.08); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* ---------- Homepage v2: quick tools, split VOTD/CTA, browse-by-group, topic tiles, resource cards, blog upgrade ---------- */

.hero__tools { padding: var(--space-lg) 0; }
.tool-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-sm); }
.tool-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 18px 8px; background: var(--surface); font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.tool-tile svg { width: 22px; height: 22px; color: var(--accent); }
.tool-tile:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.tool-tile--soon { color: var(--muted); cursor: default; }
.tool-tile--soon:hover { border-color: var(--line); box-shadow: none; }
.tool-tile--soon svg { color: var(--muted); }
.tool-tile__badge { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
@media (max-width: 880px) { .tool-tiles { grid-template-columns: repeat(2, 1fr); } }

/* Verse of the Day + Reading Journey split */
.split-panels { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: var(--space-lg); align-items: stretch; }
.split-panels .votd-card { max-width: none; height: 100%; margin: 0; box-sizing: border-box; }
.journey-panel { background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-lg); padding: var(--space-lg); display: flex; flex-direction: column; justify-content: center; gap: var(--space-sm); }
.journey-panel h2 { font-family: var(--font-heading); font-size: 1.4rem; }
.journey-panel p { color: rgba(255,255,255,0.85); font-size: 0.95rem; }
.journey-panel .btn { background: var(--accent-ink); color: var(--accent); align-self: flex-start; margin-top: var(--space-sm); }
.journey-panel .btn:hover { background: var(--accent-tint); }
@media (max-width: 880px) { .split-panels { grid-template-columns: 1fr; } }

/* Browse the Bible: grouped by testament + book-group */
.browse-columns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); }
.browse-testament-label { display: inline-block; background: var(--accent); color: var(--accent-ink); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; margin-bottom: var(--space-lg); }
.browse-group { margin-bottom: var(--space-lg); }
.browse-group h4 { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.browse-group .chip-row { gap: 6px; }
.browse-group .chip { padding: 6px 12px; font-size: 0.82rem; }
@media (max-width: 880px) { .browse-columns { grid-template-columns: 1fr; } }

/* Topic tiles */
.topic-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--space-sm); }
.topic-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px 10px; background: var(--surface); font-weight: 600; font-size: 0.88rem; color: var(--ink); }
.topic-tile svg { width: 20px; height: 20px; color: var(--accent); }
.topic-tile:hover { border-color: var(--accent); background: var(--accent-tint); }

/* Study Tools & Resources cards */
.resource-card { display: flex; flex-direction: column; }
.resource-card__icon { width: 42px; height: 42px; border-radius: var(--radius-md); background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; margin-bottom: var(--space-md); }
.resource-card__icon svg { width: 20px; height: 20px; }
.resource-card--soon { opacity: 0.65; }
.resource-card--soon .resource-card__icon { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.resource-card__soon-badge { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; align-self: flex-start; margin-top: var(--space-sm); }

/* Blog cards: read-time meta + full-width Read More button */
.blog-card__cta { display: block; text-align: center; margin-top: var(--space-md); background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-sm); padding: 10px; font-weight: 600; font-size: 0.88rem; }
.card--thumb:hover .blog-card__cta { background: var(--accent-dark); }
/* Dark hero background overrides (appended so they win cascade order) */
.hero h1 { color: #fff; }
.hero h1 em { color: #E8AAB6; }
.hero p.lede { color: rgba(255,255,255,0.8); }
.hero .hero-stats__item strong { color: #fff; }
.hero .hero-stats__item span { color: rgba(255,255,255,0.64); }
.hero .hero-stats__divider { background: rgba(255,255,255,0.24); }
.hero .search-examples a { color: rgba(255,255,255,0.88); border-color: rgba(255,255,255,0.32); }
.hero .search-examples a:hover { border-color: var(--accent-tint); color: var(--accent-tint); }
.hero .search-form { box-shadow: 0 16px 40px rgba(0,0,0,0.35); border-color: transparent; }
/* Dark page-hero-band hero-stats contrast (e.g. Bible Versions page) */
.page-hero-band .hero-stats__item strong { color: #fff; }
.page-hero-band .hero-stats__item span { color: rgba(255,255,255,0.64); }
.page-hero-band .hero-stats__divider { background: rgba(255,255,255,0.24); }
/* Cross References tool */
.xref-page { padding-top: 2.5rem; padding-bottom: 3.5rem; max-width: 760px; }
.xref-breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.75rem; }
.xref-page h1 { margin-bottom: 0.5rem; }
.xref-page .lede { color: var(--muted); margin-bottom: 1.75rem; }
.xref-picker { background: var(--accent-tint); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem; margin-bottom: 2rem; }
.xref-picker__row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
.xref-picker__row label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; color: var(--ink); flex: 1 1 160px; }
.xref-picker__row select, .xref-picker__row input[type=number] { padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 8px; font-size: 0.95rem; background: var(--bg); min-width: 120px; width: 100%; }
.xref-picker__row button { align-self: flex-end; flex: 0 0 auto; }
.xref-picker__popular-heading { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 0.75rem; }
.xref-picker__popular { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1rem; }
.xref-source-verse { border-left: 3px solid var(--accent); background: var(--accent-tint); padding: 1rem 1.25rem; border-radius: 8px; font-size: 1.1rem; font-style: italic; color: var(--ink); margin: 1rem 0 1.25rem; }
.xref-source-verse cite { display: block; font-style: normal; font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }
.xref-count { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.25rem; }
.xref-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.xref-list__item { border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem 1.1rem; }
.xref-list__ref { font-weight: 700; color: var(--accent); text-decoration: none; }
.xref-list__ref:hover { text-decoration: underline; }
.xref-list__preview { font-family: var(--font-scripture); margin: 0.35rem 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
/* Strong's Concordance */
.strongs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.strongs-list__item { border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem 1.1rem; display: grid; grid-template-columns: auto auto 1fr; gap: 0.6rem 0.9rem; align-items: baseline; }
.strongs-list__num { font-weight: 700; color: var(--accent); text-decoration: none; }
.strongs-list__num:hover { text-decoration: underline; }
.strongs-list__lemma { font-size: 1.05rem; }
.strongs-list__translit { color: var(--muted); font-style: italic; }
.strongs-list__def { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.92rem; }
.strongs-detail__lemma { font-size: 2.2rem; margin-bottom: 0.35rem; }
.strongs-detail__num { color: var(--accent); font-size: 1.2rem; font-weight: 600; }
.strongs-detail__translit { color: var(--muted); font-size: 1.1rem; font-style: italic; margin-bottom: 1.5rem; }
.strongs-detail__heading { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin: 1.5rem 0 0.5rem; }
.strongs-detail__def { font-size: 1.05rem; line-height: 1.6; margin: 0; }
.strongs-detail__search-again { margin-top: 2rem; }
.strongs-attribution { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; }
/* Greek & Hebrew interlinear */
.interlinear-verse { border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.interlinear-verse__ref { font-weight: 700; color: var(--accent); font-size: 0.9rem; margin-bottom: 0.35rem; }
.interlinear-verse__english { font-family: var(--font-scripture); color: var(--muted); font-style: italic; margin: 0 0 0.9rem; line-height: 1.55; }
.interlinear-words { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.interlinear-words[dir="rtl"] { direction: rtl; justify-content: flex-start; }
.interlinear-word { display: inline-flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid var(--line); border-radius: 8px; padding: 0.5rem 0.6rem; min-width: 70px; background: var(--accent-tint); }
.interlinear-word__orig { font-size: 1.15rem; line-height: 1.3; }
.interlinear-word__translit { font-size: 0.72rem; color: var(--muted); font-style: italic; margin-top: 0.15rem; }
.interlinear-word__strongs { font-size: 0.7rem; color: var(--accent); text-decoration: none; margin-top: 0.2rem; font-weight: 600; }
.interlinear-word__strongs:hover { text-decoration: underline; }
.interlinear-word__gloss { font-size: 0.68rem; color: var(--muted); margin-top: 0.1rem; max-width: 90px; }
/* Commentary */
.commentary-outline { background: var(--accent-tint); border-left: 3px solid var(--accent); border-radius: 8px; padding: 0.9rem 1.1rem; font-style: italic; color: var(--ink); margin: 0.5rem 0 1.5rem; }
.commentary-section { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.commentary-section:last-of-type { border-bottom: none; }
.commentary-section__ref { display: inline-block; font-weight: 700; color: var(--accent); text-decoration: none; margin-bottom: 0.4rem; }
.commentary-section__ref:hover { text-decoration: underline; }
.commentary-section__text { margin: 0; line-height: 1.65; color: var(--ink); }
/* Fix: journey-panel icon had no explicit size, so the browser rendered the
   bare SVG at its default intrinsic size (~300x150px), making the whole
   Verse-of-the-Day split-panels row far taller than its actual content. */
.journey-panel svg { width: 40px; height: 40px; flex-shrink: 0; }
/* Popular Bible Passages: fixed 3-column grid (9 cards) so the row is
   always even, with a live-pulled verse excerpt and a themed icon badge
   instead of a hand-typed one-line description. */
.passage-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.passage-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-lg); background: var(--surface); transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.passage-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-light); }
.passage-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); margin-bottom: var(--space-sm); flex-shrink: 0; }
.passage-card__icon svg { width: 22px; height: 22px; }
.passage-card h3 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: var(--space-sm); }
.passage-card__text { font-family: var(--font-scripture); color: var(--muted); font-size: 0.92rem; font-style: italic; line-height: 1.6; flex-grow: 1; margin-bottom: var(--space-md); }
.passage-card__cta { font-weight: 600; color: var(--accent); font-size: 0.9rem; margin-top: auto; }
@media (max-width: 900px) { .passage-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .passage-cards { grid-template-columns: 1fr; } }

/* Popular Topics: fixed 3-column grid (15 cards, 5 rows) so the row is
   always even, redesigned as full cards (icon badge, live excerpt, live
   tagged-verse count) instead of small label-only tiles. */
.topic-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.topic-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-lg); background: var(--surface); transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.topic-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-light); }
.topic-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); margin-bottom: var(--space-sm); flex-shrink: 0; }
.topic-card__icon svg { width: 22px; height: 22px; }
.topic-card h3 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: var(--space-sm); }
.topic-card__desc { color: var(--muted); font-size: 0.9rem; line-height: 1.5; flex-grow: 1; margin-bottom: var(--space-md); }
.topic-card__meta { font-weight: 600; color: var(--accent); font-size: 0.85rem; margin-top: auto; }
@media (max-width: 1000px) { .topic-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .topic-cards { grid-template-columns: 1fr; } }

/* Study Tools & Resources: fixed 3-column grid (6 cards, 2 rows) with a
   dedicated card treatment matching passage-card/topic-card (circular icon
   badge, hover lift) instead of reusing the generic .card + auto-fill
   .grid-cards, which produced an uneven 4+2 row. Coming-soon cards get a
   dashed border and muted icon instead of a flat opacity fade. */
.resource-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.resource-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-lg); background: var(--surface); transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.resource-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-light); }
.resource-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); margin-bottom: var(--space-sm); flex-shrink: 0; }
.resource-card__icon svg { width: 22px; height: 22px; }
.resource-card h3 { font-family: var(--font-heading); font-size: 1.1rem; margin-bottom: var(--space-sm); }
.resource-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.5; flex-grow: 1; margin-bottom: var(--space-md); }
.resource-card > p:last-of-type { flex-grow: 0; margin-top: auto !important; margin-bottom: 0; }
.resource-card--soon { border-style: dashed; background: transparent; }
.resource-card--soon:hover { transform: none; box-shadow: none; border-color: var(--line); }
.resource-card--soon .resource-card__icon { background: var(--bg); color: var(--muted); }
.resource-card--soon h3 { color: var(--muted); }
.resource-card__soon-badge { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; align-self: flex-start; margin-top: auto; }
@media (max-width: 900px) { .resource-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .resource-cards { grid-template-columns: 1fr; } }

/* Bible Atlas */
.atlas-map { width: 100%; height: 420px; border-radius: var(--radius-lg); border: 1px solid var(--line); margin-top: var(--space-md); background: var(--accent-tint); }
.atlas-map__note { font-size: 0.78rem; color: var(--muted); margin-top: var(--space-sm); }
.atlas-list__heading { font-family: var(--font-heading); font-size: 1.3rem; margin-top: var(--space-xl); margin-bottom: var(--space-md); }
.leaflet-popup-content a { color: var(--accent); font-weight: 600; }

/* Bible Dictionary */
.dictionary-search { margin-top: var(--space-md); }
.dictionary-search__input { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 18px; font-size: 1rem; font-family: inherit; background: var(--surface); color: var(--ink); }
.dictionary-search__input:focus { outline: 2px solid var(--accent-light); outline-offset: 1px; }
.dictionary-strongs-note { font-size: 0.88rem; color: var(--muted); margin-top: var(--space-sm); }
.dictionary-strongs-note a { color: var(--accent); font-weight: 600; }
.dictionary-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); margin-top: var(--space-lg); }
.dictionary-entry { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-lg); background: var(--surface); display: flex; flex-direction: column; }
.dictionary-entry__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.dictionary-entry__head h3 { font-family: var(--font-heading); font-size: 1.05rem; }
.dictionary-entry__type { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 999px; padding: 3px 10px; white-space: nowrap; flex-shrink: 0; }
.dictionary-entry__type--term { background: var(--accent-tint); color: var(--accent); }
.dictionary-entry__type--person { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.dictionary-entry__type--place { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.dictionary-entry p { color: var(--muted); font-size: 0.9rem; line-height: 1.5; flex-grow: 1; margin-bottom: var(--space-sm); }
.dictionary-entry__link { font-weight: 600; color: var(--accent); font-size: 0.88rem; margin-top: auto; }
@media (max-width: 900px) { .dictionary-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dictionary-list { grid-template-columns: 1fr; } .atlas-map { height: 320px; } }

/* Choose Your Bible Version: fixed 4-column grid with a live Genesis 1:1
   sample per translation (replaces the flat 'English . public domain'
   line -- every version here is English/public domain already, so that
   line repeated the same fact four times without differentiating them). */
.version-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
.version-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-lg); background: var(--surface); transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.version-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-light); }
.version-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.version-card__abbr { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); font-family: var(--font-heading); font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; }
.version-card__era { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.version-card__name { font-weight: 600; font-size: 0.95rem; margin-bottom: var(--space-sm); }
.version-card__sample { font-family: var(--font-scripture); color: var(--ink); font-style: italic; font-size: 0.92rem; line-height: 1.55; flex-grow: 1; margin-bottom: 2px; }
.version-card__sample-ref { font-size: 0.75rem; color: var(--muted); margin-bottom: var(--space-md); }
.version-card__cta { font-weight: 600; color: var(--accent); font-size: 0.88rem; margin-top: auto; }
@media (max-width: 900px) { .version-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .version-cards { grid-template-columns: 1fr; } }

/* ---------- Homepage: Blog cards (3x2 grid) ---------- */
.blog-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.blog-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--accent-light); }
.blog-card__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.blog-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--space-lg); }
.blog-card__body h3 { font-family: var(--font-heading); font-size: 1.05rem; line-height: 1.35; margin-bottom: var(--space-sm); }
.blog-card__body > p:not(.blog-card__meta) { color: var(--muted); font-size: 0.9rem; margin-bottom: var(--space-md); }
.blog-card__body .blog-card__meta { font-size: 0.78rem; color: var(--muted); margin-bottom: var(--space-md); margin-top: auto; }
.blog-card__meta-sep { margin: 0 6px; }
.blog-card__body .blog-card__cta { display: block; text-align: center; margin-top: 0; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-sm); padding: 10px; font-weight: 600; font-size: 0.88rem; }
.blog-card:hover .blog-card__cta { background: var(--accent-dark); }
@media (max-width: 900px) { .blog-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .blog-cards { grid-template-columns: 1fr; } }
/* ---------- Bible Book landing page: tinted header, tags, pager, switcher ---------- */
.book-hero { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-lg); flex-wrap: wrap; background: var(--accent-tint); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-lg); margin-bottom: var(--space-lg); }
.book-hero__row { display: flex; gap: var(--space-md); align-items: flex-start; }
.book-hero__icon { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.book-hero__icon svg { width: 26px; height: 26px; }
.book-hero__main .page-heading { margin-bottom: var(--space-sm); }
.book-hero__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 5px 14px; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.tag--accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.book-hero__side { display: flex; flex-direction: column; gap: var(--space-md); min-width: 240px; }
.book-switch { display: flex; flex-direction: column; gap: 6px; }
.book-switch__label { font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.book-switch__control { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 10px; background: var(--surface); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.book-switch__control:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.book-switch__control svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.book-switch__select { border: 0; background: transparent; padding: 10px 4px; font-size: 0.95rem; width: 100%; }
.book-switch__select:focus { outline: none; }
.book-pager { display: flex; justify-content: space-between; gap: var(--space-sm); }
.book-pager__link { font-size: 0.85rem; font-weight: 600; color: var(--accent); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; background: var(--surface); transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease; }
.book-pager__link:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent-light); }

/* Chapter picker: jump input + animated chapter grid */
.chapter-picker { margin-top: var(--space-lg); }
.chapter-picker__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-md); }
.chapter-picker__head h2 { font-family: var(--font-heading); font-size: 1.3rem; }
.chapter-jump { display: flex; gap: 8px; }
.chapter-jump__input { width: 100px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; font-size: 0.9rem; }
.chapter-jump__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.chapter-jump__btn { border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); border-radius: var(--radius-sm); padding: 9px 18px; font-weight: 600; font-size: 0.9rem; transition: background 0.15s ease; }
.chapter-jump__btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.chapter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: var(--space-sm); }
.chapter-grid__cell { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 0; text-align: center; background: var(--surface); font-weight: 700; font-size: 1.05rem; transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease, color 0.15s ease; }
.chapter-grid__cell:hover, .chapter-grid__cell:focus-visible { transform: translateY(-3px) scale(1.04); box-shadow: var(--shadow); border-color: var(--accent); background: var(--accent-tint); color: var(--accent); }
@media (max-width: 640px) {
	.book-hero { flex-direction: column; }
	.book-hero__side { width: 100%; }
	.chapter-picker__head { flex-direction: column; align-items: stretch; }
	.chapter-jump { width: 100%; }
	.chapter-jump__input { flex: 1; }
}


/* ---------- Verse study panel (inline expand: cross refs / commentary / interlinear / topics) ---------- */
.verse-panel { margin: var(--space-sm) 0 var(--space-md); padding: var(--space-md); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.verse-panel__loading { color: var(--muted); font-size: 0.9rem; padding: var(--space-sm) 0; }
.verse-panel__tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: var(--space-sm); padding-bottom: 2px; }
.verse-panel__tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: none; background: transparent; border-radius: var(--radius-sm) var(--radius-sm) 0 0; font-size: 0.85rem; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.verse-panel__tab:hover { color: var(--ink); background: var(--accent-tint); }
.verse-panel__tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.verse-panel__tab-count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); font-size: 0.72rem; font-weight: 700; }
.verse-panel__panel { display: none; }
.verse-panel__panel.is-active { display: block; }
.verse-panel__empty { color: var(--muted); font-style: italic; font-size: 0.92rem; margin: 0; }
.verse-panel__label { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); margin: 0 0 var(--space-xs); }
.verse-panel__xref-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.verse-panel__xref-list li a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; color: var(--ink); background: var(--bg); }
.verse-panel__xref-list li a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }
.verse-panel__prose { font-size: 0.95rem; line-height: 1.7; color: var(--ink); }
.verse-panel__prose p { margin: 0 0 var(--space-sm); }
.verse-panel__words { display: flex; flex-wrap: wrap; gap: 10px; }
.verse-panel__words.is-rtl { flex-direction: row-reverse; }
.verse-panel__word { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); min-width: 72px; text-align: center; }
.verse-panel__word-orig { font-size: 1.1rem; color: var(--ink); }
.verse-panel__word-translit { font-size: 0.78rem; font-style: italic; color: var(--muted); }
.verse-panel__word-gloss { font-size: 0.72rem; color: var(--muted); }
.verse-panel__word-strongs { font-size: 0.7rem; font-weight: 700; color: var(--accent); text-decoration: none; margin-top: 2px; }
.verse-panel__word-strongs:hover { text-decoration: underline; }
.verse-panel__topic-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.verse-panel__footer { margin: var(--space-md) 0 0; padding-top: var(--space-sm); border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }
.verse-panel__footer a { color: var(--accent); }
@media (max-width: 640px) {
	.verse-panel__tabs { overflow-x: auto; flex-wrap: nowrap; }
	.verse-panel__tab { flex-shrink: 0; }
	.verse-panel__word { min-width: 60px; }
}

/* ---------- Bible Study Assistant (AI chat) ---------- */
.assistant-hero__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); margin-bottom: var(--space-sm); }
.assistant-hero__icon svg { width: 26px; height: 26px; color: #fff; }
.assistant-hero__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: var(--space-md); }
.assistant-hero__tags .tag { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.92); }
.assistant { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1fr 300px; gap: var(--space-lg); align-items: start; }
.assistant__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-md); box-shadow: 0 12px 30px -18px rgba(23,23,23,0.18); }
.assistant__card-head { display: flex; align-items: center; gap: var(--space-sm); padding-bottom: var(--space-sm); margin-bottom: var(--space-sm); border-bottom: 1px solid var(--line); }
.assistant__card-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-tint); flex-shrink: 0; }
.assistant__card-icon svg { width: 20px; height: 20px; color: var(--accent); }
.assistant__card-title { margin: 0; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.assistant__card-status { margin: 2px 0 0; font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.assistant__status-dot { width: 7px; height: 7px; border-radius: 50%; background: #3E9C63; box-shadow: 0 0 0 3px rgba(62,156,99,0.2); flex-shrink: 0; }
.assistant__disclaimer { display: flex; align-items: flex-start; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--accent-tint); margin-bottom: var(--space-md); }
.assistant__disclaimer svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.assistant__disclaimer p { margin: 0; font-size: 0.85rem; color: var(--muted); }
.assistant__log { display: flex; flex-direction: column; gap: var(--space-sm); min-height: 280px; max-height: 60vh; overflow-y: auto; padding: var(--space-md); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); margin-bottom: var(--space-sm); }
.assistant__message { max-width: 85%; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-md); font-size: 0.95rem; line-height: 1.6; }
.assistant__message p { margin: 0 0 var(--space-xs); }
.assistant__message p:last-child { margin-bottom: 0; }
.assistant__message--ai { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.assistant__message--user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.assistant__message--error { align-self: flex-start; background: var(--surface); border: 1px solid var(--accent-light); color: var(--accent-dark); }
.assistant__message--loading { align-self: flex-start; color: var(--muted); font-style: italic; }
.assistant__form { display: flex; gap: var(--space-sm); align-items: flex-end; }
.assistant__input { flex: 1; resize: vertical; min-height: 46px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); font: inherit; font-size: 0.95rem; background: var(--bg); }
.assistant__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); background: var(--surface); }
.assistant__send { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; border: none; background: var(--accent); color: #fff; font-size: 1.2rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.15s ease, background 0.15s ease; }
.assistant__send:hover { background: var(--accent-dark); transform: translateY(-1px); }
.assistant__send:disabled { opacity: 0.6; cursor: default; transform: none; }
.assistant__side { position: sticky; top: var(--space-lg); display: flex; flex-direction: column; }
.assistant__side-label { margin: 0 0 var(--space-sm); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.assistant__examples { display: flex; flex-direction: column; gap: 8px; }
.assistant__example { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); font-size: 0.85rem; color: var(--ink); text-align: left; cursor: pointer; transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease; }
.assistant__example:hover { border-color: var(--accent); background: var(--accent-tint); transform: translateX(2px); }
.assistant__example-icon { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-tint); flex-shrink: 0; }
.assistant__example-icon svg { width: 14px; height: 14px; color: var(--accent); }
.assistant__side-divider { height: 1px; background: var(--line); margin: var(--space-md) 0; }
.assistant__sources { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.assistant__sources li { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--muted); }
.assistant__sources svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
@media (max-width: 900px) {
	.assistant { grid-template-columns: 1fr; }
	.assistant__side { position: static; }
}
@media (max-width: 560px) {
	.assistant__message { max-width: 92%; }
}
/* Page hero band -- dark Deep Wine section for index pages (Bible Topics, etc.) */
.page-hero-band { background: linear-gradient(155deg, var(--accent-dark), #2E0A12); padding: var(--space-xl) 0; text-align: center; }
.page-hero-band h1 { font-family: var(--font-heading); color: #fff; font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; }
.page-hero-band p { color: rgba(255,255,255,0.72); font-size: 1.05rem; max-width: 60ch; margin: var(--space-sm) auto 0; }

.topics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-md); }
@media (max-width: 1000px) { .topics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .topics-grid { grid-template-columns: 1fr; } }

.page-hero-band--article { background: var(--bg); text-align: left; padding: var(--space-lg) 0 var(--space-md); border-bottom: 1px solid var(--line); }
.page-hero-band--article + .container.page-section { padding-top: var(--space-md); }
.page-hero-band--article .breadcrumb { color: var(--muted); margin-bottom: var(--space-sm); }
.page-hero-band--article .breadcrumb a { color: var(--muted); }
.page-hero-band--article .breadcrumb a:hover { color: var(--accent); }
.page-hero-band--article .post-type-badge { background: var(--accent-tint); color: var(--accent); }
.page-hero-band--article h1 { text-align: left; color: var(--ink); margin: 0 0 var(--space-sm); font-size: clamp(1.9rem, 4.2vw, 2.9rem); max-width: none; }
.page-hero-band--article .post-meta { color: var(--muted); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--muted); }
.post-meta__dot { opacity: 0.55; }
.post-layout { display: grid; grid-template-columns: 1fr 280px; gap: var(--space-xl); align-items: start; margin-top: var(--space-lg); }
.post-layout .post-body { max-width: var(--measure); }
@media (max-width: 900px) {
	.post-layout { grid-template-columns: 1fr; }
	.post-sidebar { position: static; }
}
.post-back { margin-top: var(--space-xl); }
.post-sidebar { position: sticky; top: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-md); }
.post-sidebar__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-md); }
.post-sidebar__title { margin: 0 0 var(--space-sm); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.post-sidebar__list { list-style: none; margin: 0; padding: 0; }
.post-sidebar__list li + li { border-top: 1px solid var(--line); }
.post-sidebar__list a { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-radius: var(--radius-sm); transition: background 0.15s ease; }
.post-sidebar__list a:hover { background: var(--accent-tint); }
.post-sidebar__icon { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-tint); flex-shrink: 0; }
.post-sidebar__icon svg { width: 15px; height: 15px; color: var(--accent); }
.post-sidebar__thumb { display: block; width: 44px; height: 44px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.post-sidebar__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-sidebar__list--external .post-sidebar__icon { background: var(--bg); border: 1px solid var(--line); }
.post-sidebar__list--external .post-sidebar__icon svg { color: var(--muted); }
.post-sidebar__item-label { display: block; font-size: 0.88rem; font-weight: 600; line-height: 1.3; color: var(--ink); }
.post-sidebar__item-type { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 1px; }
.verse-preview-popover { position: absolute; z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow); padding: var(--space-sm) var(--space-md); max-width: 320px; font-family: var(--font-scripture); font-size: 0.92rem; line-height: 1.6; color: var(--ink); pointer-events: none; }
.verse-preview-popover__ref { display: block; font-family: var(--font-body); font-weight: 700; font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }

.page-hero-band--article .article-eyebrow { display: inline-block; font-family: var(--font-body); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: var(--space-sm) 0 var(--space-sm); }
.page-hero-band--article .article-lede { color: var(--muted); font-size: 1.08rem; max-width: none; margin: var(--space-sm) 0 0; }
.post-share { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.post-share a, .post-share__copy { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 0; cursor: pointer; border-radius: 50%; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.post-share a svg, .post-share__copy svg { width: 14px; height: 14px; }
.post-share a:hover, .post-share__copy:hover { background: var(--accent-tint); color: var(--accent); border-color: var(--accent); }

.post-meta__author { display: inline-flex; align-items: center; gap: 8px; }
.post-avatar { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 0.8rem; flex-shrink: 0; }
.post-sidebar__toc { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.post-sidebar__toc a { font-size: 0.9rem; color: var(--muted); line-height: 1.4; display: block; padding: 4px 0; }
.post-sidebar__toc a:hover { color: var(--accent); }
.post-sidebar__card--votd { background: var(--accent-tint); border-color: transparent; }
.post-sidebar__votd-text { font-family: var(--font-scripture); font-style: italic; font-size: 0.95rem; line-height: 1.6; color: var(--ink); margin: 0 0 var(--space-sm); }
.post-sidebar__votd-ref { font-weight: 600; font-size: 0.85rem; color: var(--accent); margin: 0 0 var(--space-sm); }
.post-sidebar__votd-link { font-size: 0.85rem; font-weight: 600; color: var(--accent); }
.search-form--mini { margin-top: 0; padding: 4px; }
.search-form--mini input[type="search"] { padding: 8px 10px; font-size: 0.9rem; }
.search-form--mini button { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--accent); color: #fff; border: none; cursor: pointer; flex-shrink: 0; }
.search-form--mini button svg { width: 15px; height: 15px; }
.post-pager { margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
.post-pager__link { display: flex; flex-direction: column; gap: 4px; padding: var(--space-md); border: 1px solid var(--line); border-radius: var(--radius-md); transition: border-color 0.15s, box-shadow 0.15s; }
.post-pager__link:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.post-pager__link span { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.post-pager__link strong { font-family: var(--font-heading); font-size: 1rem; color: var(--ink); }
.post-pager__link--next { text-align: right; align-items: flex-end; }
.section-heading-center { text-align: center; margin-bottom: var(--space-lg); }
@media (max-width: 640px) {
  .post-pager { grid-template-columns: 1fr; }
  .post-pager__link--next { text-align: left; align-items: flex-start; }
}


/* ---- About page (Our Story / Mission-Vision / Values) ---- */
.about-story {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	gap: var(--space-xl);
	align-items: center;
	margin-bottom: var(--space-xl);
}
.about-story img {
	width: 100%;
	height: 100%;
	min-height: 280px;
	object-fit: cover;
	border-radius: var(--radius-md);
}
.about-story h2 {
	font-family: var(--font-heading);
	font-size: clamp(1.6rem, 3vw, 2.1rem);
	margin: 0 0 var(--space-md);
}
.about-story p {
	color: var(--muted);
	line-height: 1.75;
	margin-bottom: var(--space-sm);
}
.about-highlights {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--space-lg);
}
.about-highlight {
	background: var(--surface);
	border: 1px solid var(--line);
	border-left: 3px solid var(--accent);
	border-radius: var(--radius-md);
	padding: var(--space-lg);
}
.about-highlight h3 {
	font-family: var(--font-heading);
	font-size: 1.3rem;
	margin: 0 0 var(--space-sm);
	color: var(--accent);
}
.about-highlight p {
	color: var(--muted);
	line-height: 1.7;
	margin: 0;
}
.about-values {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: var(--space-xl);
	align-items: center;
}
.about-values ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}
.about-values ul li > div {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-left: var(--space-md);
	border-left: 2px solid var(--accent-light);
}
.about-values ul li strong {
	font-family: var(--font-heading);
	font-size: 1.05rem;
	color: var(--ink);
}
.about-values ul li span {
	color: var(--muted);
	line-height: 1.6;
	font-size: 0.95rem;
}
.about-values img {
	width: 100%;
	height: 100%;
	min-height: 280px;
	object-fit: cover;
	border-radius: var(--radius-md);
}
@media (max-width: 880px) {
	.about-story,
	.about-values {
		grid-template-columns: 1fr;
	}
	.about-story img,
	.about-values img {
		min-height: 220px;
	}
	.about-highlights {
		grid-template-columns: 1fr;
	}
	.about-values img {
		order: -1;
	}
}


/* ---------- Bible Verses by Topic (A-Z index) ---------- */
.az-jump { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--space-lg) 0; }
.az-jump__link { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 0.85rem; text-decoration: none; transition: background 0.15s ease, color 0.15s ease; }
.az-jump__link:hover { background: var(--accent-tint); color: var(--accent); }
.az-jump__link--empty { color: var(--muted); opacity: 0.35; cursor: default; }
.verse-index__group { margin-bottom: var(--space-xl); scroll-margin-top: 90px; }
.verse-index__letter { font-family: var(--font-heading); font-size: 1.6rem; color: var(--accent); border-bottom: 1px solid var(--line); padding-bottom: var(--space-sm); margin-bottom: var(--space-md); }
.verse-index__item { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-md); padding: var(--space-md) 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.verse-index__item:last-child { border-bottom: none; }
.verse-index__item:hover h3 { color: var(--accent); }
.verse-index__item-main h3 { font-family: var(--font-heading); font-size: 1.15rem; margin: 0 0 4px; color: var(--ink); transition: color 0.15s ease; }
.verse-index__item-main p { margin: 0; color: var(--muted); font-size: 0.92rem; max-width: 60ch; }
.verse-index__item .tag { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 640px) { .verse-index__item { flex-direction: column; gap: var(--space-sm); } }

@media (max-width: 880px) {
  .primary-nav.is-open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: var(--space-md);
    gap: 2px;
    z-index: 99;
  }
  .primary-nav.is-open ul li { width: 100%; }
  .primary-nav.is-open ul a { display: block; padding: 12px 14px; }
}

@media (max-width: 640px) {
  .select-group { flex-wrap: wrap; }
  .select-group select { flex: 1 1 130px; min-width: 100px; }
}

@media (max-width: 640px) {
  .hero { padding: var(--space-lg) 0 var(--space-md); }
  .hero__glow { width: 170px; height: 170px; top: -40px; }
  .hero__mountains { height: 80px; }
  .site-logo { font-size: 1.05rem; gap: 8px; white-space: nowrap; }
  .site-logo__icon { width: 30px; height: 30px; }
  .site-logo__icon svg { width: 15px; height: 15px; }
  .header-actions { gap: var(--space-sm); padding-left: var(--space-sm); }
  .header-actions .btn { padding: 8px 12px; font-size: 0.78rem; white-space: nowrap; }
}

@media (max-width: 640px) {
  .search-form { flex-wrap: wrap; }
  .search-form select { flex: 0 0 auto; }
  .search-form input[type="search"] { flex: 1 1 auto; min-width: 0; }
  .search-form > .btn { flex: 1 1 100%; }
  .search-form .btn svg { width: 18px; height: 18px; flex-shrink: 0; }
}
