/* Team Card Grid — tmg */
.tmg-grid {
    display: grid;
    grid-template-columns: repeat(var(--tmg-columns, 3), 1fr);
    gap: var(--tmg-gap, 24px);
}
@media (max-width: 1024px) { .tmg-grid { grid-template-columns: repeat(var(--tmg-columns-tablet, 2), 1fr); } }
@media (max-width: 767px)  { .tmg-grid { grid-template-columns: repeat(var(--tmg-columns-mobile, 1), 1fr); } }

/* ── Card ──────────────────────────────────────────────────── */
.tmg-card {
    display: flex;
    flex-direction: column;
    background-color: var(--card-bg, #ffffff);
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-radius: 16px;
    overflow: hidden;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, transform 0.18s ease;
}
.tmg-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}

/* ── Photo ─────────────────────────────────────────────────── */
.tmg-photo-wrap { overflow: hidden; }

.tmg-photo {
    display: block;
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.tmg-card:hover .tmg-photo { transform: scale(1.04); }

.tmg-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary, #eeeeee);
}
.tmg-photo--placeholder span {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-muted, #888);
    text-transform: uppercase;
}

/* ── Body ──────────────────────────────────────────────────── */
.tmg-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px;
    flex: 1;
}

.tmg-name {
    display: block;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-on-bg, #111110);
}

.tmg-position {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary, #3b82f6);
    letter-spacing: 0.01em;
}

.tmg-bio {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted, #6f6e69);
    margin: 6px 0 0;
}

/* ── Social ────────────────────────────────────────────────── */
.tmg-social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border, rgba(0,0,0,0.07));
}

.tmg-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--text-muted, #6f6e69);
    text-decoration: none;
    line-height: 1;
    transition: color 0.2s ease;
}

/* Font Awesome icons */
.tmg-social-link i {
    display: block;
    line-height: 1;
}

/* SVG icons rendered by Icons_Manager */
.tmg-social-link svg {
    display: block;
    width: 1em;
    height: 1em;
    fill: var(--text-muted, #6f6e69);
    transition: fill 0.2s ease;
}

.tmg-social-link:hover {
    color: var(--primary, #3b82f6);
}

.tmg-social-link:hover svg {
    fill: var(--primary, #3b82f6);
}