.howto-page {
  color: #202833;
}

.howto-hero {
  background-image: url('/static/landing/topolograph-hero-graph-bg.svg');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: 100vw auto;
  overflow: hidden;
  padding: 3rem max(15px, calc((100vw - 1140px) / 2)) 2rem;
  width: 100%;
}

.howto-hero > * {
  position: relative;
}

.howto-hero h1 {
  font-size: 3.25rem;
  line-height: 1.12;
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
}

.howto-shell {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
}

.howto-sidebar {
  align-self: start;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: .35rem;
  box-shadow: 0 .125rem .5rem rgba(0, 0, 0, .06);
  max-height: calc(100vh - 1.5rem);
  overflow: auto;
  position: sticky;
  top: 1rem;
}

.howto-sidebar .navbar-brand {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  white-space: normal;
}

.howto-sidebar .nav-link {
  border-radius: .25rem;
  color: #334155;
  font-size: .9rem;
  padding: .35rem .6rem;
}

.howto-sidebar .nav-link.active,
.howto-sidebar .nav-link.active-chapter {
  background: #0d6efd;
  color: #fff;
}

.howto-sidebar .nav > .nav-link.active-chapter {
  font-weight: 700;
}

.howto-content {
  min-width: 0;
}

.howto-content h4 {
  border-top: 1px solid rgba(0, 0, 0, .12);
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
}

.howto-content h4:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.howto-content h5 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
}

.howto-content p,
.howto-content li {
  color: #334155;
  line-height: 1.58;
}

.howto-content ol > li {
  margin-bottom: .65rem;
}

.howto-content img.img-fluid {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: .35rem;
  box-shadow: 0 .125rem .5rem rgba(0, 0, 0, .08);
  display: block;
  margin: 1rem 0 1.75rem;
  padding: .5rem;
}

.howto-content table {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: .35rem;
  box-shadow: 0 .125rem .5rem rgba(0, 0, 0, .05);
  display: block;
  overflow-x: auto;
}

.howto-content thead {
  background: #f8f9fa;
}

.howto-content code,
.howto-content pre {
  color: #243447;
  font-family: SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.howto-content pre {
  background: #f6f8fa !important;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: .35rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
  overflow-x: auto;
  padding: 1rem;
}

@media (max-width: 991.98px) {
  .howto-shell {
    grid-template-columns: 1fr;
  }

  .howto-sidebar {
    max-height: none;
    position: static;
  }
}
