/* Official NBA editorial background, shared by homepage and NBA news. */
.nba-editorial-card,.nba-branded-news,#article.nba-branded-article{
  background:#020619 url('assets/nba-news-background.webp') center top / 100% auto repeat-y;
  color:#fff;border:1px solid #253568;
}
.nba-editorial-card .nba-news-photo,.nba-branded-news>img{
  margin:clamp(86px,12vw,124px) auto 0;
  width:calc(100% - clamp(28px,5vw,64px));
  background:transparent;
}
.nba-editorial-card .nba-news-photo img,
.hero.nba-branded-news>img,.card.nba-branded-news>img{
  display:block;position:static;inset:auto;z-index:auto;
  height:auto;max-height:none;aspect-ratio:auto;object-fit:contain;border-radius:8px;
}
.hero.nba-branded-news{display:block;min-height:0}
.hero.nba-branded-news::after{display:none}
.nba-editorial-card .nba-news-copy,.nba-branded-news .story-copy{
  position:relative;margin:18px clamp(14px,3vw,28px) 24px;
  padding:clamp(18px,3vw,30px);background:rgba(2,6,22,.90);
  border:1px solid #33416b;border-radius:12px;color:#fff;
}
.nba-editorial-card .nba-news-copy :is(h2,h3,p),
.nba-branded-news .story-copy :is(h2,h3,p){color:#fff}
.nba-editorial-card .nba-news-copy .eyebrow,.nba-branded-news .eyebrow{color:#ffdb65}
.nba-editorial-card .nba-news-meta{color:#dce5fa}
.nba-editorial-card :is(h2,h3),.nba-branded-news :is(h2,h3){overflow-wrap:anywhere;line-height:1.2}
.nba-editorial-card p,.nba-branded-news p{font-size:1rem;line-height:1.75}
.nba-editorial-card a:not(.read),#article.nba-branded-article a{color:#dce9ff}
.nba-editorial-card :is(h2,h3) a{color:#fff}
.nba-editorial-card .read,.nba-branded-news .read{background:#ffcf45;color:#071329;border:0}
.nba-full-article{scroll-margin-top:24px}
.nba-full-article summary{font-size:1rem;color:#ffdb65;cursor:pointer;padding:12px 0}
.nba-full-article>div{max-width:70ch}
#article.nba-branded-article{width:min(900px,calc(100% - 24px))}
#article.nba-branded-article .dialog-body{margin-top:110px;padding:clamp(18px,4vw,36px);background:rgba(2,6,22,.92)}
#article.nba-branded-article :is(h2,h3,p),#article.nba-branded-article #article-copy .article-summary{color:#fff}
#article.nba-branded-article #article-copy .article-cover{height:auto;max-height:none;object-fit:contain}
@media(max-width:600px){
  .nba-editorial-card .nba-news-copy,.nba-branded-news .story-copy{margin:14px 12px 18px;padding:18px}
  .nba-editorial-card .nba-news-copy :is(h2,h3),.hero.nba-branded-news h2{font-size:clamp(1.5rem,6vw,2rem)}
  .nba-branded-news .story-copy h3{font-size:1.5rem}
  #article.nba-branded-article .dialog-body{margin-top:90px}
}

/* Consistent, moderate news image frames on every screen. */
#stories .hero,#stories .card{display:block;min-height:0}
#stories .hero::after{display:none}
#stories .hero>img,#stories .card>img,
.nba-editorial-card .nba-news-photo img,
.nba-editorial-card.portrait-news .nba-news-photo img,
.nba-editorial-card.photo-first .nba-news-photo img{
  position:static;inset:auto;display:block;width:100%;
  height:300px;min-height:0;max-height:300px;aspect-ratio:auto;
  object-fit:contain;background-color:#050917;
}
#stories .hero>img,#stories .card>img{z-index:auto}
#stories .nba-branded-news>img{width:calc(100% - 32px)}
#article #article-copy .article-cover,
#article.full-news-article #article-copy .article-cover{
  width:100%;height:340px;max-height:340px;object-fit:contain;
  aspect-ratio:auto;background:#050917;
}
@media(max-width:600px){
  #stories .hero>img,#stories .card>img,
  .nba-editorial-card .nba-news-photo img,
  .nba-editorial-card.portrait-news .nba-news-photo img,
  .nba-editorial-card.photo-first .nba-news-photo img{
    height:230px;max-height:230px;min-height:0;
  }
  #article #article-copy .article-cover,
  #article.full-news-article #article-copy .article-cover{height:260px;max-height:260px}
}
