/*
 * SID804 gallery and H3 contrast correction, based on SGTM V479.
 * Deliberately scoped to this one case study: other case studies and the
 * existing hero design, media and image viewer remain unchanged.
 */

/* White introductory cards within the dark gallery need dark text, not the
   light text inherited from .case-gallery-shell by V478. */
html body#sgtm-premium-v223 main.case-psa-v267 .case478-content .case-gallery-shell .case-gallery-intro,
html body#sgtm-premium-v223 main.case-psa-v267 .case478-content .case-video-shell .case-video-intro {
  background:#ffffff !important;
  color:#102b40 !important;
  border-color:#d7e4ed !important;
}
html body#sgtm-premium-v223 main.case-psa-v267 .case478-content .case-gallery-shell .case-gallery-intro h2,
html body#sgtm-premium-v223 main.case-psa-v267 .case478-content .case-video-shell .case-video-intro h2 {
  color:#102b40 !important;
  -webkit-text-fill-color:#102b40 !important;
  text-shadow:none !important;
  opacity:1 !important;
}
html body#sgtm-premium-v223 main.case-psa-v267 .case478-content .case-gallery-shell .case-gallery-intro p,
html body#sgtm-premium-v223 main.case-psa-v267 .case478-content .case-video-shell .case-video-intro p {
  color:#42596e !important;
  -webkit-text-fill-color:#42596e !important;
  text-shadow:none !important;
  opacity:1 !important;
}
html body#sgtm-premium-v223 main.case-psa-v267 .case478-content .case-gallery-shell .case-gallery-intro .label,
html body#sgtm-premium-v223 main.case-psa-v267 .case478-content .case-video-shell .case-video-intro .label {
  color:#076aaa !important;
  -webkit-text-fill-color:#076aaa !important;
  text-shadow:none !important;
  opacity:1 !important;
}
/* Keep the familiar blue line beside the eyebrow, and strengthen the title's
   decorative blue accent against the white card. */
html body#sgtm-premium-v223 main.case-psa-v267 .case478-content .case-gallery-intro .sgtm-accent-label-v420::before,
html body#sgtm-premium-v223 main.case-psa-v267 .case478-content .case-video-intro .sgtm-accent-label-v420::before {
  background:#087ac7 !important;
  opacity:1 !important;
  height:3px !important;
}
html body#sgtm-premium-v223 main.case-psa-v267 .case478-content .case-gallery-intro h2::after,
html body#sgtm-premium-v223 main.case-psa-v267 .case478-content .case-video-intro h2::after {
  background:linear-gradient(90deg,#075eaa 0%,#087ac7 65%,#35c5f4 100%) !important;
  width:72px !important;
  height:4px !important;
  opacity:1 !important;
}

/* Distinct H3 rules for dark photographic cards versus light information cards. */
html body#sgtm-premium-v223 main.case-psa-v267 .case478-content .case-gallery-grid .case-media-copy h3 {
  color:#f1f9ff !important;
  -webkit-text-fill-color:#f1f9ff !important;
  opacity:1 !important;
}
html body#sgtm-premium-v223 main.case-psa-v267 .case478-content .case-notes-box :is(.psa-steps,.psa-family-grid) h3,
html body#sgtm-premium-v223 main.case-psa-v267 .case478-content .case-notes-box h3.psa-subhead {
  color:#102b40 !important;
  -webkit-text-fill-color:#102b40 !important;
  opacity:1 !important;
}
html body#sgtm-premium-v223 main.case-psa-v267 .case478-content .case-gallery-grid .case-media-copy p {
  color:#c5d9e7 !important;
  -webkit-text-fill-color:#c5d9e7 !important;
}
html body#sgtm-premium-v223 main.case-psa-v267 .case478-content .case-notes-box :is(.psa-steps,.psa-family-grid) p {
  color:#42596e !important;
  -webkit-text-fill-color:#42596e !important;
}
/* Matching blue accent immediately beneath each SID804 content H3. Do not
   style footer headings, image-viewer headings, or the page hero. */
html body#sgtm-premium-v223 main.case-psa-v267 .case478-content :is(.case-media-copy,.psa-steps>div,.psa-family-grid>article) > h3::after,
html body#sgtm-premium-v223 main.case-psa-v267 .case478-content .case-notes-box > h3.psa-subhead::after {
  content:"" !important;
  display:block !important;
  width:38px !important;
  height:3px !important;
  margin:11px 0 0 !important;
  background:linear-gradient(90deg,#087ac7,#35c5f4) !important;
  border:0 !important;
  opacity:1 !important;
}
