.fhc-loop-role-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5em;
    margin: 0.7em 0 0;
}

.fhc-loop-role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    max-width: 100%;
    padding: 0.48em 0.82em;
    border: 1.5px solid #111 !important;
    border-radius: 999px;
    background: #fff !important;
    color: #111 !important;
    font-size: 0.66rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.13em;
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
    overflow-wrap: anywhere;
}

.fhc-loop-role-badge.office-team-role {
    border-color: #0a0a60 !important;
    background: #0a0a60 !important;
    color: #fff !important;
}


/* Override Salient text colour rules applied to nested card/link elements. */
.fhc-loop-role-badge *,
a .fhc-loop-role-badge:not(.office-team-role),
a:hover .fhc-loop-role-badge:not(.office-team-role) {
    color: #111 !important;
}

.fhc-loop-role-badge.office-team-role *,
a .fhc-loop-role-badge.office-team-role,
a:hover .fhc-loop-role-badge.office-team-role {
    color: #fff !important;
}

/* Prevent inherited Salient link styles from changing badge appearance. */
a .fhc-loop-role-badge,
a:hover .fhc-loop-role-badge {
    text-decoration: none;
}

@media (max-width: 520px) {
    .fhc-loop-role-badges {
        gap: 0.42em;
        margin-top: 0.6em;
    }

    .fhc-loop-role-badge {
        padding: 0.48em 0.72em;
        font-size: 0.62rem;
        letter-spacing: 0.1em;
    }
}
