/**
 * File: msi-single-post.css
 * Version: 1.0.24-dev
 * Created: 2026-12-01
 * Last Updated: 2026-12-01
 * Description: Standard WP article detail skin, not GS Catalog detail or pages.
 */
body.msi-theme.single-post {
    --msi-post-width: 860px;
    --msi-post-image-width: 1000px;
    --msi-post-gutter: 40px;
    --msi-post-body-size: 17px;
    --msi-post-hero-size: clamp(30px,3.1vw,44px);
}
body.msi-theme.single-post #Subheader {
    background: linear-gradient(110deg,#65090e 0%,var(--msi-red-dark) 55%,var(--msi-red) 100%) !important;
    padding: clamp(32px,4vw,64px) 0 !important; color: #fff; text-align: center;
}
body.msi-theme.single-post #Subheader .container {
    box-sizing: border-box; width: calc(100% - var(--msi-post-gutter)) !important;
    max-width: var(--msi-post-image-width) !important; margin: 0 auto !important; padding: 0 !important;
}
body.msi-theme.single-post #Subheader .column {
    float: none !important; width: 100% !important; margin: 0 !important; padding: 0 !important;
}
body.msi-theme.single-post #Subheader .title {
    float: none !important; width: 100% !important; max-width: 100%; margin: 0 0 18px !important;
    font-size: var(--msi-post-hero-size) !important; line-height: 1.2 !important;
    text-transform: none !important; letter-spacing: normal !important; text-align: center !important;
    color: #fff !important; overflow-wrap: anywhere;
}
body.msi-theme.single-post #Subheader .breadcrumbs {
    display: flex !important; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 8px;
    width: 100% !important; float: none !important; margin: 0 !important; padding: 0 !important;
    list-style: none; color: #fff !important; text-align: center; font-size: 13px; line-height: 1.5;
}
body.msi-theme.single-post #Subheader .breadcrumbs li { display: inline; float: none; margin: 0 !important; max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
body.msi-theme.single-post #Subheader .breadcrumbs :is(a,span,i,li) { color: #fff !important; }
body.msi-theme.single-post #Subheader .breadcrumbs a:hover { text-decoration: underline; }
/* Keep native image, post navigation, and any enabled post title/meta. */
body.msi-theme.single-post #Content article.type-post > .section-post-header {
    padding: clamp(24px,3vw,48px) 0 0 !important;
}
body.msi-theme.single-post #Content article.type-post > .section-post-header > .section_wrapper {
    box-sizing: border-box; width: calc(100% - var(--msi-post-gutter)) !important;
    max-width: var(--msi-post-image-width) !important; margin: 0 auto !important; padding: 0 !important;
}
body.msi-theme.single-post #Content article.type-post > .section-post-header :is(.post-nav,.post-header,.single-photo-wrapper) {
    box-sizing: border-box; width: 100% !important; margin: 0 0 18px !important;
}
body.msi-theme.single-post #Content article.type-post > .section-post-header :is(.post-header,.single-photo-wrapper) > .mcb-column-inner { margin: 0 !important; padding: 0 !important; }
body.msi-theme.single-post #Content article.type-post.no-title > .section-post-header .post-header:not(:has(.title_wrapper *)) { display: none; }
body.msi-theme.single-post #Content article.type-post > .section-post-header .post-nav a.home { color: var(--msi-red-dark); }
body.msi-theme.single-post #Content article.type-post > .section-post-header .post-nav a.home svg { fill: currentColor; }
body.msi-theme.single-post #Content article.type-post > .section-post-header .single-photo-wrapper :is(.image_frame,.image_wrapper) { width: 100%; max-width: 100%; border: 0; border-radius: 4px; overflow: hidden; }
body.msi-theme.single-post #Content article.type-post > .section-post-header .single-photo-wrapper img { display: block; width: 100% !important; height: auto !important; max-width: 100%; }
body.msi-theme.single-post #Content article.type-post > .section-post-header .post-header :is(h1,h2,.title) { font-size: var(--msi-post-hero-size) !important; line-height: 1.2 !important; color: var(--msi-red-dark) !important; overflow-wrap: anywhere; }
/* Narrow readable prose, without altering BeBuilder content layouts or other posts' widgets. */
body.msi-theme.single-post #Content article.type-post > .post-wrapper-content > .the_content > .section_wrapper {
    box-sizing: border-box; width: calc(100% - var(--msi-post-gutter)) !important; max-width: var(--msi-post-width) !important; margin: 0 auto !important; padding: 0 !important;
}
body.msi-theme.single-post #Content article.type-post > .post-wrapper-content > .the_content .the_content_wrapper {
    box-sizing: border-box; width: 100%; margin: 0 !important; padding: clamp(18px,3vw,36px) 0 clamp(32px,5vw,64px) !important;
    color: var(--msi-ink); font: 400 var(--msi-post-body-size)/1.8 Arial,Helvetica,sans-serif; overflow-wrap: anywhere;
}
body.msi-theme.single-post #Content article.type-post .the_content_wrapper :is(p,ul,ol,blockquote) { margin-top: 0; margin-bottom: 1.15em; }
body.msi-theme.single-post #Content article.type-post .the_content_wrapper :is(ul,ol) { padding-inline-start: 1.4em; margin-inline-start: 0; }
body.msi-theme.single-post #Content article.type-post .the_content_wrapper li { line-height: inherit; margin-bottom: .4em; }
body.msi-theme.single-post #Content article.type-post .the_content_wrapper :is(h2,h3,h4,h5,h6) {
    color: var(--msi-red-dark) !important; line-height: 1.28 !important; text-transform: none !important; letter-spacing: normal !important;
    margin: 1.35em 0 .55em !important; overflow-wrap: anywhere;
}
body.msi-theme.single-post #Content article.type-post .the_content_wrapper h2 { font-size: clamp(24px,2.3vw,32px) !important; }
body.msi-theme.single-post #Content article.type-post .the_content_wrapper h3 { font-size: clamp(21px,2vw,26px) !important; }
body.msi-theme.single-post #Content article.type-post .the_content_wrapper :is(h4,h5,h6) { font-size: clamp(18px,1.7vw,22px) !important; }
body.msi-theme.single-post #Content article.type-post .the_content_wrapper a { color: var(--msi-green-dark) !important; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
body.msi-theme.single-post #Content article.type-post .the_content_wrapper a:is(:hover,:focus-visible) { color: var(--msi-red) !important; }
body.msi-theme.single-post #Content article.type-post .the_content_wrapper :is(img,video) { max-width: 100%; height: auto; }
body.msi-theme.single-post #Content article.type-post .the_content_wrapper iframe { max-width: 100%; }
body.msi-theme.single-post #Content article.type-post .the_content_wrapper pre { max-width: 100%; overflow-x: auto; }
body.msi-theme.single-post #Content article.type-post .the_content_wrapper table { max-width: 100%; }
body.msi-theme.single-post #Content article.type-post .the_content_wrapper blockquote { border-inline-start: 3px solid var(--msi-red); background: #fbf1f1; padding: 16px 20px; }
body.msi-theme.single-post :is(#Subheader .breadcrumbs, #Content article.type-post) a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 1024px) { body.msi-theme.single-post { --msi-post-gutter: 40px; --msi-post-body-size: 16px; --msi-post-hero-size: 36px; } }
@media (max-width: 767px) { body.msi-theme.single-post { --msi-post-gutter: 32px; --msi-post-body-size: 16px; --msi-post-hero-size: 28px; } }

/* 1.0.21-dev: Native BeTheme related posts (simple layout), independent of the News archive. */
body.msi-theme.single-post #Content article.type-post > .section-post-related {
    --msi-related-title-size: 24px;
    --msi-related-gap: 24px;
    --msi-related-padding: 22px;
}
body.msi-theme.single-post #Content article.type-post > .section-post-related .related-heading {
    font-family: var(--msi-title-font-family, Georgia, serif) !important;
    font-weight: 700 !important;
    font-size: clamp(26px, 2.4vw, 32px) !important;
    line-height: 1.25 !important;
    color: var(--msi-red-dark, #890c12) !important;
    margin: 0 0 22px !important;
}
body.msi-theme.single-post #Content article.type-post > .section-post-related .section-related-ul {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--msi-related-gap);
    align-items: stretch;
    margin: 0 !important;
    padding: 0 !important;
}
body.msi-theme.single-post #Content article.type-post > .section-post-related .section-related-ul.col-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.msi-theme.single-post #Content article.type-post > .section-post-related .section-related-ul.col-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.msi-theme.single-post #Content article.type-post > .section-post-related .section-related-ul::before,
body.msi-theme.single-post #Content article.type-post > .section-post-related .section-related-ul::after { display: none !important; content: none !important; }
body.msi-theme.single-post #Content article.type-post > .section-post-related .section-related-ul > .post-related {
    float: none !important; width: auto !important; min-width: 0; max-width: none !important;
    margin: 0 !important; padding: 0 !important; display: flex; box-sizing: border-box;
}
body.msi-theme.single-post #Content article.type-post > .section-post-related .post-related > .mcb-column-inner {
    box-sizing: border-box; display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0;
    width: 100%; margin: 0 !important; padding: 0 !important;
    background: #fff; border: 1px solid var(--msi-border, #e4e9e6);
    border-bottom: 3px solid var(--msi-red, #b20d17); border-radius: 4px; overflow: hidden;
}
body.msi-theme.single-post #Content article.type-post > .section-post-related .post-related .single-photo-wrapper {
    flex: 0 0 auto; width: 100% !important; margin: 0 !important; padding: 0 !important;
}
body.msi-theme.single-post #Content article.type-post > .section-post-related .post-related :is(.image_frame,.image_wrapper) {
    box-sizing: border-box; width: 100% !important; max-width: 100% !important; margin: 0 !important;
    border: 0 !important; border-radius: 0 !important; overflow: hidden;
}
body.msi-theme.single-post #Content article.type-post > .section-post-related .post-related .image_wrapper > a:first-child {
    display: block; position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden;
}
body.msi-theme.single-post #Content article.type-post > .section-post-related .post-related .image_wrapper > a:first-child > img {
    display: block; width: 100% !important; max-width: 100% !important; height: 100% !important; max-height: none !important;
    aspect-ratio: 16 / 10; object-fit: cover; object-position: center;
    margin: 0 !important;
}
body.msi-theme.single-post #Content article.type-post > .section-post-related .post-related .desc {
    display: flex; flex-direction: column; flex: 1 1 auto; align-items: flex-start; min-width: 0;
    box-sizing: border-box; width: 100%; margin: 0 !important; padding: var(--msi-related-padding) !important;
}
body.msi-theme.single-post #Content article.type-post > .section-post-related .post-related .desc h4,
body.msi-theme.single-post #Content article.type-post > .section-post-related .post-title :is(h2,h3,h4,.entry-title) {
    font-family: var(--msi-title-font-family, Georgia, serif) !important;
    font-weight: 700 !important; font-size: var(--msi-related-title-size) !important;
    line-height: 1.32 !important; color: var(--msi-red-dark, #890c12) !important;
    text-transform: none !important; letter-spacing: normal !important;
    overflow-wrap: anywhere; word-break: normal; margin: 0 0 18px !important;
}
body.msi-theme.single-post #Content article.type-post > .section-post-related .post-related .desc h4 a {
    font: inherit !important; color: inherit !important; text-decoration: none;
}
body.msi-theme.single-post #Content article.type-post > .section-post-related .post-related .desc h4 a:is(:hover,:focus-visible) {
    color: var(--msi-red, #b20d17) !important;
}
body.msi-theme.single-post #Content article.type-post > .section-post-related .post-related .desc > hr.hr_color {
    box-sizing: border-box; margin: auto 0 14px !important; width: 100% !important; height: 0 !important;
    border: 0 !important; border-top: 1px solid var(--msi-border, #e4e9e6) !important;
    background: transparent !important;
}
body.msi-theme.single-post #Content article.type-post > .section-post-related .post-related .desc > a.button {
    flex: 0 0 auto; max-width: 100%; box-sizing: border-box; margin: 0 !important;
    font-size: 14px !important; line-height: 1.5 !important;
}
/* Desktop retains the native column setting. Tablet and mobile use explicit responsive grids. */
@media (max-width: 1024px) {
    body.msi-theme.single-post #Content article.type-post > .section-post-related { --msi-related-title-size: 22px; --msi-related-gap: 16px; --msi-related-padding: 18px; }
    body.msi-theme.single-post #Content article.type-post > .section-post-related .section-related-ul:is(.col-2,.col-3,.col-4) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    body.msi-theme.single-post #Content article.type-post > .section-post-related { --msi-related-title-size: 22px; }
    body.msi-theme.single-post #Content article.type-post > .section-post-related .section-related-ul:is(.col-2,.col-3,.col-4) { grid-template-columns: minmax(0, 1fr); }
}

/* 1.0.22-dev: Separate populated Related Posts from the global footer. */
body.msi-theme.single-post #Content article.type-post > .section-post-related:has(.post-related) {
    padding-bottom: 60px !important;
}
