:root {
  --docs-bg: #040907;
  --docs-panel: rgba(10, 22, 16, .84);
  --docs-panel-2: rgba(14, 30, 22, .74);
  --docs-line: rgba(88, 255, 140, .22);
  --docs-line-strong: rgba(88, 255, 140, .46);
  --docs-text: #e7f3ea;
  --docs-muted: #8ba493;
  --docs-green: #46e06b;
  --docs-cyan: #5cc8ff;
  --docs-amber: #ffb84d;
  --docs-red: #ff5f67;
}

* { box-sizing: border-box; }
body.docs-body {
  margin: 0;
  color: var(--docs-text);
  background:
    linear-gradient(180deg, rgba(9, 20, 14, .94), rgba(2, 5, 4, .98)),
    radial-gradient(circle at 25% 8%, rgba(70, 224, 107, .12), transparent 34%),
    var(--docs-bg);
  font-family: "IBM Plex Mono", monospace;
}

.docs-shell {
  width: min(1880px, calc(100% - 24px));
  margin: 12px auto 34px;
}

.docs-hero {
  min-height: 220px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 24px;
  align-items: end;
  padding: clamp(22px, 4vw, 46px);
  border: 1px solid var(--docs-line);
  background:
    linear-gradient(135deg, rgba(10, 25, 17, .94), rgba(6, 12, 10, .82)),
    repeating-linear-gradient(90deg, rgba(70, 224, 107, .04) 0 1px, transparent 1px 86px);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .05);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.docs-hero:before,
.docs-hero:after {
  content: "";
  position: absolute;
  width: 160px;
  height: 1px;
  background: var(--docs-green);
  opacity: .7;
}
.docs-hero:before { top: 20px; left: 24px; }
.docs-hero:after { right: 24px; bottom: 20px; background: var(--docs-amber); }

.docs-kicker,
.docs-sidebar-head,
.docs-toc-title,
.docs-search-wrap label {
  display: block;
  color: var(--docs-green);
  font-family: "Saira Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.docs-hero h1 {
  max-width: 980px;
  margin: 10px 0 12px;
  font-family: "Saira Condensed", sans-serif;
  font-size: clamp(38px, 6vw, 88px);
  line-height: .9;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.docs-hero p {
  max-width: 860px;
  margin: 0;
  color: #b9c9bd;
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.6;
}

.docs-search-wrap {
  position: relative;
  z-index: 1;
  padding: 18px;
  border: 1px solid var(--docs-line);
  background: rgba(2, 8, 5, .64);
  border-radius: 8px;
}

.docs-search-wrap input {
  width: 100%;
  margin-top: 8px;
  padding: 14px 14px;
  border: 1px solid rgba(100, 140, 112, .45);
  border-radius: 4px;
  color: var(--docs-text);
  background: rgba(0, 0, 0, .34);
  font: inherit;
}

.docs-search-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.docs-search-hit {
  display: block;
  padding: 10px 12px;
  color: var(--docs-text);
  text-decoration: none;
  border: 1px solid rgba(88, 255, 140, .15);
  background: rgba(13, 32, 21, .72);
  border-radius: 4px;
}

.docs-search-hit small {
  display: block;
  margin-top: 2px;
  color: var(--docs-muted);
}

.docs-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 260px;
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}

.docs-sidebar,
.docs-article,
.docs-toc {
  border: 1px solid var(--docs-line);
  background: var(--docs-panel);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
}

.docs-sidebar,
.docs-toc {
  position: sticky;
  top: 10px;
  max-height: calc(100vh - 20px);
  overflow: auto;
}

.docs-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-bottom: 1px solid var(--docs-line);
}

.docs-sidebar-head button {
  border: 1px solid var(--docs-line-strong);
  color: var(--docs-green);
  background: transparent;
  border-radius: 4px;
  padding: 5px 9px;
  font: inherit;
  cursor: pointer;
}

.docs-category {
  border-bottom: 1px solid rgba(88, 255, 140, .12);
}

.docs-category summary {
  cursor: pointer;
  padding: 13px 14px;
  color: #d7eadb;
  font-family: "Saira Condensed", sans-serif;
  font-size: 20px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.docs-nav-link {
  display: block;
  padding: 10px 14px 10px 28px;
  color: #b8cabb;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.docs-nav-link:hover,
.docs-nav-link.is-active {
  color: var(--docs-green);
  background: rgba(70, 224, 107, .08);
  border-left-color: var(--docs-green);
}

.docs-article {
  min-height: 720px;
  padding: clamp(22px, 4vw, 48px);
}

.docs-article h1,
.docs-article h2,
.docs-article h3 {
  font-family: "Saira Condensed", sans-serif;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.docs-article h1 {
  margin: 0 0 10px;
  font-size: clamp(40px, 5vw, 70px);
  line-height: .96;
}

.docs-article h2 {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(88, 255, 140, .18);
  color: #effff2;
  font-size: clamp(28px, 3vw, 40px);
}

.docs-article h3 {
  margin-top: 26px;
  color: var(--docs-green);
  font-size: 24px;
}

.docs-article p,
.docs-article li {
  color: #c5d4c9;
  line-height: 1.72;
  font-size: 16px;
}

.docs-article ul,
.docs-article ol {
  padding-left: 24px;
}

.docs-article a {
  color: var(--docs-cyan);
}

.docs-article code {
  padding: 2px 5px;
  color: #d8ffe0;
  background: rgba(0, 0, 0, .38);
  border: 1px solid rgba(88, 255, 140, .16);
  border-radius: 4px;
}

.docs-article pre {
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(88, 255, 140, .18);
  background: rgba(0, 0, 0, .45);
  border-radius: 6px;
}

.docs-article blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--docs-amber);
  background: rgba(255, 184, 77, .08);
  color: #f6e2bd;
}

.docs-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.docs-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 9px;
  color: var(--docs-green);
  border: 1px solid rgba(88, 255, 140, .28);
  border-radius: 4px;
  background: rgba(70, 224, 107, .08);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.docs-toc {
  padding: 14px;
}

.docs-toc-title {
  margin-bottom: 10px;
}

.docs-toc a {
  display: block;
  color: #aebfaf;
  text-decoration: none;
  padding: 7px 0;
  border-bottom: 1px solid rgba(88, 255, 140, .09);
}

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

.docs-loading,
.docs-error {
  color: var(--docs-muted);
  font-size: 18px;
}

.docs-error {
  color: var(--docs-red);
}

@media (max-width: 1180px) {
  .docs-layout {
    grid-template-columns: 270px minmax(0, 1fr);
  }
  .docs-toc {
    display: none;
  }
}

@media (max-width: 760px) {
  .docs-shell {
    width: min(100% - 14px, 760px);
    margin-top: 8px;
  }
  .docs-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-sidebar,
  .docs-toc {
    position: static;
    max-height: none;
  }
  .docs-article {
    min-height: 480px;
    padding: 22px;
  }
}
