/* Keep Studio's desktop design; make narrow layouts fit their actual content. */
.StudioCanvas .sd[data-s-4fd95c93-375e-4f8d-be47-912a22acb7dc] {
  min-width: 0;
}

/* Staff cards grow with their text instead of overlapping the next section. */
@media (max-width: 1200px) {
.StudioCanvas .sd[data-s-a0b8fa54-729c-4aba-a379-5ae23ebd36b2] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(969px, 100%);
  height: auto;
  gap: 24px;
  align-items: stretch;
}

.StudioCanvas .sd[data-s-90b0b67b-8a0b-4ecd-8401-6e03ded9c931] {
  width: 100%;
  height: auto;
  min-width: 0;
  padding: 32px 24px;
}
}

@media (max-width: 834px) {
  .StudioCanvas .sd[data-s-892ff8de-2435-460c-80ff-ff3baa0110f1] {
    padding: 24px 0;
  }
}

@media (max-width: 600px) {
  .StudioCanvas .sd[data-s-a0b8fa54-729c-4aba-a379-5ae23ebd36b2] {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1200px) {
  .StudioCanvas .sd[data-s-e79dac9b-18d7-406e-afbe-8c2af24acff7],
  .StudioCanvas .sd[data-s-a12753f7-c60b-47b5-be63-c65a1dd2a76d] {
    height: auto;
    min-height: 0;
  }

  .StudioCanvas .sd[data-s-6a9df81c-7bdb-4c1f-a137-0cb5b31d636c] {
    flex-direction: column-reverse;
  }

  .StudioCanvas .sd[data-s-67b1cb18-bd80-428c-b22f-002303734fae],
  .StudioCanvas .sd[data-s-4fd95c93-375e-4f8d-be47-912a22acb7dc] {
    width: 100%;
  }

  .StudioCanvas .sd[data-s-739837dc-6d9f-45f8-b898-f54b62ba0fd1] {
    display: none;
  }

  .StudioCanvas .sd[data-s-82768f8a-e6c4-4419-a63b-f4445348384c] {
    display: flex;
    width: 50px;
    height: 100%;
    min-height: 50px;
    padding: 0;
    margin: 0 0 0 auto;
    flex: none;
    color: #fff;
    background: #5a4b52;
    align-items: center;
    justify-content: center;
  }

  .StudioCanvas .sd[data-s-2b0230d1-a110-48a4-8ba6-f8ef69cb19ad] {
    color: #fff;
  }

  body .sd[data-s-e13849fb-60c9-4a6b-92c0-9d1877fccbd0] {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    padding: 24px 16px;
    border-radius: 0;
    overflow-y: auto;
    align-items: stretch;
    justify-content: flex-start;
    background: #fffcf2;
  }

  body .sd[data-s-1e9e6381-40b6-438d-916e-c2863a6b047b] {
    width: 100%;
    height: auto;
    margin: 0;
    background: transparent;
    align-items: flex-end;
    flex: none;
  }

  body .sd[data-s-e1d66bd6-2caa-49ec-9031-5a0c85ac5ad4],
  body .sd[data-s-234e920b-ad03-470f-b082-5d9d326d8328] {
    width: 100%;
    height: auto;
    margin: 0;
    background: transparent;
    flex: none;
  }

  body .sd[data-s-234e920b-ad03-470f-b082-5d9d326d8328] {
    padding: 8px 16px;
  }

  body .sd[data-s-1e9d2f0a-7631-4b91-baa6-077a19c313aa] {
    width: 100%;
    height: auto;
    min-height: 70px;
    padding: 8px 0;
    background: transparent;
    align-items: flex-start;
    justify-content: center;
    flex: none;
  }

  body .sd[data-s-5d7d0040-cfef-4b3c-a094-9511a86e41ad] {
    color: #5a4b52;
    font: 500 20px / 1.4 "Tenali Ramakrishna", sans-serif;
  }

  body .sd[data-s-37307ed6-ac05-4ede-be88-cabc70f5dbbd] {
    color: #5a4b52;
    font: 400 12px / 1.4 "Zen Kaku Gothic New", sans-serif;
  }

  body .sd[data-s-e95055b4-8b5d-4b48-a3a7-ccbd57bea870] {
    width: 100%;
    height: auto;
    margin: 24px 0 0;
    background: transparent;
    flex: none;
  }

  body .sd[data-s-2be9ce5e-4bc4-489e-9622-f0726efddadd] {
    width: 83px;
    height: auto;
  }

  body .sd[data-s-73c3a41a-4cb5-4a36-ba9f-237189162fec] {
    width: 44px;
    height: 44px;
    min-height: 44px;
    flex: none;
  }

  body .sd[data-s-73c3a41a-4cb5-4a36-ba9f-237189162fec]::before {
    background-size: 40px 17px;
    background-repeat: no-repeat;
    background-position: center;
  }

  .StudioCanvas .sd[data-s-77749584-68eb-48ef-9e7b-dcd1f6795039] {
    width: 100%;
    height: auto;
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .StudioCanvas .sd[data-s-7ea33754-b2d9-4a10-9343-04ea2ac19b2b] {
    width: min(400px, 100%);
    height: auto;
    min-height: 400px;
    padding: 60px 48px;
    margin: 0;
  }

  .StudioCanvas .sd[data-s-88ee3bfb-3079-4b35-9d58-a9c1be50d272] {
    font-size: min(128px, 24vw);
    white-space: nowrap;
  }

  .StudioCanvas .sd[data-s-02d1a58d-b897-4fe8-932e-08e368f360fc] {
    width: 100%;
    height: auto;
    flex: none;
  }

}

/* The original tablet crop fits at 489–834px; keep its photo height there. */
@media (min-width: 489px) and (max-width: 834px) {
  .StudioCanvas .sd[data-s-e79dac9b-18d7-406e-afbe-8c2af24acff7] {
    min-height: 100vh;
  }
}

@media (max-width: 488px), (min-width: 835px) and (max-width: 1200px) {
  .StudioCanvas .sd[data-s-d74f224d-145e-425e-b450-4cab9e2ad061] {
    width: 100%;
    height: auto;
    aspect-ratio: 2992 / 2000;
    flex: none;
  }
}

@media (min-width: 835px) and (max-width: 1200px) {
  .StudioCanvas .sd[data-s-b635f613-166e-4e50-be7e-80ca41383c93] {
    width: 100%;
    margin: 96px 0 0;
    padding: 0 48px 0 0;
  }

  .StudioCanvas .sd[data-s-dd6c384a-c82a-4a8f-81d9-e8d2fa15b698] {
    font-size: 72px;
    margin: 0 0 0 -40px;
  }
}

@media (max-width: 488px) {
  .StudioCanvas .sd[data-s-a12753f7-c60b-47b5-be63-c65a1dd2a76d] {
    padding: 72px 20px 40px;
  }

  .StudioCanvas .sd[data-s-7ea33754-b2d9-4a10-9343-04ea2ac19b2b] {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 28px 16px 36px;
  }

  .StudioCanvas .sd[data-s-b8908e82-8dda-496e-85dd-b52b78afd5f4] {
    width: 100%;
    max-width: 100%;
    text-wrap: balance;
    line-height: 1.7;
  }

  .StudioCanvas .sd[data-s-88ee3bfb-3079-4b35-9d58-a9c1be50d272] {
    font-size: clamp(64px, 18.5vw, 80px);
    white-space: nowrap;
  }

  .StudioCanvas .sd[data-s-02d1a58d-b897-4fe8-932e-08e368f360fc] {
    padding: 7px;
    border-radius: 32px;
  }

  .StudioCanvas .sd[data-s-d74f224d-145e-425e-b450-4cab9e2ad061] {
    border-radius: 25px;
  }
}

@media (max-width: 834px) {
  .StudioCanvas input.sd,
  .StudioCanvas textarea.sd,
  .StudioCanvas select.sd {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 488px) {
  .StudioCanvas input.sd,
  .StudioCanvas textarea.sd,
  .StudioCanvas select.sd {
    font-size: max(16px, 1em);
  }
}

/* Let the shared footer include every link and the copyright on narrow screens. */
@media (max-width: 834px) {
  .StudioCanvas .sd[data-s-ce8650ff-0575-47b3-abc1-4b234ce00307],
  .StudioCanvas .sd[data-s-26f16293-ce66-4948-9459-75e5d11d225c] {
    height: auto;
    min-height: 0;
    flex: none;
  }

  /* Preserve the original tablet background height when its parent grows. */
  .StudioCanvas .sd[data-s-58342694-924b-4182-9b3b-9966a8a61117] {
    height: 400px;
    flex: none;
  }
}

/* Visiting nursing: 3 x 250px cards + 2 x 30px gaps + 100px section
   padding need 910px, plus the browser scrollbar. Keep each card readable. */
@media (max-width: 925px) {
  .StudioCanvas .sd[data-s-cacb54b6-7af5-455a-834e-029d3883f82b] {
    flex-wrap: wrap;
  }

  .StudioCanvas .sd[data-s-cacb54b6-7af5-455a-834e-029d3883f82b] > .sd {
    max-width: 100%;
  }
}

/* Wakamonolab: the 826px introduction and 820px comparison row need
   96px section padding and scrollbar space before they can sit side by side. */
@media (max-width: 937px) {
  .StudioCanvas .sd[data-s-2f274fd0-bacb-4435-8596-ee45aeecfba5] {
    flex-direction: column;
    height: auto;
    gap: 20px;
  }

  .StudioCanvas .sd[data-s-6e3780a7-f113-4c49-a072-1f4058a76c93] {
    max-width: 100%;
    margin: 0;
  }

  .StudioCanvas .sd[data-s-6cbd1dea-3072-4783-8b42-0f7347fe022f],
  .StudioCanvas .sd[data-s-606d91db-d02b-4dc8-b4d6-8f0ef722bce8] {
    width: 100%;
    min-width: 0;
  }

  .StudioCanvas .sd[data-s-606d91db-d02b-4dc8-b4d6-8f0ef722bce8] > .sd {
    max-width: 100%;
  }

  .StudioCanvas .sd[data-s-337ced0d-6ffe-4edb-9670-5ab1d8abaa0f] {
    height: auto;
  }

  .StudioCanvas .sd[data-s-8f0e0725-73c7-4d29-9ba8-e58635d522da] {
    flex-wrap: wrap;
  }

  .StudioCanvas .sd[data-s-8f0e0725-73c7-4d29-9ba8-e58635d522da] > .sd {
    max-width: 100%;
  }
}

@media (min-width: 489px) and (max-width: 937px) {
  .StudioCanvas .sd[data-s-6e3780a7-f113-4c49-a072-1f4058a76c93] {
    height: 230px;
  }
}
