/* --- Footnotes (lib/BlogFootnotes.php adds the markup at render) -------------------------
   Superscript citations link down to the References list; each reference links back up.
   The target briefly highlights so the reader sees where they landed. */
.blog-post sup.fn-ref {
  font-size: 0.7em;
  line-height: 0;
  vertical-align: super;
  margin-left: 0.04em;
}
.blog-post sup.fn-ref a {
  color: var(--bp-cta);
  font-weight: 700;
  text-decoration: none;
  padding: 0 0.1em;
  border-radius: 3px;
}
.blog-post sup.fn-ref a:hover,
.blog-post sup.fn-ref a:focus-visible {
  background: #eef5dc;
  text-decoration: underline;
}
.blog-post [id^="ref-"],
.blog-post [id^="cite-"] {
  scroll-margin-top: 7rem;   /* clear the sticky site header */
}
.blog-post ol.fn-list {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--bp-muted);
  list-style: decimal outside;   /* Tailwind preflight strips list markers */
  padding-left: 1.75rem;
  margin-top: 0.5rem;
}
.blog-post ol.fn-list li {
  margin: 0.1rem 0;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}
.blog-post ol.fn-list li::marker {
  color: var(--bp-muted);
  font-weight: 600;
}
.blog-post ol.fn-list a {
  color: var(--bp-cta);
  text-decoration: underline;
  text-decoration-color: var(--bp-accent);
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}
.blog-post ol.fn-list a.fn-back {
  text-decoration: none;
  margin-left: 0.25em;
}
.blog-post ol.fn-list li:target,
.blog-post sup.fn-ref a:target {
  background: #eef5dc;
}
@media (prefers-reduced-motion: no-preference) {
  html:has(.blog-post .fn-list) { scroll-behavior: smooth; }
  .blog-post ol.fn-list li:target,
  .blog-post sup.fn-ref a:target { animation: fn-flash 2.4s ease-out; }
}
@keyframes fn-flash {
  0%   { background: #d8ebb0; }
  100% { background: #eef5dc; }
}
