:root {
  color-scheme: light;
  --bg: #f8fbff;
  --surface: #ffffff;
  --surface-soft: #edf5ff;
  --field-bg: #f7fbff;
  --text: #102a43;
  --muted: #52677a;
  --brand: #2563eb;
  --brand-dark: #1e3a8a;
  --accent: #f59e0b;
  --border: #d8e4f0;
  --header-bg: rgba(248, 251, 255, 0.86);
  --hero-start: #ffffff;
  --footer-bg: #102a43;
  --footer-border: rgba(255, 255, 255, 0.12);
  --footer-text: #d8e4f0;
  --footer-heading: #ffffff;
  --footer-muted: #a9bfd4;
  --footer-accent: #93c5fd;
  --card-shadow: 0 16px 45px rgba(16, 42, 67, 0.08);
  --shadow: 0 24px 70px rgba(16, 42, 67, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #07111f;
  --surface: #101d2d;
  --surface-soft: #16263a;
  --field-bg: #0b1727;
  --text: #edf6ff;
  --muted: #a9bbd0;
  --brand: #7db1ff;
  --brand-dark: #bfdbfe;
  --accent: #fbbf24;
  --border: rgba(148, 163, 184, 0.26);
  --header-bg: rgba(7, 17, 31, 0.86);
  --hero-start: #0b1727;
  --footer-bg: #0b1727;
  --footer-border: rgba(148, 163, 184, 0.26);
  --footer-text: #c8d8ea;
  --footer-heading: #ffffff;
  --footer-muted: #93a8c0;
  --footer-accent: #7db1ff;
  --card-shadow: 0 20px 52px rgba(0, 0, 0, 0.3);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

main > section:not(.hero) {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}

#topics {
  contain-intrinsic-size: 1px 4600px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(216, 228, 240, 0.7);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: block;
  width: 52.5px;
  height: 52.5px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand img {
  display: block;
  width: 52.5px;
  height: 52.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--brand);
}

.nav-links > li > a {
  position: relative;
  padding: 8px 0;
}

.nav-links > li > a::after {
  position: absolute;
  right: 50%;
  bottom: 1px;
  left: 50%;
  height: 3px;
  content: "";
  background: var(--brand);
  border-radius: 999px;
  transition: right 160ms ease, left 160ms ease;
}

.nav-links > li > a:hover::after,
.nav-links > li > a:focus-visible::after,
.nav-links > li > a[aria-current="page"]::after {
  right: 0;
  left: 0;
}

.nav-links a[aria-current="page"] {
  color: var(--brand);
  font-weight: 800;
}

.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 0;
  color: inherit;
  font: inherit;
  font-weight: 700;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible {
  color: var(--brand);
}

.nav-dropdown-caret {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  transition: transform 160ms ease;
}

.nav-item-dropdown.is-open .nav-dropdown-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  z-index: 30;
  min-width: 190px;
  padding: 8px;
  margin: 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms;
}

.nav-item-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--text);
  font-weight: 700;
  border-radius: 10px;
}

.nav-dropdown-icon {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: currentColor;
  stroke: none;
  opacity: 0.75;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  color: var(--brand);
  background: var(--surface-soft);
}

.nav-dropdown-menu a:hover .nav-dropdown-icon,
.nav-dropdown-menu a:focus-visible .nav-dropdown-icon {
  opacity: 1;
}

.nav-dropdown-menu a[aria-current="page"] {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
}

.nav-dropdown-menu a[aria-current="page"] .nav-dropdown-icon {
  opacity: 1;
}

@media (hover: hover) and (pointer: fine) and (min-width: 881px) {
  .nav-item-dropdown:hover .nav-dropdown-menu,
  .nav-item-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
}

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 44px;
}

.nav-search-toggle {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  min-height: 44px;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.nav-search-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.nav-search-toggle:hover,
.nav-search-toggle:focus-visible,
.nav-search.is-open .nav-search-toggle {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

.nav-search-fields {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 250px;
  padding: 8px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transform: translateY(-6px);
  transition: opacity 140ms ease, transform 180ms ease, visibility 0s linear 180ms;
}

.nav-search.is-open .nav-search-fields {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.nav-search input {
  width: 178px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.nav-search input:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.nav-search-submit {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: var(--brand);
  color: #ffffff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.nav-search-submit:hover,
.nav-search-submit:focus-visible {
  background: var(--brand-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
}

.theme-toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 44px;
  min-height: 44px;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(16, 42, 67, 0.08);
  font-size: 0.88rem;
  font-weight: 800;
}

.theme-toggle [data-theme-label] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
  outline: none;
}

.theme-toggle-icon {
  position: relative;
  display: block;
  width: 19px;
  height: 19px;
  color: var(--brand);
}

.theme-toggle:hover .theme-toggle-icon,
.theme-toggle:focus-visible .theme-toggle-icon {
  color: inherit;
}

.theme-toggle-icon svg {
  position: absolute;
  inset: 0;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
  transition: opacity 220ms ease, transform 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-icon-sun {
  opacity: 0;
  transform: rotate(-70deg) scale(0.45);
}

.theme-icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-icon-moon {
  opacity: 0;
  transform: rotate(70deg) scale(0.45);
}

.nav-theme-item {
  display: flex;
  align-items: center;
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle-icon svg {
    transition: none;
  }
}

.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 650px;
  align-items: center;
  padding: 104px 0 96px;
  background:
    linear-gradient(
      90deg,
      var(--hero-left, rgba(5, 20, 36, 0.96)) 0%,
      var(--hero-mid, rgba(8, 32, 52, 0.88)) 42%,
      var(--hero-fade, rgba(8, 32, 52, 0.48)) 66%,
      var(--hero-edge, rgba(8, 32, 52, 0.16)) 100%
    ),
    linear-gradient(180deg, rgba(7, 24, 41, 0.08), rgba(7, 24, 41, 0.36)),
    var(--hero-image, url("images/hero/desktop/bible-study-rod-long.webp")) var(--hero-position, center 48%) / cover no-repeat;
}

[data-hero-shade="strong"] {
  --hero-left: rgba(5, 20, 36, 0.98);
  --hero-mid: rgba(8, 32, 52, 0.94);
  --hero-fade: rgba(8, 32, 52, 0.66);
  --hero-edge: rgba(8, 32, 52, 0.3);
}

.hero::after {
  position: absolute;
  left: -100px;
  bottom: -210px;
  width: 720px;
  height: 420px;
  content: "";
  background: radial-gradient(circle, rgba(42, 155, 255, 0.28), transparent 68%);
  filter: blur(4px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 48px;
  align-items: center;
}

.hero-grid-primary {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(32px, 5vw, 72px);
}

.hero-copy {
  position: relative;
  padding: 22px 0;
}

.hero .eyebrow {
  color: #7dd3fc;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.24);
}

.hero h1 {
  max-width: 720px;
  color: #ffffff;
  font-size: clamp(2.55rem, 6vw, 4.6rem);
  text-wrap: balance;
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.38);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1,
.hero-panel h2 {
  font-family: "Libre Baskerville", Georgia, serif;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.55rem, 7vw, 5.3rem);
}

.hero-text {
  max-width: 760px;
  margin: 0 0 30px;
  color: rgba(241, 247, 252, 0.88);
  font-size: 1.18rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.32);
}

.search-card {
  align-self: end;
  justify-self: end;
  width: 100%;
  max-width: 420px;
  margin-bottom: 22px;
  padding: 24px;
  background: rgba(248, 251, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  box-shadow:
    0 24px 62px rgba(1, 12, 24, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(13px) saturate(120%);
  -webkit-backdrop-filter: blur(13px) saturate(120%);
  transform: translateY(-30px);
}

.search-card-heading {
  display: grid;
  gap: 5px;
  margin: 0 2px 14px;
}

.search-card-heading label {
  color: #ffffff;
  font-size: 1.08rem;
  font-weight: 800;
}

.search-card-heading span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  line-height: 1.45;
}

.search-input-wrap > svg,
.search-row button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  padding: 6px;
  background: rgba(7, 31, 53, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  box-shadow:
    0 8px 24px rgba(15, 42, 67, 0.08),
    inset 0 1px 2px rgba(15, 42, 67, 0.03);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-row:focus-within {
  border-color: #60a5fa;
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.14),
    0 12px 30px rgba(15, 42, 67, 0.12);
}

.search-input-wrap {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 12px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(7, 31, 53, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
}

.search-input-wrap > svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
}

.search-row input {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  background: transparent;
  border: 0;
  border-radius: 0;
  outline: none;
}

.search-row input::placeholder {
  color: rgba(255, 255, 255, 0.46);
  opacity: 1;
}

.search-row input:focus {
  box-shadow: none;
}

.search-row button,
.cta-link {
  min-height: 56px;
  padding: 0 24px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.25);
}

.hero .search-row button {
  display: inline-flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    linear-gradient(135deg, rgba(7, 31, 53, 0.98), rgba(13, 43, 73, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    0 16px 34px rgba(1, 12, 24, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.hero .search-row button svg {
  width: 17px;
  height: 17px;
}

.hero .search-row button:hover,
.hero .search-row button:focus-visible {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    linear-gradient(135deg, rgba(9, 38, 66, 0.98), rgba(22, 72, 107, 0.94));
  border-color: rgba(147, 197, 253, 0.36);
  box-shadow:
    0 18px 38px rgba(1, 12, 24, 0.34),
    0 0 0 1px rgba(147, 197, 253, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transform: translateY(-1px);
}

.search-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  width: 100%;
  margin: 16px 2px 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 700;
}

.search-hint > span {
  margin-right: 1px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.search-hint button,
.search-hint a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  color: #ffffff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  background: rgba(7, 31, 53, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.hero .search-hint button,
.hero .search-hint a {
  color: #ffffff;
}

.search-hint button:hover,
.search-hint button:focus-visible,
.search-hint a:hover,
.search-hint a:focus-visible {
  color: #ffffff;
  background: #2563eb;
  border-color: #2563eb;
  outline: none;
}

.hero-photo-credit {
  position: absolute;
  right: max(18px, calc((100vw - 1120px) / 2));
  bottom: 14px;
  z-index: 2;
  margin: 0;
  padding: 4px 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  font-weight: 500;
  background: rgba(5, 20, 36, 0.2);
  border-radius: 999px;
  opacity: 0.7;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-photo-credit a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px 30px 28px;
  scroll-margin-top: 100px;
  background:
    linear-gradient(155deg, color-mix(in srgb, var(--brand) 4%, var(--surface)) 0%, var(--surface) 58%),
    var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7db1ff, #22d3ee, #8b5cf6);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0.85;
  pointer-events: none;
}

.hero-panel::after {
  position: absolute;
  right: -74px;
  bottom: -46px;
  width: 220px;
  height: 110px;
  content: "";
  border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
  border-radius: 999px;
  opacity: 0.55;
  pointer-events: none;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.hero-panel h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.22;
}

.hero-panel p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.ask-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
  padding: 4px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.ask-mode-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ask-mode-toggle label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
  border-radius: calc(var(--radius-sm) - 4px);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.ask-mode-toggle input:checked + label {
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 35%, transparent);
}

.ask-mode-toggle input:focus-visible + label {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero-ask-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
}

.hero-ask-form textarea,
.hero-ask-form input,
.hero-ask-form select {
  width: 100%;
  color: var(--text);
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.hero-ask-form textarea::placeholder,
.hero-ask-form input::placeholder {
  color: var(--muted);
  opacity: 0.75;
}

.hero-ask-form textarea {
  min-height: 96px;
  padding: 13px 15px;
  resize: none;
  line-height: 1.48;
}

.hero-ask-form input,
.hero-ask-form select {
  height: 46px;
  padding: 0 14px;
}

.hero-ask-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
  cursor: pointer;
}

.hero-ask-form select option {
  background-color: var(--surface);
  color: var(--text);
}

.hero-ask-form textarea:focus,
.hero-ask-form input:focus,
.hero-ask-form select:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

.hero-ask-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.hero-ask-row[hidden] {
  display: none;
}

.hero-ask-row .full-width {
  grid-column: 1 / -1;
}

.hero-ask-button {
  width: 100%;
  min-height: 50px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 52%, #14b8a6 100%);
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow:
    0 14px 30px rgba(14, 165, 233, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 160ms cubic-bezier(0.16, 1, 0.3, 1), filter 160ms ease;
}

.hero-ask-button svg {
  transition: transform 160ms ease;
}

.hero-ask-button:hover,
.hero-ask-button:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow:
    0 18px 36px rgba(14, 165, 233, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.hero-ask-button:hover svg {
  transform: translateX(3px);
}

.hero-ask-button:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(14, 165, 233, 0.28);
}

.hero-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 12px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-form-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.hero-form-badge svg {
  color: var(--accent);
  flex-shrink: 0;
}

.hero-form-dot {
  opacity: 0.45;
}

.hero-panel .ask-status {
  min-height: 1.2em;
  margin: 4px 0 0;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.4;
  text-align: center;
}

.panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-bottom: 12px;
  padding: 5px 12px;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
  border-radius: 999px;
}

.panel-tag svg {
  color: var(--brand);
  flex-shrink: 0;
}

.hero-panel a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--brand);
  font-weight: 800;
  border-bottom: 2px solid var(--accent);
}

.question-results-section {
  background: var(--surface-soft);
  scroll-margin-top: 96px;
}

.promise-section {
  position: relative;
  overflow: hidden;
  padding: 64px 0 28px;
  background: var(--bg);
}

.promise-card {
  position: relative;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 18px;
  isolation: isolate;
  padding: 46px 56px 26px;
  text-align: center;
  background: linear-gradient(155deg, #0e2238 0%, #0a1a2c 55%, #071322 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  box-shadow:
    0 30px 70px -18px rgba(5, 15, 26, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.promise-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 18% -10%, rgba(125, 177, 255, 0.16), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(34, 211, 238, 0.12), transparent 50%),
    radial-gradient(circle at 82% 92%, rgba(99, 102, 241, 0.08), transparent 46%);
  pointer-events: none;
  z-index: -1;
}

.promise-card::after {
  position: absolute;
  right: clamp(-500px, -34vw, -280px);
  bottom: -6px;
  width: clamp(760px, 82vw, 1180px);
  aspect-ratio: 212.76 / 77.77;
  content: "";
  background: #ffffff;
  mask: url("/SVG/wordoasis-mark.svg") center / contain no-repeat;
  -webkit-mask: url("/SVG/wordoasis-mark.svg") center / contain no-repeat;
  opacity: 0.02;
  pointer-events: none;
  z-index: 0;
}

.promise-copy,
.promise-actions,
.promise-status,
.promise-navigation {
  position: relative;
  z-index: 1;
}

.promise-copy {
  display: grid;
  justify-items: center;
  width: 100%;
}

.promise-copy.is-transitioning,
#spotlight-body.is-transitioning {
  animation: premium-card-content-enter 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes premium-card-content-enter {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(14px) scale(0.985);
  }

  55% {
    opacity: 1;
    filter: blur(0);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

.promise-card .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-bottom: 20px;
  padding: 7px 13px;
  color: #fde68a;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.promise-card .eyebrow::before {
  display: none;
}

.promise-preferences {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  margin: -7px 0 6px;
}

.promise-preference {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(226, 232, 240, 0.62);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promise-preference select {
  min-height: 30px;
  padding: 3px 24px 3px 9px;
  color: rgba(255, 255, 255, 0.86);
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font: inherit;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.promise-preference select:focus-visible {
  outline: 2px solid #fde68a;
  outline-offset: 3px;
}

.promise-card blockquote {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 720px;
  min-height: var(--promise-text-height, clamp(8rem, 16vw, 11rem));
  margin: 0 0 14px;
  padding: 10px clamp(24px, 5vw, 54px);
  color: #ffffff;
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.25vw, 1.95rem);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: -0.028em;
  text-align: center;
  text-wrap: balance;
}

.promise-card blockquote::before {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "\201C";
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(9rem, 22.5vw, 16.5rem);
  font-weight: 700;
  line-height: 0.7;
  opacity: 0.06;
  pointer-events: none;
  transform: translate(-50%, -42%);
}

.promise-measure {
  position: absolute;
  inset: auto auto auto -9999px;
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  visibility: hidden;
  pointer-events: none;
}

.promise-quote {
  position: relative;
  z-index: 1;
}

.promise-reference {
  margin: 0;
  color: #fde68a;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  text-underline-offset: 4px;
}

.promise-reference:hover,
.promise-reference:focus-visible {
  text-decoration: underline;
}

.promise-actions button {
  min-height: 44px;
  padding: 8px 18px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.promise-actions button:hover,
.promise-actions button:focus-visible {
  color: #071424;
  background: #fbbf24;
  border-color: #fbbf24;
  transform: translateY(-2px);
}

.promise-social-share.promise-social-instagram {
  padding: 0;
  line-height: 1;
}

.promise-social-share.promise-social-instagram svg {
  display: block;
}

.promise-navigation,
.promise-share-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 100%;
}

.promise-actions {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: 100%;
}

.share-action-group {
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  background: color-mix(in srgb, var(--brand) 4%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--border));
  border-radius: 16px;
}

.promise-card .share-action-group {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.share-group-heading {
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
}

.share-mode-selector {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  width: 204px;
  padding: 3px;
  color: #ffffff;
  isolation: isolate;
  background: rgba(118, 118, 128, 0.28);
  border: 0;
  border-radius: 12px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 1px 2px rgba(2, 12, 27, 0.08);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.share-mode-selector::before {
  position: absolute;
  z-index: 0;
  top: 3px;
  bottom: 3px;
  left: var(--share-thumb-left, 3px);
  width: calc(50% - 3px);
  content: "";
  background: linear-gradient(180deg, #ffffff 0%, #f7f7fa 100%);
  border: 0.5px solid rgba(0, 0, 0, 0.08);
  border-radius: 9px;
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.16),
    0 0.5px 1px rgba(0, 0, 0, 0.12);
  transition: left 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.share-mode-selector button {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 34px;
  padding: 5px 14px;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  border: 0;
  border-radius: 9px;
  box-shadow: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: color 180ms ease;
}

.share-mode-selector button[aria-pressed="true"] {
  color: #111827;
  background: transparent;
  box-shadow: none;
}

.promise-card .share-mode-selector button[aria-pressed="false"] {
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
}

.promise-card .share-mode-selector button[aria-pressed="true"] {
  color: #111827;
  background: transparent;
}

.share-social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.promise-card .promise-share-buttons {
  display: grid;
  justify-items: center;
}

.promise-card .share-mode-selector::before,
.promise-card .share-mode-selector button {
  transition: none;
}

.promise-share-primary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.promise-share-label {
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

@media (min-width: 1100px) {
  .promise-card .promise-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .promise-card .share-action-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: auto;
    padding: 10px 12px 10px 16px;
    border-radius: 18px;
  }

  .promise-card .promise-share-label {
    width: 82px;
    max-width: 82px;
    line-height: 1.35;
  }

  .promise-card .share-mode-selector {
    flex: 0 0 184px;
    width: 184px;
  }

  .promise-card .promise-share-buttons {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
  }

  .promise-card .share-social-icons,
  .promise-card .promise-share-primary {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .promise-card .promise-social-share {
    width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .promise-card .promise-share-primary button {
    min-height: 40px;
    padding: 7px 14px;
  }

}

.promise-share-primary[hidden],
.bible-selection-actions[hidden] {
  display: none;
}

.promise-social-share {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow: none;
  font: inherit;
  text-decoration: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.promise-actions .promise-social-share {
  padding: 0;
}

.promise-social-share svg {
  display: block;
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin: 0;
  fill: currentColor;
}

.promise-social-share:hover,
.promise-social-share:focus-visible {
  color: #ffffff;
  transform: translateY(-2px);
}

/* Brand colour appears on hover only, so the resting row stays calm and
   monochrome instead of four competing logos. */
.promise-social-facebook:hover,
.promise-social-facebook:focus-visible {
  background: #1877f2;
  border-color: #1877f2;
}

.promise-social-x:hover,
.promise-social-x:focus-visible {
  background: #000000;
  border-color: rgba(255, 255, 255, 0.4);
}

.promise-social-instagram:hover,
.promise-social-instagram:focus-visible {
  background: linear-gradient(135deg, #833ab4, #e1306c 55%, #fcb045);
  border-color: #e1306c;
}

.promise-social-whatsapp:hover,
.promise-social-whatsapp:focus-visible {
  color: #071424;
  background: #25d366;
  border-color: #25d366;
}

.answer-social-sms:hover,
.answer-social-sms:focus-visible {
  color: #071424;
  background: #7db1ff;
  border-color: #7db1ff;
}

.promise-navigation {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 2px;
}

.promise-navigation-main,
.promise-navigation-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.promise-nav-text,
.promise-position {
  align-self: center;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.75rem;
  font-weight: 700;
}

.promise-nav-text {
  min-height: 44px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.promise-nav-text:hover,
.promise-nav-text:focus-visible {
  color: #071424;
  background: #fde68a;
  border-color: #fde68a;
}

.promise-position {
  min-width: 58px;
  text-align: center;
}

.promise-nav-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  color: rgba(226, 232, 240, 0.55);
  background: transparent;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  transition: color 160ms ease, background 160ms ease;
}

.promise-nav-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.promise-nav-button:hover,
.promise-nav-button:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  box-shadow: none;
  transform: none;
}

/* Slim progress track between the nav arrows that fills over the 10s the
   card waits before auto-advancing to the next verse. */
.promise-progress {
  position: relative;
  justify-self: center;
  width: 120px;
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
}

.promise-progress-fill,
.spotlight-progress-fill {
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left center;
  border-radius: 999px;
}

.promise-progress-fill {
  background: linear-gradient(90deg, #7db1ff, #22d3ee, #fbbf24);
}

.promise-progress-fill.is-running {
  animation: timed-progress-grow 10s linear forwards;
}

.spotlight-progress-fill {
  background: linear-gradient(90deg, #fde68a, #7db1ff, #22d3ee);
}

.spotlight-progress-fill.is-running {
  animation: timed-progress-grow 10s linear forwards;
}

@keyframes timed-progress-grow {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .promise-progress-fill.is-running,
  .spotlight-progress-fill.is-running,
  .promise-copy.is-transitioning,
  #spotlight-body.is-transitioning {
    animation: none;
  }

  .promise-progress,
  .spotlight-progress {
    display: none;
  }
}

.promise-status {
  min-height: 1.4em;
  margin: 0;
  color: rgba(226, 232, 240, 0.78);
  font-size: 0.85rem;
  text-align: center;
}

.section {
  padding: 86px 0;
}

.section-answer {
  padding-top: 28px;
}

.section-soft {
  background: var(--surface-soft);
}

.ask-section {
  background: var(--surface-soft);
}

.ask-section-container {
  max-width: 860px;
}

.ask-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 24px;
  align-items: start;
}

.ask-card,
.ask-help {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.ask-card > label,
.ask-form-row label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

.ask-card textarea,
.ask-card input,
.ask-card select {
  width: 100%;
  padding: 12px 14px;
  color: var(--text);
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
}

.ask-card textarea {
  min-height: 140px;
  margin: 8px 0 18px;
  resize: vertical;
}

.ask-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.ask-guidance,
.ask-help p,
.ask-help li {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.ask-guidance {
  margin: 18px 0;
}

.primary-button {
  min-height: 44px;
  padding: 10px 18px;
  color: #ffffff;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 999px;
  font-weight: 800;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: var(--brand-dark);
}

.ask-status {
  min-height: 1.5em;
  margin: 12px 0 0;
  color: var(--brand-dark);
  font-weight: 700;
}

.ask-help h3,
.question-results h3 {
  margin-bottom: 14px;
}

.ask-help ul {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding-left: 20px;
}

.question-results {
  margin-top: 30px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading h2,
.cta-card h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.section-heading p:not(.eyebrow),
.cta-card p {
  color: var(--muted);
}

.about-section {
  scroll-margin-top: 96px;
  background: linear-gradient(180deg, rgba(16, 42, 67, 0.01), var(--bg));
}

.about-card {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.75fr);
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
  padding: clamp(34px, 6vw, 68px);
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--border));
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.about-copy h2 {
  max-width: 760px;
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.about-copy > p:not(.eyebrow) {
  max-width: 760px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.about-copy > p:last-child {
  margin-bottom: 0;
}

.about-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.about-principles span {
  padding: 8px 12px;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 800;
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--border));
  border-radius: 999px;
}

.about-purpose {
  position: relative;
  overflow: hidden;
  padding: 30px;
  color: #ffffff;
  background: linear-gradient(145deg, #102a43, #17466f);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 22px 48px rgba(10, 23, 43, 0.2);
}

.about-purpose-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 50%;
}

.about-purpose h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: 1.35rem;
}

.about-purpose p {
  margin: 0 0 22px;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.7;
}

.about-purpose .text-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding-block: 4px;
  color: #fde68a;
}

.about-beliefs {
  margin-top: 20px;
  background: color-mix(in srgb, var(--brand) 5%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 14%, var(--border));
  border-radius: var(--radius-lg);
}

.about-beliefs > summary {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(24px, 4vw, 36px);
  cursor: pointer;
  list-style: none;
}

.about-beliefs > summary::-webkit-details-marker {
  display: none;
}

.about-beliefs summary > span:first-child {
  display: grid;
  gap: 8px;
  max-width: 780px;
}

.about-beliefs summary .eyebrow {
  margin: 0;
}

.about-beliefs summary strong {
  color: var(--text);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.about-beliefs summary small {
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 400;
  line-height: 1.7;
}

.details-action {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 800;
}

.details-action::after {
  display: inline-block;
  margin-left: 8px;
  content: "+";
}

.about-beliefs[open] .details-action::after {
  content: "−";
}

.about-beliefs-content {
  padding: 0 clamp(24px, 4vw, 36px) clamp(24px, 4vw, 36px);
}

.about-beliefs-content > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.belief-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.belief-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  color: var(--muted);
  line-height: 1.65;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.belief-icon {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border));
  border-radius: 10px;
}

.belief-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.belief-list p {
  margin: 0;
}

.belief-list strong {
  color: var(--text);
}

.library-section {
  background: var(--surface-soft);
}

.library-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.library-columns > section {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.library-columns h3 {
  margin: 0 0 16px;
}

.library-list {
  display: grid;
  gap: 10px;
}

.library-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.library-item:last-child {
  border-bottom: 0;
}

.library-item a {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.library-item small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.library-remove,
.library-clear {
  min-height: 38px;
  padding: 6px 12px;
  color: var(--brand);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.library-clear {
  margin-top: 18px;
}

.answer-spotlight {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 30px 32px;
  margin-bottom: 28px;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(140deg, #0d2038 0%, #16395d 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.answer-spotlight::after {
  position: absolute;
  right: clamp(-500px, -35vw, -290px);
  bottom: -8px;
  width: clamp(760px, 80vw, 1120px);
  aspect-ratio: 212.76 / 77.77;
  content: "";
  background: #ffffff;
  mask: url("/SVG/wordoasis-mark.svg") center / contain no-repeat;
  -webkit-mask: url("/SVG/wordoasis-mark.svg") center / contain no-repeat;
  opacity: 0.044;
  pointer-events: none;
  z-index: 0;
}

.answer-spotlight-head {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.spotlight-progress {
  position: relative;
  width: min(150px, 42vw);
  height: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.answer-spotlight .eyebrow {
  margin: 0;
  color: #ffe6a8;
}

.answer-spotlight .promise-navigation {
  position: relative;
  z-index: 1;
  margin-top: 26px;
}

#spotlight-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.answer-spotlight .answer-tags {
  position: relative;
  z-index: 1;
  min-height: 34px;
  margin-bottom: 14px;
}

.answer-spotlight .answer-tags .tag-link {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.answer-spotlight .answer-tags .tag-link:hover,
.answer-spotlight .answer-tags .tag-link:focus-visible {
  background: rgba(255, 255, 255, 0.26);
}

.answer-spotlight h3 {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  min-height: calc(1.3em * 2);
  margin-bottom: 12px;
  overflow: hidden;
  font-size: 1.6rem;
  line-height: 1.3;
  text-overflow: ellipsis;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.answer-spotlight h3 a {
  color: #ffffff;
}

.answer-spotlight h3 a:hover,
.answer-spotlight h3 a:focus-visible {
  text-decoration: underline;
}

.answer-spotlight p {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  max-width: 640px;
  min-height: calc(1.7em * 3);
  margin: 0 0 18px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
  text-overflow: ellipsis;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.spotlight-cta {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: auto;
  color: #ffffff;
  font-weight: 800;
}

.spotlight-cta::after {
  content: "\2192";
  font-size: 1.15em;
  line-height: 1;
  transition: transform 140ms ease;
}

.spotlight-cta:hover,
.spotlight-cta:focus-visible {
  text-decoration: underline;
}

.spotlight-cta:hover::after,
.spotlight-cta:focus-visible::after {
  transform: translateX(3px);
}

.answer-card,
.cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

#results-panel {
  scroll-margin-top: 96px;
}

.results-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.result-meta {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.results-clear {
  padding: 0;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.92rem;
  background: transparent;
  border: 0;
}

.results-clear:hover,
.results-clear:focus-visible {
  text-decoration: underline;
}

.result-meta.flash {
  animation: result-flash 900ms ease;
}

@keyframes result-flash {
  0% {
    color: var(--brand);
  }

  100% {
    color: var(--muted);
  }
}

.answers-list {
  display: grid;
  gap: 18px;
}

.answer-card {
  position: relative;
  overflow: hidden;
  padding: 26px;
}

.answer-card > *,
.answer-page-card > *,
.related-card > * {
  position: relative;
  z-index: 1;
}

.answer-card h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.answer-card h3 a:hover,
.answer-card h3 a:focus-visible {
  color: var(--brand);
}

.answer-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.answer-tags,
.scriptures {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.answer-tags {
  margin-bottom: 16px;
}

.answer-tags span,
.scriptures span,
.tag-link,
.scripture-link {
  display: inline-flex;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 800;
  border-radius: 999px;
}

.tag-link {
  min-height: 32px;
  align-items: center;
  color: var(--brand-dark);
  background: #e9f1ff;
  border: 1px solid rgba(37, 99, 235, 0.16);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.tag-link:hover,
.tag-link:focus-visible {
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
  transform: translateY(-1px);
}

.scriptures {
  margin-top: 14px;
}

.scripture-link {
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  color: #7c4a03;
  background: #fff4d7;
  border: 1px solid rgba(124, 74, 3, 0.18);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.scripture-link:hover,
.scripture-link:focus-visible {
  background: #ffe6a8;
  box-shadow: 0 8px 20px rgba(124, 74, 3, 0.18);
  transform: translateY(-1px);
}

.scripture-link-inline {
  display: inline;
  min-height: 0;
  padding: 0;
  margin: 0;
  color: var(--brand);
  font: inherit;
  font-weight: 700;
  line-height: inherit;
  text-align: inherit;
  vertical-align: baseline;
  background: transparent;
  border: 0;
  border-radius: 0;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--brand) 45%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.scripture-link-inline:hover,
.scripture-link-inline:focus-visible {
  color: var(--brand-dark);
  background: transparent;
  box-shadow: none;
  transform: none;
  text-decoration-color: currentColor;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 16px;
  padding: 0;
  color: var(--brand);
  font-weight: 800;
  background: transparent;
  border: 0;
}

.read-more::after {
  content: "\2192";
  font-size: 1.15em;
  line-height: 1;
  transition: transform 140ms ease;
}

.read-more:hover,
.read-more:focus-visible {
  text-decoration: underline;
}

.read-more:hover::after,
.read-more:focus-visible::after {
  transform: translateX(3px);
}

.answer-long {
  margin: -6px 0 16px;
}

.answer-long p {
  margin: 0;
  color: var(--muted);
}

.scripture-quotes {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.scripture-quotes-heading {
  margin: 0 !important;
  color: var(--text) !important;
  font-size: 0.95rem;
  font-weight: 800;
}

.scripture-quote {
  margin: 0;
  padding: 16px 18px;
  background: color-mix(in srgb, var(--brand) 8%, var(--surface-soft));
  border-left: 4px solid var(--brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.scripture-quote p {
  margin: 0 0 10px !important;
  color: var(--text) !important;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.94rem;
  line-height: 1.65;
}

.scripture-quote cite {
  color: var(--brand);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
}

.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(280px, 27vw, 350px);
  overflow: hidden;
  padding: 52px 0 34px;
  background: linear-gradient(180deg, var(--hero-start) 0%, var(--bg) 100%);
}

.page-hero::before {
  position: absolute;
  top: 50%;
  right: clamp(-840px, -46vw, -300px);
  width: clamp(980px, 104vw, 1700px);
  aspect-ratio: 212.76 / 77.77;
  content: "";
  background: var(--brand);
  mask: url("/SVG/wordoasis-mark.svg") center / contain no-repeat;
  -webkit-mask: url("/SVG/wordoasis-mark.svg") center / contain no-repeat;
  opacity: 0.042;
  pointer-events: none;
  transform: translateY(-50%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

.page-intro {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.answer-date-meta {
  margin: 14px 0 0;
  color: color-mix(in srgb, var(--muted) 82%, transparent);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.answer-review-meta {
  max-width: 720px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.answer-review-meta a,
.trust-page-card a {
  color: var(--brand-dark);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.page-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.page-hero-stats span {
  padding: 7px 11px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 14%, var(--border));
  border-radius: 999px;
}

.page-hero-stats strong {
  color: var(--text);
}

.answer-public-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.answer-public-stats[hidden] {
  display: none;
}

.answer-public-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  color: var(--brand-dark);
  font-size: 0.84rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--brand) 11%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--border));
  border-radius: 999px;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--brand-dark) 8%, transparent);
}

.answer-public-stats svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.answer-public-stats strong {
  color: var(--text);
}

.page-hero + .section {
  padding-top: 32px;
}

.most-read-section {
  padding: 40px 0 24px;
}

.most-read-section[hidden] {
  display: none;
}

.most-read-heading {
  margin-bottom: 22px;
}

.most-read-heading h2 {
  margin-bottom: 8px;
}

.most-read-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.most-read-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.most-read-rank {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 0.84rem;
  font-weight: 900;
  background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  border-radius: 10px;
}

.most-read-card h3 {
  margin: 1px 0 7px;
  font-size: 1rem;
  line-height: 1.35;
}

.most-read-card h3 a {
  color: var(--text);
}

.most-read-card h3 a:hover,
.most-read-card h3 a:focus-visible {
  color: var(--brand);
}

.most-read-card p,
.public-stats-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.public-stats-note {
  margin-top: 14px;
}

@media (max-width: 900px) {
  .most-read-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .most-read-grid {
    grid-template-columns: 1fr;
  }
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
}

.breadcrumb a {
  color: var(--text);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.answer-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}

.answer-page-card,
.related-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.answer-page-card {
  padding: 34px;
}

.answer-page-card h2 {
  margin: 26px 0 12px;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
}

.answer-page-card .answer-tags + h2 {
  margin-top: 8px;
}

.answer-page-card p {
  color: var(--muted);
  font-weight: 400;
  line-height: 1.78;
}

.answer-page-card .lead-answer {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 400;
}

.answer-key-takeaway {
  position: relative;
  padding: 20px 22px;
  margin: 26px 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--brand) 7%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border));
  border-radius: var(--radius-md);
}

.answer-key-takeaway::before {
  position: absolute;
  right: -28px;
  bottom: -24px;
  width: 180px;
  height: 78px;
  content: "";
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in srgb, var(--brand) 16%, transparent) 0 2px,
      transparent 2px 14px
    );
  opacity: 0.45;
  mask: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent);
  -webkit-mask: linear-gradient(90deg, transparent, #000 28%, #000 72%, transparent);
  pointer-events: none;
}

.answer-key-takeaway .eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
}

.answer-key-takeaway p:last-child {
  margin: 0;
  color: var(--text);
}

.answer-share-panel {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 22px;
  margin: 28px 0;
  background: var(--field-bg);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border));
  border-radius: var(--radius-md);
}

.bible-study-invitation {
  position: relative;
  margin: 28px 0;
  overflow: hidden;
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--brand) 15%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 42%, var(--border));
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--brand-dark) 12%, transparent);
}

.bible-study-invitation {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  color: inherit;
  text-decoration: none;
}

.bible-study-invitation.cta-reveal-pending {
  opacity: 0;
  transform: translateY(14px);
}

.bible-study-invitation.cta-revealed {
  animation: bible-study-cta-arrival 900ms ease-out both;
}

@keyframes bible-study-cta-arrival {
  0% {
    opacity: 0;
    transform: translateY(14px);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--brand-dark) 12%, transparent);
  }
  60% {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 16px 36px color-mix(in srgb, var(--brand-dark) 24%, transparent);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--brand-dark) 12%, transparent);
  }
}

.bible-study-invitation:hover,
.bible-study-invitation:focus-visible {
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--brand) 21%, var(--surface)), var(--surface));
  outline: none;
  box-shadow:
    0 16px 34px color-mix(in srgb, var(--brand-dark) 18%, transparent),
    0 0 0 3px color-mix(in srgb, var(--brand) 24%, transparent);
}

.bible-study-icon {
  display: inline-flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  color: var(--surface);
  background: var(--brand-dark);
  border-radius: 14px;
}

.bible-study-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.bible-study-invitation strong,
.bible-study-invitation small {
  display: block;
}

.bible-study-invitation strong {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.3;
}

.bible-study-invitation small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.bible-study-summary-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  color: var(--brand-dark);
  font-size: 0.84rem;
  font-weight: 800;
  border: 1px solid color-mix(in srgb, var(--brand-dark) 34%, var(--border));
  border-radius: 999px;
}

.bible-study-summary-action svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.bible-study-form,
.bible-study-form-grid {
  display: grid;
  gap: 14px;
}

.bible-study-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bible-study-form label:not(.bible-study-consent) {
  display: grid;
  gap: 6px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
}

.bible-study-form label small {
  color: var(--muted);
  font-weight: 600;
}

.bible-study-form input:not([type="checkbox"]),
.bible-study-form select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
}

.bible-study-form input:focus,
.bible-study-form select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.bible-study-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.bible-study-consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--brand);
}

.bible-study-submit {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  color: #ffffff;
  font-weight: 800;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
}

.bible-study-submit:hover,
.bible-study-submit:focus-visible {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.bible-study-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.bible-study-submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.answer-page-card .bible-study-disclosure,
.answer-page-card .bible-study-status {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
}

.answer-page-card .bible-study-status {
  min-height: 1.2em;
  color: var(--brand);
  font-weight: 700;
}

.bible-study-direct-link {
  justify-self: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 620px) {
  .bible-study-invitation {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 16px;
  }

  .bible-study-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .bible-study-summary-action {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
  }

  .bible-study-invitation.cta-reveal-pending {
    transform: translateY(10px);
  }

  .bible-study-content {
    padding: 16px;
  }

  .bible-study-form-grid {
    grid-template-columns: 1fr;
  }
}

.answer-share-panel .share-action-group {
  max-width: 560px;
  background: var(--surface);
}

.answer-share-panel .promise-share-buttons {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.answer-share-panel .share-mode-selector {
  color: var(--text);
  background: color-mix(in srgb, #767680 24%, var(--surface));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent),
    0 1px 2px rgba(2, 12, 27, 0.08);
}

.answer-share-panel .share-mode-selector button[aria-pressed="false"] {
  color: var(--muted);
}

.answer-editorial-note {
  padding: 18px 20px;
  margin-top: 28px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  line-height: 1.65;
}

.answer-editorial-note strong {
  color: var(--text);
}

.answer-editorial-note p {
  margin: 5px 0 0;
}

.trust-page-layout {
  display: grid;
  gap: 20px;
}

.trust-page-card {
  padding: clamp(24px, 4vw, 38px);
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.trust-page-card h2 {
  margin-bottom: 12px;
  color: var(--text);
}

.trust-page-card p {
  max-width: 860px;
  margin: 0 0 14px;
}

.trust-page-card p:last-child {
  margin-bottom: 0;
}

.trust-policy-list {
  display: grid;
  gap: 12px;
  padding-left: 1.25rem;
  margin: 0;
}

.trust-policy-list li {
  padding-left: 0.25rem;
}

.trust-small-note {
  font-size: 0.92rem;
}

.answer-share-panel .promise-share-label {
  color: var(--muted);
}

.answer-share-panel .promise-social-share {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
  border-color: color-mix(in srgb, var(--brand) 24%, var(--border));
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.answer-share-panel .promise-share-primary button {
  min-height: 44px;
  padding: 8px 18px;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--border));
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.answer-share-panel .promise-share-primary button:hover,
.answer-share-panel .promise-share-primary button:focus-visible {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
  transform: translateY(-2px);
}

.answer-share-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

.inline-topic-link {
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.35);
  text-underline-offset: 2px;
  transition: text-decoration-color 140ms ease;
}

.inline-topic-link:hover,
.inline-topic-link:focus-visible {
  text-decoration-color: currentColor;
}

.related-card {
  position: sticky;
  top: 98px;
  padding: 24px;
}

.related-card h2,
.related-card h3 {
  margin-bottom: 6px;
  color: var(--muted);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.related-card ul,
.answer-list-page {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-card ul {
  gap: 0;
}

.related-card li {
  border-top: 1px solid var(--border);
}

.related-card a {
  display: block;
  padding: 14px 0;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  transition: color 0.18s ease;
}

.answer-list-page a {
  color: var(--brand-dark);
  font-weight: 800;
}

.related-card a:hover,
.related-card a:focus-visible,
.answer-list-page a:hover,
.answer-list-page a:focus-visible {
  color: var(--brand);
}

.topic-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.topic-page-heading {
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.topic-page-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-top: 4px;
  color: #ffffff;
  background: var(--brand);
  border-radius: 18px;
  box-shadow: 0 14px 34px color-mix(in srgb, var(--brand) 28%, transparent);
}

.topic-page-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.topic-answer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.directory-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.directory-card h2,
.directory-card h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
}

.directory-card p {
  margin: 0;
  color: var(--muted);
}

.answers-directory-toolbar {
  position: sticky;
  top: 88px;
  z-index: 12;
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(360px, 1.2fr) auto;
  gap: 14px 18px;
  align-items: center;
  margin-bottom: 24px;
  padding: 20px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 96%, var(--brand) 4%), color-mix(in srgb, var(--surface) 94%, var(--accent) 6%));
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border));
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 38px rgba(16, 42, 67, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.answers-directory-heading h2 {
  margin: 2px 0 6px;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}

.answers-directory-heading .eyebrow {
  margin-bottom: 4px;
}

.answers-directory-toolbar p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.answers-directory-count {
  width: max-content;
  padding: 7px 11px;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.2;
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.2);
}

.answers-directory-controls {
  display: grid;
  grid-template-columns: minmax(200px, 1.35fr) minmax(170px, 0.65fr);
  gap: 12px;
}

.answers-search-filter,
.answers-topic-filter {
  display: grid;
  gap: 6px;
}

.answers-search-filter label,
.answers-topic-filter label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.answers-search-filter input,
.answers-topic-filter select {
  width: 100%;
  min-height: 46px;
  padding: 10px 42px 10px 14px;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  background:
    linear-gradient(45deg, transparent 50%, var(--brand-dark) 50%) calc(100% - 18px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 94%, var(--brand) 6%), var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--border));
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  appearance: none;
}

.answers-search-filter input {
  padding-right: 14px;
  background: color-mix(in srgb, var(--surface) 94%, var(--brand) 6%);
  appearance: auto;
}

.answers-search-filter input::placeholder {
  color: var(--muted);
  font-weight: 500;
}

.answers-search-filter input:focus,
.answers-topic-filter select:focus {
  border-color: var(--brand);
  outline: 3px solid color-mix(in srgb, var(--brand) 20%, transparent);
  outline-offset: 2px;
}

.answers-directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.answers-topic-section {
  scroll-margin-top: 96px;
}

.answers-topic-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.answers-topic-heading h2 {
  margin: 4px 0 0;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.answers-topic-heading span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.answers-topic-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.directory-answer-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 100%;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 34px rgba(16, 42, 67, 0.06);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.directory-answer-card[hidden] {
  display: none;
}

.directory-answer-card h2 {
  margin: 0;
  font: inherit;
}

.directory-answer-card:hover,
.directory-answer-card:focus-within {
  border-color: color-mix(in srgb, var(--brand) 34%, var(--border));
  box-shadow: 0 18px 44px rgba(16, 42, 67, 0.1);
  transform: translateY(-2px);
}

.directory-answer-title {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
}

.directory-answer-title:hover,
.directory-answer-title:focus-visible {
  color: var(--brand);
}

.directory-answer-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.directory-answer-meta {
  display: block;
  margin: 0;
  width: fit-content;
  padding: 4px 9px;
  color: var(--brand-dark);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #e9f1ff;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  cursor: pointer;
}

.directory-answer-meta:hover,
.directory-answer-meta:focus-visible {
  color: var(--brand-dark);
  background: #dceaff;
  border-color: rgba(37, 99, 235, 0.38);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.directory-answer-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.directory-answer-topics a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 8px;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.2;
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border));
  border-radius: 999px;
}

.directory-answer-topics a:hover,
.directory-answer-topics a:focus-visible {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

.directory-answer-topics a.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #1d4ed8, #0f766e);
  border-color: rgba(255, 255, 255, 0.18);
}

.directory-read-more {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--brand);
  font-size: 0.9rem;
  font-weight: 800;
}

.directory-read-more::after {
  content: "\2192";
  font-size: 1.15em;
  line-height: 1;
  transition: transform 140ms ease;
}

.directory-read-more:hover,
.directory-read-more:focus-visible {
  text-decoration: underline;
}

.directory-read-more:hover::after,
.directory-read-more:focus-visible::after {
  transform: translateX(3px);
}

.answers-directory-empty {
  padding: 48px 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed color-mix(in srgb, var(--brand) 28%, var(--border));
  border-radius: var(--radius-lg);
}

.answers-directory-empty[hidden] {
  display: none;
}

.answers-directory-empty h2 {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.answers-directory-empty p {
  margin: 0 0 18px;
  color: var(--muted);
}

.answers-directory-empty button {
  padding: 10px 16px;
  color: #ffffff;
  font-weight: 800;
  background: var(--brand);
  border: 0;
  border-radius: 999px;
}

.bible-hero {
  padding-bottom: 56px;
}

.bible-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: end;
}

.bible-controls-card,
.bible-reader-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}

.bible-reader-section {
  position: relative;
  overflow: hidden;
  padding-top: 36px;
}

.bible-reader-section::before {
  position: absolute;
  top: 18px;
  left: max(18px, calc((100vw - 1120px) / 2));
  width: min(360px, 48vw);
  height: 88px;
  content: "";
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in srgb, var(--brand) 12%, transparent) 0 2px,
      transparent 2px 18px
    );
  opacity: 0.3;
  mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}

.bible-reader-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.bible-controls-card {
  position: sticky;
  top: 98px;
  display: grid;
  min-width: 0;
  gap: 16px;
  padding: 24px;
}

.bible-controls-card > * {
  min-width: 0;
}

.bible-control-field {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.bible-control-field label {
  color: var(--text);
  font-weight: 800;
}

.bible-control-field select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
}

.bible-control-field select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.bible-control-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 0;
  gap: 10px;
}

.bible-nav-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-weight: 800;
  border-radius: 14px;
}

.bible-nav-button {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--border));
}

.bible-nav-button:not(:disabled):hover,
.bible-nav-button:not(:disabled):focus-visible {
  color: #ffffff;
  background: var(--brand);
}

.bible-nav-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.bible-search-form {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.bible-search-form label {
  color: var(--text);
  font-weight: 800;
}

.bible-search-row {
  display: block;
}

.bible-search-row input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text);
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
}

.bible-search-row input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.bible-search-submit {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  color: #ffffff;
  font-weight: 800;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
}

.bible-search-submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.bible-search-submit:hover,
.bible-search-submit:focus-visible {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24);
  transform: translateY(-1px);
}

.bible-advanced-search {
  overflow: hidden;
  background: color-mix(in srgb, var(--brand) 4%, var(--field-bg));
  border: 1px solid var(--border);
  border-radius: 12px;
}

.bible-advanced-search summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 24px;
  padding: 12px 38px 12px 14px;
  color: var(--text);
  list-style: none;
  cursor: pointer;
}

.bible-advanced-search summary::-webkit-details-marker {
  display: none;
}

.bible-advanced-search summary::after {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  content: "";
  transform: translateY(-65%) rotate(45deg);
  transition: transform 160ms ease;
}

.bible-advanced-search[open] summary::after {
  transform: translateY(-35%) rotate(225deg);
}

.bible-advanced-search summary:hover,
.bible-advanced-search summary:focus-visible {
  background: color-mix(in srgb, var(--brand) 8%, transparent);
}

.bible-search-options-heading {
  font-weight: 800;
}

.bible-advanced-search-value {
  align-self: center;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
}

.bible-advanced-search-content {
  display: grid;
  gap: 12px;
  padding: 2px 14px 14px;
  border-top: 1px solid var(--border);
}

.bible-search-books-field[hidden] {
  display: none;
}

.bible-search-books-field select {
  height: auto;
  padding: 8px 10px;
}

.bible-search-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.bible-search-results {
  display: grid;
  gap: 10px;
}

.bible-search-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.bible-search-list {
  display: grid;
  max-height: 360px;
  gap: 8px;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  list-style: none;
}

.bible-search-result {
  display: grid;
  width: 100%;
  gap: 4px;
  padding: 12px;
  color: var(--text);
  text-align: left;
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.bible-search-result span {
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 900;
}

.bible-search-result small {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.bible-search-result:hover,
.bible-search-result:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.bible-text-size-control {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.bible-text-size-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bible-text-size-heading > span {
  color: var(--text);
  font-weight: 800;
}

.bible-text-size-heading output {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.bible-text-size-buttons {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  min-width: 0;
  gap: 8px;
  align-items: center;
}

.bible-text-size-buttons button {
  min-width: 0;
  min-height: 42px;
  border-radius: 12px;
}

.bible-text-size-buttons button {
  color: var(--brand);
  font-weight: 900;
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--border));
}

.bible-text-size-buttons button:not(:disabled):hover,
.bible-text-size-buttons button:not(:disabled):focus-visible {
  color: #ffffff;
  background: var(--brand);
}

.bible-text-size-buttons button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.bible-text-size-buttons input[type="range"] {
  width: 100%;
  accent-color: var(--brand);
}

.bible-reader-card {
  --bible-text-size: 1.08rem;
  min-width: 0;
  padding: 32px;
}

.bible-reader-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.bible-reader-head > div:first-child {
  min-width: 0;
}

.bible-reader-head h2 {
  margin-bottom: 8px;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  overflow-wrap: anywhere;
}

.bible-reader-head p:last-child {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.bible-reader-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.bible-reader-arrows {
  display: inline-flex;
  gap: 8px;
  flex: 0 0 auto;
}

.bible-reader-arrows button {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-size: 1.25rem;
  font-weight: 900;
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--border));
  border-radius: 999px;
}

.bible-reader-arrows button:not(:disabled):hover,
.bible-reader-arrows button:not(:disabled):focus-visible {
  color: #ffffff;
  background: var(--brand);
}

.bible-reader-arrows button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.bible-chapter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.bible-chapter-button {
  min-width: 42px;
  min-height: 38px;
  padding: 0 10px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.bible-chapter-button:hover,
.bible-chapter-button:focus-visible {
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 40%, var(--border));
}

.bible-chapter-button.active {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

.bible-reader-body {
  display: grid;
  gap: 12px;
}

.bible-selection-panel {
  display: grid;
  gap: 0;
  margin: 10px 0 18px;
  padding: 22px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand) 14%, var(--border));
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(16, 42, 67, 0.09);
}

#bible-selection-home .bible-selection-panel {
  display: none;
}

.bible-selection-hint {
  margin: 0;
  padding: 0 0 18px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
}

.bible-selection-panel p {
  margin: 0;
}

.bible-selection-panel .share-action-group {
  justify-items: center;
  gap: 12px;
  padding: 20px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--brand) 12%, var(--border));
  border-radius: 0;
}

.bible-selection-panel .share-group-heading {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-align: center;
  text-transform: uppercase;
}

.bible-selection-panel .share-mode-selector {
  color: var(--text);
  background: rgba(118, 118, 128, 0.2);
  box-shadow:
    inset 0 0 0 1px rgba(118, 118, 128, 0.12),
    0 1px 2px rgba(2, 12, 27, 0.06);
}

.bible-selection-panel .share-mode-selector button[aria-pressed="true"] {
  color: #111827;
  background: transparent;
  box-shadow: none;
}

.bible-selection-panel .share-mode-selector button[aria-pressed="false"] {
  color: var(--text);
}

.bible-share-source {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.bible-selection-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.bible-selection-primary-actions button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--brand);
  font-size: 0.84rem;
  font-weight: 800;
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border));
  border-radius: 999px;
}

.bible-selection-social-actions .promise-social-share {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border));
  border-radius: 50%;
}

.bible-selection-actions button:not(:disabled):hover,
.bible-selection-actions button:not(:disabled):focus-visible,
.bible-selection-actions a:not([aria-disabled="true"]):hover,
.bible-selection-actions a:not([aria-disabled="true"]):focus-visible {
  color: #ffffff;
  background: var(--brand);
}

.bible-selection-actions button:disabled,
.bible-selection-actions a[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.45;
}

.bible-graphic-customizer {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px 18px;
  padding: 18px;
  margin: 0 0 20px;
  background: color-mix(in srgb, var(--surface) 94%, var(--brand) 6%);
  border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--border));
  border-radius: 16px;
}

.bible-graphic-customizer[hidden] {
  display: none;
}

.bible-graphic-customizer fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.bible-graphic-customizer legend {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bible-graphic-palettes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bible-graphic-palette {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 58px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 800;
}

.bible-graphic-palette input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.bible-graphic-palette span {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  background: #ffffff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(16, 42, 67, 0.16);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.bible-graphic-palette span::before {
  position: absolute;
  inset: 2px;
  content: "";
  background: var(--graphic-swatch, linear-gradient(145deg, #1c3350, #0a1522));
  border-radius: 50%;
}

.bible-graphic-palette span::after {
  position: absolute;
  inset: -5px;
  content: "";
  background: conic-gradient(
    from 0deg,
    transparent 0deg 235deg,
    rgba(125, 211, 252, 0.18) 270deg,
    #ffffff 318deg,
    #7dd3fc 344deg,
    transparent 360deg
  );
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: rotate(0deg);
  transition: opacity 180ms ease;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 0);
}

.bible-graphic-palette-auto span {
  --graphic-swatch: conic-gradient(from 220deg, #173a2c, #2d2050, #1c3350, #3d1f28, #3a2a12, #173a2c);
}

.bible-graphic-palette-midnight span {
  --graphic-swatch: linear-gradient(145deg, #263445, #090f18);
}

.bible-graphic-palette-forest span {
  --graphic-swatch: linear-gradient(145deg, #173a2c, #081711);
}

.bible-graphic-palette-plum span {
  --graphic-swatch: linear-gradient(145deg, #2d2050, #0d0a1c);
}

.bible-graphic-palette-rose span {
  --graphic-swatch: linear-gradient(145deg, #3d1f28, #130a0e);
}

.bible-graphic-palette-golden span {
  --graphic-swatch: linear-gradient(145deg, #5a411b, #120d05);
}

.bible-graphic-palette-teal span {
  --graphic-swatch: linear-gradient(145deg, #0f4c4f, #06191c);
}

.bible-graphic-palette-sunset span {
  --graphic-swatch: linear-gradient(145deg, #663744, #1c1221);
}

.bible-graphic-palette-lavender span {
  --graphic-swatch: linear-gradient(145deg, #514176, #171329);
}

.bible-graphic-palette-custom span {
  --graphic-swatch: conic-gradient(#ef4444, #f59e0b, #22c55e, #0ea5e9, #8b5cf6, #ef4444);
  font-size: 1.25rem;
  font-weight: 900;
}

.bible-graphic-palette input:checked + span {
  box-shadow: 0 7px 18px rgba(16, 42, 67, 0.2);
  transform: translateY(-1px);
}

.bible-graphic-palette input:checked + span::after {
  opacity: 1;
  animation: bible-graphic-light-stream 2.2s linear infinite;
}

.bible-graphic-palette input:focus-visible + span {
  outline: 3px solid color-mix(in srgb, var(--brand) 42%, transparent);
  outline-offset: 3px;
}

@keyframes bible-graphic-light-stream {
  to {
    transform: rotate(1turn);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bible-graphic-palette input:checked + span::after {
    animation: none;
    background: rgba(125, 211, 252, 0.72);
  }
}

.bible-graphic-custom-color {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bible-graphic-custom-color[hidden] {
  display: none;
}

.bible-graphic-custom-color span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 5px 10px 5px 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.bible-graphic-custom-color input[type="color"] {
  width: 46px;
  height: 34px;
  padding: 0;
  cursor: pointer;
  background: transparent;
  border: 0;
}

.bible-graphic-custom-color output {
  color: var(--text);
  font-size: 0.86rem;
  letter-spacing: 0.04em;
}

.bible-graphic-create {
  min-height: 42px;
  padding: 0 16px;
  color: #ffffff;
  font-weight: 900;
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: 12px;
}

.bible-graphic-create:hover,
.bible-graphic-create:focus-visible {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.bible-selection-status {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.bible-memory-lab {
  display: grid;
  gap: 14px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--brand) 18%, var(--border));
}

.bible-memory-lab[hidden] {
  display: none;
}

.bible-memory-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.bible-memory-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bible-memory-controls select {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.bible-memory-card {
  position: relative;
  display: grid;
  min-height: 230px;
  padding: 0;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 22px;
  perspective: 1200px;
}

.bible-memory-face {
  grid-area: 1 / 1;
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 230px;
  padding: clamp(22px, 4vw, 34px);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, var(--brand) 8%), var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--border));
  border-radius: 22px;
  box-shadow: 0 20px 48px rgba(16, 42, 67, 0.12);
  backface-visibility: hidden;
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.bible-memory-front {
  justify-items: center;
  text-align: center;
}

.bible-memory-front strong {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
}

.bible-memory-front small {
  color: var(--muted);
  font-weight: 800;
}

.bible-memory-back {
  transform: rotateY(180deg);
}

.bible-memory-card.is-flipped .bible-memory-front {
  transform: rotateY(180deg);
}

.bible-memory-card.is-flipped .bible-memory-back {
  transform: rotateY(360deg);
}

.bible-memory-label {
  width: fit-content;
  padding: 5px 10px;
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--border));
  border-radius: 999px;
}

#bible-memory-text {
  white-space: pre-wrap;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.12rem, 2.2vw, 1.45rem);
  line-height: 1.85;
}

.bible-memory-blurred-word {
  display: inline-block;
  filter: blur(5px);
  opacity: 0.72;
  user-select: none;
}

.bible-memory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bible-memory-actions button {
  min-height: 40px;
  padding: 0 12px;
  color: var(--brand);
  font-weight: 900;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--border));
  border-radius: 12px;
}

.bible-memory-actions button:hover,
.bible-memory-actions button:focus-visible {
  color: #ffffff;
  background: var(--brand);
}

.bible-memory-status {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.bible-verse {
  position: relative;
  margin: 0;
  padding: 4px 8px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: var(--bible-text-size);
  font-weight: 400;
  line-height: 1.85;
  border-radius: 12px;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

.bible-verse.is-selected {
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  box-shadow: inset 3px 0 0 var(--accent);
}

.bible-verse.is-highlighted {
  background: color-mix(in srgb, var(--brand) 13%, var(--surface));
  box-shadow: inset 3px 0 0 var(--brand);
}

.bible-verse-number {
  display: inline-flex;
  min-width: 1.85em;
  min-height: 1.85em;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.66em;
  font-weight: 800;
  line-height: 1;
  vertical-align: 0.15em;
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 24%, transparent);
  border-radius: 999px;
}

.bible-verse-number:hover,
.bible-verse-number:focus-visible {
  color: #ffffff;
  background: var(--brand);
}

.bible-reader-status {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.bible-bottom-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.topic-card {
  position: relative;
  display: block;
  min-height: 170px;
  padding: 24px;
  text-align: left;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.topic-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-bottom: 18px;
  color: var(--brand);
  transition: color 180ms ease;
}

.topic-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.topic-card:hover,
.topic-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--border));
  background: color-mix(in srgb, var(--brand) 6%, var(--surface));
}

.topic-card.active {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

.topic-card.active .topic-icon {
  color: #ffffff;
}

.topic-card:hover .topic-icon,
.topic-card:focus-visible .topic-icon {
  color: var(--brand);
}

.topic-card.active .topic-card-title,
.topic-card.active small {
  color: #ffffff;
}

.topic-card:hover .topic-card-title,
.topic-card:focus-visible .topic-card-title {
  color: var(--brand);
}

.topic-card-title {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1.28rem;
  font-weight: 900;
}

.topic-card small {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
}

.topic-card-count {
  position: absolute;
  top: 20px;
  right: 22px;
  padding: 3px 9px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.topic-card.active .topic-card-count {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.topic-card:hover .topic-card-count,
.topic-card:focus-visible .topic-card-count {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, var(--field-bg));
  border-color: color-mix(in srgb, var(--brand) 35%, var(--border));
}

.cta-section {
  padding-top: 20px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 38px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(245, 158, 11, 0.1)),
    var(--surface);
}

.cta-link {
  display: inline-flex;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  align-items: center;
}

.empty-state {
  padding: 32px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

.site-footer {
  padding: 64px 0 28px;
  color: var(--footer-text);
  background: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px 28px;
}

.footer-brand {
  color: var(--footer-heading);
}

.footer-brand .brand-mark {
  filter: brightness(0) invert(1);
}

.footer-tagline {
  max-width: 34ch;
  margin: 14px 0 0;
  color: var(--footer-text);
  font-size: 0.95rem;
}

.footer-verse {
  max-width: 38ch;
  padding-left: 16px;
  margin: 20px 0 0;
  border-left: 2px solid var(--footer-accent);
  color: var(--footer-muted);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-verse cite {
  display: block;
  margin-top: 8px;
  color: var(--footer-accent);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-grid h2 {
  margin-bottom: 14px;
  color: var(--footer-heading);
  font-family: Inter, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-list li {
  margin: 0 0 10px;
}

.footer-grid a:not(.brand) {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding-block: 4px;
  color: var(--footer-text);
  font-size: 0.95rem;
}

.footer-grid a:not(.brand):hover,
.footer-grid a:not(.brand):focus-visible {
  color: var(--footer-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  margin-top: 44px;
  border-top: 1px solid var(--footer-border);
}

.footer-copyright,
.footer-note {
  margin: 0;
  color: var(--footer-muted);
  font-size: 0.85rem;
}

.install-app-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  color: var(--footer-text);
  font-size: 0.85rem;
  font-weight: 800;
  background: transparent;
  border: 1px solid var(--footer-border);
  border-radius: 999px;
}

.install-app-button[hidden] {
  display: none;
}

.install-app-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.install-app-button:hover,
.install-app-button:focus-visible {
  color: #102a43;
  background: var(--footer-accent);
  border-color: var(--footer-accent);
}

.install-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.install-dialog::backdrop {
  background: rgba(7, 20, 36, 0.68);
  backdrop-filter: blur(4px);
}

.install-dialog-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 22px;
  border-bottom: 1px solid var(--border);
}

.install-dialog-head img {
  border-radius: 12px;
}

.install-dialog-head p,
.install-dialog-head h2 {
  margin: 0;
}

.install-dialog-head p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.install-dialog-head h2 {
  margin-top: 3px;
  font-size: 1.3rem;
}

.install-dialog-head button {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  font-size: 1.7rem;
}

.install-dialog-head button:hover,
.install-dialog-head button:focus-visible {
  color: var(--text);
  background: var(--surface-soft);
}

.install-dialog-body {
  padding: 22px;
  color: var(--muted);
  line-height: 1.7;
}

.install-dialog-body p {
  margin: 0 0 12px;
}

.install-dialog-body p:last-child {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .promise-card .promise-navigation {
    width: 100%;
    gap: 12px;
  }

  .promise-card .promise-navigation-main {
    display: grid;
    width: 100%;
    max-width: 220px;
    grid-template-columns: 38px minmax(96px, 1fr) 38px;
    gap: 12px;
  }

  .promise-card .promise-progress {
    width: 100%;
  }

  .promise-card .promise-navigation-options {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    gap: 8px;
  }

  .promise-card .promise-position {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    justify-content: flex-start;
  }
}

body.modal-open {
  overflow: hidden;
}

/* Bible quizzes */
.quiz-directory-section[hidden],
.quiz-player-section[hidden],
.quiz-challenge[hidden],
.quiz-feedback[hidden],
.quiz-series-heading[hidden],
.quiz-daniel-grid[hidden],
.quiz-next[hidden],
.quiz-previous[hidden],
.quiz-result[hidden],
.study-card[hidden],
.study-feedback[hidden],
.study-certificate-banner[hidden],
.study-certificate-cta[hidden] {
  display: none;
}

.quiz-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 82px;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 34%, rgba(96, 165, 250, 0.35), transparent 24rem),
    linear-gradient(135deg, #071f35 0%, #123d68 56%, #1d4ed8 130%);
}

.quiz-hero::after {
  position: absolute;
  right: -7rem;
  bottom: -13rem;
  width: 34rem;
  height: 34rem;
  content: "";
  background: rgba(147, 197, 253, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.study-hero {
  --study-hero-scrim-a: rgba(6, 20, 36, 0.82);
  --study-hero-scrim-b: rgba(10, 33, 61, 0.74);
  --study-hero-scrim-c: rgba(21, 58, 122, 0.58);
  background:
    linear-gradient(120deg, var(--study-hero-scrim-a) 0%, var(--study-hero-scrim-b) 46%, var(--study-hero-scrim-c) 100%),
    radial-gradient(circle at 82% 34%, rgba(96, 165, 250, 0.28), transparent 24rem),
    var(--study-hero-image, none) var(--study-hero-position, center 50%) / cover no-repeat,
    linear-gradient(135deg, #071f35 0%, #123d68 56%, #1d4ed8 130%);
}

.study-hero[data-hero-shade="strong"] {
  --study-hero-scrim-a: rgba(5, 16, 30, 0.92);
  --study-hero-scrim-b: rgba(8, 28, 54, 0.86);
  --study-hero-scrim-c: rgba(17, 48, 104, 0.72);
}

.study-hero .hero-photo-credit {
  right: 14px;
  bottom: 10px;
  padding: 2px 8px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 0.76rem;
  font-weight: 500;
  background: rgba(5, 20, 36, 0.14);
  opacity: 0.6;
}

.study-hero .hero-photo-credit a {
  color: rgba(255, 255, 255, 0.62);
}

.quiz-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 64px;
  align-items: center;
}

.quiz-breadcrumb,
.quiz-breadcrumb a {
  color: rgba(255, 255, 255, 0.74);
}

.quiz-hero .eyebrow {
  margin-top: 28px;
  color: #93c5fd;
}

.quiz-hero h1 {
  max-width: 760px;
  margin-bottom: 20px;
  color: #ffffff;
  font-size: clamp(2.65rem, 6vw, 5rem);
}

.quiz-hero h1:focus {
  outline: none;
}

.quiz-hero p:not(.eyebrow):not(.hero-photo-credit) {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.1rem;
}

.quiz-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.quiz-hero-stats span {
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.quiz-hero-stats strong {
  color: #ffffff;
}

.quiz-hero-mark {
  display: grid;
  width: 200px;
  height: 200px;
  place-items: center;
  color: #eef2ff;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 36px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.quiz-hero-mark svg {
  width: 92px;
  height: 92px;
  fill: currentColor;
}

.quiz-directory-section {
  padding-top: 84px;
}

.quiz-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 8px;
}

.quiz-jump-nav a {
  padding: 9px 18px;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.quiz-jump-nav a:hover,
.quiz-jump-nav a:focus-visible {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
  border-color: color-mix(in srgb, var(--brand) 30%, var(--border));
}

.quiz-category {
  margin-top: 56px;
  scroll-margin-top: 96px;
}

.quiz-category:first-of-type {
  margin-top: 40px;
}

.quiz-category-header {
  max-width: 720px;
  margin-bottom: 22px;
}

.quiz-category-header .eyebrow {
  margin-bottom: 6px;
}

.quiz-category-header h3 {
  margin-bottom: 6px;
  color: var(--text);
  font-size: clamp(1.3rem, 2.6vw, 1.6rem);
}

.quiz-category-header p {
  margin: 0;
  color: var(--muted);
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.quiz-daniel-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.quiz-card-book {
  background:
    linear-gradient(145deg, rgba(219, 234, 254, 0.72), transparent 58%),
    var(--surface);
}

.quiz-series-heading {
  grid-column: 1 / -1;
  padding: 34px 36px;
  margin-top: 26px;
  color: #ffffff;
  background:
    radial-gradient(circle at 88% 24%, rgba(251, 191, 36, 0.2), transparent 17rem),
    linear-gradient(135deg, #102a43, #1e3a5f);
  border-radius: var(--radius-lg);
}

.quiz-series-heading .eyebrow {
  color: #fbbf24;
}

.quiz-series-heading h3 {
  max-width: 760px;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.quiz-series-heading p:last-child {
  max-width: 790px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.quiz-card {
  position: relative;
  display: flex;
  min-height: 360px;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.quiz-card:hover {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 24px 58px rgba(16, 42, 67, 0.13);
  transform: translateY(-4px);
}

.quiz-card-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  place-items: center;
  color: #1d4ed8;
  background: linear-gradient(155deg, #eaf1ff, #dbeafe);
  border: 1px solid rgba(29, 78, 216, 0.12);
  border-radius: 16px;
  box-shadow: 0 6px 14px rgba(29, 78, 216, 0.1);
}

.quiz-card-icon-gold {
  color: #9a5b00;
  background: linear-gradient(155deg, #fff8e8, #fef3c7);
  border-color: rgba(154, 91, 0, 0.14);
  box-shadow: 0 6px 14px rgba(154, 91, 0, 0.1);
}

.quiz-card-icon-purple {
  color: #6d28d9;
  background: linear-gradient(155deg, #f4f0ff, #ede9fe);
  border-color: rgba(109, 40, 217, 0.14);
  box-shadow: 0 6px 14px rgba(109, 40, 217, 0.1);
}

.quiz-card-icon-green {
  color: #047857;
  background: linear-gradient(155deg, #e6faf1, #d1fae5);
  border-color: rgba(4, 120, 87, 0.14);
  box-shadow: 0 6px 14px rgba(4, 120, 87, 0.1);
}

.quiz-card-icon-rose {
  color: #be123c;
  background: linear-gradient(155deg, #fff0f2, #ffe4e6);
  border-color: rgba(190, 18, 60, 0.14);
  box-shadow: 0 6px 14px rgba(190, 18, 60, 0.1);
}

.quiz-card-icon-prophecy {
  color: #9a3412;
  background: linear-gradient(155deg, #fff4e9, #ffedd5);
  border-color: rgba(154, 52, 18, 0.14);
  box-shadow: 0 6px 14px rgba(154, 52, 18, 0.1);
}

.quiz-card-icon-teal {
  color: #0f766e;
  background: linear-gradient(155deg, #ecfdf9, #ccfbf1);
  border-color: rgba(15, 118, 110, 0.14);
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.1);
}

.quiz-card-icon-indigo {
  color: #4338ca;
  background: linear-gradient(155deg, #eef2ff, #e0e7ff);
  border-color: rgba(67, 56, 202, 0.14);
  box-shadow: 0 6px 14px rgba(67, 56, 202, 0.1);
}

.quiz-card-prophecy {
  background:
    linear-gradient(145deg, rgba(255, 247, 237, 0.8), transparent 58%),
    var(--surface);
}

.quiz-card-icon svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
  stroke: none;
}

.quiz-card-meta {
  margin-bottom: 8px;
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.quiz-card h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.quiz-card p {
  margin: 0 0 24px;
  color: var(--muted);
}

.quiz-card button,
.quiz-card-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  margin-top: auto;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 0;
  border-radius: 13px;
  box-shadow: 0 10px 22px rgba(29, 78, 216, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.quiz-card button:hover,
.quiz-card button:focus-visible,
.quiz-card-link:hover,
.quiz-card-link:focus-visible {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 13px 26px rgba(29, 78, 216, 0.32);
  transform: translateY(-1px);
}

.home-quiz-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.home-quiz-heading > div {
  max-width: 720px;
}

.home-quiz-all {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  color: var(--brand);
  font-weight: 800;
}

.home-quiz-grid .quiz-card {
  min-height: 330px;
}

.quiz-player-section {
  min-height: 720px;
  padding-top: 54px;
}

.quiz-player-container {
  max-width: 880px;
}

.quiz-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: var(--brand);
  font-weight: 800;
  background: transparent;
  border: 0;
}

.quiz-player-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.quiz-link-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  color: var(--brand);
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
  background: color-mix(in srgb, var(--brand) 9%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 24%, var(--border));
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.quiz-link-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.quiz-link-button:hover,
.quiz-link-button:focus-visible {
  color: #ffffff;
  background: var(--brand);
  transform: translateY(-1px);
}

.quiz-link-button.is-copied {
  color: #ffffff;
  background: #16a34a;
  border-color: #16a34a;
}

.quiz-player-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.quiz-challenge {
  padding: 12px 20px;
  margin: 0;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(90deg, #1d4ed8, #2563eb);
}

.quiz-player-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 34px 24px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border);
}

.quiz-player-header h2 {
  margin-bottom: 7px;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.quiz-player-header p:last-child {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
}

.quiz-live-score {
  flex: 0 0 auto;
  min-width: 116px;
  padding: 11px 15px;
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 0;
  border-radius: 13px;
  box-shadow: 0 10px 22px rgba(29, 78, 216, 0.26);
}

.quiz-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 34px 10px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.quiz-progress-track {
  height: 7px;
  margin: 0 34px;
  overflow: hidden;
  background: var(--surface-soft);
  border-radius: 999px;
}

.quiz-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: inherit;
  transition: width 240ms ease;
}

.quiz-question-panel {
  padding: 34px;
}

.quiz-question {
  max-width: 720px;
  margin-bottom: 26px;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.quiz-question:focus,
.quiz-result h3:focus {
  outline: none;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.quiz-option {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 13px;
  padding: 12px 16px;
  color: var(--text);
  text-align: left;
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 15px;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.quiz-option:not(:disabled):hover,
.quiz-option:not(:disabled):focus-visible {
  background: var(--surface-soft);
  border-color: var(--brand);
  transform: translateY(-1px);
}

.quiz-option:disabled {
  cursor: default;
  opacity: 1;
}

.quiz-option-letter {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 800;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.quiz-option.is-correct {
  color: #065f46;
  background: #ecfdf5;
  border-color: #34d399;
}

.quiz-option.is-correct .quiz-option-letter {
  color: #ffffff;
  background: #059669;
  border-color: #059669;
}

.quiz-option.is-incorrect {
  color: #991b1b;
  background: #fef2f2;
  border-color: #f87171;
}

.quiz-option.is-incorrect .quiz-option-letter {
  color: #ffffff;
  background: #dc2626;
  border-color: #dc2626;
}

.quiz-feedback {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 24px;
  margin-top: 20px;
  border: 1px solid;
  border-radius: 18px;
  animation: quiz-feedback-in 220ms ease;
}

@keyframes quiz-feedback-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quiz-feedback-status {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
}

.quiz-feedback-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 50%;
}

.quiz-feedback-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.quiz-feedback-explanation {
  margin: 0;
  padding-left: 44px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.6;
}

.quiz-feedback.is-correct {
  color: #065f46;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.quiz-feedback.is-correct .quiz-feedback-icon {
  color: #ffffff;
  background: #059669;
}

.quiz-feedback.is-correct .quiz-feedback-explanation {
  color: #065f46;
}

.quiz-feedback.is-incorrect {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.quiz-feedback.is-incorrect .quiz-feedback-icon {
  color: #ffffff;
  background: #dc2626;
}

.quiz-feedback.is-incorrect .quiz-feedback-explanation {
  color: #991b1b;
}

.quiz-reference {
  padding: 0;
  color: inherit;
  font-size: inherit;
  font-family: inherit;
  font-weight: 800;
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: 0.16em;
}

.quiz-reference:hover,
.quiz-reference:focus-visible {
  text-decoration-color: currentColor;
}

.quiz-next-row {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
}

.quiz-navigation {
  display: flex;
  width: 100%;
  justify-content: flex-end;
  gap: 12px;
}

.quiz-previous,
.quiz-next,
.quiz-retake {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  font-weight: 800;
  border-radius: 13px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.quiz-previous {
  margin-right: auto;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: none;
}

.quiz-next,
.quiz-retake {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 0;
  box-shadow: 0 10px 22px rgba(29, 78, 216, 0.26);
}

.quiz-next:hover,
.quiz-next:focus-visible,
.quiz-retake:hover,
.quiz-retake:focus-visible {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 13px 26px rgba(29, 78, 216, 0.34);
  transform: translateY(-1px);
}

.quiz-previous:hover,
.quiz-previous:focus-visible {
  color: var(--brand);
  background: var(--surface-soft);
  border-color: var(--brand);
  transform: translateY(-1px);
}

.quiz-save-status {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  text-align: right;
}

.quiz-result {
  padding: 52px 34px;
  text-align: center;
}

.quiz-result-label {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quiz-result-score {
  display: block;
  margin: 5px 0 15px;
  color: var(--brand);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
}

.quiz-result h3 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.quiz-result > p {
  max-width: 590px;
  margin: 0 auto 26px;
  color: var(--muted);
}

.quiz-result-actions,
.quiz-share-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
}

.quiz-choose,
.quiz-share-buttons button {
  min-height: 44px;
  padding: 0 15px;
  color: var(--text);
  font-weight: 800;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.quiz-share {
  padding-top: 26px;
  margin-top: 30px;
  border-top: 1px solid var(--border);
}

.quiz-share > span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.quiz-share-buttons button:hover,
.quiz-share-buttons button:focus-visible,
.quiz-choose:hover,
.quiz-choose:focus-visible {
  color: var(--brand);
  border-color: var(--brand);
}

.quiz-result-note {
  display: block;
  min-height: 1.5em;
  margin-top: 18px;
  color: var(--muted);
}

.quiz-result-study {
  max-width: 590px;
  margin: 0 auto 26px;
  padding: 20px 22px;
  text-align: left;
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 16px;
}

.quiz-result-study-label {
  display: block;
  margin: 0 0 4px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quiz-result-study-intro {
  margin: 0 0 12px;
  color: var(--muted);
}

.quiz-result-study-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.quiz-result-study-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  color: var(--brand);
  font-weight: 800;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.quiz-result-study-links a:hover,
.quiz-result-study-links a:focus-visible {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

[data-theme="dark"] .quiz-result-study {
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(125, 177, 255, 0.24);
}

.quiz-study-cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.quiz-study-cta h2 {
  max-width: 650px;
  margin-bottom: 12px;
}

.quiz-study-cta p:last-child {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
}

.quiz-study-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 9px;
}

.quiz-study-actions a {
  min-width: 190px;
  padding: 11px 16px;
  color: var(--brand);
  font-weight: 800;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

[data-theme="dark"] .quiz-option.is-correct,
[data-theme="dark"] .quiz-feedback.is-correct {
  color: #a7f3d0;
  background: rgba(6, 95, 70, 0.32);
  border-color: #059669;
}

[data-theme="dark"] .quiz-feedback.is-correct .quiz-feedback-explanation {
  color: #a7f3d0;
}

[data-theme="dark"] .quiz-option.is-incorrect,
[data-theme="dark"] .quiz-feedback.is-incorrect {
  color: #fecaca;
  background: rgba(153, 27, 27, 0.28);
  border-color: #dc2626;
}

[data-theme="dark"] .quiz-feedback.is-incorrect .quiz-feedback-explanation {
  color: #fecaca;
}

[data-theme="dark"] .quiz-previous {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}

[data-theme="dark"] .quiz-previous:hover,
[data-theme="dark"] .quiz-previous:focus-visible {
  color: #93c5fd;
  border-color: #93c5fd;
}

[data-theme="dark"] .quiz-card-prophecy {
  background:
    linear-gradient(145deg, rgba(154, 52, 18, 0.14), transparent 58%),
    var(--surface);
}

@media (max-width: 900px) {
  .quiz-hero-grid {
    grid-template-columns: 1fr 190px;
    gap: 32px;
  }

  .quiz-hero-mark {
    width: 156px;
    height: 156px;
    border-radius: 30px;
  }

  .quiz-hero-mark svg {
    width: 72px;
    height: 72px;
  }

  .quiz-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .quiz-hero {
    padding: 62px 0 58px;
  }

  .study-hero {
    background:
      linear-gradient(120deg, var(--study-hero-scrim-a) 0%, var(--study-hero-scrim-b) 46%, var(--study-hero-scrim-c) 100%),
      radial-gradient(circle at 82% 34%, rgba(96, 165, 250, 0.28), transparent 24rem),
      var(--study-hero-image, none) var(--study-hero-mobile-position, var(--study-hero-position, center 50%)) / cover no-repeat,
      linear-gradient(135deg, #071f35 0%, #123d68 56%, #1d4ed8 130%);
  }

  .quiz-hero-grid {
    grid-template-columns: 1fr;
  }

  .quiz-hero-mark {
    display: none;
  }

  .quiz-hero h1 {
    font-size: clamp(2.4rem, 13vw, 3.4rem);
  }

  .quiz-grid {
    grid-template-columns: 1fr;
  }

  .quiz-daniel-grid {
    grid-template-columns: 1fr;
  }

  .home-quiz-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .quiz-card {
    min-height: 0;
  }

  .quiz-series-heading {
    padding: 26px 22px;
  }

  .quiz-player-section {
    padding: 34px 0 64px;
  }

  .quiz-player-card {
    border-radius: 22px;
  }

  .quiz-player-header {
    display: block;
    padding: 24px 20px 20px;
  }

  .quiz-live-score {
    display: inline-flex;
    margin-top: 14px;
  }

  .quiz-progress-meta {
    padding: 20px 20px 10px;
  }

  .quiz-progress-meta span:last-child {
    display: none;
  }

  .quiz-progress-track {
    margin: 0 20px;
  }

  .quiz-question-panel,
  .quiz-result {
    padding: 26px 20px;
  }

  .quiz-options {
    grid-template-columns: 1fr;
  }

  .quiz-feedback {
    padding: 18px 20px;
  }

  .quiz-feedback-explanation {
    padding-left: 0;
  }

  .quiz-navigation {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .quiz-next,
  .quiz-previous {
    width: 100%;
  }

  .quiz-result-actions > button {
    width: 100%;
  }

  .quiz-share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .quiz-study-cta .container {
    align-items: stretch;
    flex-direction: column;
    gap: 28px;
  }

  .quiz-study-actions a {
    width: 100%;
  }
}

.study-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.study-filter {
  padding: 9px 18px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.study-filter:hover,
.study-filter:focus-visible {
  color: var(--text);
  border-color: var(--brand);
  transform: translateY(-1px);
}

.study-filter.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.26);
}

.study-progress-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 26px;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
}

.study-progress-info {
  flex: 1 1 260px;
  min-width: 220px;
}

.study-progress-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.study-progress-info strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1.05rem;
}

.study-progress-track {
  height: 8px;
  overflow: hidden;
  background: var(--surface-soft);
  border-radius: 999px;
}

.study-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  border-radius: inherit;
  transition: width 320ms ease;
}

.study-progress-banner.is-complete {
  border-color: color-mix(in srgb, #d4af37 45%, var(--border));
  background: linear-gradient(135deg, color-mix(in srgb, #d4af37 10%, var(--surface)), var(--surface));
}

.study-progress-banner.is-complete .study-progress-track span {
  background: linear-gradient(90deg, #d4af37, #f2cd5c);
}

.study-certificate-cta {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  min-height: 48px;
  color: #3d2d05;
  font-weight: 800;
  background: linear-gradient(135deg, #f2cd5c, #d4af37);
  border: 0;
  border-radius: 13px;
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.34);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.study-certificate-cta:hover,
.study-certificate-cta:focus-visible {
  box-shadow: 0 14px 30px rgba(212, 175, 55, 0.42);
  transform: translateY(-1px);
}

.study-card.is-completed {
  border-color: color-mix(in srgb, #059669 40%, var(--border));
}

.study-card.is-completed::after {
  content: "✓ Completed";
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 5px 12px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(5, 150, 105, 0.32);
}

.study-key-thought {
  padding: 20px 22px;
  margin: 22px 24px 0;
  background: color-mix(in srgb, var(--brand) 8%, var(--surface-soft));
  border-left: 4px solid var(--brand);
  border-radius: 14px;
}

.study-key-thought-label {
  display: block;
  margin-bottom: 6px;
  color: var(--brand);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.study-key-thought p {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

.study-version-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 22px;
  margin: 18px 24px 0;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.study-version-bar label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.study-version-bar select {
  width: min(260px, 60%);
  min-height: 40px;
  padding: 8px 34px 8px 12px;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  background-color: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.study-version-bar select:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.study-step {
  display: flex;
  gap: 16px;
  padding-bottom: 26px;
}

.study-step + .study-step {
  padding-top: 26px;
  border-top: 1px dashed var(--border);
}

.study-step-badge {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(29, 78, 216, 0.28);
}

.study-step-body {
  flex: 1 1 auto;
  min-width: 0;
}

.study-step-title {
  display: block;
  margin-bottom: 10px;
  padding-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.study-reference-line {
  display: block;
  margin-bottom: 10px;
  font-family: "Inter", sans-serif;
  font-size: 0.92rem;
}

.study-mode-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin: 18px 0 4px;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.study-mode-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.study-mode-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  background: rgba(148, 163, 184, 0.12);
  border-radius: 12px;
}

.study-mode-button {
  padding: 8px 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.study-mode-button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}

.study-statement {
  margin: 0;
  color: var(--text);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.28rem;
  line-height: 1.6;
}

.study-statement.is-reading-card {
  position: relative;
  padding: 24px 24px 24px 56px;
  font-size: 1.36rem;
  background: color-mix(in srgb, var(--brand) 6%, var(--surface-soft));
  border: 1px solid color-mix(in srgb, var(--brand) 25%, var(--border));
  border-left: 4px solid var(--brand);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.08);
}

.study-statement.is-reading-card::before {
  content: "📖";
  position: absolute;
  top: 22px;
  left: 20px;
  font-size: 1.2rem;
}

.study-reading-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 4px;
}

.study-read-hint {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

.study-read-action,
.study-submit-answer {
  padding: 12px 18px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}

.study-submit-answer:disabled,
.study-read-action:disabled {
  opacity: 0.7;
  cursor: default;
}

.study-retry-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  margin-top: 4px;
  background: color-mix(in srgb, #f59e0b 10%, transparent);
  border: 1px solid color-mix(in srgb, #f59e0b 35%, transparent);
  border-radius: 12px;
}

.study-retry-note {
  flex: 1 1 220px;
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.5;
}

.study-reveal-answer {
  padding: 10px 16px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.study-reveal-answer:hover,
.study-reveal-answer:focus-visible {
  border-color: var(--brand);
}

.study-blank {
  display: inline-block;
  padding: 2px 10px;
  font-weight: 800;
  border-radius: 8px;
  transition: filter 260ms ease, opacity 260ms ease, background 200ms ease, color 200ms ease;
}

.study-blank.is-blurred {
  color: var(--text);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  filter: blur(6px);
  opacity: 0.75;
  user-select: none;
}

.study-blank.is-correct {
  color: #065f46;
  background: #d1fae5;
}

.study-blank.is-revealed {
  color: #1e3a8a;
  background: #dbeafe;
}

[data-theme="dark"] .study-blank.is-correct {
  color: #a7f3d0;
  background: rgba(6, 95, 70, 0.32);
}

[data-theme="dark"] .study-blank.is-revealed {
  color: #bfdbfe;
  background: rgba(29, 58, 138, 0.4);
}

.study-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.study-answer-input-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.study-answer-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 12px 14px;
  color: var(--text);
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.study-answer-helper {
  width: 100%;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.study-option {
  padding: 12px 22px;
  color: var(--text);
  font-weight: 700;
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.study-option:not(:disabled):hover,
.study-option:not(:disabled):focus-visible {
  background: var(--surface-soft);
  border-color: var(--brand);
  transform: translateY(-1px);
}

.study-option:disabled {
  cursor: default;
  opacity: 1;
}

.study-option.is-correct {
  color: #065f46;
  background: #ecfdf5;
  border-color: #34d399;
}

.study-option.is-incorrect {
  color: #991b1b;
  background: #fef2f2;
  border-color: #f87171;
}

.study-feedback {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 24px;
  margin-top: 20px;
  border: 1px solid;
  border-radius: 18px;
  animation: quiz-feedback-in 220ms ease;
}

.study-feedback-status {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
}

.study-feedback-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 50%;
}

.study-feedback-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.study-feedback-insight {
  margin: 0;
  padding-left: 44px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.6;
}

.study-feedback.is-correct {
  color: #065f46;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.study-feedback.is-correct .study-feedback-icon {
  color: #ffffff;
  background: #059669;
}

.study-feedback.is-correct .study-feedback-insight {
  color: #065f46;
}

.study-feedback.is-incorrect {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.study-feedback.is-incorrect .study-feedback-icon {
  color: #ffffff;
  background: #dc2626;
}

.study-feedback.is-incorrect .study-feedback-insight {
  color: #991b1b;
}

.study-complete-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  margin: 0 auto 18px;
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(5, 150, 105, 0.3);
  animation: quiz-feedback-in 260ms ease;
}

.study-complete-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  background: rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}

.study-complete-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.study-result-message {
  max-width: 520px;
  margin: 14px auto 0;
  color: var(--text);
  line-height: 1.6;
}

.study-decision {
  max-width: 520px;
  padding: 18px 22px;
  margin: 22px auto 0;
  background: color-mix(in srgb, var(--brand) 8%, var(--surface-soft));
  border-left: 4px solid var(--brand);
  border-radius: 14px;
  text-align: left;
}

.study-decision-label {
  display: block;
  margin-bottom: 6px;
  color: var(--brand);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.study-decision p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
}

.study-going-deeper {
  max-width: 520px;
  padding: 18px 22px;
  margin: 16px auto 0;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: left;
}

.study-going-deeper-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.study-going-deeper-intro {
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.6;
}

.study-going-deeper-intro[hidden] {
  display: none;
}

.study-going-deeper-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.study-going-deeper-list .study-reference {
  font-size: 0.88rem;
}

.study-certificate-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  max-width: 560px;
  padding: 22px 26px;
  margin: 26px auto 0;
  text-align: left;
  background: linear-gradient(135deg, color-mix(in srgb, #d4af37 14%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, #d4af37 45%, var(--border));
  border-radius: 18px;
}

.study-certificate-banner-icon {
  flex: 0 0 auto;
  font-size: 2.1rem;
  line-height: 1;
}

.study-certificate-banner-text {
  flex: 1 1 220px;
}

.study-certificate-banner-text strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 1.05rem;
}

.study-certificate-banner-text p {
  margin: 0;
  color: var(--muted);
}

.study-certificate-banner .study-certificate-cta {
  flex: 0 0 auto;
  margin-left: auto;
}

[data-theme="dark"] .study-option.is-correct,
[data-theme="dark"] .study-feedback.is-correct {
  color: #a7f3d0;
  background: rgba(6, 95, 70, 0.32);
  border-color: #059669;
}

[data-theme="dark"] .study-feedback.is-correct .study-feedback-insight {
  color: #a7f3d0;
}

[data-theme="dark"] .study-option.is-incorrect,
[data-theme="dark"] .study-feedback.is-incorrect {
  color: #fecaca;
  background: rgba(153, 27, 27, 0.28);
  border-color: #dc2626;
}

[data-theme="dark"] .study-feedback.is-incorrect .study-feedback-insight {
  color: #fecaca;
}

.study-diploma-container {
  max-width: 780px;
}

.study-diploma-card {
  padding: 14px;
  background: linear-gradient(135deg, #f8f3e3, #eee2c0);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.study-diploma-border {
  position: relative;
  padding: 52px 48px 42px;
  text-align: center;
  background: #fffdf7;
  border: 2px solid #d4af37;
  border-radius: 18px;
}

.study-diploma-border::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  border-radius: 12px;
  pointer-events: none;
}

.study-diploma-logo {
  height: 40px;
  margin-bottom: 18px;
}

.study-diploma-eyebrow {
  margin: 0 0 6px;
  color: #9a7b17;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.study-diploma-heading {
  margin: 0 0 22px;
  color: #1f2937;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
}

.study-diploma-intro {
  margin: 0 0 10px;
  color: #4b5563;
  font-style: italic;
}

.study-diploma-name {
  width: 100%;
  max-width: 460px;
  padding: 8px 6px;
  margin: 0 auto 18px;
  color: #1f2937;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  background: transparent;
  border: 0;
  border-bottom: 2px solid #d4af37;
}

.study-diploma-name::placeholder {
  color: #b3a06a;
}

.study-diploma-body {
  max-width: 560px;
  margin: 0 auto 24px;
  color: #374151;
  line-height: 1.65;
}

.study-diploma-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
  max-width: 560px;
  padding: 0;
  margin: 0 auto 30px;
  list-style: none;
  text-align: left;
}

.study-diploma-list li {
  position: relative;
  padding-left: 20px;
  color: #374151;
  font-size: 0.92rem;
}

.study-diploma-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #9a7b17;
  font-weight: 800;
}

.study-diploma-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid rgba(212, 175, 55, 0.4);
}

.study-diploma-footer-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.study-diploma-footer-col-right {
  text-align: right;
}

.study-diploma-signature {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.1rem;
  color: #1f2937;
}

.study-diploma-signature-label,
.study-diploma-date {
  color: #6b7280;
  font-size: 0.8rem;
}

.study-diploma-date {
  display: block;
  color: #1f2937;
  font-weight: 700;
}

.study-diploma-seal {
  color: #d4af37;
}

.study-diploma-seal svg {
  width: 52px;
  height: 52px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.study-diploma-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

@media print {
  body.is-printing-diploma .site-header,
  body.is-printing-diploma .site-footer,
  body.is-printing-diploma .quiz-hero,
  body.is-printing-diploma .quiz-directory-section,
  body.is-printing-diploma .quiz-player-section,
  body.is-printing-diploma .quiz-study-cta,
  body.is-printing-diploma .quiz-back,
  body.is-printing-diploma .study-diploma-actions {
    display: none !important;
  }

  body.is-printing-diploma .study-diploma-section {
    padding: 0;
  }

  body.is-printing-diploma .study-diploma-card {
    box-shadow: none;
  }

  .study-diploma-name {
    border-bottom-color: #d4af37;
  }
}

@media (max-width: 620px) {
  .study-key-thought {
    margin: 18px 20px 0;
  }

  .study-version-bar {
    flex-direction: column;
    align-items: stretch;
    margin: 16px 20px 0;
  }

  .study-version-bar select {
    width: 100%;
  }

  .study-statement {
    font-size: 1.15rem;
  }

  .study-option {
    width: 100%;
    text-align: left;
  }

  .study-step {
    flex-direction: column;
    gap: 10px;
  }

  .study-step-badge {
    display: none;
  }

  .study-progress-banner {
    flex-direction: column;
    align-items: stretch;
  }

  .study-certificate-cta {
    justify-content: center;
  }

  .study-certificate-banner {
    flex-direction: column;
    text-align: center;
  }

  .study-certificate-banner .study-certificate-cta {
    margin-left: 0;
  }

  .study-diploma-border {
    padding: 36px 22px 28px;
  }

  .study-diploma-list {
    grid-template-columns: 1fr;
  }

  .study-diploma-footer {
    flex-direction: column;
    gap: 14px;
    text-align: center;
  }

  .study-diploma-footer-col,
  .study-diploma-footer-col-right {
    align-items: center;
    text-align: center;
  }
}

.verse-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(16, 42, 67, 0.55);
  backdrop-filter: blur(3px);
}

.verse-modal[hidden] {
  display: none;
}

.verse-modal-card {
  width: min(560px, 100%);
  max-height: min(80vh, 640px);
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.verse-modal-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 22px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.verse-modal-header h2 {
  margin: 0;
  font-size: 1.3rem;
  font-family: "Libre Baskerville", Georgia, serif;
}

.verse-modal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border);
}

.verse-modal-toolbar label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.verse-modal-toolbar select {
  width: min(280px, 64%);
  min-height: 42px;
  padding: 8px 36px 8px 12px;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  background-color: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.verse-modal-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  background: var(--field-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.verse-modal-close:hover,
.verse-modal-close:focus-visible {
  color: var(--brand);
  border-color: var(--brand);
}

.verse-modal-body {
  padding: 22px;
}

.verse-text-list {
  margin: 0 0 14px;
}

.verse-text {
  margin: 0 0 12px;
  color: var(--text);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.15rem;
  line-height: 1.65;
}

.verse-text-list .verse-text:last-child {
  margin-bottom: 0;
}

.verse-number {
  margin-right: 4px;
  color: var(--brand);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72em;
  font-weight: 800;
  vertical-align: super;
}

.verse-credit {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

[data-theme="dark"] .site-header {
  border-bottom-color: var(--border);
}

[data-theme="dark"] .brand-mark {
  filter: brightness(0) invert(1);
}

[data-theme="dark"] .answer-card,
[data-theme="dark"] .cta-card,
[data-theme="dark"] .ask-card,
[data-theme="dark"] .ask-help,
[data-theme="dark"] .answer-page-card,
[data-theme="dark"] .related-card,
[data-theme="dark"] .directory-card,
[data-theme="dark"] .topic-card,
[data-theme="dark"] .bible-controls-card,
[data-theme="dark"] .bible-reader-card,
[data-theme="dark"] .verse-modal-card {
  border-color: var(--border);
}

[data-theme="dark"] .section-soft,
[data-theme="dark"] .ask-section,
[data-theme="dark"] .question-results-section {
  background: var(--surface-soft);
}

[data-theme="dark"] .tag-link {
  color: #dbeafe;
  background: rgba(96, 165, 250, 0.16);
  border-color: rgba(96, 165, 250, 0.28);
}

[data-theme="dark"] .directory-answer-meta {
  color: #dbeafe;
  background: rgba(96, 165, 250, 0.16);
  border-color: rgba(96, 165, 250, 0.28);
}

[data-theme="dark"] .scripture-link,
[data-theme="dark"] .scriptures span {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.25);
}

[data-theme="dark"] .scripture-link-inline {
  color: #93c5fd;
  background: transparent;
  border-color: transparent;
}

[data-theme="dark"] .scripture-quote {
  background: color-mix(in srgb, var(--brand) 14%, var(--surface-soft));
}

[data-theme="dark"] .scripture-quote p {
  color: var(--text) !important;
}

[data-theme="dark"] .empty-state {
  background: var(--surface);
}

[data-theme="dark"] .footer-brand .brand-mark {
  filter: brightness(0) invert(1);
}

.verse-status {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 620px) {
  .ask-form-row,
  .hero-ask-row {
    grid-template-columns: 1fr;
  }

  .verse-modal {
    padding: 0;
    align-items: flex-end;
  }

  .verse-modal-card {
    width: 100%;
    max-height: 86vh;
    border-radius: 24px 24px 0 0;
  }

  .verse-modal-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .verse-modal-toolbar select {
    width: 100%;
  }

  .answer-spotlight {
    padding: 24px 20px;
  }

  .answer-spotlight h3 {
    font-size: 1.32rem;
  }

  .results-panel-head {
    align-items: flex-start;
  }

  .answers-directory-toolbar {
    top: 82px;
    grid-template-columns: 1fr;
    padding: 14px;
    border-radius: 22px;
  }

  .answers-directory-count {
    width: fit-content;
  }

  .answers-directory-controls {
    grid-template-columns: 1fr 180px;
  }
}

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

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;
    padding: 12px;
    border-radius: 12px;
  }

  .nav-links > li > a::after {
    display: none;
  }

  .nav-links > li > a[aria-current="page"] {
    color: var(--brand-dark);
    background: color-mix(in srgb, var(--brand) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
    box-shadow: none;
  }

  .nav-item-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 12px;
    border-radius: 12px;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    width: 100%;
    max-width: none;
    margin: 2px 0 6px;
    padding: 4px 0 4px 12px;
    background: transparent;
    border: 0;
    border-left: 2px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .nav-links .nav-dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 12px 14px 12px 46px;
  }

  .nav-dropdown-icon {
    width: 22px;
    height: 22px;
    margin-right: 0;
  }

  .nav-item-dropdown.is-open .nav-dropdown-menu {
    display: block;
    transform: none;
  }

  .nav-search-item {
    order: -1;
    padding: 4px 0 8px;
  }

  .nav-search,
  .nav-search.is-open {
    position: static;
    width: 100%;
  }

  .nav-search-toggle {
    display: none;
  }

  .nav-search-fields,
  .nav-search.is-open .nav-search-fields {
    position: static;
    width: 100%;
    padding: 0;
    margin-left: 0;
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }

  .nav-search input {
    flex: 1;
    width: auto;
  }

  /* The theme control is a button, not a link, so it gets its own row at the
     bottom of the menu with a divider to separate it from the navigation. */
  .nav-theme-item {
    order: 1;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }

  .hero-grid,
  .about-card,
  .answer-page-layout,
  .cta-card,
  .bible-hero-grid,
  .bible-reader-layout {
    grid-template-columns: 1fr;
  }

  .related-card,
  .bible-controls-card {
    position: static;
  }

  .topic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .belief-list {
    grid-template-columns: 1fr;
  }

  .library-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 0;
    padding-top: 44px;
    padding-bottom: 56px;
    background:
      linear-gradient(
        180deg,
        rgba(5, 20, 36, 0.9) 0%,
        rgba(5, 20, 36, 0.95) 50%,
        rgba(5, 20, 36, 0.98) 100%
      ),
      var(--hero-mobile-image, url("images/hero/mobile/bible-study-rod-long.webp")) var(--hero-mobile-position, 62% center) / cover no-repeat;
  }

  .hero-copy {
    padding: 18px 0;
  }

  .hero-photo-credit {
    right: 12px;
    bottom: 10px;
    max-width: calc(100% - 24px);
    text-align: right;
  }

  .promise-card {
    padding: 38px 22px 26px;
  }

  .promise-copy {
    min-width: 0;
  }

  .promise-card blockquote {
    width: 100%;
    padding: 10px 0;
  }

  .promise-actions {
    width: 100%;
  }

  .promise-navigation {
    width: 100%;
  }

  .promise-navigation-main {
    display: grid;
    grid-template-columns: 44px minmax(100px, 1fr) 44px;
    width: min(100%, 294px);
  }

  .promise-navigation-options {
    flex-wrap: wrap;
  }

  .about-beliefs > summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .details-action {
    align-self: flex-start;
  }

  .promise-position {
    flex-basis: 100%;
  }

  .search-card {
    max-width: none;
    margin-bottom: 0;
    padding: 18px;
    transform: none;
  }

  .search-card-heading {
    margin: 0 2px 12px;
  }

  .search-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    width: 100%;
    padding: 6px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .search-row:focus-within {
    border-color: transparent;
    box-shadow: none;
  }

  .search-input-wrap {
    min-height: 58px;
    padding: 0 14px;
    background: rgba(7, 31, 53, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    box-shadow: inset 0 1px 2px rgba(15, 42, 67, 0.04);
  }

  .search-input-wrap:focus-within {
    border-color: #60a5fa;
    background: rgba(7, 31, 53, 0.82);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
  }

  .hero .search-row button {
    width: 100%;
    min-height: 52px;
  }

  .search-hint {
    width: 100%;
    justify-content: center;
  }

  .topic-grid {
    grid-template-columns: 1fr;
  }

  .topic-page-heading {
    gap: 16px;
  }

  .topic-page-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
  }

  .topic-page-icon svg {
    width: 24px;
    height: 24px;
  }

  .topic-answer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }

  .page-hero {
    min-height: 0;
    padding: 38px 0 28px;
  }

  .page-hero + .section {
    padding-top: 24px;
  }

  .answers-directory-toolbar {
    position: static;
  }

  .answers-directory-controls {
    grid-template-columns: 1fr;
  }

  .hero-panel,
  .answer-card,
  .cta-card,
  .bible-controls-card,
  .bible-reader-card {
    padding: 24px;
  }

  .bible-controls-card {
    gap: 14px;
    padding: 20px;
  }

  .bible-control-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  .bible-control-actions .bible-nav-button {
    width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
  }

  .bible-control-field select {
    min-height: 50px;
    font-size: 1rem;
  }

  .bible-text-size-buttons {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  .bible-text-size-buttons input[type="range"] {
    min-height: 32px;
  }

  .bible-reader-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bible-reader-head h2 {
    font-size: clamp(2.25rem, 12vw, 3.1rem);
    line-height: 1.08;
  }

  .bible-reader-head p:last-child {
    max-width: 28ch;
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .bible-reader-head-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    align-items: center;
    gap: 10px;
  }

  .bible-reader-head-actions .quiz-link-button {
    min-width: 0;
    width: fit-content;
    max-width: 100%;
  }

  .bible-reader-arrows {
    gap: 8px;
    justify-self: end;
  }

  .bible-reader-arrows button {
    width: 42px;
    height: 42px;
  }

  .bible-chapter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
    gap: 10px;
  }

  .bible-selection-panel {
    padding: 18px;
  }

  .bible-selection-primary-actions {
    width: 100%;
  }

  .bible-selection-primary-actions button {
    flex: 1 1 0;
    min-width: 0;
  }

  .bible-selection-social-actions {
    gap: 10px;
  }

  .bible-graphic-customizer {
    display: grid;
    align-items: stretch;
  }

  .bible-graphic-palettes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .bible-graphic-create {
    width: 100%;
  }

  .bible-memory-controls,
  .bible-memory-actions {
    grid-template-columns: 1fr;
  }

  .bible-memory-controls {
    display: grid;
  }

  .bible-memory-actions {
    display: grid;
  }

  .bible-bottom-nav {
    grid-template-columns: repeat(2, 44px);
    justify-content: center;
    gap: 10px;
  }

  .bible-bottom-nav .bible-nav-button {
    width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
  }

  .bible-chapter-button {
    min-width: 38px;
  }
}
