:root {
    --cs4all-ink: #1f2430;
    --cs4all-muted: #5b6270;
    --cs4all-accent: #8b1e3f;
    --cs4all-accent-dark: #64142d;
    --cs4all-accent-soft: #f7e7ec;
    --cs4all-line: #e6dde0;
    --cs4all-white: #ffffff;
}

body {
    color: var(--cs4all-ink);
    background: linear-gradient(180deg, #f7f3ed 0%, #ffffff 18rem);
}

.wy-nav-side {
    background: linear-gradient(180deg, #5d1028 0%, #781937 44%, #94254a 100%);
}

.wy-side-nav-search {
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 1.6rem;
    padding-bottom: 1.3rem;
}

.wy-side-nav-search > a,
.wy-nav-top a {
    font-family: "Roboto Slab", serif;
    font-size: 1.4rem;
    font-weight: 700;
}

.wy-side-nav-search .logo {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 0.9rem;
    display: block;
    margin: 0 auto 0.75rem;
    max-width: 210px;
    padding: 0.55rem;
}

.wy-menu-vertical {
    padding-bottom: 2rem;
}

.wy-menu-vertical .caption {
    margin: 1.25rem 1.5rem 0.65rem;
}

.wy-menu-vertical .caption-text {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cs4all-side-nav {
    margin: 0;
    padding: 0;
}

.wy-menu-vertical li.toctree-l1 {
    list-style: none;
}

.wy-menu-vertical a {
    border-radius: 0.65rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 0.1rem 0.8rem;
    padding: 0.75rem 0.95rem;
    transition: background-color 120ms ease, color 120ms ease;
}

.wy-menu-vertical a:hover,
.wy-menu-vertical a.current {
    background: rgba(255, 255, 255, 0.14);
    color: var(--cs4all-white);
}

.wy-menu-vertical li.current > a {
    background: rgba(255, 255, 255, 0.16);
    border: 0;
}

.wy-menu-vertical ul {
    margin-bottom: 0.35rem;
}

.wy-menu-vertical ul li a {
    padding-left: 1.5rem;
}

.wy-nav-content-wrap {
    background: transparent;
}

.wy-nav-content {
    background: transparent;
    max-width: 920px;
}

.rst-content .section h1 {
    font-family: "Roboto Slab", serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--cs4all-accent-dark);
    margin-bottom: 1rem;
}

.rst-content .section h2,
.rst-content .section h3 {
    font-family: "Roboto Slab", serif;
    color: var(--cs4all-accent-dark);
}

.rst-content a {
    color: var(--cs4all-accent);
}

.rst-content a:hover {
    color: var(--cs4all-accent-dark);
}

.cs4all-hero {
    background:
        radial-gradient(circle at top right, rgba(139, 30, 63, 0.14), transparent 34%),
        linear-gradient(135deg, rgba(248, 244, 239, 0.98), rgba(255, 255, 255, 0.98));
    border: 1px solid var(--cs4all-line);
    border-radius: 1.25rem;
    box-shadow: 0 18px 45px rgba(56, 20, 31, 0.08);
    margin-bottom: 2rem;
    padding: 2.5rem;
}

.cs4all-eyebrow {
    color: var(--cs4all-accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
}

.cs4all-kicker {
    color: var(--cs4all-accent-dark);
    font-family: "Roboto Slab", serif;
    font-size: 1.5rem;
    line-height: 1.35;
    margin-bottom: 1rem;
}

.cs4all-lead,
.cs4all-intro {
    color: var(--cs4all-muted);
    font-size: 1.08rem;
    line-height: 1.75;
    max-width: 46rem;
}

.cs4all-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.cs4all-button {
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-block;
    font-weight: 700;
    padding: 0.8rem 1.2rem;
    text-decoration: none !important;
}

.cs4all-button-primary {
    background: var(--cs4all-accent);
    color: var(--cs4all-white) !important;
}

.cs4all-button-primary:hover {
    background: var(--cs4all-accent-dark);
}

.cs4all-button-secondary {
    background: var(--cs4all-white);
    border-color: var(--cs4all-line);
    color: var(--cs4all-accent-dark) !important;
}

.cs4all-button-secondary:hover {
    border-color: var(--cs4all-accent);
}

.cs4all-grid,
.cs4all-contact-grid,
.cs4all-highlight-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 1.4rem 0 2rem;
}

.cs4all-card,
.cs4all-panel,
.cs4all-contact-card,
.cs4all-highlight {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--cs4all-line);
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(56, 20, 31, 0.05);
    display: block;
    padding: 1.2rem;
}

.cs4all-card {
    color: inherit !important;
    text-decoration: none !important;
}

.cs4all-card:hover {
    border-color: rgba(139, 30, 63, 0.4);
    transform: translateY(-2px);
    transition: transform 120ms ease, border-color 120ms ease;
}

.cs4all-card h3,
.cs4all-panel h3,
.cs4all-contact-card h3,
.cs4all-highlight h3 {
    margin-top: 0;
    margin-bottom: 0.45rem;
}

.cs4all-note {
    background: var(--cs4all-accent-soft);
    border-left: 4px solid var(--cs4all-accent);
    border-radius: 0.75rem;
    color: var(--cs4all-ink);
    margin: 1rem 0 1.75rem;
    padding: 1rem 1rem 1rem 1.1rem;
}

.cs4all-quote {
    background: linear-gradient(135deg, rgba(139, 30, 63, 0.08), rgba(255, 255, 255, 0.9));
    border-left: 4px solid var(--cs4all-accent);
    border-radius: 0.9rem;
    color: var(--cs4all-accent-dark);
    font-family: "Roboto Slab", serif;
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 1.25rem 0 1.75rem;
    padding: 1.2rem 1.3rem;
}

.cs4all-meta {
    color: var(--cs4all-muted);
    font-size: 0.95rem;
}

.rst-content table.docutils {
    border-radius: 0.8rem;
    overflow: hidden;
}

.rst-content table.docutils thead th {
    background: var(--cs4all-accent-soft);
    color: var(--cs4all-accent-dark);
}

@media screen and (max-width: 768px) {
    .rst-content .section h1 {
        font-size: 2.1rem;
    }

    .cs4all-hero {
        padding: 1.6rem;
    }
}
