/* =====================================================================
   TEAM LOGO STRIP
   Colours come from the :root variables in style.css (--brand,
   --accent-cyan), which applySiteTheme() overrides per team.
   Replace the existing TEAM LOGO STRIP block with this.
   ===================================================================== */

.team-strip {
    position: relative;
    margin: 0 0 16px;
}

/* Horizontal scrolling track */
.team-strip-track {
    display: flex;
    gap: 14px;
    padding: 8px 4px 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.team-strip-track::-webkit-scrollbar {
    display: none;
}

.team-strip-track:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
    border-radius: 14px;
}


/* Team cards (no boxes: just logo + name) */
.team-card {
    position: relative;
    flex: 0 0 132px;
    height: 170px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;

    padding: 14px 10px;

    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: center;

    scroll-snap-align: start;

    background: none;
    border: none;
    box-shadow: none;
}

/* Underline accent, only shown for the selected team */
.team-card::before {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 40px;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 2px;

    background: linear-gradient(
        90deg,
        var(--brand),
        var(--accent-cyan)
    );

    opacity: 0;
    transition: opacity 0.25s ease;
}

.team-card.selected::before {
    opacity: 1;
}

/* Logo */
.team-card img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;

    /* Grow upward so the logo doesn't cover the name */
    transform-origin: center bottom;
    transition: transform 0.25s ease;
}

/* Team name under the logo */
.team-card span {
    max-width: 100%;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.01em;
    color: #b9c7d6;               /* default name color */

    /* Long names wrap to 2 lines, then ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;

    transition: color 0.25s ease;
}

/* Hover: logo grows, name takes the accent colour */
.team-card:hover img {
    transform: scale(1.60);
}

.team-card:hover span {
    color: var(--accent-cyan);
}

/* Pressed and selected: logo grows a bit, name takes the brand colour */
.team-card:active img,
.team-card.selected img {
    transform: scale(1.75);
}

.team-card:active span,
.team-card.selected span {
    color: var(--brand);
}


/* Keyboard accessibility */
.team-card:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 3px;
}

/* Left / right arrows */
.team-strip-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;

    display: grid;
    place-items: center;

    width: 36px;
    height: 36px;
    padding: 0;

    background: #102641;
    border: 1px solid #315473;
    border-radius: 50%;

    color: #ffffff;
    font-size: 21px;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.team-strip-btn.prev {
    left: -7px;
}

.team-strip-btn.next {
    right: -7px;
}

.team-strip-btn:hover:not(:disabled) {
    background: var(--brand);
    border-color: var(--brand);
    transform: translateY(-50%) scale(1.08);
}

.team-strip-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.team-strip-btn:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

/* Smaller screens */
@media (max-width: 768px) {
    .team-strip-track {
        gap: 10px;
    }

    .team-card {
        flex-basis: 112px;
        height: 145px;
        gap: 10px;
    }

    .team-card img {
        width: 72px;
        height: 72px;
    }

    .team-card span {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-card::before,
    .team-card img,
    .team-card span,
    .team-strip-btn {
        transition: none;
    }
}