/*
 * 서브 TOP 배너
 * - fixed_header(100px 여백) 해제 → 로고·대메뉴 상단 정렬
 * - 로고만 배너 상단에 살짝 겹침
 * - 소메뉴명은 배너 사진 위에 올리지 않음 (본문 LNB/서브바)
 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

.church-brand,
.church-brand-name,
.church-brand-sub {
	font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* 서브 페이지: XEDITION fixed_header 여백·absolute 헤더 해제 */
.container.fixed_header:has(.visual.sub) {
	padding-top: 0 !important;
}

.container.fixed_header:has(.visual.sub) .header_wrap {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	width: auto !important;
	z-index: 30;
	margin-bottom: -18px;
	border-bottom: none;
	overflow: visible;
}

.container.fixed_header:has(.visual.sub) .header > h1.logo-item {
	position: relative;
	z-index: 35;
}

/* 서브 TOP 배너 — 사진 영역 + 바로 아래 제목 줄 */
.visual.sub {
	position: relative;
	min-height: 0;
	padding: 0 !important;
	overflow: visible;
	background: transparent !important;
	border: none;
}

.visual.sub .bg_img {
	display: block !important;
	position: relative;
	z-index: 0;
	width: 100%;
	height: 200px;
	border-top: 3px solid var(--church-forest, #1b4332);
	border-bottom: 3px solid var(--church-forest, #1b4332);
	background-size: cover !important;
	background-position: center center !important;
	background-repeat: no-repeat;
}

.visual.sub .mask {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1;
	height: 200px;
	opacity: 0.12;
	background: #000;
	pointer-events: none;
}

/* 배너 사진과 분리된 소메뉴 제목 줄 — 장식은 church_sub_layout.css */
.visual.sub .sub_title {
	display: block !important;
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: none;
	margin: 0;
	box-sizing: border-box;
	background: var(--church-cream, #fffef9);
	pointer-events: auto;
}

@media (max-width: 720px) {
	.container.fixed_header:has(.visual.sub) .header_wrap {
		margin-bottom: -12px;
	}

	.visual.sub .bg_img,
	.visual.sub .mask {
		height: 130px;
	}

	.visual.sub .sub_title {
		padding: 10px 16px 8px;
	}

	.visual.sub .sub_title h1 {
		font-size: 1rem;
	}
}

/* GNB 8개 대메뉴 한 줄 유지 (xedition 기본 max-width 742px → 줄바꿈) */
body .header .gnb {
	max-width: none;
}
body .header .gnb > ul > li > a {
	padding: 0 11px;
	font-size: 14px;
	letter-spacing: -0.02em;
}
@media (min-width: 1200px) {
	body .header .gnb > ul > li > a {
		padding: 0 14px;
		font-size: 15px;
	}
}

/* 브랜드 로고 — PNG 마크 + 텍스트 (확대해도 깨지지 않음)
 * 윗줄(대한예수교 장로회)은 마크를 제외한 '동명교회' 폭에 시작·끝 맞춤 */
.church-brand {
	display: inline-grid;
	grid-template-columns: auto auto;
	column-gap: 8px;
	row-gap: 0;
	align-items: end;
	max-width: 100%;
	font-size: 26px;
	line-height: 1;
	vertical-align: middle;
	color: inherit;
	text-decoration: none;
}
.church-brand-sub {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	width: 100%;
	box-sizing: border-box;
	margin: 0 0 -0.36em;
	padding: 0;
	font-size: 0.42em;
	font-weight: 600;
	letter-spacing: 0;
	color: #6b7280;
	line-height: 0.95;
	white-space: nowrap;
}
.church-brand-sub-ch {
	display: inline-block;
	flex: 0 0 auto;
	line-height: 0.95;
}
.church-brand-main {
	display: contents;
}
.church-brand-mark {
	grid-column: 1;
	grid-row: 2;
	display: block;
	flex: 0 0 auto;
	width: auto !important;
	height: 1.15em !important;
	max-height: none !important;
	max-width: none !important;
	object-fit: contain;
	align-self: center;
}
.church-brand-name {
	grid-column: 2;
	grid-row: 2;
	display: block;
	font-size: 1em;
	font-weight: 800;
	letter-spacing: -0.06em;
	line-height: 0.95;
	margin-top: 0;
	white-space: nowrap;
}
.church-brand-name .dm { color: #1b7a6e; }
.church-brand-name .ch { color: #3b82c4; }

@media (min-width: 901px) {
	.header h1.logo-item a {
		display: inline-flex;
		align-items: center;
		width: auto;
		height: 55px;
		line-height: 0;
	}
	.header > h1.logo-item img:not(.church-brand-mark) {
		display: block !important;
		width: 158px !important;
		height: 55px !important;
		max-height: none !important;
		object-fit: contain;
	}
	.header .church-brand-main {
		display: contents;
	}
	.header .church-brand {
		font-size: 26px;
	}
}

/* ── 서브 상세 레이아웃: 소제목(좌) · LNB(우 sticky) · 본문 상단 밀착 ── */
:root {
	--church-sub-lnb-width: 136px;
	--church-watermark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%232d6a4f' stroke-width='1.1' opacity='0.85'%3E%3Cpath d='M60 16v88M28 40h64M40 28l40 64M80 28L40 92'/%3E%3Ccircle cx='60' cy='60' r='36'/%3E%3C/g%3E%3C/svg%3E");
}

.visual.sub .sub_title {
	text-align: left;
	padding: 16px 24px 6px 28px;
	margin: 0;
	border-bottom: 1px solid rgba(45, 106, 79, 0.14);
	background:
		linear-gradient(105deg, rgba(116, 198, 157, 0.08) 0%, transparent 42%),
		var(--church-cream, #fffef9);
	overflow: hidden;
}

.visual.sub .sub_title::before {
	content: '';
	position: absolute;
	left: -30px;
	top: -20px;
	width: 220px;
	height: 220px;
	opacity: 0.07;
	pointer-events: none;
	background-image: var(--church-watermark);
	background-size: 120px 120px;
	background-repeat: no-repeat;
}

.visual.sub .sub_title::after {
	content: '';
	position: absolute;
	left: 0;
	top: 10px;
	bottom: 10px;
	width: 4px;
	border-radius: 0 3px 3px 0;
	background: linear-gradient(180deg, var(--church-forest, #1b4332) 0%, var(--church-mint, #74c69d) 55%, var(--church-accent, #d4a373) 100%);
}

.visual.sub .sub_title h1 {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 4px 0 4px 14px;
	font-size: clamp(1.45rem, 2.4vw, 1.95rem);
	font-weight: 800;
	line-height: 1.25;
	color: var(--church-forest, #1b4332);
	letter-spacing: -0.03em;
}

.visual.sub .sub_title h1::before {
	content: '';
	flex: 0 0 auto;
	width: 10px;
	height: 10px;
	background: var(--church-mint, #74c69d);
	transform: rotate(45deg);
	box-shadow: 0 0 0 3px rgba(116, 198, 157, 0.35);
}

.visual.sub .sub_title h1::after {
	content: '';
	display: block;
	position: absolute;
	left: 0;
	right: -120px;
	bottom: -2px;
	height: 2px;
	background: linear-gradient(90deg, rgba(45, 106, 79, 0.45) 0%, rgba(116, 198, 157, 0.25) 35%, transparent 72%);
}

.container:has(.visual.sub) .body.fixed-width.sub {
	display: grid;
	grid-template-columns: minmax(0, 1fr) var(--church-sub-lnb-width);
	gap: 0 16px;
	align-items: start;
	float: none;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0;
	padding: 0 20px 40px;
	box-sizing: border-box;
}

.container:has(.visual.sub) .body.fixed-width.sub.left {
	grid-template-columns: var(--church-sub-lnb-width) minmax(0, 1fr);
}

.container:has(.visual.sub) .body.fixed-width.sub.right .content {
	grid-column: 1;
	grid-row: 1;
}

.container:has(.visual.sub) .body.fixed-width.sub.right .lnb {
	grid-column: 2;
	grid-row: 1;
}

.container:has(.visual.sub) .body.fixed-width.sub.left .lnb {
	grid-column: 1;
	grid-row: 1;
}

.container:has(.visual.sub) .body.fixed-width.sub.left .content {
	grid-column: 2;
	grid-row: 1;
}

.container:has(.visual.sub) .body.fixed-width.sub .content {
	float: none !important;
	width: auto !important;
	min-height: 0 !important;
	padding: 10px 0 48px !important;
}

.container:has(.visual.sub) .body.fixed-width.sub .lnb {
	float: none !important;
	width: var(--church-sub-lnb-width) !important;
	padding: 0 !important;
	position: sticky;
	top: 14px;
	align-self: start;
	z-index: 5;
}

.container:has(.visual.sub) .body.fixed-width.sub .lnb::before {
	content: '소메뉴';
	display: block;
	padding: 11px 14px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--church-forest, #1b4332);
	background: transparent;
	border-bottom: 2px solid rgba(45, 106, 79, 0.18);
}

.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul {
	margin: 0;
	padding: 6px;
	list-style: none;
	border: 1px solid rgba(45, 106, 79, 0.16);
	border-radius: 12px;
	background: linear-gradient(180deg, #ffffff 0%, #f7faf6 100%);
	box-shadow: 0 6px 18px rgba(27, 67, 50, 0.08);
}

.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li {
	margin: 0 !important;
}

.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li + li {
	margin-top: 2px !important;
}

.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li > a,
.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li > span {
	display: block;
	position: relative;
	margin: 0 !important;
	padding: 9px 12px 9px 16px !important;
	border-radius: 8px;
	font-size: 13px !important;
	font-weight: 600;
	line-height: 1.35 !important;
	color: var(--church-ink, #1a2e28) !important;
	text-decoration: none;
	letter-spacing: -0.02em;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li > a::before {
	content: '';
	position: absolute;
	left: 7px;
	top: 50%;
	width: 4px;
	height: 4px;
	margin-top: -2px;
	border-radius: 50%;
	background: var(--church-mint, #74c69d);
	opacity: 0.6;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li > a:hover,
.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li > a:focus {
	background: rgba(116, 198, 157, 0.16) !important;
	color: var(--church-forest, #1b4332) !important;
}

/* 서브메뉴 선택 시: 하위 항목만 진한 녹색 */
.container:has(.visual.sub) .body.fixed-width.sub .lnb ul ul li.on a {
	background: linear-gradient(100deg, var(--church-forest-mid, #2d6a4f) 0%, var(--church-forest-light, #40916c) 100%) !important;
	color: #ffffff !important;
	box-shadow: 0 3px 10px rgba(27, 67, 50, 0.22);
}

/* 1뎁스 직접 선택(하위 없음): 진한 녹색 */
.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li.on:not(:has(ul li.on)) > a {
	background: linear-gradient(100deg, var(--church-forest-mid, #2d6a4f) 0%, var(--church-forest-light, #40916c) 100%) !important;
	color: #ffffff !important;
	box-shadow: 0 3px 10px rgba(27, 67, 50, 0.22);
}

.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li.on:not(:has(ul li.on)) > a::before {
	background: #ffffff;
	opacity: 1;
	transform: scale(1.25);
}

/* 서브 선택 시 상위 메뉴: 아주 연한 배경 */
.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li.on:has(ul li.on) > a {
	background: rgba(116, 198, 157, 0.1) !important;
	color: var(--church-muted, #4a5f56) !important;
	box-shadow: none !important;
	font-weight: 600;
}

.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li.on:has(ul li.on) > a::before {
	background: var(--church-mint, #74c69d);
	opacity: 0.45;
	transform: none;
}

/* 상세(해외선교·국내선교 등)는 해당 메뉴가 활성일 때만 펼침 */
.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li > ul {
	display: none;
}

.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li.on > ul {
	display: block;
}

.container:has(.visual.sub) .body.fixed-width.sub .lnb ul ul {
	margin: 2px 0 2px 8px;
	padding: 0;
	list-style: none;
	border-left: 2px solid rgba(45, 106, 79, 0.18);
}

.container:has(.visual.sub) .body.fixed-width.sub .lnb ul ul a::before {
	content: '–';
	position: absolute;
	left: 4px;
	top: 50%;
	margin-top: -0.55em;
	font-size: 11px;
	font-weight: 700;
	color: var(--church-mint, #74c69d);
	opacity: 0.85;
}

.container:has(.visual.sub) .body.fixed-width.sub .lnb ul ul a {
	position: relative;
	display: block;
	margin: 1px 0 !important;
	padding: 7px 10px 7px 18px !important;
	border-radius: 6px;
	font-size: 12px !important;
	font-weight: 500;
	color: var(--church-muted, #4a5f56) !important;
	text-decoration: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.container:has(.visual.sub) .body.fixed-width.sub .lnb ul ul a:hover,
.container:has(.visual.sub) .body.fixed-width.sub .lnb ul ul a:focus {
	background: rgba(116, 198, 157, 0.16) !important;
	color: var(--church-forest, #1b4332) !important;
}

@media (max-width: 900px) {
	.container:has(.visual.sub) .body.fixed-width.sub {
		grid-template-columns: 1fr;
		padding: 0 14px 32px;
	}

	.container:has(.visual.sub) .body.fixed-width.sub .lnb {
		position: static;
		width: 100% !important;
		grid-column: 1 !important;
		grid-row: 1 !important;
		margin-top: 4px;
		margin-bottom: 14px;
	}

	.container:has(.visual.sub) .body.fixed-width.sub .content {
		grid-column: 1 !important;
		grid-row: 2 !important;
		padding-top: 8px !important;
	}

	.container:has(.visual.sub) .body.fixed-width.sub .lnb ul ul {
		display: none;
	}

	.container:has(.visual.sub) .body.fixed-width.sub .lnb::before {
		content: '이 메뉴의 다른 페이지';
		display: block;
		margin: 0 0 6px;
		padding: 0 2px;
		font-size: 0.72rem;
		font-weight: 700;
		letter-spacing: 0.08em;
		color: var(--church-forest-mid, #2d6a4f);
		background: none;
		border: none;
		opacity: 0.85;
	}

	/* 1·2단계 소메뉴 — 한 줄 3개, 글자 높이 칩 */
	.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 5px;
		margin: 0;
		padding: 6px !important;
		list-style: none;
		border: 1px solid rgba(45, 106, 79, 0.14);
		border-radius: 10px;
		background:
			linear-gradient(165deg, rgba(255, 254, 249, 0.98) 0%, rgba(243, 249, 245, 0.95) 100%);
		box-shadow: 0 4px 12px rgba(27, 67, 50, 0.06);
	}

	.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li {
		display: block !important;
		flex: none !important;
		min-width: 0;
		margin: 0 !important;
	}

	.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li + li {
		margin-top: 0 !important;
	}

	.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li > a,
	.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li > span {
		display: flex !important;
		align-items: center;
		justify-content: center;
		min-height: 0;
		height: auto;
		margin: 0 !important;
		padding: 5px 4px !important;
		border-radius: 6px !important;
		border: 1px solid rgba(45, 106, 79, 0.14) !important;
		background: #ffffff !important;
		box-shadow: none;
		text-align: center !important;
		font-size: 0.75rem !important;
		font-weight: 600 !important;
		line-height: 1.25 !important;
		letter-spacing: -0.03em;
		color: var(--church-ink, #1a2e28) !important;
		text-decoration: none !important;
		word-break: keep-all;
		transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
	}

	.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li > a::before {
		display: none !important;
	}

	.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li > a:hover,
	.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li > a:focus {
		background: rgba(45, 106, 79, 0.07) !important;
		border-color: rgba(45, 106, 79, 0.28) !important;
		color: var(--church-forest, #1b4332) !important;
		transform: none;
		box-shadow: none;
	}

	.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li.on > a,
	.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li > a.active,
	.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li > a[class*="selected"] {
		background: linear-gradient(145deg, #1b4332 0%, #2d6a4f 100%) !important;
		border-color: transparent !important;
		color: #fffef9 !important;
		box-shadow: none;
		font-weight: 700 !important;
	}

	/*
	 * 3단계(해외선교·국내선교 상세):
	 * - 형제 소메뉴(동키데이·장학사업 등)는 그대로 3열 유지
	 * - 상세 칩만 맨 아래 전체 폭으로 분리
	 */
	.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li.on:has(> ul > li) {
		display: contents !important;
	}

	.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li.on:has(> ul > li) > a {
		display: flex !important;
		align-self: stretch;
		min-width: 0;
		order: 0;
	}

	.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li.on:has(> ul > li) > ul {
		display: grid !important;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		grid-column: 1 / -1;
		order: 100;
		gap: 5px;
		margin: 4px 0 0;
		padding: 6px !important;
		list-style: none;
		width: auto;
		border: 1px solid rgba(45, 106, 79, 0.12);
		border-radius: 8px;
		background: rgba(255, 255, 255, 0.72);
		border-left: 1px solid rgba(45, 106, 79, 0.12);
	}

	.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li.on:has(> ul > li) > ul::before {
		content: '상세 페이지';
		grid-column: 1 / -1;
		display: block;
		margin: 0 0 1px;
		padding: 0 2px;
		font-size: 0.68rem;
		font-weight: 700;
		letter-spacing: 0.06em;
		color: var(--church-forest-mid, #2d6a4f);
		opacity: 0.75;
	}

	.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li.on:has(> ul > li) > ul > li {
		margin: 0 !important;
		min-width: 0;
	}

	.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li.on:has(> ul > li) > ul > li > a {
		display: flex !important;
		align-items: center;
		justify-content: center;
		min-height: 0;
		height: auto;
		margin: 0 !important;
		padding: 5px 4px !important;
		border-radius: 6px !important;
		border: 1px solid rgba(45, 106, 79, 0.14) !important;
		background: #ffffff !important;
		text-align: center !important;
		font-size: 0.72rem !important;
		font-weight: 600 !important;
		line-height: 1.25 !important;
		color: var(--church-ink, #1a2e28) !important;
		text-decoration: none !important;
		word-break: keep-all;
	}

	.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li.on:has(> ul > li) > ul > li > a::before {
		display: none !important;
	}

	.container:has(.visual.sub) .body.fixed-width.sub .lnb > ul > li.on:has(> ul > li) > ul > li.on > a {
		background: linear-gradient(145deg, #1b4332 0%, #2d6a4f 100%) !important;
		border-color: transparent !important;
		color: #fffef9 !important;
	}
}

/* ============================================================
 * 모바일 내비 통일 규칙 (≤900px)
 * - 모든 페이지: PC xedition 레이아웃 + #mobile_menu_btn 햄버거
 * - 진모바일 m.layouts 는 config mobile.enabled=false 로 비활성
 * - 모듈 use_mobile=N 고정 (scripts/unify_mobile_nav.sh)
 * - layout.js pc-gnb 는 min-width:901px 에서만 활성
 * ============================================================ */
/* 모바일 — 헤더 흰 배경 + 브랜드 로고가 가로폭을 채움(벡터라 깨지지 않음) */
@media (max-width: 900px) {
	html {
		background: #ffffff !important;
		background-image: none !important;
	}
	body {
		background: #ffffff !important;
	}
	.container {
		background: #ffffff !important;
		box-shadow: none !important;
		max-width: 100% !important;
	}

	.header_wrap,
	.fixed_header .header_wrap,
	.container .header_wrap {
		background: #ffffff !important;
		background-color: #ffffff !important;
		border-bottom: 1px solid rgba(27, 67, 50, 0.1) !important;
		min-width: 0 !important;
	}

	.header_wrap::before {
		display: none !important;
	}

	.header,
	.header.sub,
	.fixed_header .header {
		position: relative !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 100% !important;
		max-width: none !important;
		min-height: 64px !important;
		height: auto !important;
		margin: 0 auto !important;
		padding: 10px 52px 10px 14px !important;
		background: #ffffff !important;
		background-color: #ffffff !important;
		box-sizing: border-box !important;
	}

	.header > h1,
	.header > h1.logo-item,
	.header.sub > h1.logo-item {
		float: none !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
		padding: 0 !important;
		line-height: 1 !important;
		text-align: center !important;
		position: relative !important;
		z-index: 1 !important;
	}

	.header > h1.logo-item a,
	.header > .logo-item a {
		display: flex !important;
		justify-content: center !important;
		width: 100% !important;
		height: auto !important;
		margin: 0 !important;
		line-height: 1 !important;
	}

	.header > h1.logo-item img:not(.church-brand-mark),
	.header > .logo-item img:not(.church-brand-mark) {
		display: none !important;
	}

	.header .church-brand {
		display: inline-grid !important;
		grid-template-columns: auto auto !important;
		column-gap: clamp(6px, 2vw, 12px) !important;
		row-gap: 0 !important;
		align-items: end !important;
		justify-content: center !important;
		width: auto !important;
		max-width: 100% !important;
		margin: 0 auto !important;
		font-size: clamp(28px, 8.6vw, 40px) !important;
	}
	.header .church-brand-sub {
		grid-column: 2 !important;
		grid-row: 1 !important;
		display: flex !important;
		justify-content: space-between !important;
		align-items: flex-end !important;
		width: 100% !important;
		margin: 0 0 -0.36em !important;
		padding: 0 !important;
		font-size: 0.42em !important;
		line-height: 0.95 !important;
		letter-spacing: 0 !important;
		text-align: left !important;
		white-space: nowrap !important;
	}
	.header .church-brand-main {
		display: contents !important;
	}
	.header .church-brand-mark,
	.header > h1 img.church-brand-mark,
	.header > h1.logo-item img.church-brand-mark {
		grid-column: 1 !important;
		grid-row: 2 !important;
		width: auto !important;
		height: 1.2em !important;
		max-height: none !important;
		max-width: none !important;
		align-self: center !important;
	}
	.header .church-brand-name {
		grid-column: 2 !important;
		grid-row: 2 !important;
		font-size: 1em !important;
		line-height: 0.95 !important;
		margin-top: 0 !important;
		white-space: nowrap !important;
	}

	.header > .side {
		display: none !important;
	}

	/* 햄버거만 헤더에 두고, 메뉴 패널은 열릴 때 전체 폭 드롭다운으로 표시 */
	.header .gnb,
	.header.sub .gnb {
		position: static !important;
		float: none !important;
		width: auto !important;
		height: auto !important;
		margin: 0 !important;
		padding: 0 !important;
		z-index: 40 !important;
	}

	.gnb #mobile_menu_btn,
	.gnb .menu_btn {
		display: block !important;
		position: absolute !important;
		top: 50% !important;
		right: 8px !important;
		transform: translateY(-50%) !important;
		z-index: 60 !important;
		height: 44px !important;
		width: 44px !important;
	}

	.gnb .menu_btn .menu_bar {
		top: 15px !important;
		left: 12px !important;
	}

	.gnb .menu_btn .menu_bar div {
		border-top-color: #1b4332 !important;
	}

	/* 닫힌 상태: 목록 숨김 (JS slideToggle과 맞춤) */
	.header .gnb > ul {
		display: none;
		position: absolute !important;
		left: 0 !important;
		right: 0 !important;
		top: 100% !important;
		width: 100% !important;
		max-width: 100vw !important;
		max-height: min(70vh, 520px) !important;
		overflow-x: hidden !important;
		overflow-y: auto !important;
		margin: 0 !important;
		padding: 8px 0 16px !important;
		background: #ffffff !important;
		border-bottom: 1px solid rgba(27, 67, 50, 0.12) !important;
		box-shadow: 0 16px 32px rgba(27, 67, 50, 0.14) !important;
		z-index: 55 !important;
		box-sizing: border-box !important;
		-webkit-overflow-scrolling: touch;
	}

	.header .gnb > ul > li {
		display: block !important;
		float: none !important;
		width: 100% !important;
		border-bottom: 1px solid rgba(27, 67, 50, 0.08) !important;
	}

	.header .gnb > ul > li > a {
		display: block !important;
		padding: 14px 18px !important;
		line-height: 1.35 !important;
		font-size: 1.05rem !important;
		font-weight: 700 !important;
		color: #1b4332 !important;
		text-align: left !important;
	}

	.header .gnb > ul > li > a::after {
		display: none !important;
	}

	/* 데스크톱 가로서브바용 depth 숨김을 모바일 아코디언에서 해제 */
	.header .gnb > ul .depth2,
	.header .gnb > ul .depth3,
	.header .gnb.church-gnb > ul > li > .depth2,
	.header .gnb.church-gnb > ul > li > .depth3 {
		display: block !important;
		position: static !important;
		float: none !important;
		width: 100% !important;
		min-width: 0 !important;
		margin: 0 !important;
		padding: 0 0 8px !important;
		background: #f7faf8 !important;
		box-shadow: none !important;
		border: none !important;
	}

	.header .gnb > ul .depth2 > li > a,
	.header .gnb > ul .depth3 > li > a {
		display: block !important;
		padding: 10px 18px 10px 28px !important;
		line-height: 1.4 !important;
		font-size: 0.95rem !important;
		font-weight: 500 !important;
		color: #2d6a4f !important;
	}

	.header .gnb > ul .depth3 > li > a {
		padding-left: 40px !important;
		color: #4a5f56 !important;
		font-size: 0.9rem !important;
	}

	.header .gnb > ul .depth2 > li.more > a::after {
		display: none !important;
	}

	/* 데스크톱 전용 서브바는 모바일에서 숨김 */
	.church-gnb-subbar {
		display: none !important;
	}

	.header_wrap,
	.fixed_header .header_wrap {
		overflow: visible !important;
		position: relative !important;
		z-index: 50 !important;
	}

	/* ≤479px 스톡 CSS가 LNB를 숨기므로, 세부 페이지에서도 형제 메뉴 칩은 유지 */
	.body .lnb,
	.container:has(.visual.sub) .body.fixed-width.sub .lnb {
		display: block !important;
	}
}

/* 모바일 레이아웃(.hd) */
html.xe-mobilelayout,
html.xe-mobilelayout body {
	background: #ffffff !important;
	background-image: none !important;
}

html.xe-mobilelayout .hd,
html.xe-mobilelayout body .hd,
.xe-mobilelayout .hd {
	position: relative !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: 64px !important;
	padding: 10px 52px 10px 14px !important;
	margin: 0 !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	border-bottom: 1px solid rgba(27, 67, 50, 0.1) !important;
	box-sizing: border-box !important;
	overflow: hidden !important;
}

html.xe-mobilelayout .hd .h1,
.xe-mobilelayout .hd .h1 {
	float: none !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: center !important;
	line-height: 1 !important;
}

html.xe-mobilelayout .hd .h1 a,
.xe-mobilelayout .hd .h1 a {
	display: flex !important;
	justify-content: center !important;
	width: 100% !important;
	line-height: 1 !important;
	margin: 0 !important;
	float: none !important;
}

html.xe-mobilelayout .hd .h1 > a > img:not(.church-brand-mark),
.xe-mobilelayout .hd .h1 > a > img:not(.church-brand-mark) {
	display: none !important;
}

html.xe-mobilelayout .hd .church-brand,
.xe-mobilelayout .hd .church-brand {
	display: inline-grid !important;
	grid-template-columns: auto auto !important;
	column-gap: clamp(6px, 2vw, 12px) !important;
	row-gap: 0 !important;
	align-items: end !important;
	width: auto !important;
	max-width: 100% !important;
	margin: 0 auto !important;
	font-size: clamp(28px, 8.6vw, 40px) !important;
}
html.xe-mobilelayout .hd .church-brand-sub,
.xe-mobilelayout .hd .church-brand-sub {
	grid-column: 2 !important;
	grid-row: 1 !important;
	display: flex !important;
	justify-content: space-between !important;
	align-items: flex-end !important;
	width: 100% !important;
	margin: 0 0 -0.36em !important;
	padding: 0 !important;
	font-size: 0.42em !important;
	line-height: 0.95 !important;
	letter-spacing: 0 !important;
	text-align: left !important;
	white-space: nowrap !important;
}
html.xe-mobilelayout .hd .church-brand-main,
.xe-mobilelayout .hd .church-brand-main {
	display: contents !important;
}
html.xe-mobilelayout .hd .church-brand-mark,
.xe-mobilelayout .hd .church-brand-mark,
html.xe-mobilelayout .hd img.church-brand-mark {
	grid-column: 1 !important;
	grid-row: 2 !important;
	width: auto !important;
	height: 1.2em !important;
	max-height: none !important;
	max-width: none !important;
}
html.xe-mobilelayout .hd .church-brand-name,
.xe-mobilelayout .hd .church-brand-name {
	grid-column: 2 !important;
	grid-row: 2 !important;
	font-size: 1em !important;
	line-height: 0.95 !important;
	margin-top: 0 !important;
	white-space: nowrap !important;
}

html.xe-mobilelayout .hd .fr,
.xe-mobilelayout .hd .fr {
	position: absolute !important;
	right: 10px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	float: none !important;
	margin: 0 !important;
	z-index: 2 !important;
}

html.xe-mobilelayout .hd .fl,
.xe-mobilelayout .hd .fl {
	position: absolute !important;
	left: 10px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	float: none !important;
	margin: 0 !important;
	z-index: 2 !important;
}
