/*
 * benchmark-citations.css
 * Owns: inline benchmark citation icons and tooltip styles used across all dashboard modules.
 * Does NOT own: page layout, KPI card styles, chart theming.
 */

/* ── Citation icon ─────────────────────────────────────────────────────────── */
.cite-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(109, 129, 150, 0.12);
  color: #6D8196;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 3px;
  position: relative;
  flex-shrink: 0;
  border: 1px solid rgba(109, 129, 150, 0.25);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  font-family: inherit;
  padding: 0;
  user-select: none;
}
.cite-icon:hover,
.cite-icon:focus {
  background: rgba(109, 129, 150, 0.22);
  outline: none;
}
.cite-icon svg {
  width: 8px;
  height: 8px;
  fill: currentColor;
}

/* ── Citation tooltip ──────────────────────────────────────────────────────── */
.cite-tooltip {
  position: fixed;
  z-index: 9999;
  background: #1a2332;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 10px 13px;
  width: 260px;
  font-size: 11.5px;
  line-height: 1.55;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.14);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.cite-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cite-tooltip-source {
  font-weight: 700;
  color: #7A92A6;
  margin-bottom: 3px;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.cite-tooltip-year {
  color: #94a3b8;
  font-size: 10.5px;
  margin-bottom: 4px;
}
.cite-tooltip-note {
  color: #cbd5e1;
  font-size: 10.5px;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 5px;
  padding-top: 5px;
}
.cite-tooltip-link {
  display: inline-block;
  margin-top: 6px;
  color: #7A92A6;
  text-decoration: underline;
  font-size: 10.5px;
  cursor: pointer;
}
.cite-tooltip-link:hover {
  color: #9db5c7;
}

/* ── Methodology footer strip ──────────────────────────────────────────────── */
.methodology-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0 0;
  font-size: 10.5px;
  color: #6b7280;
  border-top: 1px solid rgba(0,0,0,0.06);
  margin-top: 12px;
}
.methodology-footer a {
  color: #6D8196;
  text-decoration: none;
  font-weight: 500;
}
.methodology-footer a:hover {
  text-decoration: underline;
}
