/* Glossary overlay */
#glossary {
    position: fixed;
    inset: 0;
    z-index: 50;
}

#glossary.glossary-hidden {
    display: none;
}

.glossary-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(4px);
}

.glossary-window {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 96vw;
    height: 92vh;
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.75);
}

.glossary-window iframe {
    border-radius: 8px;
    overflow: hidden;
}

.glossary-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #2d2e30;
    color: #e8eaed;
    border: 1px solid #3c4043;
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
    transition: background 0.15s ease, color 0.15s ease;
    z-index: 1;
}

.glossary-close:hover {
    background: #3c4043;
    color: #ffffff;
}
