/**
 * Resource archive and single-article presentation.
 */

.resource-hub-group,
.resource-single {
	width: min(100% - (2 * var(--hhr-space-4)), var(--hhr-container));
	margin-inline: auto;
}

.resource-single__header h1 {
	margin-block: 0 var(--hhr-space-4);
	color: var(--hhr-color-navy);
	font-family: var(--hhr-font-heading);
	font-size: clamp(2rem, 8vw, 3.5rem);
	line-height: 1.08;
	overflow-wrap: anywhere;
}

.resource-single__summary {
	margin: 0;
	color: var(--hhr-color-muted);
	font-size: clamp(1rem, 3.5vw, 1.2rem);
	line-height: 1.7;
}

.resource-hub-page {
	display: grid;
	gap: var(--hhr-space-6);
	padding-block: var(--hhr-space-4) 0;
}

.resource-hub-page > * + * {
	margin-block-start: 0;
}

.resource-hub-group {
	padding-block: 0;
}

.resource-hub-group > h2,
.resource-related-resources > h2 {
	margin-block: 0 var(--hhr-space-5);
	color: var(--hhr-color-navy);
	font-family: var(--hhr-font-heading);
	font-size: clamp(1.5rem, 6vw, 2.25rem);
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.resource-card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--hhr-space-5);
}

.resource-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: var(--hhr-space-5);
	border: 1px solid var(--hhr-color-border);
	border-radius: var(--hhr-radius-card);
	background: var(--hhr-color-white);
	box-shadow: var(--hhr-shadow-card);
}

.resource-card__image {
	display: block;
	margin: calc(-1 * var(--hhr-space-5)) calc(-1 * var(--hhr-space-5)) var(--hhr-space-5);
	aspect-ratio: 12 / 7;
	overflow: hidden;
}

.resource-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.resource-card img,
.resource-single img,
.resource-single__featured-image img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: var(--hhr-radius-small);
}

.resource-card__title {
	margin-block: 0 var(--hhr-space-3);
	font-family: var(--hhr-font-heading);
	font-size: clamp(1.2rem, 2vw, 1.4rem);
	line-height: 1.25;
}

.resource-card__title a,
.resource-card__action,
.resource-single a {
	overflow-wrap: anywhere;
}

.resource-card__title a {
	color: var(--hhr-color-navy);
	text-decoration: none;
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

.resource-card__title a:hover,
.resource-card__title a:focus-visible {
	text-decoration: underline;
}

.resource-card__summary {
	margin-block: 0 var(--hhr-space-4);
	color: var(--hhr-color-muted);
	line-height: 1.65;
}

.resource-card__action {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	margin-block-start: auto;
	min-height: 2.75rem;
	color: var(--hhr-color-blue-dark);
	font-weight: 700;
	text-underline-offset: 0.2em;
}

.resource-card a:focus-visible,
.resource-single a:focus-visible {
	outline: 3px solid var(--hhr-color-focus);
	outline-offset: 3px;
}

.resource-single {
	padding-block: var(--hhr-space-6) var(--hhr-space-8);
}

body.single-resource main#primary {
	padding-block-end: var(--hhr-space-4);
}

body.single-resource .resource-single {
	padding-block-end: var(--hhr-space-4);
}

body.single-resource .site-footer {
	margin-block-start: var(--hhr-space-6);
}

.resource-single__header,
.resource-single__featured-image,
.resource-single__safety-notice,
.resource-single__content,
.resource-meta,
.resource-trust,
.resource-related-service,
.resource-related-resources,
.resource-single__request-service {
	width: min(100%, var(--hhr-content));
	margin-inline: auto;
}

.resource-single__header {
	padding-block-end: var(--hhr-space-5);
}

.resource-single__label {
	margin-block: 0 var(--hhr-space-3);
	color: var(--hhr-color-blue-dark);
	font-size: 0.875rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.resource-meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--hhr-space-2) var(--hhr-space-4);
	margin-block-start: var(--hhr-space-4);
	color: var(--hhr-color-muted);
	font-size: 0.9375rem;
}

.resource-single__featured-image {
	margin-block: var(--hhr-space-5);
}

.resource-single__featured-image img {
	width: 100%;
	height: auto;
}

.resource-single__safety-notice,
.resource-trust {
	margin-block: var(--hhr-space-5);
	padding: var(--hhr-space-4) var(--hhr-space-5);
	border-inline-start: 0.25rem solid var(--hhr-color-yellow-dark);
	border-radius: var(--hhr-radius-small);
	background: var(--hhr-color-powder);
	color: var(--hhr-color-text);
	line-height: 1.65;
}

.resource-single__content {
	color: var(--hhr-color-text);
	font-size: clamp(1rem, 3vw, 1.125rem);
	line-height: 1.8;
	overflow-wrap: anywhere;
}

.resource-single__content > * {
	max-width: 100%;
}

.resource-trust,
.resource-related-service,
.resource-related-resources,
.resource-single__request-service {
	margin-block-start: var(--hhr-space-6);
}

.resource-related-service,
.resource-single__request-service {
	padding: var(--hhr-space-5);
	border: 1px solid var(--hhr-color-border);
	border-radius: var(--hhr-radius-card);
	background: var(--hhr-color-surface);
}

.resource-related-service h2,
.resource-single__request-service h2 {
	margin-block: 0 var(--hhr-space-3);
	color: var(--hhr-color-navy);
	font-family: var(--hhr-font-heading);
	font-size: clamp(1.3rem, 5vw, 1.75rem);
}

@media (min-width: 48rem) {
	.resource-card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.resource-hub-group,
	.resource-single {
		width: min(100% - (2 * var(--hhr-space-6)), var(--hhr-container));
	}
}
