/* Hide bibliography label brackets that appear before each reference */
.citation-list .citation > .label {
  display: none !important;
}

/* Fallback: hide any bracket spans inside bibliography entries */
.citation-list .citation .fn-bracket {
  display: none !important;
}

/* Additional specificity to ensure labels are hidden */
div.citation > span.label {
  display: none !important;
}

div.citation span.fn-bracket {
  display: none !important;
}

/* Hide the label element regardless of tag type */
.citation .label {
  display: none !important;
}

/* Hanging indent for bibliography entries (APA style) */
.citation-list .citation dd {
  margin-left: 0;
  margin-bottom: 0;  /* Remove space between entries */
  padding-left: 2em;  /* Adjust this value to control indent size */
  text-indent: -2em;  /* Negative indent for first line */
}

.citation-list .citation dd p {
  margin: 0;
  padding: 0;
}

/* Remove spacing between bibliography entries */
.citation-list .citation {
  margin-bottom: 0 !important;
  margin-top: 0 !important;
}

.citation-list .citation dt {
  margin: 0 !important;
}

/* Remove parentheses around equation numbers */
.math .eqno::before,
.math .eqno::after {
  content: none !important;
}

span.eqno::before,
span.eqno::after {
  content: none !important;
}

/* Highlight bibliography entry when clicked/targeted */
.citation:target {
  padding-left: 0.5em;
  margin-left: -0.5em;
  animation: highlight-fade 2s ease-out forwards;
}

/* Animation to fade the highlight after 2 seconds */
@keyframes highlight-fade {
  0% {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
  }
  100% {
    background-color: transparent;
    border-left: 4px solid transparent;
  }
}
