/* In-text citations (Wiley-style: linked year) + hover reference card */

.article-html .citation-node,
.article-html .citation-node.apa-cite {
  font-weight: inherit;
  white-space: nowrap;
}

.article-html a.citation-link,
.article-html a.citation-year-link {
  color: var(--wiley-link, #005274);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.article-html a.citation-year-link {
  border-bottom: 1px solid rgba(0, 82, 116, 0.35);
}

.article-html a.citation-link:hover,
.article-html a.citation-year-link:hover,
.article-html a.citation-link:focus-visible,
.article-html a.citation-year-link:focus-visible {
  color: #003d56;
  text-decoration: underline;
  outline: none;
}

.article-html .ref-item:target,
.article-html .ref-item.ref-item--highlight {
  background: #fff8e1;
  box-shadow: inset 3px 0 0 #f9a825;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.citation-hover-card {
  position: absolute;
  z-index: 10200;
  max-width: 380px;
  min-width: 260px;
  background: #fff;
  border: 1px solid #b8c5ce;
  border-radius: 4px;
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.18), 0 2px 6px -2px rgba(0, 0, 0, 0.08);
  padding: 12px 14px;
  font-family: "Open Sans", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #1c1d1e;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

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

.citation-hover-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 10px 0;
}

.citation-hover-text {
  font-size: 13px;
  color: #1c1d1e;
  margin-bottom: 8px;
}

.citation-hover-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.citation-hover-action,
.citation-hover-goto {
  color: #005274;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #005274;
  padding: 2px 8px;
  border-radius: 2px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
}

.citation-hover-action:hover,
.citation-hover-goto:hover {
  background: #005274;
  color: #fff;
}

.citation-hover-missing {
  color: #c62828;
  font-style: italic;
  font-size: 12px;
}

@media print {
  .citation-hover-card {
    display: none !important;
  }
}
