:root {
  color-scheme: dark;
  --bg: #0d1117;
  --panel: #161b22;
  --panel-strong: #1c2530;
  --border: rgba(88, 166, 255, 0.22);
  --text: #c9d1d9;
  --muted: #8b949e;
  --heading: #f0f6fc;
  --blue: #58a6ff;
  --green: #3fb950;
}

* {
  box-sizing: border-box;
}

html,
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}

.docs-shell {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 100vh;
}

.docs-sidebar {
  background: #0b1016;
  border-right: 1px solid var(--border);
  height: 100vh;
  overflow-y: auto;
  padding: 1.5rem 1rem;
  position: sticky;
  top: 0;
}

.docs-brand {
  color: var(--heading);
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  text-decoration: none;
}

.docs-product-switcher {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1.5rem;
}

.docs-search {
  margin: 0 0 1.25rem;
  position: relative;
}

.docs-search label {
  color: var(--heading);
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 0.45rem;
  text-transform: uppercase;
}

.docs-search input {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--heading);
  font: inherit;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

.docs-search input::placeholder {
  color: var(--muted);
}

.docs-search-results {
  background: #0b1016;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  left: 0;
  max-height: 420px;
  overflow-y: auto;
  padding: 0.45rem;
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 10;
}

.docs-search-results a,
.docs-search-results p {
  border-radius: 6px;
  color: var(--text);
  display: block;
  margin: 0;
  padding: 0.65rem 0.7rem;
  text-decoration: none;
}

.docs-search-results a:hover {
  background: rgba(46, 160, 67, 0.14);
}

.docs-search-results strong {
  color: var(--heading);
  display: block;
  font-size: 0.95rem;
}

.docs-search-results span {
  color: var(--muted);
  display: block;
  font-size: 0.84rem;
  line-height: 1.35;
  margin-top: 0.2rem;
}

.docs-product-switcher a,
.docs-nav a {
  border-radius: 6px;
  color: var(--muted);
  display: block;
  text-decoration: none;
}

.docs-product-switcher a {
  background: rgba(88, 166, 255, 0.08);
  border: 1px solid rgba(88, 166, 255, 0.16);
  padding: 0.5rem 0.65rem;
  text-align: center;
}

.docs-product-switcher a.active,
.docs-product-switcher a:hover,
.docs-nav a.active,
.docs-nav a:hover {
  background: rgba(46, 160, 67, 0.14);
  color: var(--heading);
}

.docs-nav p {
  color: var(--heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.docs-nav-group {
  margin-top: 1rem;
}

.docs-nav-group span {
  color: var(--green);
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 0.35rem 0.65rem;
  text-transform: uppercase;
}

.docs-nav a {
  line-height: 1.35;
  margin: 0.1rem 0;
  padding: 0.55rem 0.65rem;
}

.docs-nav-group a {
  margin-left: 0.4rem;
  padding-left: 0.85rem;
}

.docs-main {
  background: linear-gradient(180deg, #0d1117 0%, #101820 100%);
  min-width: 0;
}

.docs-topnav {
  align-items: center;
  border-bottom: 1px solid rgba(88, 166, 255, 0.14);
  display: flex;
  gap: 1.2rem;
  justify-content: flex-end;
  min-height: 64px;
  padding: 0 2rem;
}

.docs-topnav a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.docs-topnav a:hover {
  color: var(--blue);
}

.docs-content {
  font-size: 19px;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 980px;
  padding: 4rem 2rem 6rem;
}

.docs-page-header {
  border-bottom: 1px solid rgba(88, 166, 255, 0.2);
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
}

.docs-section-label {
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 0.7rem;
  text-transform: uppercase;
}

.docs-content h1,
.docs-content h2,
.docs-content h3,
.docs-content h4,
.docs-content strong {
  color: var(--heading);
}

.docs-content h1 {
  font-size: 3rem;
  line-height: 1.08;
  margin: 0;
}

.docs-summary {
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.5;
  margin: 1rem 0 0;
}

.docs-page-toc {
  background: rgba(22, 27, 34, 0.72);
  border: 1px solid rgba(88, 166, 255, 0.18);
  border-radius: 8px;
  margin: 0 0 2rem;
  padding: 1rem 1.25rem;
}

.docs-page-toc p {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 0.6rem;
  text-transform: uppercase;
}

.docs-page-toc nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.docs-page-toc nav ul ul {
  margin-top: 0.25rem;
  padding-left: 1rem;
}

.docs-page-toc li {
  margin: 0.25rem 0;
}

.docs-page-toc a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.docs-page-toc a:hover {
  color: var(--blue);
}

.docs-content h2 {
  border-bottom: 1px solid rgba(88, 166, 255, 0.18);
  font-size: 2rem;
  margin-top: 3rem;
  padding-bottom: 0.5rem;
}

.docs-content h3 {
  font-size: 1.45rem;
  margin-top: 2rem;
}

.docs-content a {
  color: var(--blue);
  font-weight: 600;
}

.docs-content a:hover {
  color: #79c0ff;
}

.docs-content code {
  background: rgba(88, 166, 255, 0.12);
  border: 1px solid rgba(88, 166, 255, 0.22);
  border-radius: 6px;
  color: #79c0ff;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  margin: 0 0.5rem;
  padding: 0.14rem 0.4rem;
}

.docs-content pre {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  overflow: auto;
  padding: 2.5rem 1rem 1rem;
  position: relative;
}

.docs-content pre::after {
  background: rgba(88, 166, 255, 0.1);
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: 999px;
  color: var(--muted);
  content: attr(data-copy-label);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.42rem 0.6rem;
  position: absolute;
  right: 0.75rem;
  text-transform: uppercase;
  top: 0.75rem;
}

.docs-content pre:hover::after,
.docs-content pre:focus::after {
  color: var(--heading);
}

.docs-content pre:focus {
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.2);
  outline: none;
}

.docs-content pre.is-copied::after {
  background: rgba(46, 160, 67, 0.16);
  border-color: rgba(46, 160, 67, 0.32);
  color: var(--green);
}

.docs-content pre code {
  background: transparent;
  border: 0;
  color: inherit;
  display: block;
  margin: 0;
  padding: 0;
}

.docs-content blockquote {
  background: rgba(88, 166, 255, 0.08);
  border-left: 4px solid var(--blue);
  color: var(--text);
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
}

.docs-content table {
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
  width: 100%;
}

.docs-content th,
.docs-content td {
  border: 1px solid rgba(88, 166, 255, 0.18);
  padding: 0.55rem 0.75rem;
}

.docs-content tr:nth-child(2n) {
  background: rgba(22, 27, 34, 0.72);
}

.docs-content img {
  border-radius: 8px;
  max-width: 100%;
}

@media (max-width: 860px) {
  .docs-shell {
    display: block;
  }

  .docs-sidebar {
    height: auto;
    position: static;
  }

  .docs-topnav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .docs-content {
    font-size: 17px;
    padding: 3rem 1.25rem 5rem;
  }

  .docs-content h1 {
    font-size: 2.3rem;
  }
}
