.vocab-term {
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: #627c54;
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  cursor: help;
}
.vocab-term:focus-visible {
  outline: 2px solid #526f20;
  outline-offset: 3px;
  border-radius: 2px;
}
.strand-snapshot .vocab-term,
.hero-art .vocab-term {
  text-decoration-color: currentColor;
}
.vocab-tooltip {
  position: fixed;
  z-index: 1000;
  width: 23rem;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  overflow: visible;
  padding: 0;
  border: 1px solid #597056;
  border-top: 4px solid #d5f45b;
  border-radius: 3px;
  background: #1c2937;
  color: #fbfbf5;
  box-shadow: 0 8px 26px #13231836;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  cursor: auto;
  overflow-wrap: break-word;
}
.vocab-tooltip-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 22px;
}
.vocab-tooltip::before {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  height: 12px;
  top: -12px;
}
.vocab-tooltip[data-side="above"]::before {
  top: auto;
  bottom: -12px;
}
.vocab-tooltip p { margin: 0; }
.vocab-tooltip .vocab-tooltip-term {
  color: #d5f45b;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 9px;
}
.vocab-tooltip .vocab-tooltip-section + .vocab-tooltip-section {
  color: #e2e9df;
  margin-top: 11px;
}
.vocab-tooltip-label {
  display: block;
  color: #d5f45b;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 3px;
}
.vocabulary-hint {
  color: var(--muted, #5b665f);
  font-size: .875rem;
  line-height: 1.6;
}
@media (max-width: 600px) {
  .vocab-tooltip-body { padding: 17px 19px; }
}
@media (forced-colors: active) {
  .vocab-term { text-decoration-color: LinkText; }
  .vocab-tooltip { border: 2px solid CanvasText; }
}
