/* User guide — how-to page with illustration panels */
.user-guide-hero {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary, #0d6efd) 12%, transparent), color-mix(in srgb, var(--primary, #0d6efd) 4%, transparent));
    border-radius: 0.75rem;
    padding: 1.5rem 1.25rem;
    margin-bottom: 1.5rem;
}

.user-guide-toc {
    position: sticky;
    top: 5.5rem;
}

.user-guide-toc .nav-link {
    font-size: 0.9rem;
    padding: 0.35rem 0.75rem;
    color: var(--bs-body-color);
    border-radius: 0.375rem;
}

.user-guide-toc .nav-link:hover,
.user-guide-toc .nav-link.active {
    background: color-mix(in srgb, var(--primary, #0d6efd) 12%, transparent);
    color: var(--primary, #0d6efd);
}

.user-guide-section {
    scroll-margin-top: 5.5rem;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.user-guide-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
}

.user-guide-figure {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    padding: 0.75rem;
    text-align: center;
}

.user-guide-figure img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

.user-guide-figure img.user-guide-screenshot {
    display: block;
    width: 100%;
    border: 1px solid color-mix(in srgb, var(--bs-border-color) 80%, transparent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.user-guide-steps {
    counter-reset: guide-step;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.user-guide-steps li {
    counter-increment: guide-step;
    position: relative;
    padding-left: 2.25rem;
    margin-bottom: 0.65rem;
}

.user-guide-steps li::before {
    content: counter(guide-step);
    position: absolute;
    left: 0;
    top: 0.05rem;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.5rem;
    text-align: center;
    color: #fff;
    background: var(--primary, #0d6efd);
    border-radius: 50%;
}

.user-guide-tip {
    border-left: 3px solid var(--bs-warning);
    padding: 0.65rem 0 0.65rem 1rem;
    margin-top: 1rem;
    background: color-mix(in srgb, var(--bs-warning) 8%, transparent);
    border-radius: 0 0.375rem 0.375rem 0;
    font-size: 0.9rem;
}

@media (max-width: 991.98px) {
    .user-guide-toc {
        position: static;
        margin-bottom: 1.25rem;
    }

    .user-guide-toc .nav {
        flex-direction: row !important;
        flex-wrap: wrap;
        gap: 0.25rem;
    }
}
