/* Hover-hint component — shared across pages. */

.hint-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 4px;
  border-radius: 50%;
  background: #e3ecf7;
  color: #2a6fb5;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
  user-select: none;
  transition: background-color 120ms ease, color 120ms ease;
}

.hint-marker:hover,
.hint-marker:focus {
  background: #c8dcf3;
  color: #14467a;
  outline: none;
}

.hint-popover {
  position: absolute;
  z-index: 9999;
  max-width: 320px;
  padding: 10px 12px;
  background: #1f2937;
  color: #f3f4f6;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  font-size: 12.5px;
  line-height: 1.45;
  pointer-events: auto;
}

.hint-popover[hidden] {
  display: none;
}

.hint-popover-title {
  font-weight: 700;
  margin-bottom: 4px;
  color: #ffffff;
}

.hint-popover-title[hidden] {
  display: none;
}

.hint-popover-body {
  color: #e5e7eb;
  white-space: pre-line;
}

.hint-popover-body strong {
  color: #ffffff;
}

@media (max-width: 600px) {
  .hint-popover {
    max-width: calc(100vw - 24px);
  }
}
