.home-topstrip-slot {
    background: transparent;
}

body.d6-theme:has(#d6-hero) .home-topstrip-slot {
    background: linear-gradient(160deg, #06080d 0%, #0a0e1a 30%, #0d1225 60%, #080b14 100%);
}
body.d6-theme.theme-light:has(#d6-hero) .home-topstrip-slot {
    background: linear-gradient(160deg, #f8fafc 0%, #ecfeff 35%, #f0fdf4 65%, #ffffff 100%);
}

.home-topstrip-carousel {
    position: relative;
}

/* Stage wraps only the viewport + arrows, so the arrows are centered on the
   banner itself and never shift when the dots row is added below. */
.home-topstrip-stage {
    position: relative;
}

/* Critical layout in plain CSS so it applies before the Tailwind CDN runtime
   loads — otherwise every slide flashes on screen then gets clipped. */
.home-topstrip-viewport {
    width: 100%;
    overflow: hidden;
    border-radius: 1rem;
}

.home-topstrip-track {
    display: flex;
    flex-wrap: nowrap;
    /* Center each slide vertically against the tallest one, so the shorter
       "ad slot" card lines up with the image banner and the arrows. */
    align-items: center;
    will-change: transform;
}

.home-topstrip-cell {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
}

.home-topstrip-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    border: 1px solid rgba(6, 214, 160, 0.35);
    background: rgba(6, 8, 13, 0.72);
    color: #a7f3d0;
    backdrop-filter: blur(6px);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.home-topstrip-arrow:hover {
    background: rgba(6, 214, 160, 0.2);
    border-color: rgba(6, 214, 160, 0.6);
    color: #ecfdf5;
}

.home-topstrip-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.home-topstrip-arrow--prev { left: 0.35rem; }
.home-topstrip-arrow--next { right: 0.35rem; }

.home-topstrip-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    border: none;
    padding: 0;
    background: rgba(148, 163, 184, 0.45);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.home-topstrip-dot.is-active {
    background: #06d6a0;
    transform: scale(1.15);
}

.home-topstrip-dot:hover {
    background: rgba(6, 214, 160, 0.65);
}

body.d6-theme.theme-light .home-topstrip-arrow {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(6, 182, 212, 0.35);
    color: #0e7490;
}

body.d6-theme.theme-light .home-topstrip-arrow:hover {
    background: rgba(236, 254, 255, 0.95);
    border-color: rgba(6, 182, 212, 0.55);
    color: #047857;
}

body.d6-theme.theme-light .home-topstrip-dot {
    background: rgba(148, 163, 184, 0.55);
}

body.d6-theme.theme-light .home-topstrip-dot.is-active {
    background: #06b6d4;
}

@media (max-width: 639px) {
    .home-topstrip-slot__inner {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .home-topstrip-arrow {
        width: 1.75rem;
        height: 1.75rem;
    }

    .home-topstrip-arrow--prev { left: 0.25rem; }
    .home-topstrip-arrow--next { right: 0.25rem; }

    .home-topstrip-dot {
        width: 0.4rem;
        height: 0.4rem;
    }

    .home-topstrip-dots {
        gap: 0.35rem;
        margin-top: 0.35rem;
    }
}
