.vdi-footnotes-container {
  background-color: #07504c;
  padding-top: 1em;
  padding-bottom: 4em;
  font-size: 0.9em;
  line-height: 1.5;
  color: white;
}

.vdi-footnotes-list {
  list-style-type: decimal;
  padding-left: 10px;
  list-style-position: inside !important;
  list-style-type: decimal !important;
}

.vdi-footnotes-list li a {
  color: #3c95fa !important;
}

.footnote-ref {
  font-size: 0.8em;
  vertical-align: super;
  margin-left: 2px;
}

.footnote-ref a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.footnote-back {
  content: "\f474";
  font-family: "dashicons";
  line-height: 1;
  font-size: 1.2rem;
  color: #3c95fa !important;
}

.footnote-ref a:focus,
.footnote-back:focus,
.tooltip-close:focus {
  outline: 2px solid #005fcc;
  outline-offset: 2px;
}

/* Tooltip Base Styles */
.footnote-tooltip {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  max-width: 420px;
  padding: 1rem;
  position: absolute;
  z-index: 40;
  font-size: 0.9em;
  line-height: 1.4;
  transition: opacity 0.15s ease;
}

.tooltip-content {
  padding-right: 2rem;
  position: relative;
}

.footnote-tooltip a {
  margin: 0;
  padding: 0;
  color: #3c95fa !important;
}

.footnote-tooltip a:hover {
  text-decoration: underline;
}

.tooltip-close {
  position: absolute;
  top: 0.2rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #888;
  cursor: pointer;
  scale: 1.5;
}

.tooltip-close:hover {
  color: #000;
}

.footnote-back {
  margin-left: 0.5em;
  text-decoration: none;
  font-size: 0.8em;
}

.footnote-highlight {
  background: #ff0000;
  transition: background 0.3s;
}

/* Screen reader only text */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}
