/* Hero surfaces are independently editable in Design System > Hero & Cards.
   Nothing here reads the page ground --bg directly. */
html body .hero,
html body .hero:has(.hero-media),
html body .hero:has(video){
  background: linear-gradient(118deg,
    var(--theme-hero-left, var(--d2)) 0%,
    var(--theme-hero-left-end, var(--d1)) 100%) !important;
}
html body .hero-copy .tag{
  background: var(--theme-hero-card, var(--d1)) !important;
  border: 1px solid var(--theme-hero-card-border, var(--line)) !important;
  color: var(--theme-hero-card-text, var(--mute)) !important;
  border-radius: 999px !important;
  padding: 10px 20px !important;
}
html body .hero-note{
  background: var(--theme-hero-note, var(--d2)) !important;
  border: 1px solid var(--theme-hero-note-border, var(--line)) !important;
  color: var(--theme-hero-note-text, var(--mute)) !important;
  border-radius: 999px !important;
  padding: 8px 16px !important;
  display: inline-block !important;
}
html body .hero-note b{color: var(--theme-hero-card-text, var(--gold2)) !important;}
html body .stry-video{
  outline: 2px solid var(--theme-hero-media-outline, var(--gold)) !important;
  outline-offset: -2px;
}
/* Feather the film's own left edge so it melts into the editorial panel
   instead of starting as a hard block at the 40% split. */
@media (min-width:901px){
  html body .hero-media{
    -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 var(--theme-hero-edge-width,160px));
    mask-image:linear-gradient(90deg,transparent 0%,#000 var(--theme-hero-edge-width,160px));
  }
}
/* The seam between the editorial left panel and the film is a feathered,
   glossy glow — no hard border, and independent of --bg / --bg2. */
html body .hero::before{
  content:"";position:absolute;z-index:2;left:0;top:0;bottom:0;pointer-events:none;
  width:var(--theme-hero-edge-width,160px);
  border-left:1px solid color-mix(in srgb,var(--theme-hero-edge-color,var(--gold)) 70%,transparent);
  background:linear-gradient(90deg,
    color-mix(in srgb,var(--theme-hero-edge-color,var(--gold)) 22%,transparent) 0%,
    transparent 100%);
  box-shadow:0 0 var(--theme-hero-edge-blur,24px) var(--theme-hero-edge-spread,8px)
    color-mix(in srgb,var(--theme-hero-edge-color,var(--gold)) 55%,transparent);
  filter:blur(calc(var(--theme-hero-edge-blur,24px) / 4));
  opacity:var(--theme-hero-edge-opacity,.72);
  -webkit-mask-image:linear-gradient(90deg,#000 0%,transparent 100%);
  mask-image:linear-gradient(90deg,#000 0%,transparent 100%);
}
html body .hero-media::after{
  background:
    linear-gradient(90deg,
      color-mix(in srgb,var(--theme-hero-scrim,var(--d2)) 0%,transparent) 0%,
      color-mix(in srgb,var(--theme-hero-scrim-mid,var(--d1)) 45%,transparent) 22%,
      transparent 55%),
    linear-gradient(0deg,
      color-mix(in srgb,var(--theme-hero-scrim,var(--d2)) 32%,transparent) 0%,
      transparent 38%) !important;
}
