/* ===== Paper pages ===== */
.paper-page {
  padding-top: calc(var(--gap) * 2);
}

.paper-back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.paper-back-icon {
  width: 1.9rem;
  height: 1.9rem;
  padding: 0.45rem;
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, var(--text-muted) 40%, transparent);
  border-radius: 50%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: border-color 0.2s, transform 0.2s;
}

.paper-back:hover {
  color: var(--link-color);
  text-decoration: none;
}

.paper-back:hover .paper-back-icon {
  border-color: var(--link-color);
  transform: translateX(-3px);
}

.paper-page-venue {
  margin-top: 2.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.paper-page-title {
  font-family: 'Inter', sans-serif;
  font-size: 2.1rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-color);
  margin-top: 0.4rem;
}

.paper-page-authors {
  margin-top: 1rem;
  font-size: 1.1rem;
  line-height: 1.5;
}

.paper-page-authors strong {
  font-weight: 500;
}

.paper-page .buttons {
  margin-top: 1rem;
}

.paper-page h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.35rem;
  margin: 2.5rem 0 1rem;
}

.paper-page-abstract {
  font-size: 1.05rem;
  line-height: 1.7;
}

.paper-figure {
  margin-top: 2rem;
}

.paper-figure img {
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.bibtex {
  position: relative;
}

.bibtex pre {
  background: var(--tertiary);
  border-radius: var(--radius);
  padding: 1rem;
  font-size: 0.8rem;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre;
}

.bibtex-copy {
  position: absolute;
  top: 8px;
  right: 8px;
  font: inherit;
  font-size: 0.8rem;
  border: none;
  border-radius: var(--radius);
  padding: 2px 10px;
  background: var(--bg-color);
  color: var(--text-muted);
  cursor: pointer;
}

.bibtex-copy:hover {
  color: var(--link-color);
}

/* Small links after a publication entry on the home page */
.paper-links {
  display: inline;
  font-size: 0.9rem;
  white-space: nowrap;
}

.paper-links a {
  color: var(--text-muted);
}

.paper-links a:hover {
  color: var(--link-color);
}

.paper-page-note {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.paper-page-body {
  font-size: 1.05rem;
  line-height: 1.7;
}

.paper-page-body p + p {
  margin-top: 0.9rem;
}

.plain-list {
  padding-left: 1.25rem;
}

ul.plain-list {
  list-style: disc;
}

.plain-list li + li {
  margin-top: 0.35rem;
}

.plain-list strong {
  font-weight: 500;
}

.code-block {
  background: var(--tertiary);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  overflow-x: auto;
}

.paper-note {
  font-size: 0.9rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .paper-page-title {
    font-size: 1.6rem;
  }
}

.session-plain li + li {
  margin-top: 0.35rem;
}
