/* A sidebar section without a caption, such as How to cite, keeps the gap a
   caption has above it, so its pages don't read as part of the section above. */
.sidebar-tree ul + ul {
  margin-top: var(--sidebar-caption-space-above);
}

/* The format's name in bold, so it reads as the title, and its version smaller
   and in normal weight beside it. */
.sidebar-brand-name {
  font-weight: 700;
}

.sidebar-brand-version {
  font-size: 1rem;
}

/* The reference implementation and its version, under the format's name in
   the sidebar brand: smaller and grey, so it reads as secondary. The negative
   margin takes back the brand's bottom padding, so the two lines sit together. */
.sidebar-implementation {
  display: block;
  margin-top: calc(-1 * var(--sidebar-item-spacing-vertical));
  padding: 0 var(--sidebar-item-spacing-horizontal);
  color: var(--color-foreground-muted);
  font-size: var(--sidebar-item-font-size);
  text-decoration: none;
}

.sidebar-implementation:hover {
  text-decoration: underline;
}
