/* citations.css — Citation hover tooltip styles */

.citation-tooltip {
  position: absolute;
  max-width: 420px;
  padding: 12px 16px;
  background: #fafaf8;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  font-size: 0.82rem;
  line-height: 1.5;
  z-index: 1002;
  opacity: 0;
  transition: opacity 150ms ease;
  pointer-events: none;
  font-family: 'Merriweather', Georgia, serif;
}

.citation-tooltip.visible {
  opacity: 1;
  pointer-events: auto;
}

.citation-tooltip .ct-authors {
  font-weight: 600;
  color: #1a1a1a;
}

.citation-tooltip .ct-title {
  color: #1a1a1a;
  margin-left: 0.2em;
}

.citation-tooltip .ct-journal {
  font-style: italic;
  color: #555;
}

.citation-tooltip .ct-year {
  font-weight: 600;
}

.citation-tooltip .ct-doi {
  display: inline-block;
  margin-left: 0.3em;
  font-size: 0.9em;
  color: #256;
  text-decoration: none;
  border-bottom: 1px dotted #256;
}
.citation-tooltip .ct-doi:hover {
  border-bottom-style: solid;
}

.citation-tooltip .ct-summary {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #eee;
  color: #666;
  font-style: italic;
  font-size: 0.78rem;
  line-height: 1.45;
}

/* Multiple refs stacked */
.citation-tooltip .ct-entry + .ct-entry {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}
