.live-comparison {
  flex-basis: 100%;
  width: 100%;
  margin-top: 1.25rem;
}

.comparison-empty,
.comparison-help {
  margin: 0;
  color: inherit;
  opacity: .84;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
  margin-bottom: .75rem;
}

.comparison-teacher {
  position: relative;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .75rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 16px;
  background: rgba(255, 255, 255, .12);
}

.comparison-teacher img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
}

.comparison-teacher div {
  display: grid;
  gap: .15rem;
}

.comparison-teacher span,
.comparison-teacher b {
  font-size: .8rem;
}

.comparison-teacher button {
  position: absolute;
  top: .35rem;
  left: .35rem;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 1.3rem;
  cursor: pointer;
}

.teacher-card h3 a {
  color: inherit;
  text-decoration: none;
}

.teacher-card h3 a:hover,
.teacher-card h3 a:focus-visible {
  color: #5b3bc4;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.teacher-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: .55rem 0 .2rem;
}

.teacher-tags span {
  padding: .22rem .55rem;
  border-radius: 999px;
  background: #f0ebff;
  color: #5135aa;
  font-size: .72rem;
  line-height: 1.6;
  font-weight: 700;
}

@media (max-width: 760px) {
  .comparison-grid { grid-template-columns: 1fr; }
}
