/* Visual satisfaction pass — WO WebsiteVisualPolish 20260525
   Layered on jawdrop lanes; compact hub aesthetic preserved. */

:root {
  --vp-gold: #f0c85a;
  --vp-gold-hot: #f5d56b;
  --vp-ivory: #fff7d9;
  --vp-muted: #9db4ca;
  --vp-glass-edge: rgba(255, 247, 217, 0.14);
  --vp-glass-fill: linear-gradient(145deg, rgba(10, 16, 28, 0.88), rgba(4, 8, 14, 0.58));
  --vp-lift: translateY(-2px);
  --vp-shadow-gold: 0 10px 36px rgba(214, 169, 53, 0.28);
  --vp-shadow-soft: 0 20px 56px rgba(0, 0, 0, 0.42);
}

/* ── Preview / screenshot instant-ready (skip void boot) ── */
body.vp-instant-ready .cp-page,
body.vp-instant-ready .rv-page,
body.vp-instant-ready .mn-page,
body.vp-instant-ready .bl-council-home,
body.vp-instant-ready .sn-page {
  --vp-skip-boot: 1;
}

body.vp-instant-ready .cp-page[data-phase="void"] .cp-ui,
body.vp-instant-ready .cp-page[data-phase="light"] .cp-ui,
body.vp-instant-ready .cp-page[data-phase="ring"] .cp-ui,
body.vp-instant-ready .cp-page[data-phase="ready"] .cp-ui {
  opacity: 1 !important;
}

body.vp-instant-ready .cp-void-curtain,
body.vp-instant-ready .rv-void-curtain,
body.vp-instant-ready .mn-void-curtain,
body.vp-instant-ready .bl-void-curtain {
  opacity: 0 !important;
}

body.vp-instant-ready .cp-proclamation,
body.vp-instant-ready .cp-portal-stage,
body.vp-instant-ready .cp-steward,
body.vp-instant-ready .cp-scale-fact,
body.vp-instant-ready .cp-stats-rail,
body.vp-instant-ready .rv-proclamation,
body.vp-instant-ready .rv-core-stage,
body.vp-instant-ready .rv-console,
body.vp-instant-ready .mn-proclamation,
body.vp-instant-ready .mn-portal-stage,
body.vp-instant-ready .mn-steward,
body.vp-instant-ready .mn-stats-rail {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

body.vp-instant-ready .cp-light-pillar,
body.vp-instant-ready .rv-light-shaft,
body.vp-instant-ready .mn-light-pillar {
  opacity: 0.42 !important;
  transform: translateX(-50%) skewX(-3deg) scaleY(1) !important;
}

body.vp-instant-ready .rv-nebula-wash,
body.vp-instant-ready .rv-page[data-phase="ready"] .rv-nebula-wash {
  opacity: 1 !important;
}

body.vp-instant-ready .rv-page[data-phase="ready"] .rv-boot {
  opacity: 0 !important;
  pointer-events: none;
}

/* ── Shared CTA polish ── */
.cp-cta-primary,
.mn-cta-primary,
.rv-cta-primary,
.sn-btn-primary,
.ps-btn-primary,
.dm-hub-action-primary {
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.cp-cta-primary:hover,
.mn-cta-primary:hover,
.rv-cta-primary:hover,
.sn-btn-primary:hover,
.ps-btn-primary:hover,
.dm-hub-action-primary:hover {
  transform: var(--vp-lift);
  box-shadow: var(--vp-shadow-gold) !important;
  filter: saturate(1.08);
}

.cp-cta-ghost:hover,
.mn-cta-ghost:hover,
.rv-cta-ghost:hover,
.sn-btn:not(.sn-btn-primary):hover,
.ps-btn-ghost:hover,
.dm-hub-action:not(.dm-hub-action-primary):hover {
  border-color: rgba(240, 200, 90, 0.42) !important;
  box-shadow: 0 0 24px rgba(240, 200, 90, 0.1);
  transform: var(--vp-lift);
}

/* ── Creation Portal homepage ── */
.cp-headline,
.mn-headline,
.rv-headline {
  letter-spacing: -0.02em;
}

.cp-headline em,
.mn-headline em,
.rv-headline em {
  text-shadow: 0 0 56px rgba(240, 200, 90, 0.32);
}

.cp-steward,
.mn-steward,
.rv-console {
  border-color: var(--vp-glass-edge) !important;
  background: var(--vp-glass-fill) !important;
  box-shadow: var(--vp-shadow-soft);
}

.cp-dave-core,
.mn-gospel-core,
.rv-avatar-core {
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.cp-dave-core:hover,
.mn-gospel-core:hover,
.rv-avatar-core:hover {
  transform: translate(-50%, -50%) scale(1.04);
}

.cp-header-nav a.is-active,
.mn-header-nav a.is-active,
.rv-header-nav a.is-active,
.sn-top-nav a.is-active {
  box-shadow: 0 0 22px rgba(240, 200, 90, 0.18);
}

.cp-brand-mark,
.mn-brand-mark,
.sn-brand-mark {
  animation: vpBrandPulse 4s ease-in-out infinite;
}

@keyframes vpBrandPulse {
  0%, 100% { box-shadow: 0 0 16px rgba(240, 200, 90, 0.75); }
  50% { box-shadow: 0 0 28px rgba(240, 200, 90, 0.95); }
}

/* ── RuachDavid ministry warm launch core ── */
.rv-headline em {
  color: #f0c963;
  text-shadow: 0 0 48px rgba(77, 166, 255, 0.35);
}

.rv-avatar-ring {
  box-shadow:
    0 0 0 2px rgba(77, 166, 255, 0.35),
    0 0 48px rgba(46, 232, 255, 0.22);
}

.rv-console {
  border-color: rgba(77, 166, 255, 0.22) !important;
}

.rv-scripture {
  color: rgba(141, 231, 237, 0.82);
  font-style: italic;
  letter-spacing: 0.02em;
}

/* ── RuachDavid AI sleek chat ── */
.rai-chat-app {
  background: linear-gradient(135deg, #1a1a1a 0%, #212121 48%, #1c1c1c 100%);
}

.rai-sidebar {
  background: linear-gradient(180deg, #141414, #171717);
}

.rai-turn-content {
  line-height: 1.62;
}

.rai-turn-ai .rai-turn-content {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 0.15rem 0.1rem;
}

.rai-code-block {
  border: 1px solid rgba(16, 163, 127, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.rai-composer-field textarea {
  border-color: rgba(255, 255, 255, 0.12) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rai-composer-field textarea:focus {
  border-color: rgba(16, 163, 127, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(16, 163, 127, 0.14) !important;
}

.rai-send {
  transition: transform 0.18s ease, background 0.18s ease;
}

.rai-send:hover {
  transform: scale(1.06);
}

.rai-model-btn.is-active {
  box-shadow: 0 0 0 1px rgba(16, 163, 127, 0.45);
}

/* ── Mobile violet app-store landing ── */
.rmo-page {
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(139, 92, 246, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(34, 211, 238, 0.12), transparent 50%),
    #120a1f;
}

.rmo-hero h1 {
  background: linear-gradient(120deg, #fff 0%, #e9d5ff 45%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rmo-device-frame {
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(139, 92, 246, 0.35),
    0 0 48px rgba(34, 211, 238, 0.12);
}

.rmo-btn-ios:hover,
.rmo-btn-discord:hover {
  transform: var(--vp-lift);
}

/* ── Apologetics Bible cinematic ── */
.bl-council-title em {
  text-shadow: 0 0 40px rgba(217, 180, 93, 0.28);
}

.bl-council-copyblock {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.65);
}

.bl-waypoint-rail a.is-active,
.bl-waypoint-rail a:hover {
  box-shadow: 0 0 20px rgba(217, 180, 93, 0.16);
}

.bl-council-page {
  box-shadow: inset 0 0 24px rgba(217, 180, 93, 0.08);
}

/* ── Sanctum wiki ── */
.sn-hero-copy h1 em {
  color: #c28dff;
  text-shadow: 0 0 36px rgba(194, 141, 255, 0.28);
}

.sn-portal {
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.sn-portal:hover {
  transform: var(--vp-lift);
  border-color: rgba(194, 141, 255, 0.42) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), 0 0 32px rgba(194, 141, 255, 0.12);
}

.sn-wiki-orient {
  border-color: rgba(194, 141, 255, 0.18) !important;
}

/* ── Hub pages (daily, weekly, prayer, give) ── */
body.dancz-portal-site .dm-hub-gateway {
  min-height: min(72vh, 680px);
}

body.dancz-portal-site .dm-hub-title {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(240, 200, 90, 0.12);
}

body.dancz-portal-site .dm-hub-console {
  border: 1px solid var(--vp-glass-edge);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  box-shadow: var(--vp-shadow-soft);
}

body.dancz-portal-site .dm-dy-hero-inner h1,
body.dancz-portal-site .dm-dy-kicker {
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
}

body.dancz-portal-site .ps-portal-lane.is-active {
  background: rgba(240, 200, 90, 0.06);
}

body.dancz-portal-site .ps-route-body section:not([class*="-hero"]) {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.dancz-portal-site .ps-route-body section:not([class*="-hero"]):hover {
  border-color: rgba(240, 200, 90, 0.18) !important;
}

/* ── Compact mobile polish ── */
@media (max-width: 1100px) {
  /* scale-fact duplicates stats rail — hide to stop overlap on mobile stack */
  .cp-scale-fact,
  .mn-scale-fact {
    display: none !important;
  }

  .cp-preview-badge {
    bottom: 6.5rem;
    right: 1rem;
    max-width: 12rem;
    text-align: right;
    line-height: 1.35;
  }

  .mn-cta-row,
  .rv-cta-row,
  .cp-cta-row {
    justify-content: center;
    gap: 0.5rem;
  }
}

@media (max-width: 720px) {
  .cp-header-nav a,
  .mn-header-nav a,
  .rv-header-nav a,
  .sn-top-nav a,
  .ps-portal-lane {
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
  }

  .rai-sidebar {
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.45);
  }

  .rmo-triad-link.is-active {
    box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.45);
  }

  body.dancz-portal-site .ps-route-hero {
    padding-top: clamp(1.75rem, 5vw, 2.5rem);
  }

  .sn-lane-wiki .sn-hero-scene img {
    object-position: center 18%;
  }

  .bl-council-chamber {
    transform: scale(0.92);
    transform-origin: center top;
  }

  .bl-council-copyblock {
    padding-top: 0.5rem;
  }

  .sn-lane-wiki .sn-hero {
    min-height: clamp(280px, 42vh, 380px);
  }

  .sn-lane-wiki .sn-hero-copy h1 {
    font-size: clamp(1.65rem, 7vw, 2.2rem);
  }
}

/* ── Wave 2 hub polish (daily, weekly, prayer, give) ── */
.dm-dy-btn-primary,
.dm-wu-btn-primary,
.dm-pr-btn-primary {
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.dm-dy-btn-primary:hover,
.dm-wu-btn-primary:hover,
.dm-pr-btn-primary:hover {
  transform: var(--vp-lift);
  box-shadow: var(--vp-shadow-gold);
  filter: saturate(1.06);
}

.dm-dy-start-card,
.dm-wu-read-card,
.dm-wu-route-card {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.dm-dy-start-card:hover,
.dm-wu-read-card:hover,
.dm-wu-route-card:hover {
  transform: var(--vp-lift);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.dm-prayer-crisis-strip,
.dm-prayer-crisis-panel {
  border: 1px solid rgba(240, 160, 120, 0.34);
  border-left: 4px solid rgba(240, 160, 120, 0.88);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(42, 18, 12, 0.92), rgba(24, 10, 8, 0.82));
  color: #ffe8dc;
  line-height: 1.62;
}

.dm-prayer-crisis-strip {
  max-width: 52ch;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
}

.dm-prayer-crisis-strip a,
.dm-prayer-crisis-panel a {
  color: #ffd4b8;
  font-weight: 700;
  text-decoration-color: rgba(255, 212, 184, 0.55);
}

.dm-prayer-crisis-panel {
  margin-bottom: 1.25rem;
}

body.dancz-portal-site .dm-hub-gateway-give .dm-hub-note {
  color: rgba(240, 200, 90, 0.82);
  font-style: italic;
}

body.dancz-portal-site .dm-dy-lane .dm-dy-rhythm,
body.dancz-portal-site .dm-wu-read-section,
body.dancz-portal-site .dm-wu-signup-section,
body.dancz-portal-site .dm-wu-routes-section {
  border-top: 1px solid rgba(240, 200, 90, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .cp-brand-mark,
  .mn-brand-mark,
  .sn-brand-mark {
    animation: none;
  }
}

/* WO WowLanesLiveFix 20260525 — site-coherence v3 must not override jawdrop lanes */
body.dm-sitewide-codex[class*="-lane-dedicated"] #masthead,
body.dm-sitewide-codex[class*="-lane-dedicated"] #colophon,
body.dm-sitewide-codex[class*="-lane-dedicated"] .dm-site-header,
body.dm-sitewide-codex[class*="-lane-dedicated"] .dm-site-footer,
body.dm-sitewide-codex[class*="-lane-dedicated"] .dm-route-atlas,
body.dm-sitewide-codex[class*="-lane-dedicated"] .dm-pathfinder,
body.dm-sitewide-codex.dancz-creation-portal-home #masthead,
body.dm-sitewide-codex.dancz-creation-portal-home #colophon,
body.dm-sitewide-codex.dancz-creation-portal-home .dm-site-header,
body.dm-sitewide-codex.dancz-creation-portal-home .dm-site-footer {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

body.dm-sitewide-codex[class*="-lane-dedicated"] .site-content,
body.dm-sitewide-codex[class*="-lane-dedicated"] .ast-container,
body.dm-sitewide-codex[class*="-lane-dedicated"] .content-area.primary,
body.dm-sitewide-codex[class*="-lane-dedicated"] .entry-content {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* ── Bible / research compact hub (WO WebsitePageWave batch C) ── */
.bl-study-shelf-compact {
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem);
}

.bl-study-shelf-compact .dm-container {
  max-width: 920px;
}

.bl-study-shelf-compact .dm-section-title {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-bottom: 0.45rem;
}

.bl-study-shelf-compact .dm-section-desc {
  max-width: 52ch;
  margin-inline: auto;
}

.bl-study-shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.bl-study-shelf-card {
  display: block;
  padding: 1rem 1.05rem;
  border: 1px solid rgba(240, 201, 99, 0.16);
  border-radius: 10px;
  background: rgba(8, 14, 20, 0.55);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.bl-study-shelf-card:hover {
  transform: var(--vp-lift);
  border-color: rgba(240, 201, 99, 0.34);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.bl-study-shelf-card strong {
  display: block;
  color: #fff7d9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.35rem;
}

.bl-study-shelf-card span {
  display: block;
  color: rgba(157, 180, 202, 0.88);
  font-size: 0.86rem;
  line-height: 1.5;
}

.bl-study-boundary-compact {
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1rem, 4vw, 2rem);
  border-top: 1px solid rgba(240, 201, 99, 0.12);
  background: linear-gradient(180deg, rgba(4, 8, 14, 0.35), rgba(2, 5, 7, 0.72));
}

.bl-study-boundary-compact .dm-container {
  max-width: 820px;
  text-align: center;
}

.bl-study-boundary-compact h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 400;
  color: #fff7d9;
  margin: 0 0 0.55rem;
}

.bl-study-boundary-compact p {
  color: rgba(157, 180, 202, 0.9);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 54ch;
  margin: 0 auto 1rem;
}

.bl-study-boundary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
}

.bl-study-boundary-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 1rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.bl-study-boundary-actions .is-primary {
  background: var(--vp-gold);
  color: #07110f;
}

.bl-study-boundary-actions .is-ghost {
  border: 1px solid rgba(240, 201, 99, 0.28);
  color: var(--vp-gold);
}

@media (max-width: 720px) {
  .dm-ra-hero,
  .dm-mt-hero,
  .dm-sl-hero,
  .dm-bc-hero,
  .dm-br-hero {
    min-height: min(68vh, 520px) !important;
  }

  .dm-ra-hero-inner,
  .dm-mt-hero-inner,
  .dm-sl-hero-inner,
  .dm-bc-hero-inner,
  .dm-br-hero-inner {
    padding: 72px 20px 56px !important;
  }

  .dm-bd-hero,
  .dm-bi-hero,
  .dm-ch-hero,
  .dm-cc-hero {
    min-height: min(70vh, 560px);
    padding-bottom: clamp(2.5rem, 6vw, 3.5rem);
  }

  .dm-ra-shelf-grid,
  .dm-ra-gov-grid,
  .dm-mt-route-grid,
  .dm-sl-route-grid,
  .dm-bc-route-grid,
  .dm-br-route-grid {
    grid-template-columns: 1fr !important;
  }

  .bl-library-grid {
    grid-template-columns: 1fr !important;
  }

  .bl-waypoint-rail {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
  }

  .dm-hub-console:not(.dm-hub-console-simple) .dm-hub-modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
