/* ============================================
   Fonts
   ============================================
   웹폰트 정의
   ============================================ */

/* Pretendard Variable Font */
@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');
}

/* Pretendard 일반 폰트 이름으로도 사용 가능 */
@font-face {
  font-family: 'Pretendard';
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/pretendard/PretendardVariable.woff2') format('woff2-variations');
}

/* 2025-10-13: NanumSquareNeo Variable Font - 로컬 호스팅 */
@font-face {
  font-family: 'NanumSquareNeoVariable';
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/nanum-square-neo/NanumSquareNeo-Variable.woff2') format('woff2-variations');
}

/* 2025-10-13: Noto Serif KR Variable Font - 로컬 호스팅 */
@font-face {
  font-family: 'Noto Serif KR';
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  src: url('/fonts/noto-serif-kr/NotoSerifKR-Variable.woff2') format('woff2-variations');
}

/* 2025-11-02: Material Symbols Outlined - 로컬 호스팅 */
@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 100 700;
  /* 2026-10-27 칸반335: swap → block. 아이콘은 'science' 같은 글자를 리가처로 바꾸므로
     swap 이면 로드 전 대체 글꼴로 이름 글자가 보였다 (좌측메뉴 제목 깜박임). 로드 전에는 투명하게 둔다 */
  font-display: block;
  src: url('/fonts/material-icons/MaterialSymbolsOutlined.woff2') format('woff2');
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  /* 2026-10-27 칸반335: 로드 전 투명 글자('science')가 글자 폭만큼 자리를 차지해 옆 글자가 움직였다.
     아이콘 글리프 폭은 1em 이므로 처음부터 1em 으로 고정 (로드 후 모양 불변).
     overflow: hidden 은 쓰지 않는다 — 스크롤 컨테이너가 되어 flex 안에서 아이콘이 줄어들고(세무학회 좌측메뉴 32→19.9px)
     세로 글리프(35px)도 잘렸다. clip 은 가로만 자르고 최소폭을 유지한다 */
  width: 1em;
  flex-shrink: 0;
  overflow-x: clip;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'liga';
}
