:root {
  --committee-accent: #2563eb;
  --committee-card-bg: var(--md-code-bg-color, #f8fafc);
  --committee-card-border: var(--md-typeset-table-color, #e2e8f0);
}

.md-typeset .committee-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2.5rem;
  width: 100%;
}

.md-typeset .committee-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 1.5rem 1rem;
  border: 1px solid var(--committee-card-border);
  border-radius: 8px;
  background-color: var(--committee-card-bg);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.md-typeset .committee-card:hover {
  transform: translateY(-4px);
  border-color: var(--committee-accent);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.09);
}

[data-md-color-scheme="slate"] .md-typeset .committee-card {
  background-color: #1e293b;
  border-color: #334155;
}

.md-typeset .committee-avatar-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.md-typeset .committee-avatar {
  width: 140px;
  height: 140px;
  max-width: 140px;
  max-height: 140px;
  margin: 0 auto 0.9rem;
  border: 3px solid #ffffff;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

[data-md-color-scheme="slate"] .md-typeset .committee-avatar {
  border-color: #334155;
}

.md-typeset .committee-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #0f766e);
  color: #ffffff;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.md-typeset .committee-name {
  margin: 0.2rem 0;
  color: var(--md-typeset-color, #0f172a);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.md-typeset .committee-avatar-link:hover .committee-name {
  color: var(--committee-accent);
  text-decoration: underline;
}

.md-typeset .committee-affiliation {
  margin: 0;
  color: var(--md-default-fg-color--light, #64748b);
  font-size: 0.9rem;
  font-weight: 500;
}

@media (max-width: 640px) {
  .md-typeset .committee-grid {
    grid-template-columns: 1fr;
  }
}
