/* =========================
   PAGE VISUAL
========================= */

.page-visual {
	height: 260px;
	display: flex;
	align-items: center;
	background: #e9edf6;
}

.page-visual .label {
	margin-bottom: 8px;
	font-size: 15px;
	color: #777;
	letter-spacing: 0.02em;
}

.page-visual h1 {
	margin: 0;
	font-size: 42px;
	font-weight: 700;
	letter-spacing: -0.04em;
}


/* =========================
   TAB
========================= */

.tabs {
	border-bottom: 1px solid #e5e5e5;
}

.tabs .inner {
	display: flex;
	gap: 42px;
}

.tabs a {
	position: relative;
	padding: 20px 0;
	font-size: 16px;
	color: #666;
	text-decoration: none;
}

.tabs a.active {
	color: #111;
	font-weight: 600;
}

.tabs a.active::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	height: 2px;
	background: #111;
}


/* =========================
   BOARD HEADER
========================= */

.board-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 28px;
}

.board-head h2 {
	margin: 0;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.04em;
}


/* =========================
   BOARD SEARCH
========================= */

.board-search {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 570px;
	height: 56px;
	padding: 0 4px;
	box-sizing: border-box;

	border: 0;
	border-bottom: 2px solid #222;
	border-radius: 0;

	background: transparent;
}

.board-search select {
	flex-shrink: 0;
	width: 125px;
	height: 100%;
	padding: 0 28px 0 4px;

	border: 0;
	outline: 0;

	background: transparent;

	font-size: 16px;
	font-weight: 600;
	color: #222;

	cursor: pointer;
}

.board-search .search-divider {
	flex-shrink: 0;
	width: 1px;
	height: 20px;
	margin: 0 20px 0 8px;
	background: #d9d9d9;
}

.board-search input {
	flex: 1;
	min-width: 0;
	height: 100%;
	padding: 0;

	border: 0;
	outline: 0;

	background: transparent;

	font-size: 16px;
	color: #222;
}

.board-search input::placeholder {
	color: #999;
}

.board-search button {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;

	width: 48px;
	height: 48px;
	margin-left: 12px;
	padding: 0;

	border: 0;
	background: transparent;

	cursor: pointer;
}

.board-search button svg {
	width: 23px;
	height: 23px;

	fill: none;
	stroke: #222;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.board-search:focus-within {
	border-bottom-color: #000;
}


/* =========================
   BOARD LIST
========================= */

.board-list {
	border-top: 2px solid var(--section-step1);
}

.board-item {
	display: grid;
	grid-template-columns: 100px 1fr 90px;
	gap: 14px;
	align-items: center;

	padding: 20px 14px;

	border-bottom: 1px solid #e8e8e8;

	color: inherit;
	text-decoration: none;

	transition: background 0.18s ease;
}

.board-thumb {
	width: 90px;
	height: 100px;

	overflow: hidden;

	border-radius: 6px;
	background: #f5f5f5;
}

.board-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.board-content {
	min-width: 0;
}

.board-title {
	margin: 0;

	font-size: 22px;
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: -0.04em;

	word-break: keep-all;
}

.board-meta {
	display: flex;
	gap: 14px;

	margin-top: 16px;

	font-size: 14.5px;
	color: #888;
}

.board-arrow {
	font-size: 15px;
	color: var(--section-main);
}

.board-item:hover {
	background: var(--section-soft);
}

.board-item:hover .board-title {
	color: var(--section-main);
}

.board-empty {
	padding: 80px 20px;
	text-align: center;
	font-size: 15px;
	color: #999;
	border-bottom: 1px solid #e8e8e8;
}


/* =========================
   PAGINATION
========================= */

.pagination {
	display: flex;
	justify-content: center;
	gap: 6px;

	margin-top: 46px;
}

.pagination a,
.pagination span {
	display: flex;
	align-items: center;
	justify-content: center;

	width: 34px;
	height: 34px;

	font-size: 14px;
	color: #777;
	text-decoration: none;
}

.pagination a.active {
	color: var(--section-main);
	font-weight: 700;
	border-bottom: 2px solid var(--section-main);
}

.pagination-arrow.disabled {
	color: #ccc;
	cursor: default;
}


/* =========================
   BOARD DETAIL
========================= */

/* 상세 상단 라인 */
.top-bar {
	margin-bottom: 30px;
	border-top: 2px solid var(--section-step1);
}


/* 제목 영역 */
.post-header {
	padding-bottom: 20px;
	border-bottom: 1px solid #e0e0e0;
}

.post-title {
	margin: 0 0 15px;

	font-size: 28px;
	font-weight: 700;
	line-height: 1.4;

	color: #000;
}

.post-meta {
	display: flex;
	gap: 20px;

	font-size: 14px;
	color: #8c8c8c;
}

.meta-item {
	display: flex;
	align-items: center;
}


/* 본문 */
.post-content {
	padding: 30px 0;

	font-size: 16px;
	line-height: 1.65;

	color: #444;

	border-bottom: 1px solid #e0e0e0;
}

.post-content p {
	margin: 0 0 12px;
}

.post-content p:empty {
	display: none;
}

/* 에디터에서 생성되는 <p><br></p> 형태의 빈 문단 */
.post-content p:has(> br:only-child) {
	margin: 0;
	min-height: 0;
}

.post-content img {
	max-width: 100%;
	height: auto;
	margin-bottom: 30px;
	border-radius: 4px;
}

.post-content .highlight-box {
	margin: 30px 0;
	padding: 20px;

	border-left: 4px solid #333;

	background: #f9f9f9;
}


/* =========================
   DETAIL FOOTER
========================= */

.post-footer {
	margin-top: 30px;
}

.btn-list {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	margin-bottom: 40px;
	padding: 12px 24px;

	border: 1px solid #ccc;

	background: #fff;

	font-size: 15px;
	font-weight: 500;
	color: #333;
	text-decoration: none;

	cursor: pointer;

	transition: all 0.2s ease;
}

.btn-list:hover {
	background: #f5f5f5;
	border-color: #8c8c8c;
}


/* 이전글 / 다음글 */
.prev-next-nav {
	border-top: 1px solid #e0e0e0;
	border-bottom: 1px solid #e0e0e0;
}

.nav-item {
	display: flex;

	padding: 15px 10px;

	font-size: 14px;
	color: #333;
	text-decoration: none;
}

.nav-item:not(:last-child) {
	border-bottom: 1px solid #f0f0f0;
}

.nav-label {
	width: 80px;

	font-weight: 500;
	color: #8c8c8c;
}

.nav-title {
	flex: 1;

	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nav-item:hover .nav-title {
	text-decoration: underline;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

	.page-visual {
		height: 210px;
	}

	.page-visual h1 {
		font-size: 34px;
	}

	.tabs .inner {
		gap: 28px;
		overflow-x: auto;
	}

	.board-wrap {
		padding: 52px 0 70px;
	}

	.board-head {
		flex-direction: column;
		align-items: stretch;
		gap: 18px;
	}

	.board-search {
		max-width: none;
		margin-top: 20px;
	}

	.board-search select {
		width: 100px;
		font-size: 14px;
	}

	.board-search .search-divider {
		margin: 0 12px;
	}

	.board-search input {
		font-size: 14px;
	}


	/* 게시글 목록 */
	.board-item {
		grid-template-columns: 90px 1fr;
		gap: 14px;

		padding: 18px 6px;
	}

	.board-thumb {
		width: 90px;
		height: 60px;
	}

	.board-title {
		font-size: 18px;
	}

	.board-meta {
		margin-top: 10px;
		font-size: 13px;
	}

	.board-arrow {
		display: none;
	}


	/* 상세 */
	.post-title {
		font-size: 23px;
	}

	.post-content {
		padding: 24px 0;
		font-size: 15px;
		line-height: 1.65;
	}
}