/* Citation anchor links — see citations.js. */

.citation-link,
.citation-ref {
  scroll-margin-top: 110px;
}

.citation-link {
  font-weight: 600;
  text-decoration: none;
}

.citation-link:hover,
.citation-link:focus {
  text-decoration: underline;
}

.citation-ref:target {
  animation: citation-flash 2s ease-out;
}

@keyframes citation-flash {
  0%,
  40% {
    background-color: rgba(229, 145, 66, .35);
  }
  100% {
    background-color: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .citation-ref:target {
    animation: none;
    background-color: rgba(229, 145, 66, .25);
  }
}
