/* tt360/team, ported from the prototype's own components/founders.css
   (the .founder recipe) and layout/team.css (the .founders grid and
   breakpoints). The prototype scopes the "large" recipe and its grid
   breakpoints to an ancestor section class (.team, .about-team) that
   assumed a specific page's own wrapper — this block isn't tied to
   either page, so the two variants are told apart by a modifier class on
   this block's own wrapper instead (.founders-type-compact/
   .founders-type-large), not a parent section's class. */

.founders {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 55px;
}

.founder {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.founder .photo {
    display: block;
    flex-shrink: 0;
    width: 109px;
    height: 109px;
    object-fit: cover;
    border-radius: 10px;
    background-color: rgba(var(--charcoal), 0.08);
}

/* No photo set: the same box shows the member's initials instead of
   sitting empty, same fix already applied to tt360/author-card. */
.founder .avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 500;
    line-height: 1;
    color: rgba(var(--terra-green), 1);
}

.founder-text {
    display: flex;
    flex-direction: column;
}

.founder .name {
    margin: 0;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0;
    color: rgba(var(--terra-green), 1);
}

.founder .role {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(var(--terra-green), 1);
}

.founder .bio {
    margin: 13px 0 0;
    font-size: 14px;
    line-height: 1.6;
}

.founder .social {
    display: flex;
    align-items: flex-start;
    width: 24px;
    height: 28px;
    margin-top: 6px;
    color: rgba(var(--gold), 1);
}

.founder .social:hover,
.founder .social:focus,
.founder .social:visited {
    color: rgba(var(--gold), 1);
}

.founder .social:hover,
.founder .social:focus {
    filter: brightness(1.2);
}

/* "large" (About page's recipe): stacked always, full-width square photo. */
.founders-type-large .founder-lg {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
}

.founders-type-large .founder-lg .photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
}

/* lg: the "compact" (homepage) recipe stacks (photo on top, text below)
   specifically at tablet width, per Figma — horizontal above and below
   this range, a deliberate non-monotonic reversal, not a typo. */
@media (max-width: 991.98px) {
    .founders-type-compact .founder {
        flex-direction: column;
        align-items: flex-start;
    }

    .founders-type-compact .founder .photo {
        width: 120px;
        height: 120px;
    }
}

/* md. The grid-collapse rules target .founders.founders-type-compact (one
   element, two classes), not a descendant combinator — found by measuring
   real sideways scroll at 390, not assumed correct from reading the CSS:
   the modifier class sits on the grid wrapper itself (render.php's own
   class="founders founders-type-compact"), it's never a separate
   ancestor wrapping a second, nested .founders. */
@media (max-width: 767.98px) {
    .founders.founders-type-compact {
        grid-template-columns: minmax(0, 1fr);
    }

    .founders-type-compact .founder {
        flex-direction: row;
        align-items: flex-start;
    }

    .founders-type-compact .founder .photo {
        width: 130px;
        height: 130px;
    }
}

/* "large"'s own grid only stacks to one column at sm (mobile), not md
   (tablet) like the "compact" grid — stays 3-up through md on purpose. */
@media (max-width: 575.98px) {
    .founders.founders-type-large {
        grid-template-columns: minmax(0, 1fr);
    }
}
