.paper-entry {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

/* 2) Tidy up the <summary> — no background box, stack title + buttons vertically */
.paper-details summary {
  list-style: none;        /* remove the default marker */
  cursor: pointer;
  display: flex;
  flex-direction: column;  /* stack title and buttons */
  align-items: flex-start;
  padding: 0;              /* let the spacing come from the title & buttons */
  margin-bottom: 0.5rem;   /* space before the abstract when open */
  background: none;        /* remove the gray box */
  border-radius: 0;
  font-size: 1.25rem;
  font-weight: bold;
}

/* keep the little triangle marker for collapse/expand */
.paper-details summary::marker {
  content: "▶";
  margin-right: 0.5rem;
  transition: transform 0.2s ease-in-out;
}
.paper-details[open] summary::marker {
  transform: rotate(90deg);
}

/* 3) Buttons now live in a row *below* the title */
.pdf-button,
.slides-button {
  font-size: 0.85rem;
  text-decoration: none;
  background: #ddd;
  padding: 0.25em 0.5em;
  border-radius: 0.25em;
  display: inline-flex;
  align-items: center;
  margin-top: 0.5rem;      /* lift them below the title */
  margin-right: 0.5rem;    /* space between buttons */
}
.pdf-button:hover,
.slides-button:hover {
  background: #ccc;
}
.pdf-button::before { content: "📄"; margin-right: 0.25em; }
.slides-button::before { content: "📈"; margin-right: 0.25em; }

/* 4) Details content (abstract + plot) unchanged */
.paper-details .abstract,
.paper-details .paper-plot {
  padding: 1rem;
  border: 1px solid #eee;
  border-top: none;
}
.paper-details .abstract {
  background: #fff;
  margin-bottom: 1rem;
}
.paper-details .paper-plot img {
  width: 100%;
  height: auto;
  display: block;
}
.paper-details summary .paper-title {
  color: inherit !important;
  text-decoration: none !important;
}
