/*
 * Dancz Premium live fixes, 2026-05-13 A.
 * WO29273 public readiness: calm the shared visual system without copy edits.
 */

/* WO29273_CALM_TOKENS_20260513A_START */
body.dm-sitewide-codex {
  --dm-calm-bg: #071017;
  --dm-calm-bg-2: #0b141c;
  --dm-calm-panel: #101a23;
  --dm-calm-panel-2: #14202b;
  --dm-calm-line: rgba(179, 198, 211, 0.18);
  --dm-calm-line-strong: rgba(214, 181, 106, 0.3);
  --dm-calm-ink: #fff4df;
  --dm-calm-text: #eaf1f2;
  --dm-calm-muted: rgba(215, 226, 229, 0.78);
  --dm-calm-gold: #d6b56a;
  --dm-calm-amber: #8f5b13;
  --dm-calm-amber-dark: #70420d;
  --dm-calm-teal: #9bd7d1;
}
/* WO29273_CALM_TOKENS_20260513A_END */

/* WO29273_HEADER_NOISE_REDUCTION_20260513A_START */
body.dm-sitewide-codex:not(.home) .dm-header-main {
  background: rgba(7, 16, 23, 0.98) !important;
  border-bottom: 1px solid var(--dm-calm-line) !important;
  box-shadow: none !important;
}

body.dm-sitewide-codex:not(.home) .dm-header-main .dm-header-shell {
  gap: 0.75rem !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  min-height: 60px !important;
  width: min(1120px, calc(100% - 32px)) !important;
}

body.dm-sitewide-codex:not(.home) .dm-brand-kicker {
  color: var(--dm-calm-ink) !important;
  font-size: 0.78rem !important;
}

body.dm-sitewide-codex:not(.home) .dm-brand-area {
  color: var(--dm-calm-teal) !important;
  font-size: 0.62rem !important;
}

body.dm-sitewide-codex:not(.home) .dm-header-actions .dm-btn-primary,
body.dm-sitewide-codex:not(.home) .dm-menu-toggle {
  min-height: 34px !important;
  border-radius: 999px !important;
  border-color: var(--dm-calm-line-strong) !important;
  background: rgba(143, 91, 19, 0.82) !important;
  color: #fffaf0 !important;
  -webkit-text-fill-color: #fffaf0 !important;
  box-shadow: none !important;
}
/* WO29273_HEADER_NOISE_REDUCTION_20260513A_END */

/* WO29273_SHARED_SURFACE_CALM_20260513A_START */
body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) #content.site-content,
body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .site-main {
  background: linear-gradient(180deg, var(--dm-calm-bg) 0%, var(--dm-calm-bg-2) 52%, var(--dm-calm-bg) 100%) !important;
  color: var(--dm-calm-text) !important;
}

body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .dm-hero {
  min-height: clamp(460px, 66svh, 620px) !important;
  padding: clamp(5rem, 9vw, 7rem) 1.5rem clamp(3.5rem, 7vw, 5rem) !important;
  background: linear-gradient(180deg, #081018 0%, #0b141c 100%) !important;
  color: var(--dm-calm-text) !important;
}

body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .dm-hero-inner,
body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .dm-text-center {
  max-width: 760px !important;
}

body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .dm-hero h1,
body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .dm-section-title,
body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .dm-card-header-title,
body.dm-sitewide-codex .dm-footer-logo {
  color: var(--dm-calm-ink) !important;
  -webkit-text-fill-color: var(--dm-calm-ink) !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .dm-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.5rem) !important;
  line-height: 1.02 !important;
  max-width: 760px !important;
}

body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .dm-section-title {
  font-size: clamp(2rem, 4vw, 3.2rem) !important;
  line-height: 1.08 !important;
  max-width: 880px !important;
}

body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .dm-hero .subtitle,
body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .dm-section-desc,
body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .dm-card-desc,
body.dm-sitewide-codex .dm-footer-tagline {
  color: var(--dm-calm-muted) !important;
  -webkit-text-fill-color: var(--dm-calm-muted) !important;
  line-height: 1.62 !important;
}

body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .dm-section,
body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .dm-section-white,
body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .dm-section-cream,
body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .dm-section-dark {
  padding-block: clamp(4.25rem, 8vw, 6rem) !important;
  background: transparent !important;
}
/* WO29273_SHARED_SURFACE_CALM_20260513A_END */

/* WO29273_CARD_AND_BUTTON_CALM_20260513A_START */
body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) :is(.dm-card, .dm-note-panel, .dm-story-card, .dm-consumer-action-card, .dm-pillar-card, .dm-home-panel),
body.dm-sitewide-codex .dm-hub-console-simple {
  border: 1px solid var(--dm-calm-line) !important;
  border-radius: 8px !important;
  background: var(--dm-calm-panel) !important;
  color: var(--dm-calm-text) !important;
  box-shadow: none !important;
}

body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .dm-card-header,
.dancz-knowledge-library-page .dm-cards-grid .dm-card-header,
.dancz-bible-insights-page .dm-cards-grid .dm-card-header,
.dancz-bible-data-page .dm-cards-grid .dm-card-header,
.dancz-research-articles-page .dm-cards-grid .dm-card-header {
  min-height: 0 !important;
  padding: 1rem 1.05rem !important;
  border-bottom: 1px solid var(--dm-calm-line) !important;
  background: var(--dm-calm-panel-2) !important;
  box-shadow: none !important;
}

body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .dm-card-body {
  padding: 1rem 1.05rem !important;
}

body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .dm-card-header-label,
body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .dm-card-kicker,
body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .dm-hero-badge,
body.dm-sitewide-codex .dm-footer-area-note,
body.dm-sitewide-codex .dm-footer-col-title {
  color: var(--dm-calm-gold) !important;
  -webkit-text-fill-color: var(--dm-calm-gold) !important;
  letter-spacing: 0 !important;
}

body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .dm-card-header-title,
.dancz-knowledge-library-page .dm-cards-grid .dm-card-header-title,
.dancz-bible-insights-page .dm-cards-grid .dm-card-header-title,
.dancz-bible-data-page .dm-cards-grid .dm-card-header-title,
.dancz-research-articles-page .dm-cards-grid .dm-card-header-title {
  font-size: clamp(1.05rem, 1.7vw, 1.42rem) !important;
  line-height: 1.2 !important;
  overflow-wrap: anywhere !important;
}

body.dm-sitewide-codex:not(.home) .dm-cards-grid {
  gap: clamp(0.85rem, 2vw, 1.25rem) !important;
}

html body.dm-sitewide-codex a.dm-btn-primary.dm-btn-primary,
html body.dm-sitewide-codex a.dm-btn-outline.dm-btn-outline,
html body.dm-sitewide-codex .dm-hub-action {
  min-height: 40px !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  font-size: 0.72rem !important;
  letter-spacing: 0 !important;
  line-height: 1.12 !important;
  overflow-wrap: anywhere !important;
  padding: 0.68rem 1rem !important;
  text-align: center !important;
  text-shadow: none !important;
  white-space: normal !important;
}

html body.dm-sitewide-codex a.dm-btn-primary.dm-btn-primary,
html body.dm-sitewide-codex .dm-hub-action-primary {
  border: 1px solid rgba(255, 250, 240, 0.18) !important;
  background: var(--dm-calm-amber) !important;
  color: #fffaf0 !important;
  -webkit-text-fill-color: #fffaf0 !important;
}

html body.dm-sitewide-codex a.dm-btn-outline.dm-btn-outline,
html body.dm-sitewide-codex .dm-hub-action:not(.dm-hub-action-primary) {
  border: 1px solid rgba(255, 250, 240, 0.45) !important;
  background: #fff7e8 !important;
  color: #201817 !important;
  -webkit-text-fill-color: #201817 !important;
}

body.dm-sitewide-codex .dm-hero-buttons,
body.dm-sitewide-codex .dm-footer-action-row,
body.dm-sitewide-codex .dm-hub-actions {
  align-items: center !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.55rem !important;
  justify-content: center !important;
}

body.dm-sitewide-codex .dm-card-link,
body.dm-sitewide-codex .entry-content a:not(.dm-btn-primary):not(.dm-btn-outline):not(.dm-hub-action) {
  color: var(--dm-calm-teal) !important;
  -webkit-text-fill-color: var(--dm-calm-teal) !important;
}
/* WO29273_CARD_AND_BUTTON_CALM_20260513A_END */

/* WO29273_HUB_AND_FOOTER_CALM_20260513A_START */
body.dm-sitewide-codex .dm-hub-gateway {
  min-height: clamp(500px, 72svh, 680px) !important;
  background: linear-gradient(180deg, var(--dm-calm-bg) 0%, var(--dm-calm-bg-2) 100%) !important;
}

body.dm-sitewide-codex .dm-hub-title {
  color: var(--dm-calm-ink) !important;
  -webkit-text-fill-color: var(--dm-calm-ink) !important;
  font-size: clamp(2.4rem, 5.2vw, 4.6rem) !important;
  line-height: 1.02 !important;
  text-shadow: none !important;
}

body.dm-sitewide-codex .dm-hub-copy {
  color: var(--dm-calm-muted) !important;
  -webkit-text-fill-color: var(--dm-calm-muted) !important;
}

body.dm-sitewide-codex .dm-site-footer,
body.dm-sitewide-codex .dm-footer-top {
  background: #071017 !important;
  border-top-color: var(--dm-calm-line) !important;
  color: var(--dm-calm-text) !important;
  box-shadow: none !important;
}

body.dm-sitewide-codex .dm-footer-top {
  padding: clamp(2.75rem, 5vw, 4rem) 0 !important;
}

body.dm-sitewide-codex .dm-footer-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
  gap: clamp(1.5rem, 4vw, 3rem) !important;
  width: min(1120px, calc(100% - 32px)) !important;
}

body.dm-sitewide-codex .dm-footer-logo {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem) !important;
}

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

body.dm-sitewide-codex .dm-footer-links a,
body.dm-sitewide-codex .dm-footer-social a {
  color: rgba(234, 241, 242, 0.84) !important;
  -webkit-text-fill-color: rgba(234, 241, 242, 0.84) !important;
  font-size: 0.78rem !important;
  line-height: 1.35 !important;
}

body.dm-sitewide-codex .dm-footer-social {
  display: grid !important;
  gap: 0.5rem !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.dm-sitewide-codex .dm-footer-social a {
  min-height: 34px !important;
  border-color: var(--dm-calm-line) !important;
  background: rgba(255, 250, 240, 0.03) !important;
  text-align: center !important;
}
/* WO29273_HUB_AND_FOOTER_CALM_20260513A_END */

/* WO29273_HOME_GATE_MOBILE_CLEARANCE_20260513A_START */
@media (max-width: 760px) {
  body.home .v9-living-gate #v9-headline {
    max-width: calc(100vw - 36px) !important;
  }

  body.home .v9-living-gate #v9-headline .v9-sub-line {
    font-size: 0.9rem !important;
    line-height: 1.5 !important;
    max-width: 330px !important;
  }

  body.home .v9-living-gate #v9-ground-links {
    animation: none !important;
    bottom: max(9.25rem, calc(env(safe-area-inset-bottom) + 9.25rem)) !important;
    display: grid !important;
    gap: 0.45rem !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    opacity: 1 !important;
    width: calc(100vw - 36px) !important;
    z-index: 16 !important;
  }

  body.home .v9-living-gate .v9-ground-link {
    min-height: 36px !important;
    padding: 0.5rem 0.4rem !important;
    background: #fff4df !important;
    border-color: rgba(255, 250, 240, 0.8) !important;
    color: #071017 !important;
    -webkit-text-fill-color: #071017 !important;
    font-size: 0.62rem !important;
    line-height: 1.05 !important;
    text-shadow: none !important;
  }

  body.home .v9-living-gate #v9-thresholds {
    bottom: max(0.55rem, env(safe-area-inset-bottom)) !important;
    gap: 0.38rem !important;
    padding: 0.5rem 0.55rem !important;
    width: calc(100vw - 24px) !important;
  }

  body.home .v9-living-gate .v9-t-ring {
    height: 34px !important;
    width: 34px !important;
  }

  body.home .v9-living-gate .v9-t-label {
    font-size: 0.45rem !important;
    line-height: 1.05 !important;
  }
}
/* WO29273_HOME_GATE_MOBILE_CLEARANCE_20260513A_END */

/* WO29273_MOBILE_BURDEN_REDUCTION_20260513A_START */
@media (max-width: 760px) {
  body.dm-sitewide-codex:not(.home) .dm-header-main .dm-header-shell {
    align-items: center !important;
    display: grid !important;
    flex-direction: row !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    min-height: 54px !important;
    padding: 0 !important;
    width: calc(100% - 24px) !important;
  }

  html body.dm-sitewide-codex:not(.home) .site-header .dm-header-actions {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
    visibility: hidden !important;
  }

  html body.dm-sitewide-codex:not(.home) .site-header .dm-menu-toggle {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    height: 38px !important;
    order: initial !important;
    width: auto !important;
    min-width: 74px !important;
  }

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

  body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .dm-hero {
    min-height: auto !important;
    padding: 3.75rem 1rem 2.75rem !important;
  }

  body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .dm-hero h1 {
    font-size: clamp(2.05rem, 10vw, 3rem) !important;
    line-height: 1.04 !important;
  }

  body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .dm-section,
  body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .dm-section-white,
  body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .dm-section-cream,
  body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .dm-section-dark {
    padding: 2.75rem 1rem !important;
  }

  body.dm-sitewide-codex:not(.home):not(.dancz-david-codex-route):not(.dancz-bible-people-archive-route) .dm-section-title {
    font-size: clamp(1.85rem, 8vw, 2.35rem) !important;
    line-height: 1.08 !important;
  }

  html body.dm-sitewide-codex:not(.home) .dm-hero-buttons {
    display: grid !important;
    flex-direction: row !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-content: center !important;
    margin-inline: auto !important;
    max-width: 320px !important;
    width: min(100%, 320px) !important;
  }

  html body.dm-sitewide-codex:not(.home) .dm-hero-buttons a.dm-btn-primary,
  html body.dm-sitewide-codex:not(.home) .dm-hero-buttons a.dm-btn-outline {
    flex: none !important;
    min-width: 0 !important;
    padding-inline: 0.5rem !important;
    width: 100% !important;
  }

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

  body.dm-sitewide-codex .dm-hub-gateway {
    min-height: auto !important;
    padding: 4rem 1rem 3rem !important;
  }

  body.dm-sitewide-codex .dm-hub-title {
    font-size: clamp(2.15rem, 11vw, 3.1rem) !important;
  }

  body.dm-sitewide-codex .dm-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.55rem !important;
    width: calc(100% - 32px) !important;
  }

  body.dm-sitewide-codex .dm-footer-links {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.dm-sitewide-codex .dm-footer-primary-actions .dm-btn-outline {
    display: flex !important;
  }

  body.dm-sitewide-codex .dm-footer-action-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
  }

  body.dm-sitewide-codex .dm-footer-action-row a {
    width: 100% !important;
  }
}
/* WO29273_MOBILE_BURDEN_REDUCTION_20260513A_END */

/* WO29273_FEEDBACK_LAUNCHER_CALM_20260513A_START */
body.dm-sitewide-codex .dancz-feedback__launcher {
  background: rgba(16, 26, 35, 0.92) !important;
  border-color: rgba(155, 215, 209, 0.42) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  color: var(--dm-calm-text) !important;
}

@media (max-width: 700px) {
  body.dm-sitewide-codex .dancz-feedback__launcher {
    opacity: 0.84 !important;
  }
}
/* WO29273_FEEDBACK_LAUNCHER_CALM_20260513A_END */
