/* Jaisandar 299 · final mobile home layer
   Loaded after the DATA cascade so legacy mobile cards cannot repaint the home DATA rail. */
@media (max-width:780px){
  /* DATA header and rail: absolutely no white/tile surface. */
  body.home[data-jai-rubric="home"] .home-editorial{
    margin-top:-12px!important;
    padding-top:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  body.home[data-jai-rubric="home"] .home-editorial>.home-lead-layout{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    gap:5px!important;
    width:100vw!important;
    max-width:100vw!important;
    height:auto!important;
    min-height:0!important;
    margin:0 calc(50% - 50vw)!important;
    padding:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  body.home[data-jai-rubric="home"] .home-lead-layout>.home-data-rail{
    display:block!important;
    grid-column:1!important;
    grid-row:1!important;
    width:100vw!important;
    min-width:100vw!important;
    max-width:100vw!important;
    height:66px!important;
    min-height:66px!important;
    max-height:66px!important;
    margin:0!important;
    padding:0 7px 3px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    background-image:none!important;
    box-shadow:none!important;
    filter:none!important;
    overflow:hidden!important;
  }
  body.home[data-jai-rubric="home"] .home-data-rail:before,
  body.home[data-jai-rubric="home"] .home-data-rail:after,
  body.home[data-jai-rubric="home"] .home-data-rail-head:before,
  body.home[data-jai-rubric="home"] .home-data-rail-head:after,
  body.home[data-jai-rubric="home"] .home-data-rail-head>div:before,
  body.home[data-jai-rubric="home"] .home-data-rail-head>div:after,
  body.home[data-jai-rubric="home"] .home-data-rail-head>div>span:before,
  body.home[data-jai-rubric="home"] .home-data-rail-head>div>span:after,
  body.home[data-jai-rubric="home"] .home-data-rail-list:before,
  body.home[data-jai-rubric="home"] .home-data-rail-list:after{
    content:none!important;
    display:none!important;
    background:none!important;
    box-shadow:none!important;
  }
  body.home[data-jai-rubric="home"] .home-data-rail-head,
  body.home[data-jai-rubric="home"] .home-data-rail-head>div,
  body.home[data-jai-rubric="home"] .home-data-rail-head>div>span,
  body.home[data-jai-rubric="home"] .home-data-rail-list{
    background:transparent!important;
    background-image:none!important;
    box-shadow:none!important;
    border:0!important;
  }
  body.home[data-jai-rubric="home"] .home-data-rail-head{
    display:block!important;
    height:14px!important;
    min-height:14px!important;
    margin:0!important;
    padding:0 1px!important;
    overflow:visible!important;
  }
  body.home[data-jai-rubric="home"] .home-data-rail-head>div{display:block!important;margin:0!important;padding:0!important;}
  body.home[data-jai-rubric="home"] .home-data-rail-head>div>span{
    display:block!important;
    margin:0!important;
    padding:0!important;
    color:#17665f!important;
    font-size:9px!important;
    line-height:12px!important;
    font-weight:950!important;
    letter-spacing:.11em!important;
    text-shadow:none!important;
  }
  body.home[data-jai-rubric="home"] .home-data-rail-head h2,
  body.home[data-jai-rubric="home"] .home-data-rail-head p{display:none!important;}

  body.home[data-jai-rubric="home"] .home-data-rail-list{
    position:relative!important;
    z-index:2!important;
    display:flex!important;
    flex-flow:row nowrap!important;
    align-items:stretch!important;
    gap:7px!important;
    width:100%!important;
    height:50px!important;
    margin:0!important;
    padding:0 0 3px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    scroll-snap-type:x proximity!important;
    overscroll-behavior-x:contain!important;
    -webkit-overflow-scrolling:touch!important;
    scrollbar-width:none!important;
  }
  body.home[data-jai-rubric="home"] .home-data-rail-list::-webkit-scrollbar{display:none!important;}

  /* DATA rubrics: icon + label + LED line only. No card/background at all. */
  body.home[data-jai-rubric="home"] .home-data-link{
    flex:0 0 112px!important;
    scroll-snap-align:start!important;
    position:relative!important;
    display:grid!important;
    grid-template-columns:29px minmax(0,1fr)!important;
    grid-template-rows:1fr!important;
    align-items:center!important;
    column-gap:6px!important;
    width:112px!important;
    min-width:112px!important;
    max-width:112px!important;
    height:47px!important;
    min-height:47px!important;
    margin:0!important;
    padding:3px 4px 6px!important;
    border:0!important;
    border-bottom:2px solid var(--data-accent)!important;
    border-radius:0!important;
    background:transparent!important;
    background-image:none!important;
    box-shadow:0 5px 7px -7px rgba(var(--data-accent-rgb),.9)!important;
    filter:none!important;
    overflow:visible!important;
    transform:none!important;
  }
  body.home[data-jai-rubric="home"] .home-data-link:before,
  body.home[data-jai-rubric="home"] .home-data-link:after{content:none!important;display:none!important;}
  body.home[data-jai-rubric="home"] .home-data-link>i{
    grid-column:1!important;
    grid-row:1!important;
    display:grid!important;
    place-items:center!important;
    width:29px!important;
    height:34px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    background-image:none!important;
    box-shadow:none!important;
    color:var(--data-accent)!important;
    font-size:.88rem!important;
    text-shadow:0 0 7px rgba(var(--data-accent-rgb),.52)!important;
  }
  body.home[data-jai-rubric="home"] .home-data-link>i>svg{
    width:21px!important;
    height:23px!important;
    filter:drop-shadow(0 0 4px rgba(var(--data-accent-rgb),.45))!important;
  }
  body.home[data-jai-rubric="home"] .home-data-link>span{
    grid-column:2!important;
    grid-row:1!important;
    display:block!important;
    min-width:0!important;
    align-self:center!important;
  }
  body.home[data-jai-rubric="home"] .home-data-link>span b{
    display:block!important;
    color:#183c3a!important;
    font-size:9.5px!important;
    line-height:1.08!important;
    font-weight:950!important;
    letter-spacing:-.01em!important;
    white-space:normal!important;
    text-transform:uppercase!important;
    text-shadow:none!important;
  }
  body.home[data-jai-rubric="home"] .home-data-link>span small,
  body.home[data-jai-rubric="home"] .home-data-link>strong,
  body.home[data-jai-rubric="home"] .home-data-link>em,
  body.home[data-jai-rubric="home"] .home-data-all{display:none!important;}

  /* Four lead stories: each is one large full-width story, stacked vertically. */
  body.home[data-jai-rubric="home"] .home-mobile-news-grid,
  body.home[data-jai-rubric="home"] .home-mobile-news-grid.jai-mobile-news-rotator{
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-template-rows:none!important;
    grid-auto-rows:auto!important;
    gap:12px!important;
    position:relative!important;
    grid-column:1!important;
    grid-row:2!important;
    width:100vw!important;
    max-width:100vw!important;
    height:auto!important;
    min-height:0!important;
    margin:0 calc(50% - 50vw)!important;
    padding:0!important;
    overflow:visible!important;
    touch-action:auto!important;
  }
  body.home[data-jai-rubric="home"] .home-mobile-news-card,
  body.home[data-jai-rubric="home"] .jai-mobile-news-rotator .home-mobile-news-card{
    display:block!important;
    position:relative!important;
    inset:auto!important;
    width:100vw!important;
    min-width:100vw!important;
    max-width:100vw!important;
    height:clamp(300px,78vw,370px)!important;
    min-height:300px!important;
    margin:0!important;
    opacity:1!important;
    transform:none!important;
    pointer-events:auto!important;
    z-index:auto!important;
    transition:none!important;
  }
  body.home[data-jai-rubric="home"] .home-mobile-news-card>a,
  body.home[data-jai-rubric="home"] .jai-mobile-news-rotator .home-mobile-news-card>a{
    display:block!important;
    position:relative!important;
    width:100%!important;
    height:100%!important;
    border-radius:0!important;
    overflow:hidden!important;
    background:#0b1718!important;
    box-shadow:none!important;
  }
  body.home[data-jai-rubric="home"] .home-mobile-news-media,
  body.home[data-jai-rubric="home"] .jai-mobile-news-rotator .home-mobile-news-media{
    position:absolute!important;
    inset:0!important;
    display:block!important;
    width:100%!important;
    height:100%!important;
  }
  body.home[data-jai-rubric="home"] .home-mobile-news-media:after{
    content:""!important;
    display:block!important;
    position:absolute!important;
    inset:0!important;
    background:linear-gradient(180deg,rgba(5,18,18,.02) 24%,rgba(4,15,15,.86) 100%)!important;
    pointer-events:none!important;
  }
  body.home[data-jai-rubric="home"] .home-mobile-news-media img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    object-fit:cover!important;
  }
  body.home[data-jai-rubric="home"] .home-mobile-news-copy,
  body.home[data-jai-rubric="home"] .jai-mobile-news-rotator .home-mobile-news-copy{
    position:absolute!important;
    z-index:3!important;
    left:18px!important;
    right:18px!important;
    bottom:20px!important;
    display:grid!important;
    gap:6px!important;
    padding:0!important;
    color:#fff!important;
  }
  body.home[data-jai-rubric="home"] .home-mobile-news-copy small{
    font-size:8.5px!important;
    color:#8ff0cf!important;
    font-weight:950!important;
    letter-spacing:.11em!important;
    text-transform:uppercase!important;
  }
  body.home[data-jai-rubric="home"] .home-mobile-news-copy b{
    font-size:21px!important;
    line-height:1.1!important;
    font-weight:900!important;
    color:#fff!important;
    text-shadow:0 2px 14px rgba(0,0,0,.40)!important;
    display:-webkit-box!important;
    -webkit-line-clamp:3!important;
    -webkit-box-orient:vertical!important;
    overflow:hidden!important;
  }
  body.home .jai-mobile-news-dots{display:none!important;}

  /* The label is removed on phones; the article stream itself remains below. */
  body.home[data-jai-rubric="home"] .home-main-heading{display:none!important;}
}
