/* Footnotes belong to article prose; no shared link/list styling outside this scope. */
#post-article .content .footnote-ref {
  font-family: var(--bd-font-sans, system-ui, sans-serif);
  font-size: 0.75em;
  line-height: 0;
  vertical-align: super;
}

#post-article .content .footnote-ref a,
#post-article .content .footnote-backref {
  display: inline-block;
  padding: 0.2em;
  line-height: 1.2;
  color: var(--bd-accent);
  text-decoration: none;
  scroll-margin-top: 6rem;
}

#post-article .content .footnotes {
  box-sizing: border-box;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bd-border);
  font-family: var(--bd-font-serif, Georgia, serif);
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--bd-text-muted);
  overflow-wrap: anywhere;
}

#post-article .content .footnotes li {
  scroll-margin-top: 6rem;
}

#post-article .content .footnotes p {
  margin: 0.5em 0;
}

#post-article .content .footnote-ref a:focus-visible,
#post-article .content .footnote-backref:focus-visible {
  outline: 2px solid var(--bd-accent);
  outline-offset: 2px;
}
