/*
 * Team year (automatic): page-team-year.php. Loaded only on that template, on top of main.css's staff
 * styles (.staff-banner, .staff-section, .staff-grid, .staff-card, .staff-image-placeholder...). The hero
 * and the mission and history stay inside the content column (the template has a sidebar), as on the
 * hand-built year pages.
 */

html { scroll-padding-top: 4rem; }

/* Hero */
.team-year .team-year-hero {
    width: 100%;
    min-height: 360px;
    border-radius: 8px;
    overflow: hidden;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--uvu-color-white);
}
.team-year .team-year-hero-inner {
    width: 100%;
    max-width: calc(550px + 4rem);
    padding: 0 2rem;
    box-sizing: border-box;
}
.team-year .team-year-hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--uvu-color-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-wrap: balance;
}
.team-year .team-year-hero-text {
    margin: 0 0 1.5rem;
    font-size: 14px;
    line-height: 1.6;
    color: var(--uvu-color-white);
}

/* Mission and history */
.team-year .team-year-info {
    margin: 3rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.team-year .team-year-info-column { flex: 1; min-width: 260px; }
.team-year .team-year-info-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--uvu-color-grey-20);
    margin: 0 0 1rem;
    text-transform: uppercase;
}
.team-year .team-year-info-text { font-size: 14px; line-height: 1.6; color: var(--uvu-color-grey-33); }
[data-theme="dark"] .team-year .team-year-info-heading { color: var(--uvu-color-grey-88); }
[data-theme="dark"] .team-year .team-year-info-text { color: var(--uvu-color-grey-73); }

/* The year's banner and its teams */
.team-year .staff-banner { border-radius: 6px; }
.team-year .staff-banner-inner { max-width: none; }
.team-year .staff-section { padding: 20px 0; }
.team-year .staff-subtitle {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    color: var(--uvu-color-grey-33);
    margin: 30px 0 20px;
}
[data-theme="dark"] .team-year .staff-subtitle { color: var(--uvu-color-grey-73); }
.team-year .team-year-empty { text-align: center; font-size: 16px; color: var(--uvu-color-grey-33); margin: 0 0 40px; }
[data-theme="dark"] .team-year .team-year-empty { color: var(--uvu-color-grey-67); }

/* A card that links to its author page */
.team-year a.staff-card { display: block; color: inherit; text-decoration: none; }
.team-year a.staff-card:focus-visible { outline: 3px solid var(--uvu-color-green-dark); outline-offset: 3px; }
[data-theme="dark"] .team-year a.staff-card:focus-visible { outline-color: var(--uvu-color-green-soft); }
.team-year div.staff-card { cursor: default; }
.team-year div.staff-card:hover { transform: none; }

/* Cards come in one after another */
.team-year .staff-card:nth-child(2) { animation-delay: 0.05s; }
.team-year .staff-card:nth-child(3) { animation-delay: 0.1s; }
.team-year .staff-card:nth-child(4) { animation-delay: 0.15s; }
.team-year .staff-card:nth-child(n+5) { animation-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) {
    .team-year .staff-card { animation: none; opacity: 1; transform: none; transition: none; }
}

/* Columns: the content column is narrower than the window */
@media (min-width: 1200px) {
    .team-year .staff-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1199px) and (min-width: 768px) {
    .team-year .staff-grid { grid-template-columns: repeat(3, 1fr); }
    .team-year .staff-banner-title { font-size: 28px; }
    .team-year .staff-title { font-size: 26px; }
}
@media (max-width: 768px) {
    .team-year .team-year-hero { min-height: 300px; }
    .team-year .team-year-hero-title { font-size: 2rem; }
    .team-year .team-year-info { flex-direction: column; gap: 1.5rem; }
}
@media (max-width: 767px) and (min-width: 576px) {
    .team-year .staff-grid { grid-template-columns: repeat(2, 1fr); }
    .team-year .staff-banner-title { font-size: 26px; }
}
@media (max-width: 575px) {
    .team-year .staff-grid { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; }
    .team-year .staff-banner-title { font-size: 24px; }
    .team-year .team-year-hero-inner { padding: 1rem; }
}
