body:has(.swkim-profile) {
  min-width: 0;
}

.swkim-profile .paper-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

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

.swkim-profile h1 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.swkim-profile .section-kicker,
.swkim-profile .publication-venue,
.swkim-profile .period {
  color: #767676;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.5;
}

.swkim-profile .position,
.swkim-profile .affiliation {
  margin-bottom: 0.25rem;
}

.swkim-profile .position {
  font-weight: 600;
}

.swkim-profile .intro {
  margin-top: 1rem;
}

.swkim-profile .portrait,
.swkim-profile .publication-figure {
  margin: 0;
}

.swkim-profile .portrait img {
  width: 160px;
}

.swkim-profile .paper-links,
.swkim-profile .text-link {
  font-size: 0.85rem;
}

.swkim-profile > section + section {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e5e5;
}

.swkim-profile .section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.swkim-profile .section-heading h2 {
  margin-bottom: 0;
}

.swkim-profile .publication {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.25rem;
  padding-block: 1.5rem;
  border-top: 0;
  border-bottom: 1px solid #e5e5e5;
}

.swkim-profile .publication-figure img {
  width: 100%;
  height: auto;
}

.swkim-profile .publication h3,
.swkim-profile .compact-publications h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.swkim-profile .publication-venue,
.swkim-profile .authors {
  margin-bottom: 0.5rem;
}

.swkim-profile .authors {
  font-size: 0.85rem;
}

.swkim-profile .paper-links {
  margin-bottom: 0;
}

.swkim-profile .other-publications {
  margin-top: 1.5rem;
}

.swkim-profile .other-publications summary {
  cursor: pointer;
  font-weight: 600;
}

.swkim-profile .compact-publications,
.swkim-profile .timeline {
  padding: 0;
  list-style: none;
}

.swkim-profile .compact-publications li {
  margin-top: 1.25rem;
}

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

.swkim-profile .timeline li {
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.swkim-profile .timeline li > * {
  display: block;
}

.swkim-profile a:focus-visible,
.swkim-profile summary:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

@media (max-width: 70rem) {
  .swkim-profile .profile {
    grid-template-columns: minmax(0, 1fr);
  }

  .swkim-profile .portrait img {
    width: 140px;
  }

  .swkim-profile .publication {
    grid-template-columns: minmax(0, 1fr);
  }

  .swkim-profile .publication-figure {
    max-width: 300px;
  }

  .swkim-profile .background-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
