/* Team hub. Adapted from the supplied standalone layout to the theme variables. */

.post-type-archive-specialist .site-main {
    min-width: 0;
    background: var(--color-bg-soft);
}

.team-page,
.team-page *,
.team-hub-cta,
.team-hub-cta * {
    min-width: 0;
}

.team-page {
    padding: clamp(54px, 6vw, 82px) 0 clamp(58px, 7vw, 94px);
    overflow: hidden;
    color: var(--color-text);
    background:
        radial-gradient(circle at 86% 8%, rgba(8, 118, 133, 0.08), transparent 34%),
        linear-gradient(180deg, var(--color-bg-soft) 0%, #f8fbfd 100%);
    font-family: var(--font-main);
}

.team-page__container {
    display: grid;
    gap: 28px;
}

.team-page__header {
    max-width: 780px;
}

.team-page__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-bottom: 12px;
    color: var(--color-accent);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.team-page__eyebrow::before {
    display: inline-block;
    width: 18px;
    height: 2px;
    flex: 0 0 auto;
    background: currentColor;
    border-radius: 999px;
    content: "";
}

.team-page__title {
    margin: 0 0 14px;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: clamp(36px, 4vw, 58px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.team-page__lead {
    max-width: 720px;
    margin: 0;
    color: var(--color-muted);
    font-size: clamp(16px, 1.4vw, 18px);
    font-weight: 500;
    line-height: 1.65;
}

.team-page__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0 4px;
}

.team-page__filter {
    min-height: 40px;
    padding: 9px 17px;
    color: var(--color-muted);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.team-page__filter:hover {
    color: var(--color-text);
    border-color: rgba(8, 118, 133, 0.45);
    transform: translateY(-1px);
}

.team-page__filter--active {
    color: #fff;
    background: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 10px 22px rgba(8, 118, 133, 0.18);
}

.team-page__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.team-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(16, 32, 51, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.team-card:hover {
    border-color: rgba(8, 118, 133, 0.36);
    box-shadow: 0 18px 42px rgba(16, 32, 51, 0.11);
    transform: translateY(-3px);
}

.team-card.is-hidden {
    display: none;
}

.team-card__photo {
    position: relative;
    display: block;
    aspect-ratio: 1 / 0.9;
    overflow: hidden;
    background: linear-gradient(135deg, #eaf3fb 0%, #d9eaf6 100%);
}

.team-card__photo::after {
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(23, 41, 58, 0), rgba(23, 41, 58, 0.28));
    content: "";
}

.team-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.team-card:hover .team-card__photo img {
    transform: scale(1.035);
}

.team-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 850;
    letter-spacing: -0.06em;
}

.team-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 7px;
    padding: 16px 16px 18px;
}

.team-card__name {
    margin: 0;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.team-card__name a:hover,
.team-card__name a:focus-visible {
    color: var(--color-accent);
}

.team-card__role {
    min-height: 40px;
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.team-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 3px;
}

.team-card__tag {
    padding: 5px 10px;
    color: var(--color-accent);
    background: rgba(8, 118, 133, 0.09);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
}

.team-page__empty {
    margin: 0;
    padding: 30px;
    color: var(--color-muted);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
}

.team-hub-cta {
    padding: clamp(6px, 1vw, 16px) 0 clamp(58px, 7vw, 94px);
    background: #fff;
}

.team-hub-cta__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: clamp(28px, 4vw, 42px);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 86% 0%, rgba(8, 118, 133, 0.4), transparent 34%),
        linear-gradient(135deg, var(--color-primary) 0%, #0c1b29 100%);
    border-radius: 20px;
    box-shadow: 0 22px 44px rgba(17, 33, 47, 0.18);
}

.team-hub-cta__eyebrow {
    color: #9ceaf1;
}

.team-hub-cta__content h2 {
    max-width: 720px;
    margin: 0 0 10px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: clamp(25px, 2.4vw, 34px);
    font-weight: 850;
    line-height: 1.15;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.team-hub-cta__content p {
    max-width: 740px;
    margin: 0;
    color: rgba(239, 249, 252, 0.8);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
}

.team-hub-cta__button {
    min-width: 180px;
    white-space: nowrap;
}

@supports (content-visibility: auto) {
    .team-page__grid,
    .team-hub-cta {
        content-visibility: auto;
        contain-intrinsic-size: auto 800px;
    }
}

@media (max-width: 1180px) {
    .team-page__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .team-hub-cta__inner {
        grid-template-columns: 1fr;
        justify-items: start;
    }
}

@media (max-width: 760px) {
    .team-page {
        padding: 48px 0 62px;
    }

    .team-page__container {
        gap: 22px;
    }

    .team-page__title {
        letter-spacing: -0.035em;
    }

    .team-page__filters {
        flex-wrap: nowrap;
        margin-right: -15px;
        padding-right: 15px;
        padding-bottom: 5px;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scrollbar-width: none;
    }

    .team-page__filters::-webkit-scrollbar {
        display: none;
    }

    .team-page__filter {
        flex: 0 0 auto;
    }

    .team-page__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .team-card {
        border-radius: 14px;
    }

    .team-card__body {
        padding: 12px 12px 14px;
    }

    .team-card__name {
        font-size: 15px;
    }

    .team-card__role {
        min-height: 34px;
        font-size: 12px;
    }

    .team-card__tag {
        font-size: 11px;
    }

    .team-hub-cta {
        padding: 0 0 62px;
    }

    .team-hub-cta__inner {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .team-hub-cta__button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .team-page__grid {
        grid-template-columns: 1fr;
    }

    .team-card__photo {
        aspect-ratio: 16 / 11;
    }
}
