/* Build 78 — targeted accessibility contrast corrections on existing brand.
   Calibrated from Lighthouse's exact foreground/background failure pairs.
   Keep brand layout, typefaces, sizing, images and transactional states intact. */

/* Light-background editorial labels retain Dr. Ray's industrial red, with
   sufficient contrast at 11px (the previous #cf2f3b narrowly failed). */
.xpServiceRail .xpOverline:not(.light),
.xpSplitSection .xpOverline:not(.light),
.xpRetention .xpOverline:not(.light),
.xpProof .xpOverline:not(.light) {
  color:#9d1c29!important;
}
.xpSplitCopy>p,
.xpProofGrid>div>p {color:#39454f!important}
.xpProofSteps small {color:#45525d!important}

/* White semantic cards stay light even inside a charcoal estimator rail.
   Their labels must be legible on the actual light surface. */
.innerRail .innerRailCard.light,
.estimateAside .innerRailCard.light {
  background-color:#fff!important;color:#152028!important;
}
.innerRail .innerRailCard.light .innerRailStat span,
.estimateAside .innerRailCard.light .innerRailStat span {
  color:#34424d!important;
}
.innerRail .innerRailCard.light p,
.estimateAside .innerRailCard.light p{color:#414e59!important}

/* Dark cards can no longer inherit slate text intended for white cards. */
.innerRail .innerRailCard:not(.light) p,
.estimateAside .innerRailCard:not(.light) p{
  color:#d4dce2!important;
}
.innerRail .innerRailCard:not(.light) .xpOverline:not(.light),
.estimateAside .innerRailCard:not(.light) .xpOverline:not(.light){
  color:#ff9da6!important;
}
