/* ============================================================
   Team Members Plugin — Public Stylesheet
   v1.0.0
   ============================================================ */

:root {
  --tm-forest:    #9c8920;
  --tm-forest-md: #ceaf6b;
  --tm-forest-lt: #e1f5ee;
  --tm-gold:      #c9a227;
  --tm-gold-lt:   #fdf6e3;
  --tm-mist:      #e8ede9;
  --tm-white:     #ffffff;
  --tm-text:      #1a2e28;
  --tm-text-mid:  #4a6658;
  --tm-radius:    18px;
}

/* ── WRAPPER ─────────────────────────────────────────────── */
.tm-wrap {
  font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  color: var(--tm-text);
  margin: 0;
  padding: 0;
}
.tm-no-members {
  color: var(--tm-text-mid);
  font-style: italic;
  padding: 24px 0;
}

/* ── SECTION LABEL ───────────────────────────────────────── */
.tm-section {
  margin-bottom: 26px;
  padding: 1px 81px;
}
.tm-section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}
.tm-section-badge {
  background: var(--tm-forest);
  color: #fff;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 40px;
  white-space: nowrap;
}
.tm-section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--tm-mist) 0%, transparent 100%);
  min-width: 20px;
}
.tm-section-count {
  font-size: 12px;
  color: var(--tm-text-mid);
  font-weight: 600;
  white-space: nowrap;
  display: none;
}

/* ── GRID ────────────────────────────────────────────────── */
.tm-grid {
  display: grid;
  gap: 22px;
}
.tm-cols-2 .tm-grid { grid-template-columns: repeat(2, 1fr); }
.tm-cols-3 .tm-grid { grid-template-columns: repeat(3, 1fr); }
.tm-cols-4 .tm-grid { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .tm-cols-4 .tm-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .tm-cols-3 .tm-grid,
  .tm-cols-4 .tm-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .tm-cols-2 .tm-grid,
  .tm-cols-3 .tm-grid,
  .tm-cols-4 .tm-grid { grid-template-columns: 1fr; }
}

/* ── CARD ─────────────────────────────────────────────────── */
.tm-card {
  background: var(--tm-white);
  border-radius: var(--tm-radius);
  border: 1px solid var(--tm-mist);
  box-shadow: 0 4px 20px rgba(10,74,58,.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px 28px;
  position: relative;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}

.tm-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--tm-forest-md), var(--tm-gold));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .3s ease;
}

.tm-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(10,74,58,.14);
}
.tm-card:hover::after {
  transform: scaleX(1);
}

/* Highlight / gold-accent variant */
.tm-card.tm-highlight {
  border-color: rgba(201,162,39,.3);
  background: linear-gradient(160deg, #fff 60%, var(--tm-gold-lt) 100%);
}
.tm-card.tm-highlight .tm-role {
  background: rgba(201,162,39,.15);
  color: #7a5c00;
}

/* ── AVATAR ──────────────────────────────────────────────── */
.tm-avatar-ring {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, var(--tm-forest-md), var(--tm-gold));
  margin-bottom: 16px;
  flex-shrink: 0;
}
.tm-avatar-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--tm-white);
  display: block;
}

/* ── NAME & ROLE ─────────────────────────────────────────── */
.tm-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--tm-text);
  line-height: 1.25;
  margin: 0 0 8px;
}
.tm-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tm-forest-md);
  background: var(--tm-forest-lt);
  border-radius: 40px;
  padding: 5px 14px;
  display: inline-block;
  line-height: 1.4;
}
