/* ---------- Publications page ---------- */

/* Filter buttons */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 18px;
}
.filters button {
  font: 600 13px "Segoe UI", Roboto, Arial, sans-serif;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px solid #cfd5e6;
  background: white;
  color: #33384f;
  cursor: pointer;
}
.filters button:hover {
  border-color: var(--blue);
}
.filters button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

/* "Jump to year" row */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
}
.jump span {
  color: #5a6078;
}
.jump a {
  color: var(--blue);
  text-decoration: none;
}
.jump a:hover {
  text-decoration: underline;
}

/* Year groups */
.pubs {
  padding-top: 10px;
}
.year {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  padding: 30px 0;
  border-top: 1px solid #dfe3ee;
}
.year-label {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--blue);
}

/* One publication */
.pub {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #e9ecf4;
}
.pub:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}
.pub h3 {
  margin: 0;
  font-size: 16.5px;
  line-height: 1.4;
  color: var(--ink);
}
.pub-authors {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #4a5068;
}
.pub-authors strong {
  color: #0b0e1a;
}
.pub-venue {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: #5a6078;
}
.pub-venue a {
  margin-left: 10px;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}
.pub-venue a:hover {
  text-decoration: underline;
}

/* Journal / Conference tag */
.tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 9px;
  border-radius: 12px;
  font-size: 11.5px;
  font-weight: 700;
  font-style: normal;
}
.tag.journal {
  color: var(--blue);
  background: #eaeefd;
}
.tag.conference {
  color: #8a4b00;
  background: #fdf0dd;
}

/* Hidden by the filter buttons */
.hidden {
  display: none;
}

@media (max-width: 800px) {
  .year { grid-template-columns: 1fr; gap: 12px; }
  .year-label { font-size: 24px; }
}
