body.docs-page {
  display: block;
  padding: 0;
  align-items: unset;
}

.docs-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.docs-sidebar {
  width: 350px;
  flex-shrink: 0;
  border-right: 1px solid var(--border);
  background: var(--bg);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.docs-logo {
  height: 60px;
  width: auto;
  align-self: center;
}

.docs-toc {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.docs-toc-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.docs-toc-link {
  font-size: 0.78rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  border-left: 2px solid transparent;
  transition: all 0.15s;
  line-height: 1.4;
}

.docs-toc-link:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

.docs-toc-link.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--accent-dim);
  font-weight: 600;
}

.docs-toc-group {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 1.1rem;
  margin-bottom: 0.2rem;
  padding-left: 0.6rem;
}

.docs-toc-link--sub {
  padding-left: 1rem;
  font-size: 0.75rem;
}

.docs-toc-pro-header {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-top: 1.5rem;
  margin-bottom: 0.2rem;
  padding: 0.4rem 0.6rem;
  border-top: 1px solid var(--border);
}

.docs-toc-group--sub {
  padding-left: 1rem;
  margin-top: 0.75rem;
}

.badge-pro {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(26, 156, 201, 0.35);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  vertical-align: middle;
  position: relative;
  top: -2px;
}

.docs-sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.docs-sidebar-footer a {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.docs-sidebar-footer a:hover {
  color: var(--accent);
}

.docs-main {
  flex: 1;
  min-width: 0;
  padding: 3rem 3.5rem 5rem;
  max-width: 860px;
}

.docs-hero {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.5s ease 0.05s forwards;
}

.docs-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 0.75rem;
}

.docs-hero p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 560px;
}

.docs-main section {
  margin-bottom: 4rem;
  scroll-margin-top: 2rem;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards;
}

.docs-main section:nth-child(1) {
  animation-delay: 0.1s;
}

.docs-main section:nth-child(2) {
  animation-delay: 0.15s;
}

.docs-main section:nth-child(3) {
  animation-delay: 0.2s;
}

.docs-main section:nth-child(4) {
  animation-delay: 0.25s;
}

.docs-main section:nth-child(5) {
  animation-delay: 0.3s;
}

.docs-main section:nth-child(6) {
  animation-delay: 0.35s;
}

.docs-main h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.doc-block {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

.doc-block--left {
  flex-direction: row-reverse;
}

.doc-text {
  flex: 1;
  min-width: 0;
}

.doc-text p {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 1rem;
}

.doc-text p:last-child {
  margin-bottom: 0;
}

.doc-text ul {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--text);
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.doc-text ol {
  font-size: 0.88rem;
  line-height: 1.85;
  color: var(--text);
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.doc-text ul li {
  margin-bottom: 0.3rem;
}

.doc-text ol li {
  margin-bottom: 0.3rem;
}

.doc-image {
  flex-shrink: 0;
  width: 260px;
}

.doc-image img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  display: block;
}

.docs-mobile-header {
  display: none;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.docs-mobile-logo {
  height: 24px;
  width: auto;
}

.docs-mobile-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
  font-size: 0.72rem;
  font-family: inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s;
}

.docs-mobile-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.docs-mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 20, 0.45);
}

.docs-mobile-drawer.open {
  display: block;
}

.docs-mobile-drawer-inner {
  background: var(--bg);
  width: 280px;
  height: 100%;
  padding: 2rem 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.docs-drawer-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.docs-drawer-footer a {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.docs-drawer-footer a:hover {
  color: var(--accent);
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(10, 10, 20, 0.85);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

.doc-image img {
  cursor: zoom-in;
}

@media (max-width: 768px) {
  .docs-layout {
    flex-direction: column;
  }

  .docs-sidebar {
    display: none;
  }

  .docs-mobile-header {
    display: flex;
  }

  .docs-main {
    padding: 2rem 1.25rem 4rem;
  }

  .doc-block,
  .doc-block--left {
    flex-direction: column;
  }

  .doc-image {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }
}

.docs-video-section {
  margin: 0 0 2rem;
  padding: 1.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.docs-video-label {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1rem;
  opacity: 0.75;
}

.docs-video-hint {
  font-size: 0.85rem;
  margin-top: 1rem;
  opacity: 0.5;
}

.docs-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin-bottom: 2.5rem;
}

.docs-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
}

@media (max-width: 480px) {
  .docs-main {
    padding: 1.5rem 1rem 3rem;
  }
}