*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fafafa;
}

.docs-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
  --docs-toc-width: 33.333%;
}

.docs-toc {
  flex: 0 0 var(--docs-toc-width);
  width: var(--docs-toc-width);
  min-width: 12rem;
  max-width: 50%;
  overflow-y: auto;
  padding: 1.5rem 1.25rem;
  background: #f0f2f5;
}

.docs-toc-header {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0d1117;
}

.docs-toc-header a {
  color: inherit;
  text-decoration: none;
}

.docs-toc-header a:hover,
.docs-toc-header a:focus-visible {
  text-decoration: underline;
}

.docs-toc nav {
  font-size: 0.9rem;
}

.docs-toc-section {
  margin: 0 0 0.5rem;
}

.docs-toc-section-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  margin: 0;
  padding: 0.4rem 0.35rem;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #57606a;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.docs-toc-section-toggle:hover {
  background: #e1e4e8;
  color: #24292f;
}

.docs-toc-chevron {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.docs-toc-section.is-collapsed .docs-toc-chevron,
.docs-toc-nested.is-collapsed .docs-toc-chevron {
  transform: rotate(-45deg);
}

.docs-toc-section-title {
  line-height: 1.2;
}

.docs-toc-panel {
  margin: 0.15rem 0 0.5rem;
  padding: 0 0 0 0.85rem;
  list-style: none;
  overflow: hidden;
  transition: max-height 0.2s ease, opacity 0.15s ease;
  max-height: 2000px;
  opacity: 1;
}

.docs-toc-section.is-collapsed .docs-toc-panel,
.docs-toc-nested.is-collapsed .docs-toc-panel {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  margin-bottom: 0;
  pointer-events: none;
}

.docs-toc-list li {
  margin: 0;
}

.docs-toc-list a {
  display: block;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  color: #24292f;
  text-decoration: none;
}

.docs-toc-list a:hover {
  background: #e1e4e8;
}

.docs-toc-list a.is-active {
  background: #0969da;
  color: #ffffff;
}

.docs-toc-list .depth-1 {
  padding-left: 0.25rem;
}

.docs-toc-list .depth-2 {
  padding-left: 0.75rem;
}

.docs-toc-nested {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0;
}

.docs-toc-nested-toggle {
  font-size: 0.7rem;
  padding-left: 0.5rem;
}

.docs-resizer {
  flex: 0 0 14px;
  width: 14px;
  cursor: col-resize;
  background: #dde2ea;
  border-left: 1px solid #c5cad3;
  border-right: 1px solid #c5cad3;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  user-select: none;
  z-index: 2;
}

.docs-resizer:hover,
.docs-resizer.is-dragging,
.docs-resizer:focus-visible {
  background: #d8e6f8;
  outline: none;
}

.docs-resizer-grip {
  width: 5px;
  height: 3rem;
  border-radius: 2px;
  background: repeating-linear-gradient(
    to bottom,
    #5c6370 0,
    #5c6370 4px,
    transparent 4px,
    transparent 8px
  );
}

.docs-content .mermaid {
  margin: 1.25rem 0;
  padding: 1rem;
  overflow-x: auto;
  background: #f6f8fa;
  border: 1px solid #d8dce3;
  border-radius: 6px;
}

.docs-content .mermaid-error {
  color: #cf222e;
  font-size: 0.9rem;
  white-space: pre-wrap;
}

.docs-content {
  flex: 1 1 auto;
  min-width: 0;
  overflow-y: auto;
  padding: 2rem 2.5rem;
  background: #ffffff;
}

.docs-content article {
  max-width: 52rem;
}

.docs-content h1,
.docs-content h2,
.docs-content h3,
.docs-content h4 {
  line-height: 1.25;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.docs-content h1:first-child {
  margin-top: 0;
}

.docs-content pre {
  overflow-x: auto;
  padding: 1rem;
  background: #f6f8fa;
  border-radius: 6px;
}

.docs-content code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    monospace;
  font-size: 0.9em;
}

.docs-content p > code,
.docs-content li > code {
  padding: 0.15em 0.35em;
  background: #f6f8fa;
  border-radius: 4px;
}

.docs-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}

.docs-content th,
.docs-content td {
  border: 1px solid #d8dce3;
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.docs-content th {
  background: #f6f8fa;
}

.docs-content img {
  max-width: 100%;
  height: auto;
}

.docs-loading,
.docs-error {
  color: #57606a;
  font-style: italic;
}

.docs-error {
  color: #cf222e;
}

@media (max-width: 900px) {
  .docs-shell {
    flex-direction: column;
    --docs-toc-width: 100%;
  }

  .docs-toc {
    flex: none;
    width: 100%;
    max-width: 100%;
    max-height: 40vh;
    border-bottom: 1px solid #d8dce3;
  }

  .docs-resizer {
    display: none;
  }

  .docs-content {
    flex: none;
    width: 100%;
  }
}