/* 22Media Premium Pro v6.37 — balanced homepage sidebar + compact newsroom rhythm */

/* The home sidebar must never dictate the height of the story column. Long category widgets
   are converted into a compact scrollable desk instead of creating a large empty white void. */
.m22-home-v7 .m22-pulse-grid{align-items:start!important;grid-template-columns:minmax(0,1fr) minmax(300px,340px)!important;gap:20px!important}
.m22-home-v7 .m22-pulse-feed{min-width:0!important}
.m22-home-v7 .m22-mostread-panel{align-self:start!important;max-height:none!important;overflow:visible!important;padding:16px!important}
.m22-home-v7 .m22-home-sidebar-compact{margin-top:12px;padding-top:11px;border-top:1px solid rgba(255,255,255,.12)}
.m22-home-v7 .m22-home-sidebar-compact .widget,
.m22-home-v7 .m22-home-sidebar-compact .m22-widget{margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#fff!important}
.m22-home-v7 .m22-home-sidebar-compact .widget-title,
.m22-home-v7 .m22-home-sidebar-compact h2,
.m22-home-v7 .m22-home-sidebar-compact h3{margin:0 0 9px!important;font-size:9px!important;font-weight:950!important;letter-spacing:.11em!important;text-transform:uppercase!important;color:#8ebcff!important}
.m22-home-v7 .m22-home-sidebar-compact ul{list-style:none!important;margin:0!important;padding:0 3px 1px 0!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;max-height:226px!important;overflow:auto!important;scrollbar-width:thin;scrollbar-color:#31589b transparent}
.m22-home-v7 .m22-home-sidebar-compact li{margin:0!important;padding:0!important;min-width:0!important}
.m22-home-v7 .m22-home-sidebar-compact li:before,.m22-home-v7 .m22-home-sidebar-compact li::marker{display:none!important;content:none!important}
.m22-home-v7 .m22-home-sidebar-compact a{display:flex!important;align-items:center!important;min-height:32px!important;padding:7px 9px!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:9px!important;background:rgba(255,255,255,.055)!important;color:#dbe8ff!important;font-size:9.5px!important;font-weight:780!important;line-height:1.2!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;transition:.18s ease!important}
.m22-home-v7 .m22-home-sidebar-compact a:hover{background:rgba(53,124,255,.18)!important;border-color:rgba(100,159,255,.35)!important;color:#fff!important;transform:translateY(-1px)!important}
.m22-home-v7 .m22-mostread-panel .m22-ad-slot{max-height:170px!important;overflow:hidden!important}

/* Keep the Latest Newsroom visually balanced even when a widget is present. */
.m22-home-v7 .m22-newsroom-pulse{overflow:visible!important}
.m22-home-v7 .m22-pulse-feed article{min-height:110px!important}
.m22-home-v7 .m22-pulse-feed article:not(:first-child) .m22-pulse-thumb{height:96px!important}

/* Fallback/brand art should not dominate category/home cards. Real editorial images keep full treatment;
   fallback cards become text-forward while the repair engine continues searching for a related photo. */
.m22-home-v7 img[src*="brand-placeholder"],
.m22-listing-grid img[src*="brand-placeholder"]{object-fit:cover!important;filter:saturate(.78) contrast(.95)!important}

body.m22-dark .m22-home-v7 .m22-home-sidebar-compact{border-top-color:rgba(255,255,255,.1)!important}

@media(max-width:1080px){
  .m22-home-v7 .m22-pulse-grid{grid-template-columns:1fr!important}
  .m22-home-v7 .m22-mostread-panel{position:static!important;width:100%!important}
  .m22-home-v7 .m22-home-sidebar-compact ul{grid-template-columns:repeat(3,minmax(0,1fr))!important;max-height:150px!important}
}
@media(max-width:620px){
  .m22-home-v7 .m22-newsroom-pulse{padding:14px!important;border-radius:20px!important}
  .m22-home-v7 .m22-home-sidebar-compact ul{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-height:170px!important}
  .m22-home-v7 .m22-mostread-panel{padding:14px!important;border-radius:16px!important}
}
