/*
Theme Name: Maryland Sports Blog
Template: hueman
Description: Custom Maryland Sports Blog magazine child theme for Hueman.
Version: 2.5.6
Author: Maryland Sports Blog
Text Domain: msb
*/

:root {
    --msb-red: #d71920;
    --msb-gold: #f2c230;
    --msb-black: #0b0b0d;
    --msb-charcoal: #17181b;
    --msb-border: #d8d9dc;
    --msb-muted: #6b6d73;
    --msb-bg: #f3f4f6;
    --msb-radius: 5px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--msb-bg); color: #18191c; font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--msb-red); }
img { max-width: 100%; height: auto; }
.msb-shell { width: min(1480px, calc(100% - 28px)); margin-inline: auto; }

.msb-breaking { background: #050505; color: #fff; border-top: 3px solid var(--msb-red); font-size: 13px; }
.msb-breaking-inner { min-height: 35px; display: flex; align-items: center; gap: 14px; white-space: nowrap; overflow: hidden; }
.msb-breaking strong { align-self: stretch; display: flex; align-items: center; padding: 0 16px; margin-left: -14px; background: var(--msb-red); text-transform: uppercase; font-size: 12px; }
.msb-breaking a { overflow: hidden; text-overflow: ellipsis; font-weight: 700; }
.msb-breaking span { margin-left: auto; color: #aaa; font-size: 11px; }

.msb-site-header { color: #fff; background: #090a0c; background-image: linear-gradient(90deg, rgba(0,0,0,.98), rgba(0,0,0,.58)), var(--msb-header-image, linear-gradient(135deg,#090a0c,#23252a)); background-size: cover; background-position: center; }
.msb-brand-row { min-height: 120px; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.msb-brand .custom-logo { max-width: 470px; max-height: 100px; object-fit: contain; }
.msb-wordmark { display: inline-flex; flex-direction: column; color: #fff; text-transform: uppercase; font-style: italic; font-weight: 900; letter-spacing: 1px; }
.msb-wordmark span { font-size: clamp(28px, 4vw, 58px); line-height: .95; }
.msb-wordmark small { color: var(--msb-gold); letter-spacing: 6px; font-size: 14px; margin-top: 8px; }
.msb-header-cta { width: 300px; border: 1px solid rgba(255,255,255,.36); padding: 14px 16px; background: rgba(0,0,0,.42); border-radius: 4px; }
.msb-header-cta strong, .msb-header-cta span { display: block; }
.msb-header-cta strong { text-transform: uppercase; font-size: 16px; }
.msb-header-cta span { margin-top: 5px; color: #ddd; font-size: 12px; line-height: 1.4; }

.msb-main-nav { background: #111214; color: #fff; border-bottom: 3px solid var(--msb-red); position: sticky; top: 0; z-index: 50; }
.msb-nav-inner { min-height: 44px; display: flex; align-items: stretch; }
.msb-home-link { width: 48px; display: grid; place-items: center; background: var(--msb-red); font-size: 22px; }
.msb-primary-menu { display: flex; align-items: stretch; list-style: none; margin: 0; padding: 0; }
.msb-primary-menu li { position: relative; list-style: none; margin: 0; }
.msb-primary-menu > li { display: flex; }
.msb-primary-menu a { display: flex; align-items: center; padding: 0 16px; color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.msb-primary-menu a:hover,
.msb-primary-menu a:focus { background: #242529; color: var(--msb-gold); }

/* Keep Hueman's parent menu rules from forcing every child category open. */
.msb-primary-menu .sub-menu,
.msb-primary-menu .children {
    display: none !important;
    position: absolute !important;
    top: 100%;
    left: 0;
    z-index: 9999;
    min-width: 245px;
    max-width: 320px;
    max-height: min(70vh, 620px);
    overflow-y: auto;
    margin: 0 !important;
    padding: 7px 0 !important;
    background: #111214;
    border-top: 3px solid var(--msb-red);
    box-shadow: 0 12px 28px rgba(0,0,0,.42);
}
.msb-primary-menu > li:hover > .sub-menu,
.msb-primary-menu > li:focus-within > .sub-menu,
.msb-primary-menu > li:hover > .children,
.msb-primary-menu > li:focus-within > .children {
    display: block !important;
}
.msb-primary-menu .sub-menu li,
.msb-primary-menu .children li { display: block !important; width: 100%; }
.msb-primary-menu .sub-menu a,
.msb-primary-menu .children a {
    display: block !important;
    width: 100%;
    padding: 11px 15px !important;
    border-bottom: 1px solid #292a2e;
    white-space: normal;
    line-height: 1.25;
}
.msb-primary-menu .sub-menu .sub-menu,
.msb-primary-menu .children .children { top: -10px; left: 100%; }
.msb-primary-menu .menu-item-has-children > a::after,
.msb-primary-menu .page_item_has_children > a::after {
    content: "▾";
    margin-left: 7px;
    color: var(--msb-gold);
    font-size: 10px;
}
.msb-submenu-toggle { display: none; }
.msb-menu-toggle { display: none; border: 0; background: transparent; color: #fff; font-weight: 800; text-transform: uppercase; padding: 0 16px; }

.msb-homepage { padding-block: 14px 32px; }
.msb-lead-grid { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(290px, .9fr); background: #0c0d0f; color: #fff; border-radius: var(--msb-radius); overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.msb-lead-story { min-height: 435px; position: relative; background-image: linear-gradient(0deg,rgba(0,0,0,.95),rgba(0,0,0,.06) 68%), var(--lead-image); background-size: cover; background-position: center; }
.msb-lead-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; color: #fff; }
.msb-kicker { width: max-content; background: var(--msb-red); padding: 5px 8px; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.msb-lead-story h1 { margin: 8px 0; max-width: 850px; font-size: clamp(28px, 3.5vw, 48px); line-height: 1.02; color: #fff; }
.msb-lead-story p { max-width: 750px; margin: 0 0 12px; color: #e5e5e5; line-height: 1.45; }
.msb-meta { color: #c8c8c8; font-size: 11px; }
.msb-lead-list { border-left: 1px solid #292a2e; }
.msb-lead-list article { min-height: 87px; display: grid; grid-template-columns: 34px 1fr; border-bottom: 1px solid #292a2e; }
.msb-lead-list article > span { display: grid; place-items: center; align-self: stretch; background: var(--msb-red); font-size: 18px; font-weight: 900; }
.msb-lead-list a { display: grid; grid-template-columns: 82px 1fr; grid-template-rows: 1fr auto; gap: 4px 10px; padding: 9px; color: #fff; }
.msb-lead-list img { grid-row: 1 / 3; width: 82px; height: 64px; object-fit: cover; background: #222; }
.msb-lead-list strong { align-self: end; line-height: 1.15; font-size: 13px; }
.msb-lead-list small { color: #aaa; font-size: 10px; }

.msb-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 305px; gap: 14px; margin-top: 14px; align-items: start; }
.msb-box-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.msb-category-box { min-width: 0; background: #fff; border: 1px solid var(--msb-border); border-radius: var(--msb-radius); overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.msb-box-header { min-height: 38px; display: flex; align-items: center; justify-content: space-between; padding-right: 11px; color: #fff; background: var(--msb-accent); }
.msb-box-header h2 { display: flex; align-items: center; gap: 9px; margin: 0; color: #fff; font-size: 15px; text-transform: uppercase; line-height: 1; }
.msb-box-header h2 span { align-self: stretch; min-width: 34px; display: grid; place-items: center; background: rgba(255,255,255,.93); color: var(--msb-accent); font-size: 16px; }
.msb-box-header a { color: #fff; font-size: 9px; font-weight: 900; text-transform: uppercase; }
.msb-slider-wrap { position: relative; }
.msb-slider-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--msb-columns) - 1) * 8px) / var(--msb-columns)); gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.msb-slider-track::-webkit-scrollbar { display: none; }
.msb-story-card { min-width: 0; scroll-snap-align: start; border-right: 1px solid #e1e2e4; background: #fff; }
.msb-card-image { display: block; aspect-ratio: 16/9; overflow: hidden; background: #222; }
.msb-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.msb-story-card:hover img { transform: scale(1.035); }
.msb-card-body { padding: 8px 8px 9px; min-height: 82px; }
.msb-card-body h3 { margin: 0; font-size: 12px; line-height: 1.25; }
.msb-card-body h3 a { color: #121317; }
.msb-card-body span { display: block; margin-top: 7px; color: var(--msb-muted); font-size: 9px; text-transform: uppercase; }
.msb-slider-button { position: absolute; top: 35%; z-index: 3; width: 28px; height: 42px; border: 0; border-radius: 2px; background: rgba(0,0,0,.72); color: #fff; font-size: 24px; cursor: pointer; opacity: 0; transition: opacity .2s; }
.msb-category-box:hover .msb-slider-button, .msb-slider-button:focus { opacity: 1; }
.msb-slider-button.prev { left: 4px; }
.msb-slider-button.next { right: 4px; }

.msb-home-sidebar { display: grid; gap: 14px; position: sticky; top: 60px; }
.msb-widget { background: #fff; border: 1px solid var(--msb-border); border-radius: var(--msb-radius); padding: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.msb-widget .widget-title { margin: -12px -12px 10px; padding: 11px 12px; border-bottom: 1px solid #ddd; color: #17181b; font-size: 14px; text-transform: uppercase; }
.msb-trending-item { display: grid; grid-template-columns: 29px 1fr; gap: 9px; align-items: center; padding: 9px 0; border-bottom: 1px solid #ececef; }
.msb-trending-item span { width: 25px; height: 25px; display: grid; place-items: center; background: var(--msb-red); color: #fff; font-weight: 900; }
.msb-trending-item strong { font-size: 12px; line-height: 1.2; }
.msb-ad-placeholder { min-height: 220px; display: flex; flex-direction: column; justify-content: center; text-align: center; color: #fff; background: linear-gradient(rgba(0,0,0,.77),rgba(0,0,0,.85)), linear-gradient(135deg,#8a111b,#090909); }
.msb-ad-placeholder strong { font-size: 25px; text-transform: uppercase; }
.msb-ad-placeholder p { font-size: 13px; line-height: 1.4; }
.msb-ad-placeholder a { align-self: center; padding: 9px 22px; background: var(--msb-gold); color: #111; font-size: 11px; font-weight: 900; text-transform: uppercase; }

.msb-footer { background: #0b0c0e; color: #ddd; border-top: 4px solid var(--msb-red); padding: 28px 0 16px; }
.msb-footer-top { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.msb-footer-top strong { color: #fff; font-size: 23px; text-transform: uppercase; }
.msb-footer-top p { color: var(--msb-gold); margin: 4px 0 0; letter-spacing: 2px; font-size: 10px; }
.msb-footer-menu { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; margin: 0; padding: 0; }
.msb-footer-menu a { color: #ddd; font-size: 11px; text-transform: uppercase; }
.msb-footer-widgets { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-top: 22px; }
.msb-copyright { border-top: 1px solid #2f3033; margin-top: 24px; padding-top: 14px; color: #888; font-size: 11px; }

@media (max-width: 1120px) {
    .msb-content-layout { grid-template-columns: 1fr; }
    .msb-home-sidebar { position: static; grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 820px) {
    .msb-brand-row { min-height: 95px; }
    .msb-header-cta { display: none; }
    .msb-menu-toggle { display: block; }
    .msb-nav-inner { position: relative; }
    .msb-primary-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 80px); overflow-y: auto; flex-direction: column; background: #111214; padding: 7px 14px 14px; box-shadow: 0 12px 24px rgba(0,0,0,.42); }
    .msb-primary-menu.is-open { display: flex; }
    .msb-primary-menu > li { display: block; width: 100%; }
    .msb-primary-menu li { position: relative; }
    .msb-primary-menu a { display: block; padding: 12px 46px 12px 12px; border-bottom: 1px solid #2a2b2e; }
    .msb-primary-menu .menu-item-has-children > a::after,
    .msb-primary-menu .page_item_has_children > a::after { display: none; }
    .msb-primary-menu .sub-menu,
    .msb-primary-menu .children,
    .msb-primary-menu > li:hover > .sub-menu,
    .msb-primary-menu > li:focus-within > .sub-menu,
    .msb-primary-menu > li:hover > .children,
    .msb-primary-menu > li:focus-within > .children {
        display: none !important;
        position: static !important;
        min-width: 0;
        max-width: none;
        max-height: none;
        overflow: visible;
        padding: 0 0 5px 13px !important;
        border-top: 0;
        box-shadow: none;
        background: #17181b;
    }
    .msb-primary-menu li.submenu-open > .sub-menu,
    .msb-primary-menu li.submenu-open > .children { display: block !important; }
    .msb-primary-menu .sub-menu a,
    .msb-primary-menu .children a { padding: 10px 42px 10px 13px !important; font-size: 11px; }
    .msb-submenu-toggle {
        display: grid;
        place-items: center;
        position: absolute;
        top: 3px;
        right: 2px;
        z-index: 2;
        width: 40px;
        height: 40px;
        border: 0;
        background: transparent;
        color: var(--msb-gold);
        font-size: 18px;
        cursor: pointer;
    }
    .msb-submenu-toggle[aria-expanded="true"] { transform: rotate(180deg); }
    .msb-lead-grid { grid-template-columns: 1fr; }
    .msb-lead-story { min-height: 390px; }
    .msb-lead-list { border-left: 0; }
    .msb-lead-list article { min-height: 76px; }
    .msb-box-grid { grid-template-columns: 1fr; }
    .msb-slider-track { grid-auto-columns: calc((100% - 8px) / 2); }
    .msb-home-sidebar { grid-template-columns: 1fr; }
    .msb-footer-widgets { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 520px) {
    .msb-shell { width: min(100% - 16px, 1480px); }
    .msb-breaking span { display: none; }
    .msb-breaking strong { padding: 0 9px; }
    .msb-brand .custom-logo { max-width: 300px; }
    .msb-wordmark small { letter-spacing: 3px; }
    .msb-lead-story { min-height: 340px; }
    .msb-lead-overlay { padding: 20px; }
    .msb-lead-story p { display: none; }
    .msb-slider-track { grid-auto-columns: 82%; }
    .msb-box-header h2 { font-size: 13px; }
    .msb-slider-button { opacity: .86; }
    .msb-footer-top { align-items: flex-start; flex-direction: column; }
    .msb-footer-widgets { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Optional scoreboard and flexible sidebar */
.msb-content-layout.no-sidebar { grid-template-columns: minmax(0, 1fr); }
.msb-scoreboard-wide { margin: 18px 0; background: #fff; border: 1px solid var(--msb-border); border-radius: var(--msb-radius); box-shadow: 0 1px 4px rgba(0,0,0,.05); overflow: hidden; }
.msb-scoreboard-title { margin: 0; padding: 12px 16px; background: #17181b; color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }
.msb-scoreboard-wide .msb-scoreboard-content { padding: 14px; }
.msb-scoreboard-content .widget { margin: 0; padding: 0; border: 0; box-shadow: none; }
.msb-scoreboard-content .widget + .widget { margin-top: 12px; }
.msb-scoreboard-content iframe { width: 100%; max-width: 100%; border: 0; }
.msb-scoreboard-content table { width: 100%; border-collapse: collapse; }
.msb-scoreboard-content img { max-width: 100%; height: auto; }

/* Built-in newsletter */
.msb-header-cta { width: 360px; }
.msb-header-cta .msb-newsletter { margin-top: 10px; }
.msb-newsletter form { display: flex; width: 100%; }
.msb-newsletter input[type="email"] { min-width: 0; flex: 1; height: 36px; border: 1px solid #cfd0d4; border-radius: 3px 0 0 3px; padding: 0 10px; background: #fff; color: #17181b; font-size: 12px; }
.msb-newsletter button { height: 36px; border: 0; border-radius: 0 3px 3px 0; padding: 0 14px; background: var(--msb-red); color: #fff; font-size: 10px; font-weight: 900; text-transform: uppercase; cursor: pointer; }
.msb-newsletter button:hover, .msb-newsletter button:focus { background: #b30f16; }
.msb-newsletter small { display: block; margin-top: 6px; color: #aaa; font-size: 9px; line-height: 1.3; }
.msb-newsletter-sidebar small { color: var(--msb-muted); }
.msb-newsletter-widget > p { margin: 0 0 10px; color: var(--msb-muted); font-size: 12px; line-height: 1.45; }
.msb-newsletter-message { margin: 0 0 8px; padding: 7px 8px; border-radius: 3px; font-size: 10px; line-height: 1.3; }
.msb-newsletter-message.is-success { background: #e8f5e9; color: #176b21; }
.msb-newsletter-message.is-notice { background: #fff3cd; color: #6c5200; }
.msb-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
@media (max-width: 980px) and (min-width: 821px) { .msb-header-cta { width: 320px; } }


/* Version 2.5 readability and module presentation fixes */
body,
#page,
.container,
.main,
.content,
.entry,
.entry-content,
.post,
.page,
.msb-homepage,
.msb-category-box,
.msb-story-card,
.msb-card-body,
.msb-widget,
.msb-widget p,
.msb-widget li,
.msb-widget label,
.msb-widget input,
.msb-widget select,
.msb-widget textarea {
    color: #111214;
}
.entry-content,
.entry-content p,
.entry-content li,
.entry-content td,
.entry-content th,
.post-content,
.post-content p,
.post-content li,
.widget,
.widget p,
.widget li {
    color: #111214 !important;
}
.entry-content,
.post-content,
.msb-category-box,
.msb-story-card,
.msb-card-body,
.msb-widget { background-color: #fff; }
.msb-card-body h3 a,
.msb-trending-item strong,
.msb-widget a:not(.button):not(.msb-promo-button) { color: #111214; }
.msb-card-body h3 a:hover,
.msb-trending-item:hover strong,
.msb-widget a:not(.button):not(.msb-promo-button):hover { color: var(--msb-red); }
.msb-category-box { border-top: 4px solid var(--msb-accent); }
.msb-box-header { background: #fff; color: #111214; border-bottom: 1px solid #dedfe2; }
.msb-box-header h2 { color: #111214; }
.msb-box-header h2 span { background: var(--msb-accent); color: #fff; }
.msb-box-header > a { color: #111214; border: 1px solid #c8c9cc; border-radius: 3px; padding: 5px 8px; }
.msb-box-header > a:hover { background: #f2f3f5; color: var(--msb-red); }

/* Desktop dropdowns stay closed until a direct hover or keyboard focus. */
@media (min-width: 821px) {
    .msb-primary-menu .sub-menu,
    .msb-primary-menu .children { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; display: block !important; transform: translateY(7px); transition: opacity .16s ease, transform .16s ease, visibility .16s; }
    .msb-primary-menu > li:hover > .sub-menu,
    .msb-primary-menu > li:focus-within > .sub-menu,
    .msb-primary-menu > li:hover > .children,
    .msb-primary-menu > li:focus-within > .children { visibility: visible !important; opacity: 1 !important; pointer-events: auto !important; transform: translateY(0); }
}

.msb-ad-placeholder,
.msb-shop-placeholder {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: #fff;
    color: #111214;
    border-top: 5px solid var(--msb-red);
}
.msb-shop-placeholder { border-top-color: #f2c230; }
.msb-ad-placeholder strong,
.msb-shop-placeholder strong { color: #111214; font-size: 23px; text-transform: uppercase; }
.msb-ad-placeholder p,
.msb-shop-placeholder p { color: #33363b !important; font-size: 13px; line-height: 1.45; }
.msb-ad-placeholder a,
.msb-shop-placeholder a {
    align-self: center;
    padding: 10px 20px;
    background: #111214;
    color: #fff !important;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}
.msb-ad-placeholder a:hover,
.msb-shop-placeholder a:hover { background: var(--msb-red); color: #fff !important; }


/* v2.5.1 readability fixes */
body,
#wrapper,
#page,
.main,
.content,
.entry,
.entry-content,
.page,
.post,
article,
.site-content{
 background:#fff !important;
 color:#222 !important;
}
.entry-content p,.entry-content li,.entry-content div,.entry-content span,
.page-title,h1,h2,h3,h4,h5,h6{color:#222 !important;}
/* Hide stray vertical menus outside navigation */
.site-content .sub-menu,
.site-content .children,
.entry-content .sub-menu,
.entry-content .children{
display:none !important;
}
/* prevent overlap */
.site-content,.content,.entry{position:relative;z-index:5;}

/* v2.5.2 — restore featured images, section colors, and clean article templates */
/* The previous broad article rule painted the homepage hero white. */
.msb-lead-story {
    background-color: #111214 !important;
    background-image: linear-gradient(0deg,rgba(0,0,0,.95),rgba(0,0,0,.06) 68%), var(--lead-image) !important;
}
.msb-lead-story h1,
.msb-lead-story p,
.msb-lead-story .msb-meta,
.msb-lead-overlay { color: #fff !important; }

/* Restore each homepage section's selected accent color. */
.msb-category-box { border-top-color: var(--msb-accent) !important; }
.msb-box-header {
    background: var(--msb-accent) !important;
    color: #fff !important;
    border-bottom: 0 !important;
}
.msb-box-header h2,
.msb-box-header > a { color: #fff !important; }
.msb-box-header h2 span {
    background: rgba(255,255,255,.94) !important;
    color: var(--msb-accent) !important;
}
.msb-box-header > a {
    border-color: rgba(255,255,255,.55) !important;
    background: rgba(0,0,0,.12) !important;
}
.msb-box-header > a:hover { background: rgba(0,0,0,.28) !important; }

/* Clean single post/page layout independent of Hueman's old share bar. */
.msb-single-wrap { padding: 22px 0 42px; }
.msb-single-layout { display:grid; grid-template-columns:minmax(0,1fr) 310px; gap:22px; align-items:start; }
.msb-article { min-width:0; background:#fff; border:1px solid #e0e1e4; border-radius:5px; overflow:hidden; box-shadow:0 1px 5px rgba(0,0,0,.06); }
.msb-article-header { padding:24px 28px 18px; }
.msb-article-title { margin:0; color:#17181b !important; font-size:clamp(30px,4vw,52px); line-height:1.08; letter-spacing:-.02em; }
.msb-article-meta { margin-top:14px; color:#85878d; font-size:12px; text-transform:uppercase; letter-spacing:.035em; }
.msb-featured-image { display:block; width:100%; margin:0; background:#eceef1; }
.msb-featured-image img { display:block; width:100%; height:auto; max-height:720px; object-fit:cover; }
.msb-article-content { padding:26px 28px 34px; color:#222; font-size:18px; line-height:1.72; }
.msb-article-content > *:first-child { margin-top:0; }
.msb-article-content p,.msb-article-content li,.msb-article-content blockquote { color:#222 !important; }
.msb-article-content h2,.msb-article-content h3,.msb-article-content h4 { color:#17181b !important; line-height:1.22; }
.msb-article-content a { color:#b80f16; text-decoration:underline; }
.msb-article-content img { height:auto; }
.msb-article-content iframe { max-width:100%; }
.msb-article-sidebar { position:sticky; top:62px; }

/* Hide Hueman legacy social/share controls should a plugin or parent hook inject them. */
.sharrre-container,
.sharrre,
.post-share,
.entry-share,
.social-share,
.hu-share,
.sidebar-toggle,
#flexslider-featured .flex-direction-nav { display:none !important; }

/* Never reserve empty space for an absent image. */
.msb-featured-image:empty { display:none; }

@media (max-width:900px) {
    .msb-single-layout { grid-template-columns:1fr; }
    .msb-article-sidebar { position:static; }
}
@media (max-width:600px) {
    .msb-single-wrap { padding-top:0; }
    .msb-single-layout { gap:12px; }
    .msb-article { border-left:0; border-right:0; border-radius:0; }
    .msb-article-header { padding:22px 20px 16px; }
    .msb-article-title { font-size:clamp(30px,9vw,43px); }
    .msb-article-content { padding:22px 20px 30px; font-size:17px; }
}


/* v2.5.3 — homepage hero sizing, ranked-story visibility, team colors and sidebar alignment */
.msb-lead-grid {
    align-items: stretch;
    background: #0c0d0f !important;
}
.msb-lead-story {
    min-height: 410px;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center center !important;
    background-color: #0c0d0f !important;
}
.msb-lead-overlay {
    background: linear-gradient(0deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.48) 42%, rgba(0,0,0,.08) 72%);
}
.msb-lead-list {
    background: #111214 !important;
    border-left-color: #2b2c30 !important;
}
.msb-lead-list article {
    background: #111214 !important;
    border-bottom-color: #2b2c30 !important;
}
.msb-lead-list article > span {
    background: var(--msb-red) !important;
    color: #fff !important;
}
.msb-lead-list a,
.msb-lead-list strong {
    color: #fff !important;
}
.msb-lead-list small { color: #b8bac0 !important; }
.msb-lead-list img {
    display: block !important;
    width: 82px !important;
    height: 64px !important;
    max-width: 82px !important;
    object-fit: cover !important;
}

/* Keep the right column contained and prevent parent-theme widget rules from shifting it. */
.msb-home-sidebar {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.msb-home-sidebar > *,
.msb-home-sidebar .widget,
.msb-home-sidebar .msb-widget {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    float: none !important;
}
.msb-home-sidebar img { max-width: 100%; height: auto; }

@media (max-width: 820px) {
    .msb-lead-story {
        min-height: 350px;
        background-size: cover !important;
    }
    .msb-lead-list a {
        grid-template-columns: 96px minmax(0,1fr);
    }
    .msb-lead-list img {
        width: 96px !important;
        max-width: 96px !important;
        height: 70px !important;
    }
}

/* Version 2.5.4: richer homepage sidebar color system */
.msb-home-sidebar .msb-widget {
    --widget-accent: #d71920;
    border-top: 4px solid var(--widget-accent);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}
.msb-home-sidebar .msb-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(18, 24, 38, .11);
}
.msb-home-sidebar .msb-widget .widget-title {
    margin: -12px -12px 12px;
    padding: 12px 14px;
    color: #fff !important;
    background: var(--widget-accent);
    border-bottom: 0;
    letter-spacing: .04em;
}
.msb-home-sidebar > .msb-widget:nth-of-type(6n+1) { --widget-accent: #d71920; }
.msb-home-sidebar > .msb-widget:nth-of-type(6n+2) { --widget-accent: #241773; }
.msb-home-sidebar > .msb-widget:nth-of-type(6n+3) { --widget-accent: #f05a28; }
.msb-home-sidebar > .msb-widget:nth-of-type(6n+4) { --widget-accent: #0057a8; }
.msb-home-sidebar > .msb-widget:nth-of-type(6n+5) { --widget-accent: #7a0019; }
.msb-home-sidebar > .msb-widget:nth-of-type(6n+6) { --widget-accent: #087f5b; }

.msb-newsletter-widget {
    background: linear-gradient(145deg, #ffffff 0%, #fff4f4 100%);
}
.msb-newsletter-widget button,
.msb-newsletter-widget input[type="submit"] {
    background: #d71920;
    color: #fff;
    border: 0;
    font-weight: 800;
}
.msb-trending-item span { background: #d71920; }
.msb-trending-item:nth-of-type(2) span { background: #241773; }
.msb-trending-item:nth-of-type(3) span { background: #f05a28; }
.msb-trending-item:nth-of-type(4) span { background: #0057a8; }
.msb-trending-item:nth-of-type(5) span { background: #7a0019; }

.msb-ad-placeholder {
    --widget-accent: #f2c230 !important;
    color: #fff;
    background: linear-gradient(135deg, #141414, #343434);
}
.msb-ad-placeholder strong,
.msb-shop-placeholder strong {
    display: block;
    font-size: 18px;
    line-height: 1.2;
    margin-bottom: 7px;
}
.msb-ad-placeholder a,
.msb-shop-placeholder a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 4px;
    padding: 8px 14px;
    border-radius: 4px;
    background: #fff;
    color: #111 !important;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 12px;
}
.msb-shop-placeholder {
    --widget-accent: #f2c230 !important;
    color: #fff;
    background: linear-gradient(135deg, #7a0019, #d71920 62%, #f05a28);
}
.msb-scoreboard { --widget-accent: #0057a8 !important; }

@media (max-width: 900px) {
    .msb-home-sidebar .msb-widget:hover { transform: none; }
}

/* Version 2.5.5: article categories and reliable featured-image fallback */
.msb-article-categories {
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin:0 0 14px;
}
.msb-article-categories a {
    display:inline-flex;
    align-items:center;
    min-height:27px;
    padding:5px 10px;
    border-radius:3px;
    background:#d71920;
    color:#fff !important;
    font-size:11px;
    font-weight:800;
    line-height:1;
    letter-spacing:.04em;
    text-decoration:none !important;
    text-transform:uppercase;
}
.msb-article-categories a:nth-child(2n) { background:#22252a; }
.msb-article-categories a:nth-child(3n) { background:#f15a24; }
.msb-article-categories a:hover,
.msb-article-categories a:focus { filter:brightness(.88); }
.msb-featured-image {
    position:relative;
    overflow:hidden;
    min-height:0 !important;
}
.msb-featured-image img,
.msb-featured-image .msb-featured-img {
    display:block !important;
    visibility:visible !important;
    opacity:1 !important;
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
    max-height:none !important;
    object-fit:contain !important;
}
@media (max-width:600px) {
    .msb-article-categories { margin-bottom:12px; }
    .msb-article-categories a { font-size:10px; }
}


/* Version 2.5.6: force visible single-post and editor-content images. */
.single-post .msb-featured-image,
.single-post .msb-featured-image a,
.single-post .msb-featured-image img,
.single-post .msb-article-content figure,
.single-post .msb-article-content .wp-block-image,
.single-post .msb-article-content a,
.single-post .msb-article-content img {
    visibility: visible !important;
    opacity: 1 !important;
}
.single-post .msb-featured-image img,
.single-post .msb-article-content img {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin-left: auto;
    margin-right: auto;
    clip: auto !important;
    clip-path: none !important;
    transform: none !important;
}
.single-post .msb-featured-image {
    min-height: 1px !important;
    background: transparent !important;
}
