/* ==========================================================================
   ONE — Crosspointe + Friends Church
   Scoped styles for page-templates/template-one.php
   All selectors prefixed .one- to avoid collisions with the global sheet.
   ========================================================================== */

.one-page {
  --one-red: var(--cp-red, #A62B22);
  --one-ink: #141414;
  --one-muted: #5C5C5C;
  --one-rule: #E4E4E4;
  --one-cream: #F7F5F3;
  overflow-x: clip;
}

.one-page .one-wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--cp-space-6, 1.5rem);
}

.one-page .one-wrap--narrow { max-width: 780px; }
.one-page .one-wrap--wide   { max-width: 1320px; }

/* --------------------------------------------------------------------------
   Shared type
   -------------------------------------------------------------------------- */

.one-page .one-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  margin: 0 0 var(--cp-space-5, 1.25rem);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--one-red);
}

.one-page .one-eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  flex: none;
}

.one-page .one-eyebrow--center { justify-content: center; }
.one-page .one-eyebrow--light  { color: #FF8A7A; }

.one-page .one-h2 {
  margin: 0 0 var(--cp-space-6, 1.5rem);
  font-size: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-transform: uppercase;
  color: var(--one-ink);
  text-wrap: balance;
}

.one-page .one-h3 {
  margin: 0 0 var(--cp-space-3, 0.75rem);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--one-ink);
}

.one-page .one-lede {
  margin: 0 0 var(--cp-space-6, 1.5rem);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.55;
  color: var(--one-muted);
}

.one-page .one-body > p {
  margin: 0 0 var(--cp-space-5, 1.25rem);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: #3A3A3A;
}

.one-page .one-body > p:last-child { margin-bottom: 0; }

.one-page .one-section {
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem);
}

.one-page .one-section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.one-page .one-section--cream { background: var(--one-cream); }
.one-page .one-section--ink   { background: #101010; }

.one-page .one-section--ink .one-h2,
.one-page .one-section--ink .one-h3 { color: #fff; }
.one-page .one-section--ink .one-lede { color: rgba(255,255,255,0.72); }
.one-page .one-section--ink .one-body > p { color: rgba(255,255,255,0.78); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.one-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(88svh, 820px);
  padding-block: clamp(5rem, 4rem + 8vw, 9rem);
  text-align: center;
  color: #fff;
  isolation: isolate;
  background: #0B0B0B;
}

.one-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.one-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.one-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(8,8,8,0.55) 0%, rgba(8,8,8,0.28) 45%, rgba(8,8,8,0.72) 100%);
}

.one-hero__mark {
  display: block;
  margin: 0;
  font-size: clamp(5.5rem, 2rem + 20vw, 15rem);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.one-hero__words {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.9rem, 0.3rem + 2.6vw, 2.75rem);
  margin-top: var(--cp-space-5, 1.25rem);
  font-size: clamp(0.8125rem, 0.7rem + 0.6vw, 1.375rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.96);
  text-shadow: 0 1px 10px rgba(0,0,0,0.7);
}

.one-hero__rule {
  width: 56px;
  height: 3px;
  margin: clamp(1.75rem, 1rem + 2vw, 2.75rem) auto clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: var(--one-red);
}

.one-hero__tagline {
  max-width: 30ch;
  margin: 0 auto;
  font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.5rem);
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255,255,255,0.9);
  text-wrap: balance;
}

.one-hero__verse {
  max-width: 52ch;
  margin: clamp(1.75rem, 1rem + 2vw, 2.5rem) auto 0;
  font-size: clamp(0.875rem, 0.82rem + 0.25vw, 1rem);
  line-height: 1.65;
  color: rgba(255,255,255,0.88);
  font-style: italic;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

.one-hero__verse cite {
  display: block;
  margin-top: 0.5rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

.one-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--cp-space-3, 0.75rem);
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
}

/* --------------------------------------------------------------------------
   Section nav
   -------------------------------------------------------------------------- */

.one-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--one-rule);
}

.one-nav__scroll {
  display: flex;
  gap: clamp(1rem, 0.5rem + 1.6vw, 2rem);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-block: 0.95rem;
}

.one-nav__scroll::-webkit-scrollbar { display: none; }

.one-nav__link {
  flex: none;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #6B6B6B;
  text-decoration: none;
  white-space: nowrap;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--cp-transition-fast, .15s ease), border-color var(--cp-transition-fast, .15s ease);
}

.one-nav__link:hover,
.one-nav__link:focus-visible {
  color: var(--one-red);
  border-bottom-color: var(--one-red);
}

.one-page [id] { scroll-margin-top: 88px; }

/* --------------------------------------------------------------------------
   Statement bands — full-bleed photo with big type (booklet chapter dividers)
   -------------------------------------------------------------------------- */

.one-statement {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(360px, 46vw, 620px);
  padding-block: clamp(4rem, 3rem + 5vw, 7rem);
  text-align: center;
  color: #fff;
  isolation: isolate;
  background: #111;
}

.one-statement__bg { position: absolute; inset: 0; z-index: -2; }

.one-statement__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.one-statement__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.28) 45%, rgba(0,0,0,0.58) 100%);
}

.one-page .one-statement__title {
  color: #fff;
  margin: 0;
  font-size: clamp(2.25rem, 1rem + 6.4vw, 5.5rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}

.one-statement__sub {
  max-width: 44ch;
  margin: var(--cp-space-5, 1.25rem) auto 0;
  font-size: clamp(1rem, 0.92rem + 0.4vw, 1.25rem);
  line-height: 1.5;
  color: rgba(255,255,255,0.88);
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Scripture pull-quote
   -------------------------------------------------------------------------- */

.one-verse {
  text-align: center;
  background: #101010;
  color: #fff;
  padding-block: clamp(3.5rem, 2.5rem + 5vw, 6.5rem);
}

.one-verse--cream {
  background: var(--one-cream);
  color: var(--one-ink);
}

.one-verse blockquote {
  max-width: 26ch;
  margin: 0 auto;
  font-size: clamp(1.5rem, 1rem + 2.4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.one-verse blockquote.one-verse--sm { max-width: 40ch; font-size: clamp(1.25rem, 1rem + 1.4vw, 2rem); }

.one-verse cite {
  display: block;
  margin-top: var(--cp-space-5, 1.25rem);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--one-red);
}

.one-verse--cream cite { color: var(--one-red); }

/* --------------------------------------------------------------------------
   Letters from the pastors
   -------------------------------------------------------------------------- */

.one-letters {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .one-letters { grid-template-columns: repeat(2, 1fr); }
}

.one-letter {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--one-rule);
  border-radius: var(--cp-radius-lg, 12px);
  overflow: hidden;
  box-shadow: var(--cp-shadow-sm, 0 2px 8px rgba(0,0,0,0.08));
}

.one-letter__photo {
  aspect-ratio: 16 / 10;
  background: #EDEAE7;
}

.one-letter__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.one-letter__inner {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.one-letter__from {
  margin: 0 0 var(--cp-space-4, 1rem);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--one-red);
}

.one-letter__body > p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.7;
  color: #3A3A3A;
}

.one-letter__sig {
  margin-top: auto;
  padding-top: var(--cp-space-5, 1.25rem);
  border-top: 1px solid var(--one-rule);
}

.one-letter__name {
  margin: 0;
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--one-ink);
}

.one-letter__role {
  margin: 0.15rem 0 0;
  font-size: 0.875rem;
  color: var(--one-muted);
}

/* --------------------------------------------------------------------------
   Convictions / value cards
   -------------------------------------------------------------------------- */

.one-cards {
  display: grid;
  gap: clamp(1rem, 0.5rem + 1.6vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.one-card {
  position: relative;
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
  background: #fff;
  border: 1px solid var(--one-rule);
  border-radius: var(--cp-radius-lg, 12px);
}

.one-section--cream .one-card { background: #fff; }

.one-card__num {
  display: block;
  margin-bottom: var(--cp-space-4, 1rem);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--one-red);
}

.one-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--one-muted);
}

/* Numbered impact list */

.one-impact {
  display: grid;
  gap: clamp(1rem, 0.5rem + 1.4vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.one-impact li {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: rgba(255,255,255,0.045);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--cp-radius-lg, 12px);
}

.one-impact strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.0625rem;
  font-weight: 800;
  color: #fff;
}

.one-impact span {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}

/* --------------------------------------------------------------------------
   Split (image + text)
   -------------------------------------------------------------------------- */

.one-split {
  display: grid;
  gap: clamp(1.75rem, 1rem + 3vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .one-split { grid-template-columns: 1fr 1fr; }
  .one-split--flip .one-split__media { order: 2; }
}

.one-split__media {
  border-radius: var(--cp-radius-lg, 12px);
  overflow: hidden;
  background: #EDEAE7;
}

.one-split__media img {
  width: 100%;
  height: 100%;
  max-height: 620px;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   Ministry / opportunity chip lists
   -------------------------------------------------------------------------- */

.one-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.one-chips li {
  padding: 0.45rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--one-ink);
  background: #fff;
  border: 1px solid var(--one-rule);
  border-radius: 999px;
}

.one-section--ink .one-chips li {
  color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.16);
}

.one-chipgroup + .one-chipgroup { margin-top: clamp(1.75rem, 1rem + 2vw, 2.5rem); }

.one-chipgroup__label {
  margin: 0 0 var(--cp-space-3, 0.75rem);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--one-red);
}

/* --------------------------------------------------------------------------
   Stay / change comparison
   -------------------------------------------------------------------------- */

.one-compare {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .one-compare { grid-template-columns: 1fr 1fr; align-items: start; }
}

.one-panel {
  padding: clamp(1.75rem, 1rem + 2.4vw, 2.75rem);
  border-radius: var(--cp-radius-lg, 12px);
  border: 1px solid var(--one-rule);
  background: #fff;
  height: 100%;
}

.one-panel--change {
  background: #101010;
  border-color: #101010;
  color: #fff;
}

.one-panel__title {
  margin: 0 0 var(--cp-space-5, 1.25rem);
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--one-ink);
}

.one-panel--change .one-panel__title { color: #fff; }

.one-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--cp-space-4, 1rem);
}

.one-list li {
  padding-left: 1.85rem;
  position: relative;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--one-muted);
}

.one-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--one-red);
}

.one-panel--change .one-list li { color: rgba(255,255,255,0.74); }

.one-list strong {
  display: block;
  font-weight: 800;
  color: var(--one-ink);
  margin-bottom: 0.15rem;
}

.one-panel--change .one-list strong { color: #fff; }

/* --------------------------------------------------------------------------
   Stories from the church family
   -------------------------------------------------------------------------- */

.one-stories {
  display: grid;
  gap: clamp(1.25rem, 0.75rem + 1.8vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.one-story {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--one-rule);
  border-radius: var(--cp-radius-lg, 12px);
  overflow: hidden;
}

.one-story__photo {
  aspect-ratio: 4 / 3;
  background: #EDEAE7;
}

.one-story__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.one-story__inner {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.one-story__quote {
  margin: 0 0 var(--cp-space-4, 1rem);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--one-ink);
}

.one-story__text {
  margin: 0 0 var(--cp-space-5, 1.25rem);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--one-muted);
}

.one-story__name {
  margin: auto 0 0;
  padding-top: var(--cp-space-4, 1rem);
  border-top: 1px solid var(--one-rule);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--one-red);
}

/* --------------------------------------------------------------------------
   Prayer grid
   -------------------------------------------------------------------------- */

.one-prayer {
  display: grid;
  gap: clamp(1rem, 0.5rem + 1.4vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.one-prayer__item {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border-left: 3px solid var(--one-red);
  background: rgba(255,255,255,0.045);
}

.one-prayer__item h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.one-prayer__item p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.one-faq__group + .one-faq__group { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }

.one-faq__grouptitle {
  margin: 0 0 var(--cp-space-4, 1rem);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--one-red);
}

.one-faq__item {
  border-bottom: 1px solid var(--one-rule);
}

.one-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.15rem 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--one-ink);
  cursor: pointer;
}

.one-faq__q:hover { color: var(--one-red); }

.one-faq__icon {
  flex: none;
  color: var(--one-red);
  transition: transform var(--cp-transition-base, .3s ease);
}

.one-faq__q[aria-expanded="true"] .one-faq__icon { transform: rotate(180deg); }

.one-faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--cp-transition-base, .3s ease);
}

.one-faq__a > div { overflow: hidden; }

.one-faq__q[aria-expanded="true"] + .one-faq__a { grid-template-rows: 1fr; }

.one-faq__a p {
  margin: 0 0 1.15rem;
  padding-right: clamp(0px, 4vw, 3rem);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--one-muted);
}

/* --------------------------------------------------------------------------
   Next steps
   -------------------------------------------------------------------------- */

.one-steps {
  display: grid;
  gap: clamp(1rem, 0.5rem + 1.4vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  counter-reset: onestep;
}

.one-step {
  position: relative;
  padding: clamp(1.5rem, 1rem + 1.4vw, 2rem);
  background: #fff;
  border: 1px solid var(--one-rule);
  border-radius: var(--cp-radius-lg, 12px);
  counter-increment: onestep;
}

.one-step::before {
  content: counter(onestep, decimal-leading-zero);
  display: block;
  margin-bottom: var(--cp-space-4, 1rem);
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  color: var(--one-red);
}

.one-step p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--one-muted);
}

.one-step ul {
  margin: var(--cp-space-3, 0.75rem) 0 0;
  padding-left: 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--one-muted);
}

.one-step ul li { margin-bottom: 0.3rem; }

/* --------------------------------------------------------------------------
   Closing CTA
   -------------------------------------------------------------------------- */

.one-close {
  position: relative;
  text-align: center;
  color: #fff;
  isolation: isolate;
  background: #0B0B0B;
  padding-block: clamp(4rem, 3rem + 6vw, 8rem);
}

.one-close__bg { position: absolute; inset: 0; z-index: -2; }

.one-close__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.one-close__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6,6,6,0.62) 0%, rgba(6,6,6,0.80) 100%);
}

.one-page .one-close__title {
  color: #fff;
  margin: 0 0 var(--cp-space-5, 1.25rem);
  font-size: clamp(2rem, 1.2rem + 4vw, 4rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  text-wrap: balance;
}

.one-close__text {
  max-width: 46ch;
  margin: 0 auto clamp(2rem, 1.5rem + 2vw, 2.75rem);
  font-size: clamp(1rem, 0.94rem + 0.4vw, 1.25rem);
  line-height: 1.6;
  color: rgba(255,255,255,0.78);
  text-wrap: balance;
}

.one-close__asks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.75rem, 0.4rem + 1.4vw, 2rem);
  margin: 0 0 clamp(2rem, 1.5rem + 2vw, 2.75rem);
  padding: 0;
  list-style: none;
  font-size: clamp(0.9375rem, 0.9rem + 0.3vw, 1.125rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.92);
}

.one-close__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--cp-space-3, 0.75rem);
}

/* Placeholder-link flag for the editor (never shown to visitors in prod once
   the real signup URL is set — see $one_signup_url in the template). */
.one-flag {
  display: block;
  max-width: 780px;
  margin: 0 auto clamp(1.5rem, 1rem + 2vw, 2.5rem);
  padding: 0.9rem 1.1rem;
  border: 1px dashed #C9A227;
  border-radius: var(--cp-radius-md, 8px);
  background: #FFF9E6;
  color: #6B5200;
  font-size: 0.875rem;
  line-height: 1.5;
}

.one-flag strong { font-weight: 800; }

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .one-page *,
  .one-page *::before,
  .one-page *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   Long-form testimonies (full booklet text)
   -------------------------------------------------------------------------- */

.one-testimony {
  display: grid;
  gap: clamp(1.25rem, 1rem + 2vw, 3rem);
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 900px) {
  .one-testimony { grid-template-columns: 300px 1fr; }
  .one-testimony--flip { grid-template-columns: 1fr 300px; }
  .one-testimony--flip .one-testimony__media { order: 2; }
}

.one-testimony + .one-testimony {
  margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  padding-top: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  border-top: 1px solid var(--one-rule);
}

.one-testimony__media {
  border-radius: var(--cp-radius-lg, 12px);
  overflow: hidden;
  background: #EDEAE7;
  position: sticky;
  top: 96px;
}

@media (max-width: 899px) {
  .one-testimony__media { position: static; max-width: 320px; }
}

.one-testimony__media {
  aspect-ratio: 4 / 5;
}

.one-testimony__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.one-testimony__name {
  margin: 0 0 var(--cp-space-3, 0.75rem);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--one-red);
}

.one-testimony__quote {
  margin: 0 0 var(--cp-space-6, 1.5rem);
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--one-ink);
  text-wrap: balance;
}

.one-testimony__body > p {
  margin: 0 0 var(--cp-space-5, 1.25rem);
  font-size: 1.0625rem;
  line-height: 1.72;
  color: #3A3A3A;
}

.one-testimony__body > p:last-child { margin-bottom: 0; }

.one-testimony__sign {
  margin: var(--cp-space-5, 1.25rem) 0 0;
  font-weight: 800;
  color: var(--one-ink);
}

/* Letters run full booklet length — give them room to breathe */
.one-letter__body > p:first-child { margin-top: 0; }

.one-letter__note {
  margin: var(--cp-space-4, 1rem) 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--one-muted);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Contrast guarantees for type over photography
   The global sheet sets `h1,h2,h3,h4,h5,h6 { color: var(--cp-text-primary) }`
   as a bare element selector, which beats colour INHERITED from a dark parent.
   Any heading placed over an image or dark panel must therefore set colour
   explicitly, or it renders near-black on a dark photo.
   -------------------------------------------------------------------------- */

.one-page .one-hero :is(h1, h2, h3, h4, h5, h6),
.one-page .one-statement :is(h1, h2, h3, h4, h5, h6),
.one-page .one-close :is(h1, h2, h3, h4, h5, h6),
.one-page .one-section--ink :is(h1, h2, h3, h4, h5, h6),
.one-page .one-panel--change :is(h1, h2, h3, h4, h5, h6),
.one-page .one-verse:not(.one-verse--cream) :is(h1, h2, h3, h4, h5, h6) {
  color: #fff;
}

/* Legibility floor: a soft shadow keeps type readable even where a photo is
   locally bright behind it. */
.one-page .one-hero__mark,
.one-page .one-hero__tagline,
.one-page .one-statement__title,
.one-page .one-statement__sub,
.one-page .one-close__title {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.72), 0 1px 34px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   Per-band photo treatment
   Measured luminance of the booklet photos spans 39 -> 168, so one global
   scrim can't serve them: it crushes the dark frames to black, or lets the
   bright ones wash out white type. Each band declares its own bracket.
     --lift   : luma < 70  (one-worship-bw 39, one-hero 65)
     default  : luma 70-130 (better-together 83, kingdom-impact 115, prayer 117)
     --bright : luma > 130 (one-baptism 168, one-this-is-why 167)
   -------------------------------------------------------------------------- */

/* Dark frames: lift the photograph, lighten the scrim. */
.one-page .one-statement--lift .one-statement__bg img,
.one-page .one-hero--lift .one-hero__bg img {
  filter: brightness(1.55) contrast(0.98);
}

.one-page .one-statement--lift .one-statement__scrim {
  background: linear-gradient(180deg, rgba(0,0,0,0.34) 0%, rgba(0,0,0,0.20) 45%, rgba(0,0,0,0.46) 100%);
}

.one-page .one-hero--lift .one-hero__scrim {
  background: linear-gradient(180deg, rgba(8,8,8,0.46) 0%, rgba(8,8,8,0.22) 45%, rgba(8,8,8,0.62) 100%);
}

/* Bright frames: hold the photo back so white type keeps its contrast. */
.one-page .one-statement--bright .one-statement__scrim {
  background: linear-gradient(180deg, rgba(0,0,0,0.56) 0%, rgba(0,0,0,0.46) 45%, rgba(0,0,0,0.66) 100%);
}

/* --------------------------------------------------------------------------
   Uniform media boxes  (side-by-side images must match in BOTH dimensions)
   `aspect-ratio` alone is not enough: when the <img> sits in normal flow it
   gives the box a definite height from its own natural ratio, and the box's
   aspect-ratio is then ignored. That is why two cards side by side ended up
   343px and 559px tall. Taking the image out of flow lets aspect-ratio win.
   -------------------------------------------------------------------------- */

.one-page .one-letter__photo,
.one-page .one-testimony__media,
.one-page .one-story__photo,
.one-page .one-split__media {
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  min-height: 0;
  background: #EDEAE7;
}

.one-page .one-letter__photo > img,
.one-page .one-testimony__media > img,
.one-page .one-story__photo > img,
.one-page .one-split__media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  display: block;
}

.one-page .one-letter__photo  { aspect-ratio: 16 / 10; }
.one-page .one-testimony__media { aspect-ratio: 4 / 5; }
.one-page .one-story__photo   { aspect-ratio: 4 / 3; }
.one-page .one-split__media   { aspect-ratio: 4 / 3; }

@media (min-width: 900px) {
  .one-page .one-split__media { aspect-ratio: 1 / 1; }
}

/* --------------------------------------------------------------------------
   Section nav docking
   .site-header is a fixed floating pill, so the sticky nav must offset by the
   header's top inset + its inner height, or it scrolls underneath it.
     default   top 16 + 64 = 80
     <=768px   top 10 + 56 = 66
     <=480px   top  8 + 52 = 60
   -------------------------------------------------------------------------- */

.one-page {
  --one-header-h: 80px;
  --one-nav-h: 48px;
}

@media (max-width: 768px) { .one-page { --one-header-h: 66px; } }
@media (max-width: 480px) { .one-page { --one-header-h: 60px; } }

.one-page .one-nav {
  top: var(--one-header-h);
  z-index: 40; /* below .site-header (100) so the header always wins */
}

/* Anchor targets must clear BOTH the header and the docked nav. */
.one-page [id] {
  scroll-margin-top: calc(var(--one-header-h) + var(--one-nav-h) + 12px);
}

/* Give the docked bar a little more presence once it is pinned. */
.one-page .one-nav {
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 6px 18px rgba(0,0,0,0.05);
}

/* --------------------------------------------------------------------------
   Section nav — matches the ministry pages' .location-subnav
   Same muted red, white uppercase tabs, and 2px underline on the active tab.
   Inset to the header pill's own gutters (40 / 16 / 8) with matching bottom
   radius, so once docked it reads as a second row of the header.
   -------------------------------------------------------------------------- */

.one-page .one-nav {
  position: sticky;
  top: var(--one-header-h);
  z-index: 40;
  margin-inline: 40px;
  padding: 0 32px;
  background-color: rgba(142, 65, 63, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--cp-white, #fff);
  border: 0;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.10);
}

.one-page .one-nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 42px;
}

.one-page .one-nav__label {
  flex: none;
  font-size: var(--cp-text-sm, 0.875rem);
  font-weight: var(--cp-weight-bold, 700);
  color: var(--cp-white, #fff);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.one-page .one-nav__tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  min-width: 0;
}

.one-page .one-nav__tabs::-webkit-scrollbar { display: none; }

.one-page .one-nav__tab {
  flex: none;
  font-size: var(--cp-text-xs, 0.75rem);
  font-weight: var(--cp-weight-semibold, 600);
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  padding: 12px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.one-page .one-nav__tab:hover,
.one-page .one-nav__tab:focus-visible {
  color: var(--cp-white, #fff);
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.one-page .one-nav__tab.is-active {
  color: var(--cp-white, #fff);
  border-bottom-color: var(--cp-white, #fff);
}

@media (max-width: 768px) {
  .one-page .one-nav { margin-inline: 16px; padding: 0 16px; }
  .one-page .one-nav__inner { gap: 16px; }
  .one-page .one-nav__tabs { gap: 18px; }
  .one-page .one-nav__label { display: none; }
}

@media (max-width: 480px) {
  .one-page .one-nav { margin-inline: 8px; padding: 0 12px; }
}

/* --------------------------------------------------------------------------
   Hero — diagonal two-image split (mirrors the ONE booklet cover)
   Image A (congregation) holds the upper-left; image B (auditorium + stage)
   is clipped to the lower-right of a diagonal running top-right to
   bottom-left, exactly as the cover does. A brand tint sits over both.
   Layer order: images (-3) -> tint (-2) -> scrim (-1) -> content.
   -------------------------------------------------------------------------- */

.one-page .one-hero__bg { z-index: -3; }

.one-page .one-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.one-page .one-hero__img--b {
  clip-path: polygon(70% 0, 100% 0, 100% 100%, 30% 100%);
}

/* Brand tint across the whole frame, warm on the left, deep on the right. */
.one-page .one-hero__tint {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(135deg,
      rgba(166, 43, 34, 0.34) 0%,
      rgba(120, 34, 30, 0.20) 42%,
      rgba(18, 8, 14, 0.55) 100%);
}

.one-page .one-hero__scrim { z-index: -1; }

/* The --lift brightness was tuned for a single dark photo; with two images
   plus the tint it over-exposes, so ease it back. */
.one-page .one-hero--lift .one-hero__bg img {
  filter: brightness(1.06) contrast(1.04) saturate(0.88);
}

@media (max-width: 700px) {
  /* Steeper split reads better in portrait. */
  .one-page .one-hero__img--b {
    clip-path: polygon(58% 0, 100% 0, 100% 100%, 18% 100%);
  }
}

/* --------------------------------------------------------------------------
   Section nav — white while in flow, frosted once docked to the header
   Undocked it is a plain white bar with grey tabs. When it rises far enough
   to sit flush under .site-header, JS adds .is-docked (and .has-one-nav-docked
   on the header), and the two square off against each other so they read as a
   single panel.
   -------------------------------------------------------------------------- */

.one-page .one-nav {
  background-color: #fff;
  color: var(--one-muted);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--one-rule);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition:
    background-color var(--cp-transition-base, .3s ease),
    box-shadow var(--cp-transition-base, .3s ease),
    border-radius var(--cp-transition-base, .3s ease),
    border-color var(--cp-transition-base, .3s ease);
}

.one-page .one-nav__label { color: var(--one-ink); }

.one-page .one-nav__tab {
  color: var(--one-muted);
}

.one-page .one-nav__tab:hover,
.one-page .one-nav__tab:focus-visible {
  color: var(--one-red);
  border-bottom-color: rgba(166, 43, 34, 0.45);
}

.one-page .one-nav__tab.is-active {
  color: var(--one-red);
  border-bottom-color: var(--one-red);
}

/* Docked — adopt the header's frosted panel treatment. */
.one-page .one-nav.is-docked {
  background-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: transparent;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Header squares its bottom corners while the nav is joined to it, so the
   two form one continuous panel. .site-header lives outside .one-page, and
   this sheet only loads on this template, so the plain selector is safe. */
.site-header {
  transition:
    box-shadow var(--cp-transition-base, .3s ease),
    background-color var(--cp-transition-base, .3s ease),
    border-radius var(--cp-transition-base, .3s ease);
}

.site-header.has-one-nav-docked {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* --------------------------------------------------------------------------
   FIX — testimony media offset
   `top: 96px` was authored for position:sticky. A later rule changed the box
   to position:relative so the image could absolutely fill it, which turned
   that `top` into a 96px downward shift — the photo rendered over the text
   on narrow screens. Pin `top` to the position mode explicitly.
   -------------------------------------------------------------------------- */

.one-page .one-testimony__media {
  position: relative;
  top: auto;
  max-width: none;
}

@media (min-width: 900px) {
  .one-page .one-testimony__media {
    position: sticky;
    top: calc(var(--one-header-h) + var(--one-nav-h) + 16px);
  }
}

/* --------------------------------------------------------------------------
   FIX — hero crop on narrow screens
   At 375px the cover-crop of image B lands on the dark centre seating and
   cuts off the lit stage (measured luminance 16 — effectively black), so the
   diagonal split was invisible on mobile. Bias both crops toward the parts
   that carry the subject.
   -------------------------------------------------------------------------- */

@media (max-width: 700px) {
  .one-page .one-hero__img--a { object-position: 62% 50%; }
  .one-page .one-hero__img--b { object-position: 78% 50%; }
}

/* Home Gathering CTA inside the next-steps card.
   The label wraps in a narrow grid column, so make it a full-width block
   button — a wrapped pill reads as an accident, a block button reads as
   intentional. */
.one-page .one-step__cta {
  display: block;
  width: 100%;
  margin-top: var(--cp-space-5, 1.25rem);
  text-align: center;
  line-height: 1.25;
}

/* --------------------------------------------------------------------------
   Hero — Sunday service replay links
   Sit under the two primary buttons so the signup CTA keeps top billing,
   while still living in the same block of hero actions.
   -------------------------------------------------------------------------- */

.one-page .one-hero__watch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-top: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}

.one-page .one-hero__watch-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.one-page .one-hero__watch-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
  transition: border-color var(--cp-transition-fast, .15s ease);
}

.one-page .one-hero__watch-link:hover,
.one-page .one-hero__watch-link:focus-visible {
  border-bottom-color: #fff;
}

.one-page .one-hero__watch-link svg { flex: none; opacity: 0.92; }

@media (max-width: 560px) {
  /* Stack the label above the two links rather than crowding one line. */
  .one-page .one-hero__watch { gap: 0.4rem 1rem; }
  .one-page .one-hero__watch-label { flex: 0 0 100%; }
}

/* --------------------------------------------------------------------------
   Watch the services — prominent button-cards in their own dark section.
   Replaces the small link row that used to sit under the hero buttons.
   -------------------------------------------------------------------------- */

.one-page .one-watch {
  display: grid;
  gap: clamp(1rem, 0.5rem + 1.4vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  margin-top: clamp(2rem, 1.5rem + 2vw, 2.75rem);
}

.one-page .one-watch__card {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 1rem + 1.2vw, 1.85rem);
  padding: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--cp-radius-lg, 12px);
  text-decoration: none;
  transition:
    background-color var(--cp-transition-base, .3s ease),
    border-color var(--cp-transition-base, .3s ease),
    transform var(--cp-transition-base, .3s ease);
}

.one-page .one-watch__card:hover,
.one-page .one-watch__card:focus-visible {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.34);
  transform: translateY(-2px);
}

.one-page .one-watch__play {
  flex: none;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--one-red);
  color: #fff;
}

.one-page .one-watch__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.one-page .one-watch__church {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: #fff;
}

.one-page .one-watch__title {
  font-size: 1.0625rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.68);
}

.one-page .one-watch__go {
  flex: none;
  margin-left: auto;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--cp-transition-base, .3s ease), transform var(--cp-transition-base, .3s ease);
}

.one-page .one-watch__card:hover .one-watch__go {
  color: #fff;
  transform: translate(2px, -2px);
}

@media (max-width: 420px) {
  .one-page .one-watch__card { gap: 1rem; padding: 1.35rem; }
  .one-page .one-watch__play { width: 54px; height: 54px; }
  .one-page .one-watch__go { display: none; }
}
