/* 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;
  }
}

/* ------------------------------------------------------------------
   Content-width hero (November 13, 2026). The lead story and "The
   Latest" form one framed panel as wide as the page content; nothing
   runs out to the edges of the window. The panel carries the lead
   story's section color along its top edge.
   ------------------------------------------------------------------ */
body[data-page="home"] .hero { padding-top: 26px; overflow: visible; }
#hero.hero-grid {
  --hero-panel: #fbf9f4;
  background: var(--hero-panel);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .14), 0 26px 46px -30px rgba(0, 0, 0, .7);
}
#hero .hero-main { border-top: 6px solid var(--red); overflow: hidden; }
#hero .hero-main.has-art { --bleed: 0px; }
#hero .hero-paper { background: var(--hero-panel); padding-left: 40px; }
#hero .has-art .hero-paper { background: none; }
#hero .hero-paper::before { display: none; }
#hero .hero-side { margin: 0; padding: 22px 28px 26px; }
#hero .hero-side::before, #hero .hero-side::after { display: none; }

/* the lead reacts as one piece: the picture eases in when the story is pointed at */
#hero .hero-paper .mega a { text-decoration: underline transparent; text-decoration-thickness: .055em; text-underline-offset: .1em; transition: text-decoration-color .2s; }
#hero .hero-paper .mega a:hover { text-decoration-color: var(--hl); }
#hero a:focus-visible { outline: 3px solid var(--hl); outline-offset: 3px; }
#hero .hero-side a:focus-visible { outline-color: #fff; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  #hero .art-tile img { transition: transform .7s cubic-bezier(.2, .7, .2, 1); transform-origin: 70% 50%; }
  #hero .hero-main:has(.media-card:hover) .art-tile img,
  #hero .hero-main:has(.hero-paper a:hover) .art-tile img { transform: scale(1.035); }
  #hero .side-item .thumb > img { transition: transform .35s ease; }
  #hero .side-item:hover .thumb > img { transform: scale(1.06); }
}

/* "The Latest" heading row: section-colored rule and a jump to the full list */
#hero .side-title { align-items: flex-end; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid #2c2c2c; }
#hero .side-title h2 { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
#hero .side-title h2::before { content: ""; width: 8px; height: .82em; background: var(--red-hot); flex: none; }
#hero .side-title .side-more {
  font-family: var(--label); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: #cfcfcf; white-space: nowrap; padding-bottom: 4px;
}
#hero .side-title .side-more:hover { color: #fff; }
#hero .side-title + .side-item, #hero .side-title + .side-item + .side-item, #hero .side-title + .side-item + .side-item + .side-item { border-top: 0; }

@media (max-width: 1080px) {
  #hero .hero-side { margin: 0; padding: 22px 24px 26px; }
  #hero .side-title ~ .side-item { border-top: 1px solid #2c2c2c; }
  #hero .side-title + .side-item { border-top: 0; }
}
@media (min-width: 761px) and (max-width: 1080px) {
  #hero .side-title + .side-item + .side-item, #hero .side-title + .side-item + .side-item + .side-item { border-top: 0; }
}
@media (max-width: 760px) {
  body[data-page="home"] .hero { padding-top: 16px; }
  #hero .hero-paper { padding: 22px 18px 24px; }
  #hero .has-art .hero-paper { padding-top: 8px; }
  #hero .art-tile { left: 0; right: 0; }
  #hero .hero-field { inset: 0; }
  #hero .hero-media { padding: 22px 18px; }
  #hero .has-art .hero-media { padding: 0; }
  #hero .hero-side { padding: 20px 18px 22px; }
  /* long headlines keep to a few lines inside the narrower panel */
  #hero .hero-paper .mega { font-size: min(64px, 12.6cqw); line-height: .94; }
}
#hero.hero-grid:empty { display: none; }
#stories { scroll-margin-top: 72px; }
