/* BibTeX modal — scoped, self-contained. Safe to remove this whole file. */
.bibtex-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4vh 4vw;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0s linear 0.18s;
    z-index: 1000;
}
.bibtex-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.18s ease, visibility 0s linear 0s;
}
.bibtex-modal-box {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    padding: 2.4em 2.4em 2em;
    max-width: 760px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    box-sizing: border-box;
}
.bibtex-modal-box h2 {
    text-align: center;
    margin: 0 0 1em;
    padding: 0;
    font-weight: 600;
    color: #353535;
}
.bibtex-modal-box pre {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.bibtex-modal-box pre code {
    font-family: "Fira Code", monospace;
    font-size: 0.85em;
    line-height: 1.5;
    white-space: pre;
    border: none !important;
    border-radius: 8px !important;
    margin: 0 !important;
}
.bibtex-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #9f9fa0;
    cursor: pointer;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    line-height: 1;
    padding: 0;
}
.bibtex-modal-close:hover {
    background-color: #ececec;
    color: #353535;
}
body.bibtex-modal-open {
    overflow: hidden;
}
