/* Teams — About subpage */
body.bizdec-teams {
    min-height: 100vh;
    background: #ffffff;
}

.bizdec-teams-stage {
    grid-template-columns: minmax(0, 48%) minmax(0, 52%);
    min-height: calc(100dvh - 54px);
    overflow: hidden;
}

.bizdec-teams-visual {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: clamp(52px, 6vh, 80px) clamp(12px, 1.7vw, 30px) clamp(24px, 3vh, 40px) clamp(8px, 1vw, 18px);
    overflow: hidden;
    background: #ffffff;
}

.bizdec-teams-portrait {
    position: relative;
    width: 100%;
    max-width: 920px;
    margin: 0;
}

.bizdec-teams-portrait > img {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    object-fit: contain;
    user-select: none;
    pointer-events: none;
}

/*
 * The group artwork is already ordered exactly like expert DB / Teams:
 * 1–7 left-to-right on the first row, 8–14 left-to-right on the second.
 * A two-row/seven-column transparent interaction grid keeps the supplied
 * composition untouched while making each person clickable.
 */
.bizdec-team-hotspots {
    position: absolute;
    z-index: 3;
    inset: 0 0 17% 0;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: 38% 62%;
}

.bizdec-team-hotspot {
    position: relative;
    appearance: none;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.bizdec-team-hotspot::after {
    content: "";
    position: absolute;
    inset: 6px 5px;
    border: 1px solid transparent;
    background: transparent;
    pointer-events: none;
    transition: border-color 140ms ease, background-color 140ms ease;
}

.bizdec-team-hotspot::before {
    content: attr(data-label);
    position: absolute;
    z-index: 5;
    left: 50%;
    top: 10px;
    transform: translate(-50%, -4px);
    max-width: calc(100% - 10px);
    padding: 4px 7px;
    border: 1px solid rgba(6, 63, 91, 0.30);
    background: rgba(255, 255, 255, 0.95);
    color: var(--bizdec-text);
    font: 700 clamp(8px, 0.58vw, 10px)/1.15 Arial, Helvetica, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    pointer-events: none;
    transition: opacity 140ms ease, transform 140ms ease;
}

/* Keep the clickable map invisible. Parent-theme button states must never
 * paint a filled rectangle over the supplied group portrait. */
.bizdec-team-hotspot,
.bizdec-team-hotspot:hover,
.bizdec-team-hotspot:focus,
.bizdec-team-hotspot:focus-visible,
.bizdec-team-hotspot:active,
.bizdec-team-hotspot.is-active {
    border: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: transparent !important;
}

.bizdec-team-hotspot:hover::after,
.bizdec-team-hotspot:focus-visible::after {
    border-color: rgba(6, 63, 91, 0.26);
    background: transparent;
}

.bizdec-team-hotspot.is-active::after {
    border-color: rgba(6, 63, 91, 0.16);
    background: transparent;
}

.bizdec-team-hotspot:hover::before,
.bizdec-team-hotspot:focus-visible::before {
    opacity: 1;
    transform: translate(-50%, 0);
}

.bizdec-team-hotspot:focus-visible {
    outline: 2px solid rgba(6, 63, 91, 0.36);
    outline-offset: -2px;
}

.bizdec-teams-panel {
    grid-template-rows: 112px auto;
}

.bizdec-teams-content {
    padding-top: clamp(28px, 3.7vh, 42px);
    padding-bottom: clamp(36px, 4.4vh, 58px);
}

.bizdec-teams-copy {
    width: min(100%, 900px);
}

.bizdec-teams-copy .bizdec-about-subnav {
    margin-bottom: clamp(25px, 3vh, 34px);
}

.bizdec-about-subnav-item.is-active {
    border-color: var(--bizdec-primary);
    background: rgba(6, 63, 91, 0.055);
}

.bizdec-team-profile {
    max-width: 860px;
    transition: opacity 120ms ease, transform 120ms ease;
}

.bizdec-team-profile.is-switching {
    opacity: 0.35;
    transform: translateY(2px);
}

.bizdec-team-profile .bizdec-team-name,
.bizdec-team-profile .bizdec-team-title,
.bizdec-team-profile .bizdec-team-summary,
.bizdec-team-profile .bizdec-team-impact {
    max-width: 860px;
    font-size: clamp(12.5px, min(0.92vw, 1.85vh), 15.5px);
    line-height: 1.42;
}

.bizdec-team-profile .bizdec-team-name {
    margin-bottom: clamp(14px, 1.8vh, 18px);
    font-weight: 700;
}

.bizdec-team-profile .bizdec-team-title {
    margin-bottom: clamp(22px, 2.7vh, 30px);
}

.bizdec-team-profile .bizdec-team-summary,
.bizdec-team-profile .bizdec-team-impact {
    margin-bottom: clamp(18px, 2.3vh, 24px);
}

.bizdec-teams-logos {
    width: clamp(150px, 10.6vw, 190px);
    margin-top: clamp(26px, 3.4vh, 38px);
}

@media (max-width: 1180px) {
    .bizdec-teams-stage {
        grid-template-columns: minmax(0, 46%) minmax(0, 54%);
    }

    .bizdec-teams-visual {
        padding-left: 6px;
        padding-right: 12px;
    }
}

@media (max-width: 900px) {
    .bizdec-teams-stage {
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    .bizdec-teams-visual {
        order: 2;
        width: 100%;
        padding: 24px 16px 32px;
    }

    .bizdec-teams-panel {
        order: 1;
    }

    .bizdec-teams-portrait {
        max-width: 760px;
        margin: 0 auto;
    }

    .bizdec-team-hotspot::before {
        display: none;
    }

    .bizdec-teams-content {
        padding-top: 34px;
    }

    .bizdec-teams-logos {
        margin-left: 0;
        margin-right: auto;
    }
}

@media (max-width: 560px) {
    .bizdec-team-hotspots {
        inset-bottom: 16%;
    }

    .bizdec-team-hotspot::after {
        inset: 2px;
    }

    .bizdec-team-profile .bizdec-team-name,
    .bizdec-team-profile .bizdec-team-title,
    .bizdec-team-profile .bizdec-team-summary,
    .bizdec-team-profile .bizdec-team-impact {
        font-size: 13.5px;
        line-height: 1.48;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bizdec-team-hotspot::after,
    .bizdec-team-hotspot::before,
    .bizdec-team-profile {
        transition: none;
    }
}


/* v1.12.3 — keep team profile copy on the shared editorial body scale. */
.bizdec-team-profile .bizdec-team-name,
.bizdec-team-profile .bizdec-team-title,
.bizdec-team-profile .bizdec-team-summary,
.bizdec-team-profile .bizdec-team-impact {
    font-size: var(--bizdec-body-font-size);
    line-height: var(--bizdec-body-line-height);
}
