.baytm-glossary,
.baytm-source-note {
  display: inline;
  cursor: help;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.14em;
  text-decoration-thickness: from-font;
  text-decoration-color: currentColor;
  position: relative;
  border-radius: 3px;
  padding: 0 2px;
}

.baytm-source-note[data-no-underline="1"] {
  text-decoration: none;
}

/* Im TinyMCE-Editor Unterstrich immer anzeigen, damit Pfleger annotierten Text erkennen */
.mce-content-body .baytm-source-note[data-no-underline="1"] {
  text-decoration: underline dotted !important;
  text-underline-offset: 0.14em !important;
  text-decoration-thickness: from-font !important;
  text-decoration-color: currentColor !important;
}

.baytm-glossary::after,
.baytm-source-note::after {
  display: none;
  content: none;
}

.baytm-inline-note-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.92em;
  height: 0.92em;
  margin-left: 0.22em;
  vertical-align: super;
  transform: translateY(-0.02em);
  color: currentColor;
  text-decoration: none;
  flex: 0 0 auto;
}

@media (hover: none), (pointer: coarse) {
  .baytm-inline-note-icon {
    width: 1.02em;
    height: 1.02em;
  }
}

.baytm-inline-note-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.baytm-glossary:hover,
.baytm-source-note:hover,
.baytm-glossary:focus-visible,
.baytm-source-note:focus-visible,
.baytm-glossary[aria-expanded="true"],
.baytm-source-note[aria-expanded="true"] {
  box-shadow: 0 0 0 2px #D3DDF2;
  border-radius: 3px;
  outline: none;
}

.baytm-glossary-tooltip {
  position: fixed;
  z-index: 99999;
  padding: 12px 16px;
  border-radius: 10px;
  background: #001F47;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
  font-family: "MuseoSans", sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  max-width: 320px;
  pointer-events: auto;
}

.baytm-glossary-tooltip__text {
  margin: 0;
}

.baytm-glossary-tooltip__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.baytm-glossary-tooltip__link:visited {
  color: #fff;
}

.baytm-glossary-tooltip__link:hover,
.baytm-glossary-tooltip__link:focus-visible,
.baytm-glossary-tooltip__link:visited:hover,
.baytm-glossary-tooltip__link:visited:focus-visible {
  color: #21B5EA;
}

.baytm-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.baytm-footnote-block {
  margin-top: 12px;
  color: #001F47;
  font-family: "MuseoSans", sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

.mce-content-body .baytm-footnote-block {
  color: #001F47;
  font-size: 13px;
}
