/* Team page — dashboard dark (matches /app, lectures, grader) */

body.team-page.app-dashboard-home {
    padding: 0;
    color-scheme: dark;
}

.team-page {
    font-family: var(--font-sans, "Inter", system-ui, sans-serif);
    background: var(--bg-primary, #000000);
    color: var(--text-primary, #f0f4f8);
    min-height: 100vh;
}

.team-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(61, 214, 140, 0.18);
    box-shadow:
        0 1px 0 rgba(34, 211, 238, 0.08),
        0 0 40px rgba(61, 214, 140, 0.06);
    margin-bottom: 1.5rem;
}

.team-header-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-md, 1rem) clamp(1rem, 4vw, 1.5rem);
    display: flex;
    align-items: center;
    gap: var(--space-md, 1rem);
}

.team-back {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.35rem 0.5rem;
    margin-left: -0.35rem;
    transition: background 0.2s, color 0.2s;
}

.team-back:hover {
    background: rgba(61, 214, 140, 0.1);
    color: #3dd68c;
}

.team-header-title {
    margin: 0;
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    font-weight: 700;
    color: #f0f4f8;
    letter-spacing: -0.02em;
}

.team-page-main {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 1.5rem) clamp(2.5rem, 5vw, 3.5rem);
    box-sizing: border-box;
}

.team-page-lead {
    color: #94a3b8;
    margin: 0 0 1.75rem;
    line-height: 1.55;
    text-align: center;
    font-size: clamp(0.95rem, 2.2vw, 1.05rem);
}

.team-page-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 560px) {
    .team-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .team-page-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 52rem;
        margin-left: auto;
        margin-right: auto;
    }
}

.team-page-card {
    width: 100%;
    max-width: none;
    padding: 1.5rem 1.35rem;
    border-radius: 16px;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(61, 214, 140, 0.18);
    box-shadow:
        0 4px 32px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(61, 214, 140, 0.06);
}

.team-page-avatar {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #2eb574 0%, #3dd68c 100%);
    color: #041208;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 0 20px rgba(61, 214, 140, 0.25);
}

.team-page-name {
    font-weight: 800;
    margin-bottom: 0.35rem;
    font-size: 1.125rem;
    color: #f0f4f8;
    letter-spacing: -0.02em;
}

.team-page-role {
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
    line-height: 1.4;
}

.team-page-card--open {
    border-style: dashed;
    border-color: rgba(61, 214, 140, 0.35);
    background: rgba(61, 214, 140, 0.06);
}

.team-page-avatar--open {
    font-size: 0.65rem;
    letter-spacing: 0.02em;
}

.team-page-open-hint {
    margin: 0.75rem 0 0.5rem;
    font-size: 0.82rem;
    color: #cbd5e1;
}

.team-page-email {
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #3dd68c;
    text-decoration: none;
    word-break: break-all;
}

.team-page-email:hover {
    text-decoration: underline;
    color: #6ee7b7;
}
