/* 2026-10-03 통증·재생 클리닉(/regenerative/) 줄바꿈·모바일 보정. 문구와 구성은 그대로 두고 표시 방식만 바꾼다. */
html[lang|="ko"] .ps-page--regenerative :is(h1, h2, h3, p, li, summary, strong, span) {
  word-break: keep-all;
  overflow-wrap: break-word;
}
/* 제목·질문·짧은 문장: 줄 길이를 고르게 나눠 한 단어만 남는 줄을 막는다. */
html[lang|="ko"] .ps-page--regenerative :is(.ps-hero__copy h1 span, .ps-heading h2, h3, .ps-faq summary strong, .ps-consult h2, .ps-check-list li, .ps-comparison span, .ps-comparison strong) {
  text-wrap: balance;
}
/* 본문: 마지막 줄에 짧은 말이 홀로 남지 않게 한다. */
html[lang|="ko"] .ps-page--regenerative :is(p, li, .ps-process__copy > div) {
  text-wrap: pretty;
}
/* 첫 화면 '상담 신청' 버튼 글자가 버튼 배경색에 묻히던 문제(.ps-page a 의 색 상속) */
html[lang|="ko"] .ps-page--regenerative .ps-hero .ps-button--solid {
  color: #fff;
}
/* 공통 푸터 주소: 좁은 화면(360px)에서 '(논현 / 동)'으로 끊기던 것을 단어 단위로 */
html[lang|="ko"] .footer .footer-grid > div:nth-child(2) > a {
  word-break: keep-all;
}
@media (min-width: 641px) and (max-width: 900px) {
  /* 주사 종류 카드 3장: 2칸 배치에서 마지막 카드 옆이 빈 회색 칸으로 남지 않게 */
  html[lang|="ko"] .ps-page--regenerative .ps-copy-grid > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
@media (max-width: 640px) {
  /* 비교표: 옆으로 밀어야 보이던 세 번째 칸까지 한 화면에 보이게 */
  html[lang|="ko"] .ps-page--regenerative .ps-comparison {
    overflow: hidden;
  }
  html[lang|="ko"] .ps-page--regenerative :is(.ps-comparison__head, .ps-comparison__row) {
    min-width: 0;
    grid-template-columns: 5.6rem minmax(0, 1fr) minmax(0, 1fr);
  }
  html[lang|="ko"] .ps-page--regenerative :is(.ps-comparison__head, .ps-comparison__row) > :first-child {
    white-space: nowrap;
  }
  html[lang|="ko"] .ps-page--regenerative :is(.ps-comparison__head, .ps-comparison__row) > * {
    padding: 1rem 0.8rem;
    font-size: 0.84rem;
    line-height: 1.5;
  }
  /* 적용 조직 표: 조직별 카드(조직명·적용 주사 / 주요 손상·질환)로 */
  html[lang|="ko"] .ps-page--regenerative .ps-table {
    overflow: hidden;
  }
  html[lang|="ko"] .ps-page--regenerative .ps-table__head {
    position: absolute;
    min-width: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  html[lang|="ko"] .ps-page--regenerative .ps-table__head + .ps-table__row {
    border-top: 0;
  }
  html[lang|="ko"] .ps-page--regenerative .ps-table__row:not(.ps-table__head) {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "tissue shots" "detail detail";
    align-items: baseline;
    gap: 0.45rem 1rem;
    padding: 1.15rem 1.2rem 1.2rem;
  }
  html[lang|="ko"] .ps-page--regenerative .ps-table__row:not(.ps-table__head) > span {
    padding: 0;
    border-right: 0;
  }
  html[lang|="ko"] .ps-page--regenerative .ps-table__row:not(.ps-table__head) > span:nth-child(1) {
    grid-area: tissue;
    font-size: 1rem;
  }
  html[lang|="ko"] .ps-page--regenerative .ps-table__row:not(.ps-table__head) > span:nth-child(2) {
    grid-area: detail;
    font-size: 0.92rem;
    line-height: 1.65;
  }
  html[lang|="ko"] .ps-page--regenerative .ps-table__row:not(.ps-table__head) > span:nth-child(3) {
    grid-area: shots;
    color: var(--ps-copper);
    font-size: 0.8rem;
    font-weight: 720;
    text-align: right;
  }
}
