/* ============================================================
   4·4의원 한국어 타이포그래피 기준 v1 (2026-09-20) — 한국어 19페이지 공통(그누보드 tail.sub html_end 래핑)
   근거 문서: /design-guide/typo-standard/
   범위: html[lang="ko"] 본문(header#sh_hd·nav.sh_nav·footer#sh_ft·퀵·로그인 제외). 다른 9개 언어는 링크되지 않는다.
   원칙: 줄바꿈은 손이 아니라 규칙으로 — 제목은 균형(balance), 본문은 고아 방지(pretty),
        짧은 강조·조사·가운뎃점·의존어는 묶음째 이동(nowrap), 폰에서는 손으로 넣은 <br> 을 무시한다.
   실측(360px): 본문(.pl·.k_txt·dd·.text-box p)이 13~14px, 태그 12px, h4 14~17px → 폰 하한 본문 16 / 보조 15 / 주석 13.5.
   서체(Pretendard)·색·굵기는 바꾸지 않는다. 브레이크포인트 767px.
   ============================================================ */
html[lang="ko"]{ --t-body-min:16px; --t-aux-min:15px; --t-note-min:13.5px }

/* ── 공통 조판 ── */
html[lang="ko"] #sh_container :is(p,li,dd,figcaption,blockquote,.pl,.k_txt > div,.text-box > div){ word-break:keep-all; overflow-wrap:break-word; text-wrap-style:pretty }
html[lang="ko"] #sh_container :is(h1,h2,h3,h4,dt,.cm_tit span){ word-break:keep-all; text-wrap-style:balance }
html[lang="ko"] #sh_container :is(b,strong){ text-wrap-style:balance }

/* ── 인라인 강조·묶음 ── */
html[lang="ko"] #sh_container :is(p,li,dd) :is(b,strong).u{ white-space:nowrap }
html[lang="ko"] #sh_container :is(p,li,dd) :is(b,strong).u-long{ white-space:normal }
html[lang="ko"] #sh_container :is(li,dd) > :is(b,strong).u:first-child{ white-space:normal }
html[lang="ko"] #sh_container .nb{ white-space:nowrap }
html[lang="ko"] #sh_container .tx{ min-width:0 }

/* ── 폰(≤767px): 하한·손 줄바꿈 무시 ── */
@media (max-width:767px){
  html[lang="ko"] #sh_container br.mb-br{ display:none !important }
  /* 본문급: 설명 문단·정의·목록 */
  html[lang="ko"] #sh_container :is(.pl,.k_txt > div,.text-box > p,.txt_box > p,.equip_item > p,.tip > div,.dvc_info > p,.pnt > p,dl > dd,.dot > dd,.swiper-slide > p,.cm_tit > .pl){ font-size:max(var(--t-body-min),1em); line-height:1.65 }
  html[lang="ko"] #sh_container :where(p,li,dd):where(:not(.sh_site_map_txt,.tag li,.num li,td *,th *,[class*=btn],.tab_area *)){ font-size:max(var(--t-body-min),1em) }
  /* 보조: 사이트맵·짧은 안내·표 */
  html[lang="ko"] #sh_container :is(.sh_site_map_txt,.sh_site_map_txt a,.num li,td,th){ font-size:max(var(--t-aux-min),1em) }
  /* 주석: 태그 */
  html[lang="ko"] #sh_container :is(.tag li,.tag li a){ font-size:max(var(--t-note-min),1em) }
  /* 소제목 h4 는 본문보다 작지 않게 */
  html[lang="ko"] #sh_container h4{ font-size:max(1.0625rem,1em) }
}
