/*
 * 손으로 쓴 공통 규칙 — 생성 CSS(header·header-post·footer·single·pages)가 담지 못한 상태값.
 * 옛 화면에서 Elementor JS·위젯 CSS 가 하던 일(헤더 고정, 메뉴 화살표, 지금 페이지·하위 메뉴 열림 색, 펼침 메뉴 열림, 등장 효과)을 같은 값으로.
 * 값은 옛 글 헤더 CSS(post-8997)·Elementor Pro widget-nav-menu.css·elementor/assets/lib/animations 그대로.
 * 헤더(#252)의 PowerPack 메뉴 상태값은 PowerPack 원본 CSS·조각 규칙(inc/pp-legacy.php)이 낸다.
 */

/*
 * 헤더 고정 — 옛 Elementor 「고정: 위」(헤더 b3b8900 · 글 헤더 3648dada, 데스크톱·태블릿·폰, 스크롤 효과 없음).
 * 옛 화면은 컨테이너를 fixed 로 띄우고 같은 크기의 빈 칸을 남겼다(고정 중 z-index 99 — e-sticky .elementor-sticky--active) —
 * 헤더 전체를 sticky 로 붙여 같은 자리·같은 쌓임으로 둔다.
 */
.na-hd {
	position: sticky;
	top: 0;
	z-index: 99;
}

/* 헤더 스크롤 효과 — 옛 헤더 사용자 CSS(post-252 컨테이너 b3b8900 · post-8997 컨테이너 3648dada): 10px 이상 내리면 바탕 남색. 맨 위에서는 투명. */
.na-hd :is(.hd-b3b8900, .hd2-3648dada).elementor-sticky--effects {
	background-color: #03092e !important;
}

/*
 * 하위 메뉴 화살표 — 옛 SmartMenus 가 링크 끝에 붙이던 것(.elementor-nav-menu .sub-arrow, caret-down 1em).
 * 색(fill)은 링크에서 물려받는다(옛 화면과 같음).
 */
.na-hd .elementor-nav-menu .sub-arrow {
	align-items: center;
	display: flex;
	line-height: 1;
	margin-block-end: -10px;
	margin-block-start: -10px;
	padding: 10px;
	padding-inline-end: 0;
}

.na-hd .elementor-nav-menu .sub-arrow .e-font-icon-svg {
	height: 1em;
	width: 1em;
}

/* 글 헤더 가로 메뉴: 하위 메뉴가 열린 링크(SmartMenus .highlighted)·지금 페이지(elementor-item-active) 색 — 옛 위젯 규칙(마우스 올림과 같은 값 #FFFFFF). */
.na-hd .hd2-2dadfc98__horizontal .elementor-item:is(.highlighted, .elementor-item-active) {
	color: #ffffff;
	fill: #ffffff;
}

/* 글 헤더 하위 메뉴·펼침 메뉴 링크: 열림·지금 페이지(옛 — 바탕 투명, 글자 전역 색 #508EC8). 마우스 올림·포커스는 생성 CSS 에 있다. */
.na-hd .hd2-2dadfc98 .elementor-nav-menu--dropdown a:is(.highlighted, .elementor-item-active) {
	background-color: #27348100;
	color: var(--e-global-color-18a204f);
}

/* 글 헤더 펼침 메뉴(767px 이하) 열림 — 옛 .elementor-nav-menu--toggle .elementor-menu-toggle.elementor-active + .elementor-nav-menu__container */
.na-hd .hd2-2dadfc98__toggle.elementor-active + .hd2-2dadfc98__container {
	animation: na-hide-scroll 0.3s backwards;
	max-height: var(--menu-height, 100vh);
	overflow-x: hidden;
	overflow-y: hidden;
	transform: scaleY(1);
}

@keyframes na-hide-scroll {
	0%,
	to {
		overflow: hidden;
	}
}

.na-hd .hd2-2dadfc98__toggle.elementor-active .hd2-2dadfc98__open {
	display: none;
}

.na-hd .hd2-2dadfc98__toggle.elementor-active .hd2-2dadfc98__close {
	display: inline;
}

/*
 * 등장 효과(옛 Elementor entrance animation — .elementor-invisible 로 감췄다가 화면에 들어오면 .animated + 효과 이름).
 * 동작은 page.js(data-na-anim · data-na-delay). 기본 1.25초, 「느리게」(animated-slow) 2초, 「빠르게」(animated-fast) 0.75초.
 * 효과 모양은 옛 elementor/assets/lib/animations/styles/*.css 그대로.
 */
[data-na-anim]:not(.na-animated) {
	visibility: hidden;
}

.na-animated {
	animation-duration: 1.25s;
}

.na-animated.animated-slow {
	animation-duration: 2s;
}

.na-animated.animated-fast {
	animation-duration: 0.75s;
}

.na-fadeIn {
	animation-name: na-fadeIn;
}

.na-fadeInUp {
	animation-name: na-fadeInUp;
}

.na-fadeInDown {
	animation-name: na-fadeInDown;
}

@keyframes na-fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes na-fadeInUp {
	from {
		opacity: 0;
		transform: translate3d(0, 100%, 0);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes na-fadeInDown {
	from {
		opacity: 0;
		transform: translate3d(0, -100%, 0);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.na-animated {
		animation: none !important;
	}
}

/*
 * 첫 화면 팝업(inc/popups.php) — 생성 CSS 가 감싸개에 display: flex 를 박아 두어 [hidden] 이 지는 것을 막는다.
 * site.js 가 창 load 때 hidden 을 떼고, 닫으면 다시 붙인다(옛 Elementor 대화상자의 hide() = display: none).
 */
[data-na-popup][hidden] {
	display: none !important;
}

/* 반복 안 하는 캐러셀(page.js loop 0): 끝 화살표 흐리게(옛 e-swiper.css .elementor-swiper-button.swiper-button-disabled),
   장이 한 화면에 다 들어가면 화살표·점 줄 감춤(옛 swiper-button-lock · swiper-pagination-lock). */
.na-p [data-na-prev].is-disabled,
.na-p [data-na-next].is-disabled { opacity: .3; }
.na-p [data-na-prev].is-locked,
.na-p [data-na-next].is-locked,
.na-p [data-na-pag].is-locked { display: none; }
