/* publications & projects pages — compact reference-style lists (publications.qmd / projects.qmd, rendered by _publications.ejs.md / _projects.ejs.md). deliberately plainer than the card grids elsewhere: this should read like a short CV list, not a gallery. */
.pub-list,
.project-list {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.pub-item,
.project-item {
  display: block;
  padding: 0.9rem 0;
  border-top: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.08));
}

.pub-item:last-child,
.project-item:last-child {
  border-bottom: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.08));
}

/* authors line: small and muted so the title is what stands out. the group's own people are wrapped in <strong> in publications.yml. */
.pub-authors {
  display: block;
  font-size: 0.8rem;
  color: var(--bs-secondary-color, #6c757d);
}

.pub-authors strong {
  color: var(--bs-body-color, #212529);
  font-weight: var(--fw-semibold);
}

/* authors/PIs who have their own People page are wrapped in a plain <a> in publications.yml/projects.yml — same "keep the muted text color, only pick up the link color on hover" treatment as ".pub-title a" below, so a linked name doesn't jump out in blue against the rest of the (intentionally understated) author line. */
.pub-authors a,
.project-pis a {
  color: inherit;
  text-decoration: none;
}

.pub-authors a:hover,
.project-pis a:hover {
  color: var(--bs-primary, #2780e3);
  text-decoration: underline;
}

/* title line: the main thing to read. the link keeps the body text color and only picks up the theme link color on hover. */
.pub-title {
  display: block;
  margin: 0.15rem 0;
  font-size: 0.95rem;
  font-weight: var(--fw-semibold);
  line-height: 1.35;
}

.pub-title a {
  color: inherit;
  text-decoration: none;
}

.pub-title a:hover {
  color: var(--bs-primary, #2780e3);
  text-decoration: underline;
}

.pub-venue {
  display: block;
  font-size: 0.8rem;
  color: var(--bs-secondary-color, #6c757d);
}

/* projects reuse the same list frame, with a couple of extra rows. */
.project-title {
  display: block;
  font-size: 0.95rem;
  font-weight: var(--fw-semibold);
  line-height: 1.35;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  margin: 0.2rem 0;
  font-size: 0.78rem;
  color: var(--bs-secondary-color, #6c757d);
}

.project-ref {
  font-family: var(--bs-font-monospace, ui-monospace, monospace);
}

.project-pis {
  display: block;
  font-size: 0.82rem;
}

.project-pi-aff {
  color: var(--bs-secondary-color, #6c757d);
}

.project-funder {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--bs-secondary-color, #6c757d);
}

/* the "For the complete list…, see …" line under both lists. */
.pub-complete-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--bs-secondary-color, #6c757d);
}
