@layer pa-text-legibility {
  /* The four captions sit below an image on a light card. */
  html body #main :is(
    #about-midtown-testing-suite, #accessibility-live-sound-system,
    #in-office-insert-earphones, #senior-family-input
  ) figcaption,
  html body #main :is(
    #about-midtown-testing-suite, #accessibility-live-sound-system,
    #in-office-insert-earphones, #senior-family-input
  ) figcaption a,
  html body:is([data-pa-route="/"],[data-pa-route="/services"]) #gNav a.g-book {
    color: #171511 !important;
    -webkit-text-fill-color: #171511 !important;
  }

  /* The existing orange borders and underline accents indicate emphasis. */
  html body #main .jrelated :is(.eyebrow,h2 em),
  html body #main .mfr-head :is(.sec-label,h2 em),
  html body #main .mfr-kicker,
  html body #main :is(.info-cell,.acc-card,.el-feature2-text) .ik,
  html body #main :is(.sig-gcard,.el-gcard,.ph-gcard,.rsg-gcard,.sen-gcard,.sk-gcard,.un-gcard,.wst-gcard,.wx-gcard) .gk,
  html body #main .pa-pathways :is(.pa-path-label,.pa-path-kicker,h2 em),
  html body #main .fact-card .fc-eyebrow,
  html body #main .pin-proof .pin-proof__n,
  html body #main .ha-next-step .eyebrow,
  html body #main :is(.answer-section,.search-pathways) :is(.ak,.eyebrow,h2 em),
  html body:is([data-pa-route="/hearing-aid-repair"],[data-pa-route="/hearing-aid-programming"])
      #main :is(.card-body,.section-head) .eyebrow,
  html body:is([data-pa-route="/audiology-residency"],[data-pa-route="/auditory-processing-disorder"],
      [data-pa-route="/best-hearing-aid-brands"],[data-pa-route="/custom-earplugs"],
      [data-pa-route="/hearing-aid-help-for-parents-nyc"],[data-pa-route="/hearing-aid-programming"])
      #main :is(.section.alt,.res-sec.alt) :is(.eyebrow,.res-kicker,h2 em),
  html body[data-pa-route="/audiology-residency"] #main .res-detail-card:not(.dark) .res-kicker,
  html body[data-pa-route="/auditory-processing-disorder"] #main .apd-battery :is(.eyebrow,h2 em),
  html body:is([data-pa-route="/auditory-processing-disorder"],[data-pa-route="/best-hearing-aid-brands"])
      #main .page-hero :is(.eyebrow,h1 em) {
    color: #171511 !important;
  }

  /* These section variants render on light surfaces. */
  html body #main .mfr-hero h1.display em,
  html body:is([data-pa-route="/earlens-hearing-aids"],[data-pa-route="/oticon-hearing-aids"],
      [data-pa-route="/phonak-hearing-aids"],[data-pa-route="/resound-hearing-aids"],
      [data-pa-route="/rexton-hearing-aids"],[data-pa-route="/signia-hearing-aids"],
      [data-pa-route="/starkey-hearing-aids"],[data-pa-route="/unitron-hearing-aids"],
      [data-pa-route="/widex-hearing-aids"],
      [data-pa-route="/journal/nyc-sirens-subways-urban-noise-hearing-health"],
      [data-pa-route="/journal/why-do-my-ears-feel-clogged"],
      [data-pa-route="/journal/why-hearing-aids-get-a-bad-reputation"],
      [data-pa-route="/protection"]) #main section.cta.pad :is(.cta-inner .eyebrow,h2 em),
  html body[data-pa-route="/best-hearing-aid-brands"] #main .cta-banner :is(.eyebrow,h2 em),
  html body[data-pa-route="/evidence-based-hearing-care"] #main .cluster :is(.eyebrow,h2 em),
  html body[data-pa-route="/hearing-aid-care"]
      #main :is(#two-minute-routine,#troubleshooting,#brand-videos,#faq) :is(.hac-kicker,h2 em),
  html body:is([data-pa-route="/hearing-aid-programming"],[data-pa-route="/hearing-aid-repair"])
      #main :is(#programming-questions,#repair-questions) em,
  html body[data-pa-route="/hearing-aid-repair"] #main .section:not(.faq) h2 em,
  html body[data-pa-route="/hearing-aid-videos"] #main :is(.basics,.vcta) :is(.eyebrow,h2 em),
  html body[data-pa-route="/hearing-aids"] #main
      :is(#compare-models,#hearing-aid-prices,#modern,.band,#tech-levels,#rx-vs-otc,.ha-faq) .sec-label,
  html body[data-pa-route="/hearing-aids"] #main #modern .cov .ck,
  html body[data-pa-route="/hearing-health"] #main #signs :is(.sec-label,.eyebrow,h2 em),
  html body[data-pa-route="/hearing-screening"] #main .answer-section .sec-label,
  html body[data-pa-route="/hearing-test"] #main .section :is(.section-head .eyebrow,h2 em),
  html body[data-pa-route="/hearing-test"] #main .section.related-services .eyebrow,
  html body:is([data-pa-route="/industry"],[data-pa-route="/senior-care"]) #main .sec h2.sec-title em,
  html body[data-pa-route="/insurance"] #main #plans :is(.sec-label,.eyebrow,h2 em),
  html body[data-pa-route="/journal/best-hearing-aids-nyc"] #main :is(.pad,#hearing-quiz) .sec-label,
  html body[data-pa-route="/phonak-hearing-aids"] #main :is(#overview,#phonak-evidence,section.mfr-sec) h2 em,
  html body[data-pa-route="/phonak-hearing-aids"] #main section.mfr-sec .sec-label,
  html body[data-pa-route="/phonak-infinio-sphere"] #main #sphere-generations .eyebrow,
  html body[data-pa-route="/protection"] #main .hp-sec :is(.eyebrow,h2 em),
  html body[data-pa-route="/real-ear-measurement"] #main .pvc-rem-tool figcaption .pa-epc-label,
  html body[data-pa-route="/reviews"] #main :is(.tap-sec,.jrnl-bar) .sec-label,
  html body[data-pa-route="/signia-hearing-protection"] #main #musician-spot :is(.sec-label,h2 em),
  html body[data-pa-route="/tinnitus"] #main #tinnitus-visit-nyc .pa-visit-card .eyebrow,
  html body[data-pa-route="/transfer"] #main :is(#second-opinion,#transfer-process,#support) h2 em,
  html body[data-pa-route="/unitron-hearing-aids"] #main #unitron-product-sources em {
    color: #171511 !important;
  }
}
