/* Endnote/Superscript Popup System */
.endnote {
    cursor: pointer;
    color: inherit;
    display: inline;
    word-break: break-word;
}

.endnote sup {
    font-size: 0.65em;
    vertical-align: super;
    padding: 0 2px;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.endnote sup:hover {
    opacity: 0.7;
}

/* Popup Container */
.endnote-popup {
    position: absolute;
    background-color: #333333;
    color: #FAF0E6;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 0.85em;
    max-width: 300px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none;
    word-wrap: break-word;
    line-height: 1.5;
}

.endnote-popup.active {
    display: block;
}

.endnote-popup a {
    color: #FAF0E6;
    text-decoration: underline;
}

.endnote-popup a:hover {
    opacity: 0. sup::after {
    content: ''
/* Small indicator dot on superscript when popup is visible */
.endnote.active::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: currentColor;
    border-radius: 50%;
    margin-left: 2px;
}
