/*
 * Optymus Documentation - Minimalist Style
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --text: #333;
    --text-light: #666;
    --text-muted: #999;
    --border: #e5e5e5;
    --bg: #fff;
    --bg-subtle: #fafafa;
}

body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text);
    margin: 2rem 0 1rem;
    line-height: 1.3;
}

h1 { font-size: 1.8rem; }
h2 { font-size: 1.4rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

p { margin-bottom: 1rem; }

a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--text-muted);
    text-underline-offset: 2px;
}

a:hover {
    text-decoration-color: var(--text);
}

/* Code */
code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--bg-subtle);
    padding: 0.15em 0.4em;
    border-radius: 3px;
}

pre {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--bg-subtle);
    padding: 1rem;
    overflow-x: auto;
    border-radius: 4px;
}

/* API docs */
dl.py {
    margin: 1.5rem 0;
    padding: 1rem;
    background: var(--bg-subtle);
    border-radius: 4px;
}

dt.sig {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

/* Admonitions */
.admonition {
    padding: 1rem;
    margin: 1.5rem 0;
    background: var(--bg-subtle);
    border-left: 3px solid var(--border);
    border-radius: 0 4px 4px 0;
}

.admonition-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Tables */
table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

th, td {
    padding: 0.6rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.85em;
}

/* Sidebar */
.bd-sidebar-primary a,
.bd-sidebar-secondary a {
    color: var(--text-light);
    text-decoration: none;
}

.bd-sidebar-primary a:hover,
.bd-sidebar-secondary a:hover {
    color: var(--text);
}

/* Header */
.bd-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

/* Footer */
footer {
    color: var(--text-muted);
    font-size: 0.85em;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* Autosummary */
.autosummary td {
    padding: 0.5rem;
}

.autosummary a {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

/* Copy button */
.copybtn {
    opacity: 0.3;
}

.copybtn:hover {
    opacity: 0.7;
}

/* Print */
@media print {
    body { font-size: 11pt; }
    .bd-sidebar-primary, .bd-sidebar-secondary, .bd-header { display: none; }
}
