:root {
    --pico-font-size: 16px;
}

/* Sticky navigation */
aside {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    overflow-x: hidden;
}

aside nav ul {
    padding-left: 0;
}

aside nav ul li {
    list-style: none;
    margin-bottom: 0.25rem;
}

aside nav ul li a {
    font-size: 0.9rem;
    text-decoration: none;
}

aside nav ul li ul {
    padding-left: 1rem;
    margin-top: 0.25rem;
}

/* Code blocks */
pre {
    background: var(--pico-code-background-color);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
}

code {
    font-size: 0.85rem;
}

/* Response tables */
table {
    font-size: 0.9rem;
}

/* Section spacing */
section {
    margin-bottom: 3rem;
    padding-top: 1rem;
}

/* Endpoint headers */
.endpoint {
    background: var(--pico-card-background-color);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.endpoint code {
    font-size: 1.1rem;
    color: var(--pico-primary);
}

.method {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: bold;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.method-get {
    background: #22c55e;
    color: #000;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--pico-muted-border-color);
}

.hero h1 {
    margin-bottom: 0.5rem;
}

/* Badge styles */
.badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: bold;
}

.badge-required {
    background: #ef4444;
    color: #fff;
}

.badge-optional {
    background: #6b7280;
    color: #fff;
}

/* Quick links */
.quick-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.quick-links a {
    text-decoration: none;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom grid for sidebar layout */
.docs-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .docs-grid {
        grid-template-columns: 1fr;
    }
    
    aside {
        position: relative;
        max-height: none;
    }
}