@charset "utf-8";

/*
	캠프 사이트 서브페이지 — 게시판·갤러리·체험 프로그램 (Figma 05 D3 서브②③④, M5 배치2)

	★ 전 선택자가 body:not(.portal-site) 아래다. siteLayout 은 포털(IS_PORTAL_SITE)도 그리는데
	  같은 게시판 JSP 를 포털이 쓰므로, 포털 화면(03 F-04)이 이 디자인에 끌려가지 않게 한다.
	★ 색·모서리는 캠프 테마 토큰(site_theme → SiteThemeService.toCssVars)만 쓴다. 폴백은 NATURE_A 값.
	  --c-text-muted 는 테마 토큰에 아직 없다 — 폴백 #666 은 흰 바탕·--c-surface 양쪽에서 4.5:1 이상.
	★ 기능 불변 — 마크업은 훅 클래스만 더했고, 나머지는 기존 board.css/im_board.css 위에 덮는다.
*/

/* ── 목록 상단: 전체 N건(왼쪽) + 검색(오른쪽) ───────────────────────────── */
body:not(.portal-site) .board-toolbar {
	display: flex;
	flex-direction: row-reverse;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 24px;
}
body:not(.portal-site) .board-toolbar .search-wrap {
	padding: 0;
	margin: 0;
	background: none;
	border: 0;
}
body:not(.portal-site) .board-toolbar .search-box {
	justify-content: flex-end;
	flex-wrap: nowrap;
}
body:not(.portal-site) .board-toolbar .search-form {
	flex: 0 0 320px;
}
body:not(.portal-site) .board-toolbar .search-form .form-input {
	width: 100%;
	height: 44px;
	padding: 0 44px 0 16px;
	font-size: 14px;
	background: var(--c-surface, #f5f7ef);
	border: 1px solid var(--c-border, #d7d7d7);
	border-radius: 8px;
}
body:not(.portal-site) .board-toolbar .board-total {
	margin: 0;
	font-size: 15px;
	font-weight: 500;
	color: var(--c-text-muted, #666);
}
body:not(.portal-site) .board-toolbar .board-total strong {
	color: inherit;
	font-weight: inherit;
}

/* ── 공지·일반 목록 (default 스킨) ─────────────────────────────────────── */
body:not(.portal-site) .board-list {
	border-top: 2px solid var(--c-text-strong, #3c3c3c);
}
body:not(.portal-site) .board-list-item {
	align-items: center;
	gap: 16px;
	padding: 18px 16px;
	border-bottom: 1px solid var(--c-border, #d7d7d7);
}
body:not(.portal-site) .board-list-item.is-notice,
body:not(.portal-site) .board-list-item:hover {
	background: var(--c-surface, #f5f7ef);
}
body:not(.portal-site) .board-list .board-col {
	min-width: 0;
	padding: 0;
}
body:not(.portal-site) .board-list .board-col-num {
	flex: 0 0 48px;
	justify-content: flex-start;
	font-size: 14px;
	font-weight: 700;
}
body:not(.portal-site) .board-list .board-col-num .board-desc {
	font-size: 14px;
	color: var(--c-text-muted, #666);
}
/* 공지 아이콘 → 글자 "공지"(색만으로 구분하지 않는다) */
body:not(.portal-site) .board-list .board-icon-notice::before {
	content: "공지";
	padding: 0;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	color: var(--c-primary, #0c5a49);
}
body:not(.portal-site) .board-list .board-title {
	font-size: 16px;
	font-weight: 500;
	color: var(--c-text-strong, #3c3c3c);
}
body:not(.portal-site) .board-list-item:hover .board-title {
	color: var(--c-primary, #0c5a49);
}
body:not(.portal-site) .board-list .board-desc {
	font-size: 14px;
	color: var(--c-text-muted, #666);
}
body:not(.portal-site) .board-list .board-col-writer {
	display: none;
}

/* ── 페이지 번호 (Pagination: 40×40, 현재 = primary 채움) ─────────────────── */
body:not(.portal-site) .paging {
	margin-top: 24px;
}
body:not(.portal-site) .paging-pages :is(a, span) {
	width: 40px;
	height: 40px;
	font-size: 14px;
	color: var(--c-text, #494949);
	background: transparent;
	border: 0;
	border-radius: 8px;
}
body:not(.portal-site) .paging-pages span {
	font-weight: 700;
	color: #fff;
	background: var(--c-primary, #0c5a49);
}

/* ── 갤러리 (gallery02 카드 그리드: 3열 · 사진 240 · 제목·날짜) ─────────────── */
body:not(.portal-site) .gallery-list-type02 {
	gap: 24px 20px;
}
body:not(.portal-site) .gallery-list-type02 .gallery-item {
	gap: 10px;
}
body:not(.portal-site) .gallery-list-type02 .gallery-img-box {
	height: 240px;
	aspect-ratio: auto;
	border: 0;
	border-radius: var(--radius-card, 12px);
}
body:not(.portal-site) .gallery-list-type02 .gallery-item:hover .gallery-img {
	transform: none;
}
body:not(.portal-site) .gallery-list-type02 .gallery-text-box {
	gap: 10px;
}
body:not(.portal-site) .gallery-list-type02 .board-row:has(.gallery-content) {
	display: none;
}
body:not(.portal-site) .gallery-list-type02 .board-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--c-text-strong, #3c3c3c);
}
body:not(.portal-site) .gallery-list-type02 .gallery-item:hover .board-title {
	color: var(--c-primary, #0c5a49);
}
body:not(.portal-site) .gallery-list-type02 .gallery-bottom {
	margin-top: 0;
}
body:not(.portal-site) .gallery-list-type02 .board-desc {
	font-size: 13px;
	color: var(--c-text-muted, #666);
}

/* ── 체험 프로그램 목록 (카드 한 줄: 사진 220×150 · 정보 · 신청 버튼) ──────────── */
body:not(.portal-site) .m-boards.type-experience {
	display: flex;
	flex-direction: column;
	gap: 24px;
	border-top: 0;
}
body:not(.portal-site) .m-boards.type-experience .m-board {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 20px;
	background: var(--c-surface, #f5f7ef);
	border: 0;
	border-radius: 16px;
}
body:not(.portal-site) .m-boards.type-experience .m-board-thumbnail {
	flex: 0 0 220px;
	width: 220px;
	height: 150px;
	padding-top: 0;
	border: 0;
	border-radius: var(--radius-card, 12px);
}
body:not(.portal-site) .m-boards.type-experience .m-ratioBox-wrap img {
	width: 100%;
	height: 100%;
	min-height: 0;
	object-fit: cover;
	position: static;
	transform: none;
}
/* 버튼(.m-boards-btns)을 오른쪽 칸으로 — 마크업을 옮기지 않고 grid 로 배치한다 */
body:not(.portal-site) .m-boards.type-experience .m-board-texts {
	flex: 1 1 0;
	width: auto;
	padding-left: 0;
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 6px 24px;
}
body:not(.portal-site) .m-boards.type-experience .m-board-texts > :not(.m-board-bottom) {
	grid-column: 1;
}
body:not(.portal-site) .m-boards.type-experience .m-board-bottom {
	display: contents;
}
body:not(.portal-site) .m-boards.type-experience .m-infos {
	grid-column: 1;
}
body:not(.portal-site) .m-boards.type-experience .m-boards-btns {
	grid-column: 2;
	grid-row: 1 / span 3;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
}
body:not(.portal-site) .m-boards.type-experience .m-boards-btn {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	margin: 0;
	padding: 0 24px;
	font-size: 15px;
	font-weight: 700;
	color: var(--c-text-strong, #3c3c3c);
	background: transparent;
	border: 1px solid var(--c-border, #d7d7d7);
	border-radius: 8px;
}
body:not(.portal-site) .m-boards.type-experience .m-boards-btn.bg-primary {
	height: 52px;
	font-size: 16px;
	color: #fff;
	background: var(--c-primary, #0c5a49);
	border-color: var(--c-primary, #0c5a49);
}
/* 상태 배지: 가능 = primary 옅은 칠, 마감·대기 = 무채색 옅은 칠 — 글자는 항상 있다 */
body:not(.portal-site) .m-boards.type-experience .m-board-states {
	position: static;
}
body:not(.portal-site) .m-boards.type-experience .m-board-state {
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 700;
	border: 0;
	border-radius: 999px;
	color: var(--c-text, #494949);
	background: rgba(118, 118, 118, 0.12);
}
body:not(.portal-site) .m-boards.type-experience .m-board-state01 {
	color: var(--c-primary, #0c5a49);
	background: rgba(12, 90, 73, 0.12);
	background: color-mix(in srgb, var(--c-primary, #0c5a49) 12%, transparent);
}
body:not(.portal-site) .m-boards.type-experience .m-board-title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: var(--c-text-strong, #3c3c3c);
}
body:not(.portal-site) .m-boards.type-experience .m-infos.type01 .m-info {
	margin: 0;
	font-size: 14px;
	color: var(--c-text-muted, #666);
}
body:not(.portal-site) .m-boards.type-experience .m-infos.type01 .m-info-title {
	color: var(--c-text, #494949);
}

/* ── 모바일 ─────────────────────────────────────────────────────────── */
@media all and (max-width: 767px) {
	body:not(.portal-site) .board-toolbar {
		flex-direction: column;
		align-items: stretch;
	}
	body:not(.portal-site) .board-toolbar .search-form {
		flex: 1 1 auto;
	}
	/* 공지 목록: 한 줄 = [공지] 제목 / 날짜 (Figma 70:9625) */
	body:not(.portal-site) .board-list-item {
		flex-wrap: wrap;
		gap: 4px 8px;
		padding: 14px 0;
	}
	body:not(.portal-site) .board-list-item.is-notice,
	body:not(.portal-site) .board-list-item:hover {
		background: none;
	}
	body:not(.portal-site) .board-list .board-col-num {
		flex: 0 0 auto;
	}
	body:not(.portal-site) .board-list-item:not(.is-notice) .board-col-num,
	body:not(.portal-site) .board-list .board-col-views {
		display: none;
	}
	body:not(.portal-site) .board-list .board-icon-notice::before {
		font-size: 12px;
	}
	body:not(.portal-site) .board-list .board-list-title {
		flex: 1 1 0;
		width: auto;
	}
	body:not(.portal-site) .board-list .board-title {
		font-size: 15px;
	}
	body:not(.portal-site) .board-list .board-col-date {
		flex: 0 0 100%;
	}
	body:not(.portal-site) .board-list .board-col-date .board-desc {
		font-size: 12px;
	}
	body:not(.portal-site) .paging-pages :is(a, span) {
		width: 44px;
		height: 44px;
	}
	body:not(.portal-site) .gallery-list-type02 .gallery-img-box {
		height: auto;
		aspect-ratio: 3 / 2;
	}
	body:not(.portal-site) .m-boards.type-experience .m-board {
		flex-direction: column;
		align-items: stretch;
		padding: 16px;
	}
	body:not(.portal-site) .m-boards.type-experience .m-board-thumbnail {
		flex: none;
		width: 100%;
		height: auto;
		aspect-ratio: 22 / 15;
	}
	body:not(.portal-site) .m-boards.type-experience .m-board-texts {
		grid-template-columns: 1fr;
		margin-top: 0;
	}
	body:not(.portal-site) .m-boards.type-experience .m-boards-btns {
		grid-column: 1;
		grid-row: auto;
		flex-direction: row;
		margin-top: 8px;
	}
	body:not(.portal-site) .m-boards.type-experience .m-boards-btn {
		flex: 1;
	}
}
