/* WO29926 cascade guard 20260527 — final public lane authority.
   Isolates jawdrop / beta / portal shells from Astra + dancz-premium .entry-content globals.
   Loaded LAST after contrast sidecars. Historical CSS files remain; this file wins ties. */

:root {
  --cg-lane-shells: ".cp-wrap, .cp-page, .rv-wrap, .rv-page, .mn-wrap, .mn-page, .sn-wrap, .sn-page, .bl-wrap, .rai-wrap, .rmo-wrap, .mc-cluster-shell, .dm-beta-home, .ps-jawdrop-frame";
}

/* ── Astra / parent theme bleed ── */
body.dancz-wow-lane-surface,
body.dancz-wow-lane-surface .site-content,
body.dancz-wow-lane-surface .ast-container {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

body.dancz-wow-lane-surface .entry-content,
body.dancz-wow-lane-surface .site-main .entry-content {
  color: inherit;
  font-family: inherit;
  line-height: inherit;
}

/* dancz-premium.css: .entry-content p { color: var(--text) } — descendant leak */
body.dancz-wow-lane-surface .entry-content :is(.cp-wrap, .cp-page, .rv-wrap, .rv-page, .mn-wrap, .mn-page, .sn-wrap, .sn-page, .bl-wrap, .rai-wrap, .rmo-wrap, .mc-cluster-shell, .dm-beta-home),
body.dancz-wow-lane-surface .entry-content > :is(.cp-wrap, .cp-page, .rv-wrap, .rv-page, .mn-wrap, .mn-page, .sn-wrap, .sn-page, .bl-wrap, .rai-wrap, .rmo-wrap, .mc-cluster-shell, .dm-beta-home) {
  color: inherit;
  font-family: inherit;
  line-height: inherit;
  max-width: none !important;
  width: 100% !important;
  margin-inline: 0 !important;
  padding: 0 !important;
}

body.dancz-wow-lane-surface .entry-content :is(.cp-wrap, .cp-page, .rv-wrap, .rv-page, .mn-wrap, .mn-page, .sn-wrap, .sn-page, .bl-wrap, .rai-wrap, .rmo-wrap, .mc-cluster-shell, .dm-beta-home) :is(p, li, h1, h2, h3, h4, h5, h6, span, label, a, button, small, strong, em) {
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  max-width: none;
  margin-inline: unset;
  width: auto;
  text-wrap: unset;
}

/* site-coherence direct-child article typography must not flatten lane heroes */
body.dm-sitewide-codex.dancz-wow-lane-surface .content-area.primary .ast-article-single > .entry-content > :is(.cp-page, .rv-page, .mn-page, .sn-page, .rai-wrap, .rmo-wrap, .dm-beta-home) :is(h1, h2, h3, p, li) {
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
}

/* Beta Start — polish-only lane; keep azure/gold system off brown --text */
body.dm-sitewide-codex.rmo-lane-dedicated .entry-content .dm-beta-home {
  color: var(--bh-ink, #fff8e8) !important;
  background: var(--bh-bg, #030913) !important;
  min-height: 100vh;
}

body.dm-sitewide-codex.rmo-lane-dedicated .entry-content .dm-beta-home p,
body.dm-sitewide-codex.rmo-lane-dedicated .entry-content .dm-beta-home li {
  color: inherit !important;
  max-width: none !important;
  line-height: inherit !important;
}

body.dm-sitewide-codex.rmo-lane-dedicated .entry-content .dm-beta-home .dm-bh-kicker {
  color: var(--bh-gold, #f0c963) !important;
}

body.dm-sitewide-codex.rmo-lane-dedicated .entry-content .dm-beta-home .dm-bh-title {
  color: #fff !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

body.dm-sitewide-codex.rmo-lane-dedicated .entry-content .dm-beta-home .dm-bh-brand {
  color: var(--bh-blue, #4da6ff) !important;
}

/* Portal hub routes (join-mission, etc.) — jawdrop frame owns layout */
body.dancz-portal-site:not(.dancz-wow-lane-surface) .entry-content .ps-jawdrop-frame,
body.dancz-portal-site:not(.dancz-wow-lane-surface) .entry-content > .ps-jawdrop-frame {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit;
}

body.dancz-portal-site:not(.dancz-wow-lane-surface) .entry-content .ps-jawdrop-frame :is(p, li, h1, h2, h3, h4) {
  color: inherit;
  font-family: inherit;
  max-width: none;
}

body.dancz-portal-site:not(.dancz-wow-lane-surface) .content-area.primary > .site-main {
  width: 100% !important;
  max-width: none !important;
}

/* Contrast sidecar sometimes flattens lane kickers — restore lane tokens on wow surfaces (not creation-portal home) */
body.dm-sitewide-codex.dancz-wow-lane-surface:not(.dancz-creation-portal-home) .cp-kicker,
body.dm-sitewide-codex.dancz-wow-lane-surface .rv-kicker,
body.dm-sitewide-codex.dancz-wow-lane-surface .mn-kicker,
body.dm-sitewide-codex.dancz-wow-lane-surface .sn-kicker {
  color: var(--cp-gold, var(--rv-gold, var(--mn-gold, var(--sn-gold, #f5d56b)))) !important;
  -webkit-text-fill-color: currentColor !important;
}

/* RuachDavid ministry lane — keep cinematic copy off article brown */
body.dm-sitewide-codex.rv-lane-dedicated .entry-content .rv-wrap,
body.dm-sitewide-codex.rv-lane-dedicated .entry-content .rv-page {
  color: var(--rv-ink, #f5f0e4) !important;
}

body.dm-sitewide-codex.rv-lane-dedicated .entry-content .rv-wrap p,
body.dm-sitewide-codex.rv-lane-dedicated .entry-content .rv-page p {
  color: inherit !important;
  max-width: none !important;
}

/* Creation portal home — headline display stack wins over coherence serif */
body.dm-sitewide-codex.dancz-creation-portal-home .entry-content .cp-page .cp-headline {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif !important;
  color: #fff7d9 !important;
  -webkit-text-fill-color: currentColor !important;
}

body.dm-sitewide-codex.dancz-creation-portal-home .entry-content .cp-page p {
  color: inherit !important;
  max-width: none !important;
}

/* Ministry cluster */
body.dm-sitewide-codex.mc-lane-dedicated .entry-content .mc-cluster-shell,
body.dm-sitewide-codex.mc-lane-dedicated .entry-content .mc-cluster-shell p {
  color: inherit !important;
  max-width: none !important;
}

/* WO29927 — creation portal home pretty pass: void canvas, no cream/Astra bleed */
html:has(body.dancz-creation-portal-home),
body.dancz-creation-portal-home {
  background: #010306 !important;
  color: #fff7d9;
}

body.dancz-creation-portal-home #masthead,
body.dancz-creation-portal-home #colophon,
body.dancz-creation-portal-home .site-header,
body.dancz-creation-portal-home .site-footer,
body.dancz-creation-portal-home .dm-site-header,
body.dancz-creation-portal-home .dm-site-footer,
body.dancz-creation-portal-home #ast-desktop-header,
body.dancz-creation-portal-home #ast-mobile-header,
body.dancz-creation-portal-home .ast-mobile-header-wrap,
body.dancz-creation-portal-home .dm-route-atlas,
body.dancz-creation-portal-home .dm-pathfinder,
body.dancz-creation-portal-home .ps-portal-lanes,
body.dancz-creation-portal-home .dm-studio-sitebar,
body.dancz-creation-portal-home .dm-studio-anchorbar {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

body.dancz-creation-portal-home #content,
body.dancz-creation-portal-home .site-content,
body.dancz-creation-portal-home .ast-container,
body.dancz-creation-portal-home .content-area.primary,
body.dancz-creation-portal-home .entry-content {
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

body.dancz-creation-portal-home .cp-page {
  background: #010306;
  color: var(--cp-ivory, #fff7d9);
}

/* Join-mission hub — single chrome after global header suppress */
body.dancz-portal-site.ps-family-mission .join-mission-page .dm-hub-gateway {
  margin-top: 0 !important;
}

body.dancz-portal-site.ps-family-mission .join-mission-page .content-body,
body.dancz-portal-site.ps-family-mission .join-mission-page .dm-container {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* WO29926 wave5 — terminal harness `color` wins (after cascade guard lane restores) */
body.dm-sitewide-codex.dancz-creation-portal-home .entry-content .cp-page .cp-kicker,
body.dancz-creation-portal-home .cp-kicker {
  color: rgba(22, 18, 10, 0.88) !important;
  -webkit-text-fill-color: rgba(22, 18, 10, 0.88) !important;
  text-shadow: none !important;
}

body.dancz-bible-data-page .dm-bd-btn-primary,
body.dancz-bible-data-page a.dm-bd-btn-primary,
body.mc-lane-dedicated .dm-bd-btn-primary,
body.mc-lane-dedicated a.dm-bd-btn-primary,
body.mc-lane-dedicated .dm-ch-btn-primary,
body.mc-lane-dedicated a.dm-ch-btn-primary,
body.dancz-genesis-dave-chronology-page .dm-ch-btn-primary,
body.dancz-genesis-dave-chronology-page a.dm-ch-btn-primary {
  color: #020507 !important;
  -webkit-text-fill-color: #020507 !important;
  text-shadow: none !important;
}

.rmo-page .rmo-hero h1,
.rmo-page #rmo-dc-title {
  color: #f8f4ff !important;
  -webkit-text-fill-color: #f8f4ff !important;
  text-shadow: 0 1px 12px rgba(3, 9, 19, 0.55) !important;
}

html body.dm-sitewide-codex .dm-header-actions a.dm-btn-primary,
html body.dm-sitewide-codex .dm-header-actions .dm-btn-primary,
html body.dm-sitewide-codex .dm-mobile-action-row a.dm-btn-primary,
html body.dm-sitewide-codex a.dm-btn-primary,
html body.dm-sitewide-codex .dm-btn-primary,
html body.dm-sitewide-codex .dm-hub-action-primary,
html body.dm-sitewide-codex a.dm-hub-action-primary,
html body.dm-sitewide-codex .dm-ra-btn-primary,
html body.dm-sitewide-codex a.dm-ra-btn-primary,
.rmo-page .rmo-btn-ios,
.rmo-page a.rmo-btn-ios {
  color: #07110f !important;
  -webkit-text-fill-color: #07110f !important;
  text-shadow: none !important;
}
