/* Furo defaults the sidebar logo to the full column width and centres it with
   `margin: 0 auto`, while the brand text beneath it stays left-aligned — so a square
   logo reads as both oversized and misaligned. Size it and align it to the same edge
   as the text.

   The logo PNG used to carry 51px of transparent padding per side (10.2% of a 500px
   square), which held the artwork ~15px right of the text no matter what margin said;
   it is now cropped to its opaque bounding box.*/

.sidebar-logo {
  max-width: 10rem;
  margin: 0;
}

.sidebar-logo-container {
  margin-bottom: 0.6rem;
}

/* Furo centres every table.

   `article .align-center, article .align-default` sets display:block,
   text-align:center and `margin-left/right: auto`. The follow-up rule
   `article table.align-default` puts display and text-align back for tables but
   leaves the auto margins in place — and Sphinx stamps `align-default` on every
   table that does not ask for something else, so all of them float centred.

   Reset the inline margins for the default alignment only. A table that explicitly
   asks to be centred (`:align: center` -> `table.align-center`) still is. */

article table.align-default {
  margin-left: 0;
  margin-right: auto;
}

/* Breathing room under the last sidebar entry.

   Read the Docs injects its own floating widget over the bottom of the viewport,
   which sits on top of the final row of the navigation — "MICM", today. Furo's
   sidebar ends flush with its content, so there is nothing to scroll past it.
   Reserve space at the end of the scroll area instead of shortening the menu. */

.sidebar-scroll {
  padding-bottom: 5rem;
}
