/* 정원문화힐링센터 통합누리집 OPEN 기념 이벤트 — 상단 배너 + 레이어 팝업 (2026-12-02)
   대상: /healinggarden/list.do (WEB-INF/jsp/www/heal/list.jsp)
   공원안전제안(rsn-*, report_notice_*.css)과 같은 방식이고, 이름만 hev- 로 분리했다.
   투명 링크 좌표(%) = 시안 이미지 속 "신청하기" 버튼 실측 px 을 이미지 크기로 나눈 값.
     배너 1200x200 : 버튼 EVENT1 x941~1040 y40~80, EVENT2 x941~1040 y119~159
     팝업 640x764  : 버튼 EVENT1 x476~584 y301~348, EVENT2 x476~584 y491~538
   링크(누르는 영역)는 버튼보다 조금 넓게 잡아 작은 화면에서도 44px 이상이 되게 하고,
   포커스 테두리는 ::after 로 버튼 모양에만 그린다. */

/* 화면에는 안 보이고 화면낭독기만 읽는 글자 */
.hev-sr {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* 이미지 위 투명 링크 공통 */
.hev-link { position: absolute; display: block; z-index: 1; outline: 0; }
.hev-link:after {
	content: ""; position: absolute; border-radius: 999px; pointer-events: none;
}
.hev-link:focus { outline: 0; }
.hev-link:focus-visible:after { box-shadow: 0 0 0 2px #fff, 0 0 0 5px #0b3d18; }

/* ───────── 상단 배너 ───────── */
.hev-banner { margin: 0 0 24px; font-family: "Noto Sans KR", "Malgun Gothic", sans-serif; }
.hev-banner[hidden] { display: none; }
/* 타이틀 바로 아래(탭 위) — .sub-head 가 가운데 정렬 flex column 이라 탭(.sub-tabs)과 같은 폭·좌우 여백을 준다. 위아래 간격은 .sub-head 의 gap 이 맡는다. */
.heal-root .sub-head .hev-banner { width: 100%; max-width: var(--container); padding: 0 var(--container-pad-x); box-sizing: border-box; margin: 0; }

/* PC: 시안 이미지 + 신청하기 위 투명 링크 2개 */
.hev-banner__pc { position: relative; overflow: hidden; border-radius: 10px; }
.hev-banner__pc .hev-banner__img { display: block; width: 100%; height: auto; }
/* 누르는 영역 x935~1046 y34~86 / y113~165 (1200x200 기준) */
.hev-banner__pc .hev-link { left: 77.9167%; width: 9.25%; height: 26%; }
.hev-banner__pc .hev-link--1 { top: 17%; }
.hev-banner__pc .hev-link--2 { top: 56.5%; }
/* 버튼 모양(누르는 영역 안 x6~105 y6~47) */
.hev-banner__pc .hev-link:after { left: 5.4054%; top: 11.5385%; width: 89.1892%; height: 78.8462%; }

.hev-banner__m { display: none; }

/* 태블릿·모바일: 이미지 속 글자가 작아지므로 실제 글자로 표시 (공원안전제안 배너와 같은 1104px) */
@media all and (max-width: 1104px) {
	.hev-banner__pc { display: none; }
	.hev-banner__m {
		display: block; padding: 28px 28px 24px; box-sizing: border-box;
		border-radius: 10px; word-break: keep-all; color: #1d3b23;
		background: linear-gradient(135deg, #fbf6e6 0%, #eef6df 100%);
	}
	.hev-banner__m p, .hev-banner__m dl, .hev-banner__m dd, .hev-banner__m ul { margin: 0; padding: 0; }
	.hev-banner__title { font-size: 24px; font-weight: 800; line-height: 1.35; letter-spacing: -.02em; color: #173f22; }
	.hev-banner__title em { font-style: normal; color: #259b3a; }
	.hev-banner__info { display: flex; flex-wrap: wrap; gap: 2px 20px; margin-top: 10px !important; font-size: 15px; line-height: 1.5; }
	.hev-banner__info div { display: flex; }
	.hev-banner__info dt { font-weight: 700; }
	.hev-banner__info dt:after { content: " :"; margin-right: 6px; }
	.hev-banner__events { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px !important; list-style: none; }
	.hev-banner__event {
		display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
		padding: 16px 18px; box-sizing: border-box; background: #fff;
		border: 1px solid #d7e8cc; border-radius: 12px;
	}
	.hev-banner__badge {
		display: inline-block; padding: 3px 12px; font-size: 13px; font-weight: 700; line-height: 1.4;
		color: #fff; background: #1f6b2f; border-radius: 999px;
	}
	.hev-banner__name { font-size: 17px; font-weight: 700; line-height: 1.4; color: #1a1a1a; }
	.hev-banner__prize { font-size: 14px; line-height: 1.5; color: #333; }
	.hev-banner__prize b { color: #1f7a33; }
	.hev-banner__btn {
		display: inline-flex; align-items: center; justify-content: center; align-self: flex-end;
		min-height: 44px; margin-top: 4px; padding: 0 22px; box-sizing: border-box;
		font-size: 15px; font-weight: 700; line-height: 1.2; color: #fff !important; text-decoration: none;
		background: #1f6b2f; border-radius: 999px;
	}
	.hev-banner__btn:hover { background: #17561f; }
	.hev-banner__btn:focus-visible { outline: 0; box-shadow: 0 0 0 2px #fff, 0 0 0 5px #0b3d18; }
	/* 오른쪽 꺾쇠 */
	.hev-banner__btn:after {
		content: ""; display: block; width: 6px; height: 6px; margin-left: 8px;
		border-top: 2px solid #fff; border-right: 2px solid #fff; transform: rotate(45deg);
	}
}

@media all and (max-width: 767px) {
	.hev-banner { margin-bottom: 20px; }
	.hev-banner__m { padding: 22px 16px 16px; text-align: center; }
	.hev-banner__title { font-size: 21px; }
	.hev-banner__info { flex-direction: column; align-items: center; font-size: 14px; }
	.hev-banner__events { grid-template-columns: 1fr; }
	.hev-banner__event { align-items: center; text-align: center; }
	.hev-banner__btn { align-self: stretch; }
}

/* ───────── 레이어 팝업 ─────────
   z-index: FO common.css 고정 레이어(9999999)보다 위 (공원안전제안 팝업과 같은 값) */
html.hev-is-locked,
html.hev-is-locked body { overflow: hidden; }

.hev-dim {
	position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 2147483000;
	display: none; overflow-y: auto;
	padding: 16px; box-sizing: border-box; background: rgba(0, 0, 0, .6); outline: 0;
}
.hev-dim.is-open { display: flex; }

/* 88px = 위아래 여백 32 + 하단바 56. 0.8377 = 이미지 비율 640/764.
   화면 높이에 맞춰 줄이되 320px 아래로는 줄이지 않고(버튼 크기 유지) 대신 스크롤한다.
   margin:auto — 팝업이 화면보다 클 때 위쪽이 잘리지 않게 한다. */
.hev-popup {
	display: flex; flex-direction: column; flex: none; overflow: hidden; margin: auto;
	width: 640px; max-width: 100%;
	width: min(640px, max(320px, calc((100vh - 88px) * .8377)));
	font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
	border-radius: 12px; box-shadow: 0 12px 36px rgba(0, 0, 0, .3);
}
.hev-popup__body { position: relative; }
.hev-popup__img { display: block; width: 100%; height: auto; }
/* 누르는 영역 x456~604 y281~368 / y471~558 (640x764 기준) */
.hev-popup__body .hev-link { left: 71.25%; width: 23.125%; height: 11.3874%; }
.hev-popup__body .hev-link--1 { top: 36.7801%; }
.hev-popup__body .hev-link--2 { top: 61.6492%; }
/* 버튼 모양(누르는 영역 안 x20~128 y20~67) */
.hev-popup__body .hev-link:after { left: 13.5135%; top: 22.9885%; width: 73.6486%; height: 55.1724%; }

/* 하단바 */
.hev-popup__bar {
	display: flex; flex: none; align-items: center; justify-content: space-between;
	height: 56px; padding: 0 12px 0 24px; box-sizing: border-box; background: #000;
}
.hev-popup__today {
	display: inline-flex; align-items: center; margin: 0; min-height: 44px;
	font-size: 16px; font-weight: 400; line-height: 1; color: #fff; cursor: pointer;
}
.hev-popup__today input {
	-webkit-appearance: none; appearance: none;
	display: block; flex: none; width: 20px; height: 20px; margin: 0 10px 0 0; padding: 0;
	background: #fff center / 14px 14px no-repeat; border: 0; border-radius: 4px; cursor: pointer;
}
.hev-popup__today input:checked {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3.2 3.2L12 3.8' fill='none' stroke='%23000' stroke-width='2.2'/%3E%3C/svg%3E");
}
.hev-popup__close {
	display: inline-flex; align-items: center; height: 44px; margin: 0; padding: 0 12px;
	font: inherit; font-size: 16px; line-height: 1; color: #fff;
	background: none; border: 0; cursor: pointer;
}
/* 닫기 X 아이콘 */
.hev-popup__close:after {
	content: ""; display: block; width: 16px; height: 16px; margin-left: 10px;
	background:
		linear-gradient(45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%),
		linear-gradient(-45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%);
}
.hev-popup__today input:focus-visible,
.hev-popup__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

@media all and (max-width: 600px) {
	.hev-popup__bar { height: 52px; padding: 0 6px 0 16px; }
	.hev-popup__today, .hev-popup__close { font-size: 15px; }
	.hev-popup__close:after { width: 14px; height: 14px; margin-left: 8px; }
}
