/* ============================================================
   Popups (components/popups.php + js/popups.js)
   Dark overlay modals; z-index sits above header/footer and the
   site modals, below nothing. Distinct .site-popup namespace so it
   never conflicts with the video-wall player modal or wm-layer.
   ============================================================ */

.site-popups {
    position: fixed;
    inset: 0;
    z-index: 950;
    pointer-events: none;
}

.site-popup {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    pointer-events: auto;
}

.site-popup[hidden] {
    display: none;
}

.site-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
}

.site-popup__panel {
    position: relative;
    width: min(560px, 100%);
    max-height: 84vh;
    overflow: auto;
    background: var(--color-surface, #12181f);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 26px 24px 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    color: var(--color-text, #e6edf3);
}

.site-popup__close {
    position: absolute;
    top: 8px;
    right: 14px;
    font-size: 1.5rem;
    line-height: 1;
    background: none;
    border: 0;
    color: var(--color-muted, #8b98a5);
    cursor: pointer;
    z-index: 2;
}

.site-popup__close:hover {
    color: var(--color-text, #e6edf3);
}

.site-popup__content {
    line-height: 1.6;
}

.site-popup__content img {
    width: 100%;
    display: block;
    border-radius: 6px;
}

.site-popup__content h1,
.site-popup__content h2,
.site-popup__content h3 {
    color: var(--color-text, #e6edf3);
    margin: 0 0 10px;
}

.site-popup__content p {
    margin: 0 0 10px;
    color: var(--color-text, #e6edf3);
}

.site-popup__content a {
    color: var(--color-accent, #4fc3f7);
}