/**
 * growth-195: 사이트 상단 공지 띠. 사이트 토큰만, 폴백 없음.
 * 짙은 남색(--blue-900) + 흰 글자. 고정(sticky) 아님.
 */

.hnl-annc {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	width: 100%;
	box-sizing: border-box;
	padding: 8px var(--hnl-gutter);
	background: var(--blue-900);
	color: var(--white); /* audit-surface: #1e3a8a */
	font-size: 14px; /* 14px — 한 줄 띠 */
	font-weight: 500;
	line-height: 1.4;
}

.hnl-annc[hidden] {
	display: none;
}

.hnl-annc__text {
	flex: 1 1 12rem;
	margin: 0;
	min-width: 0;
	overflow-wrap: anywhere;
}

.hnl-annc__link {
	flex: none;
	color: var(--white);
	font-weight: 600;
	text-decoration: underline;
}

.hnl-annc__link:focus-visible {
	outline: 2px solid var(--white);
	outline-offset: 2px;
}

.hnl-annc__close {
	flex: none;
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--white);
	font-size: 20px; /* 20px */
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

.hnl-annc__close:focus-visible {
	outline: 2px solid var(--white);
	outline-offset: 2px;
}

/* 띠가 있을 때만 고정 헤더를 sticky 로 — 띠는 스크롤되면 사라지고 헤더는 남는다 */
html.hnl-has-annc .site-header,
body.hnl-has-annc .site-header {
	position: sticky;
	top: 0;
}
