/* Contrast corrections for the Anna Oliver and REAL agent homepages. */
:root {
  --masthead-muted: #c7d4df;
}
.site-header .header-signature,
.r-header .r-header-note {
  color: #c7d4df !important;
}

/* Keep the existing blue evaluation panel and strengthen its small text. */
#evaluation .resource-panel-head,
#evaluation .resource-panel-head span,
#evaluation .resource-panel-head strong,
#evaluation .visitor-form-guide,
#evaluation .visitor-required {
  color: #ffffff !important;
}

/* Preserve the REAL route card’s intended dark treatment with legible headings. */
.real-route-card-human {
  background-color: #20394b !important;
  color: #faf8f3 !important;
}
.real-route-card-human > h3 {
  color: #faf8f3 !important;
}

/* Keep footer section labels readable against the established dark footer. */
.r-footer {
  background-color: #0a111c !important;
}
.r-footer-grid b {
  color: #e5ebf0 !important;
}

/* Resolve late component overrides identified in the live contrast recheck. */
form[name] > .visitor-form-guide,
label[for] > .visitor-required {
  color: #ffffff !important;
}
.real-route-card-human > p {
  color: #e5edf0 !important;
}
.r-footer-call > span {
  color: #e5ebf0 !important;
}
.r-footer-call > a {
  color: #faf8f3 !important;
}

/* Preserve the contrast of required helper text after the shared opacity treatment. */
form[name] > .visitor-form-guide,
label[for] > .visitor-required {
  opacity: 1 !important;
}

/* Keep required markers matched to their actual surface. */
label[for] > .visitor-required {
  color: inherit !important;
  opacity: 1 !important;
}
#evaluation label[for] > .visitor-required {
  color: #ffffff !important;
}
.newsletter-label > .visitor-required {
  color: #132b42 !important;
  opacity: 1 !important;
}

/* Links inherit the light foreground in the dark agent footer. */
.r-footer-grid a,
.r-footer-grid p {
  color: #e5ebf0 !important;
}
.r-footer-grid a:hover {
  color: #ffffff !important;
}

/* Raise copyright and legal context text to readable contrast on the dark footer. */
.r-legal p {
  color: #c7d4df !important;
}

.r-legal p,
.r-legal p * {
  color: #c7d4df !important;
}
