/* Scoped to /our-teams */
html:has(.teams-page),
body:has(.teams-page) {
    overflow-x: hidden;
}

.teams-page {
    overflow-x: hidden;
    color: #0a0933;
}

.teams-page .container-fluid {
    width: 100%;
    max-width: none;
    padding-left: clamp(12px, 3vw, 48px);
    padding-right: clamp(12px, 3vw, 48px);
}

.teams-page img {
    max-width: 100%;
    height: auto;
}

.teams-page a:focus-visible,
.teams-page button:focus-visible {
    outline: 3px solid #00B4D8;
    outline-offset: 2px;
}

.teams-page .tm-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0933 0%, #023e8a 55%, #00B4D8 100%);
    color: #fff;
    padding: 3rem 0 4rem;
}

.teams-page .tm-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.18);
    pointer-events: none;
}

.teams-page .tm-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .teams-page .tm-hero-grid {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    }
}

.teams-page .tm-hero-visual {
    display: none;
    justify-content: center;
}

@media (min-width: 992px) {
    .teams-page .tm-hero-visual {
        display: flex;
    }
}

.teams-page .tm-hero-visual img {
    width: min(100%, 420px);
    filter: drop-shadow(0 16px 32px rgba(10, 9, 51, 0.25));
}

.teams-page .tm-breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.teams-page .tm-breadcrumb a {
    color: #d4af37;
}

.teams-page .tm-breadcrumb .active,
.teams-page .tm-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}

.teams-page .tm-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #fff;
}

.teams-page .tm-hero .lead {
    max-width: 42rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0;
}

.teams-page .tm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.teams-page .tm-actions--center {
    justify-content: center;
}

.teams-page .tm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1.4rem;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    background: #d4af37;
    color: #0a0933;
    border: 0;
}

.teams-page .tm-btn:hover,
.teams-page .tm-btn:focus {
    background: #00B4D8;
    color: #fff;
    text-decoration: none;
}

.teams-page .tm-btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.teams-page .tm-btn-ghost:hover,
.teams-page .tm-btn-ghost:focus {
    background: #fff;
    color: #0a0933;
}

.teams-page .tm-btn-outline {
    background: transparent;
    color: #0a0933;
    border: 1px solid #00B4D8;
}

.teams-page .tm-btn-outline:hover,
.teams-page .tm-btn-outline:focus {
    background: #0a0933;
    color: #fff;
    border-color: #0a0933;
}

.teams-page .tm-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-top: 1.75rem;
}

.teams-page .tm-stat strong {
    display: block;
    font-size: 1.6rem;
    color: #d4af37;
}

.teams-page .tm-stat span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.teams-page .tm-section {
    padding: 2.5rem 0 3rem;
    background: #f6f8fb;
}

.teams-page .tm-section--white {
    background: #fff;
}

.teams-page .tm-section h2 {
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: #0a0933;
}

.teams-page .tm-intro {
    color: #445;
    max-width: 46rem;
    margin-bottom: 1.5rem;
}

.teams-page .tm-work-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .teams-page .tm-work-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.teams-page .tm-work {
    min-width: 0;
    background: #f6f8fb;
    border-radius: 14px;
    padding: 1.35rem;
}

.teams-page .tm-work-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0, 180, 216, 0.15);
    color: #023e8a;
    margin-bottom: 0.75rem;
}

.teams-page .tm-work h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.teams-page .tm-work p {
    margin: 0;
    color: #445;
}

.teams-page .tm-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.teams-page .tm-chip {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #cfd8e3;
    color: #0a0933;
    font-weight: 600;
    text-decoration: none;
}

.teams-page .tm-chip:hover,
.teams-page .tm-chip:focus {
    border-color: #00B4D8;
    color: #023e8a;
    text-decoration: none;
}

.teams-page .tm-group {
    margin-bottom: 2rem;
}

.teams-page .tm-group h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    scroll-margin-top: 6rem;
}

.teams-page .tm-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.15rem;
}

@media (min-width: 576px) {
    .teams-page .tm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .teams-page .tm-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .teams-page .tm-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.teams-page .tm-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1px solid rgba(10, 9, 51, 0.08);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    text-align: center;
    box-shadow: 0 8px 24px rgba(10, 9, 51, 0.06);
}

.teams-page .tm-card:hover {
    box-shadow: 0 14px 32px rgba(10, 9, 51, 0.1);
}

.teams-page .tm-photo {
    width: 120px;
    height: 120px;
    max-width: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    display: block;
    background: #f4f7fb;
    border: 3px solid rgba(0, 180, 216, 0.25);
}

.teams-page .tm-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    overflow-wrap: anywhere;
}

.teams-page .tm-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.teams-page .tm-meta:empty {
    display: none;
}

.teams-page .tm-meta li {
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(0, 180, 216, 0.12);
    color: #023e8a;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
}

.teams-page .tm-card .tm-btn {
    margin-top: auto;
}

.teams-page .tm-profile-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .teams-page .tm-profile-hero {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 1.75rem;
    }
}

.teams-page .tm-profile-photo {
    width: 160px;
    height: 160px;
    max-width: 160px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 4px solid rgba(255, 255, 255, 0.35);
}

.teams-page .tm-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin: 0;
}

@media (min-width: 768px) {
    .teams-page .tm-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.teams-page .tm-facts > div {
    min-width: 0;
    background: #f6f8fb;
    border-radius: 12px;
    padding: 1rem 1.1rem;
}

.teams-page .tm-facts dt {
    font-size: 0.8rem;
    font-weight: 700;
    color: #667;
    margin-bottom: 0.25rem;
}

.teams-page .tm-facts dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.teams-page .tm-facts a {
    color: #023e8a;
}

.teams-page .tm-empty {
    background: #fff;
    border-radius: 14px;
    padding: 2.25rem 1.25rem;
    text-align: center;
    color: #445;
    box-shadow: 0 8px 24px rgba(10, 9, 51, 0.05);
}

.teams-page .tm-cta {
    background: #0a0933;
    color: #fff;
    padding: 3rem 0;
}

.teams-page .tm-cta h2 {
    font-size: clamp(1.3rem, 2.5vw, 1.85rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.6rem;
}

.teams-page .tm-cta p {
    max-width: 40rem;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 0;
}

@media (max-width: 575.98px) {
    .teams-page .tm-hero,
    .teams-page .tm-section,
    .teams-page .tm-cta {
        padding: 2.15rem 0;
    }

    .teams-page .tm-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
