/* Vendored from packages/hint/src/hint.css by scripts/vendor-kit.mjs. Do not edit. */
/* @bearmark/hint — the look of a tip and of «?» (design/core/BmTooltip.tsx).
   Only the kit's roles: the bubble is the inverse chip (--bm-inverse with
   --bm-on-inverse: iron on a light page, ivory on a dark one), the «?» is
   a soft mark, the text's ink under the pointer and the bubble's own pair
   when open, and the kit's one focus ring. */

/* ---- «?» ------------------------------------------------------------------- */

.bm-help {
  position: relative;
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 18px;
  height: 18px;
  margin: 0 0 0 6px;
  padding: 0;
  border: 1.5px solid currentColor;
  border-radius: var(--bm-radius-pill, 999px);
  background: transparent;
  color: var(--bm-text-soft);
  font: 700 11px/1 var(--bm-font-body, inherit);
  vertical-align: -3px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    color var(--bm-dur-fast, 120ms) var(--bm-ease-standard, ease),
    background-color var(--bm-dur-fast, 120ms) var(--bm-ease-standard, ease);
}
.bm-help::before {
  content: '?';
  margin-top: 1px;
}
/* The target is larger than the mark, never the layout: 34px, 44px under a
   finger. */
.bm-help::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: var(--bm-radius-pill, 999px);
}
/* Under the pointer the mark darkens to the text's ink; open, it takes the
   bubble's own pair, so the «?» and what it says are one colour: 13.5:1 or
   more in every scope of the kit. The accent pair was 3.3:1 in games-light. */
.bm-help:hover {
  color: var(--bm-text);
}
.bm-help[aria-expanded='true'] {
  border-color: var(--bm-inverse);
  background: var(--bm-inverse);
  color: var(--bm-on-inverse);
}
/* The kit's one focus indicator (design/core/focusRing.ts). */
.bm-help:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--bm-focus),
    0 0 0 5px var(--bm-focus-ring);
}
@media (pointer: coarse) {
  .bm-help::after {
    inset: -13px;
  }
}

/* A long press asks for the tip: no callout, no magnifier over it. */
.bm-has-tip {
  -webkit-touch-callout: none;
}

/* ---- the bubble -------------------------------------------------------------- */

.bm-hint {
  --bm-hint-arrow: 50%;
  position: fixed;
  z-index: var(--bm-z-tooltip, 1500);
  left: 0;
  top: 0;
  box-sizing: border-box;
  width: max-content;
  max-width: min(280px, calc(100vw - 16px));
  padding: 7px 10px 8px;
  border-radius: var(--bm-radius-md, 8px);
  background: var(--bm-inverse);
  color: var(--bm-on-inverse);
  /* A hairline of its own ink: it parts from a header or a page of its own
     colour. */
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--bm-on-inverse) 14%, transparent),
    var(--bm-shadow-md);
  font: 400 13px/18px var(--bm-font-body, inherit);
  overflow-wrap: anywhere;
  text-align: start;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity var(--bm-dur-fast, 120ms) var(--bm-ease-standard, ease),
    transform var(--bm-dur-fast, 120ms) var(--bm-ease-out, ease-out);
}
.bm-hint[data-side='bottom'] {
  transform: translateY(-4px);
}
.bm-hint[data-state='open'] {
  opacity: 1;
  transform: none;
}
.bm-hint[hidden] {
  display: none;
}
/* An explanation reads at body size; a tip stays a one-liner chip. */
.bm-hint[data-mode='help'] {
  max-width: min(300px, calc(100vw - 16px));
  padding: 10px 12px 11px;
  font-size: 14px;
  line-height: 20px;
}
.bm-hint__title {
  margin: 0 0 3px;
  font-weight: 600;
}
.bm-hint__title[hidden] {
  display: none;
}
.bm-hint__body > :first-child {
  margin-top: 0;
}
.bm-hint__body > :last-child {
  margin-bottom: 0;
}
.bm-hint__body p,
.bm-hint__body ul {
  margin: 6px 0;
}
.bm-hint__body ul {
  padding-left: 18px;
}
.bm-hint__arrow {
  position: absolute;
  left: calc(var(--bm-hint-arrow) - 5px);
  width: 10px;
  height: 10px;
  background: inherit;
  transform: rotate(45deg);
}
.bm-hint[data-side='top'] .bm-hint__arrow {
  bottom: -4px;
  border-bottom-right-radius: 2px;
}
.bm-hint[data-side='bottom'] .bm-hint__arrow {
  top: -4px;
  border-top-left-radius: 2px;
}

/* Heard, not seen. */
.bm-hint__say {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .bm-hint,
  .bm-hint[data-side='bottom'] {
    transform: none;
  }
}
