/* ============================================================
   Base — reset · font · typography
   ============================================================ */
@font-face {
  font-family: "Pretendard Variable";
  src: url("../font/PretendardVariable.woff2") format("woff2-variations");
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body); line-height: 20px;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--c-primary-text); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
table { border-collapse: collapse; width: 100%; }

:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; border-radius: 2px; }   /* 가이드 §07 — outline 2px Primary · offset 2px (:focus-visible에서만 노출) */

/* D1331 — 가이드 §02 Line Height·Letter Spacing: Display 46/56 -2% · H1 34/44 -2% · H2 24/32 -1% · H3 20/28 -1% · Title 18/26 -0.5% · Subtitle 17/24 -0.5% ·
   Body L 15/22 · Body M 14/20 · Caption 13/18. 클래스 .h2는 «섹션·카드·모달 타이틀» = 가이드 Title(18)이다(가이드 H2 24는 합계 금액·문서 제목 — --fs-h2를 직접 쓴다) */
.display { font-size: var(--fs-display); line-height: 56px; font-weight: 800; letter-spacing: -0.02em; }
.h1 { font-size: var(--fs-h1); line-height: 44px; font-weight: 800; letter-spacing: -0.02em; }
.h2 { font-size: var(--fs-title); line-height: 26px; font-weight: 700; letter-spacing: -0.005em; }
.h3 { font-size: var(--fs-body); line-height: 20px; font-weight: 600; }
.t-h2 { font-size: var(--fs-h2); line-height: 32px; font-weight: 800; letter-spacing: -0.01em; }
.t-h3 { font-size: var(--fs-h3); line-height: 28px; font-weight: 700; letter-spacing: -0.01em; }
.t-subtitle { font-size: var(--fs-subtitle); line-height: 24px; font-weight: 700; letter-spacing: -0.005em; }
.t-body-l { font-size: var(--fs-body-l); line-height: 22px; font-weight: 500; }
.caption { font-size: var(--fs-caption); line-height: 18px; color: var(--c-text-sub); }
.mute { color: var(--c-text-mute); }
.num, .amount { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-sans); font-size: var(--fs-table); font-variant-numeric: tabular-nums; }   /* D1207 — 시안 B안: 계약번호·코드도 본문 서체(자릿수 맞춤 숫자) · ~~var(--font-mono)~~ */
.text-danger { color: var(--c-danger); }
.text-warn { color: var(--c-warn); }
.text-success { color: var(--c-success); }
.req { color: var(--c-danger); font-weight: 700; margin-left: 2px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 캡처 모드: 전환 효과 제거 (스크린샷 선명도) */
.capture *, .capture *::before, .capture *::after { transition: none !important; animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
