/*! NBC v7.069 · P0 Contrast / Readability Contract
    Scope: website-wide foreground safety + mobile home material/ambient collision repair.
    No geometry, spacing, typography sizing or content changes. */

/* Native controls must never fall back to the browser's black button label.
   Zero specificity keeps every intentional component color in control. */
:where(body.page.design-system-executive main button){
  color:inherit;
  -webkit-text-fill-color:currentColor;
}

/* Mobile home: ambient semantics may decorate a scene, but the authored material
   owns foreground contrast. These two deep scenes are intentionally dark even
   when ambient-runtime classifies them as evidence. */
@media (max-width:760px){
  html#nbc-document body#nbc-page.page-home[data-mobile-home-v7="v7002"] main#main-content .m7h-principles[data-nbc-material="deep"][data-ambient="evidence"],
  html#nbc-document body#nbc-page.page-home[data-mobile-home-v7="v7002"] main#main-content .m7h-person[data-nbc-material="deep"][data-ambient="evidence"]{
    background-color:transparent!important;
    color:var(--m7-text,#f3f5ef)!important;
  }

  html#nbc-document body#nbc-page.page-home[data-mobile-home-v7="v7002"] main#main-content .m7h-principles[data-nbc-material="deep"][data-ambient="evidence"] .m7h-title,
  html#nbc-document body#nbc-page.page-home[data-mobile-home-v7="v7002"] main#main-content .m7h-principles[data-nbc-material="deep"][data-ambient="evidence"] .m7h-principle-ledger strong,
  html#nbc-document body#nbc-page.page-home[data-mobile-home-v7="v7002"] main#main-content .m7h-person[data-nbc-material="deep"][data-ambient="evidence"] .m7h-title,
  html#nbc-document body#nbc-page.page-home[data-mobile-home-v7="v7002"] main#main-content .m7h-person[data-nbc-material="deep"][data-ambient="evidence"] .m7h-person__portrait figcaption strong{
    color:var(--m7-text,#f3f5ef)!important;
    -webkit-text-fill-color:currentColor!important;
  }

  html#nbc-document body#nbc-page.page-home[data-mobile-home-v7="v7002"] main#main-content .m7h-principles[data-nbc-material="deep"][data-ambient="evidence"] .m7h-intro,
  html#nbc-document body#nbc-page.page-home[data-mobile-home-v7="v7002"] main#main-content .m7h-principles[data-nbc-material="deep"][data-ambient="evidence"] .m7h-principle-ledger p,
  html#nbc-document body#nbc-page.page-home[data-mobile-home-v7="v7002"] main#main-content .m7h-person[data-nbc-material="deep"][data-ambient="evidence"] .m7h-person__body>p{
    color:var(--m7h-muted,rgba(238,244,239,.68))!important;
    -webkit-text-fill-color:currentColor!important;
  }

  html#nbc-document body#nbc-page.page-home[data-mobile-home-v7="v7002"] main#main-content .m7h-principles[data-nbc-material="deep"][data-ambient="evidence"] .m7h-kicker,
  html#nbc-document body#nbc-page.page-home[data-mobile-home-v7="v7002"] main#main-content .m7h-person[data-nbc-material="deep"][data-ambient="evidence"] .m7h-kicker{
    color:var(--m7h-green,#9cdeb0)!important;
    -webkit-text-fill-color:currentColor!important;
  }

  html#nbc-document body#nbc-page.page-home[data-mobile-home-v7="v7002"] main#main-content .m7h-person[data-nbc-material="deep"][data-ambient="evidence"] .m7h-person__proof strong{
    color:var(--m7h-green,#9cdeb0)!important;
    -webkit-text-fill-color:currentColor!important;
  }

  html#nbc-document body#nbc-page.page-home[data-mobile-home-v7="v7002"] main#main-content .m7h-person[data-nbc-material="deep"][data-ambient="evidence"] .m7h-text-link{
    color:var(--m7-text,#f3f5ef)!important;
    -webkit-text-fill-color:currentColor!important;
  }
}

/* Barometer: scenario selectors are native buttons on a dark instrument.
   Their foreground must be authored explicitly rather than rely on UA defaults. */
body.page-barometer .baro-scenario{
  color:rgba(238,244,239,.78)!important;
  -webkit-text-fill-color:currentColor!important;
}
body.page-barometer .baro-scenario strong{
  color:#f2f6f2!important;
  -webkit-text-fill-color:currentColor!important;
}
body.page-barometer .baro-scenario small{
  color:rgba(232,239,233,.62)!important;
  -webkit-text-fill-color:currentColor!important;
}
body.page-barometer .baro-scenario[aria-pressed="true"]{
  color:#f4f7f4!important;
}
body.page-barometer .baro-toolbar button{
  color:rgba(237,243,238,.76);
  -webkit-text-fill-color:currentColor;
}
body.page-barometer .baro-toolbar button:disabled{
  color:rgba(237,243,238,.38);
}

/* Digital Check: the start choices are dark, transparent native buttons. */
body.page-digital-check .dc7-choice{
  color:var(--dc45-text,#f1f4f1)!important;
  -webkit-text-fill-color:currentColor!important;
}
body.page-digital-check .dc7-choice>strong{
  color:var(--dc45-text,#f1f4f1)!important;
  -webkit-text-fill-color:currentColor!important;
}
body.page-digital-check .dc7-choice>.mono,
body.page-digital-check .dc7-choice .dc7-choice__action{
  color:var(--dc45-green,#8bd49b)!important;
  -webkit-text-fill-color:currentColor!important;
}
body.page-digital-check .dc7-choice>p{
  color:var(--dc45-muted,rgba(232,238,232,.64))!important;
  -webkit-text-fill-color:currentColor!important;
}
