/* MB Daily News 1.2: only individual posts; do not affect theme shortcode */
body.single-post.mbd-spm-justify article.type-post p,
body.single-post.mbd-spm-justify article.post p,
body.single-post.mbd-spm-justify .entry-content p,
body.single-post.mbd-spm-justify .post-content p,
body.single-post.mbd-spm-justify .single-post-content p,
body.single-post.mbd-spm-justify .entry-content li,
body.single-post.mbd-spm-justify .entry-content blockquote {text-align:justify!important;text-justify:inter-word!important;overflow-wrap:break-word;hyphens:auto}
body.single-post.mbd-spm-justify article h1,body.single-post.mbd-spm-justify article h2,body.single-post.mbd-spm-justify article h3 {text-align:left!important}
@media(min-width:992px){body.single-post.mbd-spm-independent #primary.mbd-spm-article{scrollbar-width:thin;min-height:0;overscroll-behavior:auto}}
.mbd-spm-latest{box-sizing:border-box;clear:both;width:100%;max-width:100%;margin:45px 0 35px;padding:24px 0;color:#fff;font-family:Arial,sans-serif;position:relative}
.mbd-spm-latest *{box-sizing:border-box}
.mbd-spm-heading{border-bottom:1px solid #393939;margin-bottom:22px;padding-bottom:13px}
.mbd-spm-heading h2{color:#fff!important;font-size:25px!important;line-height:1.3;margin:0 0 7px!important}
.mbd-spm-heading p{color:#aaa;margin:0;font-size:13px}
.mbd-spm-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.mbd-spm-card{min-width:0;background:#191919;border:1px solid #303030;border-radius:7px;overflow:hidden}
.mbd-spm-photo{display:block;aspect-ratio:16/9;overflow:hidden;background:#292929}
.mbd-spm-photo img{display:block;width:100%;height:100%;object-fit:cover}
.mbd-spm-placeholder{display:flex;height:100%;align-items:center;justify-content:center;color:#eee;font-size:12px}
.mbd-spm-body{padding:16px}.mbd-spm-body time{display:block;color:#aaa;font-size:11px;margin-bottom:9px}
.mbd-spm-body h3{font-size:17px!important;line-height:1.4;margin:0 0 10px!important}
.mbd-spm-body h3 a{color:#fff!important;text-decoration:none}.mbd-spm-body h3 a:hover{color:#ff4058!important}
.mbd-spm-body p{color:#ccc;font-size:13px;line-height:1.6;text-align:left!important;margin:0 0 12px}
.mbd-spm-more{color:#ff4058!important;font-weight:700;font-size:12px;text-decoration:none}
@media(max-width:991px){.mbd-spm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.mbd-spm-grid{grid-template-columns:1fr}}

/* Stronger ColorMag selectors; exclude latest news cards and widgets. */
body.single-post.mbd-spm-justify .entry-content p:not(.mbd-spm-body p),body.single-post.mbd-spm-justify .cm-entry-content p,body.single-post.mbd-spm-justify .post-content p{text-align:justify!important;text-justify:inter-word!important;}
body.single-post .mbd-spm-latest{display:block!important;visibility:visible!important;}
body.single-post .mbd-spm-latest .mbd-spm-grid{display:grid!important;}

/* v1.4: Keep normal page flow; no independent widget scrolling. */
@media(min-width:992px){body.single-post #secondary,body.single-post .cm-secondary{scrollbar-width:none!important;overflow:visible!important;}body.single-post .mbd-spm-sidebar-marker{display:block;pointer-events:none;flex:none;}body.single-post .mbd-spm-latest{clear:both;}}

/* v1.7: Sidebar follows naturally without independent scroll or arrow. */
@media(min-width:992px){
 body.single-post.mbd-spm-follow-enabled #secondary,
 body.single-post.mbd-spm-follow-enabled .cm-secondary,
 body.single-post.mbd-spm-follow-enabled aside.widget-area{
   position:relative!important;
   top:auto!important;
   bottom:auto!important;
   align-self:flex-start!important;
   overflow:visible!important;
   max-height:none!important;
   height:auto!important;
   transform:translate3d(0,var(--mbd-spm-follow-y,0px),0)!important;
   will-change:transform;
 }
}
@media(max-width:991px){
 body.single-post.mbd-spm-follow-enabled #secondary,
 body.single-post.mbd-spm-follow-enabled .cm-secondary,
 body.single-post.mbd-spm-follow-enabled aside.widget-area{
   transform:none!important;
 }
}
