/* ===================================================================
   Docs — Media Guard
   Dark theme matching marketing pages.
   =================================================================== */

@import url('use-cases.css');

.docs-main {
  padding-bottom: 120px;
}

.docs-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 100px;
  align-self: flex-start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.docs-nav-group {
  margin-bottom: 32px;
}

.docs-nav-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  margin-bottom: 16px;
  padding-left: 12px;
}

.docs-nav-link {
  display: block;
  padding: 8px 12px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  border-radius: 6px;
  transition: all 0.2s ease;
  margin-bottom: 4px;
  line-height: 1.4;
}

.docs-nav-link:hover {
  background: var(--surface);
  color: var(--text);
}

.docs-nav-link.active {
  background: var(--surface-2);
  color: var(--mint);
  font-weight: 500;
}

.docs-content {
  flex: 1;
  padding: 48px 56px;
  border-radius: 16px;
  min-width: 0;
}

.docs-content h1 {
  font-size: 32px;
  letter-spacing: -0.02em;
  margin: 0 0 32px;
  line-height: 1.2;
}

.docs-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dim);
}

.docs-body h2 {
  font-size: 20px;
  color: var(--text);
  margin: 48px 0 16px;
  letter-spacing: -0.01em;
}

.docs-body h3 {
  font-size: 16px;
  color: var(--text);
  margin: 32px 0 12px;
}

.docs-body p {
  margin-bottom: 20px;
}

.docs-body ul, .docs-body ol {
  margin: 0 0 24px 24px;
}

.docs-body li {
  margin-bottom: 8px;
}

.docs-body a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.docs-body a:hover {
  color: #fff;
}

.docs-body code {
  font-family: var(--mono);
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--violet);
  border: 1px solid var(--border);
}

@media (max-width: 900px) {
  .docs-main .wrap {
    flex-direction: column;
  }
  .docs-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
    margin-bottom: 12px;
  }
  .docs-content {
    padding: 32px 24px;
  }
}
