/* Tooltip trigger — replaces the inline .tip styles in style.css for accessibility */
.tip {
  width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--gray-1);
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  border-radius: 50%;
  cursor: help;
  padding: 0;
  line-height: 1;
}
.tip:hover, .tip:focus-visible {
  border-color: var(--orange);
  color: var(--orange-text);
  outline: none;
}
.tip[aria-expanded="true"] {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* Floating panel — rendered once, repositioned per trigger */
.tooltip-panel {
  position: absolute;
  top: 0; left: 0;
  z-index: 1000;
  max-width: 320px;
  padding: 14px 16px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 100ms ease;
}
.tooltip-panel[data-open="true"] {
  opacity: 1;
}
.tooltip-panel[data-pinned="true"] {
  pointer-events: auto;
  box-shadow: 4px 4px 0 var(--orange);
}
.tooltip-panel strong {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--orange);
}
.tooltip-panel p { margin: 0 0 6px; }
.tooltip-panel p:last-child { margin-bottom: 0; }
.tooltip-panel p b {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  font-weight: 700;
  margin-right: 4px;
}
