@media screen and (max-width: 767px) {
  nav.navbar {
    position: static;
  }
}

@media screen and (min-width: 768px) {
  :root {
    --menu-width: 12rem;
  }

  main {
    margin-left: var(--menu-width);
  }

  .menu-navbar {
    top: 5rem;
    width: var(--menu-width);
    overflow-y: scroll;
    max-height: 100vh;
    z-index: calc(var(--bs-dropdown-zindex) - 10);
  }

  .navbar-expand-md {
    flex-wrap: wrap;
  }

  .nav-link {
    padding-top: 2px;
    padding-bottom: 2px;
  }

  .footer {
    margin-left: var(--menu-width);
  }
}

/* Clear floats after multi-column layout */
.multicolumn:after {
  content: "";
  display: table;
  clear: both;
}

/* Images align with text bottom by default */
img {
  vertical-align: text-bottom;
}

/* Inline lists */
.inline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  background-color: var(--bs-tertiary-bg);
}

main {
  flex: 1;
  padding-bottom: 8px;
  background-color: var(--bs-body-bg);
}

.breadcrumb {
  margin-bottom: 0px;
}

/* Sticky footer */
.footer {
  padding: 4px;
  background-color: var(--bs-tertiary-bg);
}

.footer ul li {
  display: inline;
  padding-left: 8px;
  padding-right: 8px;
}

.footer li~li {
  float: right;
}

/* Highlighted buttons */
.highlight-button {
  color: var(--bs-btn-color);
  background-color: var(--bs-btn-bg);
}

.next-step:before {
  content: "Next step: ";
}

.next-chapter:before {
  content: "Next chapter: ";
}

/* Note link/buttons */
.note-button {
  border: 0px;
  background-color: var(--bs-btn-bg);
  border-radius: 4px;
}

/* Code examples */
div.highlight:not(.card-body .highlight) {
  display: table;
}

.highlight:not(.card-body .highlight) pre {
  border: 1px;
  border-style: solid;
  padding: 1rem;
}

pre {
  margin-bottom: 0;
}

#ursa-input {
  width: 100%;
}

#ursa-output {
  white-space: pre-line;
}

.ursa-error {
  color: red;
}

/* Cards on home page with link buttons */
.link-card {
  display: flex;
  flex-direction: column;
}

.link-card-spacer {
  flex: auto;
}

/* Inset notes */
blockquote {
  display: table;
  border: 1px;
  border-style: solid;
  padding: 1rem;
  padding-bottom: 0;
  margin-left: 4rem;
}