/* Glossary term tooltip styles */

.cascade-glossary-tooltip {
  position: absolute;
  z-index: 2000;
  width: 240px;
  padding: 16px;
  background: #e7f3fe;
  border: none;
  border-radius: 8px;
  box-shadow: 0 1px 8px 0 rgba(0, 72, 123, 0.25);
  font-family: 'BoeingMesoRegular', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #14191f;
  pointer-events: none;
  white-space: normal;
  opacity: 0;
  transform: translateY(4px);
  transition: all 300ms;
}

.cascade-glossary-tooltip--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cascade-glossary-tooltip__term {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 4px;
  color: #14191f;
}

.cascade-glossary-tooltip__definition {
  margin: 0;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  color: #14191f;
}

/* Dark mode */
html[data-theme="dark"] .cascade-glossary-tooltip {
  background: #1B2732;
  box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.4);
  color: #FFFFFF;
}

html[data-theme="dark"] .cascade-glossary-tooltip__term {
  color: #FFFFFF;
}

html[data-theme="dark"] .cascade-glossary-tooltip__definition {
  color: #B7C9DC;
}

/* Style :term: references with dotted underline */
a.reference.internal span.std-term {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

a.reference.internal span.std-term:hover {
  text-decoration-style: solid;
}
