/* Shared styles for societyoftruth/home.html, articles.html and topic.html. */

#articleMenu {
    --bs-offcanvas-width: 300px;
}
.offcanvas-body {
    padding: 0;
}
.offcanvas-body .menu-search {
    padding: 0.75rem;
}
.offcanvas-body .article-list {
    overflow-y: auto;
}
/* #articlesSection wraps the article list in its own flex column so the list can still be the
   sole scrolling region below the (non-scrolling) topics section - flex items default to
   min-height: auto, which would otherwise stop the nested flex-grow-1 list from shrinking/
   scrolling within the offcanvas body's own flex column. */
.offcanvas-body #articlesSection {
    min-height: 0;
}
.offcanvas-body .list-group {
    box-shadow: none;
}
.offcanvas-body .list-group-item {
    background-color: #fff;
    border: 0;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}
.offcanvas-body .list-group-item.active {
    background-color: #fff;
    color: var(--bs-body-color);
    font-weight: 600;
}
.offcanvas-body .menu-section-title {
    margin: 0;
    padding: 0.75rem 0.75rem 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--bs-secondary-color);
}

@media (min-width: 992px) {
    #articleMenu {
        background-color: #fff;
        border-right: 1px solid var(--bs-border-color);
    }
    .offcanvas-lg .offcanvas-body {
        max-width: 300px;
    }
}

main {
    max-width: 720px;
    margin: 0;
}

article img {
    max-width: 100%;
}
article blockquote {
    padding-left: 1rem;
    border-left: 4px solid var(--bs-border-color);
    color: var(--bs-secondary-color);
}

/* societyoftruth/topic.html's per-topic article list - list-group-flush still leaves a hairline
   border between items, so drop it entirely for a plain, borderless list of links. */
.topic-article-list .list-group-item {
    border: 0;
}
