.profile-summary,
.profile-professional,
.profile-personal {
  margin: 0 0 2rem;
}

.profile-intro {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.profile-photo {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
}

.profile-data {
  margin: 0;
  border-top: 1px solid #c9d8e6;
}

.profile-data > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  border-bottom: 1px solid #c9d8e6;
}

.profile-data dt,
.profile-data dd {
  box-sizing: border-box;
  margin: 0;
  padding: 0.7rem 0.85rem;
}

.profile-data dt {
  background: #f1f6fa;
  font-weight: bold;
}

.profile-affiliation-history {
  margin-top: 1rem;
}

.profile-timeline {
  margin: 1rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.profile-timeline li {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px dotted #b8c9d6;
}

.profile-timeline time {
  color: #315f85;
  font-weight: bold;
}

.profile-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.profile-meta > div {
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid #c9d8e6;
  background: #f8fbfd;
}

.profile-meta h3 {
  margin-top: 0;
}

.profile-details {
  margin: 0.75rem 0;
  border: 1px solid #c9d8e6;
  background: #fff;
}

.profile-details summary {
  padding: 0.8rem 1rem;
  background: #f3f8fc;
  color: #173f67;
  font-weight: bold;
  cursor: pointer;
}

.profile-details[open] summary {
  border-bottom: 1px solid #c9d8e6;
}

.profile-details > :not(summary) {
  margin-left: 1rem;
  margin-right: 1rem;
}

.profile-details > ul {
  padding-left: 1.5rem;
}

@media screen and (max-width: 800px) {
  .profile-intro {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 0.8rem;
  }

  .profile-photo {
    width: 110px;
    height: 110px;
  }

  .profile-data > div,
  .profile-timeline li,
  .profile-meta {
    grid-template-columns: 1fr;
  }

  .profile-data dt {
    padding-bottom: 0.3rem;
  }

  .profile-data dd {
    padding-top: 0.3rem;
  }

  .profile-timeline li {
    gap: 0.15rem;
  }
}

@media screen and (max-width: 520px) {
  .profile-intro {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    width: 130px;
    height: 130px;
  }
}

@media print {
  .profile-details {
    break-inside: avoid;
  }

  .profile-details > :not(summary) {
    display: block;
  }
}
