/* Shared by native WordPress and the Astro build. Align to the first text baseline. */
.article-outline ol > li {
  display: grid;
  grid-template-columns: minmax(2ch, max-content) minmax(0, 1fr);
  column-gap: 8px;
  align-items: baseline;
  padding-left: 0;
  counter-increment: outline;
}
.article-outline ol > li::before {
  position: static;
  content: counter(outline) ".";
  color: #7dd3fc;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}
.article-outline ol > li > a {
  min-width: 0;
}

/* Reserve the measured pinned header once, including on narrow screens. */
main[id], main [id], .article-content [id], .entry-content [id] {
  scroll-margin-top: var(--article-anchor-offset, 24px);
}
