/* Inline footnote references (classic anchor version) */
a.footnote-ref {
  font-size: 0.85em;             /* slightly smaller */
  line-height: 1;                /* keeps even baseline */
  color: inherit;                /* same as text */
  text-decoration: none;         /* no underline */
  vertical-align: baseline;      /* don't raise like <sup> */
  opacity: 0.7;                  /* visually lighter */
  transition: opacity 0.2s ease, color 0.2s ease;
}

a.footnote-ref:hover,
a.footnote-ref:focus {
  opacity: 1;                    /* full on hover/focus */
  color: var(--link-hover, #000);/* or your chosen hover colour */
  text-decoration: none;
}

/* Optional: small spacing tweak before/after note numbers */
a.footnote-ref::before { content: " "; }  /* small gap before */
a.footnote-ref::after  { content: "";  }  /* no trailing gap */

/* Footnotes list area */
.footnotes ol {
  margin-top: 1rem;
  padding-left: 1.25rem;
}

.footnotes li {
  font-size: 0.9em;
  margin-bottom: 0.6em;
}

.footnotes a[href^="#fnref"] {
  text-decoration: none;
  opacity: 0.6;
}
.footnotes a[href^="#fnref"]:hover {
  opacity: 1;
}
