/* Homepage News & Insights card hover treatment. */
.mos-home-page .section-full:has(.mos-article-grid) .mos-article-card {
  position: relative;
  transform: translateY(0);
  transition:
    transform 420ms cubic-bezier(.16, 1, .3, 1),
    border-color 220ms cubic-bezier(.16, 1, .3, 1),
    background-color 220ms cubic-bezier(.16, 1, .3, 1),
    box-shadow 420ms cubic-bezier(.16, 1, .3, 1);
}

.mos-home-page .section-full:has(.mos-article-grid) .mos-article-card .wt-post-media img {
  transform: scale(1);
  transition: transform 620ms cubic-bezier(.16, 1, .3, 1);
}

.mos-home-page .section-full:has(.mos-article-grid) .mos-article-card .post-title a {
  transition: color 220ms cubic-bezier(.16, 1, .3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .mos-home-page .section-full:has(.mos-article-grid) .mos-article-card:hover,
  .mos-home-page .section-full:has(.mos-article-grid) .mos-article-card:focus-within {
    transform: translateY(-6px);
    border-color: var(--color-home-accent, #8fc75d);
    background-color: var(--color-home-paper, #fff);
    box-shadow: 0 18px 42px rgba(35, 75, 42, .16);
  }

  .mos-home-page .section-full:has(.mos-article-grid) .mos-article-card:hover .wt-post-media img,
  .mos-home-page .section-full:has(.mos-article-grid) .mos-article-card:focus-within .wt-post-media img {
    transform: scale(1.055);
  }

  .mos-home-page .section-full:has(.mos-article-grid) .mos-article-card:hover .post-title a,
  .mos-home-page .section-full:has(.mos-article-grid) .mos-article-card:focus-within .post-title a {
    color: var(--color-home-accent-strong, #4f8f36);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mos-home-page .section-full:has(.mos-article-grid) .mos-article-card,
  .mos-home-page .section-full:has(.mos-article-grid) .mos-article-card .wt-post-media img,
  .mos-home-page .section-full:has(.mos-article-grid) .mos-article-card .post-title a {
    transition-duration: 1ms !important;
  }

  .mos-home-page .section-full:has(.mos-article-grid) .mos-article-card:hover,
  .mos-home-page .section-full:has(.mos-article-grid) .mos-article-card:focus-within,
  .mos-home-page .section-full:has(.mos-article-grid) .mos-article-card:hover .wt-post-media img,
  .mos-home-page .section-full:has(.mos-article-grid) .mos-article-card:focus-within .wt-post-media img {
    transform: none !important;
  }
}
