/* Pretendard 전역 적용 — 자체 호스팅(폐쇄망 대응). Dashlite 가 쓰던 'DM Sans' 이름도 같은 폰트로 대체한다. 아이콘 폰트(Nioicon, fcicons)와 코드용 monospace 는 건드리지 않는다. */
@font-face { font-family: 'Pretendard Variable'; font-weight: 45 920; font-style: normal; font-display: swap; src: url('../fonts/pretendard/PretendardVariable.woff2') format('woff2-variations'), url('../fonts/pretendard/PretendardVariable.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 45 920; font-style: normal; font-display: swap; src: url('../fonts/pretendard/PretendardVariable.woff2') format('woff2-variations'), url('../fonts/pretendard/PretendardVariable.woff2') format('woff2'); }
:root { --srb-font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo', 'Noto Sans KR', 'Malgun Gothic', sans-serif; }
html, body, button, input, select, textarea, optgroup, h1, h2, h3, h4, h5, h6, .btn, .form-control, .nk-menu-text, .text-menu { font-family: var(--srb-font); }

/* Dashlite 의 'DM Sans' 선언(굵기별 개별 face)이 별칭보다 우선 매칭되므로, 텍스트 요소에 직접 지정한다. 아이콘·코드·에디터 UI 는 제외(::before 아이콘 폰트는 원래 영향 없음). */
body :not(.icon):not([class*="ni-"]):not(.ni):not([class*="fc-"]):not([class*="fa-"]):not(.fa):not([class*="tox"]):not([class*="mce"]):not(code):not(pre):not(kbd):not(samp):not(svg):not(svg *):not(i) { font-family: var(--srb-font) !important; }

/* 본문 영역 기본 글자 크기 14px. 소형(.btn-sm·.form-control-sm·small·.fs-*·배지·제목)은 그대로 둔다. :where 로 특이도를 낮춰 개별 지정이 이긴다. */
:root { --srb-body-fs: 14px; }
.nk-content, .nk-content :where(p, li, td, th, label, .form-label, .form-control:not(.form-control-sm), .form-select, .custom-select, select, textarea, .btn:not(.btn-sm):not(.btn-xs):not(.btn-icon), .dropdown-item, .nav-link, .card-text, .data-item, .nk-tb-col, .nk-tb-item) { font-size: var(--srb-body-fs); }
/* Dashlite 의 소형 유틸 클래스도 본문에서는 14px 로 올린다(배지·아바타·차트 눈금 등 10px 이하는 유지). */
.nk-content :where(.fs-11px, .fs-12px, .fs-13px, .sub-text, .form-text, .btn-sm, .form-control-sm, .dropdown-menu) { font-size: var(--srb-body-fs); }
/* 표 헤더(Dashlite .nk-tb-head .nk-tb-col 은 .9em 이라 위 규칙이 못 이김). 배지(.badge)는 위계 유지를 위해 올리지 않는다. */
.nk-content .nk-tb-head .nk-tb-col { font-size: var(--srb-body-fs); }
