/* Shared refinements for both theme variants. */
.section-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.5rem;
  font-size: 0.95rem;
}

.section-nav a:hover,
.section-nav a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

section > h2 {
  margin-top: 2rem;
  scroll-margin-top: 1.5rem;
}

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

section p {
  line-height: 1.65;
}

/* Do not reserve an empty thumbnail column for papers without an image. */
.publications {
  margin-top: 0.75rem;
}

.publications .publication-details {
  flex: 1;
  min-width: 0;
}

.publications .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

@media screen and (max-width: 960px) {
  .section-nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 1rem;
    margin: 1rem 0 1.5rem;
  }
}

@media print {
  .section-nav {
    display: none;
  }
}
