/*
 * Dancz Premium live fixes, 2026-05-12 E.
 * WO29273 public readiness: calm the public surface, reduce competing color systems, and simplify first-screen choices.
 */

/* WO29273_PUBLIC_CALM_HEADER_FOOTER_20260512E_START */
body.dm-sitewide-codex:not(.home) .dm-header-utility,
body.dm-sitewide-codex:not(.home) .dm-primary-nav {
  display: none !important;
}

body.dm-sitewide-codex:not(.home) .dm-header-main {
  background: rgba(5, 11, 16, 0.96) !important;
  border-bottom: 1px solid rgba(245, 200, 66, 0.16) !important;
  box-shadow: none !important;
}

body.dm-sitewide-codex:not(.home) .dm-brand-subtitle {
  display: none !important;
}

body.dm-sitewide-codex:not(.home) .dm-header-shell {
  min-height: 70px !important;
}

body.dm-sitewide-codex .dm-footer-top {
  background: #061018 !important;
  border-top: 1px solid rgba(245, 200, 66, 0.14) !important;
}

body.dm-sitewide-codex .dm-footer-grid {
  grid-template-columns: minmax(260px, 1.1fr) repeat(2, minmax(180px, 0.8fr)) !important;
  gap: clamp(2rem, 5vw, 4rem) !important;
}

body.dm-sitewide-codex .dm-footer-links {
  display: grid !important;
  gap: 0.7rem !important;
}

body.dm-sitewide-codex .dm-footer-links a,
body.dm-sitewide-codex .dm-footer-quick-links a {
  color: rgba(246, 250, 255, 0.86) !important;
  -webkit-text-fill-color: rgba(246, 250, 255, 0.86) !important;
}
/* WO29273_PUBLIC_CALM_HEADER_FOOTER_20260512E_END */

/* WO29273_PUBLIC_CALM_SECTIONS_20260512E_START */
body.dm-sitewide-codex:not(.home) .dm-section,
body.dm-sitewide-codex:not(.home) .dm-section-white,
body.dm-sitewide-codex:not(.home) .dm-section-cream {
  background: #071019 !important;
  color: rgba(236, 244, 250, 0.9) !important;
}

body.dm-sitewide-codex:not(.home) .dm-section h2,
body.dm-sitewide-codex:not(.home) .dm-section h3,
body.dm-sitewide-codex:not(.home) .dm-card-header-title {
  color: #fff4d7 !important;
  -webkit-text-fill-color: #fff4d7 !important;
  letter-spacing: 0 !important;
}

body.dm-sitewide-codex:not(.home) .dm-section p,
body.dm-sitewide-codex:not(.home) .dm-card-desc {
  color: rgba(221, 232, 242, 0.82) !important;
  -webkit-text-fill-color: rgba(221, 232, 242, 0.82) !important;
  line-height: 1.68 !important;
}

body.dm-sitewide-codex:not(.home) .dm-card {
  background: #0b1721 !important;
  border: 1px solid rgba(150, 177, 202, 0.2) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
}

body.dm-sitewide-codex:not(.home) .dm-card-header {
  background: transparent !important;
  border-bottom: 1px solid rgba(150, 177, 202, 0.14) !important;
  box-shadow: none !important;
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  padding: 1.15rem 1.25rem !important;
}

body.dm-sitewide-codex:not(.home) .dm-card-header > * {
  position: static !important;
}

body.dm-sitewide-codex:not(.home) .dm-card-body {
  padding: 1.15rem 1.25rem !important;
}

body.dm-sitewide-codex:not(.home) .dm-card-header-label {
  color: #d8a84b !important;
  -webkit-text-fill-color: #d8a84b !important;
  display: block !important;
  font-size: 0.68rem !important;
  line-height: 1.2 !important;
  margin: 0 0 0.45rem !important;
}

body.dm-sitewide-codex:not(.home) .dm-card-header-title {
  display: block !important;
  font-size: clamp(1.05rem, 2vw, 1.5rem) !important;
  line-height: 1.22 !important;
  margin: 0 !important;
}

body.dm-sitewide-codex:not(.home) .dm-cards-grid {
  align-items: start !important;
  gap: clamp(1rem, 2vw, 1.5rem) !important;
  grid-auto-rows: auto !important;
}

body.dm-sitewide-codex:not(.home) #setup .dm-cards-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  max-width: 900px !important;
  margin-inline: auto !important;
}
/* WO29273_PUBLIC_CALM_SECTIONS_20260512E_END */

/* WO29273_HOME_CALM_GATE_20260512E_START */
body.home .v9-living-gate #v9-gate-wrap,
body.home .v9-living-gate #v9-scripture-ring {
  opacity: 0.42 !important;
}

body.home .v9-living-gate #v9-headline {
  max-width: 720px !important;
}

body.home .v9-living-gate #v9-headline .v9-gate-title {
  letter-spacing: 0 !important;
}

body.home .v9-living-gate #v9-headline .v9-sub-line {
  max-width: 560px !important;
  padding: 0 !important;
  margin: 1.35rem auto 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}

body.home .v9-living-gate #v9-thresholds {
  gap: clamp(0.75rem, 2vw, 1.35rem) !important;
  padding: 0.85rem 1rem !important;
  background: rgba(3, 9, 14, 0.72) !important;
  border: 1px solid rgba(245, 200, 66, 0.18) !important;
  border-radius: 999px !important;
  backdrop-filter: blur(12px) !important;
}

body.home .v9-living-gate .v9-t-ring {
  width: 42px !important;
  height: 42px !important;
  box-shadow: none !important;
}

body.home .v9-living-gate .v9-t-icon {
  font-size: 1rem !important;
}

body.home .v9-living-gate .v9-t-label,
body.home .v9-living-gate .v9-ground-link {
  letter-spacing: 0.02em !important;
}

body.home .v9-living-gate #v9-ground-links {
  gap: 0.75rem !important;
}

body.home .v9-living-gate .v9-ground-link {
  border-color: rgba(245, 200, 66, 0.46) !important;
  background: rgba(3, 9, 14, 0.86) !important;
  color: rgba(255, 250, 240, 0.98) !important;
  -webkit-text-fill-color: rgba(255, 250, 240, 0.98) !important;
}
/* WO29273_HOME_CALM_GATE_20260512E_END */

/* WO29273_PUBLIC_CALM_HUBS_20260512E_START */
body.dm-sitewide-codex .dm-hub-gateway {
  background: #071019 !important;
}

body.dm-sitewide-codex .dm-hub-canvas {
  opacity: 0.14 !important;
}

body.dm-sitewide-codex .dm-hub-stage {
  gap: clamp(2rem, 5vw, 4rem) !important;
}

body.dm-sitewide-codex .dm-hub-title {
  max-width: 760px !important;
  color: #fff4d7 !important;
  -webkit-text-fill-color: #fff4d7 !important;
  letter-spacing: 0 !important;
  font-size: clamp(2.7rem, 6vw, 5.4rem) !important;
}

body.dm-sitewide-codex .dm-hub-copy {
  max-width: 620px !important;
}

body.dm-sitewide-codex .dm-hub-console-simple {
  background: rgba(11, 23, 33, 0.86) !important;
  border-color: rgba(245, 200, 66, 0.18) !important;
  box-shadow: none !important;
}

body.dm-sitewide-codex .dm-public-order-list {
  margin: 1rem 0 0 !important;
  padding-left: 1.25rem !important;
  color: rgba(236, 244, 250, 0.88) !important;
}

body.dm-sitewide-codex .dm-public-order-list li + li {
  margin-top: 0.75rem !important;
}
/* WO29273_PUBLIC_CALM_HUBS_20260512E_END */

@media (max-width: 760px) {
  body.dm-sitewide-codex .dm-footer-grid {
    grid-template-columns: 1fr !important;
  }

  body.dm-sitewide-codex:not(.home) #setup .dm-cards-grid {
    grid-template-columns: 1fr !important;
  }

  body.dm-sitewide-codex:not(.home) .dm-card-header,
  body.dm-sitewide-codex:not(.home) .dm-card-body {
    padding: 1rem !important;
  }

  body.home .v9-living-gate #v9-thresholds {
    bottom: 0.75rem !important;
    border-radius: 18px !important;
    flex-wrap: wrap !important;
    width: calc(100vw - 28px) !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    background: rgba(3, 9, 14, 0.84) !important;
  }

  body.home .v9-living-gate #v9-ground-links {
    bottom: 6.4rem !important;
    width: min(92vw, 340px) !important;
    gap: 0.5rem !important;
  }

  body.home .v9-living-gate .v9-ground-link {
    min-height: 34px !important;
    padding: 0.5rem 0.7rem !important;
    background: #fff4d7 !important;
    border-color: rgba(255, 250, 240, 0.84) !important;
    color: #071019 !important;
    -webkit-text-fill-color: #071019 !important;
    font-size: 0.66rem !important;
    text-shadow: none !important;
  }

  body.home .v9-living-gate .v9-t-label {
    font-size: 0.48rem !important;
    letter-spacing: 0.04em !important;
  }
}
