/* NED metric help — the "?" marker and its tooltip. Shared by the Agency Dashboard
   and the client dashboards (inlined there at build time). Colors come from
   whichever page hosts it: --tooltip-bg / --tooltip-ink on client dashboards,
   --surface-2 / --white on the agency pages; the fallbacks cover both. */
.help {
  display: inline-grid; place-items: center;
  width: 15px; height: 15px; margin-left: 6px; padding: 0;
  vertical-align: 1px;
  border: 1px solid currentColor; border-radius: 50%;
  background: transparent; color: inherit;
  font: 500 10px/1 var(--font-body, var(--serif, system-ui, sans-serif));
  letter-spacing: 0; text-transform: none;
  opacity: 0.55; cursor: help;
  transition: opacity .15s ease, background .15s ease, color .15s ease;
}
.help:hover, .help:focus-visible, .help[aria-expanded="true"] { opacity: 1; }
.help:focus-visible { outline: 2px solid var(--lime, var(--accent, currentColor)); outline-offset: 2px; }
th .help { vertical-align: 0; }

.help-tip {
  position: absolute; z-index: 60;
  width: min(320px, calc(100vw - 16px));
  padding: 12px 14px;
  background: var(--tooltip-bg, var(--surface-2, #141414));
  color: var(--tooltip-ink, var(--white, #ffffff));
  border: 1px solid var(--line-strong, rgba(255,255,255,0.18));
  border-radius: 10px;
  box-shadow: 0 14px 40px -14px rgba(0, 0, 0, 0.7);
  font-size: 13px; line-height: 1.5; text-align: left;
  text-transform: none; letter-spacing: 0; font-weight: 400;
  pointer-events: none;
}
.help-tip[hidden] { display: none; }
.help-tip p { margin: 0; }
.help-tip .help-name { font-weight: 600; margin-bottom: 4px; }
.help-tip .help-what { opacity: 0.85; }
.help-tip .help-how {
  margin-top: 8px; padding-top: 8px;
  border-top: 1px solid rgba(128, 128, 128, 0.35);
  font-variant-numeric: tabular-nums; opacity: 0.95;
}
.help-tip .help-how::before { content: "How: "; font-weight: 600; opacity: 0.7; }
@media (prefers-reduced-motion: reduce) { .help { transition: none; } }
