/* ===== Glossary term marker ===== */
.glossary-term {
  border-bottom: 2px dotted #b8460e;
  cursor: help;
  transition: background-color 0.15s ease, border-bottom-color 0.15s ease;
  padding-bottom: 0;
}

.glossary-term:hover,
.glossary-term:focus {
  background-color: rgba(232, 160, 18, 0.18);
  border-bottom-color: #8a3508;
  outline: none;
}

.glossary-term:focus-visible {
  outline: 2px solid #e8a012;
  outline-offset: 1px;
  border-radius: 2px;
}

.glossary-term-active {
  background-color: rgba(232, 160, 18, 0.18);
}

/* ===== Glossary popup ===== */
.glossary-popup {
  position: absolute;
  background: #fffaf0;
  border: 1px solid #c4b394;
  border-radius: 4px;
  padding: 0.7rem 0.9rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  max-width: 300px;
  min-width: 180px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #3a2814;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  z-index: 9999;
  pointer-events: none; /* tooltip-only, no interaction */
}

.glossary-popup[hidden] {
  display: none;
}

.glossary-popup strong {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: 1rem;
  color: #1f5b66;
  text-transform: capitalize;
  display: inline-block;
  margin-bottom: 0.2rem;
}

.glossary-popup span {
  display: block;
}
