/* ═══════════════════════════════════════════════════════════════════════
   What We Believe — Nazarene banner, side list, numbered beliefs
   (page top uses the shared .page-hero in css/site.css)
   ═══════════════════════════════════════════════════════════════════════ */

html { scroll-padding-top: calc(var(--header-h) + var(--banner-h, 0px) + 1.5rem); }

/* ── Layout: side list + beliefs ──────────────────────────────────────── */
.wb-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.wb-toc {
  position: sticky;
  top: calc(var(--header-h) + var(--banner-h, 0px) + 1.5rem);
}
.wb-toc__title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 0.75rem; }
.wb-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.wb-toc a {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  color: var(--fg-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.wb-toc a span { font-size: 0.72rem; font-weight: 700; color: var(--fg-faint); font-variant-numeric: tabular-nums; }
.wb-toc a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.05); }
.wb-toc a[aria-current='true'] { color: var(--fg); background: color-mix(in srgb, var(--gold) 14%, transparent); }
.wb-toc a[aria-current='true'] span { color: var(--gold); }

/* ── One belief ───────────────────────────────────────────────────────── */
.wb-list { display: flex; flex-direction: column; }
.wb {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  column-gap: 1.25rem;
  padding-block: clamp(1.75rem, 3.5vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.wb:first-child { border-top: 0; padding-top: 0; }
.wb__num {
  grid-row: 1 / span 20;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 2.6rem;
  line-height: 0.9;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.wb__title { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.05; letter-spacing: -0.02em; }
.wb-item { margin-top: 0.9rem; }
.wb-item + .wb-item { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px dashed var(--line); }
.wb-item p { font-size: clamp(1.02rem, 1.6vw, 1.15rem); line-height: 1.6; max-width: 62ch; }
.wb-refs { list-style: none; margin: 0.75rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.wb-refs a {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  font-style: italic;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.wb-refs a:hover { color: var(--gold); border-color: var(--gold); }

/* ── Video (thumbnail until played) ───────────────────────────────────── */
.wb-video { margin: clamp(1.5rem, 3vw, 2.5rem) 0 0; }
.wb-video__cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.75rem; margin-bottom: 0.85rem; font-weight: 800; font-size: clamp(1.15rem, 2vw, 1.35rem); }
.wb-video__play, .wb-video__frame {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}
.wb-video__play { cursor: pointer; }
.wb-video__play img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease), opacity 0.3s; opacity: 0.88; }
.wb-video__play:hover img { transform: scale(1.03); opacity: 1; }
.wb-video__btn {
  position: absolute;
  inset: 0;
  margin: auto;
  display: grid;
  place-items: center;
  width: clamp(64px, 9vw, 88px);
  height: clamp(64px, 9vw, 88px);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s var(--ease);
}
.wb-video__btn svg { width: 42%; height: 42%; margin-left: 6%; fill: #111; }
.wb-video__play:hover .wb-video__btn, .wb-video__play:focus-visible .wb-video__btn { transform: scale(1.08); }
.wb-video__play:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .wb-video__play img, .wb-video__btn { transition: none; } }

/* ── Closing card ─────────────────────────────────────────────────────── */
.wb-more {
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 120% at 0% 0%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 60%),
    var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.8rem;
}
.wb-more__title { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.wb-more p { color: var(--fg-muted); max-width: 60ch; }
.wb-more p a { color: var(--gold); font-weight: 700; text-decoration: none; }
.wb-more p a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.wb-more .btn { margin-top: 0.4rem; }

/* ── Smaller screens: the side list becomes a scrolling row of chips ──── */
@media (max-width: 900px) {
  .wb-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .wb-toc {
    position: sticky;
    top: calc(var(--header-h) + var(--banner-h, 0px));
    z-index: 5;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0.6rem var(--gutter);
    background: rgba(13, 14, 13, 0.88);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
  }
  .wb-toc__title { display: none; }
  .wb-toc ol { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 6px; }
  .wb-toc ol::-webkit-scrollbar { display: none; }
  .wb-toc a { white-space: nowrap; padding: 0.4rem 0.8rem; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.85rem; }
  .wb-toc a span { display: none; }
  .wb-toc a[aria-current='true'] { border-color: var(--gold); }
  html { scroll-padding-top: calc(var(--header-h) + var(--banner-h, 0px) + 4.5rem); }
  .wb { grid-template-columns: 3rem minmax(0, 1fr); column-gap: 0.75rem; }
  .wb__num { font-size: 1.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  .wb-toc a, .wb-refs a { transition: none; }
}

/* ── Made for More link (bottom of the page) ──────────────────────────── */
.wb-mfm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(100deg, rgba(10, 10, 10, 0.88) 30%, rgba(10, 10, 10, 0.45)),
    url('/assets/img/baptism.jpg') center 40% / cover;
}
.wb-mfm__note { font-family: 'Caveat', 'Bradley Hand', cursive; font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1; color: var(--gold); transform: rotate(-4deg); transform-origin: left bottom; display: inline-block; }
.wb-mfm__title { margin-top: 0.2rem; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1; letter-spacing: -0.03em; }
.wb-mfm div > p:last-child { margin-top: 0.75rem; max-width: 48ch; color: rgba(255, 255, 255, 0.82); line-height: 1.55; }
