/* 리셋과 타이포. 값은 tokens.css에서만 온다. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--t-14);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss05"; /* Pretendard: 숫자 0 슬래시 없음 유지, 기본 */
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
svg { display: block; }
strong, b { font-weight: 600; }
small { font-size: var(--t-12); }
code, .mono { font-family: var(--font-mono); font-size: .92em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
::selection { background: color-mix(in srgb, var(--primary) 18%, transparent); }

/* 숫자는 항상 표 정렬 — 점수판이 흔들리지 않게 */
.num, .kpi-value, .score-value, td.n, .bar-val { font-variant-numeric: tabular-nums; }

/* 타이포 역할 */
.eyebrow {
  font-size: var(--t-11);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.h1 { font-size: var(--t-28); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.h2 { font-size: var(--t-20); font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.h3 { font-size: var(--t-16); font-weight: 600; letter-spacing: -.01em; }
.h4 { font-size: var(--t-14); font-weight: 600; }
.lead { font-size: var(--t-15); color: var(--ink-soft); }
.muted { color: var(--muted); }
.soft { color: var(--ink-soft); }
.t-12 { font-size: var(--t-12); }
.t-13 { font-size: var(--t-13); }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--bg-surface); padding: 8px 12px; border-radius: var(--r-control); }
.skip:focus { left: 8px; }

/* 흐름 유틸 */
.row { display: flex; align-items: center; gap: var(--s-2); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.col { display: flex; flex-direction: column; gap: var(--s-2); }
.grow { flex: 1 1 auto; min-width: 0; }
.wrap { flex-wrap: wrap; }
.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-6); }
.hide { display: none !important; }
