/* Markdown headings are link targets (the anchor plugin gives each an id).
   The sticky top bar sits inside the scroll container, so a heading scrolled
   to the container's top edge would be hidden under it: stop it just below.
   Used by the browser's own in-page anchor jumps and by $lib/utils/hashScroll
   for deep links. */
.markdown-body :is(h1, h2, h3, h4, h5, h6)[id] {
  scroll-margin-top: calc(var(--topbar-h, 4rem) + 1rem);
}
