/* Layout additions; typography, width, and colors come from the original style.css. */
.site-index {
  margin-bottom: 28px;
}
.site-index ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-index a[aria-current="page"] {
  font-weight: bold;
}
.skip-link {
  position: absolute;
  top: -100px;
}
.skip-link:focus {
  position: static;
}
.profile {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
}
.profile .portrait {
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
  margin-top: 4px;
}
.profile h1 {
  font-size: 26px;
  text-align: left;
  margin: 0 0 8px;
}
.profile p {
  text-align: left;
  margin-bottom: 6px;
}
.profile-links {
  font-size: 14px;
}
main section {
  margin-top: 28px;
  scroll-margin-top: 16px;
}
main h2,
main h3 {
  text-align: left;
}
main h2 {
  font-size: 22px;
  margin: 0 0 12px;
}
main h3 {
  font-size: 17px;
  margin: 18px 0 8px;
}
main p {
  margin-bottom: 10px;
}
main ul,
main ol {
  padding-left: 24px;
  margin-top: 6px;
  margin-bottom: 6px;
  line-height: 1.45;
}
main li {
  margin-bottom: 3px;
}
main li p {
  margin-bottom: 3px;
}
main li ul,
main li ol {
  margin-top: 3px;
  margin-bottom: 3px;
}
.projects li,
.papers li {
  margin-bottom: 3px;
}
details {
  margin: 14px 0;
}
summary {
  cursor: pointer;
}
.book {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 12px 0;
}
.book img {
  height: auto;
  flex-shrink: 0;
}
.book p {
  text-align: left;
}
@media (max-width: 480px) {
  .profile {
    gap: 14px;
  }
  .profile .portrait {
    width: 95px;
    height: 95px;
  }
  .profile h1 {
    font-size: 23px;
  }
  .profile-links {
    line-height: 1.8;
  }
  .book {
    gap: 12px;
  }
  .book img {
    width: 80px;
  }
}
@media (max-width: 340px) {
  .profile {
    display: block;
  }
  .profile .portrait {
    margin-bottom: 12px;
  }
}

.icon-definitions {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.current-students {
  margin-left: 20px;
}

.student-list {
  margin-top: 2px;
  margin-bottom: 8px;
  line-height: 1.4;
}
.student-list li {
  margin-bottom: 0;
}
.student-links {
  display: inline-flex;
  gap: 3px;
  vertical-align: middle;
  margin-left: 3px;
}
.student-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: inherit;
}
.student-links svg {
  width: 16px;
  height: 16px;
}
.student-links a:hover {
  color: blue;
}
.student-links a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
.student-group {
  font-size: 14px;
  margin-bottom: 0 !important;
}

#students h3 {
  margin-top: 12px;
  margin-bottom: 5px;
}

/* A light rule gives main section headings a quiet visual boundary. */
main h2,
#funding-tree > h1 {
  border-bottom: 1px solid #ddd;
  padding-bottom: 6px;
}

#joining .application-list {
  margin-left: 12px;
  padding-left: 24px;
}
#joining .application-list li {
  margin-bottom: 3px;
}

#joining .applicant-requirements {
  margin-left: 18px;
}

/* Student profile links: labels stay in HTML; their icons live in separate SVG files. */
.student-links a {
  font-size: 0;
}
.student-links a::before {
  content: "";
  width: 16px;
  height: 16px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.student-links .portfolio::before {
  background-image: url("assets/icons/portfolio.svg");
}
.student-links .linkedin::before {
  background-image: url("assets/icons/linkedin.svg");
}
.student-links .github::before {
  background-image: url("assets/icons/github.svg");
}
.student-links a:hover::before {
  filter: brightness(.75);
}

.student-links .scholar::before {
  background-image: url("assets/icons/scholar.svg");
}
