/*!
 * ACTS Match — am-* 마크업 ↔ bdd-* 데스크탑 스타일 연결
 * templates/board/list.php 등이 am-* 클래스를 쓰고 front.css는 bdd-* 기준이라 별도 브리지 필요.
 * 미디어 조건 없이 로드 — 모바일은 front-shell이 .am-r-desktop 을 숨김.
 */

/* ─── 메인 3열 그리드 (필터 | 보드 | 사이드) ─── */
.am-responsive-shell > .am-r-desktop .am-board-list .am-board-main {
	max-width: 1280px;
	margin: 0 auto;
	padding: 12px 32px 60px;
	display: grid;
	/* 1열(필터)·3열(사이드) 각 10% 축소 → 2열(본문) 비중 확대 */
	grid-template-columns: 234px minmax(0, 1fr) 270px;
	gap: 24px;
	align-items: flex-start;
}

.am-responsive-shell > .am-r-desktop .am-board-list .am-board-main > p:empty,
.am-responsive-shell > .am-r-desktop .am-board-list .am-board-main > p:not(:has(*)),
.am-responsive-shell > .am-r-desktop .am-board-list .am-sidebar > p:empty,
.am-responsive-shell > .am-r-desktop .am-board-list .am-aside > p:empty,
.am-responsive-shell > .am-r-desktop .am-board-list .am-board > p:empty,
.am-responsive-shell > .am-r-desktop .am-board-list .am-card-grid > p:empty,
.am-responsive-shell > .am-r-desktop .am-board-list .am-highlight-grid > p:empty,
.am-responsive-shell > .am-r-desktop .am-board-list .am-pop-list > p:empty {
	display: none !important;
}

/* 게시판 히어로: assets/css/board-hero.css (Acts_Match_Board_Hero) */

/* ─── 좌측 필터 사이드바 ─── */
.am-responsive-shell > .am-r-desktop .am-board-list .am-sidebar {
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: sticky;
	top: 84px;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-filter-card {
	background: #fff;
	border-radius: 14px;
	padding: 18px;
	box-shadow: var(--hcjm-shadow-sm);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-filter-title {
	font-size: 13px;
	font-weight: 800;
	color: var(--hcjm-text);
	margin-bottom: 12px;
	letter-spacing: -0.3px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-filter-title small {
	font-size: 11px;
	color: var(--hcjm-muted);
	font-weight: 700;
	margin-left: auto;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-filter-radio-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 10px;
	margin-bottom: 4px;
	border-radius: 8px;
	text-decoration: none;
	color: var(--hcjm-text);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: -0.2px;
	transition: background var(--hcjm-dur-fast);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-filter-radio-link:hover {
	background: var(--hcjm-primary-faint);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-filter-radio-link.active {
	background: var(--hcjm-primary-faint);
	font-weight: 800;
	color: var(--hcjm-primary);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-filter-radio-link .count {
	font-size: 11px;
	color: var(--hcjm-muted);
	font-weight: 700;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-filter-radio-link.active .count {
	color: var(--hcjm-primary);
	font-weight: 800;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-cat-scroll {
	max-height: 280px;
	overflow-y: auto;
	margin: -4px -4px 0;
	padding: 0 4px;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-cat-scroll::-webkit-scrollbar {
	width: 4px;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-cat-scroll::-webkit-scrollbar-thumb {
	background: var(--hcjm-border);
	border-radius: 99px;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-cat-check {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 0;
	cursor: pointer;
	user-select: none;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-cat-check input {
	display: none;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-cat-check .box {
	width: 16px;
	height: 16px;
	border: 1.5px solid var(--hcjm-border);
	border-radius: 4px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all var(--hcjm-dur-fast);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-cat-check input:checked + .box {
	background: var(--hcjm-primary);
	border-color: var(--hcjm-primary);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-cat-check input:checked + .box::after {
	content: '';
	width: 9px;
	height: 9px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' fill='none' stroke='%23fff' stroke-width='3' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/contain no-repeat;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-cat-check .lbl {
	flex: 1;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--hcjm-text);
	letter-spacing: -0.2px;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-cat-check input:checked ~ .lbl {
	font-weight: 800;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-cat-check .count {
	font-size: 11px;
	color: var(--hcjm-muted);
	font-weight: 700;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-filter-radio {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-filter-radio .radio-btn {
	flex: 1;
	min-width: 0;
	text-align: center;
	display: block;
	padding: 7px 8px;
	background: var(--hcjm-bg);
	border: 1px solid var(--hcjm-border);
	border-radius: 7px;
	font-size: 11px;
	font-weight: 700;
	color: var(--hcjm-text-sub);
	cursor: pointer;
	letter-spacing: -0.2px;
	text-decoration: none;
	transition: all var(--hcjm-dur-fast);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-filter-radio .radio-btn.active {
	background: var(--hcjm-primary);
	color: #fff;
	border-color: var(--hcjm-primary);
}

/* ─── 중앙 보드 ─── */
.am-responsive-shell > .am-r-desktop .am-board-list .am-board {
	min-width: 0;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-type-toggle-bar {
	background: #fff;
	border-radius: 14px;
	padding: 8px;
	box-shadow: var(--hcjm-shadow-sm);
	display: flex;
	gap: 4px;
	margin-bottom: 16px;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-type-tab {
	flex: 1;
	height: 44px;
	background: transparent;
	border: 0;
	border-radius: 10px;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--hcjm-text-sub);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	letter-spacing: -0.3px;
	text-decoration: none;
	transition: all var(--hcjm-dur-fast);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-type-tab.active {
	background: var(--hcjm-text);
	color: #fff;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-type-tab.active.tab-offer {
	background: var(--bd-offer-fg);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-type-tab.active.tab-seeking {
	background: var(--bd-seeking-fg);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-type-tab-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 18px;
	line-height: 1;
	color: var(--bd-offer-fg, #4541ff);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-type-tab-icon i {
	font-family: remixicon !important;
	font-style: normal;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-type-tab.tab-all .am-type-tab-icon {
	color: var(--bd-offer-fg, #4541ff);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-type-tab.tab-seeking .am-type-tab-icon {
	color: var(--bd-seeking-fg, #b45309);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-type-tab.active .am-type-tab-icon,
.am-responsive-shell > .am-r-desktop .am-board-list .am-type-tab.active .am-type-tab-icon i {
	color: #fff;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-type-tab-label {
	white-space: nowrap;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-type-tab .cnt {
	font-size: 12px;
	color: var(--hcjm-muted);
	font-weight: 700;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-type-tab.active .cnt {
	color: rgba(255, 255, 255, 0.7);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-search-row {
	display: flex;
	gap: 10px;
	align-items: stretch;
	margin-bottom: 18px;
	padding: 12px 14px;
	background: #fff;
	border: 1px solid var(--hcjm-line, #e2e8f0);
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-search-input-wrap {
	flex: 1;
	position: relative;
	min-width: 0;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-search-input {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	background: #fffbeb;
	border: 2px solid #f59e0b;
	border-radius: 12px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--hcjm-text, #0f172a);
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	box-shadow: inset 0 1px 2px rgba(180, 83, 9, 0.08);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-search-input::placeholder {
	color: #92400e;
	opacity: 0.65;
	font-weight: 500;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-search-input:focus {
	outline: none;
	background: #fff;
	border-color: #d97706;
	box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.28);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-list-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
	padding: 0 4px;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-list-count {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13px;
	color: var(--hcjm-text-sub);
	font-weight: 600;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-list-summary {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0;
	line-height: 1.5;
	font-size: 14px;
	font-weight: 600;
	color: var(--hcjm-text-sub, #475569);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-list-summary__sep {
	margin: 0 6px;
	color: var(--hcjm-muted, #94a3b8);
	font-weight: 500;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-list-summary strong {
	color: var(--hcjm-primary, #4f46e5);
	font-weight: 800;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-list-summary em {
	font-style: normal;
	font-weight: 700;
	color: var(--hcjm-text, #0f172a);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-list-summary__profiles strong {
	color: var(--hcjm-text, #0f172a);
}
.am-responsive-shell > .am-r-desktop .am-board-list .bd-list-count-extra,
.am-responsive-shell > .am-r-desktop .am-board-list .bd-list-count-extra {
	margin: 4px 0 0;
	font-size: 12px;
	font-weight: 600;
	color: var(--hcjm-muted, #94a3b8);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-list-tools {
	display: flex;
	gap: 8px;
	align-items: center;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-sort-select {
	background: #fff;
	border: 1px solid var(--hcjm-border);
	padding: 8px 30px 8px 12px;
	border-radius: 8px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	color: var(--hcjm-text);
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='none' stroke='%238A8FA5' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-section-title {
	font-size: 15px;
	font-weight: 800;
	color: var(--hcjm-text);
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	gap: 6px;
	letter-spacing: -0.4px;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-section-title .cnt {
	color: var(--hcjm-muted);
	font-weight: 700;
	font-size: 13px;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-profile-section {
	margin-bottom: 16px;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-card-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-highlight-section {
	background: #fff;
	border-radius: 16px;
	padding: 18px 20px;
	box-shadow: var(--hcjm-shadow-sm);
	margin-bottom: 16px;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-highlight-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-highlight-wrap {
	position: relative;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-highlight-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	z-index: 2;
	background: var(--hcjm-gold);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	padding: 3px 8px;
	border-radius: 6px;
	letter-spacing: -0.2px;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-empty {
	background: #fff;
	border-radius: 14px;
	padding: 40px 24px 36px;
	text-align: center;
	box-shadow: var(--hcjm-shadow-sm);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-empty-text {
	font-size: 15px;
	font-weight: 800;
	color: var(--hcjm-text);
	margin: 0 0 6px;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-empty-sub {
	font-size: 13px;
	color: var(--hcjm-muted);
	font-weight: 600;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-pagination {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 4px;
	margin-top: 28px;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-page-btn {
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	background: #fff;
	border: 1px solid var(--hcjm-border);
	border-radius: 8px;
	color: var(--hcjm-text-sub);
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: all var(--hcjm-dur-fast);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-page-btn:hover {
	background: var(--hcjm-primary-faint);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-page-btn.active {
	background: var(--hcjm-primary);
	color: #fff;
	border-color: var(--hcjm-primary);
}

/* ─── 우측 사이드바 ─── */
.am-responsive-shell > .am-r-desktop .am-board-list .am-aside {
	display: flex;
	flex-direction: column;
	gap: 16px;
	position: sticky;
	top: 84px;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-aside-card {
	background: #fff;
	border-radius: 14px;
	padding: 16px 18px 18px;
	box-shadow: var(--hcjm-shadow-sm);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-aside-title {
	font-size: 13px;
	font-weight: 800;
	color: var(--hcjm-text);
	margin-bottom: 12px;
	letter-spacing: -0.3px;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-my-trust-banner {
	background: linear-gradient(135deg, var(--hcjm-primary-soft), var(--hcjm-primary-faint));
	border-radius: 10px;
	padding: 10px 12px;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 0;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-my-trust-text {
	font-size: 11px;
	color: var(--hcjm-text);
	font-weight: 700;
	line-height: 1.4;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-aside-link {
	display: inline-block;
	margin-top: 10px;
	font-size: 12px;
	color: var(--hcjm-primary);
	font-weight: 800;
	text-decoration: none;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-pop-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-pop-item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 4px 0;
	text-decoration: none;
	color: inherit;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-pop-item:hover .am-pop-title {
	color: var(--hcjm-primary);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-pop-rank {
	font-size: 13px;
	font-weight: 900;
	color: var(--hcjm-primary);
	width: 16px;
	flex-shrink: 0;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-pop-rank.cold {
	color: var(--hcjm-muted);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-pop-content {
	flex: 1;
	min-width: 0;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-pop-type {
	display: inline-flex;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 9.5px;
	font-weight: 800;
	margin-bottom: 3px;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-pop-type.offer {
	background: var(--bd-offer-bg);
	color: var(--bd-offer-fg);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-pop-type.seeking {
	background: var(--bd-seeking-bg);
	color: var(--bd-seeking-fg);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-pop-title {
	font-size: 12px;
	font-weight: 700;
	color: var(--hcjm-text);
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-pop-meta {
	font-size: 10.5px;
	color: var(--hcjm-muted);
	font-weight: 600;
	margin-top: 3px;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-ad-banner {
	background: linear-gradient(135deg, var(--hcjm-text) 0%, var(--hcjm-primary-dark) 60%, var(--hcjm-primary) 100%);
	color: #fff;
	border-radius: 14px;
	padding: 20px 18px;
	position: relative;
	overflow: hidden;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-ad-title {
	font-size: 15px;
	font-weight: 800;
	margin-bottom: 6px;
	position: relative;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-ad-desc {
	font-size: 11.5px;
	color: rgba(255, 255, 255, 0.75);
	line-height: 1.5;
	margin-bottom: 14px;
	position: relative;
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-ad-btn {
	background: #fff;
	color: var(--hcjm-primary) !important;
	border: 0;
	padding: 9px 18px;
	border-radius: 99px;
	font-size: 12px;
	font-weight: 800;
	text-decoration: none;
	display: inline-block;
	align-self: flex-start;
}

/* 필터·검색 버튼 — bdd-btn-mini 규칙과 동일 (am 클래스) */
.am-responsive-shell > .am-r-desktop .am-board-list button.am-btn-mini {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0 14px;
	border: 0;
	border-radius: 8px;
	background: var(--hcjm-primary);
	color: #fff !important;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 800;
	line-height: 1.2;
	cursor: pointer;
	transition: background var(--hcjm-dur-fast);
}
.am-responsive-shell > .am-r-desktop .am-board-list .am-cat-form button.am-btn-mini {
	margin-top: 10px;
	width: 100%;
	height: 36px;
}
.am-responsive-shell > .am-r-desktop .am-board-list button.am-btn-mini.search-btn {
	flex-shrink: 0;
	min-width: 76px;
	height: 48px;
	padding: 0 20px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -0.3px;
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}
.am-responsive-shell > .am-r-desktop .am-board-list button.am-btn-mini:hover {
	background: var(--hcjm-primary-dark);
}
.am-responsive-shell > .am-r-desktop .am-board-list button.am-btn-mini::before,
.am-responsive-shell > .am-r-desktop .am-board-list button.am-btn-mini::after {
	content: none !important;
	display: none !important;
}
