/* Center every section title and size it to the hero h1
   ("Asia's Premier Basketball Camp"), using --hero-title-size so the
   size matches the fitted h1 at every width. All section titles are
   uppercase (text-transform; no effect on CJK). Longer titles may wrap
   (centered) and must not overflow at 320px. Colors and weights stay
   as they are. The hero h1 and Join line are not restyled. v2. */

:root{
  --hero-title-size: clamp(16px, calc((100vw - 48px) / 14.56), 62px);
}
@media (min-width: 800px){
  :root{
    --hero-title-size: clamp(22px, calc((100vw - 48px) / 14.56), 62px);
  }
}
@media (max-width: 799px){
  :root{
    --hero-title-size: clamp(16px, calc((100vw - 32px) / 14.56), 62px);
  }
}

.d-sec .d-h2,
.d-coaches-row .d-co-banner .d-h2,
.d-coaches-row .d-co-banner .d-h2 b,
.d-coaches-row .d-co-banner .d-h2 span,
.d-sec.d-prog .d-prog-title,
.d-sec.d-prog .d-h2#prog-h,
.d-sec.d-prog .d-h2#prog-h b,
.d-gba .d-h2,
.d-gba .d-h2 b,
.d-gba .d-h2 span,
.d-panel-txt h3,
.d-prog.is-stack .d-panel-txt h3,
[data-deck].deck-active .d-panel-txt h3,
.faq-modal-h{
  font-size: var(--hero-title-size);
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: break-word;
  text-transform: uppercase;
}

.d-sec .d-h2,
.d-coaches-row .d-co-banner,
.d-coaches-row .d-co-banner .d-h2,
.d-sec.d-prog,
.d-sec.d-prog .d-prog-title,
.d-gba .d-center,
.d-gba .d-h2,
.d-panel-txt,
.d-panel-txt h3,
.faq-modal-h{
  text-align: center;
}

@media (min-width: 900px){
  .d-gba .d-h2{
    font-size: var(--hero-title-size);
  }
  .d-panel-txt h3{
    font-size: var(--hero-title-size);
  }
}

@media (max-width: 700px){
  .d-sec.d-prog .d-prog-title,
  .d-sec.d-prog .d-h2#prog-h,
  .d-sec.d-prog .d-h2#prog-h b{
    font-size: var(--hero-title-size);
  }
}

.faq-modal-h{
  flex: 1 1 auto;
  margin-left: 44px;
}

/* Inset the coaches banner title equally so the fixed play/sound
   cluster under the header cannot cover the type, while the title
   stays visually centered. */
.d-coaches-row .d-co-banner .d-h2{
  padding-left: 104px;
  padding-right: 104px;
}
@media (max-width: 799px){
  .d-coaches-row .d-co-banner .d-h2{
    padding-left: 92px;
    padding-right: 92px;
  }
}
