/**
 * Grow NZ v0.6.1 Theme shell.
 *
 * This file owns the fixed Header layout and visitor display controls. The
 * native-navigation assets own Navigation presentation and behaviour.
 */

:root {
	--grow-header-height: 112px;
	--grow-admin-bar-height: 0px;
}

/* Page and Accent preferences ------------------------------------------ */
html[data-grow-page="cream"] { --grow-page-bg: #f3ebd9; --grow-page-surface: #fffaf0; }
html[data-grow-page="light-cream"] { --grow-page-bg: #fcf9f1; --grow-page-surface: #fffdf8; }
html[data-grow-page="white"] { --grow-page-bg: #ffffff; --grow-page-surface: #ffffff; }
html[data-grow-page="mint"] { --grow-page-bg: #e8f4ed; --grow-page-surface: #f7fcf9; }
html[data-grow-page="sky"] { --grow-page-bg: #e9f3f8; --grow-page-surface: #f7fbfd; }
html[data-grow-page="lavender"] { --grow-page-bg: #f0ebf6; --grow-page-surface: #fbf9fd; }
html[data-grow-page="peach"] { --grow-page-bg: #fae9dd; --grow-page-surface: #fff8f3; }

html[data-grow-theme="dark"][data-grow-page="cream"] { --grow-page-bg: #0d1f1c; --grow-page-surface: #172b27; }
html[data-grow-theme="dark"][data-grow-page="light-cream"] { --grow-page-bg: #14231f; --grow-page-surface: #1d2d29; }
html[data-grow-theme="dark"][data-grow-page="white"] { --grow-page-bg: #171b1a; --grow-page-surface: #222927; }
html[data-grow-theme="dark"][data-grow-page="mint"] { --grow-page-bg: #0d211b; --grow-page-surface: #172e27; }
html[data-grow-theme="dark"][data-grow-page="sky"] { --grow-page-bg: #0d1e26; --grow-page-surface: #172a33; }
html[data-grow-theme="dark"][data-grow-page="lavender"] { --grow-page-bg: #1b1724; --grow-page-surface: #292233; }
html[data-grow-theme="dark"][data-grow-page="peach"] { --grow-page-bg: #241913; --grow-page-surface: #32231b; }

html[data-grow-page] body.grow-nz-theme-0-6-0,
html[data-grow-page] body.grow-nz-theme-0-6-0 > .wp-site-blocks,
html[data-grow-page] body.grow-nz-theme-0-6-0 main,
html[data-grow-page] body.grow-nz-theme-0-6-0 .grow-page-shell,
html[data-grow-page] body.grow-nz-theme-0-6-0 .grow-archive-shell,
html[data-grow-page] body.grow-nz-theme-0-6-0 .grow-single-shell {
	background-color: var(--grow-page-bg) !important;
}

html[data-grow-page] body.grow-nz-theme-0-6-0 .grow-source-page,
html[data-grow-page] body.grow-nz-theme-0-6-0 .grow-imported-content {
	--bg: var(--grow-page-bg) !important;
	--paper: var(--grow-page-surface) !important;
	--grow-white: var(--grow-page-surface) !important;
	background: var(--grow-page-bg) !important;
}

html[data-grow-page] body.grow-nz-theme-0-6-0 .grow-source-page .pagehead,
html[data-grow-page] body.grow-nz-theme-0-6-0 .grow-imported-content .pagehead {
	background: var(--grow-page-bg) !important;
}

html[data-grow-page] body.grow-nz-theme-0-6-0 .grow-source-page .wave {
	background-color: var(--grow-page-bg) !important;
}

html[data-grow-page] body.grow-nz-theme-0-6-0 .grow-source-page .wave path {
	fill: var(--grow-page-surface) !important;
}

html[data-grow-page] body.grow-nz-theme-0-6-0 .grow-hero {
	background:
		radial-gradient(circle at 15% 18%, rgba(244, 179, 71, .17), transparent 23rem),
		linear-gradient(135deg, var(--grow-page-surface), var(--grow-page-bg)) !important;
}

html[data-grow-accent] body.grow-nz-theme-0-6-0 .grow-source-page,
html[data-grow-accent] body.grow-nz-theme-0-6-0 .grow-imported-content {
	--sea: var(--grow-sea) !important;
	--sea-700: var(--grow-sea-dark) !important;
	--aqua: var(--grow-sea) !important;
	--aqua-600: var(--grow-sea-dark) !important;
}

/* Fixed Header host ----------------------------------------------------- */
body.grow-nz-theme-0-6-0 {
	--grow-shell-gutter: clamp(16px, 3vw, 28px);
}

body.grow-nz-theme-0-6-0 > .wp-site-blocks {
	margin-top: 0 !important;
	padding-top: var(--grow-header-height) !important;
}

html {
	scroll-padding-top: calc(var(--grow-admin-bar-height) + var(--grow-header-height) + 1rem);
}

body.grow-nz-theme-0-6-0 #main-content {
	scroll-margin-top: calc(var(--grow-admin-bar-height) + var(--grow-header-height) + 1rem);
}

body.grow-nz-theme-0-6-0 .grow-site-header-host {
	position: fixed !important;
	z-index: 100000 !important;
	top: var(--grow-admin-bar-height) !important;
	right: 0 !important;
	left: 0 !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	transform: none !important;
	filter: none !important;
	isolation: isolate;
	overflow: visible !important;
}

body.grow-nz-theme-0-6-0 .grow-site-header-host > .grow-site-header {
	position: relative !important;
	z-index: auto !important;
	top: auto !important;
	right: auto !important;
	left: auto !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.grow-nz-theme-0-6-0 .grow-site-header {
	border: 0;
	border-bottom: 1px solid var(--grow-line);
	background: var(--grow-paper);
	box-shadow: 0 8px 28px rgba(18, 58, 51, .07);
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	overflow: visible !important;
}

body.grow-nz-theme-0-6-0 .grow-site-header :where(
	.grow-utility-bar,
	.grow-utility-inner,
	.grow-primary-header,
	.grow-header-primary-inner
) {
	margin-block: 0 !important;
}

body.grow-nz-theme-0-6-0 .grow-utility-bar {
	padding: 0 !important;
	border-bottom: 1px solid color-mix(in srgb, var(--grow-line) 78%, transparent);
	background: color-mix(in srgb, var(--grow-white) 72%, var(--grow-paper));
}

body.grow-nz-theme-0-6-0 .grow-utility-inner {
	width: min(var(--grow-wide, 1320px), calc(100% - (2 * var(--grow-shell-gutter)))) !important;
	max-width: var(--grow-wide, 1320px) !important;
	min-height: 36px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-inline: auto !important;
}

body.grow-nz-theme-0-6-0 .grow-utility-message {
	margin: 0;
	color: var(--grow-muted);
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .02em;
}

body.grow-nz-theme-0-6-0 .grow-utility-actions {
	display: flex;
	align-items: center;
	gap: .75rem !important;
	margin-left: auto;
}

body.grow-nz-theme-0-6-0 .grow-utility-actions > .wp-block-shortcode {
	margin: 0;
}

body.grow-nz-theme-0-6-0 .grow-utility-links {
	display: flex;
	align-items: center;
	gap: .95rem;
	font-size: .82rem;
	font-weight: 700;
	white-space: nowrap;
}

body.grow-nz-theme-0-6-0 .grow-utility-links a {
	color: var(--grow-ink);
	text-decoration: none;
}

body.grow-nz-theme-0-6-0 .grow-utility-links a:hover,
body.grow-nz-theme-0-6-0 .grow-utility-links a:focus-visible {
	color: var(--grow-sea);
	text-decoration: underline;
}

body.grow-nz-theme-0-6-0 .grow-primary-header {
	padding: 0 !important;
	background: var(--grow-paper);
	overflow: visible !important;
}

body.grow-nz-theme-0-6-0 .grow-header-primary-inner {
	width: min(var(--grow-wide, 1320px), calc(100% - (2 * var(--grow-shell-gutter)))) !important;
	max-width: var(--grow-wide, 1320px) !important;
	min-height: 72px;
	display: grid !important;
	grid-template-columns: 78px minmax(0, 1fr) auto;
	align-items: center;
	gap: clamp(.7rem, 1.7vw, 1.5rem);
	margin-inline: auto !important;
	padding: 0 !important;
	overflow: visible !important;
}

body.grow-nz-theme-0-6-0 .grow-site-logo,
body.grow-nz-theme-0-6-0 .grow-header-primary-inner > .wp-block-site-logo {
	position: relative;
	z-index: 2;
	grid-column: 1;
	margin: 0 !important;
}

body.grow-nz-theme-0-6-0 .grow-site-logo img,
body.grow-nz-theme-0-6-0 .grow-site-header .wp-block-site-logo img {
	width: auto !important;
	max-height: 64px;
	object-fit: contain;
}

body.grow-nz-theme-0-6-0 .grow-primary-navigation {
	min-width: 0;
	grid-column: 2;
	justify-self: center;
	margin: 0 !important;
	overflow: visible !important;
}

body.grow-nz-theme-0-6-0 .grow-header-actions {
	display: flex;
	grid-column: 3;
	align-items: center;
	justify-content: flex-end;
	gap: .55rem;
	white-space: nowrap;
}

body.grow-nz-theme-0-6-0 .grow-header-cta {
	min-height: 46px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: .68rem 1.05rem;
	border: 2px solid transparent;
	border-radius: 999px;
	font-family: var(--grow-heading-font);
	font-size: .92rem;
	font-weight: 750;
	line-height: 1.1;
	text-decoration: none;
}

body.grow-nz-theme-0-6-0 .grow-header-find {
	background: var(--grow-sea);
	box-shadow: 0 8px 24px color-mix(in srgb, var(--grow-sea) 22%, transparent);
	color: #fff;
}

body.grow-nz-theme-0-6-0 .grow-header-find:hover,
body.grow-nz-theme-0-6-0 .grow-header-find:focus-visible {
	background: var(--grow-sea-dark);
	color: #fff;
}

body.grow-nz-theme-0-6-0 .grow-header-donate-link {
	border-color: var(--grow-sun) !important;
	background: var(--grow-sun) !important;
	box-shadow: 0 8px 24px rgba(174, 106, 8, .18);
	color: #1b302b !important;
}

body.grow-nz-theme-0-6-0 .grow-header-donate-link:hover,
body.grow-nz-theme-0-6-0 .grow-header-donate-link:focus-visible {
	border-color: #ffc15a !important;
	background: #ffc15a !important;
	color: #132622 !important;
}

/* Display options ------------------------------------------------------- */
body.grow-nz-theme-0-6-0 .grow-appearance {
	position: relative;
	display: flex;
	align-items: center;
	gap: .4rem;
}

body.grow-nz-theme-0-6-0 .grow-round-control {
	width: 34px;
	height: 34px;
	min-width: 34px;
	display: grid;
	place-items: center;
	padding: 0;
	border: 1px solid color-mix(in srgb, var(--grow-line) 82%, transparent);
	border-radius: 50%;
	background: var(--grow-page-surface, var(--grow-white));
	color: var(--grow-ink);
	font-size: .82rem;
	cursor: pointer;
}

body.grow-nz-theme-0-6-0 .grow-round-control:hover,
body.grow-nz-theme-0-6-0 .grow-round-control[aria-expanded="true"] {
	border-color: var(--grow-sea);
	background: var(--grow-mint);
	color: var(--grow-sea-dark);
}

body.grow-nz-theme-0-6-0 .grow-options-panel {
	position: absolute;
	z-index: 100200;
	top: calc(100% + 12px);
	right: 0;
	left: auto;
	width: min(420px, calc(100vw - 28px));
	max-height: min(740px, calc(100dvh - var(--grow-admin-bar-height) - 56px));
	overflow: auto;
	margin: 0;
	padding: 1.35rem;
	border: 1px solid var(--grow-line);
	border-top: 4px solid var(--grow-sun);
	border-radius: 22px;
	background: var(--grow-page-surface, var(--grow-white));
	color: var(--grow-ink);
	box-shadow: var(--grow-shadow);
}

body.grow-nz-theme-0-6-0 .grow-options-panel[hidden] {
	display: none !important;
}

body.grow-nz-theme-0-6-0 .grow-options-heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

body.grow-nz-theme-0-6-0 .grow-options-heading small {
	color: var(--grow-sea);
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

body.grow-nz-theme-0-6-0 .grow-options-heading h2 {
	margin: .1rem 0 0;
	font-size: 1.7rem;
}

body.grow-nz-theme-0-6-0 .grow-options-heading > button {
	width: 36px;
	height: 36px;
	border: 1px solid var(--grow-line);
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 1.3rem;
	cursor: pointer;
}

body.grow-nz-theme-0-6-0 .grow-options-panel fieldset {
	margin: 1.1rem 0 0;
	padding: 1rem 0 0;
	border: 0;
	border-top: 1px solid var(--grow-line);
}

body.grow-nz-theme-0-6-0 .grow-options-panel legend {
	color: var(--grow-muted);
	font-family: var(--grow-heading-font);
	font-size: .86rem;
	font-weight: 800;
}

body.grow-nz-theme-0-6-0 .grow-option-help {
	margin: .35rem 0 0;
	color: var(--grow-muted);
	font-size: .76rem;
	line-height: 1.4;
}

body.grow-nz-theme-0-6-0 .grow-option-grid {
	display: grid;
	gap: .5rem;
	margin-top: .65rem;
}

body.grow-nz-theme-0-6-0 .grow-option-grid.grow-two { grid-template-columns: 1fr 1fr; }
body.grow-nz-theme-0-6-0 .grow-option-grid.grow-three { grid-template-columns: repeat(3, 1fr); }

body.grow-nz-theme-0-6-0 :where(
	.grow-option-grid button,
	.grow-size-control button,
	.grow-reset-options
) {
	min-height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .45rem;
	border: 1px solid var(--grow-line);
	border-radius: 12px;
	background: var(--grow-paper);
	color: var(--grow-ink);
	font-family: var(--grow-heading-font);
	font-weight: 700;
	cursor: pointer;
}

body.grow-nz-theme-0-6-0 .grow-option-grid button.is-selected {
	border-color: var(--grow-sea);
	background: var(--grow-mint);
	color: var(--grow-sea-dark);
	box-shadow: inset 0 0 0 1px var(--grow-sea);
}

body.grow-nz-theme-0-6-0 .grow-page-colour-settings legend {
	color: var(--grow-ink);
	font-size: 1rem;
}

body.grow-nz-theme-0-6-0 .grow-page-colour-options {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .6rem;
	margin-top: .75rem;
}

body.grow-nz-theme-0-6-0 .grow-page-colour-options button {
	position: relative;
	min-width: 0;
	min-height: 76px;
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	align-items: center;
	gap: .65rem;
	padding: .65rem;
	border: 1px solid var(--grow-line);
	border-radius: 14px;
	background: var(--grow-paper);
	color: var(--grow-ink);
	font-family: var(--grow-heading-font);
	text-align: left;
	cursor: pointer;
}

body.grow-nz-theme-0-6-0 .grow-page-colour-options button:hover {
	border-color: var(--grow-sea);
	transform: translateY(-1px);
}

body.grow-nz-theme-0-6-0 .grow-page-colour-options button.is-selected {
	border-color: var(--grow-sea);
	background: var(--grow-mint);
	color: var(--grow-sea-dark);
	box-shadow: inset 0 0 0 2px var(--grow-sea);
}

body.grow-nz-theme-0-6-0 .grow-page-colour-options button.is-selected::after {
	position: absolute;
	top: .25rem;
	right: .4rem;
	color: var(--grow-sea-dark);
	content: "✓";
	font-size: .74rem;
	font-weight: 900;
}

body.grow-nz-theme-0-6-0 .grow-page-colour-options button span {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: .12rem;
}

body.grow-nz-theme-0-6-0 .grow-page-colour-options button strong {
	font-size: .82rem;
	line-height: 1.2;
}

body.grow-nz-theme-0-6-0 .grow-page-colour-options button small {
	color: var(--grow-muted);
	font-family: var(--grow-body-font);
	font-size: .66rem;
	line-height: 1.25;
}

body.grow-nz-theme-0-6-0 .grow-page-preview {
	width: 34px;
	height: 46px;
	display: block;
	border-radius: 9px;
	box-shadow: 0 3px 9px rgba(18, 58, 51, .08);
}

.grow-page-cream { border: 1px solid #d8c8aa; background: #f3ebd9; }
.grow-page-light-cream { border: 1px solid #dfd3bb; background: #fcf9f1; }
.grow-page-white { border: 1px solid #cfd5d2; background: #ffffff; }
.grow-page-mint { border: 1px solid #a9c9ba; background: #dfeee6; }
.grow-page-sky { border: 1px solid #a9c8d5; background: #dfeef4; }
.grow-page-lavender { border: 1px solid #c8b8d8; background: #e9e1f1; }
.grow-page-peach { border: 1px solid #dfbda6; background: #f7dfcf; }

body.grow-nz-theme-0-6-0 .grow-page-colour-status,
body.grow-nz-theme-0-6-0 .grow-language-status {
	margin: .65rem 0 0;
	padding: .6rem .7rem;
	border-radius: 10px;
	background: color-mix(in srgb, var(--grow-mint) 72%, var(--grow-paper));
	color: var(--grow-sea-dark);
	font-size: .75rem;
	font-weight: 700;
	line-height: 1.4;
}

body.grow-nz-theme-0-6-0 .grow-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
}

.grow-teal { background: #0e7168; }
.grow-blue { background: #2563eb; }
.grow-clay { background: #c64d22; }
.grow-indigo { background: #5145cd; }
.grow-forest { background: #187449; }
.grow-rose { background: #bd2364; }
.grow-navy { background: #174a8b; }

body.grow-nz-theme-0-6-0 .grow-size-control {
	display: grid;
	grid-template-columns: 48px 1fr 48px;
	gap: .5rem;
	margin-top: .65rem;
}

body.grow-nz-theme-0-6-0 .grow-size-control output {
	min-height: 46px;
	display: grid;
	place-items: center;
	border: 1px solid var(--grow-line);
	border-radius: 12px;
	background: var(--grow-paper);
	font-family: var(--grow-heading-font);
	font-weight: 800;
}

body.grow-nz-theme-0-6-0 .grow-size-range {
	display: flex;
	justify-content: space-between;
	margin-top: .4rem;
	color: var(--grow-muted);
	font-size: .7rem;
	font-weight: 700;
}

body.grow-nz-theme-0-6-0 .grow-reset-options {
	width: 100%;
	margin-top: 1.2rem;
	border-color: var(--grow-sea);
	color: var(--grow-sea);
}

/* Dark shell ------------------------------------------------------------ */
html[data-grow-theme="dark"] body.grow-nz-theme-0-6-0 .grow-site-header,
html[data-grow-theme="dark"] body.grow-nz-theme-0-6-0 .grow-primary-header {
	background: #10221f;
}

html[data-grow-theme="dark"] body.grow-nz-theme-0-6-0 .grow-utility-bar {
	background: #122824;
}

html[data-grow-theme="dark"] body.grow-nz-theme-0-6-0 .grow-options-panel {
	background: var(--grow-page-surface) !important;
	color: var(--grow-ink);
	border-color: var(--grow-line) !important;
}

/* Responsive Header ----------------------------------------------------- */
@media (max-width: 1180px) {
	body.grow-nz-theme-0-6-0 .grow-header-primary-inner {
		grid-template-columns: 68px minmax(48px, 1fr) auto;
	}

	body.grow-nz-theme-0-6-0 .grow-primary-navigation {
		justify-self: end;
	}

}

@media (max-width: 780px) {
	body.grow-nz-theme-0-6-0 .grow-utility-message {
		display: none;
	}

	body.grow-nz-theme-0-6-0 .grow-utility-inner {
		justify-content: flex-end;
	}

	body.grow-nz-theme-0-6-0 .grow-utility-actions {
		width: 100%;
		justify-content: flex-start;
	}

	body.grow-nz-theme-0-6-0 .grow-utility-actions > .wp-block-shortcode {
		order: 2;
		margin-left: auto;
	}

	body.grow-nz-theme-0-6-0 .grow-appearance {
		order: 1;
	}

	body.grow-nz-theme-0-6-0 .grow-utility-links {
		justify-content: flex-end;
	}

	body.grow-nz-theme-0-6-0 .grow-utility-links a:first-child {
		display: none;
	}

	body.grow-nz-theme-0-6-0 .grow-utility-links a:nth-child(2) {
		display: inline-flex;
	}

	body.grow-nz-theme-0-6-0 .grow-appearance [data-grow-options-toggle],
	body.grow-nz-theme-0-6-0 .grow-appearance [data-grow-options-panel] {
		display: none !important;
	}

	body.grow-nz-theme-0-6-0 .grow-header-primary-inner {
		min-height: auto;
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-rows: auto auto;
		padding-block: .6rem .72rem !important;
		column-gap: .5rem;
		row-gap: .55rem;
	}

	body.grow-nz-theme-0-6-0 .grow-site-logo,
	body.grow-nz-theme-0-6-0 .grow-header-primary-inner > .wp-block-site-logo {
		grid-column: 1;
		grid-row: 1;
	}

	body.grow-nz-theme-0-6-0 .grow-site-logo img,
	body.grow-nz-theme-0-6-0 .grow-site-header .wp-block-site-logo img {
		max-height: 54px;
	}

	body.grow-nz-theme-0-6-0 .grow-primary-navigation {
		grid-column: 1;
		grid-row: 2;
		justify-self: start;
	}

	body.grow-nz-theme-0-6-0 .grow-header-actions {
		width: auto;
		grid-column: 2;
		grid-row: 2;
		justify-self: end;
		justify-content: flex-end;
		gap: .4rem;
	}

	body.grow-nz-theme-0-6-0 .grow-header-actions .grow-header-cta {
		min-height: 40px;
		flex: 0 0 auto;
		padding: .55rem .78rem;
		font-size: .82rem;
	}

	body.grow-nz-theme-0-6-0 .grow-options-panel {
		position: fixed;
		top: calc(var(--grow-admin-bar-height) + 10px);
		right: 10px;
		left: 10px;
		width: auto;
		max-height: calc(100dvh - var(--grow-admin-bar-height) - 20px);
	}
}

@media (max-width: 600px) {
	body.grow-nz-theme-0-6-0 .grow-header-cta {
		padding-inline: .72rem;
		font-size: .82rem;
	}

	body.grow-nz-theme-0-6-0 .grow-option-grid.grow-three {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 420px) {
	body.grow-nz-theme-0-6-0 .grow-page-colour-options {
		grid-template-columns: 1fr;
	}

	body.grow-nz-theme-0-6-0 .grow-round-control {
		width: 32px;
		height: 32px;
		min-width: 32px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.grow-nz-theme-0-6-0 .grow-options-panel * {
		transition: none !important;
	}
}

@media print {
	body.grow-nz-theme-0-6-0 > .wp-site-blocks {
		padding-top: 0 !important;
	}

	body.grow-nz-theme-0-6-0 .grow-site-header-host {
		display: none !important;
	}
}

/* Keep the editor usable without running the frontend shell controller. */
.editor-styles-wrapper .grow-site-header,
.editor-styles-wrapper .grow-site-header-host {
	position: static !important;
}

.editor-styles-wrapper .grow-primary-navigation .wp-block-navigation__submenu-container {
	position: static !important;
	width: auto !important;
	display: flex !important;
	opacity: 1 !important;
	visibility: visible !important;
}
