/*
  Custom explore hover card. We do not use vis-network's .vis-tooltip:
  it is white-space:nowrap and treating title as text, so claim copy
  was clipped and unformatted — especially on dense graphs like nmap.
*/

.explore-tooltip {
  position: fixed;
  z-index: 1080;
  box-sizing: border-box;
  width: min(24rem, calc(100vw - 1.5rem));
  max-width: 24rem;
  padding: 0.8rem 1rem;
  background: #fff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
  pointer-events: none;
  white-space: normal;
  overflow: visible;
}

.explore-tooltip[hidden] {
  display: none;
}

.explore-tooltip__text {
  display: block;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.explore-tooltip__text + .explore-tooltip__meta {
  margin-top: 0.65rem;
}

.explore-tooltip__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.65rem;
  font-size: 0.75rem;
  color: #475569;
}

.explore-tooltip__claim {
  font-variant-numeric: tabular-nums;
}

.explore-tooltip__origin {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: #e2e8f0;
  color: #334155;
}

.explore-tooltip__origin--explicit {
  background: #d1fae5;
  color: #065f46;
}

.explore-tooltip__origin--derived {
  background: #e0f2fe;
  color: #075985;
}

.explore-tooltip__origin--attributed {
  background: #fef3c7;
  color: #92400e;
}

.explore-tooltip__origin--uncertain {
  background: #e2e8f0;
  color: #475569;
}
