/* ==========================================================================
   Motomarine v3 · Team
   .cs-team = member card (square photo, name, role, optional contact rows)
   used in the 4-up grid and the 3-up row. Cards drop the border for a
   shadow on .bg-lighter; --dark = dark card recipe.
   ========================================================================== */

/* --- Member card --- */
.cs-team {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--white);
    transition: box-shadow .2s;
}
.cs-team:hover {
    box-shadow: var(--shadow);
}
.cs-team__photo {
    overflow: hidden;
}
.cs-team__photo img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform .6s ease;
}
.cs-team:hover .cs-team__photo img {
    transform: scale(1.04);
}
.cs-team__body {
    padding: 20px 22px 22px;
}
.cs-team__body h3 {
    margin-bottom: 3px;
}
.cs-team__role {
    display: block;
    font-size: 14px;
    color: var(--muted);
}
.cs-team__contact {
    margin: 16px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid var(--border);
    list-style: none;
}
.cs-team__contact li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.cs-team__contact li + li {
    margin-top: 8px;
}
.cs-team__contact i {
    display: flex;
    flex: 0 0 auto;
    line-height: 1;
    font-size: 15px;
    color: var(--primary);
}
.cs-team__contact a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--heading);
    text-decoration: none;
    transition: color .2s;
}
.cs-team__contact a:hover {
    color: var(--primary);
}
.bg-lighter .cs-team {
    border: 0;
    box-shadow: var(--shadow);
}
.bg-lighter .cs-team:hover {
    box-shadow: var(--shadow-lg);
}
.cs-team--dark {
    border-color: rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
}
.cs-team--dark:hover {
    background: rgba(255, 255, 255, .08);
    box-shadow: none;
}
.cs-team--dark .cs-team__body h3 {
    color: var(--white);
}
.cs-team--dark .cs-team__role {
    color: rgba(255, 255, 255, .55);
}
.cs-team--dark .cs-team__contact {
    border-top-color: rgba(255, 255, 255, .12);
}
.cs-team--dark .cs-team__contact a {
    color: rgba(255, 255, 255, .85);
}

/* --- Responsive --- */
@media (max-width: 575px) {
    .cs-team__body {
        padding: 14px 14px 16px;
    }
    .cs-team__body h3 {
        font-size: .9375rem;
    }
    .cs-team__role {
        font-size: 13px;
    }
    .cs-team__contact {
        margin-top: 12px;
        padding-top: 12px;
    }
    .cs-team__contact li {
        font-size: 13px;
    }
}


/* ==========================================================================
   v5 · Modern team (.cs-team--modern on the team row)
   Overlay cards: name and role sit on the portrait over a navy fade, the
   role in small red capitals. Cards are not links, so they do not react
   to the pointer.
   ========================================================================== */
.cs-team--modern .cs-team,
.cs-team--modern .cs-team:hover {
    position: relative;
    border: 0;
    background: var(--heading);
    box-shadow: none;
}
.cs-team--modern .cs-team__photo {
    position: relative;
}
.cs-team--modern .cs-team__photo img {
    aspect-ratio: 4 / 5;
}
.cs-team--modern .cs-team__photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 43, .92) 0%, rgba(15, 23, 43, .45) 32%, rgba(15, 23, 43, 0) 60%);
    pointer-events: none;
}
.cs-team--modern .cs-team:hover .cs-team__photo img {
    transform: none;
}
.cs-team--modern .cs-team__body {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    padding: 22px 22px 20px;
}
.cs-team--modern .cs-team__body h3 {
    margin-bottom: 6px;
    color: var(--white);
}
.cs-team--modern .cs-team__role {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--primary-on-dark);
}
@media (max-width: 575px) {
    .cs-team--modern .cs-team__body {
        padding: 14px 14px 12px;
    }
    .cs-team--modern .cs-team__body h3 {
        font-size: 15px;
    }
    .cs-team--modern .cs-team__role {
        font-size: 10px;
        letter-spacing: 1px;
    }
}
