.research-library {
	background: #07070a;
	color: #f4f2f7;
	font-family: var(--wp--preset--font-family--montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

.research-library a {
	color: #c10000;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.research-library a:focus-visible {
	border-radius: 3px;
	outline: 2px solid #a7f3d0;
	outline-offset: 3px;
}

.research-library__inner {
	margin: 0 auto;
	max-width: 1180px;
	padding-left: clamp(20px, 5vw, 72px);
	padding-right: clamp(20px, 5vw, 72px);
}

/* --research-hero-image is set on .research-library from the template so the
   parent theme directory name is never hardcoded in CSS. */
.research-hero {
	background:
		linear-gradient(135deg, rgba(7, 7, 10, 0.68), rgba(7, 7, 10, 0.94)),
		var(--research-hero-image, none) center / cover no-repeat,
		#07070a;
	padding: clamp(92px, 14vw, 170px) 0 clamp(56px, 8vw, 96px);
}

.research-hero__kicker,
.research-card__eyebrow {
	color: #a7f3d0;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0;
	margin: 0 0 12px;
	text-transform: uppercase;
}

.research-hero h1 {
	color: #ffffff;
	font-family: var(--wp--preset--font-family--michroma, inherit);
	font-size: clamp(2.35rem, 5vw, 5.1rem);
	font-weight: 500;
	line-height: 1.08;
	margin: 0;
	max-width: 920px;
}

.research-intro,
.research-section,
.research-coa {
	padding: clamp(48px, 7vw, 88px) 0;
}

.research-library__copy {
	max-width: 980px;
}

.research-library__copy p {
	color: #d8d5df;
	font-size: clamp(1rem, 1.45vw, 1.16rem);
	line-height: 1.78;
	margin: 0 0 1.25rem;
}

.research-library__copy p:last-child {
	margin-bottom: 0;
}

.research-section__header {
	margin-bottom: clamp(22px, 4vw, 38px);
}

.research-section__header--split {
	align-items: end;
	display: flex;
	gap: 20px;
	justify-content: space-between;
}

.research-section__header h2 {
	color: #ffffff;
	font-family: var(--wp--preset--font-family--michroma, inherit);
	font-size: clamp(1.55rem, 3vw, 2.5rem);
	font-weight: 500;
	line-height: 1.2;
	margin: 0;
}

.research-grid {
	display: grid;
	gap: 22px;
}

.research-grid--categories {
	grid-template-columns: repeat(var(--research-category-columns, 4), minmax(0, 1fr));
}

.research-grid--posts {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.research-card {
	background: #121218;
	border: 1px solid rgba(255, 255, 255, 0.11);
	border-radius: 8px;
	overflow: hidden;
}

.research-category-card {
	min-height: 250px;
	padding: 24px;
}

.research-card h3 {
	color: #ffffff;
	font-size: 1.08rem;
	line-height: 1.35;
	margin: 0 0 12px;
}

.research-card h3 a {
	color: inherit;
	text-decoration: none;
}

.research-card p {
	color: #c9c5d1;
	font-size: 0.96rem;
	line-height: 1.62;
	margin: 0 0 18px;
}

.research-card__link {
	font-weight: 700;
}

.research-post-card {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.research-post-card__media {
	aspect-ratio: 16 / 9;
	background: #1c1b22;
	display: block;
	overflow: hidden;
	width: 100%;
}

.research-post-card__media img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

/* Posts with no featured image keep the card heights aligned without showing a
   flat grey rectangle. */
.research-post-card__media--empty {
	background:
		linear-gradient(135deg, rgba(216, 180, 254, 0.14), rgba(167, 243, 208, 0.08)),
		#15141b;
}

.research-post-card__body {
	padding: 22px;
}

.research-section--featured {
	background: #0d0d12;
}

.research-coa__band {
	align-items: center;
	background: #e7f8ef;
	border-radius: 8px;
	color: #111412;
	display: flex;
	gap: 18px;
	justify-content: space-between;
	padding: clamp(22px, 4vw, 34px);
	text-decoration: none;
}

.research-coa__band strong {
	font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.research-coa__band span {
	color: #27332d;
	line-height: 1.55;
	max-width: 610px;
}

@media (max-width: 980px) {
	.research-grid--categories,
	.research-grid--posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.research-section__header--split,
	.research-coa__band {
		align-items: start;
		flex-direction: column;
	}

	.research-grid--categories,
	.research-grid--posts {
		grid-template-columns: 1fr;
	}
}
