/* Increase paragraph spacing for readability */
.bd-article-container p {
    margin-bottom: 1.2em;
}

.bd-article-container li + li {
    margin-top: 0.4em;
}

/* --- Sidebar brand / project info --- */
.sidebar-project-info {
    margin-bottom: 0.5rem;
}

.sidebar-project-info .sidebar-brand {
    display: block;
    text-decoration: none;
}

.sidebar-project-info .sidebar-version,
.sidebar-project-info .sidebar-tagline {
    padding: 0 var(--sidebar-item-spacing-horizontal);
}

.sidebar-project-info .sidebar-brand-text {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-brand-primary);
}

.sidebar-version {
    font-size: 0.8rem;
    color: var(--color-foreground-muted);
    margin-top: 0.15rem;
}

.sidebar-tagline {
    font-size: 0.78rem;
    color: var(--color-foreground-secondary);
    margin-top: 0.3rem;
    line-height: 1.35;
}

.sidebar-separator {
    border: none;
    border-top: 1px solid var(--color-background-border);
    margin: 0.75rem var(--sidebar-item-spacing-horizontal);
}

.sidebar-author-info {
    padding: 0 var(--sidebar-item-spacing-horizontal);
    font-size: 0.8rem;
    color: var(--color-foreground-secondary);
    margin-bottom: 0.75rem;
}

.sidebar-author-info a {
    color: var(--color-foreground-secondary);
    text-decoration: none;
}

.sidebar-author-info a:hover {
    color: var(--color-brand-primary);
    text-decoration: underline;
}

.sidebar-author-info strong {
    color: var(--color-foreground-primary);
}

.sidebar-author-links {
    margin-top: 0.3rem;
    font-size: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.sidebar-author-links a {
    color: var(--color-foreground-muted);
}

/* --- Space between top of page and content --- */
.article-container {
    padding-top: 1.5rem;
}

/* --- Section-style expandable nav items (captionless toctrees) --- */
.sidebar-tree > ul:not(p.caption + ul) > li.toctree-l1.has-children > a {
    font-size: var(--sidebar-caption-font-size);
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-sidebar-caption-text);
    letter-spacing: 0.05em;
}

/* --- Indent items under captions (Getting Started, Other) --- */
.sidebar-tree p.caption + ul > li.toctree-l1 > a {
    padding-left: calc(var(--sidebar-item-spacing-horizontal) + 0.75rem);
}

/* --- Sidebar nav links: use brand color --- */
.sidebar-tree li.toctree-l1 > a,
.sidebar-tree li.toctree-l2 > a {
    color: var(--color-brand-content);
}

/* --- Sidebar brand logo --- */
.sidebar-brand-logo {
    display: block;
    width: 100%;
    height: auto;
}

/* --- Main page: vertically centered content --- */
.bd-article-container > article {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 4rem);
}

/* --- Main page hero logo --- */
.hero-logo {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto 1rem auto;
}
