/* ============================================================
   강남성형외과(ksh-ps.com) 한국어 타이포그래피 기준 v1 (2026-09-20) — ko 정적 미러 842장 공통(워드프레스 Salient 테마 산출물, tools/typo_static.php)
   근거 문서: /design-guide/typo-standard/
   범위: html[lang="ko-KR"] 본문(#header-outer·#footer-outer·슬라이드 메뉴·퀵·폼 제외).
   원칙: 줄바꿈은 손이 아니라 규칙으로 — 제목은 균형(balance), 본문은 고아 방지(pretty),
        짧은 강조·조사·가운뎃점·의존어는 묶음째 이동(nowrap), 폰에서는 손으로 넣은 <br> 을 무시한다.
   실측(360px): 본문(.wpb_text_column p) 15px·굵기 200~300, 목록 13~15, 팬시박스 12, 카드 본문 13.5, 후기 제목 14.5, 배지 11.5 → 폰 하한 본문 16 / 보조 15 / 주석 13.5.
   서체·색·굵기(가는 200/300 은 유지)는 바꾸지 않는다. 브레이크포인트 767px(테마 모바일 1000px 이하 중 폰 구간).
   ============================================================ */
html[lang="ko-KR"]{ --t-body-min:16px; --t-aux-min:15px; --t-note-min:13.5px }

/* ── 공통 조판 ── */
html[lang="ko-KR"] .container-wrap :is(p,li,dd,td,figcaption,blockquote,.nectar-fancy-box .text){ word-break:keep-all; overflow-wrap:break-word; text-wrap-style:pretty }
html[lang="ko-KR"] .container-wrap :is(h1,h2,h3,h4,summary,.toggle-title){ word-break:keep-all; text-wrap-style:balance }
html[lang="ko-KR"] .container-wrap :is(b,strong){ text-wrap-style:balance }

/* ── 인라인 강조·묶음 ── */
html[lang="ko-KR"] .container-wrap :is(p,li,dd) :is(b,strong).u{ white-space:nowrap }
html[lang="ko-KR"] .container-wrap :is(p,li,dd) :is(b,strong).u-long{ white-space:normal }
html[lang="ko-KR"] .container-wrap :is(li,dd) > :is(b,strong).u:first-child{ white-space:normal }
html[lang="ko-KR"] .container-wrap .nb{ white-space:nowrap }
html[lang="ko-KR"] .container-wrap .tx{ min-width:0 }
html[lang="ko-KR"] .container-wrap :is(.kboard-pure-gallery-cut-strings,[class*="ellipsis"]) .nb{ white-space:inherit }

/* ── 1000~1100px(테마의 태블릿 경계 구간): «If necessary» 회전 상자(.sub_redesign_solu_box, 글 칸 108px)·측면 제목 칸(.sub_redesign_side_title, 101px)이 좁아지는 기존 레이아웃 결함 — 이 칸 안에서만 묶음(nowrap)을 풀어 넘침을 막는다. 다른 칸은 묶음 유지. 칸 자체는 테마 수정 대상 ── */
@media (min-width:1000px) and (max-width:1100px){
  html[lang="ko-KR"] :is(.sub_redesign_solu_box,.sub_redesign_side_title) .nb{ white-space:normal }
  html[lang="ko-KR"] :is(.sub_redesign_solu_box,.sub_redesign_side_title) :is(b,strong).u{ white-space:normal }
}

/* ── 폰(≤767px): 하한·손 줄바꿈 무시 ── */
@media (max-width:767px){
  html[lang="ko-KR"] .container-wrap br.mb-br{ display:none !important }
  html[lang="ko-KR"] .container-wrap :is(.wpb_text_column p,.wpb_text_column li,.shc-x,.sh-drs-p,.text > p,ol > li,.shc-tbl-why){ font-size:max(var(--t-body-min),1em); line-height:1.6 }
  html[lang="ko-KR"] .container-wrap :where(p,li,dd):where(:not(.gform_wrapper *,.ba-tag,.shq-cat,.sh-gu-tr,[class*=btn],[class*=btn] *,.nectar-fancy-box *,.sh-rv-thumb *,.sh-insta-txt,.kboard-pure-gallery-cut-strings)){ font-size:max(var(--t-body-min),1em) }
  html[lang="ko-KR"] .container-wrap :is(.nectar-fancy-box .text,.sh-rv-t,.sh-rv-thumb p,td,summary,.sh-insta-txt,.kboard-pure-gallery-cut-strings){ font-size:max(var(--t-aux-min),1em) }
  html[lang="ko-KR"] .container-wrap :is(.ba-tag,.shq-cat,.sh-gu-tr){ font-size:max(var(--t-note-min),1em) }
}
