/* ══════════════════════════════════════════════════════════════════════════
   splent_feature_team — public team-member detail sheet.
   Token-driven: every colour/radius comes from the theme's --brand-* custom
   properties, so a skin restyles it for free. Loaded via register_asset on top
   of the theme's public.css. No inline styles, no CDN.
   ══════════════════════════════════════════════════════════════════════════ */

.member-detail {
    max-width: 72ch;
}

.member-detail__photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.member-roles {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: 1rem;
}

.member-detail .section-title {
    margin-top: 1.5rem;
}

.member-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

/* ── Email contact row: text label / small mail icon, no emoji ─────────────── */
.member-contact {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1rem;
}

.member-contact__icon {
    flex: none;
    width: 1rem;
    height: 1rem;
    color: var(--brand-primary, #2563eb);
}

.member-contact__label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--brand-muted, #6b7280);
}

.member-detail__back {
    display: inline-block;
    margin-top: 2rem;
}

/* ── Public team grid: photo-cover cards with a gradient + white text ────────── */
.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.75rem;
}

.member-card {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: var(--brand-radius, 8px);
    overflow: hidden;
    text-decoration: none;
    background: var(--brand-surface, #f1f1f3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .1);
    transition: transform .2s ease, box-shadow .2s ease;
}

.member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .2);
}

/* Stretched detail link behind the overlay; the card itself is an <article>
   so the per-profile links in the footer row stay valid, clickable anchors. */
.member-card__link {
    position: absolute;
    inset: 0;
    display: block;
}

.member-card__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-card__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--brand-font-display, var(--brand-font-heading, inherit));
    font-size: 3.5rem;
    color: var(--brand-muted, #9aa3af);
}

.member-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.1rem 1.2rem;
    background: linear-gradient(
        180deg,
        transparent 42%,
        rgba(0, 0, 0, .45) 68%,
        rgba(0, 0, 0, .88) 100%
    );
    /* Clicks fall through to the stretched detail link below; the per-profile
       links row re-enables its own pointer events. */
    pointer-events: none;
}

/* Scoped under .member-card so a skin's generic h3 colour can't override white. */
.member-card .member-card__name {
    margin: 0;
    color: #ffffff;
    font-size: 1.15rem;
    line-height: 1.2;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

.member-card .member-card__role {
    margin: .2rem 0 0;
    color: rgba(255, 255, 255, .85);
    font-size: .85rem;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}

/* ── Compact per-profile links row, the card footer the old site had ───────── */
.member-card__links {
    display: flex;
    flex-wrap: wrap;
    gap: .1rem .65rem;
    margin-top: .45rem;
    pointer-events: auto;
}

.member-card .member-card__links a {
    color: rgba(255, 255, 255, .78);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    text-decoration: none;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .55);
}

.member-card .member-card__links a:hover {
    color: #ffffff;
    text-decoration: underline;
}
