.fcm-coaches {
    container-type: inline-size;
    margin: 0;
    padding: 0;
    max-width: none;
    font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    box-sizing: border-box;
}

.fcm-coaches *,
.fcm-coaches *::before,
.fcm-coaches *::after {
    box-sizing: border-box;
}

/* Fixed 5-column grid: always reserves room for a manager + three assistants.
   Manager spans 2 columns (40%), each assistant 1 column (20%), packed left.
   With fewer assistants the cards DO NOT expand — the empty assistant slots are
   left blank on the right. Card height is capped so the cards stay a compact
   banner; everything scales to the section width (cqw). */
.fcm-coaches__row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1%;
    align-items: stretch;
    margin: 0;
    padding: 0;
}

.fcm-coaches__card {
    grid-column: span 1;
    min-width: 0;
    height: clamp(150px, 18cqw, 186px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 16px;
    outline: 2px solid rgba(255,255,255,.92);
    outline-offset: 0; /* flush to the card so the 1% gap shows between cards */
    box-shadow: 0 7px 18px rgba(0,0,0,.20);
}

.fcm-coaches__card.is-manager {
    grid-column: span 2;
}

/* assistant content area: fills the card above the role band, centred */
.fcm-coaches__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: 10px 8px;
}

/* manager content area: horizontal, fills the card above the role band */
.fcm-coaches__manager-main {
    flex: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(12px, 2.2cqw, 24px);
    width: 100%;
    min-width: 0;
    padding: 0 clamp(16px, 2.6cqw, 28px);
}

.fcm-coaches__manager-text {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.fcm-coaches__photo {
    border: 2px solid #1F3094;
    border-radius: 50%;
    overflow: hidden;
    background: #EAEDF5;
    flex: 0 0 auto;
}

.fcm-coaches__body .fcm-coaches__photo {
    width: clamp(54px, 7cqw, 82px);
    aspect-ratio: 1 / 1;
    margin: 0 0 7px;
}

.fcm-coaches__card.is-manager .fcm-coaches__photo {
    width: clamp(72px, 10cqw, 115px); /* manager photo ~25% larger; card size unchanged */
    aspect-ratio: 1 / 1;
    border-width: 3px;
}

.fcm-coaches__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fcm-coaches__silhouette {
    width: 100%;
    height: 100%;
    background: #EAEDF5;
    color: #16224F;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.fcm-coaches__silhouette svg {
    width: 72%;
    height: 82%;
    display: block;
}

.fcm-coaches__first {
    max-width: 100%;
    margin: 0;
    padding: 0 3px;
    color: #5A6385;
    font-size: clamp(10px, 1.4cqw, 13px);
    font-weight: 500;
    line-height: 1.15;
    text-align: center;
    text-transform: capitalize;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fcm-coaches__last {
    max-width: 100%;
    margin: 0;
    padding: 0 3px;
    color: #1F3094;
    font-size: clamp(13px, 2cqw, 19px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.02em;
    text-align: center;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.fcm-coaches__card.is-manager .fcm-coaches__first,
.fcm-coaches__card.is-manager .fcm-coaches__last {
    padding-left: 0;
    padding-right: 0;
    text-align: left;
}

.fcm-coaches__card.is-manager .fcm-coaches__first {
    font-size: clamp(13px, 1.8cqw, 17px);
}

.fcm-coaches__card.is-manager .fcm-coaches__last {
    font-size: clamp(17px, 2.7cqw, 26px);
    line-height: 1;
    white-space: normal;
    overflow-wrap: anywhere;
}

.fcm-coaches__contacts {
    display: flex;
    gap: clamp(12px, 1.8cqw, 20px);
    align-items: center;
    justify-content: flex-start;
    margin: 7px 0 0;
}

.fcm-coaches__contacts a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1F3094 !important;
    text-decoration: none;
    box-shadow: none;
}

.fcm-coaches__contacts a:hover,
.fcm-coaches__contacts a:focus {
    color: #F26122 !important;
}

.fcm-coaches__contacts svg {
    width: clamp(17px, 2.2cqw, 21px);
    height: auto;
    display: block;
    color: currentColor !important;
    fill: currentColor !important;
}

.fcm-coaches__contacts svg path,
.fcm-coaches__contacts svg circle {
    fill: currentColor !important;
}

/* role band: normal flow, sits along the bottom. Same fixed size on every card,
   flex-centred so the label is dead-centre and all bands match. */
.fcm-coaches__role {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 32px;
    margin: 0;
    padding: 7px 8px;
    background: #F26122;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .05em;
    text-align: center;
    text-transform: uppercase;
}

.fcm-coaches__role.is-manager {
    background: #1F3094;
}

.fcm-coaches__empty {
    color: rgba(255,255,255,.78);
    font-size: 14px;
    font-weight: 600;
    padding: 0;
}

/* Narrow sections: drop the fixed 5-column grid so the cards aren't crushed.
   Manager spans the full width, assistants share a row of up to three. */
@container (max-width: 420px) {
    .fcm-coaches__row {
        grid-template-columns: repeat(3, 1fr);
    }
    .fcm-coaches__card.is-manager {
        grid-column: 1 / -1;
        height: auto;
        min-height: 120px;
    }
    .fcm-coaches__card {
        height: clamp(130px, 40cqw, 170px);
    }
}
