/* 0.71.8 global contrast safety net.
   Ensures text remains readable on dark or light surfaces that legacy overrides have broken. */

/* Intentionally dark sections keep light text */
.nbd-proof-final,
.nbd-proof-final h1,
.nbd-proof-final h2,
.nbd-proof-final h3,
.nbd-proof-final p,
.nbd-proof-final .nbd-proof-kicker {
  color: #fff !important;
}
.nbd-proof-final {
  background: #071c2a !important;
}
.nbd-proof-final .nbd-proof-kicker {
  color: #7be8ff !important;
}
.nbd-proof-final p {
  color: #b5cad4 !important;
}

/* Acquisition aside (dark band) */
.nbd-acquisition > aside,
.nbd-acquisition > aside h2,
.nbd-acquisition > aside h3 {
  color: #fff !important;
}
.nbd-acquisition > aside p {
  color: #d5e5ff !important;
}

/* Before/after dark cards */
.nbd-before-after,
.nbd-before-after h2,
.nbd-before-after h3 {
  color: #fff !important;
}

/* Ensure buttons on dark sections stay readable */
.nbd-proof-final .nbd-proof-btn.is-primary {
  background: #fff !important;
  color: #102a3a !important;
  border-color: #fff !important;
}
.nbd-proof-final .nbd-proof-btn.is-ghost {
  background: transparent !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.45) !important;
}

/* nbd2-final-cta: ensure readable pairing regardless of earlier overrides */
body .nbd2-final-cta {
  background: #071c2a !important;
  color: #fff !important;
}
body .nbd2-final-cta :is(h1,h2,h3) {
  color: #fff !important;
}
body .nbd2-final-cta p {
  color: #b5cad4 !important;
}
body .nbd2-final-cta .nbd2-kicker {
  color: #7be8ff !important;
}
body .nbd2-final-cta .nbd2-btn-light,
body .nbd2-final-cta .nbd2-btn-primary {
  background: #fff !important;
  color: #102a3a !important;
  border-color: #fff !important;
}
body .nbd2-final-cta .nbd2-btn-ghost-light,
body .nbd2-final-cta .nbd2-btn-ghost {
  background: transparent !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.45) !important;
}

/* Header dropdowns: force readable dark text on white */
body .nbd-site-header .nbd-site-dropdown,
body .nbd-site-header .nbd-account-dropdown {
  background: #fff !important;
  border: 1px solid #dce5f0 !important;
  color: #08152d !important;
}
body .nbd-site-header .nbd-site-dropdown a,
body .nbd-site-header .nbd-account-dropdown a {
  color: #08152d !important;
  background: transparent !important;
}
body .nbd-site-header .nbd-site-dropdown a:hover,
body .nbd-site-header .nbd-account-dropdown a:hover,
body .nbd-site-header .nbd-site-dropdown a[aria-current="page"],
body .nbd-site-header .nbd-account-dropdown a[aria-current="page"] {
  background: #f0f6ff !important;
  color: #0056d6 !important;
}
body .nbd-site-header summary,
body .nbd-site-header .nbd-site-main-menu a,
body .nbd-site-header .nbd-site-main-menu summary {
  color: #08152d !important;
}
body .nbd-site-header .nbd-site-primary-account {
  background: #0064ff !important;
  color: #ffffff !important;
}

/* Top-level current page link readable */
body .nbd-site-header .nbd-site-main-menu a[aria-current="page"],
body .nbd-site-header .nbd-site-main-menu .current-menu-item > a {
  color: #005adf !important;
  font-weight: 600 !important;
  background: transparent !important;
}
