/**
 * Report archive styles — 칼럼
 *
 * @package AriawellTheme
 */

body:has(.report-archive) {
	background: var(--fp-color-white);
	color: var(--fp-color-text);
}

/* ── Hero ── */
.report-hero {
	padding-block: 140px 80px;
}

.report-hero__content {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.report-hero__title {
	color: var(--fp-color-text);
	font-family: var(--fp-font-serif);
	font-size: 48px;
	font-weight: 400;
	letter-spacing: -0.04em;
	line-height: 1.5;
	margin: 0;
	-webkit-text-stroke-width: 0.1px;
	-webkit-text-stroke-color: var(--fp-color-text);
}

.report-hero__desc {
	color: var(--fp-color-text-sub1);
	font-size: 20px;
	line-height: 1.7;
	margin: 0;
}

.report-archive .report-hero .fade-up--onload.is-visible {
	animation-duration: 1.4s;
}

.report-archive .report-hero .fade-up--onload[data-fade-delay="1"].is-visible {
	animation-delay: 0.35s;
}

.report-archive .report-filter .fade-up--onload.is-visible {
	animation-duration: 1.05s;
}

.report-archive .report-filter .fade-up--onload[data-fade-delay="2"].is-visible {
	animation-delay: 0.7s;
}

/* ── Filter ── */
.report-filter {
	padding-block: 0;
}

.report-filter__list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.report-filter__btn {
	border: 1px solid #dadee4;
	border-radius: 9999px;
	color: var(--fp-color-text-sub2);
	display: inline-flex;
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
	padding: 14px 28px;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.report-filter__btn:hover {
	border-color: var(--fp-color-brand);
	color: var(--fp-color-brand);
}

.report-filter__btn--active {
	background: var(--fp-color-brand);
	border-color: var(--fp-color-brand);
	color: var(--fp-color-white);
}

.report-filter__btn--active:hover {
	background: var(--fp-color-brand);
	border-color: var(--fp-color-brand);
	color: var(--fp-color-white);
}

/* ── List ── */
.report-list {
	padding-block: 60px 160px;
}

.report-list__inner {
	display: flex;
	flex-direction: column;
	gap: 50px;
}

.report-list__grid {
	display: grid;
	gap: 60px 20px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-list__grid.fade-up.is-visible {
	animation-duration: 1.2s;
}

.report-list__empty {
	grid-column: 1 / -1;
	padding: 80px 0;
	text-align: center;
	color: #767676;
	font-size: 16px;
}

.report-card {
	margin: 0;
}

.report-card__link {
	color: inherit;
	display: flex;
	flex-direction: column;
	gap: 20px;
	text-decoration: none;
}

.report-card__thumb {
	align-items: center;
	background-color: #f9f9f9;
	border-radius: 10px;
	display: flex;
	height: 293px;
	justify-content: center;
	overflow: hidden;
}

.report-card__thumb img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.report-card__thumb .report-card__thumb-fallback {
	height: 80px;
	object-fit: contain;
	opacity: 0.5;
	width: 80px;
}

/* 성공사례·법률 리포트: PC 썸네일 비율(440×293)을 태블릿/모바일에서도 동일하게 유지 */
.report-archive--success-case .report-card__thumb,
.report-archive--column .report-card__thumb {
	aspect-ratio: 440 / 293;
	height: auto;
	width: 100%;
}

.report-card__body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-right: 10px;
}

.report-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* 기본값은 이혼 색상 — divorce-page.css의 .divorce-case__tag와 동일 */
.report-card__tag {
	background: rgba(192, 115, 93, 0.2);
	border-radius: 5px;
	color: var(--fp-color-orange);
	font-size: 12px;
	font-weight: 600;
	padding: 5px 9px;
}

/* 형사 — family-criminal-page.css와 동일 */
.report-card--criminal .report-card__tag {
	background: rgba(66, 81, 102, 0.2);
	color: #425166;
}

/* 개인회생 — debt-relief-page.css와 동일 */
.report-card--debt .report-card__tag {
	background: rgba(57, 80, 71, 0.2);
	color: #395047;
}

.report-card__category {
	color: var(--fp-color-text-sub3);
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.report-card__title {
	color: var(--fp-color-text-sub1);
	display: -webkit-box;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: -0.02em;
	line-height: 1.6;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.report-card__excerpt {
	color: var(--fp-color-text-sub2);
	display: -webkit-box;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.6;
	margin: 0;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.report-card__excerpt p {
	margin: 0;
}

/* ── Pagination ── */
.report-pagination {
	display: flex;
	justify-content: center;
}

.report-pagination__list,
.report-pagination .page-numbers {
	align-items: center;
	display: flex;
	flex-wrap: nowrap;
	gap: 16px;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}

.report-pagination__item,
.report-pagination__list li,
.report-pagination .page-numbers li {
	flex-shrink: 1;
	margin: 0;
	min-width: 0;
}

.report-pagination__item--nav,
.report-pagination__list > li:first-child,
.report-pagination__list > li:last-child,
.report-pagination .page-numbers > li:first-child,
.report-pagination .page-numbers > li:last-child {
	flex-shrink: 0;
}

.report-pagination__page,
.report-pagination .page-numbers a,
.report-pagination .page-numbers span {
	align-items: center;
	border-radius: 4px;
	color: var(--fp-color-text-sub3);
	display: inline-flex;
	flex-shrink: 1;
	font-size: 16px;
	font-weight: 600;
	height: 40px;
	justify-content: center;
	min-width: 40px;
	padding-inline: 4px;
	text-decoration: none;
}

.report-pagination__page.is-active,
.report-pagination .page-numbers .current {
	color: var(--fp-color-text);
}

.report-pagination__page--ellipsis {
	pointer-events: none;
}

.report-pagination__nav,
.report-pagination__list .prev,
.report-pagination__list .next,
.report-pagination .prev,
.report-pagination .next {
	align-items: center;
	border-radius: 4px;
	display: inline-flex;
	flex-shrink: 0;
	height: 40px;
	justify-content: center;
	width: 40px;
}

.report-pagination__nav img,
.report-pagination__list .prev img,
.report-pagination__list .next img,
.report-pagination .prev img,
.report-pagination .next img {
	display: block;
}

.report-pagination__nav--disabled {
	opacity: 0.35;
	pointer-events: none;
}

/* ── Search ── */
.report-search {
	align-items: center;
	background: #f8f8f8;
	border-radius: 99px;
	display: flex;
	gap: 10px;
	margin-inline: auto;
	max-width: 540px;
	padding: 16px 24px;
	width: 100%;
}

.report-search__input {
	background: transparent;
	border: 0;
	color: var(--fp-color-text);
	flex: 1;
	font-family: inherit;
	font-size: 18px;
	font-weight: 500;
	letter-spacing: -0.005em;
	min-width: 0;
	outline: none;
	padding: 0;
}

.report-search__input::placeholder {
	color: var(--fp-color-text-sub3);
}

.report-search__submit {
	align-items: center;
	background: transparent;
	border: 0;
	cursor: pointer;
	display: inline-flex;
	flex-shrink: 0;
	height: 24px;
	justify-content: center;
	padding: 0;
	width: 24px;
}

.report-search__submit img {
	display: block;
	height: 24px;
	width: 24px;
}

/* ── Tablet ── */
@media (max-width: 1024px) {
	.report-hero {
		padding-block: 100px 60px;
	}

	.report-filter__list {
		gap: 8px;
	}

	.report-hero__title {
		font-size: 42px;
	}

	.report-hero__desc {
		font-size: 18px;
	}

	.report-filter__btn {
		font-size: 18px;
		padding: 12px 20px;
	}

	.report-list {
		padding-block: 50px 120px;
	}

	.report-list__grid {
		gap: 40px 20px;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.report-card__title {
		font-size: 22px;
	}

	.report-card__tag {
		font-size: 11px;
		padding: 4px 8px;
	}
}

/* ── Mobile ── */
@media (max-width: 767px) {
	.report-hero {
		padding-block: 80px 40px;
	}

	.report-hero__title {
		font-size: 32px;
	}

	.report-filter__list {
		gap: 6px;
	}

	.report-hero__desc {
		font-size: 16px;
	}

	.report-filter__btn {
		font-size: 16px;
		padding: 10px 18px;
	}

	.report-list {
		padding-block: 40px 80px;
	}

	.report-list__inner {
		gap: 40px;
	}

	.report-list__grid {
		gap: 40px;
		grid-template-columns: 1fr;
	}

	.report-card__thumb {
		height: 220px;
	}

	.report-card__tag {
		font-size: 10px;
		padding: 4px 7px;
	}

	.report-card__category {
		font-size: 16px;
	}

	.report-card__title {
		font-size: 20px;
	}

	.report-card__excerpt {
		font-size: 15px;
	}

	.report-search {
		padding: 14px 20px;
	}

	.report-search__input {
		font-size: 16px;
	}

	.report-pagination__list,
	.report-pagination .page-numbers {
		gap: 6px;
	}

	.report-pagination__page,
	.report-pagination .page-numbers a,
	.report-pagination .page-numbers span {
		font-size: 14px;
		height: 32px;
		min-width: 28px;
		padding-inline: 2px;
	}
}
