/* Verwendet die Farben und Schriften des jeweiligen Kartendesigns. */
.glossary-term {
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: help;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--color-sage);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.glossary-term:hover { text-decoration-color: var(--color-accent); }
.glossary-term:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.glossary-popup {
  position: fixed;
  z-index: 10000;
  width: min(320px, calc(100vw - 24px));
  max-height: min(320px, calc(100dvh - 24px));
  overflow-y: auto;
  box-sizing: border-box;
  padding: 16px 18px;
  border: 1px solid var(--color-sage);
  border-radius: 12px;
  background: var(--color-cream);
  color: var(--color-dark);
  box-shadow: 0 8px 28px rgba(52, 66, 56, .18);
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}
.glossary-popup[hidden] { display: none; }
.glossary-popup strong { display: block; margin-bottom: 6px; font-weight: 700; }
.glossary-popup p { margin: 0; white-space: pre-line; }
