@media print {
    .footnote-uarr {
        display: none;
    }
}

.footnote-uarr,
.footnote-key,
.footnote-ref-sup {
    color: #444;
    text-decoration: none;
}

.footnote-ref:target .footnote-ref-sup,
.footnote:target {
    background-color: yellow;
}

.footnote-ref {
    position: relative;
    display: inline-block;
    z-index: 10;
}

.footnote-ref-text {
    border-bottom: 1px dotted silver;
}

.footnote-ref-tooltip {
    font-size: .8rem;
    font-weight: normal;
    font-variant: normal;
    font-style: normal;
    font-stretch: normal;
    letter-spacing: normal;
    line-height: normal;
    text-align: left;
    text-decoration: none;
    text-indent: 0;
    text-transform: none;
    z-index: 1;
    position: absolute;
    width: max-content;
    padding: 8px 10px;
    max-width: 350px;
    border-radius: 5px;
    color: #FFF;
    background: #1976D2;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
}

.footnote-ref-tooltip a {
    color: white;
    text-decoration: underline;
}

.footnote-ref:hover .footnote-ref-tooltip {
    opacity: 1;
    display: inline-block;
    pointer-events: all;
}

.footnote-ref-tooltip-arrow,
.footnote-ref-tooltip-arrow::before {
    position: absolute;
    width: 8px;
    height: 8px;
    z-index: -1;
}

.footnote-ref-tooltip-arrow::before {
    content: '';
    transform: rotate(45deg);
    background: #1976D2;
}

.footnote-ref-tooltip[data-popper-placement^='top']>.footnote-ref-tooltip-arrow {
    bottom: -4px;
}

.footnote-ref-tooltip[data-popper-placement^='bottom']>.footnote-ref-tooltip-arrow {
    top: -4px;
}

.footnote-ref-tooltip[data-popper-placement^='left']>.footnote-ref-tooltip-arrow {
    right: -4px;
}

.footnote-ref-tooltip[data-popper-placement^='right']>.footnote-ref-tooltip-arrow {
    left: -4px;
}
