/* Documentation keeps its own, deliberately quiet navigation. */
.docs-page {
  background: #0e1012;
}

.docs-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(14, 16, 18, 0.96);
  backdrop-filter: blur(14px);
}

.docs-header-inner,
.docs-container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.docs-header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 64px;
  align-items: center;
  gap: 24px;
}

.docs-brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 9px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.docs-brand img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.docs-header-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-header-actions {
  justify-self: end;
}

.docs-home-link {
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 700;
}

.docs-home-link:hover {
  color: #ffffff;
}

.docs-home-link span {
  margin-right: 5px;
  color: var(--accent);
}

.docs-main {
  min-width: 0;
}

.docs-hero {
  border-bottom: 1px solid var(--line);
  padding: 74px 0 38px;
}

.docs-hero .eyebrow {
  margin-bottom: 10px;
  color: var(--muted);
}

.docs-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.055em;
}

.docs-hero .lead {
  max-width: 650px;
  margin: 16px 0 0;
  color: var(--muted-strong);
  font-size: 18px;
}

.docs-section {
  padding: 38px 0 76px;
}

.docs-page .docs-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 760px);
  justify-content: space-between;
  gap: 48px;
  align-items: start;
}

.docs-page .docs-nav {
  position: sticky;
  top: 88px;
  padding: 2px 0 2px 15px;
  border: 0;
  border-left: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
}

.docs-page .docs-nav a {
  padding: 7px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.docs-page .docs-nav a:hover,
.docs-page .docs-nav a:focus-visible {
  color: #ffffff;
  outline: 0;
}

.docs-page .docs-nav a:first-child {
  color: #ffffff;
}

.docs-page .doc-content {
  max-width: 760px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.docs-page .doc-content h2 {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #ffffff;
  font-size: 27px;
}

.docs-page .doc-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.docs-page .doc-content h3 {
  margin-top: 28px;
  color: #ffffff;
  font-size: 18px;
}

.docs-page .doc-content p,
.docs-page .doc-content li,
.docs-page .table td {
  color: var(--muted-strong);
}

.docs-page .doc-content a {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}

.docs-page .doc-content .notice {
  border-radius: 2px;
  background: #15191d;
}

.docs-page .doc-content pre,
.docs-page .doc-content code {
  background: #101316;
}

.docs-page .table {
  display: table;
}

.docs-footer {
  margin-top: 0;
}

@media (max-width: 760px) {
  .docs-header-inner {
    grid-template-columns: 1fr auto;
    min-height: 58px;
    gap: 12px;
  }

  .docs-header-title {
    display: none;
  }

  .docs-home-link {
    font-size: 13px;
  }

  .docs-hero {
    padding: 48px 0 30px;
  }

  .docs-hero .lead {
    font-size: 16px;
  }

  .docs-section {
    padding: 28px 0 54px;
  }

  .docs-page .docs-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .docs-page .docs-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 7px 15px;
    padding: 0 0 14px;
    border-width: 0 0 1px;
  }

  .docs-page .docs-nav a {
    padding: 2px 0;
  }

  .docs-page .table {
    display: block;
    overflow-x: auto;
  }
}
