/* Shared inline help trigger and the single floating tooltip surface. */

.help-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-style: italic;
  line-height: 1;
  cursor: help;
  vertical-align: 1px;
}

.help-tip:hover,
.help-tip:focus-visible {
  border-color: var(--color-action);
  color: var(--color-action);
}

.floating-tooltip {
  position: fixed;
  /* Short labels size to content; longer guidance wraps within the viewport. */
  width: fit-content;
  max-width: min(360px, calc(100vw - 32px));
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: var(--border-thin);
  color: var(--color-text);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-tooltip);
  pointer-events: none;
  text-transform: none;
  letter-spacing: 0;
}
