:root {
  --pkgdown-nav-height: 30px;  /* keep in sync with YAML */
}

/* keep headings/content from hiding under the sticky navbar */
body { scroll-padding-top: calc(var(--pkgdown-nav-height) + 8px); }
h1, h2, h3, h4, h5, h6 { scroll-margin-top: calc(var(--pkgdown-nav-height) + 8px); }
.navbar { min-height: var(--pkgdown-nav-height); }
.navbar + .container,
.navbar + .container-fluid,
.navbar + .page-content,
.navbar + main[role="main"] {
  padding-top: calc(var(--pkgdown-nav-height) + 8px) !important;
}

/* space between search input and Theme link */
.navbar form[role="search"] input[type="search"],
.navbar .form-inline .form-control {
  margin-right: 12px;
}

/* space to the left of the Theme link */
.navbar .nav-link.theme-toggle {
  margin-left: 4px;
}

/* small gap before the GitHub icon */
.navbar .navbar-nav .nav-item .fab.fa-github {
  margin-left: 8px;
}

/* larger headings with the new serif */
h1, .h1 { font-weight: 700; letter-spacing: .2px; }
h2, .h2 { font-weight: 700; letter-spacing: .15px; }

/* tidy spacing for the Shiny App link */
.navbar .navbar-nav .nav-item:first-child .nav-link {
  padding-right: 18px;   /* add space after Shiny App */
}
