body {
    font-family: system-ui, -apple-system, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    line-height: 1.6;
}

/* Links */
a {
    color: #1976d2;
}

a:hover {
    color: #1565c0;
}

/* Site header */
.site-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.site-header h1 {
    margin: 0;
    font-size: 1.5rem;
}

.site-header a {
    display: flex;
    align-items: center;
}

/* Navigation */
.docs-nav {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1.5rem;
}

.docs-nav a {
    color: #555;
    text-decoration: none;
    font-weight: 500;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
}

.docs-nav a:hover {
    color: #1976d2;
}

.docs-nav a.active {
    color: #1976d2;
    border-bottom-color: #1976d2;
}

/* Example intro */
.intro {
    margin-bottom: 2rem;
}

.intro p {
    margin-bottom: 0.75rem;
}

/* Chart app container */
.chart-app {
    background: #f8fafc;
    border-radius: 8px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.chart-app h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1rem 0;
}

/* Chart container */
.chart-container {
    background: white;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.chart-container svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Form controls */
.chart-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.chart-controls input[type="text"],
.chart-controls input[type="number"] {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.9rem;
}

.chart-controls input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.chart-controls button {
    padding: 0.5rem 1rem;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.15s ease;
}

.chart-controls button:hover {
    background: #2563eb;
}

/* Selection info */
.selection-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #1e40af;
}

.selection-info strong {
    font-weight: 600;
}

/* No selection state */
.no-selection {
    color: #64748b;
    font-style: italic;
}
