/* DS-008: token replacement for speaker rows. */
.speaker-grid {
  display: flex;
  flex-direction: column;
  gap: var(--tkc-space-5);
}

.speaker-card {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  color: var(--tkc-color-text);
  background-color: var(--tkc-color-surface);
  border: thin solid var(--tkc-color-border);
  border-radius: var(--tkc-radius-md);
  box-shadow: var(--tkc-shadow-sm);
}

.speaker-photo {
  flex: 0 0 calc(var(--tkc-space-8) * 3);
  width: calc(var(--tkc-space-8) * 3);
  min-height: calc(var(--tkc-space-8) * 3);
  align-self: stretch;
  object-fit: cover;
  object-position: center top;
}

.speaker-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
  padding: var(--tkc-space-5);
}

.speaker-name {
  margin: 0 0 var(--tkc-space-2);
  color: var(--tkc-color-text);
  font-size: var(--tkc-size-300);
  font-weight: var(--tkc-weight-bold);
  line-height: var(--tkc-leading-tight);
}

.speaker-bio {
  margin: 0;
  color: var(--tkc-color-text-muted);
  line-height: var(--tkc-leading-loose);
}

@media (max-width: 38.75rem) {
  .speaker-card {
    flex-direction: column;
  }

  .speaker-photo {
    flex-basis: auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
}
