/* Release 33: iOS/Safari contrast and utility-header repair.
   Loaded last so legacy !important and -webkit-text-fill-color rules cannot leak
   into the dark provider/scope cards or the light claim-page header. */

/* Provider evidence card: preserve white/light text on the navy surface. */
html body:not(.ca-page) main .cp-provider-data-card,
html body:not(.ca-page) main .cp-provider-data-card * {
  text-shadow: none !important;
  opacity: 1 !important;
}
html body:not(.ca-page) main .cp-provider-data-card :is(h1,h2,h3,h4,h5,h6,strong,b,summary),
html body:not(.ca-page) main .cp-provider-data-card .cp-provider-status {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
html body:not(.ca-page) main .cp-provider-data-card :is(p,li,small,dd,dt),
html body:not(.ca-page) main .cp-provider-data-card .cp-provider-data-note {
  color: #d3def4 !important;
  -webkit-text-fill-color: #d3def4 !important;
}
html body:not(.ca-page) main .cp-provider-data-card .cp-provider-data-kicker,
html body:not(.ca-page) main .cp-provider-data-card .cp-provider-data-item > span {
  color: #d7e6ff !important;
  -webkit-text-fill-color: #d7e6ff !important;
}
html body:not(.ca-page) main .cp-provider-data-card .cp-provider-data-actions a.primary,
html body:not(.ca-page) main .cp-provider-data-card .cp-provider-data-actions a.primary:visited {
  background: #2f5bea !important;
  border-color: #2f5bea !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
html body:not(.ca-page) main .cp-provider-data-card .cp-provider-data-actions a.secondary,
html body:not(.ca-page) main .cp-provider-data-card .cp-provider-data-actions a.secondary:visited {
  background: #1a2c49 !important;
  border-color: #607493 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Homepage scope cards: global light-page rules previously recolored their copy. */
html body:not(.ca-page) main .scope-choice {
  background: #0d1b36 !important;
  color: #ffffff !important;
}
html body:not(.ca-page) main .scope-choice :is(h2,h3,h4,strong,b) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
html body:not(.ca-page) main .scope-choice p {
  color: #d3def4 !important;
  -webkit-text-fill-color: #d3def4 !important;
}
html body:not(.ca-page) main .scope-choice .scope-count {
  background: #214886 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
html body:not(.ca-page) main .scope-choice a.btn-primary,
html body:not(.ca-page) main .scope-choice a.btn-primary:visited {
  background: #2f67ed !important;
  border-color: #2f67ed !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
html body:not(.ca-page) main .scope-choice a.btn-secondary,
html body:not(.ca-page) main .scope-choice a.btn-secondary:visited {
  background: #ffffff !important;
  border-color: #c8d4e4 !important;
  color: #0b1f3a !important;
  -webkit-text-fill-color: #0b1f3a !important;
}

/* Claim page: match the site's light header and remove the white logo plaque. */
html body.ca-page.claim-profile-page .ca-header {
  background: #ffffff !important;
  color: #0b2343 !important;
  border-bottom: 1px solid #e3eaf3 !important;
  box-shadow: 0 1px 0 rgba(15,35,65,.03) !important;
}
html body.ca-page.claim-profile-page .ca-header .ca-nav {
  min-height: 72px !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}
html body.ca-page.claim-profile-page .ca-header .ca-brand {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body.ca-page.claim-profile-page .ca-header .ca-brand .site-logo {
  width: 220px !important;
  max-width: min(220px, 58vw) !important;
  max-height: 58px !important;
  height: auto !important;
  background: transparent !important;
  object-fit: contain !important;
}
html body.ca-page.claim-profile-page .ca-header .ca-nav-links a,
html body.ca-page.claim-profile-page .ca-header .ca-nav-links a:visited {
  color: #26364d !important;
  -webkit-text-fill-color: #26364d !important;
}

@media (max-width: 620px) {
  html body:not(.ca-page) main .cp-provider-data-card {
    padding: 18px !important;
  }
  html body:not(.ca-page) main .scope-choice {
    padding: 22px !important;
  }
  html body.ca-page.claim-profile-page .ca-header .ca-brand .site-logo {
    width: 190px !important;
    max-width: 56vw !important;
  }
  html body.ca-page.claim-profile-page .ca-header .ca-nav-links {
    gap: 10px !important;
  }
}
