/* Solid header on papers page */
body:has(.papers-page) header {
  background: #fff;
}

.papers-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 5rem 3rem 3rem;
}

.papers-title {
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  color: var(--primary-grey);
  letter-spacing: -0.5px;
}

.year-group {
  margin-bottom: 3rem;
}

.year-heading {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--st1);
  margin-bottom: 1.4rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid color-mix(in srgb, var(--st3) 50%, white);
  letter-spacing: -0.3px;
}

.paper {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  padding: 1rem 1rem;
  border-radius: 6px;
  transition: all .25s ease;
  margin-bottom: 1.2rem;
}

.paper:last-child {
  margin-bottom: 0;
}


.paper .pub-content {
  flex: 1;
  min-width: 0;
}

.paper .pub-title {
  margin: 0 0 0.6rem;
  font-size: 1.18rem;
  line-height: 1.45;
  font-weight: 700;
  color: var(--primary-grey);
}

.paper .pub-authors {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  color: rgba(0,0,0,.65);
  line-height: 1.6;
}

.paper .pub-authors strong {
  font-weight: 700;
  color: rgba(0,0,0,.85);
}

.paper .pub-venue {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(0,0,0,.5);
}

.paper .pub-venue em {
  font-style: normal;
  font-weight: 600;
}

.paper .pub-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.paper .pub-link {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background: none;
  color: var(--primary-grey);
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all .2s ease;
  border: 1px solid rgb(165, 165, 165);
}

.paper .pub-link:hover {
  background: rgb(186, 186, 186);
  color:#fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,.12);
}

.paper .pub-link::before {
  content: '';
}

.preprint-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  background: color-mix(in srgb, var(--st2) 12%, white);
  color: var(--st2);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  font-style: normal;
  margin-left: 0.5rem;
  vertical-align: middle;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Tablet */
@media screen and (max-width: 1024px) {
  .papers-page {
    padding: 4.5rem 2.5rem 2.5rem;
  }
}

/* Mobile */
@media screen and (max-width: 768px) {
  .papers-page {
    padding: 160px 2rem 2rem;
  }

  .papers-title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .year-heading {
    font-size: 1.35rem;
  }

  .paper {
    padding: 1.2rem 1.4rem;
  }

  .paper .pub-title {
    font-size: 1.08rem;
  }

  .paper .pub-authors {
    font-size: 0.92rem;
  }
}

@media screen and (max-width: 480px) {
  .papers-page {
    padding: 160px 1.5rem 1.5rem;
  }

  .papers-title {
    font-size: 1.5rem;
  }

  .year-group {
    margin-bottom: 2rem;
  }

  .paper {
    padding: 1rem 1.2rem;
  }

  .paper .pub-title {
    font-size: 1rem;
  }

  .paper .pub-link {
    font-size: 0.8rem;
    padding: 0.3rem 0.7rem;
  }
}
