/* Docs theme extras, restyled to the DocsArticle frame. Uses the screen.css tokens, so dark mode follows. */
[data-extra][hidden] { display: none; }

.docs-note-ai { margin: 1rem 0 0; color: var(--docs-muted); font-size: 0.875rem; font-style: italic; }

/* Code blocks: a header bar with the file name (data-title) and "Copy code". */
.docs-prose .docs-code {
    margin: 0 0 1rem;
    overflow: hidden;
    border: 1px solid var(--docs-border);
    border-radius: var(--docs-radius);
    background: var(--docs-code);
}
.docs-code-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.25rem 0.25rem 0.25rem 1rem;
    border-bottom: 1px solid var(--docs-border);
    background: var(--docs-subtle);
}
.docs-code-name { color: var(--docs-muted); font-family: var(--docs-mono); font-size: 0.8125rem; overflow-wrap: anywhere; }
.docs-prose .docs-code pre { margin: 0; border: 0; border-radius: 0; background: transparent; }
.docs-btn-small {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--docs-field);
    border-radius: 0.5rem;
    background: var(--docs-surface);
    color: var(--docs-text);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}
.docs-btn-small:hover { border-color: currentColor; }
.docs-code-head .docs-btn-small { margin-left: auto; }

/* Numbered steps: wrapping an ordered list in a "steps" container still works. */
.steps ol { margin: 0 0 1.5rem; padding: 0; list-style: none; counter-reset: step; }
.steps ol > li { position: relative; margin: 0 0 0.75rem; padding-left: 2.625rem; counter-increment: step; }
.steps ol > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 1px;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: var(--docs-soft);
    color: var(--docs-soft-text);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.75rem;
    text-align: center;
}
