/* ==========================================================================
   Nepean Mortgage: small design-specific overrides.
   Brand tokens live in theme.json; only what tokens cannot express goes here.
   ========================================================================== */

/* The footer logo sits in an inline-block plate in the design, which leaves
   line-box space below it before the address. */
.arbor-footer .wp-block-image.arbor-logo {
	padding-bottom: 7px;
}

/* "Other policies" lists the policies except the one being read. */
.arbor-other-policies .current-menu-item {
	display: none;
}

/* Footer bottom bar: the legal line takes the room, the credit sits at the
   end of the row (below it, left aligned, once they wrap). */
.arbor-footer-bottom > p {
	margin: 0;
}

.arbor-footer-bottom > .arbor-footer-legal {
	flex: 1 1 480px;
	max-width: 960px;
}

.arbor-footer-bottom > .arbor-footer-credit {
	flex: none;
	white-space: nowrap;
}

.arbor-footer-credit a {
	color: var(--wp--preset--color--on-contrast-muted);
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--contrast-deep-border);
	text-underline-offset: 3px;
	transition: color var(--wp--custom--transition), text-decoration-color var(--wp--custom--transition);
}

.arbor-footer-credit a:hover {
	color: var(--wp--preset--color--on-contrast);
	text-decoration-color: currentcolor;
}

/* The heart beats: two quick pulses, then a rest. */
.nm-heart {
	display: inline-flex;
	vertical-align: -2px;
	margin: 0 1px;
	color: var(--wp--preset--color--accent);
	animation: nm-heartbeat 1.6s ease-in-out infinite;
}

@keyframes nm-heartbeat {

	0%,
	40%,
	100% {
		transform: scale(1);
	}

	10%,
	30% {
		transform: scale(1.25);
	}

	20% {
		transform: scale(1.05);
	}
}

@media (prefers-reduced-motion: reduce) {

	.nm-heart {
		animation: none;
	}
}
