/**
 * wcms-cmm-lang.css: 사용자 화면 글꼴 적용과 언어별 줄바꿈 (원칙 14-8)
 * 언어별 글꼴 목록은 언어 CSS(/assets/wcms/lang/{언어코드}.css, 언어 관리 표)가 정한다.
 * 사용 화면: 사용자 사이트 레이아웃, P3 화면, 회원 화면, 오류 화면, 사이트 안내 화면.
 * 작성: njjang83 2026.10.31
 * 수정: njjang83 2026.11.06 화면 확대·축소 단계 클래스 (P14-9 Task 19)
 * 수정: njjang83 2026.11.08 스킨 안 긴 제목 줄바꿈 (U-M1)
 * 수정: njjang83 2026.11.11 화면에 숨긴 낭독 글자 .site-sr-only를 모든 사용자 화면이 읽는 이 파일로 옮김 (USER_A11Y)
 * 수정: njjang83 2026.11.16 방문 분석 안내 기본 꾸밈 구역 (P24 H-9)
 * 수정: njjang83 2026.11.16 미리보기 CSP 알림 상자 기본 꾸밈 구역 (P24 H-13)
 */

/* ===== 글꼴 ===== */
:root { --site-font-family-default: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
:where(body) { font-family: var(--site-font-family, var(--site-font-family-default)); overflow-wrap: break-word; }

/* ===== 제품 언어 줄바꿈 (0 우선순위, 그 밖의 언어는 기본 normal) ===== */
:where(:root:lang(ko)) body { word-break: keep-all; line-height: 1.7; }
:where(:root:lang(ja), :root:lang(zh-CN)) body { word-break: normal; line-break: strict; line-height: 1.8; }
:where(.editor-content, .site-url) { overflow-wrap: anywhere; }
/* 게시판 스킨 안의 긴 제목(공백 없는 긴 글)은 줄 최소 너비를 넓히지 않고 어디서든 꺾는다. break-word는 최소 너비를 줄이지 못해 표·flex에서 가로로 넘쳤다(U-M1) */
:where([class^="skin-"], [class*=" skin-"]) { overflow-wrap: anywhere; }
:where(:lang(ko), :lang(ja), :lang(zh-CN)) em { font-style: normal; font-weight: 700; }

/* ===== 화면 확대·축소 (widget/page_tools.jsp의 단추가 html에 단계 클래스를 단다, P14-9) ===== */
/* 3단계가 기본이라 클래스가 없다. 글자·여백·그림이 함께 커지고 작아지도록 body에 zoom을 쓴다(브라우저 확대와 별개로 사이트 안에서만 바뀐다). */
html.is-zoom-1 body { zoom: 0.9; }
html.is-zoom-2 body { zoom: 0.95; }
html.is-zoom-4 body { zoom: 1.15; }
html.is-zoom-5 body { zoom: 1.3; }

/* ===== 화면에 숨긴 낭독 글자 (모든 사용자 화면이 이 파일을 읽으므로 한 곳에 둔다) ===== */
.site-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== 방문 분석 안내 (P24 H-9) ===== */
/* 사이트 테마가 widget/visit_cookie.jsp를 꾸미지 않아도 본문과 구분되게 하는 최소 모양이다. 모두 0 우선순위라 테마 CSS가 이긴다. 색·글꼴·줄바꿈·고정 너비는 정하지 않는다(14-8). */
:where(.site-visit-cookie, .site-visit-notice) { margin: 1rem 0; padding: 0.75rem 1rem; border: 1px solid currentColor; border-radius: 4px; }
:where(.site-visit-cookie-actions, .site-visit-notice-actions) { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 0; }
:where(.site-visit-cookie-refuse, .site-visit-cookie-allow, .site-visit-notice-close, .site-visit-notice-refuse) { padding: 0.375rem 0.75rem; border: 1px solid currentColor; border-radius: 4px; background: transparent; color: inherit; font: inherit; cursor: pointer; }

/* ===== 미리보기 CSP 알림 (P24 H-13) ===== */
/* 미리보기 화면(widget/head_meta.jsp가 미리보기에서만 넣는다)의 막힌 출처 알림 상자. 모두 0 우선순위이고 색·글꼴·줄바꿈·고정 너비는 정하지 않는다(14-8). */
:where(.site-preview-csp) { margin: 0 0 1rem; padding: 0.75rem 1rem; border: 2px solid currentColor; border-radius: 4px; }
:where(.site-preview-csp-title) { margin: 0 0 0.5rem; font-weight: bold; }
:where(.site-preview-csp-list) { margin: 0 0 0.5rem; padding-left: 1.25rem; }
:where(.site-preview-csp-close) { padding: 0.375rem 0.75rem; border: 1px solid currentColor; border-radius: 4px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
