/*
 * Sundown global parts: announcement bar, header + navigation, mobile menu overlay, mobile action bar, footer.
 * Loaded on every page (every template uses these parts) and in the editor.
 *
 * Breakpoints
 *   < 768px     phone: logo + Menu in the header; quick actions in the fixed bottom action bar
 *   768–1099px  tablet: logo, quick actions, Buy Tickets, Menu (the main nav opens as the overlay)
 *   ≥ 1100px    desktop: utility row + inline main nav with panel dropdowns
 * Core's Navigation block switches to its overlay at 600px; the 600–1099px rules below move that to 1100px.
 */

:root {
	--sd-gutter: var(--wp--style--root--padding-left, 1rem);
	/* Content edge that lines up with the "wide" width (1320px) on big screens. */
	--sd-gutter-wide: max(var(--sd-gutter), calc((100% - var(--wp--style--global--wide-size, 1320px)) / 2));
	--sd-header-utility-h: 0px;
	--sd-action-bar-h: 0px;

	--sd-icon-snow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2L12 22M12 5.8l2.12 -2.12M12 5.8l-2.12 -2.12M12 18.2l-2.12 2.12M12 18.2l2.12 2.12M20.66 7L3.34 17M17.37 8.9l2.9 0.78M17.37 8.9l0.78 -2.9M6.63 15.1l-2.9 -0.78M6.63 15.1l-0.78 2.9M20.66 17L3.34 7M17.37 15.1l0.78 2.9M17.37 15.1l2.9 -0.78M6.63 8.9l-0.78 -2.9M6.63 8.9l-2.9 0.78'/%3E%3C/svg%3E");
	--sd-icon-camera: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='13.5' height='12' rx='2'/%3E%3Cpath d='m15.5 10.5 6-3.5v10l-6-3.5'/%3E%3C/svg%3E");
	--sd-icon-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M12 6.5V12l3.5 2.5'/%3E%3C/svg%3E");
	--sd-icon-ticket: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8V6.5a1 1 0 0 1 1-1h17a1 1 0 0 1 1 1V8a2.5 2.5 0 0 0 0 5v.01V17.5a1 1 0 0 1-1 1h-17a1 1 0 0 1-1-1V16a2.5 2.5 0 0 0 0-5'/%3E%3Cpath d='M15 5.5v2.25m0 2.5v3.5m0 2.5v2.25'/%3E%3C/svg%3E");
	--sd-icon-menu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 6.5h17M3.5 12h17M3.5 17.5h17'/%3E%3C/svg%3E");
	--sd-icon-close: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 5.5 13 13m0-13-13 13'/%3E%3C/svg%3E");
}

/*
 * Note: core copies a Navigation block's custom class onto its inner <ul> too, so rules that set
 * display/border/padding on a nav's own class use a child combinator (e.g. .sd-header__utility > .sd-nav-utility).
 */

/* ---------- Icons ----------
 * Navigation Link block styles "Snow / Webcam / Clock / Ticket icon" (functions.php) and the Ticket button style.
 * Masks take the text color, so icons follow light/dark sections.
 */
.is-style-sd-icon-snow { --sd-icon: var(--sd-icon-snow); }
.is-style-sd-icon-camera { --sd-icon: var(--sd-icon-camera); }
.is-style-sd-icon-clock { --sd-icon: var(--sd-icon-clock); }
.is-style-sd-icon-ticket,
.is-style-sd-ticket { --sd-icon: var(--sd-icon-ticket); }

:is(.is-style-sd-icon-snow, .is-style-sd-icon-camera, .is-style-sd-icon-clock, .is-style-sd-icon-ticket) > .wp-block-navigation-item__content,
.is-style-sd-ticket > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
}

:is(.is-style-sd-icon-snow, .is-style-sd-icon-camera, .is-style-sd-icon-clock, .is-style-sd-icon-ticket) > .wp-block-navigation-item__content::before,
.is-style-sd-ticket > .wp-block-button__link::before,
.sd-header .wp-block-navigation__responsive-container-open::before,
.sd-announcement__close::before {
	content: "";
	flex: none;
	width: 1.25em;
	height: 1.25em;
	background-color: var(--sd-icon-color, currentColor);
	-webkit-mask: var(--sd-icon) center / contain no-repeat;
	mask: var(--sd-icon) center / contain no-repeat;
}

/* Ticket pill (header, overlay; also available as a Button style). */
.is-style-sd-ticket > .wp-block-button__link {
	justify-content: center;
	border-radius: var(--wp--preset--border-radius--pill);
	padding: 0.75em 1.4em;
	white-space: nowrap;
}

/* ---------- Template part stacking ----------
 * Parts sit flush against each other and against the content that follows the header.
 */
.wp-site-blocks > .wp-block-template-part,
.wp-site-blocks > .wp-block-template-part + * {
	margin-block-start: 0;
}

/* These groups use flow layout, whose block gap would add margins between rows (and collapse out of the header). */
.sd-header > *,
.sd-overlay > *,
.sd-action-bar > * {
	margin-block: 0;
}

.wp-site-blocks > .wp-block-template-part:not(:has(*)) {
	display: none;
}

/* ---------- Announcement bar ---------- */
:where(.sd-announcement) {
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.45;
}

.sd-announcement {
	position: relative;
	padding-block: 0.65rem;
}

.sd-announcement p {
	margin: 0;
}

.sd-announcement[hidden] {
	display: none;
}

.sd-announcement.is-style-announcement-info,
.sd-announcement.is-style-announcement-alert {
	--sd-focus: var(--wp--preset--color--white);
}

.sd-announcement.is-style-announcement-promo {
	--sd-focus: var(--wp--preset--color--black);
}

/* Front end: an empty bar is removed in PHP; this is the fallback. The editor keeps it visible so it can be typed into. */
:where(body:not(.editor-styles-wrapper)) .sd-announcement:not(:has(.sd-announcement__text:not(:empty))) {
	display: none;
}

.sd-announcement.has-dismiss {
	padding-inline-end: calc(var(--sd-gutter) + 2.75rem);
}

.sd-announcement__close {
	--sd-icon: var(--sd-icon-close);
	position: absolute;
	top: 50%;
	right: max(0.25rem, calc(var(--sd-gutter) - 0.75rem));
	translate: 0 -50%;
	display: grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 0;
	border-radius: var(--wp--preset--border-radius--pill);
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.sd-announcement__close:hover {
	background: rgb(0 0 0 / 0.15);
}

.sd-announcement__close::before {
	width: 1.125rem;
	height: 1.125rem;
}

/* ---------- Header ----------
 * The whole header part is sticky. Its top offset is minus the utility row's height, so the utility row
 * scrolls away and the main bar stays pinned. Nothing changes height on scroll (no layout shift).
 */
.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--sd-header-utility-h));
	z-index: 100; /* Above the action bar (60): the menu overlay lives inside the header. */
}

@media (max-width: 600px) {
	/* The admin bar isn't fixed on small screens. */
	.admin-bar .wp-site-blocks > header.wp-block-template-part {
		top: calc(0px - var(--sd-header-utility-h));
	}
}

.sd-header > .sd-header__utility {
	display: none;
}

.sd-header__utility {
	height: var(--sd-header-utility-h);
	padding-inline: var(--sd-gutter-wide);
	gap: 1.5rem;
}

.sd-header__utility .wp-block-navigation {
	font-size: 0.75rem;
	letter-spacing: 0.08em;
}

.sd-header__utility .wp-block-navigation__container {
	gap: 1.25rem;
}

.sd-header__utility .wp-block-navigation-item__content {
	display: inline-flex; /* flex, not block: the icon ::before needs it */
	align-items: center;
	padding-block: 0.4rem; /* ≥ 24px targets (WCAG 2.5.8) */
	text-decoration: none;
}

.sd-header__utility .wp-block-navigation-item__content:hover {
	text-decoration: underline;
}

.sd-header__utility .sd-nav-quick {
	--sd-icon-color: var(--wp--preset--color--gold);
}

.sd-header__utility > .sd-nav-utility {
	padding-inline-start: 1.5rem;
	border-inline-start: 1px solid rgb(255 255 255 / 0.28);
}

.sd-header__bar {
	position: relative;
	min-height: 4.25rem;
	padding-inline: var(--sd-gutter-wide);
	gap: clamp(0.75rem, 1.6vw, 1.75rem);
	border-bottom: 1px solid var(--wp--preset--color--mist);
}

.sd-header__bar > .sd-logo {
	flex: none;
	margin: 0;
	line-height: 0;
}

.sd-header__bar > .sd-logo img {
	display: block;
	transform-origin: left center;
}

.sd-header__bar > .sd-logo a {
	display: inline-block;
}

/* Quick actions in the bar: tablet only (desktop shows them in the utility row, phones in the action bar). */
.sd-header__bar > .sd-nav-quick--bar {
	display: none;
}

.sd-nav-quick--bar {
	--sd-icon-color: var(--wp--preset--color--orange);
}

.sd-header .sd-nav-quick .wp-block-navigation-item__content {
	text-decoration: none;
}

.sd-header__bar .sd-nav-quick .wp-block-navigation-item__content {
	min-height: 2.75rem;
}

.sd-header__bar .sd-nav-quick .wp-block-navigation__container {
	gap: 1.25rem;
}

.sd-header__bar .sd-nav-quick .wp-block-navigation-item__content:hover {
	text-decoration: underline;
	text-decoration-color: var(--wp--preset--color--orange);
}

.sd-header__bar > .sd-header__cta {
	display: none;
	flex: none;
}

.sd-header__cta .wp-block-button__link {
	font-size: var(--wp--preset--font-size--small);
}

/* Menu button (core's overlay toggle): visible label + icon. */
.sd-header .wp-block-navigation__responsive-container-open {
	--sd-icon: var(--sd-icon-menu);
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	padding: 0 1rem;
	border: 2px solid currentColor;
	border-radius: var(--wp--preset--border-radius--pill);
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.sd-header .wp-block-navigation__responsive-container-open:hover {
	background: var(--wp--preset--color--black);
	color: var(--wp--preset--color--white);
}

.sd-header .wp-block-navigation__responsive-container-open::before {
	width: 1.125rem;
	height: 1.125rem;
}

/* Compact on scroll: the logo shrinks and the bar gains a shadow. Scroll-driven CSS, no JS. */
@supports (animation-timeline: scroll()) {
	@media (prefers-reduced-motion: no-preference) {
		.sd-header__bar {
			animation: sd-header-compact linear both;
			animation-timeline: scroll(root);
			animation-range: 0 10rem;
		}

		.sd-header__bar > .sd-logo img {
			animation: sd-logo-compact linear both;
			animation-timeline: scroll(root);
			animation-range: 0 10rem;
		}
	}
}

@keyframes sd-header-compact {
	to {
		box-shadow: 0 10px 24px -14px rgb(32 28 30 / 0.45);
		border-bottom-color: transparent;
	}
}

@keyframes sd-logo-compact {
	to {
		scale: 0.8;
	}
}

@media (max-width: 767.98px) {
	.sd-header__bar > .sd-logo img {
		width: 150px !important; /* Overrides the block's inline desktop width on phones. */
	}
}

/* Narrow desktops: the full main nav and Buy Tickets need the room. */
@media (min-width: 1100px) and (max-width: 1279.98px) {
	.sd-header__bar > .sd-logo img {
		width: 160px !important;
	}
}

@media (min-width: 768px) and (max-width: 1099.98px) {
	.sd-header__bar > .sd-nav-quick--bar {
		display: flex;
		margin-inline-start: auto;
	}

	/* Compact: icon over a small label, like a lift-map legend. */
	.sd-header__bar > .sd-nav-quick--bar .wp-block-navigation-item__content {
		flex-direction: column;
		gap: 0.2rem;
		font-size: 0.6875rem;
		letter-spacing: 0.08em;
	}

	.sd-header__bar > .sd-nav-quick--bar .wp-block-navigation__container {
		gap: 1rem;
	}

	.sd-header__bar > .sd-nav-quick--bar .wp-block-navigation-item__content::before {
		width: 1.25rem;
		height: 1.25rem;
	}
}

@media (min-width: 768px) {
	.sd-header__bar > .sd-header__cta {
		display: flex;
	}
}

/* Below 1100px the main nav is just its Menu button, at the far right. */
@media (max-width: 1099.98px) {
	.sd-header__bar > .sd-nav-main {
		order: 3;
		flex: none;
	}
}

@media (min-width: 600px) and (max-width: 1099.98px) {
	.sd-header .sd-nav-main .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.sd-header .sd-nav-main .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

/* ---------- Desktop main navigation (≥ 1100px) ---------- */
@media (min-width: 1100px) {
	:root {
		--sd-header-utility-h: 2.5rem;
	}

	.sd-header > .sd-header__utility {
		display: flex;
	}

	.sd-header__bar {
		min-height: 5rem;
	}

	.sd-header__bar > .sd-nav-main {
		flex: 1 1 auto;
		font-size: 0.875rem;
		font-weight: 800;
	}

	.sd-header__bar .sd-nav-main .wp-block-navigation__container {
		gap: clamp(1rem, 2.6vw - 0.75rem, 2.25rem);
	}

	/* Top-level items are buttons (submenus open on click; on hover too, below). */
	.sd-header__bar .sd-nav-main .wp-block-navigation__container > .wp-block-navigation-item {
		flex: none;
	}

	.sd-header__bar .sd-nav-main .wp-block-navigation__container > .has-child > .wp-block-navigation-submenu__toggle {
		position: relative;
		padding: 0.75rem 1.05em 0.75rem 0;
		white-space: nowrap;
		font: inherit;
		letter-spacing: inherit;
		text-transform: inherit;
		color: inherit;
		background: none;
		border: 0;
		cursor: pointer;
	}

	.sd-header__bar .sd-nav-main .wp-block-navigation__container > .has-child > .wp-block-navigation-submenu__toggle::after {
		content: "";
		position: absolute;
		inset: auto 1.05em 0.35rem 0;
		height: 3px;
		background: var(--wp--preset--color--orange);
		scale: 0 1;
		transform-origin: left;
		transition: scale 0.2s ease-out;
	}

	.sd-header__bar .sd-nav-main .has-child:hover > .wp-block-navigation-submenu__toggle::after,
	.sd-header__bar .sd-nav-main .wp-block-navigation-submenu__toggle[aria-expanded="true"]::after,
	.sd-header__bar .sd-nav-main .current-menu-ancestor > .wp-block-navigation-submenu__toggle::after {
		scale: 1 1;
	}

	.sd-header__bar .sd-nav-main .open-on-click > .wp-block-navigation-submenu__toggle + .wp-block-navigation__submenu-icon {
		width: 0.7em;
		height: 0.7em;
		margin-left: -0.8em;
	}

	.sd-header__bar .sd-nav-main .wp-block-navigation__submenu-icon svg {
		transition: transform 0.2s ease-out;
	}


	/* Panel */
	.sd-header__bar .sd-nav-main .has-child > .wp-block-navigation__submenu-container {
		top: calc(100% + 0.85rem);
		left: -1.25rem;
		padding: 0.75rem;
		border: 0;
		border-top: 4px solid var(--wp--preset--color--orange);
		border-radius: 0 0 var(--wp--preset--border-radius--medium) var(--wp--preset--border-radius--medium);
		background: var(--wp--preset--color--white);
		color: var(--wp--preset--color--black);
		box-shadow: var(--wp--preset--shadow--lifted);
		translate: 0 -0.4rem;
		transition: opacity 0.15s linear, translate 0.2s ease-out;
	}

	/* Hover bridge across the gap between the item and its panel. */
	.sd-header__bar .sd-nav-main .has-child > .wp-block-navigation__submenu-container::before {
		content: "";
		position: absolute;
		inset: auto 0 100%;
		height: calc(0.85rem + 4px);
	}

	/* Long sections get two columns. */
	.sd-header__bar .sd-nav-main .has-child > .wp-block-navigation__submenu-container:has(> li:nth-child(6)):not(:has(> .sd-nav-col-break)) {
		display: grid;
		grid-template-columns: repeat(2, minmax(15rem, 1fr));
		column-gap: 0.5rem;
	}

	/*
	 * Two-column dropdowns (client sitemap, 2026-10-21): the link with class sd-nav-col-break starts the right
	 * column, everything before it stays on the left, with a rule between them. CSS columns, so each column keeps
	 * its own spacing. (Firefox ignores the forced break and balances the two columns instead.)
	 */
	.sd-header__bar .sd-nav-main .has-child > .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container:has(> .sd-nav-col-break) {
		display: block;
		width: 36rem;
		columns: 2;
		column-gap: 2rem;
		column-rule: 1px solid var(--wp--preset--color--mist);
	}

	.sd-header__bar .sd-nav-main .wp-block-navigation__submenu-container:has(> .sd-nav-col-break) > li {
		break-inside: avoid;
	}

	.sd-header__bar .sd-nav-main .wp-block-navigation__submenu-container > li.sd-nav-col-break {
		break-before: column;
	}

	/*
	 * Subsections: a link with class sd-nav-group is an ALL CAPS bold heading over the links after it
	 * (e.g. NORTH LODGE → Tips Up, Molly's, Mountain Merch Shop). A heading lower in a column gets room above it.
	 */
	.sd-header__bar .sd-nav-main .wp-block-navigation__submenu-container > .sd-nav-group:not(:first-child, .sd-nav-col-break) {
		margin-top: 0.6rem;
	}

	.sd-header__bar .sd-nav-main .wp-block-navigation__submenu-container > .wp-block-navigation-item.sd-nav-group > .wp-block-navigation-item__content {
		padding-bottom: 0.3rem;
		font-size: 0.8125rem;
		font-weight: 800;
		letter-spacing: 0.08em;
		text-transform: uppercase;
	}

	/* A heading with no page (no link) is a label, not a button. */
	.sd-header__bar .sd-nav-main .wp-block-navigation__submenu-container > .sd-nav-group > .wp-block-navigation-item__content:not([href]) {
		cursor: default;
	}

	.sd-header__bar .sd-nav-main .wp-block-navigation__submenu-container > .sd-nav-group > .wp-block-navigation-item__content:not([href]):hover {
		background: none;
		text-decoration: none;
	}

	/* The last two panels open leftward so they stay on screen. */
	.sd-header__bar .sd-nav-main .wp-block-navigation__container > .has-child:nth-last-child(-n + 2) > .wp-block-navigation__submenu-container {
		left: auto;
		right: -1.25rem;
	}

	.sd-header__bar .sd-nav-main .has-child > .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
		translate: 0 0;
		min-width: 15rem;
	}

	/* Matches core's 5-class submenu-link selector so these paddings win. */
	.sd-header__bar .sd-nav-main .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
		padding: 0.55rem 0.75rem;
		border-radius: var(--wp--preset--border-radius--small);
		font-size: 0.9375rem;
		font-weight: 600;
		letter-spacing: 0;
		line-height: 1.3;
		text-transform: none;
		text-decoration: none;
		color: var(--wp--preset--color--black);
	}

	.sd-header__bar .sd-nav-main .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
		background: var(--wp--preset--color--paper);
		text-decoration: underline;
		text-decoration-color: var(--wp--preset--color--orange);
		text-decoration-thickness: 2px;
	}

	.sd-header__bar .sd-nav-main .wp-block-navigation__submenu-container [aria-current="page"] {
		box-shadow: inset 3px 0 0 var(--wp--preset--color--orange);
		font-weight: 800;
	}
}

/* Open on hover as well as click, for mouse users. Keyboard and touch use the button. */
@media (min-width: 1100px) and (hover: hover) {
	.sd-header__bar .sd-nav-main .has-child.open-on-click:hover > .wp-block-navigation__submenu-container {
		visibility: visible;
		overflow: visible;
		opacity: 1;
		width: auto;
		height: auto;
		min-width: 15rem;
		translate: 0 0;
	}

	.sd-header__bar .sd-nav-main .has-child.open-on-click:hover > .wp-block-navigation__submenu-container:has(> .sd-nav-col-break) {
		display: block;
		width: 36rem;
		columns: 2;
		column-gap: 2rem;
		column-rule: 1px solid var(--wp--preset--color--mist);
	}
}

/* ---------- Mobile menu overlay (parts/nav-overlay.html) ---------- */
.sd-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 0;
	background: var(--wp--preset--color--black);
	color: var(--wp--preset--color--white);
}

.sd-overlay {
	--sd-focus: var(--wp--custom--focus--dark);
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
	min-height: 100dvh;
	padding: 0 var(--sd-gutter) calc(2.5rem + env(safe-area-inset-bottom));
}

.sd-overlay__top {
	min-height: 4.25rem;
	border-bottom: 1px solid rgb(255 255 255 / 0.18);
}

.sd-overlay__top .sd-logo {
	margin: 0;
	line-height: 0;
}

.sd-overlay__top .sd-logo img {
	width: 150px !important;
}

.sd-overlay .wp-block-navigation-overlay-close {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 2.75rem;
	padding: 0 1rem;
	border: 2px solid currentColor;
	border-radius: var(--wp--preset--border-radius--pill);
	background: transparent;
	color: inherit;
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
}

.sd-overlay .wp-block-navigation-overlay-close svg {
	width: 1.25rem;
	height: 1.25rem;
	fill: currentColor;
}

/* Main nav: big League Gothic sections that expand like an accordion. */
.sd-overlay__main,
.sd-overlay__main .wp-block-navigation__container {
	width: 100%;
}

.sd-overlay__main .wp-block-navigation__container {
	gap: 0;
	align-items: stretch;
}

.sd-overlay__main .wp-block-navigation__container > .wp-block-navigation-item {
	position: relative;
	flex-wrap: wrap;
	width: 100%;
	border-bottom: 1px solid rgb(255 255 255 / 0.18);
}

.sd-overlay__main .wp-block-navigation__container > .has-child > .wp-block-navigation-submenu__toggle {
	flex: 1 1 auto;
	padding: 0.7rem 2.5rem 0.7rem 0;
	background: none;
	border: 0;
	color: inherit;
	font-family: var(--wp--preset--font-family--subhead);
	font-size: clamp(2rem, 1.5rem + 2.6vw, 2.75rem);
	font-weight: 400;
	letter-spacing: 0.01em;
	line-height: 1;
	text-align: start;
	text-transform: uppercase;
	cursor: pointer;
}

.sd-overlay__main .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-icon {
	position: absolute;
	top: 1.35rem;
	right: 0.25rem;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
	padding: 0;
	pointer-events: none;
	color: var(--wp--preset--color--gold);
}

.sd-overlay__main .wp-block-navigation__submenu-icon svg {
	width: 100%;
	height: 100%;
	transition: transform 0.2s ease-out;
}


.sd-overlay__main .has-child > .wp-block-navigation__submenu-container {
	position: static;
	flex-basis: 100%;
	min-width: 0;
	padding: 0 0 0.9rem;
	border: 0;
	background: transparent;
	color: inherit;
}

.sd-overlay__main .has-child > .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	display: block;
	padding: 0.8rem 0.25rem; /* ≥ 44px tap targets (plan §12) */
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.3;
	text-transform: none;
	text-decoration: none;
	color: inherit;
}

.sd-overlay__main .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.sd-overlay__main .wp-block-navigation__submenu-container [aria-current="page"] {
	color: var(--wp--preset--color--gold);
	text-decoration: underline;
}

/* Subsections (see the desktop panel): headings in gold caps, with room above a heading lower in the list. */
.sd-overlay__main .has-child > .wp-block-navigation__submenu-container > .sd-nav-group > .wp-block-navigation-item__content {
	padding-bottom: 0.35rem;
	font-size: 0.875rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
}

.sd-overlay__main .has-child > .wp-block-navigation__submenu-container > .sd-nav-group:not(:first-child, .sd-nav-col-break) {
	margin-top: 0.6rem;
}

.sd-overlay__main .has-child > .wp-block-navigation__submenu-container > .sd-nav-group > .wp-block-navigation-item__content:not([href]) {
	text-decoration: none;
	cursor: default;
}

/* Phones: one column; a rule where the desktop panel starts its right column. */
.sd-overlay__main .has-child > .wp-block-navigation__submenu-container > .sd-nav-col-break {
	margin-top: 0.6rem;
	padding-top: 0.6rem;
	border-top: 1px solid rgb(255 255 255 / 0.18);
}

@media (min-width: 600px) {
	.sd-overlay__main .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 1.5rem;
	}

	/* Wider phone menus: the two columns of the desktop panel, with the rule between them. */
	.sd-overlay__main .wp-block-navigation-submenu__toggle[aria-expanded="true"] ~ .wp-block-navigation__submenu-container:has(> .sd-nav-col-break) {
		display: block;
		columns: 2;
		column-gap: 3rem;
		column-rule: 1px solid rgb(255 255 255 / 0.18);
	}

	.sd-overlay__main .has-child > .wp-block-navigation__submenu-container:has(> .sd-nav-col-break) > li {
		break-inside: avoid;
	}

	.sd-overlay__main .has-child > .wp-block-navigation__submenu-container > li.sd-nav-col-break {
		break-before: column;
		margin-top: 0;
		padding-top: 0;
		border-top: 0;
	}
}

.sd-overlay__cta > .wp-block-button {
	flex: 1 1 100%;
}

.sd-overlay__cta .wp-block-button__link {
	width: 100%;
	font-size: var(--wp--preset--font-size--medium);
	padding-block: 0.95em;
}

.sd-overlay__quick {
	--sd-icon-color: var(--wp--preset--color--gold);
}

.sd-overlay__quick .wp-block-navigation__container {
	gap: 0.6rem;
}

.sd-overlay__quick .wp-block-navigation-item__content {
	min-height: 2.75rem;
	padding: 0 1rem;
	border: 1px solid rgb(255 255 255 / 0.35);
	border-radius: var(--wp--preset--border-radius--pill);
	text-decoration: none;
}

.sd-overlay__utility .wp-block-navigation__container {
	gap: 0.5rem 1.5rem;
}

.sd-overlay__utility .wp-block-navigation-item__content {
	display: inline-block;
	padding-block: 0.75rem;
	text-underline-offset: 0.3em;
}

/* Gentle entrance, staggered. Off for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
	.is-menu-open .sd-overlay > * {
		animation: sd-overlay-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}

	.is-menu-open .sd-overlay > :nth-child(2) { animation-delay: 0.04s; }
	.is-menu-open .sd-overlay > :nth-child(3) { animation-delay: 0.08s; }
	.is-menu-open .sd-overlay > :nth-child(n + 4) { animation-delay: 0.12s; }
}

@keyframes sd-overlay-in {
	from {
		opacity: 0;
		translate: 0 -0.6rem;
	}
}

/* ---------- Mobile action bar (parts/mobile-action-bar.html) ---------- */
.sd-action-bar {
	display: none;
}

@media (max-width: 767.98px) {
	:root {
		--sd-action-bar-h: 3.75rem;
	}

	body:has(.sd-action-bar) {
		padding-bottom: calc(var(--sd-action-bar-h) + env(safe-area-inset-bottom));
	}

	.sd-action-bar {
		display: block;
		position: fixed;
		inset: auto 0 0;
		z-index: 60;
		padding-bottom: env(safe-area-inset-bottom);
		border-top: 3px solid var(--wp--preset--color--orange);
		--sd-icon-color: var(--wp--preset--color--gold);
	}
}

.sd-action-bar__nav,
.sd-action-bar__nav .wp-block-navigation__container {
	width: 100%;
	gap: 0;
}

.sd-action-bar__nav .wp-block-navigation-item {
	flex: 1 1 0;
}

.sd-action-bar__nav .wp-block-navigation-item + .wp-block-navigation-item {
	border-inline-start: 1px solid rgb(255 255 255 / 0.16);
}

.sd-action-bar__nav .wp-block-navigation-item__content {
	flex-direction: column;
	justify-content: center;
	gap: 0.2rem;
	width: 100%;
	min-height: var(--sd-action-bar-h, 3.75rem);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	text-decoration: none;
}

.sd-action-bar__nav .wp-block-navigation-item__content::before {
	width: 1.5rem;
	height: 1.5rem;
}

.sd-action-bar__nav .wp-block-navigation-item__content:focus-visible {
	outline-offset: -4px;
}

/* Tickets is the money button. */
.sd-action-bar__nav .is-style-sd-icon-ticket > .wp-block-navigation-item__content {
	--sd-icon-color: currentColor;
	background: var(--wp--preset--color--orange);
	color: var(--wp--preset--color--black);
	--sd-focus: var(--wp--preset--color--black);
}

/* ---------- Footer ---------- */
.sd-footer {
	position: relative;
	background-image:
		linear-gradient(rgb(32 28 30 / 0.55), rgb(32 28 30 / 0.85)),
		url("../images/texture-wood-footer.webp");
	background-size: cover;
	background-position: center;
}

/* Torn-paper top edge (brand "Elements of Design"). */
.sd-footer::before {
	content: "";
	position: absolute;
	inset: auto 0 calc(100% - 1px);
	height: clamp(12px, 2.2vw, 28px);
	background: var(--wp--preset--color--black);
	-webkit-mask: url("../images/torn-edge-top.svg") center bottom / 100% 100% no-repeat;
	mask: url("../images/torn-edge-top.svg") center bottom / 100% 100% no-repeat;
	pointer-events: none;
}

.sd-footer .sd-logo {
	margin: 0;
}

.sd-footer__heading {
	margin-block: 0 0.5rem;
	letter-spacing: 0.03em;
}

.sd-footer .wp-block-column > .sd-footer__heading:not(:first-child) {
	margin-block-start: var(--wp--preset--spacing--40);
}

.sd-footer p {
	margin-block: 0;
}

.sd-footer p a[href^="tel:"] {
	display: inline-block;
	padding-block: 0.3rem;
}

.sd-footer__nav {
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

.sd-footer__nav .wp-block-navigation__container {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, max-content));
	gap: 0.15rem 2rem;
}

.sd-footer__nav .wp-block-navigation-item__content,
.sd-footer__policies .wp-block-navigation-item__content {
	display: inline-block;
	padding-block: 0.4rem;
	text-decoration: none;
}

.sd-footer__nav .wp-block-navigation-item__content:hover,
.sd-footer__policies .wp-block-navigation-item__content:hover {
	text-decoration: underline;
}

.sd-footer__social {
	--wp--style--block-gap: 0.75rem;
	margin-block: 0.25rem 1.25rem;
}

.sd-footer__social .wp-social-link a {
	padding: 0.35rem;
}

.sd-footer__social .wp-social-link:hover {
	color: var(--wp--preset--color--gold);
}

.sd-footer .wp-block-button__link {
	font-size: var(--wp--preset--font-size--small);
}

@media (max-width: 781.98px) {
	.sd-footer .sd-logo img {
		width: 144px !important;
	}
}

.sd-footer__legal {
	margin-block-start: var(--wp--preset--spacing--60);
	padding-block-start: var(--wp--preset--spacing--30);
	border-top: 1px solid rgb(255 255 255 / 0.2);
	color: var(--wp--preset--color--mist);
}

.sd-footer__policies {
	font-size: var(--wp--preset--font-size--small);
	letter-spacing: 0;
	text-transform: none;
	font-weight: 600;
}

.sd-footer__policies .wp-block-navigation__container {
	gap: 0 1.5rem;
}

.sd-footer__legal-links {
	gap: 0 1.5rem;
}

.sd-footer__credit {
	margin: 0;
	padding-block: 0.4rem;
	font-weight: 600;
}

.sd-footer__credit a {
	text-decoration: none;
}

.sd-footer__credit a:hover {
	text-decoration: underline;
}

@media (max-width: 781.98px) {
	.sd-footer__brand {
		margin-bottom: var(--wp--preset--spacing--20);
	}
}

/* ---------- Page header (parts/page-header.html): interior page heroes ----------
 * Pages with a featured image get a full-width photo hero; others get the branded night hero (tree mark, trail dash).
 * No breadcrumbs (Logan, Phase 6 refine): the title alone, large, on the wide grid. */
/* Element + two classes (dates from the Elementor kit, removed in Phase 10; harmless, keeps it above plugin h1 rules). */
h1.wp-block-post-title.sd-page-title {
	font-size: clamp(2.25rem, 1.1rem + 4.8vw, 5.5rem);
	line-height: 0.98;
	max-width: 18ch;
}

/* Titles are white on both heroes. */
:is(.sd-page-hero, .sd-page-hero-brand) .sd-page-title {
	color: var(--wp--preset--color--white);
}

/* Photo hero: a scrim behind the title keeps it readable on any featured photo (on top of the 50% overlay).
 * ::before, not ::after: core pins the cover's inner container at z-index 1 with a very specific selector, so the
 * scrim must come before it in paint order at the same level. */
.sd-page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(0deg, rgb(32 28 30 / 0.6) 0%, rgb(32 28 30 / 0.2) 55%, rgb(32 28 30 / 0) 80%);
}

/* No photo: night hero with the tree mark glowing on the right, dimmed so white text over it stays above 4.5:1. */
.sd-page-hero-brand {
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: clamp(18rem, 42vh, 30rem);
	background:
		linear-gradient(90deg, var(--wp--preset--color--black) 30%, rgb(32 28 30 / 0.6) 70%, rgb(32 28 30 / 0.45)),
		url("../images/tree-mark-1200.webp") right -6vw center / auto 125% no-repeat,
		var(--wp--preset--color--black);
}

@media (max-width: 781px) {
	.sd-page-hero-brand {
		background:
			linear-gradient(0deg, var(--wp--preset--color--black) 25%, rgb(32 28 30 / 0.78) 80%),
			url("../images/tree-mark-600.webp") right -30% top -10% / auto 95% no-repeat,
			var(--wp--preset--color--black);
	}
}

/* The angled hero bottom shows the first section's background, not the paper body: that section slides up under
 * the hero by the angle's depth (3.5vw, see .sd-edge-angled) and a transparent top border of the same depth keeps
 * its content in place while its background (border-box) fills the triangle. */
.wp-block-template-part:has(> .sd-edge-angled) {
	position: relative;
	z-index: 2;
}

.wp-block-template-part:has(> .sd-edge-angled) + .sd-content:has(> .alignfull:first-child) {
	margin-block-start: 0;
}

:is(.wp-block-template-part:has(> .sd-edge-angled) + .sd-content > .alignfull:first-child, .sd-page-hero.sd-edge-angled + .alignfull) {
	margin-top: -3.5vw !important;
	border-top: 3.5vw solid transparent;
}

.sd-page-hero.sd-edge-angled {
	position: relative;
	z-index: 2;
}

.sd-page-hero-brand > .sd-page-hero__text {
	width: 100%; /* flex column: without it, the constrained layout's auto margins shrink and centre the text */
}

.sd-page-hero-brand .wp-block-separator.is-style-sd-trail-dash {
	max-width: 10rem;
	margin-inline-start: 0;
	color: var(--wp--preset--color--gold);
}
