/* Material 3 브레이크포인트: expanded(>=840px) 데스크톱 가로 GNB / medium·compact(<=839px) 햄버거+드로어 */
.ch-navtoggle {
	display: none;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	cursor: pointer;
}
.ch-navtoggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: #fff;
	border-radius: 1px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}
.ch-navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ch-navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ch-navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.ch-drawer {
	display: none;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(320px, 86vw);
	background: var(--hero);
	box-shadow: -12px 0 32px rgba(0, 0, 0, 0.25);
	overflow-y: auto;
	z-index: 1000;
}
.ch-drawer nav {
	padding: 120px 24px 32px;
}
.ch-drawer ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.ch-drawer a {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 8px 4px;
	/* 컨트롤 폰트(디자인 시스템): 17px/400 — 데스크톱 GNB와 동일. */
	font-size: 17px;
	font-weight: 400;
	color: #fff;
	border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.ch-drawer a:hover,
.ch-drawer a:focus-visible {
	/* AA 4.5:1 텍스트 전용 토큰(어두운 --hero 배경 위, GNB hover와 동일 실패 케이스) — 원래
	   --accent(4.37:1)는 sub-AA. */
	color: var(--accent-text-dark, #c48b96);
}
.ch-drawer__sub {
	list-style: none;
	margin: 0;
	padding: 0 0 4px 16px;
}
.ch-drawer__sub a {
	min-height: 40px;
	font-size: 15px;
	font-weight: 400;
	opacity: 0.85;
	border-bottom: 0;
}

@media (max-width: 839px) {
	/* medium 이하 = 태블릿+모바일: 드로어 모드 */
	.ch-gnb { display: none; }
	.ch-navtoggle { display: flex; }
	/* 드로어가 헤더 우측(햄버거)까지 겹쳐 올라오므로, 헤더를 드로어보다 위 스택으로 고정해
	   열림 상태에서도 햄버거를 다시 탭해 닫을 수 있게 함(터치 기기는 Esc 키가 없음) */
	.ch-header { position: relative; z-index: 1001; }
	.ch-drawer.is-open { display: block; }
}

@media (max-width: 599px) {
	/* compact = 모바일 전용 조정 (푸터는 그리드 단일 컬럼 — footer.css 839 규칙) */
	.ch-footer__inner { justify-items: center; text-align: center; }
	.ch-footer__links { justify-content: center; }
	.ch-footer__sns { justify-content: center; }
}
