/* =========================================================
   archive.css
   ---------------------------------------------------------
   목적:
   - 리스트 / 카테고리 / 태그 / 검색 페이지 전용 스타일
   - 기사페이지(single.css)와 동일한 폭 / 본문-사이드바 구조 기준 사용
   - 전체 배경 흰색 통일
   - 본문과 사이드바 사이 세로 라인 추가
   ========================================================= */

/* =========================================================
   기본 배경 / 박스 모델
   ========================================================= */
body.archive,
body.archive #page,
body.archive #content,
body.archive .site,
body.archive .site-content,
body.archive .content-area,
body.archive .site-main,
body.archive .inside-article,
body.archive #primary,
body.search,
body.search #page,
body.search #content,
body.search .site,
body.search .site-content,
body.search .content-area,
body.search .site-main,
body.search .inside-article,
body.search #primary {
	background: #ffffff;
	overflow-x: hidden;
}

.archive-main,
.search-main,
.archive-page,
.archive-page__inner,
.archive-page__content,
.archive-page__sidebar-wrap,
.archive-header,
.archive-loop,
.archive-loop__inner {
	box-sizing: border-box;
}

.separate-containers .site-main {
	margin: 0;
}

.archive-main,
.search-main {
	background: #ffffff;
	overflow-x: hidden;
}

/* =========================================================
   전체 레이아웃
   - 기사페이지(single-layout)와 동일 기준
   ========================================================= */
.archive-page {
	padding-top: 28px;
	padding-bottom: 56px;
	background: #ffffff;
}

.archive-page__inner {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 28px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 360px;
	column-gap: 40px;
	align-items: start;
	background: #ffffff;
}

.archive-page__content,
.archive-page__sidebar-wrap {
	min-width: 0;
	background: #ffffff;
}

.archive-page__sidebar-wrap {
	padding-left: 40px;
	border-left: 1px solid #e7e7e7;
}

/* =========================================================
   헤더
   ========================================================= */
.archive-header {
	margin-bottom: 18px;
	background: #ffffff;
}

.archive-header__inner {
	min-width: 0;
}

.archive-header__title {
	margin: 0;
	color: #111111;
	font-size: 2em;
	line-height: 1.08;
	font-weight: 700;
	letter-spacing: -0.045em;
	word-break: keep-all;
}

.archive-header--search .archive-header__title {
	font-size: 2em;
}

.archive-header__description {
	margin-top: 12px;
	color: #666666;
	font-size: 13px;
	line-height: 1.6;
	letter-spacing: -0.01em;
}

.archive-header__description p {
	margin: 0;
}

/* =========================================================
   목록
   ========================================================= */
.archive-loop,
.archive-loop__inner {
	min-width: 0;
	background: #ffffff;
}

.archive-list {
	display: grid;
	grid-template-columns: 1fr;
	row-gap: 18px;
}

.archive-card {
	position: relative;
	display: grid;
	grid-template-columns:200px minmax(0, 1fr);
	column-gap: 20px;
	align-items: center;
	padding-bottom: 18px;
	border-bottom: 1px solid #dddddd;
}

.archive-card__link {
	position: absolute;
	inset: 0;
	z-index: 3;
}

.archive-card__thumb {
	position: relative;
	overflow: hidden;
	background: #e9e9e9;
	aspect-ratio: 16 / 9;
}

.archive-card__thumb img,
.archive-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.archive-card__body {
	min-width: 0;
}

.archive-card__title {
	margin: 0 0 8px;
	color: #111111;
	font-size: 1.1em;
	line-height: 1.42;
	font-weight: 600;
	letter-spacing: -0.03em;
	word-break: keep-all;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.archive-card__excerpt {
	margin: 0 0 10px;
	color: #666666;
	font-size: 0.9em;
	line-height: 1.58;
	letter-spacing: -0.01em;
	word-break: keep-all;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.archive-card__meta {
	display: block;
	color: #888;
	font-size: 0.7em;
	line-height: 1;
	letter-spacing: -0.01em;
}

/* =========================================================
   페이지네이션
   ========================================================= */
.archive-pagination {
	margin-top: 28px;
}

.archive-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.archive-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 32px;
	height: 32px;
	padding: 0 8px;
	border-radius: 999px;
	color: #444444;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	background: transparent;
	border: 0;
}

.archive-pagination .page-numbers.current {
	background: #222222;
	color: #ffffff;
	font-weight: 700;
}

.archive-loadmore {
	display: none;
	margin-top: 24px;
}

.archive-loadmore a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 44px;
	border-radius: 999px;
	background: #e8e8e8;
	color: #222222;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

/* =========================================================
   결과 없음
   ========================================================= */
.archive-empty {
	padding: 56px 0 20px;
	text-align: center;
	background: #ffffff;
}

.archive-empty__title {
	margin: 0 0 10px;
	color: #111111;
	font-size: 24px;
	line-height: 1.3;
	font-weight: 800;
}

.archive-empty__text {
	margin: 0;
	color: #777777;
	font-size: 14px;
	line-height: 1.6;
}

/* =========================================================
   공통 사이드바 스타일은 components.css(sc-common-sidebar__*)에서 관리
   ========================================================= */

/* =========================================================
   태블릿
   ========================================================= */
@media (max-width: 1024px) {
	.archive-page {
		padding-top: 22px;
		padding-bottom: 52px;
	}

	.archive-page__inner {
		grid-template-columns: 1fr;
		row-gap: 40px;
	}

	.archive-page__sidebar-wrap {
		padding-left: 0;
		border-left: 0;
	}

	.archive-header__title,
	.archive-header--search .archive-header__title {
		font-size: 38px;
	}
}

/* =========================================================
   모바일
   ========================================================= */
@media (max-width: 767px) {
	html,
	body {
		width: 100%;
		max-width: 100%;
		overflow-x: hidden !important;
	}

	.archive-page {
		padding-top: 14px;
		padding-bottom: 48px;
	}

	.archive-page__inner {
		max-width: 100%;
		padding-left: 12px;
		padding-right: 12px;
		row-gap: 34px;
	}

	.archive-page__sidebar-wrap {
		padding-left: 0;
		border-left: 0;
	}

	.archive-header {
		margin-bottom: 14px;
	}

	.archive-header__title,
	.archive-header--search .archive-header__title {
		font-size: 24px;
		line-height: 1.16;
		letter-spacing: -0.04em;
	}

	.archive-header__description {
		margin-top: 8px;
		font-size: 12px;
		line-height: 1.5;
	}

	.archive-list {
		row-gap: 16px;
	}

	.archive-card {
		grid-template-columns: 1fr;
		row-gap: 10px;
		padding-bottom: 16px;
	}

	.archive-card__title {
		margin-bottom: 7px;
		font-size: 1.1em;
		line-height: 1.42;
		-webkit-line-clamp: 2;
	}

	.archive-card__excerpt {
		margin-bottom: 8px;
		font-size: 12px;
		line-height: 1.55;
		-webkit-line-clamp: 2;
	}

	.archive-card__meta {
		font-size: 11px;
	}

	.archive-pagination {
		display: none;
	}

	.archive-loadmore {
		display: block;
	}
}

/* =========================================================
   404 페이지
   ---------------------------------------------------------
   목적:
   - 검색 / 리스트와 동일한 톤으로 404 출력
   ========================================================= */

.error404 .archive-main,
.error404 .archive-page,
.error404 .archive-page__content,
.error404 .archive-page__sidebar-wrap {
	background: #ffffff;
}

.archive-page--404 .archive-header {
	margin-bottom: 18px;
}

.archive-empty--404 {
	padding: 72px 0 24px;
	text-align: center;
}

.archive-404-search {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 110px;
	gap: 10px;
	max-width: 560px;
	margin: 28px auto 0;
}

.archive-404-search__input {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 1px solid #d9d9d9;
	border-radius: 0;
	background: #ffffff;
	color: #111111;
	font-size: 14px;
	outline: none;
	box-shadow: none;
}

.archive-404-search__input:focus {
	border-color: #111111;
}

.archive-404-search__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	padding: 0 18px;
	border: 0;
	background: #111111;
	color: #ffffff;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.archive-404-actions {
	margin-top: 18px;
}

.archive-404-actions__home {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 160px;
	height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	background: #f2f2f2;
	color: #111111;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

@media (max-width: 767px) {
	.archive-empty--404 {
		padding: 48px 0 16px;
	}

	.archive-404-search {
		grid-template-columns: 1fr;
		max-width: 100%;
		margin-top: 22px;
	}

	.archive-404-search__input,
	.archive-404-search__button {
		height: 44px;
	}

	.archive-404-actions {
		margin-top: 14px;
	}

	.archive-404-actions__home {
		width: 100%;
	}
}

.archive-card__title-link {
	color: inherit;
	text-decoration: none;
}

.archive-card__title-link:hover,
.archive-card__title-link:focus,
.archive-card__title-link:focus-visible {
	color: inherit;
	text-decoration: none;
}