/* Docs platform — complements Tailwind (PickleMods-style) */

html {
  scroll-behavior: smooth;
}

/* Prose / article content */
.docs-prose {
  font-size: 1rem;
  line-height: 1.75;
  color: #a1a1aa;
}

.docs-prose > * + * {
  margin-top: 1.25em;
}

.docs-prose h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #fafafa;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.5em;
}

.docs-prose h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fafafa;
  letter-spacing: -0.02em;
  margin-top: 2.5em;
  margin-bottom: 0.75em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid #27272a;
  scroll-margin-top: 6rem;
}

.docs-prose h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #f4f4f5;
  margin-top: 2em;
  scroll-margin-top: 6rem;
}

.docs-prose h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #e4e4e7;
  scroll-margin-top: 6rem;
}

.docs-prose p {
  color: #a1a1aa;
}

.docs-prose a {
  color: #a3e635;
  text-decoration: none;
  font-weight: 500;
}

.docs-prose a:hover {
  color: #bef264;
  text-decoration: underline;
}

.docs-prose ul,
.docs-prose ol {
  padding-left: 1.5rem;
}

.docs-prose li {
  margin-top: 0.35em;
}

.docs-prose li::marker {
  color: #71717a;
}

.docs-prose strong {
  color: #fafafa;
  font-weight: 600;
}

.docs-prose code:not(pre code) {
  font-size: 0.875em;
  padding: 0.15em 0.4em;
  border-radius: 0.375rem;
  background: #18181b;
  border: 1px solid #27272a;
  color: #d4d4d8;
}

.docs-prose blockquote {
  border-left: 3px solid #a3e635;
  padding-left: 1rem;
  color: #71717a;
  font-style: italic;
}

.docs-prose hr {
  border: none;
  border-top: 1px solid #27272a;
  margin: 2.5em 0;
}

/* Sidebar collapsible */
.sidebar-group-toggle svg.chevron {
  transition: transform 0.2s ease;
}

.sidebar-group.is-open .sidebar-group-toggle svg.chevron {
  transform: rotate(90deg);
}

.sidebar-group-items {
  display: none;
}

.sidebar-group.is-open .sidebar-group-items {
  display: block;
}

/* TOC active link */
.toc-link.is-active {
  color: #a3e635;
  border-left-color: #a3e635;
  background: rgba(163, 230, 53, 0.08);
}

/* Code block */
.code-block {
  position: relative;
  border-radius: 0.75rem;
  border: 1px solid #27272a;
  background: #0c0c0e;
  overflow: hidden;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  background: #18181b;
  border-bottom: 1px solid #27272a;
  font-size: 0.75rem;
}

.code-block pre {
  margin: 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.code-block code {
  font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
  color: #e4e4e7;
}

.code-block .copy-btn.is-copied {
  color: #a3e635;
}

/* Scrollbar */
.docs-sidebar::-webkit-scrollbar,
.docs-toc::-webkit-scrollbar {
  width: 6px;
}

.docs-sidebar::-webkit-scrollbar-thumb,
.docs-toc::-webkit-scrollbar-thumb {
  background: #3f3f46;
  border-radius: 3px;
}

/* Mobile sidebar overlay */
.sidebar-backdrop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.sidebar-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.docs-sidebar-panel {
  transform: translateX(-100%);
  transition: transform 0.25s ease;
}

.docs-sidebar-panel.is-open {
  transform: translateX(0);
}

@media (min-width: 1024px) {
  .docs-sidebar-panel {
    transform: none;
  }
}
