/* [v1190] 전역 폰트 본질 (Pretendard) — shared/ 본질로 전 페이지 자동 적용
 * 사용자 정확 의도: "폰트를 한번 바꿈 모든 페이지 다 바뀌게"
 * 사용자 결정: 화이트 모드 본질은 완전 롤백 (v1184~v1189 5번 본질 시도 실패)
 *             폰트 본질만 깨끗하게 적용
 * 차트 페이지 폰트 본질 범위 (사용자 결정):
 *   ✅ 상단 메뉴 + 드롭다운
 *   ❌ 차트 영역 / 모달 / 포지션 영역
 * §22 보호: theme.css 0건 수정
 */

/* === Pretendard 폰트 본질 (CDN) === */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css');

/* === 비차트 페이지 — 전역 Pretendard 본질 === */
body:not(.bc-has-chart),
body:not(.bc-has-chart) *:not(input):not(select):not(textarea):not(button) {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
body:not(.bc-has-chart) input,
body:not(.bc-has-chart) select,
body:not(.bc-has-chart) textarea,
body:not(.bc-has-chart) button {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* === 차트 페이지 — 상단 메뉴 + 드롭다운 본질만 Pretendard === */
/* 상단 헤더 본질 */
body.bc-has-chart .top-header,
body.bc-has-chart .top-header *:not(canvas):not(svg):not(svg *) {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
/* nav (메뉴) 본질 */
body.bc-has-chart #__sharedNavHost,
body.bc-has-chart #__sharedNavHost *:not(canvas):not(svg):not(svg *) {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
/* 헤더 우측 아이콘 영역 (Login/Signup 버튼 + 아이콘 본질) */
body.bc-has-chart #__headerIconBar,
body.bc-has-chart #__headerIconBar *:not(canvas):not(svg):not(svg *) {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
/* 드롭다운 메뉴 본질 (hover 시 나오는 본질) */
body.bc-has-chart .dd-panel,
body.bc-has-chart .dd-panel *,
body.bc-has-chart .dd-mega,
body.bc-has-chart .dd-mega *,
body.bc-has-chart [class*="dropdown-menu"],
body.bc-has-chart [class*="dropdown-menu"] *,
body.bc-has-chart [class*="megamenu"],
body.bc-has-chart [class*="megamenu"] *,
body.bc-has-chart .user-dd,
body.bc-has-chart .user-dd *,
body.bc-has-chart .lang-dropdown,
body.bc-has-chart .lang-dropdown * {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
