/* Team cards — minimal editorial design. Safe overlay over the compiled site. */
.team-panel {
  background: hsl(var(--card) / 0.82);
  border: 1px solid hsl(var(--border) / 0.85);
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.team-card {
  min-height: 170px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border) / 0.86);
  border-radius: 1.35rem;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 8px 28px hsl(var(--navy) / 0.05);
  transition: transform 260ms cubic-bezier(.22,1,.36,1), border-color 260ms ease, box-shadow 260ms ease;
}

.team-initials {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.35rem;
  background: var(--gradient-navy);
  color: hsl(var(--primary-foreground));
  border: 1px solid hsl(var(--border-gold));
  box-shadow: 0 8px 20px hsl(var(--navy) / 0.12);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding-left: 0.12em;
  transition: transform 260ms cubic-bezier(.22,1,.36,1);
}

.team-card-body {
  width: 100%;
}

.team-name {
  margin: 0;
  color: hsl(var(--navy));
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.team-rule {
  display: block;
  width: 3rem;
  height: 1px;
  margin: 1rem auto 0;
  background: hsl(var(--border-gold) / 0.78);
}

@media (min-width: 640px) {
  .team-panel { padding: 2.5rem; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .team-panel { padding: 3rem; }
  .team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
}

@media (hover: hover) {
  .team-card:hover {
    transform: translateY(-4px);
    border-color: hsl(var(--border-gold));
    box-shadow: 0 18px 40px hsl(var(--navy) / 0.09);
  }
  .team-card:hover .team-initials { transform: scale(1.035); }
}

@media (prefers-reduced-motion: reduce) {
  .team-card,
  .team-initials { transition: none !important; }
  .team-card:hover,
  .team-card:hover .team-initials { transform: none !important; }
}
