/* Applied Solutions framing, preserving the Services artwork and card styles. */
body.sv-page {
  background: #eaf2ff url("../images/sensory-strategies/20260929/page-background.webp") center top / 100% 100% no-repeat;
}

.sv-main {
  --sv-gutter: clamp(24px, 4.8cqw, 76px);
  --sv-card-min: 0px;
  container-type: inline-size;
  width: min(90%, 1600px);
  margin-inline: auto;
  padding-top: calc(var(--detail-header-space, 112px) + 24px);
  padding-bottom: 48px;
}

.sv-main .sv-scene {
  --sv-title: clamp(32px, 3.5cqw, 56px);
  min-height: 42cqw;
  margin: 0 0 2.4cqw;
  border-radius: clamp(20px, 2.6cqw, 40px);
  overflow: hidden;
  background: #f8fbff;
  box-shadow: 0 12px 42px #698fc014;
  scroll-margin-top: calc(var(--detail-header-space, 112px) + 24px);
}

.sv-main .sv-scene-2 { --sv-title: clamp(36px, 3.9cqw, 64px); }
.sv-main .sv-scene-8 { --sv-title: clamp(28px, 2.8cqw, 45px); }
.sv-main .sv-content {
  min-height: 42cqw;
  padding: 4cqw var(--sv-gutter);
}
.sv-main .sv-content > .sv-copy {
  width: 39%;
  margin: 0 0 3cqw;
}
.sv-main .sv-content:has(> .sv-floating) > .sv-copy { margin-bottom: 5.6cqw; }
.sv-main .sv-cards { --cards-width: 100%; gap: 1.2cqw; }
.sv-main .sv-card {
  padding: 1.6cqw 1.1cqw;
  border-radius: clamp(10px, 1cqw, 16px);
}
.sv-main .sv-icon { width: 5.2cqw; height: 5.2cqw; margin-bottom: 1.1cqw; }
.sv-main .sv-floating { row-gap: 4.2cqw; }
.sv-main .sv-floating .sv-card { padding-top: 3.4cqw; }
.sv-main .sv-floating .sv-icon { top: -2.6cqw; }
.sv-main .sv-card h3::after { width: 2.4cqw; margin-top: 1cqw; }
.sv-main .sv-flow { gap: 2.4cqw; }
.sv-main .sv-flow > .sv-card:not(:last-child)::after { top: 3.6cqw; right: -2.25cqw; font-size: 2cqw; }
.sv-main .sv-scene-4 .sv-card h3 { min-height: 2.8cqw; }
.sv-main .sv-palette { width: 45%; gap: 4cqw 1.2cqw; }
.sv-main .sv-summary ul { margin-top: 1cqw; }
.sv-main .sv-lead-icon { gap: 1.2cqw; }
.sv-main .sv-lead-icon .sv-icon { width: 4.6cqw; height: 4.6cqw; margin: 0; }
.sv-main .sv-outcomes { width: 39%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2cqw; margin-top: 0; }
.sv-main .sv-outcomes .sv-card { padding: 0; }
.sv-main .sv-scene-12 .sv-lead::after,
.sv-main .sv-scene-14 .sv-eyebrow::after { width: 4cqw; margin-block: 2cqw; }

@media (min-width: 1000px) {
  /* Keep the curved light panel behind the copy as content determines height. */
  .sv-main .sv-backdrop { object-position: left center; }
  html body.sv-page #main#main .sv-scene .sv-heading { margin-bottom: 1.5cqw !important; }
  html body.sv-page #main#main .sv-scene .sv-eyebrow {
    font-size: clamp(11px, 1.08cqw, 17px) !important;
    margin-bottom: 1.4cqw !important;
  }
  html body.sv-page #main#main .sv-category { font-size: clamp(12px, 1.2cqw, 19px) !important; margin-bottom: .8cqw; }
  html body.sv-page #main#main .sv-scene .sv-lead {
    font-size: clamp(20px, 1.75cqw, 28px) !important;
    margin-bottom: 1.4cqw;
  }
  html body.sv-page #main#main .sv-scene .sv-body { font-size: clamp(15px, 1.25cqw, 20px) !important; }
  html body.sv-page #main#main .sv-scene .sv-card h3 {
    font-size: clamp(14px, 1.4cqw, 22px) !important;
    margin-bottom: .9cqw !important;
  }
  html body.sv-page #main#main .sv-scene .sv-card p { font-size: clamp(12px, 1.12cqw, 18px) !important; }
  html body.sv-page #main#main .sv-scene .sv-icon .ph { font-size: 3.3cqw !important; }
  html body.sv-page #main#main .sv-summary ul li {
    gap: .65cqw;
    padding: .5cqw 0;
    font-size: clamp(12px, 1.05cqw, 17px) !important;
  }
  html body.sv-page #main#main .sv-summary ul .ph { font-size: 1.5cqw !important; }
}

@media (min-width: 1000px) and (max-width: 1199px) {
  .sv-main { --sv-gutter: 28px; }
  .sv-main .sv-scene-2 { --sv-title: 36px; }
  .sv-main .sv-scene-4 .sv-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sv-main .sv-palette { grid-template-columns: repeat(2, minmax(0, 1fr)); width: 40%; row-gap: 48px; }
  .sv-main .sv-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
  .sv-main .sv-flow > .sv-card:not(:last-child)::after { display: none; }
}

@media (width < 1000px) {
  .sv-main {
    --sv-gutter: 28px;
    width: calc(100% - 40px);
    padding-top: calc(var(--detail-header-space, 72px) + 20px);
  }
  .sv-main .sv-scene {
    --sv-title: clamp(34px, 5.7vw, 56px);
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: auto;
    margin-bottom: 24px;
    border-radius: 24px;
  }
  .sv-main .sv-picture { position: relative; inset: auto; z-index: auto; }
  .sv-main .sv-backdrop { height: auto; max-height: none; aspect-ratio: 16 / 10; object-position: center; }
  .sv-main .sv-content { min-height: 0; padding: 28px var(--sv-gutter) 36px; }
  .sv-main .sv-content > .sv-copy,
  .sv-main .sv-content:has(> .sv-floating) > .sv-copy { width: 100%; max-width: 700px; margin: 0 0 28px; }
  html body.sv-page #main#main .sv-eyebrow { font-size: 11px !important; margin-bottom: 20px !important; }
  html body.sv-page #main#main .sv-heading { margin-bottom: 20px !important; }
  html body.sv-page #main#main .sv-lead { font-size: 23px !important; margin-bottom: 18px; }
  html body.sv-page #main#main .sv-body { font-size: 17px !important; line-height: 1.5 !important; }
  .sv-main .sv-cards { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 0; }
  .sv-main .sv-card { padding: 24px 16px; border-radius: 12px; }
  .sv-main .sv-icon { width: 68px; height: 68px; margin-bottom: 16px; }
  .sv-main .sv-floating { margin-top: 34px; row-gap: 54px; }
  .sv-main .sv-floating .sv-card { padding-top: 45px; }
  .sv-main .sv-floating .sv-icon { top: -34px; }
  .sv-main .sv-card h3::after { width: 32px; margin-top: 14px; }
  .sv-main .sv-lead-icon { gap: 16px; }
  .sv-main .sv-lead-icon .sv-icon { width: 58px; height: 58px; margin: 0; }
  .sv-main .sv-summary ul { margin-top: 18px; }
  .sv-main .sv-outcomes .sv-card { padding: 14px 0; }
  .sv-main .sv-scene-12 .sv-lead::after,
  .sv-main .sv-scene-14 .sv-eyebrow::after { width: 54px; margin-block: 24px; }
}

@media (max-width: 599px) {
  .sv-main { --sv-gutter: 22px; width: calc(100% - 28px); padding-bottom: 16px; }
  .sv-main .sv-scene { --sv-title: clamp(30px, 8.2vw, 46px); border-radius: 20px; margin-bottom: 20px; }
  .sv-main .sv-backdrop { aspect-ratio: 1.3; }
  html body.sv-page #main#main .sv-lead { font-size: 21px !important; }
  html body.sv-page #main#main .sv-body { font-size: 16px !important; }
  .sv-main .sv-cards { gap: 16px 12px; }
  .sv-main .sv-card { padding: 20px 12px; }
  .sv-main .sv-icon { width: 58px; height: 58px; }
  .sv-main .sv-floating { margin-top: 29px; row-gap: 45px; }
  .sv-main .sv-floating .sv-icon { top: -29px; }
  .sv-main .sv-floating .sv-card { padding-top: 39px; }
  .sv-main .sv-summary,
  .sv-main .sv-flow { grid-template-columns: 1fr; gap: 18px; }
  .sv-main .sv-summary { row-gap: 48px; }
  .sv-main .sv-flow .sv-card { padding: 24px; }
  .sv-main .sv-summary .sv-card { padding: 40px 24px 24px; }
  html body.sv-page #main#main .sv-outcomes h3 { font-size: 17px !important; }
  html body.sv-page #main#main .sv-outcomes p { font-size: 14px !important; }
}

@media (max-width: 379px) {
  .sv-main .sv-cards { grid-template-columns: 1fr; }
}
