/* Chelsea original coaching layout — additive phone refinements, 2026-11-10.
   Load last and opt in with body[data-riot-layout~="chelsea"].
   Desktop columns, palette, section dividers, shapes and booking URLs are untouched. */

@media (max-width: 767px) {
  /* These seven source grids reserve 8–58 rows and overlap several text/CTA
     blocks. Content-sized rows remove those reservations, not any content. */
  body[data-riot-layout~="chelsea"] main :is(
    .fe-6ab2da27878a7d5a8ade5d9b,
    .fe-6aae23bcb3d74340fb4eff93,
    .fe-6ab2dbf664cf911350826cee,
    .fe-6ab2dd35cd97b51157ffb92a,
    .fe-6ab162dcb470be3d111d1fbb,
    .fe-6ab2df974e89eb73e8fe9020,
    .fe-6ab162eaef61130a68ad66f0
  ) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-auto-rows: auto;
    gap: 24px;
    padding-inline: clamp(16px, 5vw, 24px);
    box-sizing: border-box;
    overflow: visible;
  }

  body[data-riot-layout~="chelsea"] main :is(
    .fe-6ab2da27878a7d5a8ade5d9b,
    .fe-6aae23bcb3d74340fb4eff93,
    .fe-6ab2dbf664cf911350826cee,
    .fe-6ab2dd35cd97b51157ffb92a,
    .fe-6ab162dcb470be3d111d1fbb,
    .fe-6ab2df974e89eb73e8fe9020,
    .fe-6ab162eaef61130a68ad66f0
  ) > .fe-block {
    grid-area: auto;
    min-width: 0;
    min-height: 0;
    height: auto;
    align-self: start;
    margin-top: 0;
  }

  body[data-riot-layout~="chelsea"] main :is(
    .fe-6ab2da27878a7d5a8ade5d9b,
    .fe-6aae23bcb3d74340fb4eff93,
    .fe-6ab2dbf664cf911350826cee,
    .fe-6ab2dd35cd97b51157ffb92a,
    .fe-6ab162dcb470be3d111d1fbb,
    .fe-6ab2df974e89eb73e8fe9020,
    .fe-6ab162eaef61130a68ad66f0
  ) > .fe-block > .sqs-block {
    min-width: 0;
    min-height: 0;
    height: auto;
  }

  /* Retain the source header clearance at the top. Only remove the hero's
     medium-section minimum and excess bottom space on small screens. */
  body[data-riot-layout~="chelsea"] main section[data-section-id="6ab2da27b949727a6de0c74d"] {
    min-height: 0;
  }

  body[data-riot-layout~="chelsea"] main section[data-section-id="6ab2da27b949727a6de0c74d"] > .content-wrapper {
    min-height: 0;
    padding-bottom: 40px;
  }

  body[data-riot-layout~="chelsea"] #block-yui_3_17_2_1_1790106051342_13280 h2 {
    font-size: clamp(40px, 11vw, 56px);
    line-height: 1.02;
    overflow-wrap: normal;
  }

  /* The intro's source wrapper has inline zero padding. Add a modest breathing
     space without changing the section's own 6vw divider reservation. */
  body[data-riot-layout~="chelsea"] main section[data-section-id="6aae23bcb3d74340fb4eff94"] > .content-wrapper {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  /* Keep the original light-accent rectangle as a full panel behind its copy,
     image and CTA; it must not become an extra content row. */
  body[data-riot-layout~="chelsea"] main .fe-6ab2dbf664cf911350826cee {
    padding: 24px clamp(32px, 9vw, 48px);
  }

  body[data-riot-layout~="chelsea"] main .fe-6ab2dbf664cf911350826cee > .fe-block-5e08bf34bdb389e0c633 {
    position: absolute;
    inset: 0 clamp(16px, 5vw, 24px);
    height: auto;
    align-self: stretch;
    pointer-events: none;
  }

  body[data-riot-layout~="chelsea"] #block-5e08bf34bdb389e0c633 {
    height: 100%;
  }

  /* Source mobile visual order: heading, coaching, unlimited, claim, members.
     The HTML/reading order is unchanged; explicit rows retain the existing
     visual sequence while preventing package/member text from sharing rows. */
  body[data-riot-layout~="chelsea"] main .fe-6ab162dcb470be3d111d1fbb > .fe-block-6ebe883d1b2f6a5cf870 {
    grid-area: 1 / 1 / 2 / 2;
  }

  body[data-riot-layout~="chelsea"] main .fe-6ab162dcb470be3d111d1fbb > .fe-block-680b9711d89c16c508a6 {
    grid-area: 2 / 1 / 3 / 2;
  }

  body[data-riot-layout~="chelsea"] main .fe-6ab162dcb470be3d111d1fbb > .fe-block-ae744fcbae2c319c7772 {
    grid-area: 3 / 1 / 4 / 2;
  }

  body[data-riot-layout~="chelsea"] main .fe-6ab162dcb470be3d111d1fbb > .fe-block-c5e346c80fa02beea1d4 {
    grid-area: 4 / 1 / 5 / 2;
  }

  body[data-riot-layout~="chelsea"] main .fe-6ab162dcb470be3d111d1fbb > .fe-block-yui_3_17_2_1_1790106051342_130481 {
    grid-area: 5 / 1 / 6 / 2;
  }

  /* Exactly four source photos, each using its own HTML-native ratio:
     3267/4901 portrait; 1500/1000, 8192/5464, 1500/1000 landscapes.
     No logos, shape SVGs, icons, lazy-loading or media controls are targeted. */
  body[data-riot-layout~="chelsea"] :is(
    #block-194503d7724aecafce51,
    #block-67ff422819f2c56ddcb1,
    #block-ca77c996cf454cd75316,
    #block-0c094c285011feadc217
  ) :is(.sqs-block-content, .fluid-image-component-root, .fluid-image-animation-wrapper) {
    width: 100%;
    height: auto;
    min-height: 0;
  }

  body[data-riot-layout~="chelsea"] :is(
    #block-194503d7724aecafce51,
    #block-67ff422819f2c56ddcb1,
    #block-ca77c996cf454cd75316,
    #block-0c094c285011feadc217
  ) .fluid-image-container.visitor-mode {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: var(--image-component-native-aspect-ratio);
  }

  body[data-riot-layout~="chelsea"] :is(
    #block-194503d7724aecafce51,
    #block-67ff422819f2c56ddcb1,
    #block-ca77c996cf454cd75316,
    #block-0c094c285011feadc217
  ) :is(.js-content-mode-element-system_desktop, .content-fill) {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  body[data-riot-layout~="chelsea"] :is(
    #block-194503d7724aecafce51,
    #block-67ff422819f2c56ddcb1,
    #block-ca77c996cf454cd75316,
    #block-0c094c285011feadc217
  ) img[data-sqsp-image-block-image] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  /* Retain all native button colors, borders and shapes. Long CTA labels can
     wrap instead of spilling outside their touch target. No forms exist here. */
  body[data-riot-layout~="chelsea"] main .page-section .sqs-block-button-container {
    width: 100%;
    height: auto;
    min-height: 44px;
  }

  body[data-riot-layout~="chelsea"] main .page-section .sqs-block-button-element {
    box-sizing: border-box;
    min-width: 44px;
    min-height: 44px;
    max-width: 100%;
    height: auto;
    padding: 12px 18px;
    white-space: normal;
    overflow-wrap: break-word;
  }
}

@media (min-width: 768px) {
  /* The source heading spanned into the date's first row. Retain its columns. */
  body[data-riot-layout~="chelsea"] #page .fe-6ab2dd35cd97b51157ffb92a > .fe-block-2869dfe9981cd40dd10c {
    grid-row: 1 / 2;
  }
}
