/* ────────────────────────────────────────────────────────────────────────────
   TOOLTIP
   ──────────────────────────────────────────────────────────────────────────── */
.tooltip-wrapper { position: relative; display: inline-flex; }

.tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg-card);
  font-size: 11.5px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: var(--r-md);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
  z-index: var(--z-tip);
  letter-spacing: -0.01em;
}

.tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text);
}

.tooltip-wrapper:hover .tooltip,
.tooltip.is-visible { opacity: 1; }

.tooltip[data-dir="bottom"] { bottom: auto; top: calc(100% + 10px); }
.tooltip[data-dir="bottom"]::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--text); }
