/* User guide (/guide). The contents stay in view beside the topics on a
   wide screen; on a phone they sit above the topics and scroll with them. */
.guide-layout {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 992px) {
    .guide-layout {
        grid-template-columns: 16rem minmax(0, 1fr);
    }

    .guide-contents {
        position: sticky;
        top: 1rem;
        max-height: calc(100vh - 2rem);
        overflow: auto;
    }
}

.guide-contents {
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.5rem;
    padding: 1rem;
    background: var(--bs-light, #f8f9fa);
}

.guide-contents h2 {
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
}

.guide-contents ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.guide-contents li + li {
    margin-top: 0.35rem;
}

.guide-contents a {
    display: block;
    text-decoration: none;
}

.guide-search {
    position: relative;
}

.guide-search .form-control {
    padding-left: 2.25rem;
}

.guide-search .guide-search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bs-secondary-color, #6c757d);
    pointer-events: none;
}

.guide-section + .guide-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
}

.guide-section h2 {
    scroll-margin-top: 1rem;
}

.guide-section h3 {
    font-size: 1.05rem;
    margin-top: 1.25rem;
}
