/* Build F2: teaching-term component styles. Pairs with _shared/terms.js. A
 * .term keeps its real industry name with a dotted underline cue; hover/tap/focus
 * reveals a one-sentence plain-language definition. Works on embedded (Polaris-
 * adjacent) and web surfaces; falls back gracefully if the brand tokens are
 * absent (literal colours match the token defaults). */

.term {
  position: relative;
  border-bottom: 1px dotted var(--oddly-ink-muted, #8A8A98);
  cursor: help;
  font-weight: inherit;
}
.term:hover, .term:focus, .term:focus-within {
  border-bottom-color: var(--oddly-teal, #2C7873);
  outline: none;
}

.term-pop {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 240px;
  background: var(--oi-navy, #1A1A2E);
  color: var(--oddly-canvas, #FAFAF7);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  padding: 8px 10px;
  border-radius: var(--oddly-radius-sm, 6px);
  box-shadow: var(--oddly-shadow-card, 0 6px 20px rgba(26, 26, 46, 0.16));
  opacity: 0;
  visibility: hidden;
  transition: opacity 120ms ease;
  z-index: 40;
  pointer-events: none;
}
.term-pop::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--oi-navy, #1A1A2E);
}
.term:hover .term-pop, .term:focus .term-pop, .term:focus-within .term-pop {
  opacity: 1;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .term-pop { transition: none; }
}
