.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(8, 145, 178, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(3, 105, 161, 0.08), rgba(6, 182, 212, 0.06));
    box-shadow: 0 18px 40px rgba(3, 105, 161, 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, #0369a1, #0891b2);
    box-shadow: 0 12px 24px rgba(8, 145, 178, 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 #a5d8f0;
    border-radius: 6px;
    background: #dbeffe;
}

/* 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: #1a2e40;
}

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

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