/* The existing league header keeps its own brand typography, colors and accent border. */
.hero.has-venue-photo {
  --venue-blend: var(--team-primary, #101923);
  padding-inline-end: calc(46% + 8px);
  background: var(--venue-blend);
}
.hero .venue-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 46%;
  margin: 0;
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
}
.hero .venue-photo-ready { opacity: 1; }
.hero .venue-photo > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 52%;
}
.venue-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, var(--venue-blend), transparent 32%);
}
@media (min-width: 621px) and (max-width: 900px) {
  .hero.has-venue-photo { padding-inline-end: calc(40% + 8px); }
  .hero .venue-photo { width: 40%; }
}
@media (max-width: 620px) {
  .hero.has-venue-photo { padding-inline-end: 16px; padding-bottom: 0; row-gap: .4rem; }
  .hero .venue-photo {
    position: relative;
    inset: auto;
    grid-column: 1 / -1;
    width: auto;
    height: clamp(5rem, 20vw, 6.3rem);
    margin-inline: -16px;
  }
  .venue-photo::after { background: linear-gradient(180deg, var(--venue-blend), transparent 30%); }
}

/* A satin reflection across the team-color panel tapers off at the venue. */
.hero.franchise-banner {
  background-color: var(--team-primary);
  border-bottom-color: var(--team-highlight, var(--team-stripe));
  box-shadow: inset 0 1px 0 #ffffff40, inset 0 -1px 0 #0003;
}
.hero.franchise-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 7%, #fff1 17%, transparent 31%),
    linear-gradient(173deg, #ffffff26, #ffffff07 43%, transparent 43.5%, #0002);
  mask-image: linear-gradient(90deg, black 28%, transparent 70%);
}
.hero.franchise-banner > :is(img, .hero-copy) { position: relative; }
