/* The blog, on both an organization's site and leagueroots.com, so it uses neither's own classes. */

.lr-blog {
    max-width: 46rem;
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.lr-blog-meta {
    color: var(--bs-secondary-color, #6c757d);
    font-size: .9rem;
}

.lr-blog-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lr-blog-list > li {
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    padding: 1.25rem 0;
}

.lr-blog-body {
    overflow-wrap: break-word;
}

/* After a float, so the next post or the footer does not ride up beside a picture. */
.lr-blog-body::after {
    clear: both;
    content: "";
    display: block;
}

/* Important because a resized picture carries its height inline, and on a phone that would
   squash it once max-width takes hold. */
.lr-blog-body img {
    max-width: 100%;
    height: auto !important;
}

.lr-blog-body pre {
    background: var(--bs-tertiary-bg, #f8f9fa);
    border-radius: .375rem;
    overflow-x: auto;
    padding: 1rem;
}

.lr-blog-body table {
    border-collapse: collapse;
    margin-bottom: 1rem;
    max-width: 100%;
}

/* Only here, because a table shown as a block ignores its width. A wide one scrolls on a phone. */
@media (max-width: 575.98px) {
    .lr-blog-body table {
        display: block;
        overflow-x: auto;
        width: fit-content !important;
    }
}

.lr-blog-body th,
.lr-blog-body td {
    border: 1px solid var(--bs-border-color, #dee2e6);
    padding: .375rem .75rem;
}

.lr-blog-body blockquote {
    border-left: .25rem solid var(--bs-border-color, #dee2e6);
    color: var(--bs-secondary-color, #6c757d);
    margin-left: 0;
    padding-left: 1rem;
}

.lr-blog-body .task-list-item {
    list-style: none;
}
