/* Team Member Widget – Frontend Styles */

.twm-wrapper {
    width: 100%;
    box-sizing: border-box;
}

.twm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Card */
.twm-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #e0d9c8;
    box-sizing: border-box;
    transition: background 0.2s ease;
}

.twm-card:last-child {
    border-bottom: none;
}

/* Column layout variant */
.twm-dir-column {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Avatar Shell — the gold ring */
.twm-avatar-shell {
    flex-shrink: 0;
    border-radius: 50%;
    border: 3px solid #C8A951;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 169, 81, 0.08);
    box-sizing: content-box;
}

/* Avatar Inner — the coloured circle / photo */
.twm-avatar-inner {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    background: #d0cce8;
}

.twm-avatar-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Initials */
.twm-initials {
    font-size: 20px;
    font-weight: 700;
    color: #7a6830;
    line-height: 1;
    user-select: none;
}

/* Info */
.twm-info {
    flex: 1;
    min-width: 0;
}

/* Name */
.twm-name {
    font-size: 13px;
    font-weight: 700;
    color: #C8A951;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-bottom: 3px;
    word-break: break-word;
}

/* Role */
.twm-role {
    font-size: 12px;
    font-weight: 400;
    color: #888780;
    line-height: 1.4;
    word-break: break-word;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .twm-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .twm-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
