/* First-visit spotlight (spotlight.html, /js/spotlight.js).
   A modal promo shown once per visitor. The poster sets the panel's width;
   the panel never exceeds the viewport, and scrolls inside itself on a short
   one rather than pushing the close button off screen. */

.xbec__spotlight {
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #ffffff;
    overflow: auto;
    box-shadow: 0 24px 64px rgba(10, 16, 26, 0.45);
}
.xbec__spotlight::backdrop {
    background: rgba(10, 16, 26, 0.72);
}
.xbec__spotlight[open] {
    animation: spotlight-in 180ms ease-out;
}
@keyframes spotlight-in {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .xbec__spotlight[open] { animation: none; }
}
/* The page behind stays where it was while the spotlight is open. */
html:has(.xbec__spotlight[open]) {
    overflow: hidden;
}

.xbec__spotlight__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #1a2332;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(10, 16, 26, 0.25);
}
.xbec__spotlight__close:hover {
    background: #ffffff;
}
.xbec__spotlight__close:focus-visible {
    outline: 3px solid #f5b800;
    outline-offset: 2px;
}

.xbec__spotlight__media {
    display: block;
}
.xbec__spotlight__media img {
    display: block;
    width: 100%;
    height: auto;
}
.xbec__spotlight__media:focus-visible {
    outline: 3px solid #f5b800;
    outline-offset: -3px;
}

.xbec__spotlight__actions {
    padding: 16px;
}
/* Square-cornered, not the site's pill: it sits under a rectangular poster. */
.xbec__button.c-spotlight-cta {
    width: 100%;
    height: 2.75em;
    border-radius: 8px;
    font-size: 1rem;
}
.xbec__button.c-spotlight-cta:focus-visible {
    outline: 3px solid #1a2332;
    outline-offset: 2px;
}
