/* Former brand-blue sections (#003CD5) open onto the pinned hero video.
   They use the same scrim as the hero (no extra tint). Display titles use
   the hero's white + orange type and text-shadow so they stay legible.
   Orange and white sections stay solid so the curtain remains. v1. Bump
   the filename rather than editing in place. */

.d-sec.d-prog,
.d-sec.d-coaches,
.d-sec.d-coaches.d-coaches-row{
  background: transparent;
  color: #fff;
}

/* Same overlays as .d-hero-media::before / ::after in d.css */
.d-sec.d-prog::before,
.d-sec.d-coaches::before{
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 160px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom,rgba(0,0,0,.33),transparent);
}
.d-sec.d-prog::after,
.d-sec.d-coaches::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg,rgba(0,0,0,.41),rgba(0,0,0,.10) 60%,transparent);
}
@media (max-width: 700px){
  .d-sec.d-prog::after,
  .d-sec.d-coaches::after{
    background: linear-gradient(180deg,rgba(0,0,0,.18) 10%,rgba(0,0,0,.58) 78%);
  }
}

/* Content paints above the scrim. The coaches card row stays opaque orange. */
.d-sec.d-prog > *,
.d-sec.d-coaches > *,
.d-coaches-row .d-co-banner,
.d-coaches-row .d-co-row{
  position: relative;
  z-index: 2;
}
.d-coaches-row .d-co-row{
  background: #FF7800;
}

/* The old solid blue coaches banner is gone — video + scrim show through. */
.d-coaches-row .d-co-banner,
.d-coaches-row .d-co-banner.d-vid-cut{
  background: transparent;
  box-shadow: none;
  filter: none;
}

/* Programme title sits on the video, not on a solid band. */
.d-sec.d-prog .d-vid-cut{
  background: transparent;
  width: auto;
  margin: 12px 0 22px;
  padding: 0;
}

/* Hero type: white, orange on the accent span, same shadows as .d-hero h1. */
.d-prog .d-eyebrow,
.d-prog .d-sub,
.d-prog .d-h2,
.d-prog .d-h2 b,
.d-coaches-row .d-co-banner .d-h2,
.d-coaches-row .d-co-banner .d-h2 b{
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.55), 0 8px 28px rgba(0,0,0,.35);
  filter: none;
}
.d-prog .d-h2 span,
.d-coaches-row .d-co-banner .d-h2 span{
  color: #FF7800;
  text-shadow: 0 1px 2px rgba(0,0,0,.7), 0 8px 24px rgba(0,0,0,.45);
  filter: none;
}
@media (max-width: 700px){
  .d-prog .d-eyebrow,
  .d-prog .d-sub,
  .d-prog .d-h2,
  .d-prog .d-h2 b,
  .d-coaches-row .d-co-banner .d-h2,
  .d-coaches-row .d-co-banner .d-h2 b{
    text-shadow: 0 1px 2px rgba(0,0,0,.75), 0 6px 20px rgba(0,0,0,.5);
  }
  .d-prog .d-h2 span,
  .d-coaches-row .d-co-banner .d-h2 span{
    text-shadow: 0 1px 2px rgba(0,0,0,.8), 0 6px 20px rgba(0,0,0,.55);
  }
}

/* Video play/mute controls live inside the fixed hero figure, so they would
   otherwise show through later transparent sections. Hide them once the
   hero has scrolled away under the header. */
html.is-past-hero .d-hero .vid-ctrls{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
