/* =====================================================
   Pretendard 웹폰트 — KIEMSTA 2026 신규 사이트 (국문)
   font-family 만 덮어쓰고, weight 는 부모 디자인 유지
   ===================================================== */

@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}
@font-face {
    font-family: 'Pretendard';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}

/* =====================================================
   옛 폰트명 alias — 기존 content.css / demo2024 main.css
   에서 사용하던 모든 폰트명을 Pretendard로 통일
   ===================================================== */
@font-face {
    font-family: 'preThin';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Thin.woff2') format('woff2');
    font-weight: normal; font-display: swap;
}
@font-face {
    font-family: 'preLight';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Light.woff2') format('woff2');
    font-weight: normal; font-display: swap;
}
@font-face {
    font-family: 'preRegular';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2') format('woff2');
    font-weight: normal; font-display: swap;
}
@font-face {
    font-family: 'preMedium';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Medium.woff2') format('woff2');
    font-weight: normal; font-display: swap;
}
@font-face {
    font-family: 'preSemiBold';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-SemiBold.woff2') format('woff2');
    font-weight: normal; font-display: swap;
}
@font-face {
    font-family: 'preBold';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Bold.woff2') format('woff2');
    font-weight: normal; font-display: swap;
}
@font-face {
    font-family: 'preExtraBold';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-ExtraBold.woff2') format('woff2');
    font-weight: normal; font-display: swap;
}
/* spoqa 도 Pretendard 로 통일 */
@font-face {
    font-family: 'spoqaRegular';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2') format('woff2');
    font-weight: normal; font-display: swap;
}
@font-face {
    font-family: 'spoqaMedium';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Medium.woff2') format('woff2');
    font-weight: normal; font-display: swap;
}
@font-face {
    font-family: 'spoqaBold';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Bold.woff2') format('woff2');
    font-weight: normal; font-display: swap;
}
/* 나눔고딕/맑은고딕 등 옛 패밀리도 Pretendard 로 fallback */
@font-face {
    font-family: 'NanumGothic';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Regular.woff2') format('woff2');
    font-weight: normal; font-display: swap;
}
@font-face {
    font-family: 'NanumGothicBold';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/pretendard@1.0/Pretendard-Bold.woff2') format('woff2');
    font-weight: normal; font-display: swap;
}

/* ----- 폰트 패밀리만 덮어쓰기 (weight 는 기존 디자인 유지) ----- */
html, body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', '맑은 고딕', sans-serif !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* form 컨트롤도 같은 패밀리 (브라우저 기본 폰트 무력화) */
input, select, textarea, button {
    font-family: inherit !important;
}

/* ----- 강조 영역 굵기 명시 ----- */

/* 상단 메뉴 / 네비게이션 */
#ly_navi, #ly_navi *,
#ly_snb, #ly_snb button, #ly_snb a,
nav button, nav a,
header, header a,
.gnb, .gnb a,
.lnb, .lnb a {
    font-weight: 600;
}

/* 제목 */
h1, h2, h3, h4 {
    font-weight: 700;
}
h5, h6 {
    font-weight: 600;
}

/* 버튼류 */
button, input[type=submit], input[type=button],
.btn_pack, .btn_pack input,
.submit_btn, .registration,
a.registration {
    font-weight: 600;
}

/* 강조 텍스트 */
strong, b, em {
    font-weight: 700;
    font-style: normal;
}

/* table heading */
th {
    font-weight: 600;
}

/* 우리 신규 페이지 내부 라벨 */
.join_form label, .login_form label {
    font-weight: 600;
}
.join_form h3, .login_form h3 {
    font-weight: 700;
}

/* =====================================================
   글로벌 안전망 — 아이콘/이모지 폰트는 제외하고
   모든 텍스트를 Pretendard로 강제
   (demo2024 main.css 의 specific selector + !important 도 덮어씀
    → html body 접두 + 모든 주요 element 명시로 specificity 최대화)
   ===================================================== */
html, body,
html body, html body *,
html body h1, html body h2, html body h3, html body h4, html body h5, html body h6,
html body p, html body span, html body div, html body section, html body article,
html body a, html body li, html body ul, html body ol, html body dl, html body dt, html body dd,
html body table, html body th, html body td, html body tr, html body tbody, html body thead,
html body label, html body input, html body select, html body textarea, html body button,
html body header, html body nav, html body footer, html body main, html body aside,
html body em, html body strong, html body b, html body i, html body small, html body cite,
html body fieldset, html body legend, html body form,
html body .container, html body .row, html body .col,
html body .section-header, html body .section-header h2, html body .section-header p,
html body .n_counter_stats, html body .n_counter_stats h3, html body .n_counter_stats p, html body .n_counter_stats span, html body .n_counter_stats div,
html body .n_consult_live, html body .n_consult_live h3, html body .n_consult_live p, html body .n_consult_live span, html body .n_consult_live div,
html body .n_main_yt, html body .n_main_yt h2, html body .n_main_yt h4, html body .n_main_yt p,
html body .n_big_btn, html body .n_big_btn span,
html body #faq, html body #faq ul li, html body #faq ul li a, html body #faq ul li span,
html body #ly_navi, html body #ly_navi *,
html body .gnb, html body .gnb a, html body .lnb, html body .lnb a {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', '맑은 고딕', 'Malgun Gothic', sans-serif !important;
}

/* 아이콘 폰트는 보호 (Bootstrap Icons / FontAwesome / Material) */
html body .bi, html body .bi *, html body [class^="bi-"], html body [class*=" bi-"],
html body .fa, html body .fas, html body .far, html body .fal, html body .fab, html body [class^="fa-"], html body [class*=" fa-"],
html body .material-icons, html body .material-symbols-outlined {
    font-family: inherit !important; /* 각 라이브러리 자체 font-family 유지 */
}
html body .bi, html body [class^="bi-"], html body [class*=" bi-"] { font-family: "bootstrap-icons" !important; }
html body .fa, html body .fas { font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", FontAwesome !important; }
html body .fab { font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands" !important; }
html body .material-icons { font-family: "Material Icons" !important; }
html body .material-symbols-outlined { font-family: "Material Symbols Outlined" !important; }

/* SVG 안의 텍스트 */
svg text { font-family: 'Pretendard', sans-serif !important; }

/* placeholder */
::placeholder, ::-webkit-input-placeholder, ::-moz-placeholder, :-ms-input-placeholder {
    font-family: 'Pretendard', sans-serif !important;
    opacity: .65;
}
