/* Physical Therapy source grid: additive spacing and intrinsic-photo refinements.
   Load after physical-source.css, only on body[data-riot-layout~="physical"].
   Source content, palette, dividers, booking URLs and accordion state are untouched. */

body[data-riot-layout~="physical"] #page.physical-source .physical-section:not(.physical-hero) {
  min-height: 0;
}

body[data-riot-layout~="physical"] #page.physical-source .physical-section:not(.physical-hero) .physical-content-wrapper {
  padding: clamp(2rem, 4vw, 4rem) 0;
}

body[data-riot-layout~="physical"] #page.physical-source .physical-section .fluid-engine {
  /* Sized content tracks replace clipping; this does not affect footer grids. */
  overflow: visible;
}

body[data-riot-layout~="physical"] #page.physical-source .physical-block--text .physical-block-body,
body[data-riot-layout~="physical"] #page.physical-source .physical-block--image .physical-block-body,
body[data-riot-layout~="physical"] #page.physical-source .physical-block--action .physical-block-body,
body[data-riot-layout~="physical"] #page.physical-source .physical-block--faq .physical-block-body {
  height: auto;
}

body[data-riot-layout~="physical"] #page.physical-source .physical-block--image .physical-photo {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

body[data-riot-layout~="physical"] #page.physical-source .physical-section .sqs-html-content > :is(h3, h4) {
  margin-bottom: 1rem;
}

/* Keep the centered, photo-backed hero, with fewer unnecessary heading lines. */
body[data-riot-layout~="physical"] #page.physical-source .physical-hero {
  min-height: clamp(24rem, 38vw, 34rem);
}

body[data-riot-layout~="physical"] #page.physical-source .physical-hero h2 {
  font-size: clamp(3.5rem, 5.6vw, 5.5rem);
  margin-top: 1.25rem;
  margin-bottom: 0;
}

@media (min-width: 768px) {
  body[data-riot-layout~="physical"] #page.physical-source .physical-section:not(.physical-hero) .fluid-engine {
    width: min(75rem, calc(100% - 2 * var(--sqs-site-gutter, 3vw)));
    margin-inline: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: auto;
    column-gap: clamp(2rem, 5vw, 5rem);
    row-gap: 1.25rem;
    align-items: start;
  }

  body[data-riot-layout~="physical"] #page.physical-source .physical-hero .fe-6accd8be2428f82efb25f203 {
    width: min(60rem, calc(100% - 2 * var(--sqs-site-gutter, 3vw)));
    margin-inline: auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 0;
  }

  body[data-riot-layout~="physical"] #page.physical-source .fe-block-ad6aa3d01f60b63e4a48 {
    grid-area: auto;
  }

  body[data-riot-layout~="physical"] #page.physical-source .physical-section .physical-block--image {
    align-self: center;
  }

  body[data-riot-layout~="physical"] #page.physical-source .physical-section .physical-block--action {
    width: 100%;
    max-width: 20rem;
    justify-self: start;
  }

  /* One-on-one care: text and CTA left, complete landscape image right. */
  body[data-riot-layout~="physical"] #page.physical-source .fe-block-366fb96f012c16da0312 {
    grid-area: 1 / 1 / 2 / 2;
  }

  body[data-riot-layout~="physical"] #page.physical-source .fe-block-b3ac544c8361e25b0118 {
    grid-area: 2 / 1 / 3 / 2;
  }

  body[data-riot-layout~="physical"] #page.physical-source .fe-block-e5a320fafe8b28e3eb83 {
    grid-area: 1 / 2 / 3 / 3;
  }

  /* Who it's for: retain the pale source shape behind the natural-height pair. */
  body[data-riot-layout~="physical"] #page.physical-source .fe-6accd8be2428f82efb25f20b {
    padding: clamp(1.5rem, 3vw, 3rem);
  }

  body[data-riot-layout~="physical"] #page.physical-source .fe-block-6ef0d6d68bfd869d43ba {
    position: absolute;
    inset: 0;
    grid-area: auto;
    width: 100%;
    height: 100%;
  }

  body[data-riot-layout~="physical"] #page.physical-source .fe-block-678cc1c382068480d610 {
    grid-area: 1 / 1 / 3 / 2;
  }

  body[data-riot-layout~="physical"] #page.physical-source .fe-block-8223baf2e92fad1a9486 {
    grid-area: 1 / 2 / 2 / 3;
  }

  body[data-riot-layout~="physical"] #page.physical-source .fe-block-8afd2bb02da7b1940a0f {
    grid-area: 2 / 2 / 3 / 3;
    justify-self: center;
  }

  /* Meet your PT: separate heading and biography tracks cannot clash. */
  body[data-riot-layout~="physical"] #page.physical-source .fe-block-f7efac9b807376e7f900 {
    grid-area: 1 / 1 / 2 / 2;
  }

  body[data-riot-layout~="physical"] #page.physical-source .fe-block-75fe59cf5c96e297789f {
    grid-area: 2 / 1 / 3 / 2;
  }

  body[data-riot-layout~="physical"] #page.physical-source .fe-block-573d9025c5760db0a1dc {
    grid-area: 1 / 2 / 3 / 3;
  }

  /* What to expect: keep the source two-column stages and full-width final stage. */
  body[data-riot-layout~="physical"] #page.physical-source .fe-6accd8be2428f82efb25f213 {
    max-width: 68rem;
    row-gap: 2rem;
  }

  body[data-riot-layout~="physical"] #page.physical-source .fe-block-0b3eaef739fcccf30aa5 {
    grid-area: 1 / 1 / 2 / 3;
  }

  body[data-riot-layout~="physical"] #page.physical-source .fe-block-6f79f3c786917f327bdc {
    grid-area: 2 / 1 / 3 / 2;
  }

  body[data-riot-layout~="physical"] #page.physical-source .fe-block-d6543827cfe1870af58b {
    grid-area: 2 / 2 / 3 / 3;
  }

  body[data-riot-layout~="physical"] #page.physical-source .fe-block-aaf7a8d32a04974900a9 {
    grid-area: 3 / 1 / 4 / 3;
    max-width: 52rem;
    justify-self: center;
  }

  /* Pricing: every existing line and launch offer stays in natural text tracks. */
  body[data-riot-layout~="physical"] #page.physical-source .fe-block-ed2902faa6ec2f39fd7a {
    grid-area: 1 / 1 / 2 / 2;
  }

  body[data-riot-layout~="physical"] #page.physical-source .fe-block-c68f216f67e95b1ccedf {
    grid-area: 2 / 1 / 3 / 2;
  }

  body[data-riot-layout~="physical"] #page.physical-source .fe-block-a29dd96d2899ff1dd0b0 {
    grid-area: 3 / 1 / 4 / 2;
  }

  body[data-riot-layout~="physical"] #page.physical-source .fe-block-3c9546f19933a111601c {
    grid-area: 4 / 1 / 5 / 2;
  }

  body[data-riot-layout~="physical"] #page.physical-source .fe-block-f0eeef127560441af8ff {
    grid-area: 1 / 2 / 5 / 3;
  }

  /* FAQ grows with expanded answers instead of occupying a fixed 66vh section. */
  body[data-riot-layout~="physical"] #page.physical-source .fe-block-be2e60d5dede69c655ad {
    grid-area: 1 / 1 / 2 / 2;
  }

  body[data-riot-layout~="physical"] #page.physical-source .fe-block-b47dbd7449e384625382 {
    grid-area: 1 / 2 / 2 / 3;
  }

  body[data-riot-layout~="physical"] #page.physical-source .fe-6accd8be2428f82efb25f21f {
    max-width: 56rem;
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-riot-layout~="physical"] #page.physical-source .fe-block-4e44a5d0fe2d3a1eba52 {
    grid-area: 1 / 1 / 2 / 2;
  }

  body[data-riot-layout~="physical"] #page.physical-source .fe-block-86cae9c0fa18ac34eaa9 {
    grid-area: 2 / 1 / 3 / 2;
  }
}

@media (max-width: 767px) {
  /* Retain existing source mobile block order and full-width flow. */
  body[data-riot-layout~="physical"] #page.physical-source .physical-section .fluid-engine {
    gap: 1.25rem;
  }

  body[data-riot-layout~="physical"] #page.physical-source .physical-hero {
    min-height: 0;
    /* Existing header-height padding is retained for the native overlay header. */
  }

  body[data-riot-layout~="physical"] #page.physical-source .physical-hero .physical-content-wrapper {
    padding: 2rem 0 2.5rem;
  }

  body[data-riot-layout~="physical"] #page.physical-source .physical-hero h2 {
    font-size: clamp(2.15rem, 8.5vw, 3.75rem);
  }

  body[data-riot-layout~="physical"] #page.physical-source .fe-6accd8be2428f82efb25f20b {
    padding: 1.5rem 6vw;
  }

  body[data-riot-layout~="physical"] #page.physical-source .fe-block-6ef0d6d68bfd869d43ba {
    inset: 0 3vw;
  }

  body[data-riot-layout~="physical"] #page.physical-source .physical-section .sqs-html-content ul {
    padding-left: 1.5rem;
  }

  body[data-riot-layout~="physical"] #page.physical-source .physical-booking {
    padding-inline: 1rem;
    min-height: 48px;
  }
}
