/*
 * Site header: sticky top bar, oversized brand logo, scroll compact state
 * (butter bar + black logo once docked).
 *
 * Progress vars (0–1) are driven by assets/js/global.js.
 *
 * Figma (2147:1280): 40px inset top/sides, nav + logo share 1627px column,
 * 55px gap between nav baseline and logo.
 */

/*
 * Skip link inherits theme.json link color (sea on creamy-white ≈ 3.4:1).
 * Set AA colors on the base rule — a11y tools often reveal it without :focus.
 */
.skip-link.screen-reader-text {
	color: var(--wp--preset--color--creamy-white) !important;
	background-color: var(--wp--preset--color--moss) !important;
}

/*
 * Shared logo metrics on :root so archive banner can sit under the wordmark.
 * --lwt-header-inset keeps nav edges, logo edges, and viewport padding in sync.
 */
:root {
	--lwt-header-inset: 40px;
	--lwt-header-logo-max: 1627px;
	--lwt-header-nav-line: 1.4375rem; /* 23px — Manrope 17px caps */
	--lwt-header-bar-height: calc(
		var(--lwt-header-inset) + var(--lwt-header-nav-line)
	);
	--lwt-header-admin-offset: 0px;
	--lwt-logo-expanded-height: clamp(4.5rem, 11.5vw, 11.875rem);
	--lwt-logo-compact-height: 3.25rem;
	--lwt-logo-compact-width: 16rem;
	/* Figma: logo y=78 − nav height 23 ≈ 55px */
	--lwt-logo-gap: clamp(1.5rem, 4vw, 3.4375rem);
	--lwt-brand-height: calc(
		var(--lwt-logo-gap) + var(--lwt-logo-expanded-height)
	);
	/* Destinations → About ≈ 77px; Substack → Search ≈ 69px */
	--lwt-header-nav-gap: clamp(1.5rem, 4.5vw, 4.8125rem);
	--lwt-header-end-gap: clamp(1.5rem, 4vw, 4.3125rem);
}

/*
 * --lwt-header-progress: eased 0–1 that drives the logo and sticky tint.
 * --lwt-header-scroll: raw 0–1 that collapses the brand spacer with scroll.
 * --lwt-header-tint: second half of progress — butter bar + black logo.
 */
.lwt-site-header {
	--lwt-header-progress: 0;
	--lwt-header-scroll: 0;
	--lwt-header-tint: clamp(
		0,
		calc((var(--lwt-header-progress) - 0.5) * 2),
		1
	);
	position: relative;
	z-index: 200;
	width: 100%;
	background-color: transparent;
}

/*
 * Desktop: pin the whole header (nav + logo) to the viewport. The template
 * part wrapper spans the page, so it is the only ancestor tall enough to
 * keep the bar stuck past the header. Its transparent brand spacer may
 * overlap content mid-collapse, so only the bar takes pointer events.
 */
@media (min-width: 782px) {
	/*
	 * The brand spacer height tracks scroll 1:1. Scroll anchoring treats that
	 * shrink as a content shift and rewrites scrollY, so stopping mid-collapse
	 * bounces the header open and closed. Opt the viewport out on desktop,
	 * where this animation runs.
	 */
	html {
		overflow-anchor: none;
	}

	.wp-block-template-part:has(> .lwt-site-header) {
		position: sticky;
		top: var(--lwt-header-admin-offset);
		z-index: 200;
		pointer-events: none;
		overflow-anchor: none;
	}

	.lwt-site-header__bar {
		pointer-events: auto;
	}

	.lwt-site-header__bar::after {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		background-color: var(--wp--preset--color--butter);
		opacity: var(--lwt-header-tint);
		pointer-events: none;
	}
}

.admin-bar {
	--lwt-header-admin-offset: var(--wp-admin--admin-bar--height, 32px);
}

/*
 * Expanded padding is top-heavy (Figma inset above the nav). As the bar
 * compacts, the same total padding splits evenly so the nav row centres
 * without changing the bar height.
 */
.lwt-site-header__bar {
	--lwt-header-pad-top: var(--lwt-header-inset);
	--lwt-header-pad-bottom: 0px;
	--lwt-header-pad-shift: calc(
		(var(--lwt-header-pad-top) - var(--lwt-header-pad-bottom)) / 2 *
			var(--lwt-header-progress)
	);
	position: sticky;
	top: var(--lwt-header-admin-offset);
	z-index: 2;
	box-sizing: border-box;
	min-height: var(--lwt-header-bar-height);
	/* !important beats Site Editor inline spacing presets (e.g. spacing|20). */
	padding: calc(var(--lwt-header-pad-top) - var(--lwt-header-pad-shift))
		var(--lwt-header-inset)
		calc(var(--lwt-header-pad-bottom) + var(--lwt-header-pad-shift)) !important;
	overflow: visible;
	background-color: var(--wp--preset--color--creamy-white);
}

/* Mega menu panels attach under the sticky bar (see blocks/nav-mega-menu). */
.lwt-site-header__nav {
	position: static;
}

.lwt-site-header__nav-row {
	/* Keep static so the mega panel positions against the full-width sticky bar. */
	position: static;
	width: 100%;
	min-height: var(--lwt-header-nav-line);
}

/* Desktop: logo is fixed/centered — remove it from the flex row’s space. */
.lwt-site-header__logo {
	--lwt-logo-expanded-top: calc(
		var(--lwt-header-admin-offset) + var(--lwt-header-bar-height) +
			var(--lwt-logo-gap)
	);
	/* Compact: logo centre on the bar centre (link shifts up by half its height). */
	--lwt-logo-compact-top: calc(
		var(--lwt-header-admin-offset) +
			var(--lwt-header-bar-measured, var(--lwt-header-bar-height)) / 2
	);
	position: fixed;
	top: calc(
		var(--lwt-logo-expanded-top) -
			(
				(var(--lwt-logo-expanded-top) - var(--lwt-logo-compact-top)) *
					var(--lwt-header-progress)
			)
	);
	left: 50%;
	z-index: 1;
	/* Collapse the flex footprint so left/right navs keep space-between. */
	flex: 0 0 0;
	width: min(
		calc(100vw - (2 * var(--lwt-header-inset))),
		calc(
			var(--lwt-header-logo-max) -
				(
					(
							var(--lwt-header-logo-max) -
								var(--lwt-logo-compact-width)
						) *
						var(--lwt-header-progress)
				)
		)
	);
	max-width: var(--lwt-header-logo-max);
	height: 0;
	margin: 0;
	padding: 0;
	overflow: visible;
	transform: translate3d(-50%, 0, 0);
	transform-origin: top center;
	pointer-events: auto;
	will-change: top, width;
}

/* Override layout blockGap so Destinations → About matches Figma (~77px). */
.lwt-site-header__nav--left.wp-block-navigation,
.lwt-site-header__nav--left .wp-block-navigation__container {
	--wp--style--block-gap: var(--lwt-header-nav-gap);
	gap: var(--lwt-header-nav-gap);
}

.lwt-site-header__nav .wp-block-navigation-item__content {
	color: var(--wp--preset--color--black);
	text-decoration: none;
}

.lwt-site-header__nav .wp-block-navigation-item__content:hover,
.lwt-site-header__nav .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--moss);
}

.lwt-site-header__nav .wp-block-navigation__submenu-icon {
	width: 1.1em;
	height: 0.6em;
	margin-left: 0.45em;
}

.lwt-site-header__end {
	margin-left: auto;
	gap: var(--lwt-header-end-gap) !important;
}

/*
 * Editor preview of the header Search block. On the frontend
 * inc/theme/header-search.php swaps it for the .lwt-header-search dropdown.
 */
.lwt-site-header__search .wp-block-search__label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.lwt-site-header__search .wp-block-search__inside-wrapper {
	display: flex;
	align-items: center;
	gap: 1.375rem; /* Figma: 22px between icon and “Search” */
	border: 0;
	background: transparent;
}

.lwt-site-header__search .wp-block-search__input {
	order: 1;
	width: min(7.5rem, 22vw);
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--wp--preset--color--black);
	font-family: var(--wp--preset--font-family--manrope);
	font-size: var(--wp--preset--font-size--heading-4);
	font-weight: 500;
	letter-spacing: 0.13em;
	line-height: normal;
	text-transform: uppercase;
}

.lwt-site-header__search .wp-block-search__input::placeholder {
	color: var(--wp--preset--color--black);
	opacity: 1;
}

.lwt-site-header__search .wp-block-search__input:focus {
	outline: none;
}

.lwt-site-header__search .wp-block-search__input:focus-visible {
	outline: 2px solid var(--wp--preset--color--moss);
	outline-offset: 2px;
}

.lwt-site-header__search .wp-block-search__button {
	order: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--wp--preset--color--black);
	font-size: 0;
	line-height: 0;
	box-shadow: none;
}

.lwt-site-header__search
	.wp-block-search__inside-wrapper:hover
	.wp-block-search__button,
.lwt-site-header__search
	.wp-block-search__inside-wrapper:hover
	.wp-block-search__input,
.lwt-site-header__search
	.wp-block-search__inside-wrapper:hover
	.wp-block-search__input::placeholder,
.lwt-site-header__search
	.wp-block-search__inside-wrapper:focus-within
	.wp-block-search__button,
.lwt-site-header__search
	.wp-block-search__inside-wrapper:focus-within
	.wp-block-search__input,
.lwt-site-header__search
	.wp-block-search__inside-wrapper:focus-within
	.wp-block-search__input::placeholder {
	color: var(--wp--preset--color--moss);
}

.lwt-site-header__search .wp-block-search__button:focus-visible {
	outline: 2px solid var(--wp--preset--color--moss);
	outline-offset: 2px;
}

.lwt-site-header__search .wp-block-search__button svg {
	display: none;
}

.lwt-site-header__search .wp-block-search__button::before {
	content: "";
	display: block;
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
	background-color: currentColor;
	mask: url("../images/icon-search.svg") center / contain no-repeat;
	-webkit-mask: url("../images/icon-search.svg") center / contain no-repeat;
}

/*
 * Header search dropdown: "Search" trigger opens a full-width wheat panel
 * under the sticky bar. --lwt-header-search-top is measured by global.js.
 */
.lwt-header-search {
	display: flex;
	align-items: center;
}

.lwt-header-search__toggle {
	display: inline-flex;
	align-items: center;
	gap: 1.375rem; /* Figma: 22px between icon and “Search” */
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--wp--preset--color--black);
	font-family: var(--wp--preset--font-family--manrope);
	font-size: var(--wp--preset--font-size--heading-4);
	font-weight: 500;
	letter-spacing: 0.13em;
	line-height: normal;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
}

.lwt-header-search__toggle:hover,
.lwt-header-search__toggle:focus-visible,
.lwt-header-search__toggle:has(+ .lwt-header-search__panel:popover-open) {
	color: var(--wp--preset--color--moss);
}

.lwt-header-search__toggle:focus-visible {
	outline: 2px solid var(--wp--preset--color--moss);
	outline-offset: 4px;
}

.lwt-header-search__icon {
	display: block;
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	background-color: currentColor;
	mask: url("../images/icon-search.svg") center / contain no-repeat;
	-webkit-mask: url("../images/icon-search.svg") center / contain no-repeat;
}

/*
 * Motion, offset, shadow, and bar gap mirror .lwt-mega-menu__panel
 * (blocks/nav-mega-menu/style.css) so both header dropdowns feel the same.
 */
.lwt-header-search__panel {
	--lwt-header-search-duration: 320ms;
	--lwt-header-search-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--lwt-header-search-close-delay: 100ms;
	--lwt-header-search-offset: 0.85rem;
	--lwt-header-search-gap: calc(2rem * (1 - var(--lwt-header-progress, 0)));
	--lwt-header-search-bar-bottom: var(
		--lwt-header-search-top,
		calc(var(--lwt-header-admin-offset) + var(--lwt-header-bar-height))
	);
	position: fixed;
	inset: calc(
			var(--lwt-header-search-bar-bottom) + var(--lwt-header-search-gap)
		)
		0 auto;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	height: auto;
	max-height: calc(
		100dvh - var(--lwt-header-search-bar-bottom) -
			var(--lwt-header-search-gap)
	);
	margin: 0;
	padding: clamp(2.5rem, 6vw, 6rem) max(var(--lwt-header-inset), 10vw);
	overflow: auto;
	border: 0;
	background-color: var(--wp--preset--color--wheat);
	color: var(--wp--preset--color--black);
	box-shadow: 0 1.25rem 2.5rem rgb(0 0 0 / 8%);
	opacity: 0;
	transform: translate3d(0, calc(var(--lwt-header-search-offset) * -1), 0);
	transition:
		opacity var(--lwt-header-search-duration) var(--lwt-header-search-ease),
		transform var(--lwt-header-search-duration)
			var(--lwt-header-search-ease),
		overlay var(--lwt-header-search-duration) allow-discrete,
		display var(--lwt-header-search-duration) allow-discrete;
	/* Delay only when closing, matching the mega menu. */
	transition-delay: var(--lwt-header-search-close-delay);
}

.lwt-header-search__panel:popover-open {
	display: flex;
	justify-content: center;
	opacity: 1;
	transform: translate3d(0, 0, 0);
	transition-delay: 0s;
}

@starting-style {
	.lwt-header-search__panel:popover-open {
		opacity: 0;
		transform: translate3d(
			0,
			calc(var(--lwt-header-search-offset) * -1),
			0
		);
	}
}

/* Inner content lifts in just after the panel, like .lwt-mega-flyout. */
.lwt-header-search__panel .lwt-header-search__form {
	opacity: 0;
	transform: translate3d(0, 0.5rem, 0);
	transition:
		opacity calc(var(--lwt-header-search-duration) * 0.9)
			var(--lwt-header-search-ease),
		transform calc(var(--lwt-header-search-duration) * 0.9)
			var(--lwt-header-search-ease);
	transition-delay: var(--lwt-header-search-close-delay);
}

.lwt-header-search__panel:popover-open .lwt-header-search__form {
	opacity: 1;
	transform: translate3d(0, 0, 0);
	transition-delay: 60ms;
}

@starting-style {
	.lwt-header-search__panel:popover-open .lwt-header-search__form {
		opacity: 0;
		transform: translate3d(0, 0.5rem, 0);
	}
}

.lwt-header-search__panel::backdrop {
	background: transparent;
}

/* Out-specifies the shared bordered field cap in core-search.scss. */
.lwt-header-search
	.lwt-header-search__panel
	.wp-block-search.lwt-header-search__form {
	max-width: 100rem;
	margin: 0 auto;
}

/*
 * Brand spacer under the sticky bar (desktop oversized wordmark room).
 * Logo lives in the nav row and is position:fixed on desktop.
 */
.lwt-site-header__brand {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	box-sizing: border-box;
	height: calc(var(--lwt-brand-height) * (1 - var(--lwt-header-scroll)));
	min-height: 0;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	padding-left: var(--lwt-header-inset) !important;
	padding-right: var(--lwt-header-inset) !important;
	overflow: visible;
	pointer-events: none;
}

.lwt-site-header__logo .custom-logo-link,
.lwt-site-header__logo a {
	display: block;
	line-height: 0;
	transform: translate3d(0, calc(-50% * var(--lwt-header-progress)), 0);
}

.lwt-site-header__logo .custom-logo,
.lwt-site-header__logo img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	filter: brightness(calc(1 - var(--lwt-header-tint)));
}

/* Must follow the generic img rule or both cream + sea paint on desktop. */
.lwt-site-header__logo .lwt-logo--sea {
	display: none !important;
}

.lwt-header-inline-brand .lwt-site-header__logo .lwt-logo--sea,
.lwt-site-header--inline-brand .lwt-site-header__logo .lwt-logo--sea {
	display: block !important;
}

.lwt-site-header.is-compact .lwt-site-header__logo {
	z-index: 3;
}

/* Keep the wordmark under an open Destinations panel. */
.lwt-site-header:has(.lwt-mega-menu.is-open) .lwt-site-header__brand,
.lwt-site-header:has(.lwt-mega-menu.is-open) .lwt-site-header__logo,
.lwt-site-header:has(.lwt-mega-menu:focus-within) .lwt-site-header__brand,
.lwt-site-header:has(.lwt-mega-menu:focus-within) .lwt-site-header__logo {
	z-index: 0;
}

@media (hover: hover) and (pointer: fine) {
	.lwt-site-header:has(.lwt-mega-menu:hover) .lwt-site-header__brand,
	.lwt-site-header:has(.lwt-mega-menu:hover) .lwt-site-header__logo {
		z-index: 0;
	}
}

/*
 * Singular posts: mid-size sea wordmark in the nav bar (Figma 71:68 — 476×56).
 * Start a touch under Figma so the bar reads lighter before scroll-compact.
 * Must sit above the sticky creamy-white bar; cream wordmark is invisible here.
 */
.lwt-header-inline-brand,
.lwt-site-header--inline-brand {
	/* Keep the shared tall bar (inset + nav); do not collapse to logo height. */
	--lwt-header-bar-height: calc(
		var(--lwt-header-inset) + var(--lwt-header-nav-line) + 0.75rem
	);
	--lwt-logo-expanded-width: 22.5rem; /* 360px — smaller start on posts */
	--lwt-logo-expanded-height: 2.625rem; /* 42px — keep 476/56 ratio */
	--lwt-logo-gap: 0px;
	--lwt-brand-height: 0px;
}

.lwt-header-inline-brand .lwt-site-header__bar,
.lwt-site-header--inline-brand .lwt-site-header__bar {
	--lwt-header-pad-bottom: 0.75rem;
	min-height: var(--lwt-header-bar-height);
	display: flex;
	align-items: center;
}

.lwt-header-inline-brand .lwt-site-header__brand,
.lwt-site-header--inline-brand .lwt-site-header__brand {
	height: 0;
	min-height: 0;
	padding: 0 !important;
	overflow: visible;
	/* Keep brand stacking above the sticky bar so the fixed logo paints on top. */
	z-index: 3;
}

.lwt-header-inline-brand .lwt-site-header__logo,
.lwt-site-header--inline-brand .lwt-site-header__logo {
	z-index: 3;
	--lwt-logo-expanded-top: calc(
		var(--lwt-header-admin-offset) +
			(
				(
						var(--lwt-header-bar-height) -
							var(--lwt-logo-expanded-height)
					) /
					2
			) + 20px
	);
	width: min(
		calc(100vw - (2 * var(--lwt-header-inset))),
		calc(
			var(--lwt-logo-expanded-width) -
				(
					(
							var(--lwt-logo-expanded-width) -
								var(--lwt-logo-compact-width)
						) *
						var(--lwt-header-progress)
				)
		)
	) !important;
	max-width: var(--lwt-logo-expanded-width) !important;
	height: auto;
}

.lwt-header-inline-brand .lwt-site-header__logo .custom-logo,
.lwt-header-inline-brand .lwt-site-header__logo img,
.lwt-site-header--inline-brand .lwt-site-header__logo .custom-logo,
.lwt-site-header--inline-brand .lwt-site-header__logo img {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	aspect-ratio: 476 / 56;
}

.lwt-header-inline-brand .lwt-site-header.is-compact .lwt-site-header__logo,
.lwt-site-header--inline-brand.is-compact .lwt-site-header__logo {
	z-index: 3;
}

/* Mega menu may cover the wordmark, but never hide it behind the opaque bar. */
.lwt-header-inline-brand.lwt-site-header:has(.lwt-mega-menu.is-open) .lwt-site-header__logo,
.lwt-site-header--inline-brand:has(.lwt-mega-menu.is-open) .lwt-site-header__logo,
.lwt-header-inline-brand.lwt-site-header:has(.lwt-mega-menu:focus-within) .lwt-site-header__logo,
.lwt-site-header--inline-brand:has(.lwt-mega-menu:focus-within) .lwt-site-header__logo {
	z-index: 0;
}

/* Tablet: ease inset while keeping nav + logo on one shared column. */
@media (max-width: 1200px) {
	:root {
		--lwt-header-inset: clamp(1.5rem, 3.5vw, 2.5rem);
		--lwt-header-nav-gap: clamp(1.25rem, 3vw, 3rem);
		--lwt-header-end-gap: clamp(1.25rem, 3vw, 2.75rem);
	}
}

/*
 * Mobile: wheat stacked wordmark (logo-long-way-travel-stacked.svg, 552×259)
 * with the sea hamburger aligned to “LONG WAY”. The bar is transparent so
 * the bottom of “TRAVEL” sits on the hero. Desktop navs stay hidden.
 */
@media (max-width: 781px) {
	:root {
		--lwt-header-inset: 20px;
		--lwt-header-bar-height: auto;
		--lwt-logo-gap: 0px;
		--lwt-brand-height: 0px;
		--lwt-header-nav-gap: 1.25rem;
		--lwt-header-end-gap: 0px;
		/* Room for the 42px hamburger plus the gap before “WAY”. */
		--lwt-logo-stacked-offset: 5.5rem;
		/* Bottom of TRAVEL crosses the next section. */
		--lwt-logo-stacked-overlap: 4rem;
		/* Cropped scallop (viewBox y=60–84 → 24px wave only). */
		--lwt-header-scallop-height: 1.5rem;
		/*
		 * Front page’s first group has margin-top: 15px. Other templates
		 * start flush with main, so they overlap the wordmark more.
		 */
		--lwt-header-content-nudge: 15px;
	}

	.lwt-header-inline-brand,
	.lwt-site-header--inline-brand,
	.lwt-site-header {
		--lwt-header-bar-height: auto;
		--lwt-logo-gap: 0px;
		--lwt-brand-height: 0px;
		margin-bottom: calc(var(--lwt-logo-stacked-overlap) * -1);
	}

	.lwt-site-header__bar.wp-block-group,
	.lwt-site-header .lwt-site-header__bar {
		position: relative;
		top: auto;
		display: flex;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		min-height: 0;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
		padding-left: var(--lwt-header-inset) !important;
		padding-right: var(--lwt-header-inset) !important;
		background-color: transparent !important;
	}

	/* Powder-blue scalloped edge, cropped to the wave. */
	.lwt-site-header__bar::before {
		content: "";
		display: block;
		flex: 0 0 auto;
		width: calc(100% + (2 * var(--lwt-header-inset)));
		height: var(--lwt-header-scallop-height);
		margin: 0 calc(var(--lwt-header-inset) * -1) 0.75rem;
		background-image: url("../images/mobile-header-scallop.svg");
		background-repeat: no-repeat;
		background-position: center bottom;
		background-size: 100% 100%;
		pointer-events: none;
	}

	/* Match the homepage’s 15px lead-in so every template overlaps evenly. */
	body:not(.home) main {
		padding-top: var(--lwt-header-content-nudge);
	}

	.lwt-site-header__nav-row {
		position: relative;
		display: flex;
		flex-wrap: nowrap;
		align-items: flex-start;
		justify-content: space-between;
		min-height: 0;
		width: 100%;
	}

	.lwt-site-header__nav--left,
	.lwt-site-header__nav--right,
	.lwt-site-header__search,
	.lwt-header-search,
	.lwt-site-header .lwt-mobile-nav__search-toggle {
		display: none !important;
	}

	.lwt-mobile-nav {
		display: block !important;
	}

	.lwt-site-header__end {
		flex: 0 0 auto;
		align-self: flex-start;
		/* Optical centre of the “LONG WAY” line. Block layout zeroes margin-top. */
		margin-top: 0 !important;
		margin-left: auto;
		padding-top: 1.15rem !important;
		gap: 0 !important;
	}

	.lwt-site-header__brand {
		height: 0;
		min-height: 0;
		padding: 0 !important;
		overflow: hidden;
	}

	.lwt-site-header__logo,
	.lwt-header-inline-brand .lwt-site-header__logo,
	.lwt-site-header--inline-brand .lwt-site-header__logo,
	.lwt-site-header.is-compact .lwt-site-header__logo,
	.lwt-header-inline-brand .lwt-site-header.is-compact .lwt-site-header__logo,
	.lwt-site-header--inline-brand.is-compact .lwt-site-header__logo {
		position: relative !important;
		top: auto !important;
		left: auto !important;
		z-index: 3;
		flex: 0 1 auto;
		width: calc(100% - var(--lwt-logo-stacked-offset)) !important;
		max-width: calc(100% - var(--lwt-logo-stacked-offset)) !important;
		height: auto;
		overflow: visible;
		transform: none !important;
		will-change: auto;
		order: 0;
		margin-right: auto;
	}

	.lwt-site-header__logo .custom-logo-link,
	.lwt-site-header__logo a {
		position: relative;
		display: block;
		transform: none;
	}

	/* Stacked wheat mark. Source imgs stay for the accessible name only. */
	.lwt-site-header__logo .custom-logo-link::before,
	.lwt-site-header__logo a::before {
		content: "";
		display: block;
		width: 100%;
		aspect-ratio: 551.829 / 258.943;
		background: url("../images/logo-long-way-travel-stacked.svg") center /
			contain no-repeat;
	}

	.lwt-site-header__logo .lwt-logo--cream,
	.lwt-site-header__logo .lwt-logo--sea,
	.lwt-site-header__logo .custom-logo,
	.lwt-site-header__logo img {
		position: absolute !important;
		width: 1px !important;
		height: 1px !important;
		margin: -1px !important;
		padding: 0 !important;
		overflow: hidden !important;
		clip: rect(0, 0, 0, 0) !important;
		clip-path: inset(50%) !important;
		white-space: nowrap !important;
		border: 0 !important;
		aspect-ratio: auto !important;
	}

	.lwt-site-header__logo img + img {
		display: none !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lwt-site-header__logo,
	.lwt-site-header__brand,
	.lwt-header-search__panel,
	.lwt-header-search__panel .lwt-header-search__form {
		transition: none;
		transition-delay: 0s;
	}
}

/* Keep the brand spacer in the editor so desktop layout remains readable. */
.editor-styles-wrapper .lwt-site-header__brand {
	height: auto;
	min-height: var(--lwt-brand-height);
	pointer-events: auto;
}

.editor-styles-wrapper .lwt-site-header__logo {
	position: relative;
	top: auto;
	left: auto;
	width: min(24rem, 100%);
	max-width: var(--lwt-header-logo-max);
	transform: none;
	will-change: auto;
}

.editor-styles-wrapper .lwt-site-header__logo .lwt-logo--sea {
	display: none;
}

.editor-styles-wrapper .lwt-site-header--inline-brand .lwt-site-header__brand {
	min-height: 0;
}

.editor-styles-wrapper .lwt-site-header--inline-brand .lwt-site-header__logo {
	max-width: var(--lwt-logo-expanded-width, 22.5rem);
}

.editor-styles-wrapper .lwt-site-header--inline-brand .lwt-site-header__logo .lwt-logo--sea {
	display: block;
}
