/**
 * Cream header sitewide + flush homepage announce under header.
 * Theme assets/css not writable via WebDAV — loaded from uploads.
 */

/* —— Sitewide cream header (match page --tca-cream) —— */
header.site {
	background: var(--tca-cream, #f7f4ec) !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
}

header.site .tca-menu-toggle {
	color: #000 !important;
}
header.site .tca-menu-toggle svg {
	width: 32px;
	height: 32px;
}

/* Home + full nav: one row on desktop, hamburger until 1040px */
@media (min-width: 1041px) {
	header.site .tca-hdr {
		flex-wrap: nowrap !important;
		max-width: var(--tca-maxw, 1120px);
		gap: 1rem;
	}
	header.site .tca-nav {
		min-width: 0;
		flex: 1 1 auto;
	}
	header.site .tca-nav ul {
		flex-wrap: nowrap !important;
		justify-content: flex-end;
		gap: 0.28rem;
	}
	header.site .tca-nav a {
		padding: 0.5rem 0.58rem !important;
		font-size: 0.92rem !important;
		white-space: nowrap;
	}
	header.site .tca-nav a.cta {
		padding: 0.4rem 0.7rem !important;
		margin-left: 0.2rem;
		white-space: normal !important;
		text-align: center;
		line-height: 1.15;
		flex-direction: column;
		justify-content: center;
	}
}

@media (max-width: 1040px) {
	header.site .tca-menu-toggle {
		display: flex !important;
	}
	header.site .tca-nav {
		display: none;
		width: calc(100% + 2.5rem);
		margin-left: -1.25rem;
		margin-right: -1.25rem;
		background: var(--tca-cream, #f7f4ec) !important;
		border-top: 2px solid #0f7a3a !important;
		box-shadow: 0 6px 16px rgba(0,0,0,0.08);
	}
	header.site .tca-nav.is-open {
		display: block;
	}
	header.site .tca-nav ul {
		flex-direction: column;
		flex-wrap: nowrap;
		gap: 0;
		padding: 0;
	}
	header.site .tca-nav li {
		width: 100%;
		border-bottom: 1px solid #e4dfd2;
	}
	header.site .tca-nav li:last-child,
	header.site .tca-nav-actions {
		border-bottom: none;
	}
	header.site .tca-nav a {
		display: flex;
		padding: 1rem 1.25rem !important;
		border-radius: 0;
		font-size: 1rem !important;
		white-space: normal;
	}
	header.site .tca-cta-break {
		display: none;
	}
}

/* —— Kill WP flow layout 24px gap above homepage green bar (all breakpoints) —— */
body.home .wp-site-blocks > main#main,
body.home main#main {
	margin-block-start: 0 !important;
	margin-top: 0 !important;
	padding-top: 0 !important;
}

body.home main.is-layout-flow > .tca-home-announce,
body.home main.is-layout-flow > :first-child,
body.home .tca-home-announce {
	margin: 0 !important;
	margin-block-start: 0 !important;
	margin-top: 0 !important;
}

/* —— Mobile only: nav cream + announce content inset —— */
@media (max-width: 768px) {
	header.site .tca-nav {
		background: var(--tca-cream, #f7f4ec) !important;
	}

	/* Full-bleed green bar; pad content to match .tca-wrap / .tca-hdr (1.25rem) */
	.tca-home-announce .tca-wrap {
		padding: 0.65rem 1.25rem 0.75rem !important;
		box-sizing: border-box;
	}
}
