/* Homepage lead and supporting stories. The layout preview has its own styles. */
#hero.hero-grid { grid-template-columns: minmax(0, 1fr); }
#hero .hero-main { grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); }
#hero .hero-media { padding: 28px 0 28px 58px; }
#hero .hero-side {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 22px;
  padding: 22px 0 26px;
}
#hero .hero-side::before, #hero .hero-side::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 100vw;
  background: var(--black); pointer-events: none;
}
#hero .hero-side::before { right: 100%; }
#hero .hero-side::after { left: 100%; display: block; }
#hero .side-title { grid-column: 1 / -1; margin-bottom: 8px; }
#hero .side-item { grid-template-columns: minmax(100px, 38%) minmax(0, 1fr); border-top: 1px solid #2c2c2c; gap: 12px; }
#hero .side-item h3 { font-size: clamp(17px, 1.7vw, 21px); }
@media (max-width: 1080px) {
  #hero .hero-side { margin: 0; padding: 22px 0 26px; }
  #hero .side-item { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  #hero .hero-main { grid-template-columns: minmax(0, 1fr); }
  #hero .hero-media { padding: 22px 0; }
  #hero .hero-side { grid-template-columns: minmax(0, 1fr); padding: 22px 0; }
  #hero .side-item { grid-template-columns: 112px minmax(0, 1fr); }
  #hero .side-item h3 { font-size: 19px; }
}

/* ------------------------------------------------------------------
   Lead story art: the photo half of the thumbnail becomes the hero
   background on the right and fades into the solid page color behind
   the headline.
   ------------------------------------------------------------------ */
#hero .hero-main.has-art { --art-seam: 42%; --art-fade: 340px; --bleed: calc(50% - 50vw); }
#hero .has-art .hero-art { display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none; }

/* The tile shows the photo side of a 16:9 thumbnail, cover-cropped so the
   thumbnail's torn edge (to ~58% across), its upper-right logo (top ~16%) and
   its bottom label strip (below ~91%) stay outside the frame; the hero
   restates any label as a caption chip. */
#hero .art-tile {
  position: absolute; top: 0; bottom: 0; left: var(--art-seam); right: var(--bleed);
  overflow: hidden; container-type: size;
}
#hero .art-tile img {
  --w: max(250cqw, 241cqh); --h: calc(var(--w) * .5625);
  position: absolute; max-width: none; width: var(--w); height: var(--h); object-fit: cover;
  left: clamp(calc(100cqw - var(--w)), calc(50cqw - var(--w) * .79), calc(var(--w) * -.6));
  top: clamp(calc(100cqh - var(--h) * .91), calc((100cqh - var(--h)) * .7), calc(var(--h) * -.165));
}
#hero .hero-art-photo {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .2) calc(var(--art-fade) * .3), rgba(0, 0, 0, .75) calc(var(--art-fade) * .7), #000 var(--art-fade));
          mask-image: linear-gradient(90deg, transparent 0, rgba(0, 0, 0, .2) calc(var(--art-fade) * .3), rgba(0, 0, 0, .75) calc(var(--art-fade) * .7), #000 var(--art-fade));
}

/* headline sits straight on the page color: no sheet, no torn clip */
#hero .has-art .hero-field { display: none; }
#hero .has-art .hero-paper { background: none; clip-path: none !important; }
#hero .has-art .hero-paper::before { display: none; }

/* the right column becomes a transparent link over the photo */
#hero .has-art .hero-media { padding: 0; align-items: stretch; }
#hero .has-art .media-card { display: flex; flex-direction: column; height: 100%; background: none; box-shadow: none; padding: 0; }
#hero .has-art .media-card .card-bar { display: none; }
#hero .has-art .media-card .frame { flex: 1; margin: 0; aspect-ratio: auto; background: none; overflow: visible; }
#hero .has-art .media-card .frame > img { display: none; }
#hero .has-art .media-card .play { left: 58%; }
#hero .has-art .media-card .credit {
  align-self: flex-end; margin: 0 0 14px; padding: 5px 9px; color: #fff;
  background: rgba(0, 0, 0, .62); text-shadow: none;
}

@media (max-width: 760px) {
  #hero .hero-main.has-art { --band: calc(62vw + 40px); }
  #hero .has-art .hero-media { order: -1; height: var(--band); }
  #hero .has-art .media-card .play { left: 50%; }
  #hero .has-art .media-card .credit { margin-bottom: 10px; }
  #hero .has-art .hero-paper { padding-top: 6px; }
  #hero .art-tile { left: -16px; right: -16px; top: 0; bottom: auto; height: var(--band); }
  #hero .hero-art-photo {
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 130px), rgba(0, 0, 0, .3) calc(100% - 45px), transparent 100%);
            mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 130px), rgba(0, 0, 0, .3) calc(100% - 45px), transparent 100%);
  }
}
#hero .has-art .media-card .art-note { background: rgba(12, 12, 12, .78); }
#hero .has-art .media-card .image-label { left: auto; right: 0; bottom: 14px; font-size: 11px; padding: 5px 9px; }
#hero .has-art .media-card .credit + .art-note { margin-top: -10px; }

/* Desktop lead fits the first screen (see fitHeroToScreen in app.js):
   a wider headline column and a shorter dek leave the headline room to stay big. */
@media (min-width: 761px) {
  #hero .hero-main.has-art { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); --art-seam: 46%; }
  #hero .has-art .hero-paper { gap: 16px; padding-top: 28px; padding-bottom: 30px; }
  #hero .has-art .hero-paper .dek {
    max-width: 46ch; font-size: 17px; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  }
}
