/* Match the masthead's centered underline without changing link wrapping or hit areas. */
.nav-hover-text {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size: 0% 1px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size .2s ease;
}
.foot .nav-hover-text { align-self: flex-start; }
/* Tighten wrapped labels while preserving single-line height and item spacing. */
.foot .footer-groups a { display: block; line-height: 20px; padding-block: calc((var(--footer-item-height) - 20px) / 2); }
.foot .footer-groups .nav-hover-text { display: inline; }
.foot .footer-groups a:is(:hover, :focus-visible) { color: var(--purple); }
.foot .footer-groups a:is(:hover, :focus-visible),
.foot .footer-legal a:is(:hover, :focus-visible),
.research-page .home-research-title a:is(:hover, :focus-visible),
.home-page .contact-email:is(:hover, :focus-visible),
.home-page .home-research-row:is(:hover, :focus-visible) .home-research-title {
  text-decoration: none;
}
.foot a:is(:hover, :focus-visible) .nav-hover-text,
.research-page .home-research-title a:is(:hover, :focus-visible) .nav-hover-text,
.home-page .home-research-row:is(:hover, :focus-visible) .nav-hover-text,
.home-page .contact-email:is(:hover, :focus-visible) .nav-hover-text { background-size: 100% 1px; }

/* Match Harvey's primary CTA: warm gray with its original ivory lettering. */
.page .button.solid-button {
  background: #161616;
  border-color: #161616;
  color: #fff;
  transition: background-color .3s cubic-bezier(0,.7,.3,1), border-color .3s cubic-bezier(0,.7,.3,1), color .3s cubic-bezier(0,.7,.3,1);
}
.page .button.solid-button:is(:hover, :focus-visible) { background: #8f8b85; border-color: #8f8b85; color: #fafaf9; }
@media (prefers-reduced-motion: reduce) {
  .nav-hover-text,
  .page .button.solid-button { transition-duration: .01ms; }
}
