/* SMART product and service entry cards. Each card keeps its original controls and dimensions. */
@media (hover: hover) and (pointer: fine) {
  :is(
    #smart-rs-268 .rs268-card,
    .sv251-cards > .sv251-card,
    #smart-home-241 .h241-service,
    #smart-services-234 .sv234-grid > .sv234-card:has(> h3 > a),
    :is(#smart-secondary-235, #smart-secondary-237) .sp235-grid > .sp235-card,
    #detector-selection-start .smart227-grid > article.smart227-card
  ):hover {
    --smart-card-offset: -7px;
    --smart-card-action: #e9eff9;
    --smart-card-action-ring: #d2ddf0;
    --smart-card-arrow-offset: 3px;
  }

  /* Keep the existing scroll reveal, and stop the old whole-card lift after it settles. */
  #detector-selection-start .smart227-grid > article.smart227-card:is(.smart11zc-in, .is-visible):hover {
    transform: none;
  }
}

:is(
  #smart-rs-268 .rs268-card,
  .sv251-cards > .sv251-card,
  #smart-home-241 .h241-service,
  #smart-services-234 .sv234-grid > .sv234-card:has(> h3 > a),
  :is(#smart-secondary-235, #smart-secondary-237) .sp235-grid > .sp235-card,
  #detector-selection-start .smart227-grid > article.smart227-card
):is(:focus-visible, :has(:focus-visible)) {
  --smart-card-offset: -7px;
  --smart-card-action: #e9eff9;
  --smart-card-action-ring: #bccce5;
  --smart-card-arrow-offset: 3px;
}

:is(
  #smart-rs-268 .rs268-card .rs268-link,
  .sv251-cards > .sv251-card .sv251-card-title > span[aria-hidden],
  #smart-home-241 .h241-service > .h241-service-link,
  #smart-services-234 .sv234-card > h3 > a > span[aria-hidden],
  :is(#smart-secondary-235, #smart-secondary-237) .sp235-grid > .sp235-card > a,
  #detector-selection-start .smart227-grid > article.smart227-card > a
) {
  background-color: var(--smart-card-action, transparent);
  border-radius: 6px;
  box-shadow: 0 0 0 3px var(--smart-card-action, transparent), 0 0 0 4px var(--smart-card-action-ring, transparent);
}

:is(
  #smart-rs-268 .rs268-card .rs268-link,
  .sv251-cards > a.sv251-card,
  #smart-home-241 a.h241-service,
  #smart-services-234 .sv234-card > h3 > a,
  :is(#smart-secondary-235, #smart-secondary-237) .sp235-grid > .sp235-card > a,
  #detector-selection-start .smart227-grid > article.smart227-card > a
):focus-visible {
  outline: 2px solid #42639b;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  :is(
    #smart-rs-268 .rs268-body > :is(h3, p),
    .sv251-cards > .sv251-card .sv251-card-copy,
    #smart-home-241 .h241-service > :is(h3, p, .h241-number),
    #smart-services-234 .sv234-grid > .sv234-card:has(> h3 > a) > :is(h3, p),
    :is(#smart-secondary-235, #smart-secondary-237) .sp235-grid > .sp235-card > :is(h3, p),
    #detector-selection-start .smart227-grid > article.smart227-card > :is(h3, p)
  ) {
    translate: 0 var(--smart-card-offset, 0);
    transition: translate 240ms cubic-bezier(.22, .61, .36, 1);
  }

  :is(
    #smart-rs-268 .rs268-card .rs268-link,
    .sv251-cards > .sv251-card .sv251-card-title > span[aria-hidden],
    #smart-home-241 .h241-service > .h241-service-link,
    #smart-services-234 .sv234-card > h3 > a > span[aria-hidden],
    :is(#smart-secondary-235, #smart-secondary-237) .sp235-grid > .sp235-card > a,
    #detector-selection-start .smart227-grid > article.smart227-card > a
  ) {
    transition: background-color 180ms ease, box-shadow 180ms ease;
  }

  :is(
    #smart-rs-268 .rs268-card .rs268-link .rs268-arrow,
    .sv251-cards > .sv251-card .sv251-card-title > span[aria-hidden],
    #smart-home-241 .h241-service > .h241-service-link > span[aria-hidden],
    #smart-services-234 .sv234-card > h3 > a > span[aria-hidden]
  ) {
    display: inline-block;
    translate: var(--smart-card-arrow-offset, 0) 0;
    transition: translate 240ms cubic-bezier(.22, .61, .36, 1), background-color 180ms ease, box-shadow 180ms ease;
  }
}
