/* Flat content lists and profile details layered over Minimal Light. */
body {
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: #1769aa;
}

.wrapper {
  width: 100%;
  max-width: 960px;
}

section {
  width: calc(100% - 290px);
}

header h1 {
  margin-bottom: 8px;
}

.image.avatar {
  margin-bottom: 24px;
}

.image.avatar img {
  display: block;
  width: 160px;
  height: 160px;
  padding: 0;
  object-fit: cover;
  border-radius: 50%;
}

.profile-name-zh {
  margin-bottom: 22px;
  font-size: 18px;
  letter-spacing: 0.12em;
}

.profile-position,
.profile-affiliation {
  margin-bottom: 4px;
}

.profile-email {
  font-size: 14px;
}

.profile-email {
  margin: 16px 0 10px;
  overflow-wrap: anywhere;
}

.profile-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
}

.profile-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #043361;
  border-radius: 50%;
  text-decoration: none;
}

.profile-links a:hover {
  color: #1769aa;
  background: #edf4fa;
}

.profile-links a:focus-visible {
  outline: 2px solid #1769aa;
  outline-offset: 2px;
}

.profile-links svg {
  display: block;
  width: 24px;
  height: 24px;
}

section h2 {
  margin: 36px 0 18px;
  font-size: 24px;
}

section h2:first-child {
  margin-top: 0;
}

.entry-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.entry-list > li {
  margin-bottom: 24px;
}

.entry-list h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.5;
}

.entry-list p {
  margin: 0 0 4px;
}

.publication-authors,
.project-affiliation,
.entry-meta,
.entry-detail,
.entry-date,
.entry-links,
section small {
  font-size: 14px;
}

.publication-authors strong {
  font-weight: 600;
}

.publication-list > li,
.project-list > li {
  margin-bottom: 32px;
}

.publication-row.has-teaser,
.project-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  gap: 26px;
}

.publication-figure,
.project-figure {
  position: relative;
  min-width: 0;
}

.publication-figure img,
.project-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  box-shadow: 1px 2px 5px rgb(0 0 0 / 22%);
}

.publication-badge {
  position: absolute;
  top: 0;
  left: -4px;
  padding: 2px 12px;
  background: #002d72;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  border-radius: 1px;
  box-shadow: 0 2px 4px rgb(0 0 0 / 15%);
  pointer-events: none;
}

.publication-details,
.project-details {
  min-width: 0;
}

.publication-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 8px;
  font-size: 14px;
}

.publication-venue {
  font-weight: 600;
  color: #043361;
  white-space: nowrap;
}

.distinction {
  color: #9d3c26;
  font-weight: 500;
}

.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 6px;
}

.entry-links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.publication-links,
.project-links {
  align-items: center;
  gap: 5px;
  margin-top: 0;
}

.publication-links a,
.project-links a {
  padding: 1px 7px;
  border: 1px solid #444;
  color: #222;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}

.publication-links a:hover,
.publication-links a:focus-visible,
.project-links a:hover,
.project-links a:focus-visible {
  color: #1769aa;
  border-color: #1769aa;
}

.publication-meta .distinction {
  font-style: italic;
}

.project-affiliation {
  color: #043361;
}

.project-list .project-affiliation {
  margin-bottom: 8px;
}

.project-highlights {
  list-style: disc;
  margin: 0 0 10px;
  padding-left: 18px;
}

.project-highlights > li {
  margin: 0 0 6px;
  padding: 0;
}

.project-highlights > li:last-child,
.project-highlights p {
  margin-bottom: 0;
}

.project-highlights strong {
  font-weight: 600;
}

.entry-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0 16px;
}

.entry-heading h3 {
  flex: 1 1 240px;
}

.entry-date {
  white-space: nowrap;
  margin-bottom: 6px;
}

@media screen and (max-width: 960px) {
  section {
    width: auto;
  }

  header {
    padding: 24px 0 12px;
  }
}

@media print {
  section {
    width: auto;
  }
}

@media screen and (max-width: 600px) {
  .publication-row.has-teaser,
  .project-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .publication-figure,
  .project-figure {
    width: 180px;
    max-width: 100%;
  }

  .project-figure-empty {
    display: none;
  }
}
