/**
 * Team Single Page Styles
 */

/* Hero */
.team-single-hero {
    position: relative;
    min-height: 280px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
}

.team-single-hero-overlay {
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    padding: 3rem 1.5rem 2rem;
    text-align: center;
}

.team-single-hero .team-single-title {
    color: #fff;
    margin: 0 0 0.5rem;
    font-size: 2.5rem;
}

.team-single-hero .team-single-count {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 1rem;
}

/* Header (no hero) */
.team-single-header {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.team-single-header .team-single-title {
    margin: 0 0 0.5rem;
    font-size: 2.25rem;
    color: var(--base-900, #171717);
}

.team-single-header .team-single-count {
    margin: 0;
    color: var(--base-500, #737373);
}

/* Content Grid */
.team-single-content {
    max-width: 1200px;
    margin: 0 auto;
}

.team-single--tabs .team-single-content {
    padding-top: 0;
    padding-bottom: 3rem;
}

.team-single-tabs {
    width: fit-content;
    max-width: 100%;
    margin: 0 0 2rem;
}

.team-single-tab-panels,
.team-single-panel {
    min-width: 0;
}

.team-single-panel {
    color: var(--base-700);
}

.team-single-panel > h2 {
    margin: 0 0 1.5rem;
    color: var(--base-900);
    font-size: 1.5rem;
    line-height: 1.25;
}

.team-single-panel a:not(.team-member-card) {
    color: var(--primary-700);
}

.team-single-panel a:not(.team-member-card):hover {
    color: var(--primary-600);
}

.team-single-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

@media (max-width: 768px) {
    .team-single-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Main */
.team-single-main {
    min-width: 0;
}

.team-single-description {
    margin-bottom: 2rem;
}

/* Positions */
.team-positions {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.team-position-title {
    margin: 0 0 1rem;
    font-size: 1.125rem;
    color: var(--base-700, #404040);
    font-weight: 600;
}

.team-position-members {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    column-gap: 1.5rem;
    row-gap: 2.5rem;
}

.team-member-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
}

.team-member-photo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 240px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    margin-bottom: 0.75rem;
    overflow: hidden;
    background: var(--base-200);
}

.team-member-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
}

.team-member-placeholder {
    background: var(--base-200);
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--base-500);
}

.team-member-name {
    font-size: var(--text-lg);
    font-weight: 500;
    color: var(--base-900);
    line-height: 1.3;
}

.team-member-position {
    color: var(--base-600);
    font-size: var(--text-sm);
    line-height: 1.4;
}

.team-leader-badge {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    background: var(--base-100);
    color: var(--primary-700);
    font-size: var(--text-xs);
    font-weight: 700;
    line-height: 1.25;
}

@media (max-width: 1023px) {
    .team-position-members {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
        column-gap: 1.5rem;
        row-gap: 2rem;
    }
}

@media (max-width: 640px) {
    .team-position-members {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .team-member-card {
        display: grid;
        grid-template-columns: minmax(0, 6rem) minmax(0, 1fr);
        column-gap: 1rem;
        align-items: center;
        text-align: left;
    }

    .team-member-photo-wrap {
        grid-column: 1;
        grid-row: 1 / span 3;
        max-width: 6rem;
        margin-bottom: 0;
    }

    .team-member-photo {
        width: 6rem;
        height: 6rem;
    }

    .team-member-name,
    .team-member-position,
    .team-leader-badge {
        grid-column: 2;
    }

    .team-member-name {
        text-align: left;
    }

    .team-leader-badge {
        width: fit-content;
    }
}

/* Sidebar */
.team-single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.team-info-card {
    background: var(--base-50, #fafafa);
    border: 1px solid var(--base-200, #e5e5e5);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.team-info-card h3 {
    margin: 0 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--base-500, #737373);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.team-info-card p {
    margin: 0 0 0.5rem;
    color: var(--base-700, #404040);
    font-size: 0.9375rem;
}

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

.team-admin-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--base-900, #171717);
}

.team-admin-link:hover {
    color: var(--primary, #0F1FFF);
}

.team-admin-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.team-files-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.team-files-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--base-200, #e5e5e5);
}

.team-files-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.team-files-list a {
    color: var(--primary, #0F1FFF);
    text-decoration: none;
    font-size: 0.9375rem;
}

.team-files-list a:hover {
    text-decoration: underline;
}
.team-single-panel a:focus-visible { outline: 3px solid var(--primary-500); outline-offset: 2px; }
.team-single-panel[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .team-single--tabs * { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
