/* Resource Library archive and on-site Resource pages. */

.resource-archive {
	max-width: none;
}

.resource-library {
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	display: grid;
	gap: var(--wp--preset--spacing--3-xl);
	grid-template-columns: 19.25rem minmax(0, 1fr);
	margin-inline: auto;
	max-width: var(--wp--custom--layout--full-size);
	padding: var(--wp--preset--spacing--3-xl) var(--wp--preset--spacing--5-xl) var(--wp--preset--spacing--5-xl);
	width: 100%;
}

.resource-library__filter-toggle {
	display: none;
	-webkit-transition: background-color 160ms ease, color 160ms ease;
	transition: background-color 160ms ease, color 160ms ease;
}

.has-js .resource-library__filter-toggle:hover {
	background: var(--wp--preset--color--green);
	color: var(--wp--preset--color--contrast);
}

.resource-library__filter-toggle:focus-visible {
	outline-color: var(--wp--preset--color--blue);
}

.resource-library__filters {
	-ms-flex-item-align: start;
	    align-self: start;
	background: var(--wp--preset--color--blue);
	border-radius: var(--wp--custom--radius--medium);
	color: var(--wp--preset--color--base);
	overflow: hidden;
	padding: var(--wp--preset--spacing--md);
}

.resource-library__filters form {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	gap: var(--wp--preset--spacing--lg);
}

.resource-library__filters h2 {
	font-size: var(--wp--preset--font-size--h-4);
	line-height: 1.2;
	margin: 0;
}

.resource-filter {
	border: 0;
	border-bottom: 2px solid var(--wp--custom--color--border--inverse-subtle);
	margin: 0;
	padding: 0 0 var(--wp--preset--spacing--lg);
}

.resource-filter:last-of-type {
	border-bottom: 0;
	padding-bottom: 0;
}

.resource-filter:first-of-type {
	border-bottom: 0;
	padding-bottom: 0;
}

.resource-filter__legend {
	font-size: var(--wp--preset--font-size--body);
	font-weight: 700;
	line-height: 1.4;
	margin-bottom: var(--wp--preset--spacing--sm);
	padding: 0;
	text-transform: uppercase;
}

.resource-filter__options {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: wrap;
	    flex-wrap: wrap;
	gap: var(--wp--preset--spacing--xs);
}

.resource-filter__option {
	cursor: pointer;
	margin: 0;
	position: relative;
}

.resource-filter__option input {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.resource-filter__option span {
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	border: 2px solid var(--wp--preset--color--periwinkle);
	border-radius: var(--wp--custom--radius--medium);
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	font-size: var(--wp--preset--font-size--body);
	font-weight: 600;
	gap: var(--wp--preset--spacing--xs);
	line-height: 1;
	min-height: 2rem;
	padding: 0.3125rem 0.625rem;
	-webkit-transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.resource-filter__option:hover span {
	background: var(--wp--preset--color--periwinkle);
	border-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--contrast);
}

.resource-filter__option input:checked + span {
	background: var(--wp--preset--color--base);
	border-color: var(--wp--preset--color--base);
	color: var(--wp--preset--color--blue);
}

.resource-filter__option input:checked + span::after {
	background: url('../../img/icon-filter-check.svg') center / contain no-repeat;
	content: '';
	display: block;
	height: 1rem;
	width: 1rem;
}

.resource-filter__option:hover input:checked + span {
	background: var(--wp--preset--color--pale-blue);
	border-color: var(--wp--preset--color--pale-blue);
}

.resource-filter__option:hover input:checked + span::after {
	background-image: url('../../img/icon-filter-close.svg');
}

.resource-filter__option input:focus-visible + span {
	outline: 2px solid var(--wp--preset--color--base);
	outline-offset: 5px;
}

.has-js .resource-filter:not(.is-expanded) [data-resource-extra-topic]:not(.is-selected) {
	display: none;
}

.resource-filter__more {
	background: transparent;
	border: 0;
	color: inherit;
	display: none;
	font: inherit;
	margin-top: var(--wp--preset--spacing--sm);
	padding: 0;
	text-decoration: underline;
	text-underline-offset: 0.15em;
	-webkit-transition: color 160ms ease;
	transition: color 160ms ease;
}

.resource-filter__more:hover {
	color: var(--wp--preset--color--green);
}

.has-js .resource-filter__more {
	display: inline-block;
}

.resource-origin-filter {
	border-bottom: 2px solid var(--wp--custom--color--border--inverse-subtle);
	cursor: pointer;
	display: grid;
	gap: var(--wp--preset--spacing--3-xs) var(--wp--preset--spacing--sm);
	grid-template-columns: 1rem 1fr;
	padding-bottom: var(--wp--preset--spacing--lg);
}

.resource-origin-filter input {
	accent-color: var(--wp--preset--color--green);
	height: 1rem;
	margin: 0.25rem 0 0;
	width: 1rem;
}

.resource-origin-filter input:checked {
	background-color: var(--wp--preset--color--green);
	background-image: url('../../img/icon-filter-check.svg');
	border-color: var(--wp--preset--color--green);
}

.resource-origin-filter input:focus-visible {
	outline-color: var(--wp--preset--color--base);
	outline-offset: 3px;
}

.resource-origin-filter input:not(:disabled):hover {
	border-color: var(--wp--preset--color--base);
}

.resource-origin-filter__label {
	font-weight: 600;
	-webkit-transition: color 160ms ease;
	transition: color 160ms ease;
}

.resource-origin-filter:hover .resource-origin-filter__label {
	color: var(--wp--preset--color--green);
}

.resource-origin-filter__description {
	color: var(--wp--custom--color--text--brand-on-brand-secondary);
	font-size: var(--wp--preset--font-size--body-small);
	grid-column: 2;
	line-height: 1.3;
}

.resource-library__apply {
	background: var(--wp--preset--color--base);
	border: 2px solid var(--wp--preset--color--base);
	color: var(--wp--preset--color--blue);
	font-weight: 700;
	padding: var(--wp--preset--spacing--sm) var(--wp--preset--spacing--md);
	text-transform: uppercase;
	-webkit-transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
	transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.resource-library__apply:hover {
	background: var(--wp--preset--color--green);
	border-color: var(--wp--preset--color--green);
	color: var(--wp--preset--color--contrast);
}

.resource-library__apply:focus-visible {
	outline-color: var(--wp--preset--color--base);
}

.has-js .resource-library__apply {
	display: none;
}

.resource-library__results {
	min-width: 0;
	-webkit-transition: opacity 150ms ease;
	transition: opacity 150ms ease;
}

.resource-library__results[aria-busy="true"] {
	opacity: 0.55;
}

.resource-results__top {
	margin-bottom: var(--wp--preset--spacing--3-xl);
}

.resource-results__heading {
	font-size: var(--wp--preset--font-size--h-4);
	line-height: 1.2;
	margin: 0;
	text-transform: uppercase;
}

.resource-results__heading span {
	color: var(--wp--custom--color--text--secondary);
	font-weight: 400;
}

.resource-results__grid {
	display: grid;
	gap: var(--wp--preset--spacing--xl);
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.resource-card {
	background: var(--wp--preset--color--cream);
	border-radius: var(--wp--custom--radius--medium);
	min-height: 13.5625rem;
	position: relative;
	-webkit-transition: -webkit-box-shadow 180ms ease, -webkit-transform 180ms ease;
	transition: -webkit-box-shadow 180ms ease, -webkit-transform 180ms ease;
	transition: box-shadow 180ms ease, transform 180ms ease;
	transition: box-shadow 180ms ease, transform 180ms ease, -webkit-box-shadow 180ms ease, -webkit-transform 180ms ease;
}

.resource-card:hover {
	-webkit-box-shadow: -0.375rem 0.375rem 0 var(--wp--preset--color--contrast);
	        box-shadow: -0.375rem 0.375rem 0 var(--wp--preset--color--contrast);
	-webkit-transform: translate(0.1875rem, -0.1875rem);
	        transform: translate(0.1875rem, -0.1875rem);
}

.resource-card--featured {
	border: 3px solid var(--wp--custom--color--border--disabled);
}

.resource-card--start-here {
	background: var(--wp--custom--color--background--alternative);
	border-color: var(--wp--preset--color--blue);
}

.resource-card__link {
	border-radius: inherit;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	color: inherit;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	    -ms-flex-direction: column;
	        flex-direction: column;
	gap: var(--wp--preset--spacing--sm);
	height: 100%;
	min-height: inherit;
	padding: var(--wp--preset--spacing--lg);
	text-decoration: none;
}

.resource-card__featured-label {
	background: var(--wp--preset--color--pink);
	font-size: var(--wp--preset--font-size--body-small);
	font-weight: 700;
	line-height: 1.4;
	padding: 0.25rem 0.75rem 0.375rem;
	position: absolute;
	right: -0.625rem;
	top: -0.625rem;
	text-transform: uppercase;
}

.resource-card--start-here .resource-card__featured-label {
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--base);
}

.resource-card__type {
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	color: var(--wp--custom--color--text--brand-secondary);
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	font-size: var(--wp--preset--font-size--body-small);
	font-weight: 600;
	gap: var(--wp--preset--spacing--xs);
	line-height: 1;
}

.resource-card--start-here .resource-card__type {
	color: var(--wp--preset--color--blue);
}

.resource-card__type-icon {
	display: block;
	height: 1.125rem;
	position: relative;
	width: 1.125rem;
}

.resource-card__type-icon img {
	display: block;
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	-o-object-fit: contain;
	   object-fit: contain;
	width: 100%;
}

.resource-card__title {
	font-size: var(--wp--preset--font-size--h-5);
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.12;
	margin: 0;
	text-transform: none;
}

.resource-card--start-here .resource-card__title {
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.2;
	text-transform: uppercase;
}

.resource-card__publisher {
	color: var(--wp--custom--color--text--secondary);
	font-size: var(--wp--preset--font-size--body-small);
	font-weight: 500;
	line-height: 1;
}

.resource-card__cta {
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	font-size: var(--wp--preset--font-size--body-small);
	font-weight: 700;
	gap: var(--wp--preset--spacing--xs);
	line-height: 1.4;
	margin-top: auto;
	padding-top: var(--wp--preset--spacing--md);
	text-transform: uppercase;
}

.resource-card__cta img {
	height: 1rem;
	-webkit-transition: -webkit-transform 180ms ease;
	transition: -webkit-transform 180ms ease;
	transition: transform 180ms ease;
	transition: transform 180ms ease, -webkit-transform 180ms ease;
	width: 1rem;
}

.resource-card:hover .resource-card__cta img {
	-webkit-transform: translateX(0.25rem);
	        transform: translateX(0.25rem);
}

.resource-results__empty {
	background: var(--wp--preset--color--cream);
	border-radius: var(--wp--custom--radius--medium);
	padding: var(--wp--preset--spacing--xl);
}

.resource-results__empty h3,
.resource-results__empty p {
	margin: 0;
}

.resource-results__empty p {
	margin-top: var(--wp--preset--spacing--sm);
}

.resource-results__clear {
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	font-weight: 700;
	margin-top: var(--wp--preset--spacing--lg);
	text-decoration-thickness: 2px;
	text-underline-offset: 0.15em;
	text-transform: uppercase;
}

.resource-results__clear:hover {
	color: var(--wp--preset--color--blue);
}

.resource-pagination {
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	gap: var(--wp--preset--spacing--sm);
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	margin-top: var(--wp--preset--spacing--3-xl);
	min-height: 5.375rem;
}

.resource-pagination a {
	text-decoration: none;
	-webkit-transition: background-color 160ms ease, color 160ms ease;
	transition: background-color 160ms ease, color 160ms ease;
}

.resource-pagination a:hover {
	background: var(--wp--preset--color--pale-blue);
	color: var(--wp--preset--color--blue);
}

.resource-pagination__direction,
.resource-pagination__page,
.resource-pagination__ellipsis {
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	border-radius: var(--wp--custom--radius--small);
	display: -webkit-inline-box;
	display: -ms-inline-flexbox;
	display: inline-flex;
	-webkit-box-pack: center;
	    -ms-flex-pack: center;
	        justify-content: center;
	min-height: 2.375rem;
	padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--sm);
}

.resource-pagination__direction {
	font-size: var(--wp--preset--font-size--body-small);
	font-weight: 700;
	gap: var(--wp--preset--spacing--xs);
	text-transform: uppercase;
}

.resource-pagination__direction img {
	height: 1rem;
	width: 1rem;
}

.resource-pagination__direction.is-disabled {
	opacity: 0.5;
}

.resource-pagination__pages {
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	gap: var(--wp--preset--spacing--xs);
}

.resource-pagination__page {
	font-size: var(--wp--preset--font-size--body);
	line-height: 1;
}

.resource-pagination__page.is-current {
	background: var(--wp--preset--color--blue);
	color: var(--wp--preset--color--base);
}

.resource-library__status {
	background: var(--wp--custom--color--text--danger-on-danger);
	border: 2px solid var(--wp--custom--color--text--danger);
	grid-column: 2;
	margin: 0;
	padding: var(--wp--preset--spacing--sm);
}

.resource-promos {
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
	display: grid;
	gap: var(--wp--preset--spacing--lg);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-inline: auto;
	max-width: var(--wp--custom--layout--full-size);
	padding: var(--wp--preset--spacing--4-xl) var(--wp--preset--spacing--5-xl);
	width: 100%;
}

.resource-promo {
	display: grid;
	gap: var(--wp--preset--spacing--lg);
	text-decoration: none;
}

.resource-promo__image {
	background: var(--wp--preset--color--pink);
	border-radius: var(--wp--custom--radius--small);
	display: block;
	height: 10rem;
	overflow: hidden;
	-webkit-transition: -webkit-box-shadow 180ms ease, -webkit-transform 180ms ease;
	transition: -webkit-box-shadow 180ms ease, -webkit-transform 180ms ease;
	transition: box-shadow 180ms ease, transform 180ms ease;
	transition: box-shadow 180ms ease, transform 180ms ease, -webkit-box-shadow 180ms ease, -webkit-transform 180ms ease;
}

.resource-promo:hover .resource-promo__image {
	-webkit-box-shadow: -0.25rem 0.25rem 0 var(--wp--preset--color--contrast);
	        box-shadow: -0.25rem 0.25rem 0 var(--wp--preset--color--contrast);
	-webkit-transform: translate(0.125rem, -0.125rem);
	        transform: translate(0.125rem, -0.125rem);
}

.resource-promo__image img {
	height: 100%;
	-o-object-fit: cover;
	   object-fit: cover;
	-webkit-transition: -webkit-transform 180ms ease;
	transition: -webkit-transform 180ms ease;
	transition: transform 180ms ease;
	transition: transform 180ms ease, -webkit-transform 180ms ease;
	width: 100%;
}

.resource-promo:hover .resource-promo__image img {
	-webkit-transform: scale(1.025);
	        transform: scale(1.025);
}

.resource-promo__title {
	font-size: var(--wp--preset--font-size--h-5);
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	-webkit-transition: color 160ms ease;
	transition: color 160ms ease;
}

.resource-promo:hover .resource-promo__title {
	color: var(--wp--preset--color--blue);
}

.resource-single__header {
	background: var(--wp--custom--gradient--signup);
	padding-block: var(--wp--preset--spacing--4-xl);
}

.resource-single__header-inner {
	display: grid;
	gap: var(--wp--preset--spacing--md);
	margin-inline: auto;
	max-width: var(--wp--style--global--wide-size);
	width: min(calc(100% - (2 * var(--wp--custom--layout--gutter))), var(--wp--style--global--wide-size));
}

.resource-single__header h1,
.resource-single__type,
.resource-single__publisher {
	margin: 0;
}

.resource-single__type {
	-webkit-box-align: center;
	    -ms-flex-align: center;
	        align-items: center;
	color: var(--wp--preset--color--blue);
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	font-weight: 600;
	gap: var(--wp--preset--spacing--xs);
}

.resource-single__type img {
	height: 1.125rem;
	width: 1.125rem;
}

.resource-single__publisher {
	color: var(--wp--custom--color--text--secondary);
}

.resource-single__content {
	padding-block: var(--wp--preset--spacing--4-xl);
}

@media (max-width: 63.999rem) {
	.resource-library {
		grid-template-columns: 1fr;
		padding-inline: var(--wp--preset--spacing--xl);
	}

	.has-js .resource-library__filter-toggle {
		-webkit-box-align: center;
		    -ms-flex-align: center;
		        align-items: center;
		background: var(--wp--preset--color--blue);
		border: 0;
		border-radius: var(--wp--custom--radius--medium);
		color: var(--wp--preset--color--base);
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		font-weight: 700;
		-webkit-box-pack: justify;
		    -ms-flex-pack: justify;
		        justify-content: space-between;
		padding: var(--wp--preset--spacing--md);
		text-transform: uppercase;
	}

	.has-js .resource-library__filters:not(.is-open) {
		display: none;
	}

	.resource-library__status {
		grid-column: 1;
	}

	.resource-promos {
		padding-inline: var(--wp--preset--spacing--xl);
	}
}

@media (max-width: 47.999rem) {
	.resource-library {
		gap: var(--wp--preset--spacing--xl);
		padding: var(--wp--preset--spacing--xl) var(--wp--preset--spacing--md) var(--wp--preset--spacing--4-xl);
	}

	.resource-results__top {
		margin-bottom: var(--wp--preset--spacing--xl);
	}

	.resource-results__grid,
	.resource-promos {
		grid-template-columns: 1fr;
	}

	.resource-pagination {
		gap: var(--wp--preset--spacing--3-xs);
		-webkit-box-pack: justify;
		    -ms-flex-pack: justify;
		        justify-content: space-between;
	}

	.resource-pagination__pages {
		gap: 0;
	}

	.resource-pagination__direction,
	.resource-pagination__page,
	.resource-pagination__ellipsis {
		padding-inline: var(--wp--preset--spacing--xs);
	}

	.resource-pagination__ellipsis,
	.resource-pagination__pages .resource-pagination__page:nth-last-child(n + 5):not(.is-current) {
		display: none;
	}

	.resource-promos {
		padding: var(--wp--preset--spacing--3-xl) var(--wp--preset--spacing--md);
	}
}

@media (prefers-reduced-motion: reduce) {
	.resource-library__results {
		-webkit-transition: none;
		transition: none;
	}
}
