.publications .bibliography,
.publications li[id] {
  scroll-margin-top: 6rem;
}

.publications h2.bibliography,
.publications h3.bibliography {
  border-top: 1px solid var(--global-divider-color);
  color: var(--global-text-color);
  font-size: 1.4rem;
  margin: 2rem 0 1rem;
  padding-top: 1rem;
  text-align: left;
}

.publication-nav {
  line-height: 1.8;
}

.publications ol.bibliography > li > .row {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  align-items: start;
  gap: 1.5rem;
  margin: 0;
}

.publications ol.bibliography > li > .row > .abbr,
.publications ol.bibliography > li > .row > .col-sm-10 {
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 0;
}

.publications ol.bibliography > li > .row > .abbr {
  height: auto;
  margin: 0;
}

.publications ol.bibliography > li > .row > .col-sm-10 {
  overflow-wrap: break-word;
}

.publications ol.bibliography > li > .row > .abbr > abbr {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 1.6rem;
  padding: 0.25rem 0.5rem;
  color: #fff;
  font-size: 0.75rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: break-word;
}

.publications .author details.more-authors,
.publications .author details.more-authors summary {
  display: inline;
}

.publications .author details.more-authors summary {
  color: var(--global-text-color);
  cursor: pointer;
  list-style: none;
}

.publications .author details.more-authors summary > span {
  color: inherit;
}

.publications .author .more-authors-link {
  color: #828282;
  border-bottom: 1px dashed currentColor;
}

html[data-theme="dark"] .publications .author .more-authors-link {
  color: #a0a0a0;
}

.publications .author details.more-authors summary:hover .more-authors-link {
  color: var(--global-text-color);
}

.publications .author details.more-authors summary::-webkit-details-marker {
  display: none;
}

.publications .author details.more-authors summary::marker {
  content: "";
}

.publications .author details.more-authors .additional-authors,
.publications .author details.more-authors[open] .more-authors-label {
  display: none;
}

.publications .author details.more-authors[open] .additional-authors {
  display: inline;
}

.publications .links {
  margin-top: 0.3rem;
}

.publications .links a {
  margin-bottom: 0.3rem;
}

.selected-publications {
  margin-top: 2rem;
}

.selected-publications-scroll {
  max-height: 24rem;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

.selected-publications ol.bibliography > li {
  margin-bottom: 1.25rem;
}

@media (max-width: 575.98px) {
  .publications ol.bibliography > li > .row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
  }

  .publications ol.bibliography > li > .row > .abbr {
    width: 8rem;
  }

  .selected-publications-scroll {
    max-height: 32rem;
  }
}
