/* Documentation layout based on a modern cloud docs style */
:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1f2937;
  background: #f3f4f6;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #f3f4f6;
}

body {
  line-height: 1.6;
}

a {
  color: #2563eb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.docs-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.docs-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 24px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand a {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
}

.docs-header-meta p {
  margin: 0;
  color: #6b7280;
}

.docs-body {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: 32px;
}

.docs-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05);
}

.sidebar-title {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 16px;
}

.sidebar-links {
  display: grid;
  gap: 12px;
}

.sidebar-links a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: #111827;
  background: #f9fafb;
  border: 1px solid transparent;
}

.sidebar-links a:hover,
.sidebar-links a:focus {
  background: #eff6ff;
  border-color: #bfdbfe;
}

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

.docs-article {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05);
}

.docs-page-header {
  margin-bottom: 28px;
}

.page-category {
  margin: 0 0 12px;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 9999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.docs-page-header h1 {
  margin: 0;
  font-size: clamp(2rem, 2.4vw, 3rem);
  line-height: 1.05;
}

.page-description {
  margin: 18px 0 0;
  color: #4b5563;
  max-width: 62ch;
}

.docs-content h2,
.docs-content h3,
.docs-content h4,
.docs-content h5,
.docs-content h6 {
  color: #111827;
}

.docs-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.docs-content p,
.docs-content li {
  color: #374151;
}

.docs-content ul,
.docs-content ol {
  padding-left: 1.4rem;
}

.docs-content pre,
.docs-content code {
  font-family: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

.docs-content pre {
  background: #111827;
  color: #f8fafc;
  padding: 18px;
  border-radius: 16px;
  overflow-x: auto;
}

.docs-content code {
  color: #d946ef;
  background: #f8fafc;
  padding: 2px 5px;
  border-radius: 6px;
}

.docs-content img {
  max-width: 100%;
  border-radius: 18px;
}

@media (max-width: 980px) {
  .docs-body {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .docs-header,
  .docs-body,
  .docs-article {
    padding: 20px;
  }

  .docs-sidebar {
    padding: 20px;
  }

  .docs-page-header h1 {
    font-size: 2rem;
  }
}
