:root {
  --bg-main: #ffffff;
  --bg-sidebar: #fbfaf8;
  --bg-card: #ffffff;
  --border-subtle: #e9e5dc;
  --border-highlight: #d97706;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --nut-primary: #a8561e;
  --egg-accent: #d97706;
  --egg-gradient: linear-gradient(135deg, #a8561e 0%, #d97706 100%);
  --code-bg: #f8fafc;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--egg-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.docs-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.docs-header-content {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.15rem;
}

.brand-link img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.9rem;
}

.header-nav a {
  color: var(--text-muted);
}

.header-nav a:hover {
  color: var(--text-main);
  text-decoration: none;
}

/* Layout */
.docs-container {
  display: flex;
  flex: 1;
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
}

/* Sidebar */
.docs-sidebar {
  width: 260px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-subtle);
  padding: 32px 20px;
  background: var(--bg-sidebar);
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
}

.sidebar-group {
  margin-bottom: 28px;
}

.sidebar-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.sidebar-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-links a {
  display: block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.sidebar-links a:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-main);
}

.sidebar-links a.active {
  background: #fef3c7;
  color: #92400e;
  font-weight: 600;
  border-left: 2px solid var(--egg-accent);
}

/* Main Content Area */
.docs-content {
  flex: 1;
  padding: 40px 48px 80px;
  max-width: 900px;
}

.docs-content h1 {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
  color: #0f172a;
}

.docs-content .lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.docs-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 40px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  color: #0f172a;
}

.docs-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 28px 0 12px;
  color: #0f172a;
}

.docs-content p, .docs-content ul, .docs-content ol {
  color: #334155;
  font-size: 0.96rem;
  margin-bottom: 18px;
}

.docs-content ul, .docs-content ol {
  padding-left: 24px;
}

.docs-content li {
  margin-bottom: 8px;
}

.docs-content code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  color: #c2410c;
}

.docs-content pre {
  background: var(--code-bg);
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px 20px;
  overflow-x: auto;
  margin: 18px 0 24px;
}

.docs-content pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: #0f172a;
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Callout Box */
.callout {
  background: #fefce8;
  border: 1px solid #fde047;
  border-radius: 10px;
  padding: 18px 20px;
  margin: 24px 0;
}

.callout-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #854d0e;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.callout p {
  color: #475569;
  margin-bottom: 0;
  font-size: 0.92rem;
}

/* Responsive */
@media (max-width: 860px) {
  .docs-container {
    flex-direction: column;
  }
  .docs-sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px 24px;
  }
  .docs-content {
    padding: 30px 24px;
  }
}
