/* ==========================================================
   관리자 공통 본문 글꼴
   - 관리자 제목/소제목(#container_title)은 기존 타이틀 서체 유지
   - 그 밖의 관리자 본문·폼·표·버튼·안내 문구는 나눔고딕으로 통일
   - 페이지별 글꼴 선언보다 마지막(우선순위 100000)으로 로드
   ========================================================== */

:root{
    --hm-admin-body-font:"HM Nanum Gothic","Nanum Gothic","나눔고딕","Malgun Gothic","맑은 고딕","Apple SD Gothic Neo",sans-serif;
}

/* 레거시·GNU·HM 페이지가 참조하는 공통 글꼴 변수도 한 계약으로 맞춘다. */
html body #container#container{
    --hm-font-family:var(--hm-admin-body-font);
    --hm-adm-font:var(--hm-admin-body-font);
    --hm-adm-th-font:var(--hm-admin-body-font);
    --hm-adm-td-font:var(--hm-admin-body-font);
    --hm-control-font:var(--hm-admin-body-font);
}

html body #container#container#container#container:not(.hm-admin-dashboard),
html body #container#container#container#container:not(.hm-admin-dashboard) *:where(:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.glyphicon):not(.material-icons):not([class^="icon-"]):not([class*=" icon-"]):not(.hm-page-save-button)):not(:is(.hm-bottom-actions, .hm-form-actions, .btn_confirm01.btn_confirm) :is(.btn_submit, .hm-button--primary)){
    font-family:var(--hm-admin-body-font) !important;
    font-size:13px !important;
}

/* GNU 대시보드는 전용 CSS가 11~30px의 본문 계층을 소유한다. */
html body #container.hm-admin-dashboard,
html body #container.hm-admin-dashboard *:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.glyphicon):not(.material-icons):not([class^="icon-"]):not([class*=" icon-"]){
    font-family:var(--hm-admin-body-font) !important;
}

/* 제목과 data-subtitle로 출력되는 소제목은 본문 통일 대상에서 제외 */
html body #container#container#container#container#container #container_title,
html body #container#container#container#container#container #container_title *,
html body > #container_title,
html body > #container_title *{
    font-family:'font-R','Pretendard',sans-serif !important;
}

/* 페이지 타이틀만 22px 예외이며, 타이틀의 13px 소제목은 기존 규칙을 유지한다. */
html body #container#container#container#container#container #container_title,
html body #container#container#container#container#container .hm-page-title,
html body > #container_title{
    font-family:'font-R','Pretendard',sans-serif !important;
    font-size:22px !important;
}

@layer hm-admin-subtitle-contract{
    html body #container #container_title::after,
    html body #container .hm-page-heading > .hm-page-subtitle{
        font-family:'font-R','Pretendard',sans-serif !important;
        font-size:13px !important;
    }
}

/* HM 목록 본문은 레거시 GNU API CSS의 12px 강제값보다 뒤에서 13px을 소유한다. */
html body #container.hm-page.hm-itemlist :is(.hm-search-row,.hm-search-table,.hm-search-submit,.hm-toolbar,.hm-list-table,.hm-paging),
html body #container.hm-page.hm-itemlist :is(.hm-search-row,.hm-search-table,.hm-search-submit,.hm-toolbar,.hm-list-table,.hm-paging) *:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.glyphicon):not(.material-icons):not([class^="icon-"]):not([class*=" icon-"]){
    font-size:13px !important;
}

/* 공통 본문 13px 계약에서 영역·항목 제목은 HM 제목 계층으로 분리한다. */
html body #container#container#container#container#container .hm-section-title,
html body #container#container#container#container#container .hm-section-title *,
html body #container#container#container#container#container .hm-form-section-title,
html body #container#container#container#container#container .hm-form-section-title *,
html body #container#container#container#container#container .hm-setting-section > .h2_frm,
html body #container#container#container#container#container .hm-setting-section > .h2_frm *,
html body #container#container#container#container#container .hm-form-section > .h2_frm,
html body #container#container#container#container#container .hm-form-section > .h2_frm *,
html body #container#container#container#container#container .hm-hierarchy-panel-header > h2,
html body #container#container#container#container#container .hm-hierarchy-panel-header > h2 *{
    font-family:'font-R','Pretendard',sans-serif !important;
    font-size:15px !important;
    font-weight:500 !important;
    line-height:1.4 !important;
    color:#1f2b3f !important;
}

/* 목록·설정 테이블 안의 독립 제목행은 HM 보조 제목 규격을 유지한다. */
html body #container#container#container#container#container .hm-setting-title-row > th,
html body #container#container#container#container#container .hm-setting-title-row > th *{
    font-family:'font-R','Pretendard',sans-serif !important;
    font-size:14px !important;
}

/* 분류 목록의 기본 링크 색상보다 분류 추가 버튼의 흰색 레이블을 우선한다. */
html body #container#container#container#container.hm-page-categorylist #cate_add.hm-btn.hm-btn-solid,
html body #container#container#container#container.hm-page-categorylist #cate_add.hm-btn.hm-btn-solid:visited,
html body #container#container#container#container.hm-page-categorylist #cate_add.hm-btn.hm-btn-solid:hover,
html body #container#container#container#container.hm-page-categorylist #cate_add.hm-btn.hm-btn-solid:focus{
    color:#fff !important;
}
