[data-bs-theme="dark"] {
  --bs-code-color: #7dd3fc;
}
.nav-item {
  align-self: center;
}
.kb-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 2rem;
  margin: 0.4rem auto;
  border-top: 3px solid var(--bs-info);
  padding: 0;
}
.kb-content {
  margin-top: 0.25rem;
}
.kb-layout .display {
  overflow-y: scroll;
  padding: 1rem 2rem 4rem 0rem;
  height: calc(100vh - 6rem);
}
@media (max-width: 992px) {
  .kb-layout {
    grid-template-columns: 1fr;
  }
  .kb-layout .display {
    overflow-y: visible;
    height: auto;
  }
}
@media (max-width: 1200px) {
  .article pre {
    width: 620px;
  }
}
@media (max-width: 768px) {
  .article pre {
    width: 500px;
  }
}
@media (max-width: 576px) {
  .article {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .article pre {
    width: 420px;
  }
}
.article .meta {
    color: var(--bs-secondary-color);
    font-size: 0.875em;
    margin-top: -0.325rem;
    margin-bottom: 0.25rem;
}
.sidebar {
    border: 1px solid var(--bs-border-color);
    border-top: none;
    border-bottom: 1px solid var(--bs-info);
    overflow: hidden;
    align-self: start;
}
.sidebar .parent {
    background-color: var(--bs-tertiary-bg);
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    border-bottom: 1px solid var(--bs-border-color);
}
.sidebar .tree {
  padding: 0.5rem 0.75rem;
}
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0;
}
.sidebar li {
  padding: 0;
  margin: 0;
}
.sidebar li + li {
  margin: 0.75rem 0 0 0;
}
.sidebar .tree ul ul {
  margin-top: 0.5rem;
}
.sidebar a {
  text-decoration: none;
  color: inherit;
}
.sidebar a:hover {
  color: var(--bs-info);
}
.sidebar .selected > a {
  color: var(--bs-info);
  font-weight: 600;
}
.sidebar ul ul {
  padding-left: 1rem;
  margin-top: 0.25rem;
}
.login-container {
  margin-top: 1.5rem;
  justify-content: center;
}
.login-container {
  width: 420px;
}

/* Markdown */
.article table {
  margin-bottom: 1rem;
  border-collapse: collapse;
}
.article table th,
.article table td {
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--bs-border-color);
}
.article table thead th {
  border-bottom-width: 2px;
  font-weight: 600;
}
.article code {
  background-color: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius-sm);
  padding: 0.15em 0.3em 0.125em 0.3em;
}
.article pre {
  position: relative;
  background-color: var(--bs-tertiary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  padding: 0.85rem 0rem 0rem 0rem;
  max-width: 960px;
  overflow: visible;
}
.article pre > code {
  display: block;
  background: none;
  border: none;
  padding: 0 1rem 0.75rem 1rem;
  font-size: 0.875em;
  overflow-x: auto;
}
.article pre[data-language] {
  margin-top: 1.3rem;
}
.article pre[data-language]::before  {
  content: attr(data-language);
  position: absolute;
  top: -0.9em;
  left: 0.75rem;
  background-color: var(--bs-code-color);
  color: var(--bs-secondary-bg);
  border-radius: var(--bs-border-radius-sm);
  padding: 0.05em 0.4em 0em 0.4em;
  font-size: 0.75em;
}