/* V7.8: TOI-inspired continuous right-hand rail. No change to news queries/data. */
.p3-shell .p77-home-layout.p78-news-layout{
 display:grid!important;grid-template-columns:minmax(0,1fr) 320px!important;
 column-gap:26px!important;align-items:start!important;width:100%!important;max-width:100%!important;
}
.p3-shell .p78-news-main{min-width:0!important;width:100%;grid-column:1!important;}
.p3-shell .p77-right.p78-news-rail{
 grid-column:2!important;grid-row:1!important;display:flex!important;flex-direction:column!important;
 position:static!important;min-width:0!important;width:320px!important;max-width:100%!important;
 gap:0!important;align-self:start!important;overflow:visible!important;
}
/* TOI-style rail: continuous white space and thin separators, rather than floating bordered tiles */
.p3-shell .p78-news-rail .p77-panel{
 display:block!important;background:#fff!important;box-shadow:none!important;border:0!important;
 border-radius:0!important;padding:4px 0 23px!important;margin:0 0 24px!important;
 border-bottom:1px solid #d8dce3!important;width:100%!important;box-sizing:border-box!important;
}
.p3-shell .p78-news-rail .p77-panel:last-child{border-bottom:0!important;}
.p3-shell .p78-news-rail .p77-panel h2{font-size:20px!important;color:#171c24!important;line-height:1.35!important;margin:0 0 16px!important;padding:0!important;border:0!important;font-weight:800!important}
.p3-shell .p78-news-rail .p77-follow>p{margin-bottom:12px!important}
.p3-shell .p78-news-rail .p77-sociallink{
 display:flex!important;align-items:center!important;min-height:44px!important;margin:0 0 7px!important;
 border:1px solid #edf0f4!important;border-radius:7px!important;padding:7px 10px!important;
}
.p3-shell .p78-news-rail .p77-brand{width:31px;height:31px;flex:none}
.p3-shell .p78-news-rail .p77-brand svg{width:21px;height:21px}
.p3-shell .p78-news-rail .p77-trendlist{display:block!important}
.p3-shell .p78-news-rail .p77-trend{display:flex!important;align-items:start!important;gap:10px!important;
 border:0!important;border-bottom:1px solid #edf0f3!important;padding:11px 0!important;min-width:0!important}
.p3-shell .p78-news-rail .p77-trend:first-child{padding-top:0!important}
.p3-shell .p78-news-rail .p77-trend:last-child{border-bottom:0!important}
.p3-shell .p78-news-rail .p77-trend .p7-mini{flex:1!important;min-width:0!important;display:grid!important;
 grid-template-columns:minmax(0,1fr) 87px!important;gap:10px!important;align-items:start!important}
/* Mini news thumbnail on the right, text on the left, like the TOI rail */
.p3-shell .p78-news-rail .p77-trend .p7-mini .p7-mini-image{grid-column:2!important;grid-row:1 / span 3!important;
 width:87px!important;height:65px!important;aspect-ratio:4/3!important;border-radius:9px!important;overflow:hidden!important}
.p3-shell .p78-news-rail .p77-trend .p7-mini .p7-mini-image img{height:100%!important;width:100%!important;object-fit:cover!important;transition:transform .32s ease!important}
.p3-shell .p78-news-rail .p77-trend .p7-mini h3{font-size:13px!important;line-height:1.55!important;font-weight:650!important;grid-column:1!important;grid-row:1!important}
.p3-shell .p78-news-rail .p77-rank{width:22px!important;min-width:22px!important;font-size:20px!important;color:#c61c33!important}
.p3-shell .p78-news-rail .p77-short-feature{max-width:190px!important;width:100%!important;margin:0 auto 19px!important;aspect-ratio:9/16!important}
.p3-shell .p78-news-rail .p77-video-slider{width:100%!important;min-width:0!important}
.p3-shell .p78-news-rail .p77-video-track{max-width:100%!important}
.p3-shell .p78-news-rail .p77-video-item{min-width:100%!important;flex:0 0 100%!important}
.p3-shell .p78-news-rail .p77-video-image{aspect-ratio:16/9!important;border-radius:10px!important}
.p3-shell .p78-news-rail .p77-video-item strong{font-size:14px!important;line-height:1.5!important;margin-top:10px!important}
/* Main content stays separate, and the screenshot's horizontal rows keep clear spacing. */
.p3-shell .p78-news-main .p75-cities-row{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:14px!important}
.p3-shell .p78-news-main .p75-cities-row .p3-card{min-width:0!important}
.p3-shell .p78-news-main .p75-cities-row .p3-card h3{font-size:13px!important;line-height:1.5!important}
.p3-shell .p78-news-main .p75-cities-row img{object-fit:cover!important}
@media (max-width:1150px){
 .p3-shell .p77-home-layout.p78-news-layout{grid-template-columns:minmax(0,1fr) 280px!important;column-gap:16px!important}
 .p3-shell .p77-right.p78-news-rail{width:280px!important}
 .p3-shell .p78-news-main .p75-cities-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}
@media (max-width:820px){
 .p3-shell .p77-home-layout.p78-news-layout{grid-template-columns:minmax(0,1fr)!important;row-gap:28px!important}
 .p3-shell .p78-news-main{grid-column:1!important;grid-row:1!important}
 .p3-shell .p77-right.p78-news-rail{grid-column:1!important;grid-row:2!important;width:100%!important;
 display:flex!important;flex-direction:column!important}
 .p3-shell .p78-news-main .p75-cities-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .p3-shell .p78-news-rail .p77-sociallink{display:flex!important;width:100%!important;margin:0 0 7px!important}
}
@media (prefers-reduced-motion:reduce){.p3-shell .p78-news-rail img{transition:none!important}}
