.pub-entry {
  margin-bottom: 1.5rem;
}

.pub-citation-text {
  margin: 0.25rem 0 0.5rem 0;
  line-height: 1.6;
}

.cite-btn {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.78rem;
  font-family: inherit;
  color: #27262b;
  background: #f5f6fa;
  border: 1px solid #d5d8e0;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 0.5rem;
  transition: background 0.15s;
}

.cite-btn:hover {
  background: #e8eaf2;
}

.cite-panel {
  border: 1px solid #d5d8e0;
  border-radius: 6px;
  background: #fafbfd;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.cite-tabs {
  display: flex;
  border-bottom: 1px solid #d5d8e0;
  background: #f0f1f7;
}

.cite-tab {
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-family: inherit;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  color: #555;
  transition: color 0.15s, border-color 0.15s;
}

.cite-tab:hover {
  color: #27262b;
}

.cite-tab.active {
  color: #7253ed;
  border-bottom-color: #7253ed;
  font-weight: 600;
}

.cite-pane {
  display: none;
  padding: 0.75rem 1rem;
  position: relative;
}

.cite-pane.active {
  display: block;
}

.cite-pane pre {
  margin: 0 0 0.5rem 0;
  padding: 0;
  background: transparent;
  border: none;
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 0.8rem;
  line-height: 1.5;
}

.cite-pane code {
  background: transparent;
  font-size: inherit;
}

.cite-copy-btn {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  font-family: inherit;
  color: #27262b;
  background: #fff;
  border: 1px solid #d5d8e0;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

.cite-copy-btn:hover {
  background: #e8eaf2;
}

.cite-copy-btn.copied {
  color: #27ae60;
  border-color: #27ae60;
}
