/* ============================================
   VEZILKA — Team page
   Append to assets/css/main.css, or enqueue
   separately. Uses the theme's existing design
   tokens (--color-*, --radius-*, --shadow-*).
   ============================================ */
section {
    padding: 0 0 clamp(64px, 9vw, 120px) 0 !important;
}

/* ---------- Intro ---------- */

.team-intro__head {
    max-width: 100%;
}

.team-intro__head .section-head__title {
    margin-bottom: 24px;
}

.team-intro__lead {
    color: var(--color-muted);
    font-size: 18px;
    line-height: 1.75;
}

.team-intro__lead p {
    margin: 0 0 1em;
}

.team-intro__lead p:last-child {
    margin-bottom: 0;
}

/* ---------- Highlights ---------- */
.team-highlights {
    list-style: none;
    margin: 48px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.team-highlight {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 28px 30px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: var(--transition);
}

.team-highlight:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.team-highlight__stat {
    font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-red);
    letter-spacing: -0.02em;
}

.team-highlight__text {
    color: var(--color-text);
    font-size: 16px;
    line-height: 1.55;
}

/* ---------- Leadership ---------- */
.team-leaders {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.leader-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.leader-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.leader-card__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-bg-alt);
}

.leader-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.leader-card:hover .leader-card__media img {
    transform: scale(1.04);
}

.leader-card__body {
    padding: 26px 26px 30px;
}

.leader-card__name {
    font-size: 1.25rem;
    margin: 0 0 6px;
}

.leader-card__role {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-red);
    margin: 0 0 14px;
}

.leader-card__bio {
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
}

/* ---------- Work packages (table) ---------- */
.team-wp__table {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
}

.team-wp__row {
    display: grid;
	    text-align: center;
    grid-template-columns: 100px 1fr 1fr;
    align-items: center;
    gap: 20px;
    padding: 20px 28px;
    border-bottom: 1px solid var(--color-border);
}

.team-wp__row:last-child {
    border-bottom: 0;
}

.team-wp__row:not(.team-wp__row--head):hover {
    background: var(--color-bg-alt);
}

.team-wp__row--head {
    background: var(--color-text);
}

.team-wp__row--head .team-wp__cell {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
    font-weight: 600;
}

.team-wp__cell {
    font-size: 16px;
}

.team-wp__cell--code {
    font-weight: 700;
    color: var(--color-red);
}

.team-wp__row--head .team-wp__cell--code {
    color: var(--color-yellow);
}

.team-wp__cell--name {
    font-weight: 600;
    color: var(--color-text);
}

.team-wp__cell--lead {
    color: var(--color-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .team-leaders {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

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

    .team-wp__row {
        grid-template-columns: 64px 1fr;
        row-gap: 6px;
        padding: 18px 20px;
    }

    /* leader column drops below the name on small screens */
    .team-wp__cell--lead {
        grid-column: 2 / 3;
        font-size: 14px;
    }

    .team-wp__row--head .team-wp__cell--lead {
        display: none;
    }
}