
.publications-page,
.homepage-layout {
  display: flex;
  flex-direction: row-reverse;
  gap: 2rem;
  align-items: flex-start;
  clear: both;
  max-width: 2100px;
}

.publications-page > article,
.homepage-layout > .main-column {
  flex: 1 1 auto;
  min-width: 0;
}

.wrapper > nav {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: #24292e;
  border-bottom: 2px solid #6b6767;
}

.navbar {
  display: flex;
  align-items: center;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar-ul {
  margin-left: auto;
  margin-right: 0%;
  display: flex;
  gap: 1rem;
}

.toc {
  flex: 0 0 140px;
  text-align: right;
  position: sticky;
  top: 4rem;
  align-self: flex-start;
  background-color: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 1rem;
  box-sizing: border-box;
}

.toc ul {
  list-style: circle;
  padding: 0;
  margin: 0;
}

.toc li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .publications-page,
  .homepage-layout {
    flex-direction: column;
  }

  .toc {
    position: static;
  }
}