/* Match site/index.html palette + typography. */
:root {
    --color-slate-900: #0f172a;
    --color-slate-700: #334155;
    --color-slate-500: #64748b;
    --color-slate-200: #e2e8f0;
    --color-accent-600: #059669;
    --color-accent-700: #047857;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--color-slate-900);
    background: white;
    line-height: 1.6;
    margin: 0;
}

.docs-page {
    max-width: 56rem;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.docs-page h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.docs-page h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.docs-page p {
    color: var(--color-slate-700);
}

/* Tab row */
.tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 1px solid var(--color-slate-200);
    margin-bottom: 0;
}

.tab-button {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--color-slate-500);
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
}

.tab-button[aria-selected="true"] {
    color: var(--color-slate-900);
    border-bottom-color: var(--color-accent-600);
}

/* Panel visibility — JS-on case: hide non-active. */
.tabs-host[data-active] .panel {
    display: none;
}
.tabs-host[data-active="node"] .panel--node,
.tabs-host[data-active="go"] .panel--go,
.tabs-host[data-active="python"] .panel--python {
    display: block;
}

/* No-JS fallback: when [data-active] is absent, all panels render. */
.tabs-host:not([data-active]) .panel {
    display: block;
    margin-top: 1rem;
}
.tabs-host:not([data-active]) .tab-button {
    display: none;
}

/* Code blocks */
pre.code-block {
    position: relative;
    background: var(--color-slate-900);
    color: #f1f5f9;
    padding: 1.25rem 1.25rem 1.25rem 1.25rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
}

pre.code-block code {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Copy button */
.copy-button {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.625rem;
    background: rgba(255, 255, 255, 0.1);
    color: #f1f5f9;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: inherit;
}

.copy-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.copy-button[data-copied="true"] {
    background: var(--color-accent-700);
    color: white;
    border-color: var(--color-accent-700);
}
