.rich-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--bs-body-color);
}

.rich-content h2,
.rich-content h3 {
    margin-top: 2rem;
    font-weight: 600;
}

.rich-content ul,
.rich-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.rich-content p {
    margin-bottom: 1.5rem;
}

.rich-content blockquote {
    border-left: 4px solid var(--bs-border-color);
    padding-left: 1rem;
    color: var(--bs-secondary);
    font-style: italic;
}

.rich-content figure,
.article-body figure {
    margin: 2rem auto;
    text-align: center;
    max-width: 100%;
}

.rich-content figure img,
.article-body figure img,
.rich-content img,
.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Trix attachment styling - clean display in rendered content */
.rich-content figure.attachment a,
.article-body figure.attachment a {
    display: block;
    text-decoration: none;
}

/* Hide filename/size caption in article view - show only the image */
.rich-content .attachment__caption,
.article-body .attachment__caption,
.rich-content .attachment__name,
.article-body .attachment__name,
.rich-content .attachment__size,
.article-body .attachment__size {
    display: none !important;
}

/* Make attachment images display nicely */
.rich-content figure.attachment,
.article-body figure.attachment {
    margin: 1.5rem 0;
    text-align: center;
}

.rich-content figure.attachment img,
.article-body figure.attachment img {
    max-width: 100%;
    height: auto;
    width: auto; /* Override inline width for tiny test images */
    min-width: 200px; /* Ensure visibility for very small images */
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ============================================
   ARTICLE PAGE LAYOUT
   ============================================ */

.article-page {
    min-height: 100vh;
}

.article-title {
    max-width: 680px;
}

.article-body {
    max-width: 680px;
    font-size: 1rem;
}

.article-body p {
    margin-bottom: 1.25rem;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body a {
    color: var(--bs-primary);
}

.article-breadcrumb-scroll {
    scrollbar-width: none;
}

.article-contributor-icon {
    width: 48px;
    height: 48px;
}

.article-contributor-helper {
    font-size: 0.6875rem;
}

.article-engagement-bar {
    position: relative;
    z-index: 10;
}

.article-action-menu-toggle {
    min-width: 44px;
    min-height: 44px;
}

@media (min-width: 768px) {
    .article-page .container-lg {
        max-width: 900px;
    }
}

/* ============================================
   ARTICLE FORM - Button Check Styles
   ============================================ */

.btn-check:checked + .btn {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: var(--bs-body-bg);
}