.nav-link.active { color: var(--text-primary); }
.nav-link.active::after { width: 100%; }

.docs-main {
    display: flex;
    max-width: var(--container);
    margin: 0 auto;
    padding: 88px 24px 64px;
    gap: 48px;
}

.docs-sidebar { width: 200px; flex-shrink: 0; }
.sidebar-sticky { position: sticky; top: 88px; }
.sidebar-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 16px;
}
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-link {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border-left: 2px solid transparent;
    transition: all var(--transition);
}
.sidebar-link:hover { color: var(--text-primary); background: var(--bg-hover); }
.sidebar-link.active {
    color: var(--amber-hover);
    background: var(--amber-light);
    border-left-color: var(--amber);
    font-weight: 500;
}

.docs-content { flex: 1; min-width: 0; }

.docs-header { margin-bottom: 48px; }
.docs-title {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 8px;
    margin-bottom: 8px;
}
.docs-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.docs-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-light);
}
.docs-section:last-child { border-bottom: none; }

.docs-section h2 {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.docs-section h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    margin: 20px 0 8px;
    color: var(--text-primary);
}
.docs-section p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}
.docs-section p strong { color: var(--text-primary); }

.docs-callout {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: var(--amber-light);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--amber);
    margin: 16px 0;
    color: var(--amber-hover);
}
.docs-callout div p { margin: 4px 0 0; font-size: 0.8125rem; }
.docs-callout strong { color: var(--text-primary); font-size: 0.875rem; }

.endpoint-box {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-sheet);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    margin-bottom: 16px;
}
.endpoint-box code {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.docs-code {
    background: #2A2420;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 12px 0 16px;
}
.docs-code .code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.docs-code pre {
    padding: 16px;
    margin: 0;
    overflow-x: auto;
}
.docs-code code {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.7;
    color: #DED3C5;
}

.docs-list {
    list-style: none;
    margin: 8px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.docs-list li {
    font-size: 0.875rem;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
}
.docs-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--amber);
    border-radius: 50%;
}
.docs-list li code {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    background: var(--amber-light);
    padding: 1px 8px;
    border-radius: var(--radius-sm);
    color: var(--amber-hover);
}
.docs-list li strong { color: var(--text-primary); }

.docs-table-wrap { overflow-x: auto; margin: 12px 0 16px; }
.docs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    background: var(--bg-sheet);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
}
.docs-table th {
    text-align: left;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    background: var(--bg-hover);
    border-bottom: 1px solid var(--border);
}
.docs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}
.docs-table td code {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    background: var(--amber-light);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    color: var(--amber-hover);
}
.docs-table tr:last-child td { border-bottom: none; }

.method-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-family: var(--font-mono);
}
.method-badge.post { background: var(--amber-light); color: var(--amber-hover); }
.method-badge.get { background: var(--green-light); color: var(--green); }

.error-badge {
    display: inline-block;
    padding: 2px 10px;
    background: var(--red-light);
    color: var(--red);
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 600;
}

.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.note-card {
    background: var(--bg-sheet);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 20px;
}
.note-card h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}
.note-card h4 svg { color: var(--amber); flex-shrink: 0; }
.note-card p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .docs-sidebar { display: none; }
    .docs-main { padding-top: 80px; }
    .notes-grid { grid-template-columns: 1fr; }
}
