/* 튜브민트 컨셉 — 층 2/4: 바탕(리셋·서체·링크·포커스·접근성·유틸).
   값은 전부 tokens.css 의 변수만 쓴다. 층 순서: tokens.css → base.css → components.css → pages/<화면>.css
   기준점(min-width, 모바일 먼저): 600 태블릿 · 960 작은 PC · 1280 넓은 PC */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: var(--text-base); line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  word-break: keep-all; overflow-wrap: break-word; /* 한글은 어절 단위로 줄바꿈 */
  font-feature-settings: "tnum" 0;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: var(--font-head-w); letter-spacing: var(--font-track); line-height: var(--leading-tight); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--brand-text); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
svg[hidden] { display: none; }
a, button, label, input, select, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* ── 포커스·접근성 ───────────────────── */
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--space-3); top: -48px; z-index: 50; padding: var(--space-2) var(--space-4); border-radius: var(--r); background: var(--brand); color: var(--on-brand); font-weight: 700; text-decoration: none; }
.skip:focus { top: var(--space-3); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ── 아이콘 크기(그림 크기라 px 고정) ───── */
.ico { width: 18px; height: 18px; flex: none; }
.ico-sm { width: 14px; height: 14px; flex: none; }

/* ── 유틸(최소 집합) ─────────────────── */
.num { font-variant-numeric: tabular-nums; }
.sub { color: var(--sub); }
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-md { font-size: var(--text-md); }
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.stack { display: grid; gap: var(--space-3); align-content: start; }
.stack-sm { display: grid; gap: var(--space-2); align-content: start; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.cluster-end { justify-content: flex-end; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.grow { flex: 1; min-width: 0; }
