/* GIGW 5.2.14 / WCAG 1.4.3 (STQC round 1, screenshot 11) - district banner captions.
   The caption on each banner slide (_BannerPartial.cshtml, inside .card-img-overlay) had no
   background of its own and sat straight on the photograph, so its contrast depended on
   whatever was in the picture; on a light photo it fell far below 4.5:1. A solid backing
   makes it independent of the photo: white on the theme colour is ~7.8:1 (var(--nav-bg), so
   it follows the active theme - GIGW_COMPLIANCE.md 4.2).
   Bug scan 26-01, bug 01B: the caption used to be a .btn-link <button> that went nowhere, and
   testers reported it as a broken link. It is plain text now - no underline, no pointer. */
#carousel .card-img-overlay .banner-caption {
    display: inline-block;
    max-width: 100%;
    margin: 8px;
    padding: 8px 16px;
    color: #fff;
    background-color: var(--nav-bg, #095a6f);
    border-radius: 6px;
    white-space: normal;
    font-size: 1rem;
    line-height: 1.4;
}

/* GIGW 5.2.25 / WCAG 2.2.2 - play/pause for the auto-advancing banner (#bannerMotionToggle,
   js/banner-motion-toggle.js). Dead centre of the banner (department request 02-Dec-2026;
   was bottom-left). Percentages + translate(-50%,-50%) so it stays centred at any width or
   zoom; the arrows sit at the far left/right edges and the dots at the bottom, so nothing
   overlaps it. 44px = minimum touch target. White icon on
   the theme colour (~7.8:1, follows the active theme - GIGW_COMPLIANCE.md 4.2); the white
   ring keeps the button visible on dark photos. z-index 3 keeps it above the slide (the
   indicators use 2). */
#carousel .banner-motion-toggle {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    background-color: var(--nav-bg, #095a6f);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

#carousel .banner-motion-toggle:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px #000;
}

/* District with no banner yet (_BannerPartial renders .banner-empty instead of the carousel).
   On desktop the search bar floats at the top right of this area (position:absolute in
   _LayoutDistrictWebsite), so keep a row for it - otherwise it covers the first section
   header. At <=768px the search bar is position:relative and takes its own space, so the
   spacer is not needed there. */
.banner-empty {
    height: 68px;
}

@media (max-width: 768px) {
    .banner-empty {
        display: none;
    }
}
