.elementor-widget-topline_people_cards > .elementor-widget-container {
    width: 100%;
}

.tl-people {
    --tl-person-name: #0C2333;
    --tl-person-role: #5AA9AC;
    --tl-person-text: #3d4a57;
    --tl-person-credential: #8b95a1;
    --tl-person-card: #ffffff;
    --tl-person-accent: #5AA9AC;
    width: 100%;
}

.tl-people__heading {
    margin: 0 0 12px;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--tl-person-name);
    text-align: center;
}

.tl-people__intro {
    max-width: 42rem;
    margin: 0 auto 28px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--tl-person-text);
    text-align: center;
}

.tl-people__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.tl-person {
    display: flex;
    flex-direction: column;
    flex: 1 1 280px;
    width: 100%;
    max-width: 400px;
    background: var(--tl-person-card);
    border: 1px solid rgba(12, 35, 51, 0.08);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(12, 35, 51, 0.06);
    overflow: hidden;
}

/* Mortgage advisors sit on navy; the light card border reads as a white frame. */
.elementor-element-59fdc23 .tl-person {
    border: none;
    box-shadow: none;
}

.tl-people__grid[data-cols="2"] .tl-person {
    flex: 1 1 calc(50% - 24px);
    max-width: 440px;
}

.tl-people__grid[data-cols="3"] .tl-person {
    flex: 0 1 calc(33.333% - 24px);
    max-width: calc(33.333% - 16px);
}

.tl-people__grid[data-cols="4"] .tl-person {
    flex: 0 1 calc(25% - 24px);
    max-width: calc(25% - 18px);
}

.tl-person__photo {
    position: relative;
    aspect-ratio: 5 / 4;
    background: #e7eef2;
    overflow: hidden;
}

.tl-person__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
}

.tl-person__initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 42px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    background: linear-gradient(160deg, #0C2333 0%, #5AA9AC 100%);
}

.tl-person__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 22px 24px 24px;
    text-align: center;
}

.tl-person__name {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 28px !important;
    font-weight: 600 !important;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--tl-person-name);
}

.tl-person__role {
    margin: 8px 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.35;
    text-transform: uppercase;
    color: var(--tl-person-role);
}

.tl-person__contacts {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(12, 35, 51, 0.08);
}

.tl-person__link,
.tl-person__link:visited {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--tl-person-text) !important;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.tl-person__link:hover {
    color: var(--tl-person-accent) !important;
}

.tl-person__link:focus-visible {
    outline: 2px solid var(--tl-person-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.tl-person__icon {
    flex: 0 0 auto;
    color: var(--tl-person-accent);
}

.tl-person__credential {
    margin: 14px 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.4;
    color: var(--tl-person-credential);
}

@media (max-width: 1100px) {
    .tl-people__grid[data-cols="3"] .tl-person,
    .tl-people__grid[data-cols="4"] .tl-person {
        flex: 0 1 calc(50% - 24px);
        max-width: calc(50% - 12px);
    }
}

@media (max-width: 700px) {
    .tl-people__grid {
        gap: 16px;
    }

    .tl-people__grid[data-cols="2"] .tl-person,
    .tl-people__grid[data-cols="3"] .tl-person,
    .tl-people__grid[data-cols="4"] .tl-person,
    .tl-person {
        flex: 1 1 100%;
        max-width: 440px;
    }

    .tl-person {
        border-radius: 16px;
    }

    .tl-person__name {
        font-size: 24px !important;
    }

    .tl-person__body {
        padding: 18px 18px 20px;
    }
}
