/* A small, consistent response for buttons and links styled as buttons. */
@media (hover: hover) and (pointer: fine) {
  :is(
    button:not(select button),
    a.btn,
    a.rh-button,
    a.rh-hero-catalog,
    a.chip,
    a.contact-pill,
    a.msgr__btn,
    a.header__call
  ):not(:disabled):not([aria-disabled="true"]) {
    transition: transform 160ms ease, background-color 160ms ease,
      border-color 160ms ease, box-shadow 160ms ease, color 160ms ease !important;
  }

  :is(
    button:not(select button),
    a.btn,
    a.rh-button,
    a.rh-hero-catalog,
    a.chip,
    a.contact-pill,
    a.msgr__btn,
    a.header__call
  ):not(:disabled):not([aria-disabled="true"]):hover {
    transform: scale(1.025);
  }

  .tile input:not(:checked) + span {
    transition: transform 160ms ease, background-color 160ms ease,
      border-color 160ms ease, color 160ms ease !important;
  }

  .tile:hover input:not(:checked) + span {
    background: var(--surface-2);
    border-color: var(--ink);
    transform: scale(1.025);
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
  :is(
    button:not(select button),
    a.btn,
    a.rh-button,
    a.rh-hero-catalog,
    a.chip,
    a.contact-pill,
    a.msgr__btn,
    a.header__call
  ):not(:disabled):not([aria-disabled="true"]) {
    transition: background-color 160ms ease, border-color 160ms ease,
      box-shadow 160ms ease, color 160ms ease !important;
  }

  :is(
    button:not(select button),
    a.btn,
    a.rh-button,
    a.rh-hero-catalog,
    a.chip,
    a.contact-pill,
    a.msgr__btn,
    a.header__call
  ):not(:disabled):not([aria-disabled="true"]):hover {
    transform: none;
  }

  .tile input:not(:checked) + span {
    transition: background-color 160ms ease, border-color 160ms ease,
      color 160ms ease !important;
  }

  .tile:hover input:not(:checked) + span {
    transform: none;
  }
}
