/* Lux-compatible academic style */

body {
  font-size: 16.5px;
  line-height: 1.7;
  background: #ffffff;
  color: #222222;
}

/* Main content width */

main {
  max-width: 850px;
  margin: 0 auto;
}

/* Navbar */

.navbar {
  border-bottom: 1px solid #e6e6e6;
}

.navbar-title {
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Headings */

h1 {
  font-size: 2.2rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 2rem;
  margin-bottom: 1.2rem;
}

h2 {
  font-size: 1.35rem;
  font-weight: 500;
  margin-top: 2.6rem;
  margin-bottom: 1rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #eeeeee;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1.8rem;
}

/* Intro block */

.intro {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

/* Profile picture */

.profile-pic {
  width: 95px;
  height: 95px;
  object-fit: cover;
  border-radius: 50%;
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  filter: grayscale(10%);
}

/* Paragraphs */

p {
  max-width: 760px;
}

/* Links */

a {
  color: #111111;
  text-decoration: none;
  border-bottom: 1px solid #bbbbbb;
}

a:hover {
  color: #000000;
  border-bottom: 1px solid #000000;
}

/* Do not underline navbar links */

.navbar a {
  border-bottom: none;
}

/* Lists */

li {
  margin-bottom: 0.35rem;
}

/* Publications */

.pub-title,
strong {
  font-weight: 600;
}

.pub-authors {
  color: #444444;
}

.pub-venue,
em {
  color: #555555;
}

/* Code-style DOI links */

code {
  font-size: 0.9em;
  color: #333333;
  background-color: #f4f4f4;
  padding: 0.12rem 0.25rem;
  border-radius: 4px;
}

/* Mobile */

@media (max-width: 700px) {
  main {
    max-width: 92%;
  }

  .profile-pic {
    float: none;
    display: block;
    margin: 0 0 1.5rem 0;
  }
}

a {
  color: #374151;
  text-decoration: none;
  border-bottom: 1px solid #d1d5db;
}

a:hover {
  color: #111827;
  border-bottom: 1px solid #111827;
}
.network-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0rem;
  font-size: 0.9rem;
}

#collab-network {
  width: 100%;
  margin-top: -1.5rem;
  margin-bottom: 3rem;
  border: none;
}

#collab-network svg {
  width: 100%;
  max-width: 1150px;
  height: auto;
  min-height: 0;
  background: transparent;
  border: none;
}
 

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.legend-dot {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
}

.publication-list {
  padding-left: 1.2rem;
}

.publication-item {
  margin-bottom: 1.35rem;
}

.publication-authors {
  color: #444444;
}

.publication-note {
  color: #666666;
  font-size: 0.95em;
}

.publication-item code {
  font-size: 0.9em;
}

.center {
  text-align: center;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.v-center {
  align-items: center;
}

.v-top {
  align-items: flex-start;
}

.v-top h3 {
  margin-top: 0;
}

.news-carousel {
  position: relative;
  margin: 1.5rem 0 2rem 0;
  padding: 0.75rem 2.5rem;
  border-top: 1px solid #eeeeee;
  border-bottom: 1px solid #eeeeee;
  width: 100%;
  box-sizing: border-box;
}

.news-window {
  width: 100%;
  overflow: hidden;
}

.news-track {
  display: flex;
  transition: transform 0.45s ease;
  width: 100%;
}

.news-item {
  flex: 0 0 100%;
  min-width: 0;
  box-sizing: border-box;
  font-size: 0.95rem;
  color: #333333;

  display: flex;
  align-items: center;
  gap: 0.8rem;
  overflow: hidden;
}

.news-item p {
  margin: 0;
}

.news-item img {
  width: 200px;
  height: 150px;
  object-fit: contain;
  flex: 0 0 10px;
}

.news-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 1.8rem;
  height: 1.8rem;
  line-height: 1.8rem;
  text-align: center;

  cursor: pointer;
  font-size: 1.6rem;
  color: #555555;
  text-decoration: none;
  border-bottom: none;
  user-select: none;
}

#news-prev {
  left: 0.2rem;
}

#news-next {
  right: 0.2rem;
}

.news-button:hover {
  color: #000000;
  border-bottom: none;
}

.spacer {
  height: 2rem;
}