/**
 * @info The page's nav — Text / Links / Chronik / Dank, or the how-to's sections
 * @path assets/css/snippets/toc.css
 * @snippet site/snippets/toc.php
 *
 * Under the heading of a question (templates/question.php) and of the page
 * to nominate (templates/nominate.php), and again in the stuck header.
 */

/* the stuck heading appears once this has scrolled away (snippets/header.css) */
main h1 {
  view-timeline: --question block;
  view-timeline-inset: 4rem 0;
}

[data-toc] {
  margin-block-start: 1.35em;

  & ul { display: flex; flex-wrap: wrap; }
  & li + li::before { content: "/" / ""; margin-inline: .4em; }

  /* a target of 24px at least (WCAG 2.5.8), the line stays where it was */
  & a { display: inline-block; padding-block: .3em; margin-block: -.3em; }
}
