/* ==========================================================================
   Team Page Styles
   ========================================================================== */

.team-page {
    --team-primary: #1f4d3a;
    --team-primary-light: #2f6b50;
    --team-accent: #d98e04;
    --team-bg: #f7f8f6;
    --team-card-bg: #ffffff;
    --team-border: #e2e5e0;
    --team-text: #26302b;
    --team-text-muted: #667069;
    --team-radius: 10px;

    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--team-text);
    background: var(--team-bg);
    font-size: 30px;
    line-height: 1.6;
}

/* ---- Hero ---- */
.team-hero {
    text-align: center;
    margin-bottom: 48px;
}

.team-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--team-primary);
    margin: 0 0 10px;
    letter-spacing: 0.3px;
}

.team-hero__subtitle {
    font-size: 1.25rem;
    color: var(--team-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin: 0;
}

/* ---- Section headings ---- */
.team-section {
    margin-bottom: 56px;
}

.team-section__title {
    font-size: 1.85rem;
    color: var(--team-primary);
    border-bottom: 3px solid var(--team-accent);
    display: inline-block;
    padding-bottom: 8px;
    margin: 0 0 24px;
}

.team-nodal-lab {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--team-text);
    margin: -12px 0 24px;
}

.wp-legend {
    font-size: 1.15rem;
    color: var(--team-text-muted);
    margin: -12px 0 24px;
}

.wp-legend__example {
    font-family: "Courier New", monospace;
    background: #eef2ee;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--team-primary);
}

/* ---- Leadership cards ---- */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.leadership-card {
    background: var(--team-card-bg);
    border: 1px solid var(--team-border);
    border-top: 4px solid var(--team-primary);
    border-radius: var(--team-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.leadership-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.leadership-card__role {
    font-size: 1.5rem;
    text-decoration: underline 2px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--team-accent);
}

.leadership-card__name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--team-text);
}

.leadership-card__meta {
    font-size: 1.25rem;
    color: var(--team-text-muted);
}

/* ---- Participating labs chip grid ---- */
.lab-chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.lab-chip {
    background: var(--team-card-bg);
    border: 1px solid var(--team-border);
    border-radius: var(--team-radius);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lab-chip__code {
    font-weight: 700;
    color: var(--team-primary-light);
    font-size: 1.5rem;
}

.lab-chip__name {
    font-size: 1.5rem;
    color: black;
}

/* ---- Lab detail blocks / tables ---- */
.lab-block {
    background: var(--team-card-bg);
    border: 1px solid var(--team-border);
    border-radius: var(--team-radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.lab-block__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--team-primary);
    margin: 0 0 18px;
}

.table-wrap {
    overflow-x: auto;
}

.wp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 1.5rem;
}

.wp-table thead th {
    text-align: left;
    background: var(--team-primary);
    color: #fff;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 1.5rem;
    white-space: nowrap;
}

.wp-code__v,
.wp-code__wp {
    display: inline-block;
}

.wp-code__sep {
    margin: 0 3px;
    color: var(--team-text-muted);
}

.wp-table thead th:first-child {
    border-top-left-radius: 6px;
}

.wp-table thead th:last-child {
    border-top-right-radius: 6px;
}

.wp-table tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--team-border);
    vertical-align: top;
}

.wp-table tbody tr:last-child td {
    border-bottom: none;
}

.wp-table tbody tr:nth-child(even) {
    background: #fafbf9;
}

.wp-table tbody tr:hover {
    background: #f0f4f0;
}

.wp-table td[data-label="WP"] {
    font-weight: 700;
    color: var(--team-accent);
    white-space: nowrap;
}

/* ---- Responsive: stack table cells on small screens ---- */
@media (max-width: 640px) {
    .team-page {
        font-size: 17px;
    }

    .team-hero h1 {
        font-size: 2.2rem;
    }

    .wp-table thead {
        display: none;
    }

    .wp-table,
    .wp-table tbody,
    .wp-table tr,
    .wp-table td {
        display: block;
        width: 100%;
    }

    .wp-table tr {
        border: 1px solid var(--team-border);
        border-radius: 8px;
        margin-bottom: 12px;
        padding: 10px 4px;
    }

    .wp-table td {
        border-bottom: none;
        padding: 6px 14px;
    }

    .wp-table td::before {
        content: attr(data-label) ": ";
        font-weight: 700;
        color: var(--team-primary);
        display: block;
        font-size: 1.3rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 3px;
    }
}
