/* Styles specific to the Team section. */

/* Full width with the page gutter kept, so the four-up grid uses the whole
   screen and the outer cards never touch the edge. */
.team-content {
    width: 100%;
    padding-inline: clamp(1rem, 3vw, 3rem);
}

/* No surface of its own: the portrait and the name sit straight on the page.
   The shadow goes with it — a drop shadow on a transparent card just draws a
   ghost rectangle where the card used to be. */
.team-card {
    border: 0;
    background: transparent;
    box-shadow: none;
}

/* A 240px circular portrait. Width is capped at the card so narrower columns
   shrink the circle rather than squashing it into an ellipse — aspect-ratio
   keeps it round at every size. The ring matters: most staff photos are shot
   on a white background, so without it the circle is invisible on a white
   card and the portrait reads as a square. */
.team-card .card-img-top {
    width: min(240px, 100%);
    aspect-ratio: 1;
    height: auto;
    margin: 1.25rem auto 0;
    border: 4px solid #3fc5bf;
    border-radius: 50%;
    object-fit: cover;
}

/* The footer is a sibling of the (growing) card body, so it sits on the card
   floor and the buttons line up across a row whatever length the job titles
   run to. Transparent and borderless so it does not read as a separate band. */
.team-card .card-footer {
    padding: 0 1rem 1.25rem;
    border-top: 0;
    background: transparent;
}

.team-more-info {
    padding: 0.45rem 1.15rem;
    border: 0;
    border-radius: 999px;
    background: #1f2330;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.team-more-info i {
    margin-left: 0.35rem;
    font-size: 0.9em;
}

.team-more-info:hover,
.team-more-info:focus-visible {
    background: var(--tla-accent-dark, #d9a800);
    color: #1f2330;
}

/* --- More Info modal --- */

.team-modal-avatar {
    width: min(220px, 100%);
    aspect-ratio: 1;
    height: auto;
    margin-bottom: 1rem;
    border: 4px solid #3fc5bf;
    border-radius: 50%;
    object-fit: cover;
}

.team-modal-role {
    margin: 0 0 0.15rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.team-modal-site {
    margin: 0;
    color: var(--tla-muted, #5b6172);
    font-size: 0.9rem;
}

.team-modal-info {
    font-size: 1rem;
    line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
    .team-more-info {
        transition: none;
    }
}
