/* pycsp3-scheduling - Elegant minimal documentation styles */

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

/* Smooth transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Content styling */
.content {
    line-height: 1.7;
}

/* Elegant headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

h1 { margin-top: 0; }

/* Code blocks - clean and minimal */
.highlight {
    border-radius: 8px;
    font-size: 0.875rem;
}

.highlight pre {
    padding: 1rem 1.25rem;
    line-height: 1.6;
}

/* Inline code */
code.literal {
    font-size: 0.875em;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-weight: 500;
}

/* Tables - minimal borders */
table.docutils {
    border-collapse: collapse;
    width: 100%;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

table.docutils td,
table.docutils th {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-background-border);
}

table.docutils th {
    font-weight: 600;
    border-bottom-width: 2px;
}

table.docutils tbody tr:hover {
    background-color: var(--color-background-secondary);
}

/* Admonitions - subtle and elegant */
.admonition {
    border-radius: 8px;
    border-left: 4px solid;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}

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

/* Note styling */
.admonition.note {
    border-left-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.05);
}

/* Warning styling */
.admonition.warning {
    border-left-color: #f59e0b;
    background-color: rgba(245, 158, 11, 0.05);
}

/* Tip styling */
.admonition.tip {
    border-left-color: #10b981;
    background-color: rgba(16, 185, 129, 0.05);
}

/* API documentation styling */
dl.py.class,
dl.py.function,
dl.py.method {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
    background-color: var(--color-background-secondary);
}

dt.sig {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    padding: 0.5rem 0;
}

/* Parameter lists */
dd {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

/* Sidebar refinements */
.sidebar-brand-text {
    font-weight: 600;
}

/* Search field */
.sidebar-search input {
    border-radius: 8px;
}

/* Links - subtle underline on hover */
a {
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Version badge in sidebar */
.sidebar-version {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Copy button refinement */
button.copybtn {
    border-radius: 4px;
}

/* TOC refinement */
.toc-tree li {
    padding: 0.25rem 0;
}

/* Footer */
.bottom-of-page {
    font-size: 0.85rem;
    opacity: 0.8;
}
