/* pkgdown custom styles (auto-loaded by pkgdown as pkgdown/extra.css). */

/* Give plots and figures room to breathe, and centre them in the article body. */
main img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.75rem auto 2rem;
}

main .figure,
main figure {
  margin: 1.75rem 0 2rem;
  text-align: center;
}

/* A little extra space above section headings that follow a plot. */
main h2,
main h3 {
  margin-top: 2rem;
}

/* The Articles menu lists the vignettes explicitly, so drop pkgdown's auto "More articles..."
   link to the articles index (and the divider immediately above it). */
.dropdown-menu li:has(> a.dropdown-item[href$="articles/index.html"]),
.dropdown-menu li:has(+ li > a.dropdown-item[href$="articles/index.html"]) {
  display: none;
}
