/* g9: whole article card is clickable; gentle grow on hover, focus and touch. */
.acpc-post-grid {
  overflow: visible;
}

/* .acpc-home li { position: static !important } is in the shared bundle, so this needs !important
   for the stretched-link ::after to be clipped to the card. */
.acpc-home li.acpc-post-card,
.acpc-post-card {
  position: relative !important;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

/* Stretched link: the title <a> covers the whole card. No nested links. */
.acpc-post-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 12px;
}

.acpc-post-card:hover,
.acpc-post-card:focus-within,
.acpc-post-card:active {
  transform: scale(1.03);
  box-shadow: 0 10px 24px rgba(43, 50, 54, 0.16);
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .acpc-home li.acpc-post-card,
  .acpc-post-card {
    transition: none;
  }
  .acpc-post-card:hover,
  .acpc-post-card:focus-within,
  .acpc-post-card:active {
    transform: none;
  }
}
