/* ═══════════════════════════════════════════════════════════════
   AM LAW — TEAM PAGE STYLESHEET
   Loaded only on team.html, after style.css
   ═══════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────
   1. LAYOUT OVERRIDES FOR TEAM
   ─────────────────────────────────────────────────────────────
   team.html uses .pa-layout as a simple full-width wrapper
   (no sidebar), so override the grid to a single column.
   ───────────────────────────────────────────────────────────── */

.pa-layout {
    display: block;
}

/* Each partner section fills the viewport so the sticky
   photo effect reads correctly while the bio scrolls. */
.pa-detail {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ─────────────────────────────────────────────────────────────
   2. TEAM SPLIT LAYOUT
   ─────────────────────────────────────────────────────────────
   Sticky left photo column / scrolling right bio column.
   ───────────────────────────────────────────────────────────── */

.team-split {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
    min-height: 100vh;
}

.team-split__left {
    position: sticky;
    top: 80px;
    /* clears the fixed navbar */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 1rem;
}

.team-split__right {
    padding-top: 1rem;
    padding-bottom: 4rem;
}

/* ─────────────────────────────────────────────────────────────
   3. pa-detail__grid OVERRIDES FOR TEAM
   ─────────────────────────────────────────────────────────────
   On the team page, --55 grids use a 1:2 photo-to-bio ratio
   rather than the 55/45 split used on practice-areas.
   ───────────────────────────────────────────────────────────── */

.pa-detail__grid {
    grid-template-columns: 1fr 2fr;
}

.pa-detail__grid--55 {
    grid-template-columns: 1fr 2fr;
}

/* ─────────────────────────────────────────────────────────────
   4. PAKO SECTION — CRIMSON BACKGROUND
   ─────────────────────────────────────────────────────────────
   Replaces the .pa-content .pa-detail:first-child rule
   from practice-areas with an ID-scoped rule for the team page.
   ───────────────────────────────────────────────────────────── */

main #pako {
    background-color: var(--color-crimson-dim);
}

main #pako .pa-detail__heading,
main #pako .pa-detail__sub-heading {
    color: var(--color-text-on-dark);
}

main #pako .pa-detail__intro {
    color: var(--color-text-on-dark);
}

main #pako .domain-tag,
main #pako .domain-tag--dark {
    color: var(--color-text-on-dark);
    border-color: rgba(255, 255, 255, 0.12);
}

main #pako .partner-qual-block__stamp,
main #pako .partner-qual-block__line {
    color: var(--color-text-on-dark);
}

main #pako .label {
    color: var(--color-blue);
}

main #pako .red-rule {
    border-top-color: var(--color-blue);
}

/* ─────────────────────────────────────────────────────────────
   5. PHOTO PLACEHOLDER ADJUSTMENTS FOR TEAM
   ─────────────────────────────────────────────────────────────
   Increase initials and note visibility inside the photo block.
   ───────────────────────────────────────────────────────────── */

.partner-photo__initials {
    color: rgba(255, 255, 255, 0.8);
}

.partner-photo__note {
    color: rgba(255, 255, 255, 0.8);
}

/* ─────────────────────────────────────────────────────────────
   6. TEAM LEFT CONTENT HELPER
   ───────────────────────────────────────────────────────────── */

.team-left-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    top: 0;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
}

/* Right pane scroll effect */
.pa-detail__grid>.reveal-left {
    height: 100%;
    max-height: 100vh;
    overflow-y: auto;
    padding-right: 1rem;
}

/* ─────────────────────────────────────────────────────────────
   7. MISSING UTILITY CLASSES
   ───────────────────────────────────────────────────────────── */

/* Intro text on navy (Obakeng section) */
.pa-detail__intro--light {
    color: var(--color-text-on-light);
}

/* Support staff illustration wrapper */
.support-staff-illustration {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.support-staff-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    text-align: center;
    margin-top: 1rem;
    display: block;
}

/* ─────────────────────────────────────────────────────────────
   8. RESPONSIVE OVERRIDES
   ───────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .team-split {
        grid-template-columns: 1fr;
        min-height: unset;
    }

    .team-split__left {
        position: static;
    }

    .team-left-content {
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .partner-card__inner {
        grid-template-columns: 1fr;
        max-height: none;
        overflow-y: visible;
        padding: 0;
    }
}