
.docs-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg);
}

.docs-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
  padding-inline: 28px;
}

.docs-menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  place-items: center;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  flex-shrink: 0;
}

.docs-menu-toggle svg {
  width: 17px;
  height: 17px;
}

.docs-nav-logo {
  display: block;
  line-height: 0;
  flex-shrink: 0;
}

.docs-nav-logo svg {
  width: 170px;
  height: auto;
  display: block;
}

.docs-search {
  position: relative;
  flex: 0 1 540px;
  margin-right: auto;
}

.docs-search input {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
}

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

.docs-search input:focus {
  border-color: var(--border-bright);
}

.docs-search > svg {
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-3);
  pointer-events: none;
}

.docs-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.docs-layout {
  display: flex;
  align-items: flex-start;
  padding-top: 72px;
  min-height: 100vh;
}


.docs-sidebar {
  position: fixed;
  top: 72px;
  bottom: 0;
  left: 0;
  width: 264px;
  overflow-y: auto;
  padding: 26px 0 40px;
}

.docs-nav-item {
  display: block;
  padding: 6px 22px;
  font-size: 13px;
  color: var(--text-2);
  transition: color 0.2s ease, background 0.2s ease;
}

.docs-nav-item:hover {
  color: var(--text);
}

.docs-nav-item.active {
  color: var(--text);
  background: var(--bg-card);
}

/* Top-level nav items — larger and bolder */
.docs-nav-tree > a.docs-nav-item,
.docs-nav-tree > .docs-nav-group > .docs-nav-parent {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  padding-top: 10px;
  padding-bottom: 10px;
}

.docs-nav-parent {
  width: 100%;
  background: none;
  border: none;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.docs-nav-parent .chevron {
  width: 13px;
  height: 13px;
  color: var(--text-3);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.docs-nav-group.collapsed .docs-nav-parent .chevron {
  transform: rotate(-90deg);
}

.docs-nav-group.collapsed .docs-nav-children {
  display: none;
}

.docs-nav-children .docs-nav-item {
  padding-left: 38px;
  font-size: 12.5px;
}


.docs-content {
  flex: 1;
  min-width: 0;
  margin-left: 264px;
  padding: 40px 56px 70px;
  max-width: 920px;
}

.docs-content section {
  scroll-margin-top: 96px;
}

.docs-content section + section {
  margin-top: 56px;
}

.docs-content h1 {
  font-size: clamp(30px, 3.6vw, 40px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 18px;
}

.docs-content h2 {
  font-size: clamp(20px, 2.4vw, 25px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 36px 0 14px;
  scroll-margin-top: 96px;
}

.docs-content p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-2);
  margin-bottom: 18px;
}

.docs-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-bright);
  transition: text-decoration-color 0.2s ease;
}

.docs-content a:hover {
  text-decoration-color: var(--text);
}

.docs-content code {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 2px 6px;
  color: #d5d5d5;
}


.code-block {
  position: relative;
  background: #161616;
  border: 1px solid var(--border);
  margin: 4px 0 22px;
}

.code-block pre {
  padding: 15px 18px;
  overflow-x: auto;
}

.code-block code {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
  color: #cfcfcf;
  background: none;
  border: none;
  padding: 0;
  white-space: pre;
}

.code-block .prompt {
  color: var(--text-3);
  user-select: none;
}

.code-block .copy-btn {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.code-block:hover .copy-btn,
.code-block .copy-btn.copied {
  opacity: 1;
}

.code-block .copy-btn:hover {
  color: var(--text);
}

.code-block .copy-btn svg {
  width: 14px;
  height: 14px;
}

.code-block .copy-btn .icon-check {
  display: none;
}

.code-block .copy-btn.copied .icon-copy {
  display: none;
}

.code-block .copy-btn.copied .icon-check {
  display: block;
}


/* ------------------------------------------------------------
   Docs footer — compact modified version
   ------------------------------------------------------------ */

.docs-footer {
  padding: 48px 0 40px;
}

.docs-footer .footer-grid {
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
}

.docs-footer .footer-logo {
  width: 280px;
}

.docs-footer .footer-left,
.docs-footer .footer-right {
  min-height: 0;
}

.docs-footer .footer-col h4 {
  margin-bottom: 16px;
}

.docs-footer .footer-col a {
  margin-bottom: 10px;
}


@media (max-width: 1024px) {
  .docs-menu-toggle {
    display: grid;
  }

  .docs-nav {
    gap: 16px;
  }

  .docs-sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    background: var(--bg);
    z-index: 999;
    width: 280px;
  }

  body.docs-sidebar-open .docs-sidebar {
    transform: none;
  }

  .docs-content {
    margin-left: 0;
    padding: 48px 40px 70px;
  }
}

@media (max-width: 640px) {
  .docs-nav {
    padding-inline: 16px;
    gap: 12px;
  }

  .docs-nav-logo svg {
    width: 140px;
  }

  /* Floating nav links — bottom right */
  .docs-nav-links {
    display: flex;
    position: fixed;
    bottom: 16px;
    right: 16px;
    gap: 4px;
    z-index: 1001;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 6px;
  }

  .docs-nav-links .nav-link {
    padding: 6px 10px;
    font-size: 10px;
  }

  .docs-content {
    padding: 40px 20px 90px;
  }
}
