/* Progressive HDR enhancement for brand wordmarks; normal text remains in the DOM. */
@media (dynamic-range: high) and (forced-colors: none) {
  @supports ((background-clip: text) or (-webkit-background-clip: text)) {
    :is(.nr-wordmark, .brand-main, .site-header .brand > span, .site-footer .brand > span, .hdr-live-orange) {
      --hdr-texture: url('/assets/hdr/orange-8x-v1.jpg');
    }
    :is(.site-header .brand > span b, .site-footer .brand > span b, .hdr-live-ivory) {
      --hdr-texture: url('/assets/hdr/ivory-8x-v1.jpg');
    }
    .hdr-live-white { --hdr-texture: url('/assets/hdr/white-8x-v1.jpg'); }
    :is(.nr-wordmark, .brand-main, .site-header .brand > span, .site-footer .brand > span,
        .site-header .brand > span b, .site-footer .brand > span b,
        .hdr-live-orange, .hdr-live-ivory, .hdr-live-white) {
      background-image: var(--hdr-texture);
      background-color: currentColor;
      background-size: 100% 100%;
      background-repeat: no-repeat;
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      dynamic-range-limit: no-limit;
    }
    :is(.nr-wordmark, .brand-main, .hdr-live-orange, .hdr-live-ivory, .hdr-live-white)::selection {
      -webkit-text-fill-color: HighlightText;
      background: Highlight;
    }
  }
}
