/* One shared rhythm above/below the cards and at both section boundaries. */
.kingdom-home-transformation{--kingdom-path-space:48px;display:flex;flex-direction:column;gap:var(--kingdom-path-space);padding-block:72px}
.kingdom-home-transformation>.kingdom-home-path-intro{margin-block:0!important}
.kingdom-home-path-intro>h2:first-child{margin-top:0}
.kingdom-home-path-intro>p:last-child{margin-bottom:0}
.kingdom-home-transformation>.row{margin-block:0;row-gap:24px}
.kingdom-home-transformation>.row>[class*="col-"]{margin-top:0}
.kingdom-home-transformation>.kingdom-home-path-conclusion{display:flex;flex-direction:column;align-items:center;gap:24px;margin:0;padding:0;width:100%}
.kingdom-home-path-conclusion .kingdom-home-mission-verse{font-style:italic;margin:0}
.kingdom-home-path-conclusion .kingdom-free-bible-entry{margin:0!important;padding:0!important}
@media(max-width:767.98px){.kingdom-home-transformation{--kingdom-path-space:32px;padding-block:48px}}

/* Tiki inserts whitespace-only paragraphs between wiki DIV and LANG blocks.
   They must not become extra flex items and double the intended gap. */
.kingdom-home-transformation>p,
.kingdom-home-path-conclusion>p:not(.kingdom-home-mission-verse),
.kingdom-home-path-intro>p:first-child{display:none}

/* Full-width landscape, with the established content width and spacing intact. */
.kingdom-home-transformation{position:relative;isolation:isolate;color:var(--bs-light);--kingdom-scene-blue:var(--bs-primary-rgb)}
.kingdom-transformation-backdrop{position:absolute;top:-1px;bottom:-17px;left:50%;width:100vw;transform:translateX(-50%);overflow:hidden;z-index:-1;background:#082f4c;pointer-events:none}
.kingdom-transformation-backdrop picture,.kingdom-transformation-backdrop img{display:block;width:100%;height:100%}
.kingdom-transformation-backdrop img{object-fit:cover;object-position:65% 45%;transform:translate3d(0,var(--kingdom-landscape-offset,0px),0) scale(1.08)}
.kingdom-transformation-backdrop::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,27,45,.88),rgba(4,27,45,.74) 55%,rgba(4,27,45,.55)),linear-gradient(0deg,rgba(4,27,45,.58),transparent 65%)}
.kingdom-home-path-intro h2,.kingdom-home-path-intro p,.kingdom-home-path-conclusion p{color:#fff}
.kingdom-home-path-conclusion .kingdom-scripture-reference,.kingdom-home-mission-verse a{color:#ffdc73;text-decoration:underline;text-underline-offset:3px}
.kingdom-home-path-conclusion .kingdom-free-bible-entry .btn{color:#fff;border-color:#ffffffb3;background:#082f4c80}
.kingdom-home-path-conclusion .kingdom-free-bible-entry .btn:hover,.kingdom-home-path-conclusion .kingdom-free-bible-entry .btn:focus-visible{color:#082f4c;background:#fff;border-color:#fff}
.kingdom-home-transformation .kingdom-path-card.card{color:var(--bs-body-color);box-shadow:0 8px 24px #0002}
@media(prefers-reduced-motion:no-preference){
.kingdom-home-transformation.is-motion-ready .kingdom-path-reveal{opacity:0;translate:0 16px;transition:opacity .6s ease,translate .6s ease;transition-delay:var(--kingdom-reveal-delay,0ms)}
.kingdom-home-transformation.is-motion-ready .kingdom-path-reveal.has-entered{opacity:1;translate:0 0}
}
@media(max-width:767.98px){
.kingdom-transformation-backdrop img{object-position:72% center;transform:none}
.kingdom-transformation-backdrop::after{background:linear-gradient(180deg,rgba(4,27,45,.76),rgba(4,27,45,.88) 65%,rgba(4,27,45,.86))}
}
@media(prefers-reduced-motion:reduce){.kingdom-transformation-backdrop img{transform:none}}

/* Wiki separators may contain editor controls for signed-in users. Remove
   those edge paragraphs too, rather than matching guest-only empty markup. */
p:has(+.kingdom-home-transformation),
.kingdom-home-transformation+p{display:none!important;margin:0!important}

/* Tinted glass: the landscape remains visible through each original pastel. */
.kingdom-home-transformation .kingdom-path-card.kingdom-path-enter{--kingdom-glass-tint:190,155,255}
.kingdom-home-transformation .kingdom-path-card.kingdom-path-learn{--kingdom-glass-tint:125,195,255}
.kingdom-home-transformation .kingdom-path-card.kingdom-path-become{--kingdom-glass-tint:115,225,170}
.kingdom-home-transformation .kingdom-path-card.kingdom-path-influence{--kingdom-glass-tint:255,218,120}
.kingdom-home-transformation .kingdom-path-card.card{
 background:linear-gradient(135deg,#ffffff12,transparent 38%,#ffffff05),rgba(var(--kingdom-glass-tint),.2)!important;
 -webkit-backdrop-filter:blur(1px) saturate(115%);backdrop-filter:blur(1px) saturate(115%);
 border:1px solid rgba(var(--kingdom-glass-tint),.58)!important;
 box-shadow:inset 0 1px 0 #ffffffb3,inset 0 -1px 0 #ffffff30,0 10px 30px #001a2d30!important;
}
.kingdom-home-transformation .kingdom-path-card::after{content:"";position:absolute;inset:0;border-radius:inherit;background:linear-gradient(125deg,#ffffff14,transparent 25%,transparent 80%,#ffffff06);pointer-events:none}
.kingdom-home-transformation .kingdom-path-card:hover,.kingdom-home-transformation .kingdom-path-card:focus-within{border-color:#ffffffa6!important;box-shadow:inset 0 1px 0 #ffffffd9,inset 0 -1px 0 #ffffff40,0 14px 34px #001a2d40!important}
[data-bs-theme=dark] .kingdom-home-transformation .kingdom-path-card.kingdom-path-enter{--kingdom-glass-tint:125,90,190}
[data-bs-theme=dark] .kingdom-home-transformation .kingdom-path-card.kingdom-path-learn{--kingdom-glass-tint:55,125,190}
[data-bs-theme=dark] .kingdom-home-transformation .kingdom-path-card.kingdom-path-become{--kingdom-glass-tint:45,150,110}
[data-bs-theme=dark] .kingdom-home-transformation .kingdom-path-card.kingdom-path-influence{--kingdom-glass-tint:185,145,50}
[data-bs-theme=dark] .kingdom-home-transformation .kingdom-path-card.card{background:linear-gradient(135deg,#ffffff0a,transparent 55%),rgba(var(--kingdom-glass-tint),.22)!important;border-color:#ffffff33!important;box-shadow:inset 0 1px 0 #ffffff30,0 12px 32px #0004!important}
[data-bs-theme=dark] .kingdom-home-transformation .kingdom-path-card::after{opacity:.35}
@supports not ((backdrop-filter:blur(5px)) or (-webkit-backdrop-filter:blur(5px))){.kingdom-home-transformation .kingdom-path-card.card{background:rgba(6,30,49,.7)!important}}

/* Clear glass needs light lettering instead of dark text on a milky panel. */
.kingdom-home-transformation .kingdom-path-card.card{color:#fff!important;text-shadow:none}
.kingdom-home-transformation .kingdom-path-card.card :is(h3,h3 a,p){color:#fff!important;text-shadow:0 1px 2px #00132080}
.kingdom-home-transformation .kingdom-path-card.card h3{font-weight:750}

.kingdom-home-transformation .kingdom-path-card.card :is(i,i::before,svg,.kingdom-path-start){text-shadow:none!important;filter:none!important;box-shadow:none!important}

/* Water-like panels: retain tint/reflections without a drawn outline. */
.kingdom-home-transformation .kingdom-path-card.card,
.kingdom-home-transformation .kingdom-path-card.card:hover,
.kingdom-home-transformation .kingdom-path-card.card:focus-within,
[data-bs-theme=dark] .kingdom-home-transformation .kingdom-path-card.card{border-color:transparent!important}

/* A single landscape connects the Word above with the climber's ascent below. */
.kingdom-home-scene{position:relative;isolation:isolate;background:var(--kingdom-brand-surface,var(--bs-primary));--kingdom-scene-top:50px}
.kingdom-home-scene>.kingdom-backdrop-track{position:absolute;inset:0;z-index:-1;pointer-events:none}
.kingdom-home-scene .kingdom-transformation-backdrop{position:sticky;top:var(--kingdom-scene-top);left:0;bottom:auto;width:100%;height:calc(100svh - var(--kingdom-scene-top));transform:none;overflow:hidden;z-index:auto}
.kingdom-home-scene .kingdom-transformation-backdrop img{object-position:75% 25%;transform:none}
.kingdom-home-scene .kingdom-transformation-backdrop::before{display:none}
.kingdom-home-scene .kingdom-transformation-backdrop::after{background:linear-gradient(90deg,rgba(4,27,45,.85),rgba(4,27,45,.62) 53%,rgba(4,27,45,.32)),linear-gradient(0deg,rgba(4,27,45,.55),transparent 65%)}
body .kingdom-home-scene>.ministry-spotlight{background:transparent}
.kingdom-home-scene .ministry-spotlight-card{background:transparent}
.kingdom-home-scene>.kingdom-home-transformation{isolation:auto;min-height:calc(100svh - var(--kingdom-scene-top));justify-content:center}
.kingdom-home-scene>p{display:none!important;margin:0!important}
.kingdom-home-scene+p{display:none!important;margin:0!important}
/* Soft rounded water surfaces: localized highlights, no straight luminous rim. */
.kingdom-home-transformation .kingdom-path-card.card,
.kingdom-home-transformation .kingdom-path-card.card:hover,
.kingdom-home-transformation .kingdom-path-card.card:focus-within,
[data-bs-theme=dark] .kingdom-home-transformation .kingdom-path-card.card{border-radius:30px;border-color:transparent!important;box-shadow:0 12px 30px #00152224!important}
.kingdom-home-transformation .kingdom-path-card.card::after{border-radius:inherit;background:radial-gradient(ellipse 70% 48% at 12% 5%,#ffffff17,transparent 72%),radial-gradient(ellipse 45% 40% at 94% 100%,#ffffff08,transparent 75%);opacity:1}
@media(max-width:767.98px){
.kingdom-home-scene>.kingdom-home-transformation{min-height:0}
.kingdom-home-scene .kingdom-transformation-backdrop img{object-position:76% center}
.kingdom-home-scene .kingdom-transformation-backdrop::after{background:linear-gradient(90deg,rgba(4,27,45,.77),rgba(4,27,45,.56)),linear-gradient(0deg,rgba(4,27,45,.6),transparent 75%)}
.kingdom-home-transformation .kingdom-path-card.card{border-radius:26px}
}
@media(prefers-reduced-motion:reduce){
.kingdom-home-scene .kingdom-transformation-backdrop{position:absolute;top:0;height:100%}
}

/* Two distinct glass surfaces on one shared landscape; no lateral blue fade. */
.kingdom-transformation-backdrop::before{display:none!important}
.kingdom-home-scene .kingdom-transformation-backdrop::after{background:linear-gradient(180deg,rgba(5,18,27,.38),rgba(5,18,27,.65))}
body .kingdom-home-scene>.ministry-spotlight{background:color-mix(in srgb,var(--kingdom-brand-surface,var(--bs-primary)) 90%,transparent);-webkit-backdrop-filter:blur(1px) saturate(110%);backdrop-filter:blur(1px) saturate(110%);border-bottom:0;box-shadow:none}
.kingdom-home-transformation .kingdom-path-card.card,
.kingdom-home-transformation .kingdom-path-card.card:hover,
.kingdom-home-transformation .kingdom-path-card.card:focus-within,
[data-bs-theme=dark] .kingdom-home-transformation .kingdom-path-card.card{border-radius:22px;border:1px solid rgba(var(--kingdom-glass-tint),.28)!important;box-shadow:inset 0 1px 0 #ffffff26,0 10px 24px #00152220!important}
@media(max-width:767.98px){
.kingdom-home-scene .ministry-spotlight-card{min-height:0;padding:24px 16px 28px;gap:18px}
.kingdom-home-scene .ministry-spotlight-bible{width:min(74vw,280px);height:180px;object-fit:contain;align-self:center}
.kingdom-home-scene .ministry-spotlight-copy{width:100%;min-width:0}
.kingdom-home-scene .ministry-spotlight-copy h2{font-size:clamp(1.75rem,7.6vw,2.1rem);line-height:1.12}
.kingdom-home-scene .ministry-spotlight-copy>p{font-size:.98rem;line-height:1.55}
.kingdom-home-scene .ministry-spotlight-actions .btn,.kingdom-home-scene .ministry-carousel-primary>.btn{white-space:nowrap!important;min-height:44px;line-height:24px!important;padding:10px 14px!important}
.kingdom-home-scene .ministry-spotlight-bottom{padding-inline:16px;gap:8px}
.kingdom-home-scene .ministry-spotlight-links{gap:20px}
.kingdom-home-scene>.kingdom-home-transformation{padding:40px 16px;gap:28px}
.kingdom-home-path-intro h2{font-size:1.65rem;line-height:1.2}
.kingdom-home-path-intro p{font-size:.98rem;line-height:1.65}
.kingdom-home-transformation>.row{row-gap:16px}
.kingdom-home-transformation .kingdom-path-card.card{padding:24px!important;min-height:0;height:auto!important;border-radius:22px}
.kingdom-home-transformation .kingdom-path-card.card h3{font-size:1.4rem;line-height:1.2}
.kingdom-home-transformation .kingdom-path-card.card p{font-size:.98rem;line-height:1.55;margin-bottom:0}
.kingdom-home-scene .kingdom-transformation-backdrop img{object-position:73% center}
.kingdom-home-scene .kingdom-transformation-backdrop::after{background:linear-gradient(180deg,rgba(5,18,27,.48),rgba(5,18,27,.7))}
}

/* Dark theme: opaque deep navy hero, subdued landscape and tinted glass. */
[data-bs-theme=dark] body .kingdom-home-scene{background:#061521}
[data-bs-theme=dark] body .kingdom-home-scene>.ministry-spotlight{background:color-mix(in srgb,var(--kingdom-brand-surface,var(--bs-primary)) 90%,transparent);-webkit-backdrop-filter:none;backdrop-filter:none;border-bottom-color:#ffffff0d;box-shadow:none}
[data-bs-theme=dark] .kingdom-home-scene .ministry-spotlight-copy h2{color:#f5f8fc}
[data-bs-theme=dark] .kingdom-home-scene .ministry-spotlight-copy>p{color:#d4e0ed}
[data-bs-theme=dark] .kingdom-home-scene .ministry-eyebrow{color:#ffdb72}
[data-bs-theme=dark] .kingdom-home-scene .ministry-spotlight-links>a{color:#d4e0ed!important}
[data-bs-theme=dark] .kingdom-home-scene .kingdom-transformation-backdrop::after{background:linear-gradient(180deg,rgba(3,12,20,.6),rgba(3,12,20,.8))}
[data-bs-theme=dark] .kingdom-home-transformation .kingdom-path-card.card{background:linear-gradient(135deg,#ffffff09,transparent 55%),rgba(var(--kingdom-glass-tint),.28)!important;border-color:rgba(var(--kingdom-glass-tint),.22)!important;box-shadow:inset 0 1px 0 #ffffff12,0 10px 24px #0003!important}
[data-bs-theme=dark] .kingdom-home-transformation .kingdom-path-card.card:hover,
[data-bs-theme=dark] .kingdom-home-transformation .kingdom-path-card.card:focus-within{border-color:rgba(var(--kingdom-glass-tint),.4)!important;box-shadow:inset 0 1px 0 #ffffff1a,0 12px 28px #0004!important}
[data-bs-theme=dark] .kingdom-home-transformation .kingdom-path-card.card :is(h3,h3 a){color:#f5f8fc!important;text-shadow:none}
[data-bs-theme=dark] .kingdom-home-transformation .kingdom-path-card.card p{color:#e2eaf4!important;text-shadow:none}
[data-bs-theme=dark] .kingdom-home-path-intro p,[data-bs-theme=dark] .kingdom-home-path-conclusion p{color:#e2eaf4}
[data-bs-theme=dark] .kingdom-home-mission-verse a{color:#ffe092}
[data-bs-theme=dark] .kingdom-home-scene .btn-outline-light,
[data-bs-theme=dark] .kingdom-home-path-conclusion .kingdom-free-bible-entry .btn{background:color-mix(in srgb,var(--bs-primary) 50%,transparent);color:var(--bs-light);border-color:color-mix(in srgb,var(--bs-light) 60%,transparent)}
[data-bs-theme=dark] .kingdom-home-scene .btn-outline-light:hover,
[data-bs-theme=dark] .kingdom-home-path-conclusion .kingdom-free-bible-entry .btn:hover{background:var(--bs-light);color:var(--bs-primary);border-color:var(--bs-light)}
@media(max-width:767.98px){.kingdom-home-scene .ministry-spotlight-actions .btn:not([data-home-reading]){white-space:normal!important;overflow-wrap:normal;line-height:1.25!important}}

/* The mission introduction must remain complete, including on narrow screens. */
.kingdom-home-scene .ministry-spotlight-copy>p {
 display:block!important;-webkit-line-clamp:unset!important;line-clamp:unset!important;max-height:none!important;overflow:visible!important;white-space:normal!important;text-overflow:clip!important;
}
@media(min-width:992px){
 .kingdom-home-scene .ministry-spotlight-copy h2{font-size:clamp(2.5rem,3.6vw,3.4rem);line-height:1.1;text-wrap:balance}
}
/* Fade the hero's own paint into the shared landscape, with no separate edge. */
body .kingdom-home-scene>.ministry-spotlight {
 position:relative;isolation:isolate;overflow:visible;
 --kingdom-cloud-depth:clamp(150px,20vw,260px);
 background:linear-gradient(to bottom,
  var(--kingdom-brand-surface,var(--bs-primary)) 0%,
  var(--kingdom-brand-surface,var(--bs-primary)) 58%,
  color-mix(in srgb,var(--kingdom-brand-surface,var(--bs-primary)) 84%,transparent) 72%,
  color-mix(in srgb,var(--kingdom-brand-surface,var(--bs-primary)) 52%,transparent) 84%,
  color-mix(in srgb,var(--kingdom-brand-surface,var(--bs-primary)) 22%,transparent) 95%,
  transparent 100%);
 border:0;box-shadow:none;
 -webkit-backdrop-filter:none;backdrop-filter:none;
}
@media(max-width:767.98px){
 body .kingdom-home-scene>.ministry-spotlight{
  background:linear-gradient(to bottom,
   var(--kingdom-brand-surface,var(--bs-primary)) 0%,
   var(--kingdom-brand-surface,var(--bs-primary)) 58%,
   color-mix(in srgb,var(--kingdom-brand-surface,var(--bs-primary)) 82%,transparent) 76%,
   color-mix(in srgb,var(--kingdom-brand-surface,var(--bs-primary)) 45%,transparent) 90%,
   transparent 100%);
 }
}

/* Upright open scroll: preserve its square silhouette on desktop and mobile. */
.kingdom-home-scene .ministry-royal-scroll-link{display:contents}
.kingdom-home-scene .ministry-spotlight-bible[src*="kingdom-royal-scroll-v3"]{width:min(100%,440px);height:440px;object-fit:contain}
.kingdom-home-scene .ministry-royal-scroll-link:focus-visible img{outline:3px solid #ffdb72;outline-offset:6px;border-radius:8px}
@media(max-width:767.98px){.kingdom-home-scene .ministry-spotlight-bible[src*="kingdom-royal-scroll-v3"]{width:240px;height:240px}}
/* Align the scroll's outer edge with the text container's opposite edge. */
@media(min-width:992px){
 .kingdom-home-scene .ministry-spotlight-card:has(.ministry-royal-scroll-link){grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);column-gap:48px}
}
.kingdom-home-scene .ministry-royal-scroll-link{display:block!important;width:min(100%,560px);height:auto;aspect-ratio:1;justify-self:end;align-self:center}
.kingdom-home-scene .ministry-royal-scroll-link>img.ministry-spotlight-bible{display:block;width:100%!important;max-width:none!important;height:100%!important;min-height:100%;aspect-ratio:1;object-fit:contain;align-self:stretch}
@media(max-width:767.98px){
 .kingdom-home-scene .ministry-royal-scroll-link{width:min(82vw,320px);max-width:100%;height:auto;align-self:center}
}

body:has(.kingdom-home-eden) .kingdom-home-scene{background:var(--kingdom-brand-surface,var(--bs-primary))!important}
body:has(.kingdom-home-eden) .kingdom-home-scene>.ministry-spotlight{background:linear-gradient(to bottom,var(--kingdom-brand-surface,var(--bs-primary)) 0%,var(--kingdom-brand-surface,var(--bs-primary)) 58%,color-mix(in srgb,var(--kingdom-brand-surface,var(--bs-primary)) 84%,transparent) 72%,color-mix(in srgb,var(--kingdom-brand-surface,var(--bs-primary)) 52%,transparent) 84%,color-mix(in srgb,var(--kingdom-brand-surface,var(--bs-primary)) 22%,transparent) 95%,transparent 100%)!important}
