/* Dotted glossary terms + dark tooltip (shared: landing + app + Behind the scenes deck). */
.flow-deck-hint {
  position: relative;
  display: inline-block;
  cursor: help;
  color: #242424;
  border-bottom: 1px dotted rgba(0, 0, 0, 0.38);
  outline: none;
  max-width: 100%;
}

.flow-deck-hint:hover,
.flow-deck-hint:focus-visible {
  color: #000;
  border-bottom-color: rgba(0, 0, 0, 0.55);
}

.flow-deck-hint::after {
  content: attr(data-tooltip);
  position: absolute;
  left: auto;
  right: 0;
  bottom: calc(100% + 7px);
  min-width: 140px;
  max-width: min(260px, calc(100vw - 24px));
  padding: 8px 10px;
  background: #000;
  color: #fff;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
  pointer-events: none;
  opacity: 0;
  z-index: 320;
  transition: opacity 0.12s ease;
  transform: translateX(var(--deck-tip-shift, 0px));
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}

.flow-deck-hint:hover::after,
.flow-deck-hint:focus-visible::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .flow-deck-hint::after {
    transition: none;
  }
}
