.source-link {
  position: relative;
  display: block;
  width: fit-content;
  color: inherit;
  text-decoration: none;
}

/* Tooltip Card */

.source-link::after {
  content: "“" attr(data-snippet) "”";

  position: absolute;
  left: calc(100% + 12px);
  top: 50%;

  transform: translateY(-50%);

  width: 380px;

  padding: 12px 14px;

  background: #111315;
  color: rgba(255, 255, 255, 0.92);

  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;

  font-size: 13px;
  line-height: 1.5;
  font-style: italic;

  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);

  opacity: 0;
  visibility: hidden;

  transition: opacity 0.15s ease;

  pointer-events: none;
  z-index: 999;
}

/* Arrow */

.source-link::before {
  content: "";

  position: absolute;

  left: calc(100% + 6px);
  top: 50%;

  width: 10px;
  height: 10px;

  background: #111315;

  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  transform: translateY(-50%) rotate(45deg);

  opacity: 0;
  visibility: hidden;

  transition: opacity 0.15s ease;

  z-index: 1000;
}

/* Show on hover */

.source-link:hover::after,
.source-link:hover::before {
  opacity: 1;
  visibility: visible;
}
