/* Styling for the publication list (publications.qmd) */

/* One paper: year on the left, details on the right.
   A thin line above the first paper of each year groups papers by year. */
.pub {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding: 0.6rem 0;
}

.pub-new-year {
  margin-top: 0.6rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--bs-border-color);
}

.pub-year {
  font-weight: 600;
  font-size: 0.95em;
  color: var(--bs-secondary-color);
}

/* Phones: year above its papers instead of beside them */
@media (max-width: 575.98px) {
  .pub {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .pub-year:empty {
    display: none;
  }
}

/* Titles link to the paper but stay dark until hovered */
.pub-title {
  line-height: 1.35;
  margin-bottom: 0.2rem;
}

.pub-title a {
  font-weight: 600;
  color: var(--bs-body-color);
  text-decoration: none;
}

.pub-title a:hover {
  color: var(--bs-primary);
}

.pub-authors,
.pub-meta {
  font-size: 0.875em;
  color: var(--bs-secondary-color);
}

.pub-meta {
  margin-top: 0.35rem;
}

.pub-journal {
  font-style: italic;
  margin-right: 0.25rem;
}

/* Small grey pill links (app, Code, PMC, Preprint, press) */
.pub-link {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0.05rem 0.55rem;
  font-size: 0.75rem;
  line-height: 1.4;
  border: 1px solid var(--bs-border-color);
  border-radius: 999px;
  color: var(--bs-secondary-color);
  text-decoration: none;
}

.pub-link:hover {
  color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.pub-intro,
.pub-footnote {
  color: var(--bs-secondary-color);
}

.pub-footnote {
  margin-top: 1.5rem;
  font-size: 0.8em;
}
