/* Team page (/despre-noi/echipa/): section tabs as pills and one card per person. Tokens come from theme.css. */

/* ===== tabs ===== */
.team-nav ul {
    display: flex; flex-wrap: wrap; gap: .6rem;
    margin: 0 0 1.6rem; padding: 0; list-style: none;
}
.team-nav a {
    display: block;
    padding: .55rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--navy-700);
    font-weight: 600;
    font-size: .95rem;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.team-nav a:hover, .team-nav a:focus-visible { background: var(--blue-50); border-color: var(--blue-300); color: var(--navy-900); text-decoration: none; }
.team-nav .tab-current a { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
@media (max-width: 575.98px) {
    /* one swipeable row instead of a stack of wrapped pills */
    .team-nav ul { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: .4rem; margin-right: -1.2rem; padding-right: 1.2rem; }
    .team-nav li { flex: none; scroll-snap-align: start; }
}

/* sections: all visible until the tabs controller takes over */
.team-tabs .content section { display: none; }
.team-tabs .content section.content-current,
.team-tabs:not(.tabs-ready) .content section { display: block; }
.team-tabs:not(.tabs-ready) .content section + section { margin-top: 2rem; }

/* ===== people ===== */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.2rem;
    margin: 0; padding: 0; list-style: none;
}
.staff-card {
    display: flex; flex-direction: column; align-items: center;
    padding: 1.5rem 1rem 1.3rem;
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease;
}
.staff-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.staff-photo {
    width: 140px; height: 140px;
    margin-bottom: 1rem;
    border-radius: 50%;
    object-fit: cover;
    background: var(--blue-50);
    border: 4px solid var(--blue-100);
    box-shadow: 0 0 0 1px var(--blue-300);
}
.staff-name { font-size: .86rem; font-weight: 700; letter-spacing: .05em; line-height: 1.35; color: var(--navy-900); }
.staff-role { margin-top: .25rem; font-size: .92rem; font-weight: 500; color: var(--blue-600); }
.staff-more { width: 100%; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.staff-more h3 { margin: 0 0 .25rem; font-family: var(--font-body); font-size: .85rem; font-weight: 600; color: var(--navy-700); }
.staff-more p { margin: 0; font-size: .85rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 479.98px) { .staff-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; } .staff-photo { width: 104px; height: 104px; } .staff-card { padding: 1.1rem .6rem 1rem; } }
