/* WO29927 Phase 2 — merged wow polish stack (@layer ordering).
   Replaces separate cooler-than-astra + visual-polish enqueues on wow/hub routes.
   Source files retained for rollback; deprecate after 17-route reproof. */

@layer dancz-jawdrop-base, dancz-polish, dancz-contrast-tokens;

@import url('dancz-cooler-than-astra-20260526.css') layer(dancz-jawdrop-base);
@import url('dancz-visual-polish-20260525.css') layer(dancz-polish);

@layer dancz-contrast-tokens {
  /* Creation Portal — harness-readable proclamation column */
  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;
  }

  body.dancz-creation-portal-home .cp-headline span {
    color: #1a1510 !important;
  }

  body.dancz-creation-portal-home .cp-lede,
  body.dancz-creation-portal-home .cp-honesty-note {
    color: rgba(22, 18, 10, 0.82) !important;
  }

  body.dancz-creation-portal-home .cp-orbit-group a.cp-node,
  .cp-page .cp-orbit-group a.cp-node,
  body.dancz-creation-portal-home .cp-orbit-group a.cp-node .cp-node-label,
  .cp-page .cp-orbit-group a.cp-node .cp-node-label {
    color: #1a1510 !important;
    -webkit-text-fill-color: #1a1510 !important;
  }

  /* Wow lane kickers — preserve gold/azure tokens over generic contrast flattening */
  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;
  }

  /* Primary CTAs on wow lanes */
  html body.dm-sitewide-codex.dancz-wow-lane-surface a.dm-btn-primary,
  html body.dm-sitewide-codex.dancz-wow-lane-surface .dm-btn-primary,
  html body.dm-sitewide-codex.dancz-wow-lane-surface .dm-hub-action-primary,
  .cp-cta-primary,
  .rv-cta-primary,
  .mn-cta-primary {
    color: #07110f !important;
    -webkit-text-fill-color: #07110f !important;
    text-shadow: none !important;
  }

  .rmo-page a.rmo-btn-discord,
  .rmo-page .rmo-btn-discord {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
  }

  /* Homepage chrome — void canvas, no cream bleed */
  html:has(body.dancz-creation-portal-home),
  body.dancz-creation-portal-home,
  body.dancz-creation-portal-home #page,
  body.dancz-creation-portal-home #content,
  body.dancz-creation-portal-home .site-content {
    background: #010306 !important;
  }

  body.dancz-creation-portal-home .cp-header {
    background: linear-gradient(180deg, rgba(1, 3, 6, 0.92), transparent 92%) !important;
    border-bottom-color: rgba(240, 200, 90, 0.08) !important;
  }

  body.dancz-creation-portal-home .main-header-bar-wrap,
  body.dancz-creation-portal-home .ast-above-header-bar,
  body.dancz-creation-portal-home .ast-below-header-bar,
  body.dancz-creation-portal-home .ast-mobile-header-wrap,
  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;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  /* Join-mission hub — single chrome story */
  body.dancz-portal-site.ps-family-mission.dancz-wow-lane-surface .ps-route-dock,
  body.dancz-portal-site.ps-family-mission.dancz-wow-lane-surface .ps-witness-rail,
  body.dancz-portal-site.ps-family-mission .dm-route-atlas,
  body.dancz-portal-site.ps-family-mission .dm-pathfinder,
  body.dancz-portal-site.ps-family-mission .ps-portal-lanes {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  body.dancz-portal-site.ps-family-mission .join-mission-page .dm-hub-gateway {
    margin-top: 0 !important;
  }
}
