@charset "utf-8";

/* ============================================
   Event Board — Community Style (free-community 포크)
   색·라운드·그림자는 var(--*) 만 사용한다(DESIGN_SYSTEM.md §7-2).
   ============================================ */

/* 디자인 토큰 브릿지 — 값의 SSOT 는 tokens.css(:root). 여기서 하드코딩 금지.
   free-community/list.css :root 와 같은 관례. */
:root {
	/* 표준 토큰 별칭 */
	--fb-card:          var(--card);
	--fb-text:          var(--ink);
	--fb-text-sec:      var(--body);
	--fb-muted:         var(--muted);
	--fb-line:          var(--line);
	--fb-primary:       var(--brand);
	--fb-primary-hover: var(--brand-hover);
	--fb-primary-light: var(--brand-soft);
	--fb-radius:        var(--r-16);
	--fb-radius-sm:     var(--r-10);
	/* 로컬 전용 — 표준에 대응물 없음 */
	--fb-hover:         #f2f4f6;  /* 칩·뱃지 채움 (--fb-hover-lift 와 다른 값) */
	/* --fb-bg 삭제: 참조 0회 */
	/* --fb-hover-lift 등 3화면 공유 토큰과 --ev-* 의미색은 style.css 가 정의처
	   (style.css 는 목록·상세·쓰기 전부에서 로드됨) */
}

/* 상단 서브메뉴(.na-top-sidemenu): 나리야 네이티브 위젯 + 공통 레이어(theme/Nariya-A/css/custom-main.css)의 flat 탭 디자인 사용. 보드별 덮어쓰기 제거(나리야 공통기능과 충돌 방지). */

/* ============================================
   1. Wrapper — 통합 카드 하단
   ============================================ */
#bo_list_wrap.fb-wrap {
	background: var(--fb-card);
	border: none;
	border-radius: 0 0 var(--fb-radius) var(--fb-radius);
	padding: 0;
	box-shadow: none;
}

/* ============================================
   1.5. Community Banner
   ============================================ */
.fb-banner {
	padding: 0;
	background: transparent;
	border: none;
	border-radius: 0;
	margin-bottom: 8px;
	margin-top: -6px;
}
.fb-banner-inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 28px 32px;
	/* 의도된 다색 그라디언트 — §7.4 예외(fc 동일 자구), 토큰화하지 않는다 */
	background: linear-gradient(135deg, #3182f6 0%, #1b64da 60%, #0f4baf 100%);
	border-radius: var(--fb-radius);
	overflow: hidden;
	min-height: 135px; /* 상단 배너 규정 — DESIGN_SYSTEM §9 */
}
.fb-banner-deco {
	position: absolute;
	border-radius: 50%;
	opacity: 0.1;
	background: #fff;
}
.fb-banner-deco--1 {
	width: 180px;
	height: 180px;
	top: -60px;
	right: 60px;
}
.fb-banner-deco--2 {
	width: 100px;
	height: 100px;
	bottom: -30px;
	right: -10px;
}
.fb-banner-content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.fb-banner-badge {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 3px 10px;
	background: rgba(255,255,255,0.2);
	border-radius: var(--r-pill);
	font-size: 10.5px;
	font-weight: 700;
	color: #fff;
	letter-spacing: 1.5px;
	backdrop-filter: blur(4px);
	line-height: 1.5; /* 상속 차단 — 페이지 문맥따라 1.5/1.6 갈려 배너 높이가 달라짐 */
}
.fb-banner-title {
	font-size: 17px;
	font-weight: 800;
	color: #fff;
	margin: 0;
	letter-spacing: -0.5px;
	line-height: 1.35;
}
.fb-banner-desc {
	font-size: 12.5px;
	font-weight: 400;
	color: rgba(255,255,255,0.75);
	margin: 0;
	letter-spacing: -0.2px;
	line-height: 1.5;
}
.fb-banner-icon-area {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	min-width: 52px;
	background: rgba(255,255,255,0.15);
	border-radius: 14px; /* 기하학적 반경(52px 박스 전용) — 토큰화하지 않는다(§4), fc 동일 */
	color: #fff;
	font-size: 24px;
	backdrop-filter: blur(4px);
}
@media (max-width: 575px) {
	.fb-banner-inner { padding: 22px 20px; min-height: 85px; }
	.fb-banner-title { font-size: 15px; }
	.fb-banner-icon-area { width: 44px; height: 44px; min-width: 44px; font-size: 20px; }
}

/* ============================================
   2. Search Box
   ============================================ */
#bo_list_wrap.fb-wrap #bo_search {
	padding: 0 20px;
}

.fb-search-box {
	background: var(--fb-hover);
	border: 1px solid var(--fb-line);
	border-radius: var(--fb-radius-sm);
	padding: 14px 16px;
	margin: 12px 0 0;
}

.fb-search-row {
	display: flex;
	gap: 8px;
	align-items: center;
}

.fb-search-select {
	appearance: none;
	-webkit-appearance: none;
	/* 화살표 fill 은 data URI 내부라 var() 불가 — --muted(#8A9099) 와 수동 동기화 대상
	   (DESIGN_SYSTEM.md §7-4 "SVG 인라인 리터럴" 예외) */
	background: var(--fb-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%238A9099'/%3E%3C/svg%3E") no-repeat right 10px center;
	border: 1px solid var(--fb-line);
	border-radius: var(--r-8);
	padding: 8px 28px 8px 12px;
	font-size: 13px;
	color: var(--fb-text-sec);
	min-width: 90px;
	cursor: pointer;
	transition: border-color 0.15s;
}

.fb-search-select:focus {
	outline: none;
	border-color: var(--fb-primary);
}

.fb-search-input-group {
	flex: 1;
	display: flex;
	align-items: center;
	background: var(--fb-card);
	border: 1px solid var(--fb-line);
	border-radius: var(--r-8);
	overflow: hidden;
	transition: border-color 0.15s;
}

.fb-search-input-group:focus-within {
	border-color: var(--fb-primary);
}

.fb-search-input {
	flex: 1;
	border: none;
	background: transparent;
	padding: 8px 12px;
	font-size: 14px;
	color: var(--fb-text);
	outline: none;
}

.fb-search-input::placeholder {
	color: var(--fb-muted);
}

.fb-search-submit {
	border: none;
	background: var(--fb-primary);
	color: #fff;
	padding: 8px 14px;
	cursor: pointer;
	transition: background 0.15s;
}

.fb-search-submit:hover {
	background: var(--fb-primary-hover);
}

/* ============================================
   3. Category Chips (premium)
   ============================================ */

/* nav 컨테이너 리셋 */
#bo_list_wrap.fb-wrap #bo_cate {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-top: 16px !important;
	padding-bottom: 4px !important;
	padding-left: 20px !important;
	padding-right: 20px !important;
	border: none !important;
	background: transparent !important;
	overflow: visible !important;
}

/* nariya sly-tab 기본 보더 전부 제거 */
#bo_list_wrap.fb-wrap #bo_cate.sly-tab {
	border: none !important;
}

#bo_list_wrap.fb-wrap #bo_cate .d-flex {
	border: none !important;
	border-left: none !important;
}

#bo_list_wrap.fb-wrap #bo_cate hr {
	display: none !important;
}

/* Bootstrap 패딩 래퍼 리셋 */
#bo_list_wrap.fb-wrap #bo_cate .px-3,
#bo_list_wrap.fb-wrap #bo_cate .px-sm-0 {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Sly UL → 한 줄 flex */
#bo_list_wrap.fb-wrap #bo_cate #bo_cate_ul {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 8px !important;
	align-items: center !important;
	border: none !important;
	border-left: none !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin: 0 !important;
}

/* LI 리셋 */
#bo_list_wrap.fb-wrap #bo_cate #bo_cate_ul > li {
	list-style: none !important;
	flex-shrink: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	border: none !important;
}

/* ── Chip 공통 규격 ──
   nariya border + Bootstrap py-2/px-3 완전 오버라이드 */
#bo_list_wrap.fb-wrap #bo_cate #bo_cate_ul > li > a {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 34px !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	padding-left: 16px !important;
	padding-right: 16px !important;
	margin: 0 !important;
	border: none !important;
	border-top: none !important;
	border-right: none !important;
	border-bottom: none !important;
	border-left: none !important;
	border-radius: var(--r-8) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	line-height: 34px !important;
	letter-spacing: -0.01em !important;
	color: var(--fb-text-sec) !important;
	background: var(--fb-hover) !important;
	text-decoration: none !important;
	text-align: center !important;
	white-space: nowrap !important;
	box-sizing: border-box !important;
	transition: background 0.2s cubic-bezier(0.4, 0, 0.2, 1),
	            color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
	            box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
	cursor: pointer !important;
	-webkit-tap-highlight-color: transparent !important;
}

/* Hover */
#bo_list_wrap.fb-wrap #bo_cate #bo_cate_ul > li > a:hover {
	background: var(--fb-line) !important;
	color: var(--fb-text) !important;
	text-decoration: none !important;
}

/* Active chip */
#bo_list_wrap.fb-wrap #bo_cate #bo_cate_ul > li.active > a {
	background: var(--fb-text) !important;
	color: #fff !important;
	font-weight: 600 !important;
	box-shadow: 0 1px 3px rgba(25, 31, 40, 0.18) !important;
}

/* Sly prev/next 버튼 — 기본 숨김, overflow 시 표시 */
#bo_list_wrap.fb-wrap #bo_cate .sly-btn {
	display: none !important;
}
#bo_list_wrap.fb-wrap #bo_cate.sly-overflow .sly-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 28px !important;
	height: 34px !important;
	padding: 0 !important;
	border: none !important;
	border-radius: var(--r-8) !important;
	background: transparent !important;
	color: var(--fb-muted) !important;
	font-size: 15px !important;
	cursor: pointer !important;
}
#bo_list_wrap.fb-wrap #bo_cate.sly-overflow .sly-btn:hover {
	background: var(--fb-hover) !important;
	color: var(--fb-text-sec) !important;
}

/* ============================================
   4. Toolbar
   ============================================ */
.fb-toolbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 20px 12px;
}

.fb-toolbar-left,
.fb-toolbar-right {
	display: flex;
	align-items: center;
	gap: 6px;
}

/* Sort Button */
.fb-sort-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: transparent;
	border: none;
	padding: 4px 2px;
	font-size: 13px;
	font-weight: 600;
	color: var(--fb-text-sec);
	cursor: pointer;
	transition: color 0.15s;
}

.fb-sort-btn:hover,
.fb-sort-btn:focus {
	color: var(--fb-primary);
	outline: none;
}

.fb-sort-btn.dropdown-toggle::after {
	display: none;
}
.fb-sort-btn .fa-chevron-down {
	font-size: 9px;
	opacity: 0.5;
}

.fb-sort-dropdown {
	border: 1px solid var(--fb-line);
	border-radius: var(--fb-radius-sm);
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	padding: 4px 0;
	min-width: 120px;
}

a.fb-sort-item {
	display: block;
	padding: 8px 16px;
	font-size: 13px;
	color: var(--fb-text-sec);
	text-decoration: none;
	transition: background 0.1s;
}

a.fb-sort-item:hover {
	background: var(--fb-primary-light);
	color: var(--fb-primary);
	text-decoration: none;
}

/* Icon Buttons */
.fb-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: var(--r-8);
	border: 1px solid var(--fb-line);
	background: var(--fb-card);
	color: var(--fb-muted);
	font-size: 14px;
	cursor: pointer;
	transition: all 0.15s;
	text-decoration: none;
	padding: 0;
}

.fb-icon-btn:hover {
	border-color: var(--fb-primary);
	color: var(--fb-primary);
	text-decoration: none;
}

/* Admin Dropdown */
.fb-admin-dropdown {
	border: 1px solid var(--fb-line);
	border-radius: var(--fb-radius-sm);
	box-shadow: 0 4px 12px rgba(0,0,0,0.08);
	padding: 4px 0;
	min-width: 140px;
}

.fb-admin-dropdown .dropdown-item {
	font-size: 13px;
	padding: 8px 16px;
	color: var(--fb-text-sec);
}

.fb-admin-dropdown .dropdown-item:hover {
	background: var(--fb-primary-light);
	color: var(--fb-primary);
}

/* Write Button */
.fb-write-btn {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: var(--fb-primary);
	color: #fff;
	border: none;
	border-radius: var(--r-8);
	padding: 7px 16px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s;
	text-decoration: none;
	white-space: nowrap;
}

.fb-write-btn:hover {
	background: var(--fb-primary-hover);
	color: #fff;
	text-decoration: none;
}

/* ============================================
   5. Notice (푸른 배경 + 둥근모서리)
   ※ evg- 공지가 대체한 죽은 규칙 — 토큰 정합만 유지
   ============================================ */
.fb-notice {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 16px;
	background: var(--brand-soft);
	border-top: 1px solid var(--fb-line);
	border-bottom: 1px solid var(--fb-line);
	border-radius: var(--r-8);
	cursor: pointer;
}

.fb-notice-badge {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	background: var(--fb-text);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	border-radius: var(--r-6);
	letter-spacing: 0.2px;
}

.fb-notice-title {
	flex: 1;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
	min-width: 0;
}

.fb-notice-title a {
	color: var(--fb-text);
	text-decoration: none;
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fb-notice-title a:hover {
	color: var(--fb-primary);
	text-decoration: none;
}

.fb-comment-count {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	background: var(--fb-primary-light);
	color: var(--fb-primary);
	font-size: 11px;
	font-weight: 700;
	border-radius: var(--fb-radius-sm);
}

.fb-chk {
	flex-shrink: 0;
	margin: 0;
	cursor: pointer;
}

/* ============================================
   6. Post Card (커뮤니티 톤)
   ※ evg- 그리드가 대체한 죽은 규칙 포함 — 토큰 정합만 유지
   ============================================ */
.fb-post-list {
	margin: 0;
	padding: 0 20px;
}

.fb-card {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 0;
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--fb-line);
	border-radius: 0;
	cursor: pointer;
	margin: 0;
	transition: background 0.15s;
	position: relative;
}

.fb-card:last-child {
	border-bottom: none;
}

.fb-card:hover {
	background: var(--fb-hover-lift);
}

.fb-card-active {
	background: var(--brand-soft);
}

.fb-card-chk {
	flex-shrink: 0;
	margin: 3px 0 0 0;
	padding: 0;
	cursor: pointer;
}

.fb-card-chk input[type="checkbox"] {
	cursor: pointer;
}

.fb-card-content {
	flex: 1;
	min-width: 0;
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.fb-card-text {
	flex: 1;
	min-width: 0;
}

/* Card Head */
.fb-card-head {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 2px;
}

.fb-cat-badge {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	background: var(--fb-hover);
	color: var(--fb-text-sec);
	font-size: 11px;
	font-weight: 600;
	border-radius: var(--r-8);
	white-space: nowrap;
}

.fb-card-title {
	flex: 1;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0;
	min-width: 0;
}

.fb-card-title a {
	color: var(--fb-text);
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fb-card-title a:hover {
	color: var(--fb-primary);
}

/* ===== 전통 테이블형 리스트 (번호·제목·글쓴이·날짜·조회) ===== */
.fb-list-head {
	display: flex; align-items: center; gap: 12px;
	padding: 10px 12px; border-bottom: 2px solid var(--fb-line);
	font-size: 13px; color: var(--muted-2); font-weight: 600;
}
.fb-row {
	display: flex; align-items: center; gap: 12px;
	padding: 6px 12px; border-bottom: 1px solid var(--fb-line);
	cursor: pointer; transition: background 0.15s;
}
.fb-row:last-child { border-bottom: none; }
.fb-row:hover { background: var(--fb-hover-lift); }
.fb-row.fb-card-active { background: var(--brand-soft); }
.fb-col-num     { flex: 0 0 50px; text-align: center; color: var(--muted-2); font-size: 13px; }
.fb-col-subject { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 6px; }
.fb-col-author  { flex: 0 0 150px; min-width: 0; display: flex; align-items: center; gap: 0; line-height: 1; }
.fb-col-date    { flex: 0 0 92px; text-align: center; color: var(--muted-2); font-size: 14px; white-space: nowrap; }
.fb-col-hit     { flex: 0 0 56px; text-align: center; color: var(--muted-2); font-size: 14px; }
.fb-col-chk     { flex: 0 0 auto; }
.fb-subject-link {
	flex: 0 1 auto; min-width: 0;
	color: var(--fb-text); text-decoration: none; font-weight: 600; font-size: 15px;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fb-subject-link:hover { color: var(--fb-primary); }
.fb-col-subject .fb-cat-badge { flex-shrink: 0; }
.fb-cmt-cnt  { flex-shrink: 0; color: var(--fb-primary); font-weight: 700; font-size: 13px; }
.fb-img-icon { flex-shrink: 0; color: var(--muted-2); font-size: 0.9em; }
.fb-like-cnt { flex-shrink: 0; display: inline-flex; align-items: center; gap: 2px; color: var(--ev-red); font-size: 12px; }
.fb-row-notice .fb-col-subject .fb-subject-link { font-weight: 700; }
/* 글쓴이 칸 — 아바타 컴팩트 + 닉 말줄임 */
.fb-col-author .sv_wrap { font-size: 14px; max-width: 100%; white-space: nowrap; display: flex; align-items: center; line-height: 1; }
.fb-col-author .sv_member { display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.fb-col-author .lv-badge-wrap { width: 28px !important; flex-shrink: 0; }
/* 메타 그룹 (작성자·날짜·조회·추천) */
.fb-meta { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.fb-meta-ic { display: none; } /* PC: 헤더로 구분되므로 아이콘 숨김 */
@media (max-width: 575px) {
	/* 카드형: 헤더 숨김, 번호 숨김 */
	.fb-list-head { display: none; }
	.fb-row .fb-col-num { display: none; }
	/* 행을 2줄로 줄바꿈 */
	.fb-row { flex-wrap: wrap; gap: 4px 8px; align-items: center; }
	/* 1줄: 제목(+댓글수) */
	.fb-col-subject { flex: 1 1 auto; }
	/* 2줄: 닉네임 날짜 조회 추천 (메타 그룹을 통째로 다음 줄로) */
	.fb-meta {
		flex: 1 1 100%;
		justify-content: flex-start;
		gap: 12px;
		margin-top: 2px;
		font-size: 12px;
		color: var(--muted-2);
	}
	.fb-meta .fb-col-author { flex: 0 1 auto; max-width: 45%; }
	.fb-meta .fb-col-date,
	.fb-meta .fb-col-hit { flex: 0 0 auto; font-size: 12px; text-align: left; }
	/* 좁은 화면: 조회·추천을 아이콘 형태로 */
	.fb-meta-ic { display: inline-block; margin-right: 3px; opacity: 0.75; }
}

/* Card Preview — 1~2줄 */
.fb-card-preview {
	font-size: 13px;
	line-height: 1.5;
	color: var(--fb-muted);
	margin: 6px 0 0 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	word-break: break-word;
}

/* ── Right Aside (2-column layout) ── */
.fb-card-aside {
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 3px;
	min-width: 80px;
}

.fb-aside-top {
	display: flex;
	align-items: center;
	gap: 6px;
}

.fb-aside-author {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--fb-text);
	white-space: nowrap;
}

.fb-aside-author .xp-icon {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
}

.fb-aside-author .xp-icon img {
	height: 17px;
	width: auto;
	vertical-align: middle;
}

.fb-aside-author .sv_wrap {
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.fb-aside-author .sv_wrap .sv_member {
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.fb-aside-author .profile_img {
	display: inline-flex !important;
	align-items: center;
	flex-shrink: 0;
}

.fb-aside-time {
	font-size: 12.5px;
	color: var(--fb-muted);
	white-space: nowrap;
}

.fb-aside-stats {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 2px;
}

.fb-stat {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	font-size: 12.5px;
	color: var(--fb-muted);
}

.fb-stat i {
	font-size: 11.5px;
}

.fb-stat-good {
	color: var(--fb-primary);
}

/* Card Thumbnail — 우측 고정 */
.fb-card-thumb {
	flex-shrink: 0;
	width: 100px;
	height: 100px;
	border-radius: var(--fb-radius-sm);
	overflow: hidden;
	background: var(--fb-hover);
}

.fb-card-thumb a {
	display: block;
	width: 100%;
	height: 100%;
}

.fb-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.fb-card:hover .fb-card-thumb img {
	transform: scale(1.03);
}

/* ============================================
   7. Empty State
   ============================================ */
.fb-empty {
	text-align: center;
	padding: 60px 20px;
	color: var(--fb-muted);
}

.fb-empty .fa {
	font-size: 2rem;
	margin-bottom: 10px;
	display: block;
	opacity: 0.4;
}

.fb-empty p {
	font-size: 14px;
	margin: 0;
}

/* ============================================
   8. Pagination
   ============================================ */
.fb-pagination {
	padding: 16px 20px 20px;
}

.fb-pagination .pagination {
	gap: 4px;
}

.fb-pagination .page-item .page-link {
	border: 1px solid var(--fb-line);
	border-radius: var(--r-8);
	color: var(--fb-text-sec);
	font-size: 13px;
	padding: 6px 12px;
	transition: all 0.15s;
	background: var(--fb-card);
}

.fb-pagination .page-item .page-link:hover {
	background: var(--fb-primary-light);
	border-color: var(--fb-primary);
	color: var(--fb-primary);
}

.fb-pagination .page-item .page-link:focus { box-shadow: none; } /* BS4 기본 .2rem 포커스 링 — 클릭 순간 띠 잔상 제거 */
.fb-pagination .page-item .page-link:focus-visible { box-shadow: 0 0 0 2px var(--fb-primary-light); } /* 키보드 포커스만 유지 */

.fb-pagination .page-item.active .page-link {
	background: var(--fb-primary);
	border-color: var(--fb-primary);
	color: #fff;
}

/* ============================================
   9. Nariya Icon Overrides
   ============================================ */
.fb-card .na-icon,
.fb-notice .na-icon {
	margin-right: 3px;
	vertical-align: middle;
}

.fb-card .na-hicon {
	margin-right: 2px;
}

/* ============================================
   10. Override defaults within scope
   ============================================ */
#bo_list_wrap.fb-wrap #fboardlist {
	padding-bottom: 0;
}

/* ============================================
   11. Responsive
   ============================================ */
@media (max-width: 575px) {

	#bo_list_wrap.fb-wrap {
		border-radius: 0 0 var(--fb-radius-sm) var(--fb-radius-sm);
	}

	#bo_list_wrap.fb-wrap #bo_search {
		padding: 0 14px;
	}

	#bo_list_wrap.fb-wrap #bo_cate {
		padding-top: 12px !important;
		padding-bottom: 2px !important;
		padding-left: 14px !important;
		padding-right: 14px !important;
	}

	#bo_list_wrap.fb-wrap #bo_cate #bo_cate_ul {
		gap: 6px !important;
	}

	#bo_list_wrap.fb-wrap #bo_cate #bo_cate_ul > li > a {
		height: 32px !important;
		line-height: 32px !important;
		padding-left: 13px !important;
		padding-right: 13px !important;
		font-size: 12px !important;
		border-radius: var(--r-8) !important;
	}

	.fb-toolbar {
		padding: 8px 14px 10px;
		flex-wrap: wrap;
		gap: 8px;
	}

	.fb-post-list {
		padding: 0 14px;
	}

	.fb-notice {
		padding: 12px 14px;
	}

	.fb-card {
		padding: 14px 0;
		gap: 10px;
	}

	.fb-card-title {
		font-size: 14px;
	}

	.fb-card-preview {
		font-size: 12.5px;
		-webkit-line-clamp: 1;
	}

	.fb-card-thumb {
		width: 80px;
		height: 80px;
		border-radius: var(--r-8);
	}

	.fb-card-aside {
		min-width: 60px;
	}

	.fb-notice-title {
		font-size: 14px;
	}

	.fb-write-btn {
		padding: 6px 12px;
		font-size: 12px;
	}

	.fb-search-box {
		padding: 12px 14px;
	}

	.fb-search-row {
		flex-wrap: wrap;
	}

	.fb-search-select {
		flex: 1;
		min-width: 0;
	}

	.fb-search-input-group {
		flex-basis: 100%;
		margin-top: 6px;
	}

	.fb-pagination {
		padding: 14px 14px 16px;
	}
}

/* =====================================================================
   evg-: 이벤트 카드 그리드 (3열 카드형 목록)
   기존 fb-* 스타일은 그대로 보존. 본 블록은 카드 그리드 전용.
   ===================================================================== */

/* --- 공지 (그리드 위 한 줄 리스트) --- */
.evg-notices {
	margin: 4px 0 12px;
	border: 1px solid var(--line);
	border-radius: var(--r-12);
	background: var(--card);
	overflow: hidden;
}
.evg-notice {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	font-size: 14px;
	border-bottom: 1px solid var(--line-soft);
}
.evg-notice:last-child { border-bottom: none; }
.evg-notice__badge {
	flex-shrink: 0;
	height: 22px;
	padding: 0 9px;
	font-size: 11px;
	font-weight: 700;
	border-radius: var(--r-4);
	background: var(--ev-notice-red-soft);
	color: var(--ev-red);
	display: inline-flex;
	align-items: center;
}
.evg-notice__link {
	color: var(--ink);
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.evg-notice__link:hover { color: var(--brand); }
.evg-notice__cmt { font-size: 12px; color: var(--muted-2); flex-shrink: 0; }

/* --- 카드 그리드 --- */
.evg-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 8px;
}

/* --- 카드 --- */
.evg-card {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--r-12);
	overflow: hidden;
	transition: transform .2s, box-shadow .2s;
}
.evg-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--sh-md);
}
/* 활성 링 — --brand-soft(8%)는 링으로는 안 보인다 → 전용 --ev-active-ring */
.evg-card--active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--ev-active-ring); }

/* 썸네일 */
.evg-thumb {
	position: relative;
	display: block;
	aspect-ratio: 3/2;
	overflow: hidden;
	background: var(--thumb-bg);
}
.evg-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.evg-thumb__ph {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background: linear-gradient(135deg, var(--brand), var(--brand-hover));
	color: #fff;
}
.evg-thumb__ph i { font-size: 40px; }
.evg-thumb__ph b { font-size: 14px; font-weight: 800; letter-spacing: 3px; }

/* 좌상단 상태 배지 */
.evg-status {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	height: 24px;
	padding: 0 10px;
	font-size: 11px;
	font-weight: 700;
	border-radius: var(--r-6);
	display: inline-flex;
	align-items: center;
	color: #fff;
	line-height: 1;
}
.evg-status--open    { background: var(--ev-green); }
.evg-status--before  { background: var(--ev-slate); }
.evg-status--closed  { background: var(--ev-red); }
.evg-status--settled { background: var(--brand); }

/* 우상단 D-day */
.evg-dday {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	height: 22px;
	padding: 0 9px;
	font-size: 11px;
	font-weight: 700;
	border-radius: var(--r-6);
	display: inline-flex;
	align-items: center;
	background: rgba(0,0,0,.6);
	color: #fff;
	line-height: 1;
}

/* 체크박스 (관리자) — 상태 배지와 안 겹치게 좌하단 */
.evg-chk {
	position: absolute;
	bottom: 10px;
	left: 10px;
	z-index: 3;
	margin: 0;
}

/* 카드 바디 */
.evg-body { padding: 12px 14px 14px; }
.evg-tagrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 6px;
}
/* 유형칩 — 인디고("내 선택" 마킹과 같은 계열). 브랜드와 구별이 목적 */
.evg-type {
	display: inline-block;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 700;
	border-radius: var(--r-4);
	background: var(--ev-indigo-soft);
	color: var(--ev-indigo-text);
}
.evg-title {
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 8px;
	color: var(--ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.evg-title a { color: inherit; text-decoration: none; }
.evg-title a:hover { color: var(--brand); }
.evg-cmt { font-size: 12px; color: var(--muted-2); margin-left: 2px; }
.evg-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 12px;
	color: var(--muted-2);
}
.evg-meta .evg-hit i { margin-right: 3px; }
.evg-join {
	font-weight: 700;
	color: var(--brand);
}
.evg-author { color: var(--sub); }

/* --- 상품(보상 포인트) --- */
.evg-reward {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
	white-space: nowrap;
	padding: 3px 8px;
	font-size: 11px;
	font-weight: 600;
	color: var(--ev-amber);
	background: linear-gradient(135deg, var(--ev-amber-grad-a), var(--ev-amber-grad-b));
	border-radius: var(--r-6);
}
.evg-reward i { color: var(--ev-amber-ic); }
.evg-reward strong { font-weight: 800; color: var(--ev-amber-deep); }

/* --- 빈 목록 --- */
.evg-empty {
	text-align: center;
	padding: 64px 20px;
	color: var(--muted-2);
}
.evg-empty i { font-size: 40px; margin-bottom: 12px; display: block; }
.evg-empty p { font-size: 14px; margin: 0; }

/* --- 반응형 --- */
@media (max-width: 991px) {
	.evg-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.evg-grid { grid-template-columns: 1fr; gap: 12px; }
}

/* ============================================
   12. 숫자류 폰트 (Oxanium) — 한글은 Paperozi 폴백
   (D-day·댓글수·조회수·날짜·참여수·보상 포인트·페이징)
   ============================================ */
.evg-dday,
.evg-cmt,
.evg-notice__cmt,
.evg-hit,
.evg-date,
.evg-join,
.evg-reward strong,
.fb-pagination .page-item .page-link {
	font-family: var(--font-num);
}

/* ==========================================================
   다크모드 — evg 카드 그리드
   (기존 slate 팔레트 유지, 액센트만 바이올렛 → 블루 #60a5fa 정리)
   ========================================================== */
html.dark-mode .evg-notices { background: #1e293b; border-color: #334155; }
html.dark-mode .evg-notice { border-color: #0f172a; }
html.dark-mode .evg-notice__link { color: #e2e8f0; }
html.dark-mode .evg-notice__link:hover { color: #60a5fa; }
html.dark-mode .evg-card { background: #1e293b; border-color: #334155; }
html.dark-mode .evg-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.3); }
html.dark-mode .evg-thumb { background: #0f172a; }
html.dark-mode .evg-title { color: #e2e8f0; }
html.dark-mode .evg-title a:hover { color: #60a5fa; }
html.dark-mode .evg-type { background: rgba(96,165,250,.15); color: #60a5fa; }
html.dark-mode .evg-join { color: #60a5fa; }
html.dark-mode .evg-reward { background: rgba(245,158,11,.16); color: #fbbf24; }
html.dark-mode .evg-reward strong { color: #fcd34d; }
html.dark-mode .evg-author { color: #94a3b8; }
html.dark-mode .evg-empty { color: #64748b; }
