/* Wellness source-grid spacing only. Load after the restored source CSS.
   No content, media sources, section themes, divider artwork or booking changes. */

body[data-riot-layout~="wellness"] #page.wellness-original .page-section {
  min-height: 0 !important;
}

body[data-riot-layout~="wellness"] #page.wellness-original .page-section > .content-wrapper {
  padding-top: clamp(32px, 4vw, 64px) !important;
  padding-bottom: clamp(32px, 4vw, 64px) !important;
}

/* These are the nine existing Wellness grids, not a generic site-wide FE reset. */
body[data-riot-layout~="wellness"] #page.wellness-original :is(
  .fe-6acd16e194fda772617b7d97,
  .fe-6acd16e194fda772617b7d9b,
  .fe-6acd18b1af5b2d5b31a2a46b,
  .fe-6acd16e194fda772617b7d9f,
  .fe-6acd389d3cae2f36440183a2,
  .fe-6acd38b35911244ac33a20de,
  .fe-6acd6d31f8555f715b5df02c,
  .fe-6acd16e194fda772617b7da3,
  .fe-6acd6d898eadb8277c928ce9
) {
  width: calc(100% - 12vw);
  max-width: 1120px;
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: none;
  grid-auto-rows: auto;
  gap: 16px;
  align-items: start;
  overflow: visible;
}

body[data-riot-layout~="wellness"] #page.wellness-original .fluid-engine > .fe-block {
  min-width: 0;
  min-height: 0;
  align-self: start;
}

body[data-riot-layout~="wellness"] #page.wellness-original .fluid-engine > .fe-block > .sqs-block {
  height: auto;
  min-width: 0;
  justify-content: flex-start;
}

/* Keep every image's intrinsic landscape / portrait proportion. The saved
   208px / 468px / 248px component sizes otherwise survive a grid resize. */
body[data-riot-layout~="wellness"] #page.wellness-original .sqs-block-image :is(
  .sqs-block-content,
  .image-block-outer-wrapper,
  .sqs-image,
  .sqs-image-content,
  .js-content-mode-element-wrapper,
  .content-fit,
  .content-fill
) {
  width: 100% !important;
  height: auto !important;
}

body[data-riot-layout~="wellness"] #page.wellness-original .sqs-block-image :is(.content-fit, .content-fill) {
  position: relative !important;
  inset: auto !important;
}

body[data-riot-layout~="wellness"] #page.wellness-original .sqs-block-image .design-layout-fluid .fluid-image-container :is(.content-fit, .content-fill) img {
  position: static !important;
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  object-fit: contain !important;
}

/* Actual portrait photographs only; do not give landscape photos this cap. */
body[data-riot-layout~="wellness"] #page.wellness-original :is(
  #block-ecdd65c2399cee2b2772,
  #block-b0d51c37dca321c16923,
  #block-06b4805b19e4e18121d9
) {
  max-width: 360px;
  margin-inline: auto;
}

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

body[data-riot-layout~="wellness"] #page.wellness-original .sqs-block-button-container {
  max-width: 100%;
}

/* Area names identify existing blocks; no elements are added or moved in DOM. */
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-4e1cb748a7af9650dd6a { grid-area: hero-title; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-04f0ee9b74e275a52953 { grid-area: hero-copy; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-77cb4fd5332f2eb5a2ad { grid-area: hero-cta; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-e7dcc5925de7da9de01f { grid-area: team-photo; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-68bcc1d123c844707fbc { grid-area: team-copy; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-9d02233f8ff41e33d892 { grid-area: membership-copy; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-a2eb155712aa4816ee63 { grid-area: membership-photo; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-b7c057f24091a4c14d3a { grid-area: membership-cta; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-8489fc92a6f1d86cfe24 { grid-area: massage-photo; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-51bf872ce159ae3e9194 { grid-area: massage-copy; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-f02450572e65b8b4516b { grid-area: massage-details; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-20be060783a26a143fcc { grid-area: massage-book; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-87e1890124e0a02923c5 { grid-area: pt-photo; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-bb3afadee51f7f373389 { grid-area: pt-copy; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-aaa29ff561fcf2ba456a { grid-area: pt-details; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-ff4e5527e9ca10e5ddbd { grid-area: acupuncture-photo; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-bf144abc3dac0d78dac7 { grid-area: acupuncture-copy; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-6d28161b8a3183065752 { grid-area: acupuncture-details; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-7e3022ba5da3adba542b { grid-area: acupuncture-book; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-ecdd65c2399cee2b2772 { grid-area: health-photo; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-fdc94f2b8d964691ac4f { grid-area: health-copy; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-4e0ca64eefba38e2546c { grid-area: health-details; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-539ed2218f597b30597f { grid-area: health-book; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-b0d51c37dca321c16923 { grid-area: nutrition-photo; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-43558e0ad11239a160f3 { grid-area: nutrition-copy; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-212cab89fff0a941f022 { grid-area: nutrition-details; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-06b4805b19e4e18121d9 { grid-area: pilates-photo; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-a52453c0864a48843878 { grid-area: pilates-copy; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-a37fee516ec72dbdd0c6 { grid-area: pilates-details; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-cb9d19c80d1ae140f51e { grid-area: pilates-book; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-b333d79c413391685718 { grid-area: training-photo; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-dca874624e92b42fbeda { grid-area: training-copy; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-3194c80e72335352a21b { grid-area: training-details; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-79aa3c4ada28a643f540 { grid-area: training-book; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-8f1f786aa37d4bcdd899 { grid-area: contrast-photo; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-37c54a7fc6937a3e48ef { grid-area: contrast-copy; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-6c0d910bb3f868be7eef { grid-area: contrast-details; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-78e65bfe5c41a2c56825 { grid-area: guidance; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-e99bdab050436f6f1063 { grid-area: faq-photo; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-4c0cd60c3f10cb1cfb94 { grid-area: faq-copy; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-f40a4b503b5d3a625d3d { grid-area: faq-items; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-88c355677d33c5263f53 { grid-area: closing-copy; }
body[data-riot-layout~="wellness"] #page.wellness-original .fe-block-a9b07ff0510604c41142 { grid-area: closing-cta; }

body[data-riot-layout~="wellness"] #page.wellness-original .fe-6acd16e194fda772617b7d97 {
  max-width: 960px;
  grid-template-areas: "hero-title" "hero-copy" "hero-cta";
  justify-items: center;
  gap: 20px;
}

body[data-riot-layout~="wellness"] #page.wellness-original .fe-6acd16e194fda772617b7d9b {
  grid-template-areas: "team-photo" "team-copy";
  gap: 24px;
}

body[data-riot-layout~="wellness"] #page.wellness-original .fe-6acd18b1af5b2d5b31a2a46b {
  grid-template-areas: "membership-copy" "membership-photo" "membership-cta";
  gap: 24px;
}

/* Preserve the source phone sequence: each service's photo, copy, then CTAs. */
body[data-riot-layout~="wellness"] #page.wellness-original .fe-6acd16e194fda772617b7d9f {
  grid-template-areas:
    "massage-photo" "massage-copy" "massage-details" "massage-book"
    "."
    "pt-photo" "pt-copy" "pt-details"
    "."
    "acupuncture-photo" "acupuncture-copy" "acupuncture-details" "acupuncture-book";
}

body[data-riot-layout~="wellness"] #page.wellness-original .fe-6acd389d3cae2f36440183a2 {
  grid-template-areas:
    "health-photo" "health-copy" "health-details" "health-book"
    "."
    "nutrition-photo" "nutrition-copy" "nutrition-details"
    "."
    "pilates-photo" "pilates-copy" "pilates-details" "pilates-book";
}

body[data-riot-layout~="wellness"] #page.wellness-original .fe-6acd38b35911244ac33a20de {
  grid-template-areas:
    "training-photo" "training-copy" "training-details" "training-book"
    "."
    "contrast-photo" "contrast-copy" "contrast-details";
}

body[data-riot-layout~="wellness"] #page.wellness-original .fe-6acd6d31f8555f715b5df02c {
  max-width: 960px;
  grid-template-areas: "guidance";
}

body[data-riot-layout~="wellness"] #page.wellness-original .fe-6acd16e194fda772617b7da3 {
  grid-template-areas: "faq-photo" "faq-copy" "faq-items";
  gap: 24px;
}

body[data-riot-layout~="wellness"] #page.wellness-original .fe-6acd6d898eadb8277c928ce9 {
  max-width: 960px;
  grid-template-areas: "closing-copy" "closing-cta";
}

/* Exact heading fixes, rather than changing the page's font family or palette. */
body[data-riot-layout~="wellness"] #page.wellness-original #block-51bf872ce159ae3e9194 h2 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  margin-bottom: 24px;
}

body[data-riot-layout~="wellness"] #page.wellness-original #find-your-person {
  scroll-margin-top: calc(var(--header-height, 100px) + 16px);
}

body[data-riot-layout~="wellness"] #page.wellness-original #block-f40a4b503b5d3a625d3d {
  --accordion-item-padding-top: 18px;
  --accordion-item-padding-bottom: 18px;
  --accordion-description-padding-bottom: 24px;
}

body[data-riot-layout~="wellness"] #page.wellness-original #block-f40a4b503b5d3a625d3d .accordion-item__click-target {
  min-height: 44px;
  gap: 12px;
}

body[data-riot-layout~="wellness"] #page.wellness-original #block-f40a4b503b5d3a625d3d .accordion-item__title {
  min-width: 0;
  overflow: visible;
}

body[data-riot-layout~="wellness"] #page.wellness-original #block-f40a4b503b5d3a625d3d .accordion-item__description {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

@media (min-width: 900px) {
  /* Balanced pairs retain the source's alternating left/right presentation. */
  body[data-riot-layout~="wellness"] #page.wellness-original :is(
    .fe-6acd16e194fda772617b7d9b,
    .fe-6acd18b1af5b2d5b31a2a46b,
    .fe-6acd16e194fda772617b7da3
  ) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(32px, 4vw, 64px);
    grid-template-rows: max-content auto;
  }

  body[data-riot-layout~="wellness"] #page.wellness-original .fe-6acd16e194fda772617b7d9b {
    grid-template-areas: "team-copy team-photo";
    grid-template-rows: auto;
    align-items: center;
  }

  body[data-riot-layout~="wellness"] #page.wellness-original .fe-6acd16e194fda772617b7d9b > .fe-block {
    align-self: center;
  }

  body[data-riot-layout~="wellness"] #page.wellness-original .fe-6acd18b1af5b2d5b31a2a46b {
    grid-template-areas:
      "membership-copy membership-photo"
      "membership-cta membership-photo";
  }

  body[data-riot-layout~="wellness"] #page.wellness-original .fe-6acd16e194fda772617b7da3 {
    grid-template-areas:
      "faq-photo faq-copy"
      "faq-photo faq-items";
  }

  body[data-riot-layout~="wellness"] #page.wellness-original :is(
    .fe-6acd16e194fda772617b7d9f,
    .fe-6acd389d3cae2f36440183a2,
    .fe-6acd38b35911244ac33a20de
  ) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    column-gap: 24px;
    row-gap: 16px;
    grid-template-rows: max-content auto 24px max-content auto 24px max-content auto;
  }

  body[data-riot-layout~="wellness"] #page.wellness-original .fe-6acd16e194fda772617b7d9f {
    grid-template-areas:
      "massage-copy massage-copy massage-photo massage-photo"
      "massage-details massage-book massage-photo massage-photo"
      ". . . ."
      "pt-photo pt-photo pt-copy pt-copy"
      "pt-photo pt-photo pt-details pt-details"
      ". . . ."
      "acupuncture-copy acupuncture-copy acupuncture-photo acupuncture-photo"
      "acupuncture-details acupuncture-book acupuncture-photo acupuncture-photo";
  }

  /* The free-call label needs the full text column; preserve its complete text. */
  body[data-riot-layout~="wellness"] #page.wellness-original .fe-6acd389d3cae2f36440183a2 {
    grid-template-rows: max-content max-content auto 24px max-content auto 24px max-content auto;
    grid-template-areas:
      "health-copy health-copy health-photo health-photo"
      "health-details health-details health-photo health-photo"
      "health-book health-book health-photo health-photo"
      ". . . ."
      "nutrition-photo nutrition-photo nutrition-copy nutrition-copy"
      "nutrition-photo nutrition-photo nutrition-details nutrition-details"
      ". . . ."
      "pilates-copy pilates-copy pilates-photo pilates-photo"
      "pilates-details pilates-book pilates-photo pilates-photo";
  }

  body[data-riot-layout~="wellness"] #page.wellness-original .fe-6acd38b35911244ac33a20de {
    grid-template-rows: max-content auto 24px max-content auto;
    grid-template-areas:
      "training-copy training-copy training-photo training-photo"
      "training-details training-book training-photo training-photo"
      ". . . ."
      "contrast-photo contrast-photo contrast-copy contrast-copy"
      "contrast-photo contrast-photo contrast-details contrast-details";
  }
}

@media (max-width: 899px) {
  body[data-riot-layout~="wellness"] #page.wellness-original :is(
    #block-ecdd65c2399cee2b2772,
    #block-b0d51c37dca321c16923,
    #block-06b4805b19e4e18121d9
  ) {
    max-width: 320px;
  }

  body[data-riot-layout~="wellness"] #page.wellness-original .sqs-block-button-container,
  body[data-riot-layout~="wellness"] #page.wellness-original .sqs-block-button-element {
    width: 100%;
  }

  body[data-riot-layout~="wellness"] #page.wellness-original #block-4e1cb748a7af9650dd6a h2 {
    font-size: clamp(40px, 10.5vw, 64px);
    line-height: 1.05;
  }

  body[data-riot-layout~="wellness"] #page.wellness-original #block-51bf872ce159ae3e9194 h2 {
    font-size: clamp(38px, 10vw, 54px);
  }

  body[data-riot-layout~="wellness"] #page.wellness-original .sqs-html-content h3 {
    font-size: clamp(25px, 6.4vw, 32px);
  }

  /* Primary booking links embedded in source paragraphs remain in place. */
  body[data-riot-layout~="wellness"] #page.wellness-original :is(
    #block-bb3afadee51f7f373389,
    #block-43558e0ad11239a160f3,
    #block-37c54a7fc6937a3e48ef
  ) .sqs-html-content a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
  }
}

/* A roomy line box prevents the source uppercase face from touching hero copy. */
body[data-riot-layout~="wellness"] #page.wellness-original #block-4e1cb748a7af9650dd6a h2 {
  line-height: 1.12;
  margin-top: 12px;
  margin-bottom: 20px;
}

@media (min-width: 900px) {
  /* Auto content tracks avoid max-content photo-span inflation of CTA gaps. */
  body[data-riot-layout~="wellness"] #page.wellness-original .fe-6acd16e194fda772617b7d9f {
    grid-template-rows: auto auto 24px auto auto 24px auto auto;
  }
  body[data-riot-layout~="wellness"] #page.wellness-original .fe-6acd389d3cae2f36440183a2 {
    grid-template-rows: auto auto auto 24px auto auto 24px auto auto;
  }
  body[data-riot-layout~="wellness"] #page.wellness-original .fe-6acd38b35911244ac33a20de {
    grid-template-rows: auto auto 24px auto auto;
  }
}
