/* Page-specific CSS for Leadership. Shared design tokens/utilities live in layout.css. */
.page-discover-leadership {
    min-height: 0;
}

@media (max-width: 768px) {
    .page-discover-leadership {
        min-height: 0;
    }
}

/* Shared card component used by BOTH the leadership trio and the advisory committee grid, so the
   two sections cannot drift apart. Structure/sizing lives here; palette stays on the Tailwind
   colour utilities in the markup. Sizes are written out rather than using w-28/h-28/auto-rows-fr
   because layout.css is a pre-built Tailwind bundle that only contains the utilities present when
   it was generated — classes outside that set silently have no effect. */

/* grid-auto-rows makes every row the same height, so cards stay equal even when a name or
   designation wraps onto a second line. */
.leader-grid {
    grid-auto-rows: 1fr;
}

.leader-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    padding: 2rem;
    border-radius: 1rem;
    border-width: 1px;
    text-align: center;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.leader-card:hover {
    transform: translateY(-.25rem);
}

.leader-card-photo {
    width: 9rem;
    height: 9rem;
    flex-shrink: 0;
    margin: 0 auto 1.25rem;
    border-radius: 9999px;
    overflow: hidden;
}

.leader-card-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Every current portrait is square and renders in a square frame, so nothing is cropped.
       Anchoring to the top keeps faces intact if a taller photo is swapped in later. */
    object-position: center top;
}

.leader-card-name {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
}

.leader-card-role {
    font-size: .875rem;
    line-height: 1.25rem;
    font-weight: 500;
    margin-top: .25rem;
}

.leader-card-org {
    font-size: .875rem;
    line-height: 1.25rem;
    margin-top: .25rem;
}

/* Pins the call to action to the bottom edge so it lines up across cards of differing height. */
.leader-card-cta {
    margin-top: auto;
    padding-top: 1rem;
}
