.context-help {
  position: relative;
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border: 1px solid var(--brand);
  border-radius: 50%;
  color: var(--brand);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  vertical-align: middle;
}

.context-help .hint-text {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  box-sizing: border-box;
  width: min(300px, calc(100vw - 24px));
  padding: 8px 10px;
  border: 1px solid var(--theme-border);
  border-radius: 8px;
  background: var(--theme-surface);
  color: var(--theme-text);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.context-help:hover .hint-text,
.context-help:focus .hint-text {
  visibility: visible;
  opacity: 1;
}

.context-help:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .context-help .hint-text {
    position: fixed;
    top: auto;
    left: 12px;
    right: 12px;
    width: auto;
  }
}
