@import "custom.css";

sup:has(a[data-footnote-ref]) {
  position: relative;
  display: inline;
}

sup:hover span.fn-span {
  visibility: visible;
  opacity: 1;
  z-index: 999;
}

.fn-span {
  visibility: hidden;
  font-family: 'Open Sans', sans-serif;
  font-size: 80%;
  font-weight: normal;
  position: absolute;
  top: 30px;
  color: var(--fn-tt-foreground);
  background: var(--fn-tt-background);;
  border-radius: 6px;
  padding: 5px 10px;
  width: calc(var(--content-width) / 3);
  white-space: normal;
  text-align: left;
  opacity: 0;
  transition: opacity 0.8s;
}

.fn-span  p {
  padding: 0;
  margin: 0;
}

@media print {
  .fn-span {
    display: none;
  }
}
