/* Native configured links keep each original artwork's intrinsic proportions. */
.nh-social-marks img {
	width: auto;
	height: auto;
}

.nh-review-provider-button {
	text-decoration: none;
	cursor: pointer;
}

.nh-review-provider-button .nh-review-provider-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
}

.nh-review-provider-button img {
	display: block;
	width: auto;
	height: auto;
}

.nh-home-site-link {
	display: block;
	grid-column: 1 / -1;
	border-radius: 8px;
	overflow: hidden;
}

.nh-home-site-link-mobile {
	display: none;
}

.nh-home-site-link figure {
	margin: 0;
	overflow: hidden;
}

.nh-home-site-link img {
	transition: transform 200ms ease;
}

.nh-home-site-link:is(:hover, :focus-visible) img {
	transform: scale(1.1);
}

.nh-home-site-link:focus-visible {
	outline: 3px solid var(--nh-deep);
	outline-offset: 4px;
}

/* Keep title and action in their existing column as independent native links. */
.nh-home-sites .nh-home-site-card {
	align-content: start;
}

.nh-home-site-copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.nh-home-site-title-link {
	color: var(--nh-deep);
	text-decoration: none;
	transition: opacity var(--nh-motion-state) var(--nh-motion-ease);
}

.nh-home-site-title-link:hover {
	opacity: .6;
}

.nh-home-site-title-link:active {
	opacity: 1;
}

/* Reuse the service-card action typography and the same local arrow artwork. */
.nh-home-site-action {
	display: inline-flex;
	align-items: center;
	gap: 15px;
	color: var(--nh-mint);
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -.02em;
	text-decoration: none;
}

.nh-home-site-action .nh-button-arrow {
	display: inline-block;
	flex: 0 0 17px;
	width: 17px;
	height: 17px;
	background: url('r2/9450121649e436dc5b561517.svg') center / contain no-repeat;
	transform: rotate(90deg);
}

.nh-home-site-action:is(:hover, :focus-visible) .nh-button-arrow {
	background-image: url('ui-states/arrow-detail-hover.svg');
}

.nh-home-site-action:active {
	color: var(--nh-mint-pressed);
}

.nh-home-site-action:active .nh-button-arrow {
	background-image: url('ui-states/arrow-detail-pressed.svg');
}

.nh-home-site-title-link:focus-visible,
.nh-home-site-action:focus-visible {
	outline: 3px solid var(--nh-deep);
	outline-offset: 5px;
}

@media (width <= 700px) {
	.nh-home-site-link-desktop {
		display: none;
	}

	.nh-home-site-link-mobile {
		display: block;
	}

	/* Reallocate the same vertical space: give the following description 16px
	 * while keeping the approved card/image dimensions and description position. */
	.nh-home-site-copy {
		gap: 12px;
		margin-bottom: 8px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nh-home-site-link img,
	.nh-home-site-title-link {
		transition: none;
	}
}
