/* Isolated Convocation 2026 lightbox; all selectors are namespaced. */
.aiu-convocation-popup[hidden] { display: none !important; }
.aiu-convocation-popup {
    position: fixed;
    inset: 0;
    z-index: 2147483646;
    display: grid;
    place-items: center;
    padding: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    box-sizing: border-box;
    isolation: isolate;
}
.aiu-convocation-popup,
.aiu-convocation-popup * { box-sizing: border-box; }
.aiu-convocation-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 12, 28, 0.82);
}
.aiu-convocation-popup__panel {
    position: relative;
    z-index: 1;
    width: min(820px, 100%, calc(100dvh - 78px));
    max-height: calc(100dvh - 78px);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 16px 38px rgba(0,0,0,.42));
}
.aiu-convocation-popup__link {
    display: block;
    width: 100%;
    max-height: inherit;
    border-radius: 6px;
    overflow: hidden;
    line-height: 0;
    cursor: pointer;
    background: #242846;
}
.aiu-convocation-popup__image {
    display: block;
    width: 100%;
    height: auto;
    max-height: calc(100dvh - 78px);
    object-fit: contain;
}
.aiu-convocation-popup__close {
    position: absolute;
    z-index: 2;
    top: -17px;
    right: -17px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: #20233e;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .45);
    cursor: pointer;
    transition: background-color .15s ease, transform .15s ease;
}
.aiu-convocation-popup__close:hover {
    background: #ae2631;
    transform: scale(1.05);
}
.aiu-convocation-popup__close:focus-visible,
.aiu-convocation-popup__link:focus-visible {
    outline: 3px solid #f6c748;
    outline-offset: 4px;
}
body.aiu-convocation-popup-open { overflow: hidden !important; }
@media (max-width: 600px) {
    .aiu-convocation-popup { padding: max(22px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
    .aiu-convocation-popup__panel { width: min(100%, calc(100dvh - 72px)); max-height: calc(100dvh - 72px); }
    .aiu-convocation-popup__image { max-height: calc(100dvh - 72px); }
    .aiu-convocation-popup__close { top: -15px; right: -12px; width: 42px; height: 42px; }
}
/* Fallback for browsers not supporting the newer dynamic viewport unit. */
@supports not (height: 100dvh) {
    .aiu-convocation-popup__panel { width: min(820px, 100%, calc(100vh - 78px)); max-height: calc(100vh - 78px); }
    .aiu-convocation-popup__image { max-height: calc(100vh - 78px); }
    @media (max-width: 600px) {
        .aiu-convocation-popup__panel { width: min(100%, calc(100vh - 72px)); max-height: calc(100vh - 72px); }
        .aiu-convocation-popup__image { max-height: calc(100vh - 72px); }
    }
}
@media (prefers-reduced-motion: reduce) {
    .aiu-convocation-popup__close { transition: none; }
}
