body > header.site-header {
    background: #5865f2;
}

body > header.site-header > div {
    max-width: 1000px;
}

body > header.site-header .site-title {
    color: white;
}

@media (prefers-color-scheme: dark) {
    .ci-stats {
        --accent: #8fa0ff;
        --accent-light: #b0bbff;
        --bg: #171821;
        --bg-card: #21232e;
        --text: #eceef8;
        --text-muted: #b8bccd;
        --border: #383b4d;
        --shadow: 0 4px 16px rgba(0, 0, 0, 0.32);
    }
}

main.page-content {
    padding-top: 0;
}

main > div.wrapper {
    max-width: none;
    padding: 0;
}

/* The ci_stats shortcode wraps content in an inner .ci-stats; flatten it. */
.ci-stats .ci-stats {
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

/* Full-bleed header background; inner <div> keeps content in the 1000px band. */
.ci-stats > header {
    max-width: none;
    margin-top: -2rem;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.ci-stats > header > div {
    max-width: 1000px;
    margin: 0 auto;
}

footer .wrapper {
    max-width: 1000px;
}
