/**
 * Related Resources — shared front-end/editor styles.
 * Font files intentionally remain the responsibility of the active theme.
 */

.wp-block-related-resources {
	width: 100%;
}

.wp-block-related-resources .related-resources-heading {
	margin: 0 0 24px;
	padding: 0;
	color: #151515;
	font-family: var(--font-family-heading, "Graphik XXCond Web", sans-serif);
	font-size: 64px;
	font-weight: 700;
	line-height: 1;
	text-transform: none;
}

.wp-block-related-resources .related-resources-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	align-items: stretch;
}

.wp-block-related-resources .related-resource-card {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
	min-height: 570px;
	height: 100%;
	padding: 24px;
	overflow: hidden;
	box-sizing: border-box;
	background: rgba(3, 115, 243, 0.12);
	color: #151515;
	font-family: var(--font-family-body, "Graphik Web", sans-serif);
}

.wp-block-related-resources .related-resource-card.has-featured-image {
	gap: 24px;
}

.wp-block-related-resources .related-resource-card__image {
	display: block;
	position: relative;
	flex: 0 0 auto;
	width: 100%;
	aspect-ratio: 3 / 2;
	overflow: hidden;
}

.wp-block-related-resources .related-resource-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center;
	transition: transform 0.25s ease;
}

.wp-block-related-resources .related-resource-card__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 24px;
	min-width: 0;
}

.wp-block-related-resources .related-resource-card__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-width: 0;
}

.wp-block-related-resources .related-resource-card__icon {
	display: flex;
	flex: 0 0 60px;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	overflow: hidden;
	border-radius: 50%;
	background: #fff;
}

.wp-block-related-resources .related-resource-card__icon img {
	display: block;
	width: 24px;
	height: 24px;
	max-width: none;
	object-fit: contain;
}

.wp-block-related-resources .related-resource-card__image:hover img {
	transform: scale(1.02);
}

.wp-block-related-resources .related-resource-card__meta-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 12px;
	min-width: 0;
}

.wp-block-related-resources .related-resource-card__badges {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
}

.wp-block-related-resources .related-resource-card__category,
.wp-block-related-resources .resource-meta__term {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 25px;
	padding: 4px 10px;
	border-radius: 3px;
	box-sizing: border-box;
	font-family: var(--font-family-body, "Graphik Web", sans-serif);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.wp-block-related-resources .related-resource-card__category {
	background: rgba(64, 68, 67, 0.21);
	color: #000;
}

.wp-block-related-resources .related-resource-card__categories-more {
	appearance: none;
	padding: 0;
	border: 0;
	background: transparent;
	color: #6b7280;
	cursor: pointer;
	font: inherit;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.25;
	text-decoration: none;
}

.wp-block-related-resources .related-resource-card__categories-more:hover,
.wp-block-related-resources .related-resource-card__categories-more:focus-visible {
	color: #0373f3;
	text-decoration: underline;
}

.tippy-box[data-theme~="related-resources"] .tippy-content {
	padding: 6px 8px;
}

.related-resources-category-tooltip-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.35;
	text-align: left;
	text-transform: none;
}

.related-resources-category-tooltip-list > span {
	margin: 0;
	padding: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-transform: none;
}

.wp-block-related-resources .resource-meta__term--private {
	background: #313337;
	color: #fff;
}

.wp-block-related-resources .resource-meta__term--private svg {
	width: 12px;
	height: 12px;
	flex: 0 0 12px;
}

.wp-block-related-resources .related-resource-card__date {
	color: #313337;
	font-family: var(--font-family-body, "Graphik Web", sans-serif);
	font-size: 14px;
	font-style: italic;
	font-weight: 500;
	line-height: 1.6;
}

.wp-block-related-resources .related-resource-card__title {
	width: 100%;
	margin: 0;
	padding: 0;
	color: #151515;
	font-family: var(--font-family-heading, "Graphik XXCond Web", sans-serif);
	font-size: 36px;
	font-weight: 700;
	line-height: 40px;
	text-transform: none;
}

.wp-block-related-resources .related-resource-card__title a {
	color: inherit;
	text-decoration: none;
}

.wp-block-related-resources .related-resource-card__title a:hover,
.wp-block-related-resources .related-resource-card__title a:focus-visible {
	color: #0373f3;
}

.wp-block-related-resources .related-resource-card__excerpt {
	width: 100%;
	color: #313337;
	font-family: var(--font-family-body, "Graphik Web", sans-serif);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
}

.wp-block-related-resources .related-resource-card__excerpt > :first-child {
	margin-top: 0;
}

.wp-block-related-resources .related-resource-card__excerpt > :last-child {
	margin-bottom: 0;
}

.wp-block-related-resources .has-featured-image .related-resource-card__excerpt {
	display: none;
}

.wp-block-related-resources .related-resource-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 43px;
	padding: 14.5px 27px;
	border: 2px solid #151515;
	border-radius: 500px;
	box-sizing: border-box;
	background: #151515;
	color: #fff;
	font-family: var(--font-family-body, "Graphik Web", sans-serif);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.wp-block-related-resources .related-resource-card__button:hover,
.wp-block-related-resources .related-resource-card__button:focus-visible {
	border-color: #0373f3;
	background: #0373f3;
	color: #fff;
}

.wp-block-related-resources .related-resource-card__button i {
	flex: 0 0 auto;
	font-size: 14px;
	line-height: 1;
}

.wp-block-related-resources .splide__track {
	padding-bottom: 60px;
}

.wp-block-related-resources .splide__slide {
	height: auto;
}

.wp-block-related-resources .splide__slide > .related-resource-card {
	height: 100%;
}

.wp-block-related-resources .splide__arrow {
	position: static;
	top: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 43px;
	height: 43px;
	border: 2px solid #151515;
	border-radius: 500px;
	background: transparent;
	color: #151515;
	font-size: 14px;
	opacity: 1;
	transform: none;
	transition:
		background-color 0.2s,
		border-color 0.2s,
		color 0.2s,
		opacity 0.2s;
}

.wp-block-related-resources .splide__arrow--next {
	border-color: #0373f3;
	background: #0373f3;
	color: #fff;
}

.wp-block-related-resources .splide__arrow:disabled {
	opacity: 0.35;
}

.wp-block-related-resources .splide__arrow:not(:disabled):hover {
	border-color: #151515;
	background: #151515;
	color: #fff;
}

.wp-block-related-resources .splide__arrow--next:not(:disabled):hover {
	border-color: #0252b0;
	background: #0252b0;
}

.wp-block-related-resources .related-resources-arrows {
	position: relative;
	margin-top: 24px;
}

.wp-block-related-resources .related-resources-divider {
	margin: 0;
	border: 0;
	border-top: 1px solid rgba(21, 21, 21, 0.2);
}

.wp-block-related-resources .related-resources-nav-buttons {
	display: flex;
	justify-content: flex-end;
	gap: 12px;
	padding-top: 14px;
}

.wp-block-related-resources .splide__pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 16px;
}

.wp-block-related-resources .splide__pagination__page {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #d1d5db;
	transition: background-color 0.2s;
}

.wp-block-related-resources .splide__pagination__page.is-active {
	background: #0373f3;
	opacity: 1;
}

@media (min-width: 769px) {

	.wp-block-related-resources .related-resources-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.wp-block-related-resources .related-resources-arrows--hidden {
		display: none;
	}
}

@media (min-width: 1024px) {

	.wp-block-related-resources .related-resources-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {

	.wp-block-related-resources .related-resources-heading {
		font-size: 40px;
	}

	.wp-block-related-resources .related-resource-card {
		min-height: 0;
	}

	.wp-block-related-resources .related-resource-card__title {
		font-size: 32px;
		line-height: 36px;
	}
}

