/*
 * Resources hub refinements. The Solutions stylesheet supplies the shared
 * page shell, hero, alternating panels, CTA and responsive layout.
 */

.gwo-resources-page .gwo-resource-section,
.gwo-resources-page .gwo-resource-list {
	scroll-margin-block-start: calc(var(--gwo-solutions-header-offset) + var(--gwo-space-4));
}

.gwo-resources-page .gwo-solution-section__services-heading > span {
	color: var(--gwo-text-muted);
	font-size: var(--wp--preset--font-size--caption);
	margin-inline-start: auto;
}

.gwo-resources-hero__card-icon svg {
	block-size: var(--gwo-space-5);
	fill: none;
	inline-size: var(--gwo-space-5);
	stroke: currentcolor;
}

.gwo-resource-card,
.gwo-resource-entry {
	background: linear-gradient(135deg, rgb(255 255 255 / 72%), rgb(255 255 255 / 40%));
	backdrop-filter: blur(24px) saturate(165%);
	-webkit-backdrop-filter: blur(24px) saturate(165%);
	border: 1px solid rgb(255 255 255 / 72%);
	border-radius: var(--gwo-radius-lg);
	box-shadow: 0 0.75rem 1.75rem rgb(35 31 32 / 8%), inset 0 1px 0 rgb(255 255 255 / 88%);
	color: var(--gwo-black);
	overflow: hidden;
	transition: background-color 180ms var(--gwo-ease-standard), border-color 180ms var(--gwo-ease-standard), box-shadow 180ms var(--gwo-ease-standard), transform 180ms var(--gwo-ease-standard);
}

.gwo-resource-card:hover,
.gwo-resource-card[open],
.gwo-resource-entry:hover {
	background: rgb(255 255 255 / 90%);
	border-color: rgb(var(--gwo-isp-gradient-rgb) / 38%);
	box-shadow: 0 1rem 2.25rem rgb(35 31 32 / 12%), inset 0 1px 0 rgb(255 255 255 / 94%);
}

.gwo-resource-card__summary,
.gwo-resource-entry__link {
	align-items: center;
	box-sizing: border-box;
	display: grid;
	gap: var(--gwo-space-3);
	grid-template-columns: auto minmax(0, 1fr) auto;
	padding: var(--gwo-space-3) var(--gwo-space-4);
}

.gwo-resource-card__summary {
	cursor: pointer;
	list-style: none;
	min-block-size: 5.25rem;
	transition: background-color 180ms var(--gwo-ease-standard);
}

.gwo-resource-card__summary::-webkit-details-marker {
	display: none;
}

.gwo-resource-card__summary:hover {
	background-color: rgb(255 255 255 / 32%);
}

.gwo-resource-card__summary:focus-visible,
.gwo-resource-entry__link:focus-visible {
	box-shadow: inset 0 0 0 3px var(--gwo-yellow);
	outline: 3px solid var(--gwo-black);
	outline-offset: -3px;
}

.gwo-resource-entry__link {
	color: inherit;
	min-block-size: 7.5rem;
	padding-block: var(--gwo-space-4);
	text-decoration: none;
}

.gwo-resource-card__summary-copy,
.gwo-resource-entry__copy {
	display: grid;
	gap: var(--gwo-space-1);
	min-inline-size: 0;
}

.gwo-resource-card__title,
.gwo-resource-entry__title {
	font-family: var(--font-heading);
	font-size: var(--wp--preset--font-size--body);
	font-weight: var(--font-weight-semibold);
	line-height: 1.35;
	margin: 0;
	overflow-wrap: anywhere;
	text-wrap: balance;
}

.gwo-resource-card__teaser,
.gwo-resource-entry__teaser {
	color: var(--gwo-text-muted);
	font-size: var(--wp--preset--font-size--caption);
	line-height: 1.5;
	overflow-wrap: anywhere;
	text-wrap: pretty;
}

.gwo-resource-entry__date {
	color: var(--gwo-action-hover);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: var(--font-weight-medium);
	line-height: 1.35;
}

.gwo-resource-entry__action {
	color: var(--gwo-action-hover);
	font-size: var(--wp--preset--font-size--caption);
	font-weight: var(--font-weight-semibold);
	line-height: 1.4;
	margin-block-start: var(--gwo-space-1);
}

.gwo-resource-card__arrow,
.gwo-resource-entry__arrow {
	block-size: var(--gwo-space-5);
	fill: none;
	inline-size: var(--gwo-space-5);
	stroke: currentcolor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
	transition: transform 180ms var(--gwo-ease-standard);
}

.gwo-resource-card[open] .gwo-resource-card__arrow {
	transform: rotate(180deg);
}

.gwo-resource-card__content {
	border-block-start: 1px solid rgb(35 31 32 / 9%);
	padding: var(--gwo-space-4);
	padding-inline-start: calc(var(--gwo-space-4) + var(--gwo-space-8) + var(--gwo-space-3));
}

.gwo-resource-card__content p {
	color: var(--gwo-text-muted);
	font-size: var(--wp--preset--font-size--body-sm);
	line-height: 1.65;
	margin: 0;
	overflow-wrap: anywhere;
	text-wrap: pretty;
}

.gwo-resources-page #faqs .gwo-resource-card__content {
	border-block-start-color: rgb(68 158 55 / 24%);
}

@media (hover: hover) and (pointer: fine) {
	.gwo-resource-card:hover,
	.gwo-resource-entry:hover {
		transform: translateY(-2px);
	}

	.gwo-resource-card[open]:hover {
		transform: none;
	}

	.gwo-resource-entry__link:is(:hover, :focus-visible) .gwo-resource-entry__arrow {
		transform: translateX(var(--gwo-space-1));
	}
}

@media (max-width: 899px) {
	.gwo-resources-page .gwo-solution-section--isp .gwo-solution-section__includes-slot,
	.gwo-resources-page .gwo-solution-section--isp .gwo-solution-section__services {
		block-size: auto;
		max-block-size: none;
	}

	.gwo-resources-page .gwo-solution-section--isp .gwo-solution-section__service-list {
		overflow: visible;
		scrollbar-gutter: auto;
	}
}

@media (min-width: 600px) and (max-width: 1199px) {
	.gwo-resources-page .gwo-solutions-hero__package-item:last-child:nth-child(odd) {
		grid-column: 1 / -1;
		inline-size: calc((100% - var(--gwo-space-4)) / 2);
		justify-self: center;
	}
}

@media (min-width: 1200px) {
	.gwo-resources-page .gwo-solutions-hero__package-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		inline-size: 75%;
		margin-inline: auto;
	}
}

@media (max-width: 389px) {
	.gwo-resources-page .gwo-solution-section__services-heading > span {
		margin-inline-start: 0;
	}

	.gwo-resource-card__summary,
	.gwo-resource-entry__link {
		align-items: start;
		gap: var(--gwo-space-2);
		grid-template-columns: auto minmax(0, 1fr);
		padding-inline: var(--gwo-space-3);
	}

	.gwo-resource-card__arrow,
	.gwo-resource-entry__arrow {
		grid-column: 2;
		justify-self: end;
	}

	.gwo-resource-card__content {
		padding: var(--gwo-space-3);
		padding-inline-start: calc(var(--gwo-space-3) + var(--gwo-space-8) + var(--gwo-space-2));
	}
}

@media (prefers-reduced-motion: reduce) {
	.gwo-resource-card,
	.gwo-resource-entry,
	.gwo-resource-card__summary,
	.gwo-resource-card__arrow,
	.gwo-resource-entry__arrow {
		transition: none;
	}
}
