
/**
 * Docs styles. Complements the shared CSS extracted from public/index.html.
 * Scoped to body.docs-page to avoid touching the landing.
 */

body.docs-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--hero-base);
  color: var(--heading, #f5f5f7);
  font-family: "Onest", system-ui, sans-serif;
}

/* --- Header (fixed, minimal) --- */
.docs-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: rgba(4, 5, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.docs-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  font-size: 1.1rem;
  color: inherit;
  text-decoration: none;
}
.docs-brand img {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}
.docs-nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
}
.docs-nav a {
  color: var(--muted, #b9becf);
  text-decoration: none;
  transition: color 0.2s;
}
.docs-nav a:hover { color: var(--violet, #a78bfa); }

/* --- Main content --- */
.docs-main {
  flex: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}
@media (max-width: 640px) {
  .docs-main { padding: 2rem 1.1rem 3rem; }
}

/* --- Markdown typography --- */
.docs-content h1 {
  font-size: 2.2rem;
  line-height: 1.15;
  margin: 0 0 1.5rem;
  letter-spacing: -0.02em;
}
.docs-content h2 {
  font-size: 1.5rem;
  margin: 3rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: -0.01em;
}
.docs-content h3 {
  font-size: 1.2rem;
  margin: 2.25rem 0 0.75rem;
}
.docs-content h4 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.5rem;
  color: var(--muted, #b9becf);
}
.docs-content p,
.docs-content li {
  font-size: 1rem;
  line-height: 1.7;
  color: #d5d8e2;
}
.docs-content p { margin: 0 0 1.1rem; }
.docs-content ul,
.docs-content ol {
  padding-left: 1.4rem;
  margin: 0 0 1.2rem;
}
.docs-content li { margin: 0.3rem 0; }
.docs-content a {
  color: var(--violet, #a78bfa);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.docs-content a:hover { border-bottom-color: currentColor; }
.docs-content strong { color: #ffffff; font-weight: 600; }

/* Inline code */
.docs-content code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.15em 0.4em;
  border-radius: 4px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border);
}

/* Code blocks */
.docs-content pre {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  margin: 0 0 1.5rem;
  font-size: 0.88rem;
  line-height: 1.6;
}
.docs-content pre code {
  padding: 0;
  border: none;
  background: transparent;
  font-size: inherit;
}

/* Tables */
.docs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.75rem;
  font-size: 0.94rem;
}
.docs-content th,
.docs-content td {
  text-align: left;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border);
}
.docs-content th {
  color: #ffffff;
  font-weight: 600;
  background: rgba(255,255,255,0.03);
}

/* Blockquote */
.docs-content blockquote {
  border-left: 3px solid var(--violet, #a78bfa);
  padding: 0.25rem 0 0.25rem 1.1rem;
  margin: 1rem 0 1.5rem;
  color: var(--muted, #b9becf);
  font-style: italic;
}

/* Horizontal rule */
.docs-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* Docs index list */
.docs-index {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}
.docs-index li { margin: 0.5rem 0; }
.docs-index a {
  display: block;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.docs-index a:hover {
  border-color: var(--violet, #a78bfa);
  background: rgba(167,139,250,0.06);
}
.docs-index strong {
  display: block;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.15rem;
  font-weight: 600;
}
.docs-index span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted, #b9becf);
  line-height: 1.5;
}
