/* 감정평가 솔루션 · 사용자(공통) 스타일
   - 모든 사용자 페이지에 로드되는 최소 공통 CSS
   - 페이지 전용 스타일은 각 페이지 CSS(login.css 등)로 분리해 필요할 때만 로드 */

/* 모바일 WebView 앱: 터치 클릭 지연(300ms) 제거 — 더블탭 줌만 끄고 스크롤·핀치줌은 유지 */
* { touch-action: manipulation; }
html { -webkit-tap-highlight-color: rgba(37, 99, 235, .14); }
@media (hover: none) {
	a:active, button:active, [role="button"]:active, .btn-primary:active, .btn:active { opacity: .72; transition: none; }
}

:root {
	--bg: #f3f5f9;
	--fg: #1f2430;
	--muted: #6b7280;
	--line: #e5e7eb;
	--card: #ffffff;
	--brand: #1d4ed8;
	--brand-600: #2563eb;
	--brand-050: #eef3ff;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
	margin: 0;
	font-family: "Malgun Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: var(--bg);
	color: var(--fg);
	line-height: 1.6;
	word-break: keep-all;      /* 한글 단어가 중간에서 끊기지 않도록(공백에서만 줄바꿈) */
	overflow-wrap: break-word; /* 아주 긴 단어/URL은 넘치지 않게 */
	-webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* 사용자 페이지 세로 레이아웃: 헤더 - 본문(신축) - 푸터 */
.site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* ---- 사용자 헤더 ---- */
.site-header {
	background: #fff;
	border-bottom: 1px solid var(--line);
}
.site-header__inner {
	max-width: var(--site-w, 1200px); /* 페이지가 --site-w로 재정의 (로그인 1200 / 회원가입 1440) */
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo { width: 34px; height: 34px; object-fit: contain; }
.brand__name { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.brand__sub { color: var(--muted); font-size: 14px; font-weight: 500; }

.btn-home {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border: 1px solid var(--brand);
	border-radius: 8px;
	color: var(--brand);
	font-weight: 700;
	font-size: 14px;
	background: #fff;
	transition: background .15s;
}
.btn-home:hover { background: var(--brand-050); }
.btn-home svg { width: 16px; height: 16px; }

/* ---- 사용자 본문 ---- */
.site-main { flex: 1 0 auto; }

/* ---- 사용자 푸터 ---- */
.site-footer {
	flex-shrink: 0;
	border-top: 1px solid var(--line);
	background: #f8fafc;   /* 옅은 회색: 흰 페이지/회색 페이지 양쪽에서 자연스럽게 구분 */
	padding: 22px 24px;
	text-align: center;
}
.site-footer__links {
	display: flex;
	gap: 22px;
	justify-content: center;
	margin-bottom: 8px;
	font-size: 14px;
	color: #4b5563;
	font-weight: 600;
}
.site-footer__links a:hover { color: var(--brand); }
.site-footer__copy { color: var(--muted); font-size: 13px; }

/* ---- 기본 콘텐츠 카드(welcome 등) ---- */
.app-shell { max-width: 1200px; margin: 0 auto; }
.app-main { padding: 48px 24px; }
.welcome h1 { margin: 0 0 4px; font-size: 28px; }
.welcome .lead { color: var(--muted); margin: 0 0 28px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; }
.card h2 { margin-top: 0; font-size: 18px; }
code { background: #eef1f5; border-radius: 4px; padding: 1px 6px; font-family: Consolas, monospace; font-size: .9em; }

/* ---- 모바일: 사용자 헤더/푸터 ---- */
@media (max-width: 600px) {
	.site-header__inner { padding: 12px 16px; }
	.brand { gap: 8px; }
	.brand__logo { width: 30px; height: 30px; }
	.brand__name { font-size: 19px; }
	.brand__sub { display: none; }              /* 좁은 화면에서는 부제 숨김 */
	.btn-home { padding: 8px 12px; font-size: 13px; }
	.btn-home__ext { display: none; }           /* "홈페이지 이동" 숨김 → "부기사"만 */
	.site-footer { padding: 18px 16px; }
	.site-footer__links { gap: 14px; flex-wrap: wrap; }
}
