/* Coaches: full-viewport sticky pin + scroll-driven horizontal track.
   v3: More/Less control sits under the bullets; label becomes Less when open. Bump to v4 rather than editing in place. */
.d-coaches-pin{
  position:relative;
  background:#FF7800;
  min-height:100vh;
  min-height:100svh;
}
.d-sec.d-coaches.d-coaches-sticky{
  position:sticky;
  top:0;
  height:100vh;
  height:100svh;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:#FF7800;
  color:#111111;
  padding:0 var(--pad);
  padding-top:calc(var(--head-h, 72px) + 8px);
  padding-bottom:clamp(16px, 3vh, 32px);
}
.d-coaches-sticky .d-center{
  flex:0 0 auto;
  margin:0 0 clamp(12px, 2vh, 24px);
  text-align:left;
}
.d-coaches-sticky .d-h2{margin:0}

/* Override the old grid / phone-stack layout. */
.d-co-hscroll{
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
  width:100%;
}
.d-co-track{
  display:flex;
  align-items:stretch;
  gap:clamp(16px, 2.2vw, 28px);
  height:100%;
  width:max-content;
  will-change:transform;
  transform:translate3d(0,0,0);
}
.d-coaches-sticky .d-coach{
  position:relative;
  left:auto;
  top:auto;
  flex:0 0 auto;
  width:min(78vw, 420px);
  max-width:none;
  height:100%;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  background:#fff;
  color:#111111;
  border-radius:var(--r, 24px);
  overflow:hidden;
  box-shadow:0 10px 28px rgba(0,0,0,.12);
  transform:none;
  opacity:1;
  z-index:auto;
  touch-action:auto;
  user-select:auto;
}
.d-coaches-sticky .d-coach[data-m],
.d-coaches-sticky .d-coach[data-m].m-in{
  opacity:1;
  transform:none;
  transition:none;
}
.d-coaches-sticky .d-coach-ph,
.d-coaches-sticky .d-coach-ph.has-photo{
  flex:1 1 auto;
  min-height:0;
  width:100%;
  aspect-ratio:auto;
  height:auto;
  margin:0;
  border-radius:0;
}
.d-coaches-sticky .d-coach-ph.has-photo img{
  object-fit:cover;
  object-position:50% 12%;
  pointer-events:none;
}
.d-coaches-sticky .d-coach h3{
  flex:0 0 auto;
  font-size:clamp(20px, 2.2vw, 28px);
  line-height:1.15;
  margin:0;
  padding:14px 16px 0;
  text-align:left;
  background:#fff;
  color:#111111;
}
.d-coaches-sticky .d-role{
  flex:0 0 auto;
  margin:0;
  padding:4px 16px 16px;
  text-align:left;
  background:#fff;
  color:#003CD5;
  font-size:clamp(14px, 1.4vw, 17px);
}
.d-coaches-sticky .d-co-ui{display:none}

@media (min-width:900px){
  .d-coaches-sticky .d-coach{width:min(36vw, 440px)}
}

/* JS-fixed pin fallback (Lenis transform can break position:sticky). */
.d-coaches-pin.is-fixed .d-sec.d-coaches.d-coaches-sticky{
  position:fixed;
  inset:0 auto auto 0;
  width:100%;
}
.d-coaches-pin.is-done .d-sec.d-coaches.d-coaches-sticky{
  position:absolute;
  top:auto;
  bottom:0;
  left:0;
  width:100%;
}

/* Reduced motion: no pin, a normal swipeable row in a 100vh section. */
@media (prefers-reduced-motion: reduce){
  .d-coaches-pin{height:auto !important; min-height:100vh; min-height:100svh}
  .d-sec.d-coaches.d-coaches-sticky{
    position:relative !important;
    inset:auto !important;
    width:auto !important;
    height:100vh;
    height:100svh;
  }
  .d-co-hscroll{
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;
    overscroll-behavior-x:contain;
  }
  .d-co-track{
    transform:none !important;
    will-change:auto;
    padding-right:var(--pad);
  }
  .d-coaches-sticky .d-coach{scroll-snap-align:start}
}


/* v2 bios: title, years, compact credential list, optional More. */
.d-coaches-sticky .d-coach-bio{
  flex:0 1 auto;
  max-height:48%;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  background:#fff;
  padding:12px 16px 14px;
  color:#111111;
}
.d-coaches-sticky .d-coach-ph,
.d-coaches-sticky .d-coach-ph.has-photo{
  flex:1 1 52%;
  min-height:38%;
}
.d-coaches-sticky .d-coach h3{
  padding:0;
}
.d-coaches-sticky .d-role{
  padding:2px 0 0;
}
.d-coach-years{
  margin:2px 0 8px;
  font-size:clamp(12px, 1.2vw, 14px);
  line-height:1.3;
  color:#333333;
}
.d-coach-creds{
  margin:0;
  padding:0 0 0 1.15em;
  font-size:clamp(12px, 1.15vw, 14px);
  line-height:1.35;
  color:#111111;
}
.d-coach-creds li{margin:0 0 4px;padding:0}
.d-coach-more{
  display:flex;
  flex-direction:column;
  margin:6px 0 0;
}
.d-coach-more summary,
.d-coach-more-btn{
  align-self:flex-start;
  cursor:pointer;
  color:#003CD5;
  font-size:clamp(12px, 1.15vw, 14px);
  font-weight:600;
  line-height:1.35;
  list-style:none;
  text-decoration:underline;
  text-underline-offset:2px;
  background:none;
  border:0;
  padding:0;
  margin:0;
  font-family:inherit;
}
.d-coach-more summary::-webkit-details-marker{display:none}
.d-coach-more summary::marker{content:""}
.d-coach-less-lab{display:none}
.d-coach-more[open] .d-coach-more-lab{display:none}
.d-coach-more[open] .d-coach-less-lab{display:inline}
.d-coach-more[open] summary{
  order:2;
  margin-top:6px;
  margin-bottom:0;
}
.d-coach-more[open] .d-coach-creds{
  order:1;
  padding-left:1.15em;
  margin:0;
}

/* Clear the mobile sticky Register button so "More" stays tappable. */
@media (max-width:1023px){
  .d-sec.d-coaches.d-coaches-sticky{
    padding-bottom:calc(80px + env(safe-area-inset-bottom,0px));
  }
}
