/*!
 * ACTS Match — Mobile layout (≤1023px)
 * .am-m-wrap · .am-r-mobile 전용. 데스크탑 히어로는 board-hero.css + board-hero.php.
 */

/* 뷰포트 전환 셸 안에서만 모바일 블록 표시 */
.am-responsive-shell .am-r-mobile {
	width: 100%;
}

.am-m-wrap {
	--am-m-safe-top: env(safe-area-inset-top, 0px);
	--am-m-header-sticky-top: calc(60px + var(--am-m-safe-top));
	--am-m-primary: #4541FF;
	--am-m-primary-dark: #2E29D4;
	--am-m-primary-soft: #ECEBFF;
	--am-m-primary-faint: #F5F5FF;
	--am-m-bg: #F7F7FB;
	--am-m-line: #ECEBFF;
	--am-m-border: #E5E5F0;
	--am-m-text: #0F1024;
	--am-m-text-sub: #4A4D63;
	--am-m-muted: #8A8FA5;
	--am-m-live: #FF3B5C;
	--am-m-success: #16A34A;
	--am-m-gold: #D4A437;
	--am-m-shadow-sm: 0 4px 12px rgba(34, 28, 140, .06);
	--am-m-ease: cubic-bezier(.32, .72, 0, 1);
	--am-m-dur-fast: .15s;
	--bd-offer-bg: #ECEBFF;
	--bd-offer-fg: #4541FF;
	--bd-seeking-bg: #FFE8D9;
	--bd-seeking-fg: #C25E1F;
	font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
	font-size: 14px;
	line-height: 1.5;
	letter-spacing: -0.2px;
	color: var(--am-m-text);
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
	box-sizing: border-box;
	width: 100%;
	width: 100%;
	max-width: 100%;
	min-height: 100vh;
	margin: 0;
	background: #fff;
	position: relative;
	padding-bottom: 84px;
}

.am-m-wrap *, .am-m-wrap *::before, .am-m-wrap *::after {
	box-sizing: border-box;
}

body.am-device-mobile.acts-match-route-active,
body.am-layout-mobile.acts-match-route-active {
	background: var(--am-m-bg, #F7F7FB);
}

body.am-device-mobile.acts-match-route-active .entry-content,
body.am-device-mobile.acts-match-route-active #content,
body.am-device-mobile.acts-match-route-active .site-content,
body.am-layout-mobile.acts-match-route-active .entry-content,
body.am-layout-mobile.acts-match-route-active #content,
body.am-layout-mobile.acts-match-route-active .site-content {
	padding-left: 0 !important;
	padding-right: 0 !important;
	max-width: none !important;
}

/* ─── 모바일: 페이지 가로 흔들림 방지 (세로 스크롤만) ─── */
@media (max-width: 1023px) {
	html:has(body.acts-match-route-active) {
		overflow-x: hidden;
		overscroll-behavior-x: none;
		width: 100%;
		max-width: 100%;
	}

	body.acts-match-route-active {
		overflow-x: hidden;
		overscroll-behavior-x: none;
		width: 100%;
		max-width: 100%;
	}

	body.acts-match-route-active #page,
	body.acts-match-route-active #main,
	body.acts-match-route-active .site,
	body.acts-match-route-active .site-content,
	body.acts-match-route-active #content,
	body.acts-match-route-active .entry-content,
	body.acts-match-route-active .am-responsive-shell,
	body.acts-match-route-active .am-r-mobile,
	body.acts-match-route-active .am-m-wrap,
	body.acts-match-route-active .am-m-wrap .am-app {
		overflow-x: hidden;
		max-width: 100%;
		box-sizing: border-box;
	}

	/* 분야 칩만 내부 가로 스크롤 — 타입 탭은 3열 고정(중앙) */
	body.acts-match-route-active .am-m-wrap .bd-type-toggle {
		max-width: 100%;
		overflow-x: hidden;
		overflow-y: hidden;
	}

	body.acts-match-route-active .am-m-wrap .bd-cat-row {
		max-width: 100%;
		overflow-x: auto;
		overflow-y: hidden;
		overscroll-behavior-x: contain;
		-webkit-overflow-scrolling: touch;
	}
}

/* ─── App shell + Header (데모 .am-header / 템플릿 실마크업) ─── */
.am-m-wrap .am-app {
	width: 100%;
	position: relative;
}

.am-m-header,
.am-m-wrap .am-header,
.am-r-mobile .am-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: linear-gradient(
		to bottom,
		#000 0,
		#000 var(--am-m-safe-top, env(safe-area-inset-top, 0px)),
		#fff var(--am-m-safe-top, env(safe-area-inset-top, 0px)),
		#fff 100%
	);
	padding: calc(10px + var(--am-m-safe-top, env(safe-area-inset-top, 0px))) 14px 12px;
	box-sizing: border-box;
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 8px;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	max-height: none !important;
	border-bottom: 1px solid rgba(15, 16, 36, .06);
}

.am-m-back-btn,
.am-m-circle-btn,
.am-m-wrap .am-back-btn,
.am-m-wrap .am-circle-btn,
.am-r-mobile .am-back-btn,
.am-r-mobile .am-circle-btn,
body.acts-match-route-active .entry-content a.am-back-btn,
body.acts-match-route-active .entry-content button.am-circle-btn {
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	max-width: 38px !important;
	min-height: 38px !important;
	max-height: 38px !important;
	flex: 0 0 38px !important;
	align-self: center !important;
	background: transparent;
	border: 0 !important;
	box-shadow: none !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: var(--am-m-text) !important;
	cursor: pointer;
	border-radius: 50% !important;
	text-decoration: none !important;
	padding: 0 !important;
	margin: 0 !important;
	font-family: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	line-height: 1 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
}

.am-m-back-btn:active,
.am-m-wrap .am-back-btn:active {
	background: var(--am-m-primary-soft) !important;
}

.am-m-circle-btn:not(.acts-match-hc-menu-trigger),
.am-m-wrap .am-circle-btn:not(.acts-match-hc-menu-trigger),
body.acts-match-route-active .entry-content button.am-circle-btn:not(.acts-match-hc-menu-trigger) {
	background: var(--am-m-primary-faint) !important;
}

.am-m-circle-btn:not(.acts-match-hc-menu-trigger):active,
.am-m-wrap .am-circle-btn:not(.acts-match-hc-menu-trigger):active {
	background: var(--am-m-primary-soft) !important;
	transform: scale(.94);
}

.am-m-wrap .am-back-btn svg,
.am-m-wrap .am-circle-btn svg,
.am-m-header svg {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

.am-m-wrap .am-circle-btn svg {
	width: 19px;
	height: 19px;
}

/* hc-joyn-menu 인헤더 햄버거 — 플로팅(fixed) 해제, 헤더 행 정렬, 파란 원·흰 아이콘 */
html body.acts-match-route-active .am-r-mobile .am-header button.hc-joyn-menu-trigger.acts-match-hc-menu-trigger,
html body.acts-match-route-active .am-r-mobile .am-m-header button.hc-joyn-menu-trigger.acts-match-hc-menu-trigger,
html body.acts-match-route-active .am-m-wrap .am-header button.hc-joyn-menu-trigger.acts-match-hc-menu-trigger,
html body.acts-match-route-active .am-m-wrap .am-m-header button.hc-joyn-menu-trigger.acts-match-hc-menu-trigger {
	all: unset;
	box-sizing: border-box !important;
	position: relative !important;
	top: auto !important;
	right: auto !important;
	left: auto !important;
	bottom: auto !important;
	inset: auto !important;
	transform: none !important;
	transform-origin: center center !important;
	z-index: 2 !important;
	width: 42px !important;
	height: 42px !important;
	min-width: 42px !important;
	max-width: 42px !important;
	min-height: 42px !important;
	max-height: 42px !important;
	flex: 0 0 42px !important;
	align-self: center !important;
	margin: 0 !important;
	padding: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0 !important;
	border: 1px solid rgba(255, 255, 255, .22) !important;
	border-radius: 50% !important;
	background: linear-gradient(155deg, var(--am-m-primary) 0%, var(--am-m-primary-dark) 100%) !important;
	box-shadow: 0 6px 18px rgba(46, 41, 212, .32) !important;
	color: #fff !important;
	cursor: pointer !important;
	-webkit-tap-highlight-color: transparent !important;
	touch-action: manipulation !important;
}

html body.acts-match-route-active .am-r-mobile .am-header button.hc-joyn-menu-trigger.acts-match-hc-menu-trigger:hover,
html body.acts-match-route-active .am-m-wrap .am-header button.hc-joyn-menu-trigger.acts-match-hc-menu-trigger:hover {
	transform: none !important;
	box-shadow: 0 10px 26px rgba(46, 41, 212, .38) !important;
	filter: brightness(1.06);
}

html body.acts-match-route-active .am-r-mobile .am-header button.hc-joyn-menu-trigger.acts-match-hc-menu-trigger:active,
html body.acts-match-route-active .am-m-wrap .am-header button.hc-joyn-menu-trigger.acts-match-hc-menu-trigger:active {
	transform: scale(.94) !important;
	filter: brightness(.96);
}

html body.acts-match-route-active .am-r-mobile .am-header button.hc-joyn-menu-trigger.acts-match-hc-menu-trigger i,
html body.acts-match-route-active .am-m-wrap .am-header button.hc-joyn-menu-trigger.acts-match-hc-menu-trigger i {
	font-family: remixicon, 'remixicon' !important;
	font-size: 20px !important;
	line-height: 1 !important;
	display: block !important;
	color: #fff !important;
}

html body.acts-match-route-active .am-r-mobile .am-header button.hc-joyn-menu-trigger.acts-match-hc-menu-trigger .hc-joyn-menu-trigger-text,
html body.acts-match-route-active .am-m-wrap .am-header button.hc-joyn-menu-trigger.acts-match-hc-menu-trigger .hc-joyn-menu-trigger-text {
	display: none !important;
}

.am-m-title-block,
.am-m-wrap .am-title-block {
	text-align: center;
	flex: 1 1 auto !important;
	min-width: 0;
	padding: 0 6px;
	width: auto !important;
	max-width: none !important;
}

.am-m-page-name,
.am-m-wrap .am-page-name {
	font-size: 16px;
	font-weight: 800;
	letter-spacing: -0.5px;
	line-height: 1.2;
	color: var(--am-m-text);
	margin: 0;
}

.am-m-page-name-inner {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	max-width: 100%;
}

.am-m-page-logo-ring {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 1px solid #0f1024;
	box-sizing: border-box;
	background: #fff;
}

.am-m-page-logo {
	display: block;
	width: 18px;
	height: auto;
	max-height: 20px;
	color: var(--am-m-primary, var(--hcjm-primary, #4541ff));
}

.am-m-page-name-text {
	display: inline-block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 900;
	font-synthesis: weight;
	font-variation-settings: 'wght' 900;
}

.am-m-page-name-text .am-acts-title-acts,
.am-m-page-name-text .am-acts-title-rest {
	font-weight: 900;
	font-synthesis: weight;
	font-variation-settings: 'wght' 900;
}

.am-m-page-name-text .am-acts-title-acts {
	display: inline;
	background: linear-gradient(
		125deg,
		var(--hcjm-primary-light, #6b66ff) 0%,
		var(--hcjm-primary, #4541ff) 38%,
		var(--hcjm-primary-dark, #2e29d4) 100%
	);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	/* 그라디언트 클립 텍스트가 얇게 보이는 현상 보정 */
	-webkit-text-stroke: 0.35px rgba(69, 65, 255, 0.25);
	paint-order: stroke fill;
}

.am-m-page-name-text .am-acts-title-rest {
	display: inline;
	color: var(--am-m-text, var(--hcjm-text, #0f172a));
	-webkit-text-fill-color: var(--am-m-text, var(--hcjm-text, #0f172a));
}

.am-m-breadcrumb,
.am-m-wrap .am-breadcrumb {
	font-size: 11px;
	color: var(--am-m-muted);
	margin-top: 1px;
	font-weight: 600;
}

.am-m-breadcrumb b,
.am-m-wrap .am-breadcrumb b {
	color: var(--am-m-primary);
	font-weight: 700;
}

/* 게시판 목록 헤더 — 브레드크럼 없음, 로고·타이틀 확대 */
.am-board-list.am-m-wrap .am-m-header {
	padding-top: calc(12px + var(--am-m-safe-top, env(safe-area-inset-top, 0px)));
	padding-bottom: 14px;
}

.am-board-list.am-m-wrap .am-m-page-name,
.am-board-list.am-m-wrap .am-page-name,
body.acts-match-route-active .am-board-list.am-m-wrap .am-m-header h1.am-m-page-name {
	font-size: 22px;
	letter-spacing: -0.7px;
	line-height: 1.15;
	font-weight: 900 !important;
	font-synthesis: weight;
	font-variation-settings: 'wght' 900;
}

.am-board-list.am-m-wrap .am-m-page-name-inner {
	gap: 10px;
}

.am-board-list.am-m-wrap .am-m-page-logo-ring {
	width: 42px;
	height: 42px;
}

.am-board-list.am-m-wrap .am-m-page-logo {
	width: 26px;
	max-height: 30px;
}

.am-board-list.am-m-wrap .am-m-page-name-text,
body.acts-match-route-active .am-board-list.am-m-wrap .am-m-header .am-m-page-name-text {
	font-size: 1em;
	font-weight: 900 !important;
	font-variation-settings: 'wght' 900;
}

.am-board-list.am-m-wrap .am-m-page-name-text .am-acts-title-acts,
body.acts-match-route-active .am-board-list.am-m-wrap .am-m-header .am-acts-title-acts {
	font-weight: 900 !important;
	font-variation-settings: 'wght' 900;
	-webkit-text-fill-color: transparent !important;
	color: transparent !important;
	-webkit-text-stroke: 0.45px rgba(69, 65, 255, 0.35);
}

.am-board-list.am-m-wrap .am-m-page-name-text .am-acts-title-rest,
body.acts-match-route-active .am-board-list.am-m-wrap .am-m-header .am-acts-title-rest {
	font-weight: 900 !important;
	font-variation-settings: 'wght' 900;
	color: var(--am-m-text) !important;
	-webkit-text-fill-color: var(--am-m-text) !important;
}

/* wpautop·테마가 헤더 자식을 block 으로 늘리는 경우 */
.am-m-wrap .am-header > p,
.am-m-wrap .am-header > p:empty {
	display: none !important;
	margin: 0 !important;
	padding: 0 !important;
	height: 0 !important;
}

body.acts-match-route-active .entry-content .am-header a,
body.acts-match-route-active .entry-content .am-header button {
	float: none !important;
	width: auto !important;
	max-width: none !important;
}

/* 레거시 데모 탭바 — HCJM 하단 탭바 사용 시 본문 안 중복 출력 숨김 */
body.acts-match-has-hcjm-tabbar .am-m-wrap .am-tabbar,
body.acts-match-route-active .am-m-wrap .am-tabbar,
body.acts-match-route-active .entry-content .am-tabbar {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	overflow: hidden !important;
	pointer-events: none !important;
}

/* ─── List: type cards (전체·찾아요·구해요 — 3열 균등·중앙) ─── */
.am-m-wrap .bd-type-toggle {
	background: #fff;
	padding: 12px 14px;
	position: sticky;
	top: var(--am-m-header-sticky-top, 60px);
	z-index: 90;
	display: flex;
	justify-content: center;
	align-items: stretch;
	max-width: 100%;
	overflow-x: hidden;
	overflow-y: hidden;
	box-sizing: border-box;
}

.am-m-wrap .bd-type-toggle::-webkit-scrollbar {
	display: none;
}

.am-m-wrap .bd-type-scroll {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	justify-content: center;
	justify-items: stretch;
	gap: 8px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	padding: 0;
	margin: 0 auto;
}

.am-m-wrap .bd-type-card {
	flex: none;
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-width: 0;
	padding: 10px 8px;
	border-radius: 14px;
	background: #fff;
	border: 1.5px solid var(--am-m-border);
	box-shadow: 0 2px 10px rgba(34, 28, 140, .06);
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--am-m-text-sub);
	letter-spacing: -.3px;
	text-decoration: none;
	transition: background var(--am-m-dur-fast), border-color var(--am-m-dur-fast), box-shadow var(--am-m-dur-fast), color var(--am-m-dur-fast);
}

.am-m-wrap .bd-type-card.active {
	background: linear-gradient(155deg, var(--am-m-primary) 0%, var(--am-m-primary-dark) 100%);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 6px 18px rgba(69, 65, 255, .28);
}

.am-m-wrap .bd-type-card .bd-type-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	flex-shrink: 0;
	display: none;
}

.am-m-wrap .bd-type-card.tab-offer:not(.active) .bd-type-dot,
.am-m-wrap .bd-type-card.tab-seeking:not(.active) .bd-type-dot {
	display: inline-block;
}

.am-m-wrap .bd-type-card.tab-offer .bd-type-dot {
	background: var(--bd-offer-fg);
}

.am-m-wrap .bd-type-card.tab-seeking .bd-type-dot {
	background: var(--bd-seeking-fg);
}

.am-m-wrap .bd-type-card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 18px;
	line-height: 1;
	color: var(--am-m-primary);
}

.am-m-wrap .bd-type-card-icon i {
	font-family: remixicon !important;
	font-style: normal;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
}

.am-m-wrap .bd-type-card.active .bd-type-card-icon,
.am-m-wrap .bd-type-card.active .bd-type-card-icon i {
	color: #fff;
}

.am-m-wrap .bd-type-card-label {
	display: inline-flex;
	align-items: baseline;
	justify-content: center;
	gap: 4px;
	min-width: 0;
	white-space: nowrap;
}

.am-m-wrap .bd-type-card-text {
	font-weight: 700;
}

.am-m-wrap .bd-type-card .bd-tab-count {
	font-size: 11px;
	font-weight: 600;
	color: var(--am-m-muted);
}

.am-m-wrap .bd-type-card.active .bd-tab-count {
	color: rgba(255, 255, 255, .88);
}

/* ─── Search ─── */
.am-m-wrap .bd-search-row {
	background: #fff;
	padding: 12px 14px 14px;
	display: flex;
	gap: 10px;
	align-items: stretch;
	border-bottom: 1px solid var(--am-m-line);
}

.am-m-wrap .bd-search-input-wrap {
	flex: 1;
	position: relative;
	min-width: 0;
}

.am-m-wrap .bd-search-input {
	width: 100%;
	height: 48px;
	padding: 0 14px 0 42px;
	background: #fffbeb;
	border: 2px solid #f59e0b;
	border-radius: 12px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--am-m-text, #0f172a);
	box-shadow: inset 0 1px 2px rgba(180, 83, 9, 0.08);
	-webkit-appearance: none;
	appearance: none;
}

.am-m-wrap .bd-search-input:focus {
	outline: none;
	background: #fff;
	border-color: #d97706;
	box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.28);
}

.am-m-wrap .bd-search-input::placeholder {
	color: #92400e;
	opacity: 0.65;
	font-weight: 500;
}

.am-m-wrap .bd-search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--am-m-muted);
	pointer-events: none;
	line-height: 0;
}

.am-m-wrap .bd-icon-btn {
	width: 40px;
	height: 40px;
	background: var(--am-m-primary-faint);
	border: 0;
	border-radius: 12px;
	color: var(--am-m-text);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
	text-decoration: none;
	position: relative;
}

.am-m-wrap .bd-icon-btn--filter {
	background: linear-gradient(155deg, var(--am-m-primary) 0%, var(--am-m-primary-dark) 100%);
	color: #fff;
	box-shadow: 0 4px 14px rgba(69, 65, 255, .25);
}

.am-m-wrap .bd-icon-btn--filter i {
	font-size: 18px;
	font-family: remixicon !important;
	font-style: normal;
	line-height: 1;
}

.am-m-wrap .bd-icon-btn .bd-filter-badge {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 7px;
	height: 7px;
	background: var(--am-m-primary);
	border-radius: 50%;
	border: 2px solid var(--am-m-primary-faint);
}

.am-m-wrap .bd-icon-btn.has-badge {
	background: #fff;
	border: 1px solid var(--am-m-border);
}

/* ─── Filter modal (테마 격리 · #bd-filter-sheet) ─── */
#bd-filter-sheet.bd-filter-sheet {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px 16px;
	box-sizing: border-box;
	background: transparent !important;
	pointer-events: none;
	font-family: "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
	font-size: 14px;
	line-height: 1.5;
	color: #0F1024;
}

#bd-filter-sheet.bd-filter-sheet[hidden] {
	display: none !important;
}

#bd-filter-sheet.bd-filter-sheet.is-open {
	display: flex !important;
}

#bd-filter-sheet .bd-filter-sheet-backdrop {
	position: fixed;
	inset: 0;
	z-index: 0;
	margin: 0;
	padding: 0;
	border: 0;
	width: auto;
	height: auto;
	border-radius: 0;
	box-shadow: none;
	background: rgba(15, 16, 36, .45) !important;
	cursor: pointer;
	pointer-events: auto;
}

#bd-filter-sheet .bd-filter-sheet-panel {
	position: relative;
	z-index: 1;
	box-sizing: border-box;
	width: 100%;
	max-width: min(360px, calc(100% - 32px));
	max-height: min(85vh, 520px);
	margin: 0;
	padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
	background: #fff !important;
	border: 0;
	border-radius: 16px;
	box-shadow: 0 20px 48px rgba(15, 16, 36, .18);
	overflow-x: hidden;
	overflow-y: auto;
	transform: scale(.96);
	opacity: 0;
	transition: transform .22s cubic-bezier(.32, .72, 0, 1), opacity .22s ease;
	pointer-events: auto;
}

#bd-filter-sheet.is-open .bd-filter-sheet-panel {
	transform: scale(1);
	opacity: 1;
}

#bd-filter-sheet .bd-filter-sheet-form {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
}

#bd-filter-sheet .bd-filter-sheet-head {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 16px;
	padding: 0;
}

#bd-filter-sheet .bd-filter-sheet-title {
	margin: 0;
	padding: 0;
	font-size: 17px;
	font-weight: 800;
	letter-spacing: -.4px;
	color: #0F1024 !important;
	line-height: 1.3;
}

#bd-filter-sheet button.bd-filter-sheet-close {
	flex: 0 0 36px;
	width: 36px !important;
	height: 36px !important;
	min-width: 36px !important;
	max-width: 36px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid #E5E5F0 !important;
	border-radius: 50% !important;
	background: #F7F7FB !important;
	color: #4A4D63 !important;
	font-size: 22px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	box-shadow: none !important;
	cursor: pointer;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
}

#bd-filter-sheet button.bd-filter-sheet-close i {
	font-family: remixicon !important;
	font-size: 20px !important;
	font-style: normal !important;
	line-height: 1 !important;
	color: #4A4D63 !important;
}

#bd-filter-sheet .bd-filter-sheet-section {
	display: block;
	width: 100%;
	margin: 0 0 18px;
	padding: 0;
}

#bd-filter-sheet .bd-filter-sheet-label {
	display: block;
	margin: 0 0 8px;
	padding: 0;
	font-size: 13px;
	font-weight: 800;
	color: #4A4D63 !important;
	letter-spacing: -.2px;
}

#bd-filter-sheet select.bd-filter-sheet-select {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: 44px !important;
	margin: 0;
	padding: 0 36px 0 12px !important;
	border: 1px solid #E5E5F0 !important;
	border-radius: 10px !important;
	background: #fff !important;
	color: #0F1024 !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: normal !important;
	box-shadow: none !important;
	appearance: auto;
	-webkit-appearance: menulist;
}

#bd-filter-sheet .bd-filter-trust-row {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 8px !important;
	width: 100% !important;
	margin: 0;
	padding: 0;
}

#bd-filter-sheet label.bd-filter-trust-opt {
	display: block !important;
	position: relative !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	flex: none !important;
	float: none !important;
}

#bd-filter-sheet .bd-filter-trust-opt input[type="radio"] {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: 0 !important;
	padding: 0 !important;
	opacity: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
	left: 0;
	top: 0;
}

#bd-filter-sheet .bd-filter-trust-opt span {
	display: block !important;
	width: 100% !important;
	box-sizing: border-box;
	margin: 0;
	padding: 10px 4px !important;
	border: 1px solid #E5E5F0 !important;
	border-radius: 8px !important;
	background: #F7F7FB !important;
	color: #4A4D63 !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-align: center !important;
	cursor: pointer;
}

#bd-filter-sheet .bd-filter-trust-opt input:checked + span {
	background: #4541FF !important;
	border-color: #4541FF !important;
	color: #fff !important;
}

#bd-filter-sheet .bd-filter-sheet-actions {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: stretch !important;
	gap: 10px !important;
	width: 100% !important;
	margin: 4px 0 0;
	padding: 14px 0 0;
	border-top: 1px solid #ECEBFF;
}

#bd-filter-sheet a.bd-filter-sheet-reset {
	flex: 0 0 auto !important;
	display: inline-block !important;
	width: auto !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 12px 8px !important;
	border: 0 !important;
	background: transparent !important;
	color: #4A4D63 !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-decoration: none !important;
	box-shadow: none !important;
	white-space: nowrap;
}

#bd-filter-sheet button.bd-filter-sheet-apply {
	flex: 1 1 auto !important;
	display: block !important;
	width: auto !important;
	min-width: 0 !important;
	height: 48px !important;
	min-height: 48px !important;
	margin: 0 !important;
	padding: 0 16px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: #4541FF !important;
	background-image: none !important;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
	font-family: inherit !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	line-height: 48px !important;
	text-align: center !important;
	text-transform: none !important;
	letter-spacing: -.2px !important;
	box-shadow: 0 8px 20px rgba(69, 65, 255, .28) !important;
	cursor: pointer;
	opacity: 1 !important;
	visibility: visible !important;
}

body.bd-filter-sheet-open {
	overflow: hidden;
}

/* ─── Category chips ─── */
.am-m-wrap .bd-cat-row {
	background: #fff;
	display: flex;
	gap: 6px;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	padding: 10px 14px;
	border-bottom: 1px solid var(--am-m-line);
	-webkit-overflow-scrolling: touch;
}

.am-m-wrap .bd-cat-row::-webkit-scrollbar {
	display: none;
}

.am-m-wrap .bd-cat-chip {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: #fff;
	border: 1px solid var(--am-m-border);
	border-radius: 99px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
	color: var(--am-m-text-sub);
	cursor: pointer;
	letter-spacing: -.2px;
	text-decoration: none;
}

.am-m-wrap .bd-cat-chip i {
	font-size: 16px;
	line-height: 1;
	color: var(--am-m-muted);
	font-family: remixicon !important;
	font-style: normal;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
}

.am-m-wrap .bd-cat-chip.active {
	background: var(--am-m-text);
	border-color: var(--am-m-text);
	color: #fff;
}

.am-m-wrap .bd-cat-chip.active i {
	color: #fff;
}

/* ─── List meta (총 N건 · N건 신규 | 정렬) ─── */
.am-m-wrap .bd-list-meta {
	padding: 14px 14px 8px;
	background: var(--am-m-bg);
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	border-bottom: 1px solid var(--am-m-line);
}

.am-m-wrap .bd-list-count {
	margin: 0;
	padding: 0;
	flex: 1 1 auto;
	min-width: 0;
	display: block;
}

.am-m-wrap .bd-list-count .am-list-summary {
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--am-m-text-sub);
	font-weight: 600;
}

.am-m-wrap .bd-list-count .am-list-summary__sep {
	margin: 0 5px;
	color: var(--am-m-muted);
	font-weight: 500;
}

.am-m-wrap .bd-list-count .am-list-summary strong {
	color: var(--am-m-primary);
	font-weight: 800;
}

.am-m-wrap .bd-list-count .am-list-summary em {
	font-style: normal;
	font-weight: 700;
	color: var(--am-m-text);
}

.am-m-wrap .bd-list-count-extra {
	margin: 4px 0 0;
	font-size: 11.5px;
	font-weight: 600;
	color: var(--am-m-muted);
}

.am-m-wrap .bd-sort {
	flex: 0 0 auto;
	width: auto;
	min-width: 96px;
	max-width: 38%;
	background-color: #fff;
	border: 1px solid var(--am-m-border);
	padding: 6px 28px 6px 10px;
	border-radius: 7px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	color: var(--am-m-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 8px center;
}

/* ─── Cards ─── */
.am-m-wrap .bd-list {
	background: var(--am-m-bg);
	padding: 14px 10px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.am-m-wrap .bd-card {
	background: #fff;
	border-radius: 14px;
	box-shadow: var(--am-m-shadow-sm);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	display: block;
	transition: transform var(--am-m-dur-fast);
}

.am-m-wrap .bd-card:active {
	transform: scale(.99);
}

.am-m-wrap .bd-card-head {
	padding: 12px 14px 8px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.am-m-wrap .bd-card-type {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 9px;
	border-radius: 6px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: -.2px;
	flex-shrink: 0;
}

.am-m-wrap .bd-card-type.offer {
	background: var(--bd-offer-bg);
	color: var(--bd-offer-fg);
}

.am-m-wrap .bd-card-type.seeking {
	background: var(--bd-seeking-bg);
	color: var(--bd-seeking-fg);
}

.am-m-wrap .bd-card-type::before {
	content: '';
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
}

.am-m-wrap .bd-card-status {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 2px 8px;
	border-radius: 5px;
	font-size: 10.5px;
	font-weight: 800;
}

.am-m-wrap .bd-card-status.urgent {
	background: rgba(255, 59, 92, .1);
	color: var(--am-m-live);
}

.am-m-wrap .bd-card-status.matched {
	background: rgba(22, 163, 74, .1);
	color: var(--am-m-success);
}

.am-m-wrap .bd-card-status.highlight {
	background: rgba(212, 164, 55, .15);
	color: var(--am-m-gold);
}

.am-m-wrap .bd-card-meta-time {
	margin-left: auto;
	font-size: 10.5px;
	color: var(--am-m-muted);
	font-weight: 600;
}

.am-m-wrap .bd-card-body {
	padding: 0 14px 12px;
}

.am-m-wrap .bd-card-title {
	font-size: 15px;
	font-weight: 800;
	color: var(--am-m-text);
	letter-spacing: -.4px;
	line-height: 1.4;
	margin: 0 0 6px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.am-m-wrap .bd-card-excerpt {
	font-size: 12.5px;
	color: var(--am-m-text-sub);
	line-height: 1.5;
	margin: 0 0 10px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.am-m-wrap .bd-card-tags {
	display: flex;
	gap: 5px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.am-m-wrap .bd-card-tag {
	padding: 3px 8px;
	background: var(--am-m-primary-faint);
	color: var(--am-m-text-sub);
	border-radius: 5px;
	font-size: 10.5px;
	font-weight: 700;
}

.am-m-wrap .bd-card-tag.region {
	background: var(--am-m-primary-soft);
	color: var(--am-m-primary);
}

.am-m-wrap .bd-card-foot {
	padding: 10px 14px;
	border-top: 1px solid var(--am-m-line);
	display: flex;
	align-items: center;
	gap: 9px;
}

.am-m-wrap .bd-card-author {
	display: flex;
	align-items: center;
	gap: 7px;
	flex: 1;
	min-width: 0;
}

.am-m-wrap .bd-card-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	font-weight: 800;
}

.am-m-wrap .bd-card-avatar.tone-1 { background: var(--am-m-primary-soft); color: var(--am-m-primary); }
.am-m-wrap .bd-card-avatar.tone-2 { background: #FFE8C8; color: #C57A1A; }
.am-m-wrap .bd-card-avatar.tone-3 { background: #DCEDD2; color: #2F7D1F; }
.am-m-wrap .bd-card-avatar.tone-4 { background: #FCE0E5; color: #C3344C; }
.am-m-wrap .bd-card-avatar.tone-5 { background: #E5DFFB; color: #6843C9; }

.am-m-wrap .bd-card-author-info {
	flex: 1;
	min-width: 0;
}

.am-m-wrap .bd-card-author-name {
	font-size: 12px;
	font-weight: 700;
	color: var(--am-m-text);
	display: flex;
	align-items: center;
	gap: 4px;
}

.am-m-wrap .bd-card-author-name .verified {
	color: var(--am-m-gold);
	font-size: 10px;
}

.am-m-wrap .bd-card-trust {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	margin-left: 2px;
}

.am-m-wrap .bd-card-trust-dot {
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--am-m-line);
}

.am-m-wrap .bd-card-trust-dot.filled { background: var(--am-m-primary); }
.am-m-wrap .bd-card-trust-dot.gold { background: var(--am-m-gold); }

.am-m-wrap .bd-card-stats {
	display: flex;
	gap: 10px;
	font-size: 10.5px;
	color: var(--am-m-muted);
	font-weight: 700;
	flex-shrink: 0;
}

.am-m-wrap .bd-card-stat {
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

/* 카드 푸터 — 테마 flex·SVG 크기 충돌 방지 (모바일 아이콘 깨짐) */
.am-m-wrap .bd-card-foot,
.am-r-mobile .bd-card-foot,
body.acts-match-route-active .entry-content .bd-card-foot {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 9px !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

.am-m-wrap .bd-card-author,
.am-r-mobile .bd-card-author,
body.acts-match-route-active .entry-content .bd-card-author {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	flex: 1 1 auto !important;
	min-width: 0 !important;
	max-width: calc(100% - 92px) !important;
}

.am-m-wrap .bd-card-author-info,
.am-r-mobile .bd-card-author-info {
	flex: 1 1 auto !important;
	min-width: 0 !important;
	overflow: hidden !important;
}

.am-m-wrap .bd-card-author-name,
.am-r-mobile .bd-card-author-name,
body.acts-match-route-active .entry-content .bd-card-author-name {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap !important;
	align-items: center !important;
	gap: 4px !important;
	white-space: normal !important;
	word-break: keep-all !important;
	overflow-wrap: break-word !important;
	writing-mode: horizontal-tb !important;
	line-height: 1.35 !important;
}

.am-m-wrap .bd-card-author-region,
.am-r-mobile .bd-card-author-region {
	display: block !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	writing-mode: horizontal-tb !important;
}

.am-m-wrap .bd-card-stats,
.am-r-mobile .bd-card-stats,
body.acts-match-route-active .entry-content .bd-card-stats {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	flex-shrink: 0 !important;
	align-items: center !important;
	gap: 10px !important;
}

.am-m-wrap .bd-card-stat,
.am-r-mobile .bd-card-stat,
body.acts-match-route-active .entry-content .bd-card-stat {
	display: inline-flex !important;
	flex-direction: row !important;
	align-items: center !important;
	flex-shrink: 0 !important;
	white-space: nowrap !important;
	writing-mode: horizontal-tb !important;
}

.am-m-wrap .bd-card-stat svg,
.am-m-wrap .bd-card-attach-thumb svg,
.am-r-mobile .bd-card-stat svg,
.am-r-mobile .bd-card-attach-thumb svg,
body.acts-match-route-active .entry-content .bd-card-stat svg,
body.acts-match-route-active .entry-content .bd-card-attach-thumb svg {
	width: 12px !important;
	height: 12px !important;
	max-width: 12px !important;
	max-height: 12px !important;
	min-width: 12px !important;
	min-height: 12px !important;
	flex: none !important;
	flex-shrink: 0 !important;
	display: block !important;
	opacity: 0.7;
}

.am-m-wrap .bd-card-avatar svg,
.am-r-mobile .bd-card-avatar svg,
body.acts-match-route-active .entry-content .bd-card-avatar svg {
	width: 14px !important;
	height: 14px !important;
	max-width: 14px !important;
	max-height: 14px !important;
	min-width: 14px !important;
	min-height: 14px !important;
	flex: none !important;
	display: block !important;
}

.am-m-wrap .bd-card-trust,
.am-r-mobile .bd-card-trust {
	display: inline-flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	flex-shrink: 0 !important;
}

/* ─── FAB ─── */
.am-m-wrap .bd-fab {
	position: fixed;
	bottom: 80px;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 430px;
	pointer-events: none;
	z-index: 150;
}

.am-m-wrap .bd-fab-btn {
	position: absolute;
	bottom: 8px;
	right: 16px;
	height: 48px;
	padding: 0 18px 0 16px;
	background: var(--am-m-primary);
	color: #fff;
	border: 0;
	border-radius: 99px;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 10px 28px rgba(69, 65, 255, .4);
	pointer-events: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	letter-spacing: -.3px;
}

.am-m-wrap .bd-fab-btn:active {
	transform: scale(.95);
}

/* ─── 더미(테스트) 글 안내 — 목록 카드에서는 미표시, 본문(detail)만 ─── */
.am-m-wrap .bd-list .am-dummy-notice--compact,
.am-m-wrap a.bd-card .am-dummy-notice,
.am-m-wrap .bd-card .am-dummy-notice--compact {
	display: none !important;
	visibility: hidden !important;
	height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden !important;
}

.am-m-wrap .am-dummy-notice {
	background: #fff5f5;
	border: 2px solid #e53928;
	border-radius: 10px;
	color: #c62828;
	box-shadow: 0 2px 8px rgba(229, 57, 53, 0.14);
}
.am-m-wrap .am-dummy-notice__text {
	margin: 0;
	font-weight: 800;
	line-height: 1.5;
	color: #c62828;
}
.am-m-wrap .am-dummy-notice--detail {
	padding: 12px 14px;
	margin: 20px 0 0;
	font-size: 14px;
}
.am-m-wrap .bd-detail-content > .am-dummy-notice--detail {
	margin-top: 20px;
}

/* ─── Detail ─── */
.am-m-wrap .bd-detail-hero {
	background: #fff;
	padding: 16px 18px 18px;
	border-bottom: 1px solid var(--am-m-line);
}

.am-m-wrap .bd-detail-meta-row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}

.am-m-wrap .bd-detail-title-row,
.am-m-wrap .am-post-title-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 14px;
}

.am-m-wrap .bd-detail-title-row .bd-detail-title,
.am-m-wrap .am-post-title-row .bd-detail-title {
	flex: 1;
	min-width: 0;
	margin: 0;
}

.am-m-wrap .bd-detail-title {
	font-size: 19px;
	font-weight: 800;
	color: var(--am-m-text);
	letter-spacing: -.6px;
	line-height: 1.35;
	margin: 0 0 14px;
}

.am-m-wrap .am-post-title-row .am-post-share-btn,
.am-m-wrap .am-post-title-row .am-post-share-btn--fallback {
	flex-shrink: 0;
	margin-top: 2px;
}

.am-m-wrap .am-post-title-row .joyn-sns-button.joyn-sns-style-compact.am-post-share-btn {
	background: var(--am-m-primary-faint, rgba(91, 95, 199, .12));
	color: var(--am-m-primary, #5b5fc7);
	box-shadow: none;
}

.am-m-wrap .am-post-title-row .joyn-sns-button.joyn-sns-style-compact.am-post-share-btn:hover,
.am-m-wrap .am-post-title-row .joyn-sns-button.joyn-sns-style-compact.am-post-share-btn:focus-visible {
	background: var(--am-m-primary-soft, rgba(91, 95, 199, .2));
	color: var(--am-m-primary, #5b5fc7);
}

.am-m-wrap .am-post-share-btn--fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--am-m-primary-faint, rgba(91, 95, 199, .12));
	color: var(--am-m-primary, #5b5fc7);
	cursor: pointer;
}

.am-m-wrap .bd-detail-author {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 10px;
	padding-top: 12px;
	border-top: 1px solid var(--am-m-line);
}

.am-m-wrap .bd-detail-avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 16px;
	font-weight: 800;
}

.am-m-wrap .bd-detail-author-info {
	flex: 1;
	min-width: 0;
}

.am-m-wrap .bd-detail-author-name {
	font-size: 14px;
	font-weight: 800;
	margin-bottom: 3px;
}

.am-m-wrap .bd-detail-author-stats {
	font-size: 11.5px;
	color: var(--am-m-muted);
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.am-m-wrap .bd-detail-follow-btn {
	flex-shrink: 0;
	margin-left: auto;
	background: var(--am-m-primary-faint);
	color: var(--am-m-primary);
	border: 0;
	padding: 7px 12px;
	border-radius: 7px;
	font-family: inherit;
	font-size: 11.5px;
	font-weight: 800;
	cursor: pointer;
	text-decoration: none;
}

.am-m-wrap .bd-detail-info {
	background: var(--am-m-primary-faint);
	padding: 14px 18px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px 16px;
	border-bottom: 1px solid var(--am-m-line);
}

.am-m-wrap .bd-detail-info-lbl {
	font-size: 11px;
	color: var(--am-m-muted);
	font-weight: 700;
	margin-bottom: 3px;
}

.am-m-wrap .bd-detail-info-val {
	font-size: 13px;
	color: var(--am-m-text);
	font-weight: 800;
}

.am-m-wrap .bd-detail-info-val.dday {
	color: var(--am-m-live);
}

.am-m-wrap .bd-detail-content {
	background: #fff;
	padding: 18px;
	font-size: 14px;
	line-height: 1.7;
	border-bottom: 1px solid var(--am-m-line);
}

.am-m-wrap .bd-detail-attach {
	background: #fff;
	padding: 16px 18px;
	border-bottom: 1px solid var(--am-m-line);
}

.am-m-wrap .bd-detail-section-title {
	font-size: 13px;
	font-weight: 800;
	margin-bottom: 12px;
}

.am-m-wrap .bd-detail-section-title .cnt {
	color: var(--am-m-muted);
	font-weight: 700;
	font-size: 12px;
}

.am-m-wrap .bd-attach-gallery {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 6px;
	margin-bottom: 10px;
}

.am-m-wrap .bd-attach-img {
	aspect-ratio: 4/3;
	border-radius: 10px;
	overflow: hidden;
	display: block;
}

.am-m-wrap .bd-attach-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.am-m-wrap .bd-attach-file {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	background: var(--am-m-bg);
	border-radius: 10px;
	margin-bottom: 6px;
}

.am-m-wrap .bd-attach-file-name {
	font-size: 12.5px;
	font-weight: 700;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.am-m-wrap .bd-attach-file-meta {
	font-size: 10.5px;
	color: var(--am-m-muted);
}

.am-m-wrap .bd-attach-file-dl {
	width: 32px;
	height: 32px;
	background: var(--am-m-primary);
	color: #fff;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	flex-shrink: 0;
}

.am-m-wrap .bd-detail-actions {
	background: #fff;
	padding: 12px 14px;
	display: flex;
	gap: 8px;
	border-bottom: 1px solid var(--am-m-line);
	position: sticky;
	bottom: 0;
	z-index: 50;
	box-shadow: 0 -6px 16px rgba(15, 16, 36, .05);
}

.am-m-wrap .bd-action-btn {
	flex: 0 0 auto;
	height: 44px;
	padding: 0 12px;
	background: var(--am-m-primary-faint);
	border: 0;
	border-radius: 12px;
	color: var(--am-m-text);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	font-family: inherit;
	font-size: 12px;
	font-weight: 700;
}

.am-m-wrap .bd-action-btn.liked {
	background: rgba(255, 59, 92, .1);
	color: var(--am-m-live);
}

.am-m-wrap .bd-action-btn.primary {
	flex: 1;
	background: var(--am-m-primary);
	color: #fff;
	font-weight: 800;
	font-size: 13.5px;
}

/* ─── Comments (JS hooks: am-comment-*) ─── */
.am-m-wrap .bd-comments {
	background: #fff;
	padding: 16px 18px 24px;
}

.am-m-wrap .bd-comment-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--am-m-line);
}

.am-m-wrap .am-comment-tab {
	padding: 9px 0;
	margin-right: 18px;
	background: transparent;
	border: 0;
	border-bottom: 2px solid transparent;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	color: var(--am-m-muted);
	cursor: pointer;
}

.am-m-wrap .am-comment-tab.active {
	color: var(--am-m-text);
	border-bottom-color: var(--am-m-primary);
	font-weight: 800;
}

.am-m-wrap .am-comment-tab .cnt {
	color: var(--am-m-primary);
	margin-left: 3px;
}

.am-m-wrap .am-comment-input-area {
	background: var(--am-m-bg);
	border-radius: 14px;
	padding: 12px 14px;
	margin-bottom: 16px;
}

.am-m-wrap .am-comment-input {
	width: 100%;
	min-height: 60px;
	background: transparent;
	border: 0;
	font-family: inherit;
	font-size: 13.5px;
	resize: none;
}

.am-m-wrap .am-comment-input:focus {
	outline: none;
}

.am-m-wrap .am-comment-input-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid var(--am-m-line);
}

.am-m-wrap .am-comment-submit {
	background: var(--am-m-primary);
	color: #fff;
	border: 0;
	padding: 7px 14px;
	border-radius: 8px;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 800;
	cursor: pointer;
}

.am-m-wrap .am-comment {
	padding: 12px 0;
	border-bottom: 1px solid var(--am-m-line);
	display: flex;
	gap: 10px;
}

.am-m-wrap .am-comment-reply {
	margin-left: 38px;
}

/* ─── Write ─── */
.am-m-wrap .bd-write {
	background: var(--am-m-bg);
	padding: 12px 0 120px;
}

.am-m-wrap .bd-write-section {
	background: #fff;
	padding: 16px 18px;
	border-bottom: 1px solid var(--am-m-line);
	margin-bottom: 8px;
}

.am-m-wrap .bd-write-label {
	font-size: 12.5px;
	font-weight: 800;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: wrap;
}

.am-m-wrap .bd-write-label .required {
	color: var(--am-m-live);
}

.am-m-wrap .bd-write-label .hint {
	color: var(--am-m-muted);
	font-weight: 600;
	font-size: 11px;
	margin-left: auto;
}

.am-m-wrap .bd-write-submit-bar {
	position: fixed;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	max-width: 430px;
	background: #fff;
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
	display: flex;
	gap: 8px;
	border-top: 1px solid var(--am-m-line);
	z-index: 150;
	box-shadow: 0 -10px 24px rgba(15, 16, 36, .06);
}

.am-m-wrap .bd-submit-btn {
	flex: 1;
	height: 50px;
	border-radius: 12px;
	border: 0;
	font-family: inherit;
	font-size: 14px;
	font-weight: 800;
	cursor: pointer;
}

.am-m-wrap .bd-submit-btn.draft {
	flex: 0 0 96px;
	background: var(--am-m-primary-faint);
	color: var(--am-m-text);
}

.am-m-wrap .bd-submit-btn.publish {
	background: var(--am-m-primary);
	color: #fff;
}

/* 모바일 작성: 기존 폼 컨트롤 */
.am-m-wrap .am-write-input,
.am-m-wrap .am-write-textarea,
.am-m-wrap .am-write-select {
	width: 100%;
	background: var(--am-m-bg);
	border: 1px solid transparent;
	border-radius: 10px;
	padding: 11px 12px;
	font-family: inherit;
	font-size: 13.5px;
}

.am-m-wrap .am-type-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.am-m-wrap .am-type-card {
	padding: 14px 12px;
	background: var(--am-m-bg);
	border: 2px solid transparent;
	border-radius: 12px;
	cursor: pointer;
	text-align: center;
}

.am-m-wrap .am-type-card.selected.offer {
	border-color: var(--bd-offer-fg);
	background: #fff;
}

.am-m-wrap .am-type-card.selected.seeking {
	border-color: var(--bd-seeking-fg);
	background: #fff;
}

.am-m-wrap .am-write-row-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

/* Empty / pagination */
.am-m-wrap .bd-empty {
	margin: 14px;
	padding: 28px 20px 24px;
	background: #fff;
	border-radius: 16px;
	text-align: center;
	box-shadow: var(--am-m-shadow-sm);
}

.am-m-wrap .bd-empty-visual {
	margin: 0 auto 14px;
	max-width: 220px;
}

.am-m-wrap .bd-empty-visual img {
	display: block;
	width: 100%;
	max-width: 220px;
	height: auto;
	margin: 0 auto;
	object-fit: contain;
}

.am-m-wrap .bd-empty-text {
	margin: 0 0 6px;
	font-size: 15px;
	font-weight: 800;
	color: var(--am-m-text);
	letter-spacing: -.35px;
}

.am-m-wrap .bd-empty-subtext {
	margin: 0 0 18px;
	font-size: 13px;
	font-weight: 600;
	color: var(--am-m-muted);
	line-height: 1.5;
}

.am-m-wrap .bd-empty-reset {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 11px 18px;
	border-radius: 999px;
	border: 1.5px solid var(--am-m-primary);
	background: #fff;
	color: var(--am-m-primary);
	font-size: 13px;
	font-weight: 800;
	text-decoration: none;
	letter-spacing: -.2px;
}

.am-m-wrap .bd-empty-reset i {
	font-size: 16px;
	font-family: remixicon !important;
	font-style: normal;
	line-height: 1;
}

.am-m-wrap .bd-empty-reset:active {
	background: var(--am-m-primary-faint);
}

.am-m-wrap .am-empty {
	text-align: center;
	padding: 48px 20px;
	background: var(--am-m-bg);
}

.am-m-wrap .am-pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	padding: 16px 10px 24px;
	background: var(--am-m-bg);
}

.am-m-wrap .am-page-btn {
	min-width: 36px;
	height: 36px;
	background: #fff;
	border: 1px solid var(--am-m-border);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 12px;
	text-decoration: none;
	color: var(--am-m-text-sub);
}

.am-m-wrap .am-page-btn.active {
	background: var(--am-m-primary);
	color: #fff;
	border-color: var(--am-m-primary);
}

.am-m-wrap .am-notice {
	margin: 12px 14px;
	padding: 12px 14px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
}

.am-m-wrap .am-notice.info {
	background: var(--am-m-primary-faint);
	color: var(--am-m-primary);
}

.am-m-wrap .am-mini-label {
	font-size: 11px;
	color: var(--am-m-muted);
	font-weight: 700;
	margin-bottom: 4px;
}

.am-m-wrap .bd-detail-avatar.tone-1 { background: var(--am-m-primary-soft); color: var(--am-m-primary); }
.am-m-wrap .bd-detail-avatar.tone-2 { background: #FFE8C8; color: #C57A1A; }
.am-m-wrap .bd-detail-avatar.tone-3 { background: #DCEDD2; color: #2F7D1F; }
.am-m-wrap .bd-detail-avatar.tone-4 { background: #FCE0E5; color: #C3344C; }
.am-m-wrap .bd-detail-avatar.tone-5 { background: #E5DFFB; color: #6843C9; }

.am-m-wrap .am-picker,
.am-m-wrap [data-am-category-picker] {
	font-size: 13px;
}

.am-m-wrap .am-write-option .am-toggle-track {
	width: 38px;
	height: 22px;
	background: var(--am-m-border);
	border-radius: 99px;
	display: block;
	position: relative;
}

.am-m-wrap .am-toggle input:checked + .am-toggle-track {
	background: var(--am-m-primary);
}

/* 모바일 상태바(시계·배터리) 영역 — 히어로 헤더 위 safe-area 검정 */
@media (max-width: 1023px) {
	body.acts-match-route-active::before {
		content: "";
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		width: 100%;
		height: var(--am-m-safe-top, env(safe-area-inset-top, 0px));
		min-height: env(safe-area-inset-top, 0px);
		background: #000;
		z-index: 10001;
		pointer-events: none;
	}

	body.acts-match-route-active .am-m-header,
	body.acts-match-route-active .am-m-wrap .am-header,
	body.acts-match-route-active .am-r-mobile .am-header {
		background: linear-gradient(
			to bottom,
			#000 0,
			#000 var(--am-m-safe-top, env(safe-area-inset-top, 0px)),
			#fff var(--am-m-safe-top, env(safe-area-inset-top, 0px)),
			#fff 100%
		) !important;
	}
}

/* 통합 페이지 상단 데스크탑형 제목·여백 숨김 (모바일 뷰) */
@media (max-width: 1023px) {
	body.acts-match-route-active.am-page-board .hcjm-page-header,
	body.acts-match-route-active.am-page-board .hcjm-page-title,
	body.acts-match-route-active.am-page-board .entry-header,
	body.acts-match-route-active.am-page-board .page-title {
		display: none !important;
	}

	body.acts-match-route-active .am-r-mobile .am-m-wrap {
		--am-m-safe-top: max(24px, env(safe-area-inset-top, 0px));
		--am-m-header-sticky-top: calc(60px + var(--am-m-safe-top));
		max-width: 100%;
		width: 100%;
		margin: 0;
		border-radius: 0;
		min-height: 100dvh;
		padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
	}

	.am-r-mobile .am-m-header,
	.am-r-mobile .am-m-wrap .am-header,
	body.acts-match-route-active .am-m-header {
		padding-top: calc(10px + var(--am-m-safe-top, max(24px, env(safe-area-inset-top, 0px)))) !important;
	}

	.am-r-mobile .bd-type-toggle,
	.am-m-wrap .bd-type-toggle {
		top: var(--am-m-header-sticky-top, calc(60px + max(24px, env(safe-area-inset-top, 0px)))) !important;
	}

	.am-responsive-shell .am-r-mobile {
		background: var(--am-m-bg);
	}
}

/* 좁은 기기: 간격·글자만 축소 (3열 중앙 유지) */
@media (max-width: 420px) {
	.am-m-wrap .bd-type-toggle {
		padding: 10px 10px;
	}

	.am-m-wrap .bd-type-scroll {
		gap: 6px;
	}

	.am-m-wrap .bd-type-card {
		padding: 8px 4px;
		gap: 5px;
		font-size: 11px;
	}

	.am-m-wrap .bd-type-card-icon {
		font-size: 15px;
	}

	.am-m-wrap .bd-type-card-text {
		overflow: hidden;
		text-overflow: ellipsis;
		max-width: 100%;
	}

	.am-m-wrap .bd-type-card .bd-tab-count {
		font-size: 10px;
		flex-shrink: 0;
	}
}

@media (max-width: 359px) {
	.am-m-wrap .bd-type-card {
		padding: 8px 4px;
		font-size: 10.5px;
		letter-spacing: -.25px;
		gap: 4px;
	}

	.am-m-wrap .bd-type-card-label {
		gap: 2px;
	}

	/* 극소 화면: 점·아이콘 생략하고 라벨만 (셀 안 잘림 방지) */
	.am-m-wrap .bd-type-card.tab-offer:not(.active) .bd-type-dot,
	.am-m-wrap .bd-type-card.tab-seeking:not(.active) .bd-type-dot,
	.am-m-wrap .bd-type-card.tab-offer:not(.active) .bd-type-card-icon,
	.am-m-wrap .bd-type-card.tab-seeking:not(.active) .bd-type-card-icon {
		display: none;
	}
}

/* 프로필 카드 — 모바일 (bdd-card 톤) */
.am-m-wrap .bdd-card--profile .bdd-card-head,
.am-r-mobile .bdd-card--profile .bdd-card-head {
	padding-bottom: 16px;
}
.am-m-wrap .bdd-card--profile .bdd-card-body,
.am-r-mobile .bdd-card--profile .bdd-card-body {
	padding-top: 4px;
	padding-bottom: 14px;
}
.am-m-wrap .bdd-card--profile .bdd-card-profile-row,
.am-r-mobile .bdd-card--profile .bdd-card-profile-row {
	display: flex;
	gap: 18px;
	align-items: flex-start;
}
.am-m-wrap .bdd-card--profile .bdd-card-profile-main,
.am-r-mobile .bdd-card--profile .bdd-card-profile-main {
	padding-top: 2px;
}
.am-m-wrap .bdd-card--profile .bdd-card-avatar--photo,
.am-r-mobile .bdd-card--profile .bdd-card-avatar--photo {
	width: 53px;
	height: 53px;
	flex-shrink: 0;
}
.am-m-wrap .bdd-card--profile .bdd-card-excerpt--profile,
.am-r-mobile .bdd-card--profile .bdd-card-excerpt--profile {
	--bdd-profile-excerpt-lines: 4;
	margin-top: 14px;
	width: 100%;
	text-align: left;
	align-self: stretch;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 13px;
	line-height: 1.55;
	min-height: calc(13px * 1.55 * var(--bdd-profile-excerpt-lines));
	color: var(--hcjm-text-sub);
}
.am-m-wrap .bdd-card--profile .bdd-card-tags--profile,
.am-r-mobile .bdd-card--profile .bdd-card-tags--profile {
	flex-wrap: nowrap;
	overflow-x: auto;
	scrollbar-width: none;
}
.am-m-wrap .bdd-card--profile .bdd-card-tags--profile .bdd-card-tag,
.am-r-mobile .bdd-card--profile .bdd-card-tags--profile .bdd-card-tag {
	flex-shrink: 0;
	white-space: nowrap;
}
.am-m-wrap .bdd-card--profile .bdd-card-title,
.am-r-mobile .bdd-card--profile .bdd-card-title {
	min-height: 0;
	font-size: 15px;
}
.am-m-wrap .bdd-card--profile .bdd-card-foot--profile,
.am-r-mobile .bdd-card--profile .bdd-card-foot--profile {
	flex-wrap: wrap;
	gap: 8px;
}

/* 프로필 카드 버튼 — 모바일 테마 간섭 차단 */
.am-m-wrap .bdd-card--profile .bdd-card-foot--profile a.am-btn,
.am-m-wrap .bdd-card--profile .bdd-card-foot--profile button.am-btn,
.am-r-mobile .bdd-card--profile .bdd-card-foot--profile a.am-btn,
.am-r-mobile .bdd-card--profile .bdd-card-foot--profile button.am-btn {
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	flex: 0 1 auto;
	margin: 0;
	padding: 6px 12px;
	min-height: 32px;
	border: 1px solid var(--am-m-border, #e5e5f0);
	border-radius: 8px;
	background: #fff;
	color: var(--am-m-text, #0f1024) !important;
	font-family: inherit;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none !important;
	text-transform: none;
	box-shadow: none;
	width: auto;
	max-width: none;
}
.am-m-wrap .bdd-card--profile .bdd-card-foot--profile a.am-btn::before,
.am-m-wrap .bdd-card--profile .bdd-card-foot--profile a.am-btn::after,
.am-m-wrap .bdd-card--profile .bdd-card-foot--profile button.am-btn::before,
.am-m-wrap .bdd-card--profile .bdd-card-foot--profile button.am-btn::after {
	content: none !important;
	display: none !important;
}
.am-m-wrap .bdd-card--profile .bdd-card-foot--profile a.am-btn.outline,
.am-m-wrap .bdd-card--profile .bdd-card-foot--profile button.am-btn.outline {
	background: #fff;
	border-color: var(--am-m-primary, #4541ff);
	color: var(--am-m-primary, #4541ff) !important;
}
.am-m-wrap .bdd-card--profile .bdd-card-foot--profile a.am-btn.ghost,
.am-m-wrap .bdd-card--profile .bdd-card-foot--profile button.am-btn.ghost {
	background: transparent;
	border-color: transparent;
	color: var(--am-m-text-sub, #4a4d63) !important;
}
.am-m-wrap .bdd-card--profile .bdd-card-foot--profile a.am-btn.sm:not(.outline):not(.ghost) {
	background: var(--am-m-primary-faint, #f5f5ff);
	border-color: var(--am-m-primary-soft, #ecebff);
	color: var(--am-m-primary, #4541ff) !important;
}

@supports (padding-top: env(safe-area-inset-top)) {
	@media (max-width: 1023px) {
		body.acts-match-route-active .am-r-mobile .am-m-wrap {
			--am-m-safe-top: env(safe-area-inset-top, 0px);
		}
	}
}
