/*
 * 공매워치 디자인 토큰 v2(docs/UI_UX.md 6.2, DEC-20261008-007). 색·글자·간격·모서리·그림자·모션 값의 정본이다.
 * 다른 CSS 는 이 변수만 참조하고 raw hex·임의 px 를 쓰지 않는다. 대비는 흰 표면 기준 본문 4.5:1 이상으로 골랐다.
 */
@font-face {
	font-family: "GMW UI Sans";
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url("/fonts/pretendard/GMWUISans.subset-4b0a044a6c5d00243eea771cf56a4aaf.woff2") format("woff2");
}

:root {
	/* 배경 60 · 표면 30 · 강조 10 */
	--color-bg: #f5f7fb;
	--color-bg-soft: #eef1f7;
	--color-surface: #ffffff;
	--color-surface-sunken: #f7f8fc;
	--color-surface-raised: #ffffff;

	--color-text-strong: #0f172a;
	--color-text: #273449;
	--color-text-muted: #556275;
	--color-text-disabled: #8a94a6;
	--color-text-inverse: #ffffff;

	--color-border: #e2e7f0;
	--color-border-strong: #c7cfdc;
	/* 입력칸처럼 테두리가 유일한 식별 수단인 경계: 흰 표면 대비 3:1 이상(WCAG 1.4.11) */
	--color-border-input: #7b8597;

	/* 브랜드: 인디고. 주요 행동·현재 메뉴·포커스·핵심 수치에만 쓴다. */
	--color-brand: #4338ca;
	--color-brand-hover: #3730a3;
	--color-brand-active: #312e81;
	--color-brand-soft: #eef0ff;
	--color-brand-border: #c7cbfa;
	--color-brand-text: #3730a3;

	/* 선택 상태: 현재 메뉴·품목 탭·필터·세그먼트 공통(03 개선안 A). 채움 인디고는 주 행동에만 쓴다. */
	--color-selected-bg: var(--color-brand-soft);
	--color-selected-border: var(--color-brand);
	--color-selected-text: var(--color-brand-text);

	/* 상태: 글자·배경·테두리. 색만으로 알리지 않고 라벨·아이콘을 함께 쓴다. */
	--color-success: #166534;
	--color-success-bg: #effbf3;
	--color-success-border: #b7e4c7;
	--color-warning: #8a4b06;
	--color-warning-bg: #fff8e8;
	--color-warning-border: #f3d48c;
	--color-danger: #b42318;
	--color-danger-bg: #fef1f0;
	--color-danger-border: #f5c2bd;
	--color-danger-hover: #912018;
	--color-info: #0b5a85;
	--color-info-bg: #eef7fd;
	--color-info-border: #b9dcf2;

	--color-focus: #4338ca;
	--focus-ring: 0 0 0 3px rgba(67, 56, 202, 0.28);
	/* 옆으로 넘치는 표 가장자리 그림자 */
	--color-scroll-shadow: rgba(15, 23, 42, 0.14);

	/* 글자: 1.333 비율 */
	--font-body: "GMW UI Sans", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
	--fs-xs: 0.75rem;
	--fs-caption: 0.8125rem;
	--fs-sm: 0.875rem;
	/* 읽어야 하는 보조 문장(힌트·설명): 15px 본문색. 회색 14px 은 시각·출처 같은 한 줄 정보에만. */
	--fs-hint: 0.9375rem;
	--fs-md: 1rem;
	--fs-lg: 1.3125rem;
	--fs-xl: 1.75rem;
	--fs-2xl: 2.3125rem;
	--fw-regular: 400;
	--fw-semibold: 600;
	--fw-bold: 700;
	--lh-tight: 1.2;
	--lh-snug: 1.4;
	--lh-table: 1.5;
	--lh-body: 1.6;
	--lh-prose: 1.7;
	--measure-prose: 68ch;
	--tracking-tight: -0.01em;
	--tracking-caps: 0.08em;

	/* 간격: 4px 격자 */
	--sp-1: 4px;
	--sp-2: 8px;
	--sp-3: 12px;
	--sp-4: 16px;
	--sp-5: 24px;
	--sp-6: 32px;
	--sp-7: 48px;
	--sp-8: 64px;
	--sp-9: 96px;

	--radius-xs: 4px;
	--radius-sm: 8px;
	--radius-md: 12px;
	--radius-lg: 18px;
	--radius-xl: 24px;
	--radius-full: 999px;

	--shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.04);
	--shadow-md: 0 4px 14px rgba(15, 23, 42, 0.07);
	--shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);

	--dur-fast: 150ms;
	--dur-mid: 250ms;
	--dur-slow: 400ms;
	--ease-standard: cubic-bezier(0.2, 0.8, 0.2, 1);
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);

	/* 크기 */
	--control-sm: 36px;
	--control-md: 44px;
	--control-lg: 52px;
	--filter-min-width: 8rem;
	--cost-input-min-width: 8.5rem;
	--round-amount-min-width: 12rem;
	--icon-sm: 16px;
	--icon-md: 20px;
	--icon-lg: 24px;
	--header-height: 64px;
	--tabbar-height: 64px;
	--border-thin: 1px;
	--border-thick: 3px;
	--textarea-min-height: 120px;
	--container: 1200px;
	--container-narrow: 720px;
	--container-form: 520px;

	--z-header: 50;
	--z-overlay: 80;
	--z-modal: 100;
	--z-toast: 120;
}
