tool-tip {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  opacity: 0;
  transform: translateX(var(--_x, 0)) translateY(var(--_y, 0));
  transition: opacity .2s ease, transform .2s ease;
  position: absolute;
  z-index: 1;
  inline-size: max-content;
  max-inline-size: 35ch;
  text-align: start;
  font-size: 1rem;
  font-weight: normal;
  border-radius: 0.5rem;
  padding: 1rem;
  background: rgba(18, 20, 22, 0.92);
  box-shadow: 0px 4px 8px 0px rgba(0, 0, 0, 0.12);
  color: white;
  white-space: normal;
  inset-inline-start: 12.5%;
}

/* create a stacking context for elements with > tool-tips */
tr:has(tool-tip) {
  position: relative;
}

:not(em):has(~ tool-tip) {
  cursor: default;
  padding-block-end: 0.5rem;
  border-bottom: 0.125rem dotted var(--text-fg-300, #C2C4C6);
}

em:has(~ tool-tip) {
  color: #828486;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.71;
}

/* when those parent elements have focus, hover, etc */
:has(> tool-tip):is(:hover, :focus-visible, :active) > tool-tip {
  opacity: 1;
  transition-delay: 200ms;
}

/* prepend some prose for screen readers only */
tool-tip::before {
  content: "; Has tooltip: ";
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
}
