/* Publications page replacement. This file styles only publications.html. */

.publication-page {
  background: #ffffff;
  color: #111827;
}

.pub-title-block {
  padding: 34px 0 18px;
  text-align: center;
}

.pub-title-block h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #111827;
}

.pub-title-block p {
  margin: 10px 0 0;
}

.pub-title-block a {
  color: #0066ff;
  text-decoration: none;
}

.pub-title-block a:hover {
  text-decoration: underline;
}

.pub-tools {
  padding: 12px 0 18px;
}

.pub-filter-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pub-filter {
  border: 1px solid #cfd8e3;
  background: #ffffff;
  color: #374151;
  border-radius: 999px;
  padding: 7px 13px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.pub-filter:hover,
.pub-filter.active {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.pub-list-section {
  padding: 0 0 64px;
}

.publication-list {
  max-width: 1120px;
}

.pub-year-group {
  margin-top: 26px;
}

.pub-year-group h2 {
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: #111827;
  margin: 22px 0 10px;
  border-bottom: 1px solid #d8dee9;
  padding-bottom: 7px;
}

.pub-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px;
  padding: 12px 12px;
}

.pub-year-group .pub-row:nth-of-type(odd) {
  background: #eef6ff;
}

.pub-kind {
  color: #111827;
  font-size: 0.95rem;
  padding-top: 2px;
  white-space: nowrap;
}

.pub-entry {
  min-width: 0;
}

.pub-entry p {
  margin: 0;
}

.pub-title {
  color: #111827;
  font-size: 1rem;
  line-height: 1.42;
}

.pub-title a,
.pub-venue a {
  color: #0066ff;
  text-decoration: none;
}

.pub-title a:hover,
.pub-venue a:hover {
  text-decoration: underline;
}

.pub-authors {
  margin-top: 3px !important;
  color: #111827;
}

.pub-venue {
  margin-top: 3px !important;
  color: #111827;
}

.pub-note {
  margin-top: 3px !important;
  font-style: italic;
  color: #111827;
}

.pub-empty {
  margin: 32px 0;
  padding: 18px;
  border: 1px dashed #d8dee9;
  text-align: center;
  color: #5f6472;
  background: #f8fafc;
}

@media (max-width: 760px) {
  .pub-row {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .pub-kind {
    font-weight: 800;
    color: #5f6472;
  }
}
