/* =====================================================================
 * 국립강원전문과학관 웹폰트 (Self-hosted)
 * ---------------------------------------------------------------------
 * 2026-06 AppScan 취약점 조치: "SRI(Subresource Integrity) 지원 검사"
 *  - 기존: cdn.jsdelivr.net(Pretendard 3종) + fonts.googleapis.com(Noto Sans SC)
 *          외부 CDN <link> 를 index.html 에서 직접 로드 → integrity 속성 없음
 *  - 조치: 폰트 파일을 동일 출처(/fonts/)에 두고 자체 서빙 → 제3자 CDN 의존 제거
 *  - 출처/무결성(sha256) 기록: /fonts/SOURCES.txt
 * 사용 가중치: 400(Regular) 500(Medium) 600(SemiBold) 700(Bold)
 * ===================================================================== */

/* ---------- Pretendard (한글/영문 기본) ---------- */
@font-face {
  font-family: 'Pretendard';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: local('Pretendard Regular'), local('Pretendard-Regular'),
       url('/fonts/pretendard/Pretendard-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: local('Pretendard Medium'), local('Pretendard-Medium'),
       url('/fonts/pretendard/Pretendard-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: local('Pretendard SemiBold'), local('Pretendard-SemiBold'),
       url('/fonts/pretendard/Pretendard-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: local('Pretendard Bold'), local('Pretendard-Bold'),
       url('/fonts/pretendard/Pretendard-Bold.woff2') format('woff2');
}

/* ---------- Pretendard JP (일본어 페이지) ---------- */
@font-face {
  font-family: 'Pretendard JP';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: local('Pretendard JP Regular'), local('PretendardJP-Regular'),
       url('/fonts/pretendard-jp/PretendardJP-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard JP';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: local('Pretendard JP Medium'), local('PretendardJP-Medium'),
       url('/fonts/pretendard-jp/PretendardJP-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard JP';
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: local('Pretendard JP SemiBold'), local('PretendardJP-SemiBold'),
       url('/fonts/pretendard-jp/PretendardJP-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'Pretendard JP';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: local('Pretendard JP Bold'), local('PretendardJP-Bold'),
       url('/fonts/pretendard-jp/PretendardJP-Bold.woff2') format('woff2');
}

/* ---------- Noto Sans SC (중국어 간체 페이지) ----------
 * unicode-range 를 CJK 표의문자 영역으로 제한 → 한국어/영어 이용자는 다운로드하지 않음
 * (Pretendard / Pretendard JP 에 없는 한자만 이 폰트로 폴백)
 * 600 가중치는 파일 미포함 → 브라우저가 700 으로 매칭 */
@font-face {
  font-family: 'Noto Sans SC';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/noto-sans-sc/noto-sans-sc-chinese-simplified-400-normal.woff2') format('woff2');
  unicode-range: U+2E80-2FDF, U+3000-303F, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF, U+20000-2A6DF;
}
@font-face {
  font-family: 'Noto Sans SC';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/noto-sans-sc/noto-sans-sc-chinese-simplified-500-normal.woff2') format('woff2');
  unicode-range: U+2E80-2FDF, U+3000-303F, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF, U+20000-2A6DF;
}
@font-face {
  font-family: 'Noto Sans SC';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/noto-sans-sc/noto-sans-sc-chinese-simplified-700-normal.woff2') format('woff2');
  unicode-range: U+2E80-2FDF, U+3000-303F, U+3400-4DBF, U+4E00-9FFF, U+F900-FAFF, U+FE30-FE4F, U+FF00-FFEF, U+20000-2A6DF;
}

/* ---------- Pretendard GOV (KRDS 동봉 서브셋 재사용: /krds/fonts) ----------
 * 기존 CDN pretendard-gov.min.css 대체. 600 가중치는 700 으로 매칭 */
@font-face {
  font-family: 'Pretendard GOV';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: local('Pretendard GOV Regular'), local('PretendardGOV-Regular'),
       url('/krds/fonts/PretendardGOV-Regular.subset.woff2') format('woff2'),
       url('/krds/fonts/PretendardGOV-Regular.subset.woff') format('woff');
}
@font-face {
  font-family: 'Pretendard GOV';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: local('Pretendard GOV Medium'), local('PretendardGOV-Medium'),
       url('/krds/fonts/PretendardGOV-Medium.subset.woff2') format('woff2'),
       url('/krds/fonts/PretendardGOV-Medium.subset.woff') format('woff');
}
@font-face {
  font-family: 'Pretendard GOV';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: local('Pretendard GOV Bold'), local('PretendardGOV-Bold'),
       url('/krds/fonts/PretendardGOV-Bold.subset.woff2') format('woff2'),
       url('/krds/fonts/PretendardGOV-Bold.subset.woff') format('woff');
}
