.hero {
    padding: 1.4rem 1.6rem;
    margin: 0 0 1.5rem 0;
    border: 1px solid var(--color-sidebar-background-border);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(162, 28, 175, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(162, 28, 175, 0.08), rgba(192, 38, 211, 0.06));
    box-shadow: 0 18px 40px rgba(60, 10, 70, 0.08);
}.hero h1 {
    margin-top: 0;
    margin-bottom: 0.6rem;
    font-size: 2.3rem;
    line-height: 1.1;
}.hero p {
    margin: 0.4rem 0;
    max-width: 52rem;
    font-size: 1.05rem;
}.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}.hero-actions a {
    display: inline-block;
    padding: 0.72rem 1rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}.hero-actions a:hover {
    transform: translateY(-1px);
}.hero-actions .primary {
    color: #ffffff;
    background: linear-gradient(135deg, #a21caf, #c026d3);
    box-shadow: 0 12px 24px rgba(192, 38, 211, 0.18);
}.hero-actions .secondary {
    color: var(--color-foreground-primary);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--color-sidebar-background-border);
}.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.9rem;
    margin: 1.4rem 0 1.8rem;
}.stat {
    padding: 0.9rem 1rem;
    border: 1px solid var(--color-sidebar-background-border);
    border-radius: 16px;
    background: var(--color-background-secondary);
}.stat strong {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 1.25rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.6rem;
}

.card {
    padding: 1rem 1rem 1.1rem;
    border: 1px solid var(--color-sidebar-background-border);
    border-radius: 16px;
    background: var(--color-background-secondary);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 0.45rem;
    font-size: 1rem;
}

.card p {
    margin-bottom: 0;
    font-size: 0.96rem;
}

.mini-note {
    margin-top: 1rem;
    padding-left: 0.9rem;
    border-left: 3px solid var(--color-brand-primary);
    color: var(--color-foreground-secondary);
}

.toctree-wrapper ul {
    margin-top: 0.2rem;
}

.output-panel {
    margin: 0.8rem 0 1.2rem;
    padding: 0.9rem 1rem;
    border: 1px solid #c7dcb2;
    border-radius: 6px;
    background: #dbeac3;
}

/* Hide "View source code" link in documentation */
.view-this-page {
    display: none !important;
}

/* Hide per-symbol [source] links emitted by API docs */
.viewcode-link,
a[href*="_modules/"] {
    display: none !important;
}

.output-panel .highlight,
.output-panel pre {
    margin: 0;
    background: transparent !important;
    box-shadow: none !important;
}

.output-panel pre {
    font-family: "Cascadia Code", "Consolas", monospace;
    font-size: 0.85rem;
    line-height: 1.28;
    color: #1f2b20;
}

@media (max-width: 700px) {
    .hero {
        padding: 1.1rem;
        border-radius: 14px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }
}
