/**
 * KRDS(디지털 정부 UI/UX 가이드라인) 정부 아이덴티티 스타일
 *  - 공식 배너(#krds-masthead)  : templates/thymeleaf/common/masthead.html
 *  - 건너뛰기 링크(.krds-skip-link): 포커스 시에만 보임(키보드 사용자용), 배너보다 앞에 위치
 *  - 운영기관 식별자(.krds-identifier): 푸터 마지막 구획(footer.css 에서 배치)
 * 높이는 common.css :root --masthead-height 하나로 고정. 본문 높이 계산식들이 이 값을 뺀다.
 */
.krds-skip-link {
	position: absolute;
	top: -100px;
	left: 0;
	z-index: 10000;
	padding: 8px 16px;
	background: #1d56bc;
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	border-radius: 0 0 6px 0;
}
.krds-skip-link:focus,
.krds-skip-link:focus-visible {
	top: 0;
	outline: 2px solid #fff;
	outline-offset: -3px;
}

/* 헤더 주메뉴를 <nav>로 감쌌으므로(KRDS 탐색 랜드마크) 기존 .gnb-wrap flex 배치가 그대로 적용되게 nav 는 상자를 만들지 않는다 */
#gnb .gnb-wrap > nav {
	display: contents;
}

#krds-masthead {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: var(--masthead-height);
	box-sizing: border-box;
	padding-inline: 16px;
	/* 남양주시 홈페이지(www.nyj.go.kr) 공식 배너와 동일: 배경 #F2F6FB, 글자 #1D1D1D, 국기 아이콘 24×16 */
	background: #F2F6FB;
	border-bottom: 1px solid #e3e9f2;
	color: #1d1d1d;
	font-family: var(--nexon);
	font-size: 14px;
	font-weight: var(--fontweight-regular);
	line-height: 1;
	white-space: nowrap;
	overflow: hidden;
}
#krds-masthead .krds-masthead-inner {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
#krds-masthead .krds-masthead-flag {
	display: inline-block;
	width: 24px;
	height: 16px;
}

/* 모바일: 두 줄 허용 */
@media (max-width: 640px) {
	#krds-masthead {
		height: auto;
		min-height: var(--masthead-height);
		padding-block: 8px;
		font-size: 12px;
		line-height: 1.4;
		white-space: normal;
		text-align: center;
	}
}
