
/* Equipe compacta com modal v1.5.7 */
.team-compact-section {
    padding-top: 82px;
    padding-bottom: 88px;
}

.team-compact-intro {
    margin-bottom: 34px;
}

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

.team-card {
    appearance: none;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,.06);
    color: #fff;
    display: grid;
    grid-template-columns: 180px 1fr;
    min-height: 230px;
    padding: 0;
    text-align: left;
    cursor: pointer;
    transition: transform .22s ease, background .22s ease, border-color .22s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,.09);
    border-color: rgba(142,242,154,.45);
}

.team-card-photo {
    min-height: 230px;
    overflow: hidden;
    background: rgba(255,255,255,.08);
}

.team-card-photo img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
    object-position: center top;
}

.team-card-fallback {
    width: 100%;
    height: 100%;
    min-height: 230px;
    display: grid;
    place-items: center;
    font-family: var(--serif);
    font-size: 72px;
    color: #8ef29a;
}

.team-card-info {
    padding: 30px;
    align-self: center;
}

.team-card-info > span,
.team-modal-content > span {
    display: block;
    color: #8ef29a;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 800;
}

.team-card-info h3 {
    font-family: var(--serif);
    font-size: 34px;
    line-height: 1.05;
    margin: 10px 0 18px;
}

.team-card-info small {
    color: rgba(255,255,255,.72);
    font-weight: 700;
}

.team-modal[hidden] {
    display: none;
}

.team-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
}

.team-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2,20,12,.72);
    backdrop-filter: blur(5px);
}

.team-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    max-height: min(86vh, 760px);
    overflow: auto;
    display: grid;
    grid-template-columns: 320px 1fr;
    background: #fff;
    color: var(--ink);
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(0,0,0,.28);
}

.team-modal-photo {
    min-height: 520px;
    background: #edf4ee;
}

.team-modal-photo img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
    object-position: center top;
}

.team-modal-content {
    padding: 52px 48px;
}

.team-modal-content h3 {
    font-family: var(--serif);
    font-size: 46px;
    line-height: 1.05;
    margin: 12px 0 24px;
}

.team-modal-bio {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.72;
}

.team-modal-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.team-modal-links a {
    color: var(--green);
    font-weight: 800;
}

.team-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(7,84,47,.09);
    color: var(--green);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

body.team-modal-open {
    overflow: hidden;
}

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

    .team-modal-dialog {
        grid-template-columns: 260px 1fr;
    }
}

@media (max-width: 650px) {
    .team-card {
        grid-template-columns: 120px 1fr;
        min-height: 170px;
    }

    .team-card-photo,
    .team-card-photo img,
    .team-card-fallback {
        min-height: 170px;
    }

    .team-card-info {
        padding: 20px;
    }

    .team-card-info h3 {
        font-size: 27px;
    }

    .team-modal-dialog {
        grid-template-columns: 1fr;
    }

    .team-modal-photo,
    .team-modal-photo img {
        min-height: 280px;
        height: 280px;
    }

    .team-modal-content {
        padding: 34px 26px;
    }

    .team-modal-content h3 {
        font-size: 36px;
    }
}
