/* =========================================================
   PUBLICATIONS PAGE ONLY
   Publication years, publication cards, and publication actions.
   ========================================================= */

.pubs {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pubs li {
  margin: 14px 0;
  padding: 0 0 10px 0;
  border-bottom: 1px solid var(--soft);
}

.pubs li:last-child {
  border-bottom: none;
}

.pubs strong {
  color: var(--brand);
}

.pubs a {
  display: inline-block;
  margin-top: 6px;
  word-break: break-all;
  color: var(--brand);
}

.pubs a:hover {
  text-decoration: underline;
}

.card.pubs-card {
  opacity: 0;
  transform: translateY(15px);
  animation: fadeInUp .8s ease forwards;
  margin-top: 18px;
}

.pub-year {
  margin-top: 24px;
  padding-top: 6px;
  border-top: 1px solid var(--soft);
}

.pub-year h3 {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pub-year h3::before {
  content: "•";
  color: var(--brand);
  font-weight: 700;
}

.pub-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pub-card {
  background: var(--card);
  border: 1px solid var(--soft);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  opacity: 0;
  transform: translateY(10px);
}

.pub-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(31,35,45,.12), 0 4px 10px rgba(31,35,45,.08);
  border-color: color-mix(in oklab, var(--brand) 30%, var(--soft));
}

.pub-title {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

.pub-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.pub-venue {
  font-style: italic;
}

.pub-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.pub-actions a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--soft);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
}

.pub-actions a:hover {
  border-color: var(--brand);
  text-decoration: none;
}

.pub-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .5s ease, transform .5s ease;
}
