/* Article 2174 only; no content, media or storage changes. */
body.postid-2174 .affin-article-layout,
body.postid-2174 .affin-article-layout > *,
body.postid-2174 .affin-article-content :is(div, section) {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

body.postid-2174 .affin-article-content :is(h2, h3) {
    text-align: start !important;
    overflow-wrap: break-word;
}

/* The authored scroll containers must shrink with the article's grid track. */
body.postid-2174 .affin-article-content div[style*="overflow-x"] {
    width: 100%;
    overflow-x: auto !important;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
}

body.postid-2174 .affin-article-content div[style*="overflow-x"]:focus-visible {
    outline: 2px solid var(--fui-green, #087765);
    outline-offset: 3px;
}

/* Keep the source image intact at both desktop and mobile breakpoints. */
body.postid-2174 .affin-article-hero {
    aspect-ratio: 16 / 9 !important;
}

body.postid-2174 .affin-article-hero img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center;
}

/* Informational boxes: pair foreground and background in each theme. */
body.postid-2174 .affin-article-content div[style*="#e7f4f0"] {
    color: #152f40 !important;
    background: #e7f4f0 !important;
    border-color: #087765 !important;
}

body.postid-2174 .affin-article-content div[style*="#e7f4f0"] :is(p, li, strong, span, h2, h3) {
    color: #152f40 !important;
}

body.postid-2174 .affin-article-content div[style*="#fff9e6"] {
    color: #694600 !important;
    background: #fff9e6 !important;
    border-color: #c87900 !important;
}

body.postid-2174 .affin-article-content div[style*="#fff9e6"] :is(p, li, strong, span) {
    color: #694600 !important;
}

html[data-finaf-theme="dark"] body.postid-2174 .affin-article-content div[style*="#e7f4f0"] {
    color: #e4f4ee !important;
    background: #143b35 !important;
    border-color: #64d2b6 !important;
}

html[data-finaf-theme="dark"] body.postid-2174 .affin-article-content div[style*="#e7f4f0"] :is(p, li, strong, span, h2, h3) {
    color: #e4f4ee !important;
}

html[data-finaf-theme="dark"] body.postid-2174 .affin-article-content div[style*="#fff9e6"] {
    color: #ffe4a1 !important;
    background: #342a15 !important;
    border-color: #efb747 !important;
}

html[data-finaf-theme="dark"] body.postid-2174 .affin-article-content div[style*="#fff9e6"] :is(p, li, strong, span) {
    color: #ffe4a1 !important;
}

@media (max-width: 620px) {
    body.postid-2174 .affin-article-content div[style*="overflow-x"] table {
        min-width: 620px;
    }

    body.postid-2174 .affin-article-content :is(th, td) {
        vertical-align: top;
        line-height: 1.8;
    }
}
