/* Shared feedback for linked cards. Leave images, buttons and their labels intact. */
:root { --hts-card-highlight: #d9efff; }

:is(main, #main) :is(
  a.service-card, a.need-card, a.equipment-tile, a.hp-product-card, a.quick-link,
  a.network-logo-card, a.pathway, .ac-equipment > a,
  .city-building-card:has(h3 a[href]),
  :is(.service-card, .need-card, .product-card, .blog-story-card, .visual-blog-card,
      .home-service-panel, .home-product-panel, .work-card, .video-card):has(a[href])
):is(:hover, :focus-visible, :has(a:focus-visible)) {
  background-color: var(--hts-card-highlight) !important;
  border-color: #88b8d9;
}

/* Some templates give the text portion of a photo card its own opaque surface. */
:is(main, #main) :is(.product-card, .blog-story-card, .visual-blog-card, .home-service-panel,
    .home-product-panel, .work-card, .video-card):is(:hover, :has(a:focus-visible))
  :is(.product-card-copy, .blog-story-copy, .visual-blog-copy, .home-product-copy,
      .work-card-copy, .video-card-copy) {
  background-color: var(--hts-card-highlight);
  color: #193349;
}
:is(main, #main) :is(a.service-card, a.need-card, a.equipment-tile, a.hp-product-card,
    a.quick-link, a.network-logo-card, a.pathway, .ac-equipment > a):focus-visible {
  outline: 3px solid #006397;
  outline-offset: 3px;
}
