/*
 * Shared frontend / Site Editor refinements.
 * Color, type, spacing, and layout presets live in theme.json.
 */
:where(.wp-site-blocks, .editor-styles-wrapper) {
	--ng-focus-color: var(--wp--preset--color--primary);
}
:where(.wp-site-blocks, .editor-styles-wrapper) :where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: var(--wp--custom--focus--width) solid var(--ng-focus-color);
	outline-offset: var(--wp--custom--focus--offset);
	box-shadow: 0 0 0 2px var(--wp--preset--color--background);
}
:where(.has-primary-background-color) {
	--ng-focus-color: var(--wp--preset--color--light-teal);
}
:where(.wp-site-blocks, .editor-styles-wrapper) .has-primary-background-color :is(h1, h2, h3, h4, h5, h6):not(.has-text-color) {
	color: inherit;
}
:where(.has-primary-background-color) a:not(.wp-block-button__link) {
	color: var(--wp--preset--color--light-teal);
}
:where(.has-primary-background-color) a:not(.wp-block-button__link):hover {
	color: var(--wp--preset--color--background);
}
:where(a) {
	text-underline-offset: 0.2em;
	text-decoration-thickness: 0.08em;
}
:where(.wp-block-button__link, button, input[type="submit"]) {
	min-height: var(--wp--custom--target--minimum);
	min-width: var(--wp--custom--target--minimum);
}
.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	white-space: normal;
	overflow-wrap: anywhere;
}
.is-style-northgate-secondary .wp-block-button__link {
	color: var(--wp--preset--color--interactive);
	background: transparent;
	border-color: currentColor;
}
.is-style-northgate-secondary .wp-block-button__link:hover {
	color: var(--wp--preset--color--background);
	background: var(--wp--preset--color--interactive-hover);
	border-color: var(--wp--preset--color--interactive-hover);
}
.has-primary-background-color .is-style-northgate-secondary .wp-block-button__link {
	color: var(--wp--preset--color--background);
	border-color: var(--wp--preset--color--light-teal);
}
.has-primary-background-color .is-style-northgate-secondary .wp-block-button__link:hover {
	color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--light-teal);
}
.is-style-northgate-card {
	--ng-focus-color: var(--wp--preset--color--primary);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--card);
	padding: var(--wp--preset--spacing--50);
	background: var(--wp--preset--color--background);
	color: var(--wp--preset--color--foreground);
	height: 100%;
	box-sizing: border-box;
}
:where(.wp-site-blocks, .editor-styles-wrapper) :where(h1, h2, h3, p, a) {
	overflow-wrap: break-word;
}
.ng-eyebrow {
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.ng-section {
	margin-block: 0;
}
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.wp-block-navigation__responsive-container.is-menu-open {
		animation: none;
	}
}

/* Native header / footer blocks remain editable in the Site Editor. */
.ng-wordmark {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: 0.23em;
}
.ng-wordmark strong {
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: 0.13em;
}
.ng-header-row > .ng-wordmark {
	flex-shrink: 0;
}
.ng-header-actions {
	min-width: 0;
	gap: var(--wp--preset--spacing--40);
}
.ng-header .wp-block-navigation-item__content,
.ng-footer .wp-block-navigation-item__content {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--target--minimum);
	padding-inline: var(--wp--preset--spacing--20);
}
.ng-header .wp-block-navigation-item__content {
	color: var(--wp--preset--color--primary);
}
.ng-header .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--interactive);
	text-decoration: underline;
}
.ng-header .current-menu-item > .wp-block-navigation-item__content {
	text-decoration: underline;
	text-underline-offset: 0.35em;
}
.ng-footer .wp-block-navigation {
	gap: 0;
}
.ng-footer .wp-block-separator {
	opacity: 0.35;
}
@media (max-width: 781px) {
	.ng-header .ng-header-cta.wp-block-buttons {
		display: none;
	}
}
@media (max-width: 599px) {
	.ng-header-row {
		gap: var(--wp--preset--spacing--30);
	}
	.ng-header .wp-block-navigation__responsive-container.is-menu-open {
		padding: var(--wp--preset--spacing--50);
	}
	.ng-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		font-size: var(--wp--preset--font-size--large);
		min-height: var(--wp--custom--target--minimum);
	}
}

.ng-cta-copy {
	max-width: 44rem;
}

@media (min-width: 782px) {
	:where(.wp-site-blocks, .editor-styles-wrapper) {
		--wp--preset--spacing--60: clamp(5rem, 6.667vw, 6rem);
	}
}

.ng-footer p a {
	display: inline-flex;
	align-items: center;
	min-height: var(--wp--custom--target--minimum);
}
