/* Custom CSS for OpenAI Toolchain documentation */

/* Fix code block formatting */
.highlight {
    border-radius: 0.25rem;
    margin: 1rem 0;
}

/* Improve readability of API docs */
.doc-contents {
    padding: 1rem;
    background-color: var(--md-code-bg-color, #f5f5f5);
    border-radius: 0.25rem;
}

/* Style for code blocks */
pre {
    padding: 1rem;
    overflow: auto;
    border-radius: 0.25rem;
}

/* Style for API method signatures */
.signature {
    font-family: var(--md-code-font-family, monospace);
    font-size: 0.9em;
    padding: 0.5rem;
    background-color: var(--md-code-bg-color, #f5f5f5);
    border-radius: 0.25rem;
}

/* Style for parameters and return values */
.field-list dt {
    font-weight: 600;
    margin-top: 0.5em;
}

.field-list dd {
    margin-bottom: 1em;
    margin-left: 1em;
}

/* Style for notes and warnings */
.admonition {
    border-radius: 0.25rem;
    margin: 1rem 0;
    padding: 0 0.6rem 0.8rem 0.6rem;
}

.admonition-title {
    font-weight: 700;
    margin: 0 -0.6rem 0.5rem -0.6rem;
    padding: 0.4rem 0.6rem 0.4rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive tables */
.md-typeset table:not([class]) {
    display: table;
    width: 100%;
    overflow-x: auto;
}

/* Improve spacing in method documentation */
.doc-heading {
    margin-top: 1.5em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid var(--md-typeset-table-color, #e0e0e0);
}
