/* Archive UI lives in the theme so it remains styled outside WindPress pages. */
.chapter-blog-archive .blog-list {
	padding-block: clamp(40px, 5vw, 72px) clamp(64px, 8vw, 104px);
}

.chapter-blog-archive .blog-filters {
	position: relative;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 clamp(28px, 4vw, 48px);
}

.chapter-blog-archive .blog-filters > a,
.chapter-blog-archive .blog-filters__more > summary {
	min-height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 9px 16px;
	border: 1px solid #e5d9f0;
	border-radius: 999px;
	background: #fff;
	color: #24213a;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: color .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.chapter-blog-archive .blog-filters > a:hover,
.chapter-blog-archive .blog-filters__more > summary:hover {
	border-color: #7b45a3;
	color: #65318f;
	box-shadow: 0 4px 14px rgba(79, 39, 115, .08);
}

.chapter-blog-archive .blog-filters > a.is-active {
	border-color: transparent;
	background: linear-gradient(110deg, #67409a, #ca68a4);
	color: #fff;
	box-shadow: 0 5px 16px rgba(103, 64, 154, .18);
}

.chapter-blog-archive .blog-filters__more {
	position: static;
}

.chapter-blog-archive .blog-filters__more > summary {
	cursor: pointer;
	list-style: none;
}

.chapter-blog-archive .blog-filters__more > summary::-webkit-details-marker {
	display: none;
}

.chapter-blog-archive .blog-filters__more > summary::after {
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	content: "";
	transform: translateY(-2px) rotate(45deg);
	transition: transform .18s ease;
}

.chapter-blog-archive .blog-filters__more[open] > summary::after {
	transform: translateY(2px) rotate(225deg);
}

.chapter-blog-archive .blog-filters__count {
	min-width: 21px;
	height: 21px;
	display: inline-grid;
	place-items: center;
	border-radius: 50%;
	background: #f4eff9;
	color: #65318f;
	font-size: 11px;
	font-weight: 700;
}

.chapter-blog-archive .blog-filters__panel {
	position: absolute;
	z-index: 20;
	top: calc(100% + 10px);
	left: 0;
	right: auto;
	width: min(760px, calc(100vw - 40px));
	max-height: min(60vh, 480px);
	padding: 20px;
	overflow: auto;
	border: 1px solid #e9e1f1;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 18px 48px rgba(31, 18, 48, .16);
}

.chapter-blog-archive .blog-filters__panel > p {
	margin: 0 0 14px;
	color: #777287;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.chapter-blog-archive .blog-filters__panel-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 7px;
}

.chapter-blog-archive .blog-filters__panel-list a {
	min-width: 0;
	padding: 9px 11px;
	border-radius: 9px;
	color: #39354b;
	font-size: 13px;
	line-height: 1.35;
	text-decoration: none;
	overflow-wrap: anywhere;
	transition: background .18s ease, color .18s ease;
}

.chapter-blog-archive .blog-filters__panel-list a:hover {
	background: #f6f1fa;
	color: #65318f;
}

.chapter-blog-archive .blog-list .insights--3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: clamp(18px, 2vw, 28px);
}

.chapter-blog-archive .insight-card--archive {
	min-width: 0;
	min-height: 100%;
	display: flex;
	flex-direction: column;
	border: 1px solid #ebe5f1;
	border-radius: 18px;
	background: #fff;
	color: #24213a;
	text-decoration: none;
	box-shadow: 0 12px 34px rgba(35, 20, 55, .06);
	transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.chapter-blog-archive .insight-card--archive:hover {
	transform: translateY(-4px);
	border-color: #d8c8e8;
	box-shadow: 0 20px 42px rgba(45, 25, 72, .12);
}

.chapter-blog-archive .insight-card--archive:focus-visible {
	outline: 3px solid rgba(125, 71, 165, .45);
	outline-offset: 3px;
}

.chapter-blog-archive .insight-card__cover {
	position: relative;
	width: 100%;
	display: block;
	flex: none;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: linear-gradient(140deg, #37205f, #87558d 58%, #dfa0a8);
}

.chapter-blog-archive .insight-card__cover img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	object-position: center;
	transition: transform .45s ease;
}

.chapter-blog-archive .insight-card--archive:hover .insight-card__cover img {
	transform: scale(1.035);
}

.chapter-blog-archive .insight-card--archive .insight-card__body {
	min-width: 0;
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 21px 22px 23px;
}

.chapter-blog-archive .insight-card--archive h3 {
	margin: 0;
	color: #211e34;
	font-size: clamp(17px, 1.25vw, 20px);
	font-weight: 650;
	line-height: 1.38;
	letter-spacing: -.02em;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}

.chapter-blog-archive .insight-card--archive .insight-card__by {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px 10px;
	margin-top: 15px;
	color: #777287;
	font-size: 12px;
}

.chapter-blog-archive .insight-card--archive .insight-card__time {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.chapter-blog-archive .insight-card--archive .insight-card__time svg {
	width: 14px;
	height: 14px;
}

.chapter-blog-archive .insight-card--archive p {
	margin: 13px 0 0;
	color: #6e6a7d;
	font-size: 14px;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	overflow: hidden;
}

.chapter-blog-archive .insight-card--archive[data-rv] {
	opacity: 1;
	transform: none;
}

/* GeneratePress removes the <nav class="navigation pagination"> wrapper from
   the_posts_pagination(), so style the .nav-links container it leaves behind. */
.chapter-blog-archive .blog-list .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: clamp(42px, 6vw, 72px) 0 0;
}

.chapter-blog-archive .blog-list .nav-links .page-numbers {
	min-width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	border: 1px solid #e5d9f0;
	border-radius: 11px;
	background: #fff;
	color: #353148;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.chapter-blog-archive .blog-list .nav-links a.page-numbers:hover {
	transform: translateY(-1px);
	border-color: #7950a0;
	color: #65318f;
}

.chapter-blog-archive .blog-list .nav-links .page-numbers.current {
	border-color: transparent;
	background: linear-gradient(110deg, #67409a, #ca68a4);
	color: #fff;
	box-shadow: 0 5px 14px rgba(103, 64, 154, .2);
}

.chapter-blog-archive .blog-list .nav-links .page-numbers.dots {
	min-width: 24px;
	padding-inline: 2px;
	border-color: transparent;
	background: transparent;
}

.chapter-blog-archive .blog-list .nav-links .page-numbers.prev,
.chapter-blog-archive .blog-list .nav-links .page-numbers.next {
	gap: 7px;
	padding-inline: 15px;
}

@media (max-width: 900px) {
	.chapter-blog-archive .blog-list .insights--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.chapter-blog-archive .blog-filters__panel-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.chapter-blog-archive .blog-filters {
		gap: 8px;
	}
	.chapter-blog-archive .blog-filters > a,
	.chapter-blog-archive .blog-filters__more > summary {
		min-height: 38px;
		padding: 8px 12px;
		font-size: 13px;
	}
	.chapter-blog-archive .blog-filters__panel {
		position: fixed;
		top: auto;
		right: 16px;
		bottom: 16px;
		left: 16px;
		width: auto;
		max-height: 70vh;
	}
	.chapter-blog-archive .blog-list .insights--3 {
		grid-template-columns: minmax(0, 1fr);
	}
	.chapter-blog-archive .insight-card--archive .insight-card__body {
		padding: 18px 18px 20px;
	}
	.chapter-blog-archive .blog-list .nav-links {
		gap: 6px;
	}
	.chapter-blog-archive .blog-list .nav-links .page-numbers {
		min-width: 38px;
		height: 38px;
		padding-inline: 10px;
	}
}
