/* 산업별(industries), 작업별(applications) 상세 페이지 전용 보정 (2026-11-28)
   style.css 는 건드리지 않고, 이 32개 페이지(body.ind-app-page)에만 적용한다. */

/* 줄바꿈: 한글을 글자 중간에서 끊지 않고(keep-all) 단어 단위로 줄바꿈한다.
   (기본값이라 "2/차", "니다." 처럼 한두 글자가 다음 줄로 넘어갔다) 아주 긴 영문 단어는 넘치지 않게 break-word */
.ind-app-page .subhero-parallax, .ind-app-page .subhero-cover, .ind-app-page .cmp-dark, .ind-app-page .last-freeze {
  word-break: keep-all; overflow-wrap: break-word;
}
/* 제목, 짧은 라벨은 줄 길이를 균형 있게, 본문은 마지막 줄에 한 단어만 남지 않게 */
.ind-app-page :is(h1, h2, h3, .subhero-cover b, .cmp-dark b, .last-freeze h3) { text-wrap: balance; }
.ind-app-page :is(p, li, small) { text-wrap: pretty; }
/* 모바일에서는 강제 줄바꿈(br)을 공백으로 바꿔 자연스럽게 흐르게 한다 */
@media (max-width: 700px) { .ind-app-page .cmp-h2 br, .ind-app-page .auto-app-h br { content: " "; } }
.ind-app-page .cta-band h3, .ind-app-page .cta-band p, .ind-app-page .last-freeze h2 { word-break: keep-all; }

/* 오염물 카드: 4, 7, 8장이 3열에서 한 장만 남는 문제는 HTML 의 is-4(4열) 로 해결.
   1000px 이하 2열에서 홀수 마지막 카드는 두 칸을 차지해 빈 칸을 없앤다 */
@media (min-width: 701px) and (max-width: 1000px) {
  .ind-app-page .auto-cont li:last-child:nth-child(odd) { grid-column: 1 / -1; aspect-ratio: 8 / 3; }
}

/* is-4(4열)는 style.css 에 모바일 규칙이 없어 390px 에서 2열로 좁아졌다. 700px 이하는 1열로 되돌린다 */
@media (max-width: 700px) {
  .ind-app-page .auto-cont.is-4 { grid-template-columns: 1fr; }
}

/* 적용 엔지니어링 사례 카드 */
.ind-app-page .auto-ae-cases.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) {
  .ind-app-page .auto-ae-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ind-app-page .auto-ae-cases li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* 관련 작업별 솔루션: 홀수 개일 때 구분선 어긋남 보정
   (2열: 오른쪽 열의 마지막에서 둘째 칸에도 선, 1열: 마지막을 제외한 모든 칸에 선) */
@media (min-width: 1201px) {
  .ind-app-page .auto-relapps li:nth-last-child(2):nth-child(even) a { border-bottom: 1px solid var(--gray-line); }
}
@media (max-width: 1200px) {
  .ind-app-page .auto-relapps li:nth-last-child(2) a { border-bottom: 1px solid var(--gray-line); }
}

/* 로고 줄: 한 줄 개수를 페이지별 변수로 받아 마지막 줄에 한 개만 남지 않게 한다 */
@media (min-width: 1201px) {
  .ind-app-page .auto-logos.is-flex li { box-sizing: border-box; flex-basis: calc(100% / var(--lg-d, 6)); }
}
@media (min-width: 801px) and (max-width: 1200px) {
  .ind-app-page .auto-logos.is-flex li { box-sizing: border-box; flex-basis: calc(100% / var(--lg-t, 4)); }
}

/* 금형 페이지 적용 엔지니어링 표: 가운뎃점 대신 작은 원 */
@media (max-width: 1000px) {
  .ind-app-page .mtc-ae-c span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--ice); margin: 0 10px; vertical-align: middle; }
}
