.team {
  background: #fff;
}

.team-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-list li {
  min-width: 0;
  padding: 25px;
  border-top: 3px solid var(--sage);
  background: var(--cream);
}

.team-list h3 {
  margin: 0 0 7px;
  color: var(--deep);
  font-size: 20px;
  line-height: 1.3;
}

.team-list p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.team-list small {
  display: block;
  margin-top: 13px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
}

.doctor-name {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: pointer;
}

.doctor-name:hover,
.doctor-name:focus-visible {
  color: var(--green);
  text-decoration-style: solid;
}

.mss-address {
  display: none;
  max-width: 100%;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.team-list li:hover .mss-address,
.team-list li:focus-within .mss-address {
  display: block;
}

.mss-address span {
  display: block;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.mss-address code {
  display: block;
  margin-top: 3px;
  font-family: inherit;
  font-size: 12px;
  overflow-wrap: anywhere;
}

@media (max-width: 850px) {
  .team-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .team-list {
    grid-template-columns: 1fr;
  }
}
