html { scroll-behavior: smooth; }

.zfn-ref a { text-decoration: none; padding: 0 1px; }

.zfn-footnotes { margin-top: 2em; font-size: .9em; }
.zfn-footnotes[dir="rtl"] { text-align: right; }
.zfn-footnotes[dir="ltr"] { text-align: left; }
.zfn-footnotes hr { margin: 0 auto 1em 0; margin-inline: 0 auto; width: 30%; border: 0; border-top: 1px solid currentColor; opacity: .4; }
.zfn-footnotes ol { list-style: none; margin: 0; padding: 0; }
.zfn-footnotes li { margin: 0 0 .5em; }

.zfn-back { text-decoration: none; margin-inline-start: .25em; }

.zfn-footnotes li:target,
.zfn-ref:target { background: rgba(255, 220, 0, .35); }

/* Increase if a sticky header covers the target after jumping */
[id^="fn-"], [id^="fnref-"] { scroll-margin-top: 90px; }
