/* Resource CPT archive styles. Every selector is archive-scoped. */

.rpd-resource-archive {
	background: var(--rpd-white);
	color: var(--rpd-body);
	max-width: 100%;
	min-height: 60vh;
	min-width: 0;
}

.rpd-resource-archive [hidden] {
	display: none !important;
}

.rpd-resource-archive .rpd-resource-eyebrow {
	color: var(--rpd-purple);
	font-size: 0.78rem;
	font-weight: 900;
	letter-spacing: 0.13em;
	margin: 0 0 0.8rem;
	text-transform: uppercase;
}

.rpd-resource-archive .rpd-btn--navy {
	background: var(--rpd-navy);
	color: var(--rpd-white);
}

.rpd-resource-archive .rpd-btn--navy:hover {
	background: var(--rpd-purple);
	color: var(--rpd-white);
}

.rpd-resource-hero {
	background:
		radial-gradient(circle at 86% 12%, rgba(253, 185, 51, 0.22), transparent 25rem),
		radial-gradient(circle at 8% 90%, rgba(161, 84, 161, 0.28), transparent 30rem),
		linear-gradient(135deg, #17133f 0%, #231f58 52%, #343465 100%);
	color: var(--rpd-white);
	overflow: hidden;
	position: relative;
}

.rpd-resource-hero::after {
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	content: "";
	height: 28rem;
	pointer-events: none;
	position: absolute;
	right: -13rem;
	top: -14rem;
	width: 28rem;
}

.rpd-resource-hero__inner {
	display: grid;
	gap: clamp(2.5rem, 7vw, 6.5rem);
	grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
	min-width: 0;
	padding-block: clamp(4.5rem, 9vw, 7.5rem);
	position: relative;
	z-index: 1;
}

.rpd-resource-hero .rpd-resource-eyebrow {
	color: var(--rpd-gold);
}

.rpd-resource-hero h1 {
	color: var(--rpd-white);
	font-size: clamp(2.45rem, 5.5vw, 5rem);
	letter-spacing: -0.04em;
	line-height: 1.02;
	margin: 0;
	max-width: 13ch;
	text-wrap: balance;
}

.rpd-resource-hero__lede {
	color: rgba(255, 255, 255, 0.82);
	font-size: clamp(1.05rem, 1.7vw, 1.3rem);
	line-height: 1.7;
	margin: 1.6rem 0 0;
	max-width: 44rem;
}

.rpd-resource-hero__count {
	align-items: center;
	color: rgba(255, 255, 255, 0.74);
	display: flex;
	font-size: 0.86rem;
	font-weight: 800;
	gap: 0.65rem;
	letter-spacing: 0.05em;
	margin: 1.5rem 0 0;
	text-transform: uppercase;
}

.rpd-resource-hero__count::before {
	background: var(--rpd-gold);
	border-radius: 50%;
	content: "";
	height: 0.55rem;
	width: 0.55rem;
}

.rpd-resource-hero__types {
	align-content: center;
	display: grid;
	gap: 0.85rem;
	min-width: 0;
}

.rpd-resource-hero__type {
	align-items: center;
	backdrop-filter: blur(12px);
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 1rem;
	color: var(--rpd-white);
	display: flex;
	font-family: var(--font-heading);
	font-size: 1.05rem;
	font-weight: 800;
	justify-content: space-between;
	max-width: 100%;
	min-height: 4.3rem;
	min-width: 0;
	padding: 1rem 1.2rem;
	text-decoration: none;
	transition: background-color var(--rpd-transition), border-color var(--rpd-transition), transform var(--rpd-transition);
}

.rpd-resource-hero__type:hover {
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(253, 185, 51, 0.7);
	color: var(--rpd-white);
	transform: translateY(-2px);
}

.rpd-resource-hero__type small {
	align-items: center;
	background: var(--rpd-gold);
	border-radius: 999px;
	color: var(--rpd-navy);
	display: inline-flex;
	font-family: var(--font-body);
	font-size: 0.76rem;
	height: 2rem;
	justify-content: center;
	min-width: 2rem;
	padding-inline: 0.55rem;
}

.rpd-resource-hero__copy,
.rpd-resource-hero__type > span,
.rpd-resource-library__intro {
	max-width: 100%;
	min-width: 0;
}

.rpd-resource-hero__type > span,
.rpd-resource-hero__lede,
.rpd-resource-library__intro h2,
.rpd-resource-library__intro > p:last-child {
	overflow-wrap: anywhere;
}

.rpd-resource-library {
	background: linear-gradient(180deg, #fff 0%, var(--rpd-bg-soft-alt) 100%);
	padding-block: clamp(4rem, 8vw, 7rem);
}

.rpd-resource-library__intro {
	max-width: 48rem;
}

.rpd-resource-library__intro h2,
.rpd-resource-group h3,
.rpd-resource-empty h3,
.rpd-resource-cta h2 {
	color: var(--rpd-navy);
	margin-top: 0;
}

.rpd-resource-library__intro h2 {
	font-size: clamp(2rem, 4vw, 3.4rem);
	letter-spacing: -0.035em;
	line-height: 1.08;
	margin-bottom: 0.9rem;
}

.rpd-resource-library__intro > p:last-child {
	font-size: 1.08rem;
	line-height: 1.7;
	margin: 0;
}

.rpd-resource-filters {
	background: var(--rpd-white);
	border: 1px solid rgba(35, 31, 88, 0.12);
	border-radius: 1.25rem;
	box-shadow: var(--rpd-shadow-sm);
	margin-top: 2.4rem;
	max-width: 100%;
	min-width: 0;
	padding: clamp(1.1rem, 3vw, 1.75rem);
}

.rpd-resource-filters__form {
	align-items: end;
	display: grid;
	gap: 1rem;
	grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.28fr) minmax(12rem, 0.28fr) auto;
	max-width: 100%;
	min-width: 0;
}

.rpd-resource-filters__form > *,
.rpd-resource-filters__search,
.rpd-resource-filters__search-field,
.rpd-resource-filters__topic,
.rpd-resource-filters__sort {
	max-width: 100%;
	min-width: 0;
}

.rpd-resource-filters label {
	color: var(--rpd-navy);
	display: block;
	font-size: 0.8rem;
	font-weight: 800;
	margin-bottom: 0.45rem;
}

.rpd-resource-filters__search-field {
	position: relative;
}

.rpd-resource-filters__search-field svg {
	fill: none;
	height: 1.2rem;
	left: 1rem;
	position: absolute;
	stroke: var(--rpd-purple);
	stroke-linecap: round;
	stroke-width: 2;
	top: 50%;
	transform: translateY(-50%);
	width: 1.2rem;
}

.rpd-resource-filters input[type="search"],
.rpd-resource-filters select {
	background: var(--rpd-white);
	border: 1px solid rgba(35, 31, 88, 0.22);
	border-radius: 0.65rem;
	color: var(--rpd-navy);
	font: inherit;
	height: 3.25rem;
	max-width: 100%;
	min-width: 0;
	width: 100%;
}

.rpd-resource-filters input[type="search"] {
	padding: 0 1rem 0 3rem;
}

.rpd-resource-filters select {
	padding-inline: 0.9rem;
}

.rpd-resource-filters input[type="search"]:focus-visible,
.rpd-resource-filters select:focus-visible,
.rpd-resource-filter-pill:focus-visible,
.rpd-resource-hero__type:focus-visible,
.rpd-resource-load-more .rpd-btn:focus-visible,
.rpd-resource-cta a:focus-visible {
	outline: 3px solid var(--rpd-color-focus);
	outline-offset: 3px;
}

.rpd-resource-archive--enhanced .rpd-resource-filters__submit {
	display: none;
}

.rpd-resource-filters__types {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
	margin-top: 1.2rem;
	max-width: 100%;
	min-width: 0;
}

.rpd-resource-filter-pill {
	align-items: center;
	background: var(--rpd-bg-soft-alt);
	border: 1px solid transparent;
	border-radius: 999px;
	color: var(--rpd-navy);
	display: inline-flex;
	font-size: 0.84rem;
	font-weight: 800;
	gap: 0.5rem;
	min-height: 2.65rem;
	min-width: 0;
	padding: 0.55rem 0.85rem;
	text-decoration: none;
}

.rpd-resource-filter-pill:hover,
.rpd-resource-filter-pill.is-active {
	background: var(--rpd-navy);
	color: var(--rpd-white);
}

.rpd-resource-filter-pill span {
	align-items: center;
	background: rgba(85, 82, 177, 0.12);
	border-radius: 999px;
	display: inline-flex;
	font-size: 0.72rem;
	justify-content: center;
	min-height: 1.45rem;
	min-width: 1.45rem;
	padding-inline: 0.35rem;
}

.rpd-resource-filter-pill.is-active span,
.rpd-resource-filter-pill:hover span {
	background: rgba(255, 255, 255, 0.16);
}

.rpd-resource-filters__summary {
	align-items: center;
	border-top: 1px solid rgba(35, 31, 88, 0.1);
	display: flex;
	flex-wrap: wrap;
	gap: 0.8rem 1.5rem;
	justify-content: space-between;
	max-width: 100%;
	min-width: 0;
	margin-top: 1.25rem;
	padding-top: 1.1rem;
}

.rpd-resource-filters__results {
	color: var(--rpd-navy);
	font-size: 0.9rem;
	font-weight: 800;
	margin: 0;
	max-width: 100%;
	min-width: 0;
	overflow-wrap: anywhere;
}

.rpd-resource-filters__active {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	font-size: 0.8rem;
	gap: 0.4rem;
	max-width: 100%;
	min-width: 0;
	overflow-wrap: anywhere;
}

.rpd-resource-filters__active strong {
	color: var(--rpd-navy);
}

.rpd-resource-filters__active a {
	color: var(--rpd-purple);
	font-weight: 800;
	margin-left: 0.35rem;
}

.rpd-resource-library__groups {
	display: grid;
	gap: 4rem;
	margin-top: 3rem;
	min-width: 0;
}

.rpd-resource-group__header {
	align-items: end;
	display: flex;
	gap: 1rem 2rem;
	justify-content: space-between;
	margin-bottom: 1.25rem;
	max-width: 100%;
	min-width: 0;
}

.rpd-resource-group,
.rpd-resource-group__header > div,
.rpd-resource-group__header h3,
.rpd-resource-group__header p {
	max-width: 100%;
	min-width: 0;
}

.rpd-resource-group__header h3,
.rpd-resource-group__header p {
	overflow-wrap: anywhere;
}

.rpd-resource-group__header h3 {
	font-size: clamp(1.55rem, 3vw, 2.15rem);
	margin-bottom: 0.25rem;
}

.rpd-resource-group__header p {
	margin: 0;
}

.rpd-resource-group__count {
	align-items: center;
	background: rgba(85, 82, 177, 0.11);
	border-radius: 999px;
	color: var(--rpd-purple);
	display: inline-flex;
	font-size: 0.78rem;
	font-weight: 900;
	height: 2.2rem;
	justify-content: center;
	min-width: 2.2rem;
	padding-inline: 0.6rem;
}

.rpd-resource-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: minmax(0, 1fr);
	max-width: 100%;
	min-width: 0;
}

.rpd-resource-load-more {
	display: flex;
	justify-content: center;
	margin-top: 2.5rem;
	max-width: 100%;
	min-width: 0;
}

.rpd-resource-empty {
	background: var(--rpd-white);
	border: 1px dashed rgba(35, 31, 88, 0.28);
	border-radius: 1.25rem;
	margin-top: 3rem;
	padding: clamp(2rem, 7vw, 4.5rem);
	text-align: center;
}

.rpd-resource-empty__icon {
	align-items: center;
	background: rgba(85, 82, 177, 0.1);
	border-radius: 50%;
	color: var(--rpd-purple);
	display: inline-flex;
	height: 4rem;
	justify-content: center;
	width: 4rem;
}

.rpd-resource-empty__icon svg {
	fill: none;
	height: 1.7rem;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 2;
	width: 1.7rem;
}

.rpd-resource-empty h3 {
	font-size: 1.55rem;
	margin: 1.15rem 0 0.5rem;
}

.rpd-resource-empty p {
	margin: 0 auto 1.25rem;
	max-width: 35rem;
}

.rpd-resource-cta {
	background: var(--rpd-gold);
	padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.rpd-resource-cta__inner {
	align-items: center;
	display: flex;
	gap: 2.5rem;
	justify-content: space-between;
	max-width: 100%;
	min-width: 0;
}

.rpd-resource-cta__inner > div,
.rpd-resource-cta__actions,
.rpd-resource-cta__actions .rpd-btn {
	max-width: 100%;
	min-width: 0;
}

.rpd-resource-cta .rpd-resource-eyebrow {
	color: var(--rpd-navy);
}

.rpd-resource-cta h2 {
	font-size: clamp(1.8rem, 3.6vw, 3rem);
	line-height: 1.12;
	margin-bottom: 0.65rem;
	max-width: 20ch;
}

.rpd-resource-cta p:last-child {
	color: var(--rpd-navy);
	margin: 0;
	max-width: 48rem;
}

.rpd-resource-cta__actions {
	display: flex;
	flex: 0 0 auto;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.rpd-resource-cta__secondary {
	background: transparent;
	border-color: var(--rpd-navy);
	color: var(--rpd-navy);
}

.rpd-resource-cta__secondary:hover {
	background: var(--rpd-navy);
	color: var(--rpd-white);
}

@media (max-width: 1020px) {
	.rpd-resource-hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.rpd-resource-filters__form {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rpd-resource-filters__search,
	.rpd-resource-filters__submit {
		grid-column: 1 / -1;
	}

	.rpd-resource-hero__types {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.rpd-resource-cta__inner {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 720px) {
	.rpd-resource-hero__types,
	.rpd-resource-filters__form {
		grid-template-columns: minmax(0, 1fr);
	}

	.rpd-resource-filters__submit {
		width: 100%;
	}

	.rpd-resource-filters__summary,
	.rpd-resource-group__header {
		align-items: flex-start;
		flex-direction: column;
	}

	.rpd-resource-cta__actions,
	.rpd-resource-cta__actions .rpd-btn {
		width: 100%;
	}
}

@media (min-width: 640px) {
	.rpd-resource-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1024px) {
	.rpd-resource-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	.rpd-resource-archive *,
	.rpd-resource-archive *::before,
	.rpd-resource-archive *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
