/* packages/shared/components/info-hint.css
   Click-to-open glossary popover. The icon is always visible (never
   hover-revealed) — see docs/superpowers/specs/2026-07-06-glossary-info-hints-design.md.
   Reuses existing tokens only — no new tokens defined (Theme Rule 3
   only requires new tokens when none of the existing ones fit; the
   tooltip-surface and card-shadow tokens already cover this shape). */

.info-hint-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* 24px meets the WCAG 2.2 AA minimum target size (24x24); the SVG glyph
     inside stays at 14x14 so the visible icon doesn't look oversized next
     to inline text — this only grows the tappable/clickable area. */
  width: 24px;
  height: 24px;
  margin-left: 6px;
  border-radius: 50%;
  color: var(--cyan);
  background: transparent;
  border: 1px solid var(--cyan);
  cursor: pointer;
  vertical-align: middle;
  position: relative;
}

.info-hint-btn:hover {
  background: var(--cyan-glow);
}

.info-hint-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.info-hint-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 300;
  width: 260px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--tooltip-bg);
  color: var(--tooltip-fg);
  font-family: 'Inter', sans-serif;
  box-shadow: var(--shadow-card-hover);
}

.info-hint-popover--flip-x { left: auto; right: 0; }
.info-hint-popover--flip-y { top: auto; bottom: calc(100% + 8px); }

.info-hint-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 6px;
  color: var(--tooltip-fg);
}

.info-hint-what,
.info-hint-why {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 6px 0;
}

.info-hint-why { margin-bottom: 0; }
