/* ── References page: card-style citation list ────────────────────────────── */

.citation-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.citation-list .citation {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.8rem 1.1rem;
  background: var(--pst-color-surface, #f8f9fa);
  border: 1px solid var(--pst-color-border, #dee2e6);
  border-left: 4px solid var(--pst-color-primary, #3b82f6);
  border-radius: 0.55rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.15s ease;
}

.citation-list .citation:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

/* Number badge */
.citation-list .citation .label {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  padding: 0.15rem 0.4rem;
  background: var(--pst-color-primary, #3b82f6);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 0.35rem;
  letter-spacing: 0.01em;
  line-height: 1.4;
  /* override Sphinx default that adds a colon */
  list-style: none;
}

/* Hide the colon Sphinx adds after labels */
.citation-list .citation .label::after {
  content: none;
}

.citation-list .citation p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--pst-color-text-base, #212529);
}

/* Italics for titles (em tags from pybtex) */
.citation-list .citation p em {
  font-style: italic;
}

/* Repaired entries: dashed border + warning cursor to hint at tooltip */
.citation-list .citation[data-broken="1"] {
  border-left-color: #f59e0b;
  border-left-style: dashed;
  cursor: help;
}

.citation-list .citation[data-broken="1"] .label {
  background: #f59e0b;
}
