/* AutoCore documentation theme overrides */

:root {
    --ac-primary: #1a56db;
    --ac-primary-light: #3b82f6;
    --ac-accent: #059669;
}

/* Sidebar branding */
.sidebar .sidebar-scrollbox {
    padding-top: 10px;
}

/* Code blocks */
.content pre {
    border-radius: 6px;
    border: 1px solid var(--table-border-color);
}

/* Tables — make them more readable */
.content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

.content table th {
    background-color: var(--table-header-bg);
    font-weight: 600;
    text-align: left;
    padding: 8px 12px;
}

.content table td {
    padding: 8px 12px;
    border-bottom: 1px solid var(--table-border-color);
}

.content table tr:hover td {
    background-color: var(--table-alternate-bg);
}

/* Blockquotes as tips/warnings */
.content blockquote {
    border-left: 4px solid var(--ac-primary-light);
    background-color: var(--quote-bg);
    padding: 12px 16px;
    margin: 1em 0;
    border-radius: 0 6px 6px 0;
}

.content blockquote strong:first-child {
    color: var(--ac-primary);
}

/* Inline code */
.content code:not(pre > code) {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Chapter titles */
.content h1 {
    border-bottom: 2px solid var(--ac-primary);
    padding-bottom: 8px;
}

/* Print styles */
@media print {
    .content h1 {
        page-break-before: always;
    }
    .content h1:first-of-type {
        page-break-before: avoid;
    }
    .sidebar, .menu-bar, .nav-wrapper {
        display: none !important;
    }
}
