/* Redesign (hmns-design), phones below 768px (header and menu up to 1120px): thumb bar, Hours panel, shared v2 parts.
   Values come from tokens.css. Loaded after the site CSS (wp_head 102); selectors are scoped
   to the new components, so pages not yet rebuilt are untouched. */

.hmns-thumb, .hmns-scrim, .hmns-panel, .hmns-menu, .hmns-tt, .hmns-pt, .hmns-promo-pill { display: none; }
html body .hmns-v2-menubtn, html body .hmns-v2-logo { display: none; } /* html body: outranks the site CSS button rules */

/* All widths: image fallbacks. Banner tiles and hero photos are editor uploads, served from the live site; until one
   loads, or if it never does, its full-bleed layer shows a solid colour, so the white title on it is never white on
   white. Banner tiles match by file name (any other image: Dark Gray); hero photos and videos sit on Dark Gray.
   Hidden under the image whenever it loads. */
#simple-page-header .fw-bg { background-color: var(--hmns-dark-gray); }
#simple-page-header .fw-bg:is([style*="ocean-blue"], [style*="blue-ocean"]) { background-color: var(--hmns-ocean-blue); }
#simple-page-header .fw-bg[style*="mossy-oak"] { background-color: var(--hmns-mossy-oak-accessible); }
#simple-page-header .fw-bg[style*="night-sky"] { background-color: var(--hmns-observatory-night-sky); }
#simple-page-header .fw-bg:is([style*="Fossil"], [style*="fossil"], [style*="darksand"]) { background-color: var(--hmns-fossil-rim); }
#simple-page-header .fw-bg[style*="salmon"] { background-color: var(--hmns-rust); }
#homepage-hero :is(.fw-bg, .video-box) { background-color: var(--hmns-dark-gray); }

/* All widths: the gallery's controls carry z-index in the billions with no stacking layer of their own, so they drew
   over the fixed header (and on phones the thumb bar). Own layer except in fullscreen, where the gallery script hides
   the header. */
html body .hmns-gallery:not(:has(.fullscreen)) { position: relative; isolation: isolate; }

@media screen and (max-width: 767px) {
	html { scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
	html.hmns-has-promo-pill { scroll-padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
	body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
	html.hmns-has-promo-pill body { padding-bottom: calc(116px + env(safe-area-inset-bottom)); }
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.cart { display: none !important; }

}

/* Phones and tablets (up to 1120px, the classic site's mobile-header breakpoint): the phone header and the native
   menu. Tablets got Max Mega Menu's collapsed menu before, which left Sugar Land and George without navigation
   between 921 and 1120px. */
@media screen and (max-width: 1120px) {
	/* Header (TopnavMobile): one Logo Black bar, menu/search glyph left, butterfly mark centre.
	   56px tall with a 32px mark, by HMNS decision (19 Oct 2026); hmns-design's TopnavMobile is 72px with a 44px lockup.
	   --hmns-bar drives every place that depends on the bar's height.
	   Replaces the butterfly logo and Max Mega Menu's toggle on phones and tablets.
	   Solid rather than glass: the notice bars and the promo/cart/login strip sit between it and any photo. */
	:root { --hmns-bar: 56px; --hmns-mark: 32px; }
	html body .top-nav { height: var(--hmns-bar); z-index: 999; padding: 0; background: var(--surface-nav); border-bottom: 1px solid var(--border-on-dark); line-height: normal; }
	html body .top-nav > .container { position: relative; width: auto; height: 100%; margin: 0; padding: 0 var(--space-6); justify-content: center; }
	html body .top-nav .hmns-mobile-menu-new,
	html body .top-nav .mobile-logo-link,
	html body .top-nav .hmns-mobile-logo,
	html body .top-nav .hmns-mobile-logo-sugarland,
	html body .top-nav .hmns-mobile-logo-george,
	html body .top-nav > .container > .sessionTimer,
	html body .top-nav .hmns-sites,
	html body .top-nav .hmns-session { display: none !important; }
	html:is(.hmns-nb-closed, .hmns-nb2-closed, :root) body header#header {
		top: var(--hmns-bar);
		padding-top: 0 !important;
		padding-bottom: 0 !important;
		background: transparent !important;
		border: 0 !important;
		box-shadow: none !important;
		min-height: 0 !important;
	}
	/* Retire the legacy cream .mobile-tessitura-bar strip visually while keeping its DOM intact for hmns-footer.js AJAX */
	html body header#header > .container {
		height: 0 !important;
		min-height: 0 !important;
		margin-top: 0 !important;
		margin-bottom: 0 !important;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
		overflow: hidden !important;
		border: 0 !important;
		background: transparent !important;
	}
	html body .mobile-tessitura-bar {
		display: block !important;
		height: 0 !important;
		min-height: 0 !important;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		overflow: hidden !important;
		opacity: 0;
		pointer-events: none;
	}
	/* Account (Login / Member dropdown) lives cleanly on the top-right of the 56px Logo Black bar */
	html body .top-nav .hmns-tessitura-bar {
		display: flex !important;
		align-items: center;
		gap: var(--space-2);
		position: absolute;
		top: 0;
		right: calc(var(--space-6) - var(--space-2));
		bottom: 0;
		width: auto;
		margin: 0;
		padding: 0;
		background: transparent;
		border: 0;
	}
	html body .top-nav .hmns-tessitura-bar .tessitura-cell > * { padding: 0; }
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.promo,
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.tickets,
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.spinner { display: none !important; }
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.user-menu {
		position: relative;
		display: flex !important;
		align-items: center;
		height: 100%;
		padding: 0;
		border: 0;
		background: transparent;
	}
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.user-menu .logged-spinner {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 44px;
		height: 44px;
		padding: 0;
	}
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.user-menu .logged-spinner.hide,
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.user-menu .logged-in.hide,
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.user-menu .logged-out.hide,
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.user-menu .user-dropdown.hide { display: none !important; }
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.user-menu .logged-out:not(.hide),
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.user-menu .logged-in:not(.hide) {
		display: inline-flex !important;
		align-items: center;
	}
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.user-menu .logged-out a,
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.user-menu .logged-in {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		min-height: 44px;
		padding: 0 var(--space-2);
		color: var(--text-on-dark) !important;
		font-family: var(--font-body);
		font-size: var(--type-small);
		font-weight: var(--weight-regular);
		line-height: var(--leading-small);
		text-decoration: none;
		white-space: nowrap;
		cursor: pointer;
	}
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.user-menu:has(> .user-dropdown:not(.hide)) .logged-in svg:last-child { transform: scaleY(-1); }
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.user-menu .logged-in svg { transition: transform var(--motion-base) var(--ease-standard); }
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.user-menu .logged-in svg path { fill: currentColor; }
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.user-menu .logged-in:focus-visible,
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.user-menu .logged-out a:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.user-menu .user-dropdown {
		position: absolute;
		top: var(--hmns-bar);
		right: 0;
		left: auto;
		z-index: 1001;
		min-width: 248px;
		max-width: calc(100vw - var(--space-6));
		margin: 0;
		padding: var(--space-4);
		background: var(--hmns-white);
		border: 1px solid var(--border-hairline);
		border-radius: var(--radius-none);
		box-shadow: var(--shadow-raised);
		text-align: left;
		white-space: normal;
	}
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.user-menu .user-dropdown::before {
		content: "Account";
		display: block;
		margin: 0 0 var(--space-2);
		padding: 0 var(--space-3) var(--space-3);
		border-bottom: 1px solid var(--border-hairline);
		font-family: var(--font-display);
		font-weight: var(--weight-display);
		font-size: var(--type-small);
		line-height: 1.2;
		color: var(--text-heading);
	}
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.user-menu .user-dropdown ul {
		list-style: none;
		display: flex;
		flex-direction: column;
		gap: 2px;
		margin: 0;
		padding: 0;
	}
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.user-menu .user-dropdown li { margin: 0; padding: 0; display: block; }
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.user-menu .user-dropdown a {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding: var(--space-2) var(--space-3);
		color: var(--text-subhead);
		font-family: var(--font-body);
		font-size: 16px;
		line-height: 24px;
		font-weight: var(--weight-regular);
		text-decoration: none;
		white-space: nowrap;
		transition: background-color var(--motion-base) var(--ease-standard), color var(--motion-base) var(--ease-standard);
	}
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.user-menu .user-dropdown a:hover {
		background: var(--surface-sunken);
		color: var(--text-body);
	}
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.user-menu .user-dropdown a:focus-visible {
		outline: 2px solid var(--focus-ring);
		outline-offset: -2px;
	}
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.user-menu .user-dropdown li:has(> a.logout-link) {
		margin-top: var(--space-2);
		padding-top: var(--space-2);
		border-top: 1px solid var(--border-hairline);
	}
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.user-menu .user-dropdown a.logout-link {
		background: var(--surface-sunken);
		color: var(--text-link);
	}
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.user-menu .user-dropdown a.logout-link:hover {
		background: var(--surface-tint);
		color: var(--hmns-dark-gray);
	}

	html body .hmns-v2-menubtn,
	html body .hmns-menu__close {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: var(--control-height);
		height: var(--control-height);
		max-height: none;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: var(--radius-none);
		background: transparent;
		color: var(--text-on-dark);
		cursor: pointer;
	}
	/* The 28px glyph sits on the 24px gutter; the 48px tap area overhangs it */
	html body .hmns-v2-menubtn { position: absolute; left: calc(var(--space-6) - 10px); top: calc((var(--hmns-bar) - var(--control-height)) / 2); }
	html body .hmns-v2-menubtn svg, html body .hmns-menu__close svg { width: 28px; height: 28px; margin: 0; }
	html body .hmns-v2-logo { display: block; line-height: 0; }
	html body .hmns-v2-logo img, .hmns-menu__logo { display: block; width: auto; height: var(--hmns-mark); }

	/* Menu (MobileMenu): full screen, search first, Termina sections disclosing cream MenuLink rows */
	.hmns-menu {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 1002;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding-bottom: env(safe-area-inset-bottom);
		background: var(--surface-sunken);
		font-family: var(--font-body);
		opacity: 0;
		transition: opacity var(--motion-overlay) var(--ease-standard);
	}
	.hmns-menu[hidden] { display: none; }
	.hmns-menu.is-open { opacity: 1; }
	.hmns-menu__bar {
		position: sticky;
		top: 0;
		z-index: 1;
		height: var(--hmns-bar);
		padding: 0 var(--space-6);
		display: flex;
		align-items: center;
		justify-content: center;
		background: var(--surface-nav);
		border-bottom: 1px solid var(--border-on-dark);
	}
	html body .hmns-menu__close { position: absolute; left: calc(var(--space-6) - 10px); top: calc((var(--hmns-bar) - var(--control-height)) / 2); }

	.hmns-menu__search {
		display: flex;
		align-items: center;
		gap: var(--control-gap);
		margin: 0;
		padding: var(--space-6);
		background: var(--hmns-white);
		border-bottom: 1px solid var(--border-hairline);
		color: var(--text-body);
	}
	.hmns-menu__search svg { flex: 0 0 auto; width: var(--icon-size); height: var(--icon-size); }
	html body .hmns-menu__search input {
		flex: 1;
		min-width: 0;
		height: auto;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: var(--radius-none);
		background: none;
		box-shadow: none;
		font-family: var(--font-body);
		font-weight: var(--weight-light);
		font-size: var(--type-body);
		line-height: var(--leading-body);
		color: var(--text-body);
		-webkit-appearance: none;
		appearance: none;
	}
	html body .hmns-menu__search input::placeholder { color: var(--text-muted); opacity: 1; }
	html body .hmns-menu__search:focus-within { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
	html body .hmns-menu__search input:focus { outline: none; }

	html body .hmns-menu__nav ul { list-style: none; margin: 0; padding: 0; }
	html body .hmns-menu__nav li { margin: 0; padding: 0; }
	.hmns-menu__section > summary,
	.hmns-menu__more > summary,
	html body .hmns-menu__plain a {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 20px var(--space-6);
		background: var(--hmns-white);
		border-bottom: 1px solid var(--border-hairline);
		font-family: var(--font-label);
		font-weight: 500;
		font-size: var(--type-label);
		line-height: var(--leading-display);
		letter-spacing: var(--tracking-label);
		text-transform: uppercase;
		text-decoration: none;
		color: var(--text-label);
		cursor: pointer;
		list-style: none;
	}
	.hmns-menu__section > summary::-webkit-details-marker { display: none; }
	/* Memberships in the plain rows: discloses the revenue menu's links (Membership Levels, Member Events) */
	.hmns-menu__more > summary::-webkit-details-marker { display: none; }
	.hmns-menu__more > summary { justify-content: flex-start; gap: var(--space-2); }
	.hmns-menu__more > summary span { margin-right: auto; }
	.hmns-menu__more > summary svg { flex: 0 0 auto; width: 20px; height: auto; }
	.hmns-menu__more > summary svg:last-child { width: var(--icon-size-sm); height: var(--icon-size-sm); }
	.hmns-menu__more > summary svg path { fill: currentColor; }
	.hmns-menu__more[open] > summary svg:last-child { transform: scaleY(-1); }
	html body .hmns-menu__plain .hmns-menu__more > a { padding: var(--space-3) var(--space-6) var(--space-3) var(--space-8); background: var(--surface-sunken); font-family: var(--font-body); font-weight: var(--weight-regular); font-size: 16px; line-height: 26px; letter-spacing: 0; text-transform: none; color: var(--text-body); }
	.hmns-menu__section > summary svg { flex: 0 0 auto; width: var(--icon-size-sm); height: var(--icon-size-sm); }
	.hmns-menu__section[open] > summary svg { transform: scaleY(-1); } /* ChevronDown becomes ChevronUp: a state, not a motion */
	html body .hmns-menu__section > summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
	/* An open section (HMNS Navigation review, Nov 2026): cream ground; the overview link on a Serengeti underline, then
	   rows with an arrow (name 16/26 Regular, the item's description 14/24 under it), then the section's card */
	.hmns-menu__body { padding: var(--space-4) var(--space-6) var(--space-6); background: var(--surface-sunken); }
	html body .hmns-menu__intro { margin: 0 0 var(--space-2); font-size: 16px; line-height: 26px; font-weight: var(--weight-light); color: var(--text-subhead); }
	html body .hmns-menu__overview { display: inline-flex; align-items: center; min-height: var(--control-height); margin-bottom: var(--space-2); border-bottom: 1px solid var(--border-underline); font-family: var(--font-body); font-weight: var(--weight-regular); font-size: 16px; line-height: 26px; color: var(--text-body); text-decoration: none; }
	html body .hmns-menu__link { display: block; min-height: var(--control-height); padding: var(--space-2) 0; font-family: var(--font-body); color: var(--text-body); text-decoration: none; }
	html body .hmns-menu__link strong { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); font-size: 16px; line-height: 26px; font-weight: var(--weight-regular); }
	html body .hmns-menu__link > span { display: block; font-size: var(--type-small); line-height: var(--leading-small); font-weight: var(--weight-light); color: var(--text-subhead); }
	html body .hmns-menu__link svg { flex: 0 0 auto; width: var(--icon-size-sm); height: var(--icon-size-sm); }
	html body .hmns-menu__link svg path { fill: currentColor; }
	html body :is(.hmns-menu__link, .hmns-menu__overview):hover { color: var(--text-link); }
	html body .hmns-menu__heading { margin: var(--space-4) 0 var(--space-2); font-family: var(--font-label); font-weight: 500; font-size: var(--type-label-sm); line-height: var(--leading-display); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-label); }
	html body .hmns-menu__body .hmns-dpanel__feature { margin-top: var(--space-6); }
	html body .hmns-menu__body .hmns-dates { margin: var(--space-4) 0 var(--space-5); padding: var(--space-4) 0 0; }
	.hmns-calfold { margin-top: var(--space-1); border: 1px solid var(--border-hairline); background: var(--surface-card); }
	.hmns-calfold__summary {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--space-3);
		min-height: var(--control-height);
		padding: 0 var(--space-4);
		font-family: var(--font-body);
		font-weight: var(--weight-regular);
		font-size: 16px;
		line-height: 24px;
		color: var(--text-body);
		cursor: pointer;
		list-style: none;
	}
	.hmns-calfold__summary::-webkit-details-marker { display: none; }
	.hmns-calfold__label { display: inline-flex; align-items: center; gap: var(--space-2); }
	.hmns-calfold__summary svg { flex: 0 0 auto; width: var(--icon-size-sm); height: var(--icon-size-sm); color: var(--text-subhead); transition: transform var(--motion-fast) var(--ease-standard); }
	.hmns-calfold__summary svg path { fill: currentColor; }
	.hmns-calfold[open] > .hmns-calfold__summary { border-bottom: 1px solid var(--border-hairline); background: var(--surface-tint); }
	.hmns-calfold[open] > .hmns-calfold__summary > svg:last-child { transform: scaleY(-1); }
	.hmns-calfold__body { padding: var(--space-4); }
	.hmns-calfold__body .hmns-calcard { padding: 0; border: 0; }
	.hmns-calfold__body .hmns-calcard__step { width: 44px; height: 44px; }
	.hmns-calfold__body .hmns-calcard__pad,
	html body .hmns-calfold__body .hmns-calcard__day { height: 44px; }
	html body .hmns-menu :is(a, button):focus-visible { outline-offset: -2px; }

	html body .hmns-menu :is(a, button, summary):focus-visible { outline: 2px solid var(--focus-ring) !important; }
	html body :is(.hmns-menu__close, .hmns-v2-menubtn):is(:hover, :focus, :active) { background: transparent; color: var(--text-on-dark); } /* site CSS fills every focused button */
	html body .hmns-menu__nav ul.hmns-menu__group { margin-top: var(--space-6); border-top: 1px solid var(--border-hairline); }
	/* Quiet Promo Code disclosure inside the mobile/tablet menu */
	.hmns-menu__promo-badge {
		display: inline-flex;
		align-items: center;
		margin-right: var(--space-2);
		padding: 2px 8px;
		background: var(--hmns-fossil-rim);
		color: var(--hmns-white);
		font-family: var(--font-body);
		font-style: normal;
		font-size: 12px;
		font-weight: var(--weight-regular);
		line-height: 18px;
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}
	.hmns-menu__promo-badge[hidden] { display: none !important; }
	.hmns-menu__promo-body {
		padding: var(--space-4) var(--space-6) var(--space-5);
		background: var(--surface-sunken);
		border-bottom: 1px solid var(--border-hairline);
	}
	.hmns-menu__promo-note {
		margin: 0 0 var(--space-3);
		font-family: var(--font-body);
		font-size: var(--type-small);
		line-height: 20px;
		font-weight: var(--weight-light);
		color: var(--text-subhead);
	}
	.hmns-menu__promo-form {
		display: flex;
		align-items: stretch;
		gap: var(--space-2);
		margin: 0;
	}
	.hmns-menu__promo-form[hidden],
	.hmns-menu__promo-active[hidden],
	.hmns-menu__promo-error[hidden] { display: none !important; }
	html body .hmns-menu__promo-form input[type="text"] {
		flex: 1 1 auto;
		min-width: 0;
		height: 44px;
		margin: 0;
		padding: 0 var(--space-3);
		background: var(--hmns-white);
		border: 1px solid var(--border-input);
		border-radius: var(--radius-none);
		box-shadow: none;
		font-family: var(--font-body);
		font-size: 16px;
		font-weight: var(--weight-regular);
		color: var(--text-body);
		text-transform: uppercase;
		-webkit-appearance: none;
		appearance: none;
	}
	html body .hmns-menu__promo-form input[type="text"]::placeholder {
		color: var(--text-muted);
		text-transform: uppercase;
		opacity: 1;
	}
	html body .hmns-menu__promo-form button[type="submit"] {
		flex: 0 0 auto;
		height: 44px;
		max-height: none;
		margin: 0;
		padding: 0 var(--space-4);
		border: 0;
		border-radius: var(--radius-none);
		background: var(--hmns-fossil-rim);
		color: var(--hmns-white);
		font-family: var(--font-body);
		font-size: 15px;
		font-weight: var(--weight-regular);
		text-transform: none;
		letter-spacing: 0;
		cursor: pointer;
	}
	html body .hmns-menu__promo-form button[type="submit"]:hover { background: var(--hmns-dark-gray); }
	.hmns-menu__promo-active {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--space-3);
		min-height: 44px;
		padding: 0 var(--space-3);
		background: var(--hmns-white);
		border: 1px solid var(--border-rule);
		font-size: 15px;
		color: var(--text-body);
	}
	html body .hmns-menu__promo-active button {
		min-height: 40px;
		padding: 0 var(--space-2);
		border: 0;
		background: transparent;
		color: var(--text-subhead);
		font-family: var(--font-body);
		font-size: var(--type-small);
		font-weight: var(--weight-regular);
		text-decoration: underline;
		text-underline-offset: 3px;
		cursor: pointer;
	}
	.hmns-menu__promo-error {
		margin: var(--space-2) 0 0;
		padding: var(--space-2) var(--space-3);
		background: var(--status-error-surface);
		color: var(--status-error);
		font-size: var(--type-small);
		line-height: 20px;
		font-weight: var(--weight-regular);
	}
	html.hmns-locked, html.hmns-locked body { overflow: hidden; }
	html body .hmns-revenue { display: none; }
}

/* Tablets (768px–1120px): no bottom thumb bar, so keep non-empty Cart icon beside Login in the top bar */
@media screen and (min-width: 768px) and (max-width: 1120px) {
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.cart:not(.hide) {
		display: inline-flex !important;
		align-items: center;
		gap: 6px;
		min-height: 44px;
		padding: 0 var(--space-2);
		color: var(--text-on-dark);
		cursor: pointer;
	}
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.cart.hide { display: none !important; }
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.cart svg path { fill: var(--text-on-dark); }
	html body .top-nav .hmns-tessitura-bar .tessitura-cell.cart .cart-counter {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		min-width: 22px;
		height: 22px;
		padding: 0 5px;
		border-radius: var(--radius-pill);
		background: var(--hmns-monarch-accessible);
		color: var(--hmns-white);
		font-family: var(--font-body);
		font-size: 12px;
		font-weight: var(--weight-regular);
	}
}

@media screen and (max-width: 767px) {
	/* Shared button (Buttons / MobileButtons): square, 48px, Source Sans 400 18/28, icon 24, gap 8 */
	html body .hmns-btn {
		flex: 1 1 0;
		min-width: 0;
		height: var(--control-height);
		max-height: none;
		width: auto;
		margin: 0;
		padding: 0 var(--space-4);
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: var(--control-gap);
		border: 0;
		border-radius: var(--radius-none);
		font-family: var(--font-body);
		font-size: var(--type-body);
		line-height: var(--leading-body);
		font-weight: var(--weight-regular);
		letter-spacing: 0;
		text-transform: none;
		text-decoration: none;
		cursor: pointer;
		transition: background-color var(--motion-base) var(--ease-standard), box-shadow var(--motion-base) var(--ease-standard), color var(--motion-base) var(--ease-standard);
	}
	html body .hmns-btn svg { width: var(--icon-size); height: var(--icon-size); flex: 0 0 auto; }
	html body .hmns-btn--primary { background: var(--action-primary); color: var(--action-on-primary); }
	html body .hmns-btn--primary:hover { background: var(--action-primary-hover); color: var(--action-on-primary); }
	html body .hmns-btn--on-dark { background: transparent; color: var(--text-on-dark); box-shadow: inset 0 0 0 1px var(--text-on-dark); }
	html body .hmns-btn--on-dark:hover { background: var(--hmns-white); color: var(--hmns-dark-gray); box-shadow: inset 0 0 0 1px var(--hmns-fossil-rim); }

	/* Focus: 2px Ocean Blue, the only place Ocean Blue touches a control */
	html body :is(.hmns-thumb, .hmns-panel, .hmns-v2) :is(a, button):focus-visible {
		outline: 2px solid var(--focus-ring) !important;
		outline-offset: 2px;
	}

	/* Active promo pill: slim bar above the thumb bar, shown ONLY when a promo code is applied */
	.hmns-promo-pill {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: var(--space-3);
		position: fixed;
		left: 0;
		right: 0;
		bottom: calc(80px + env(safe-area-inset-bottom));
		z-index: 989;
		min-height: 36px;
		padding: 6px var(--space-6);
		background: var(--hmns-observatory-night-sky);
		color: var(--hmns-white);
		font-family: var(--font-body);
		font-size: var(--type-small);
		line-height: 20px;
	}
	.hmns-promo-pill[hidden] { display: none !important; }
	.hmns-promo-pill__text { font-weight: var(--weight-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.hmns-promo-pill__text strong { font-weight: var(--weight-regular); letter-spacing: 0.03em; text-transform: uppercase; }
	html body .hmns-promo-pill__clear {
		flex: 0 0 auto;
		margin: 0;
		padding: 4px 0 4px var(--space-2);
		border: 0;
		background: transparent;
		color: var(--hmns-light-cream);
		font-family: var(--font-body);
		font-size: var(--type-small);
		font-weight: var(--weight-regular);
		text-decoration: underline;
		text-underline-offset: 3px;
		cursor: pointer;
	}

	/* Thumb bar: Tickets (or active Cart + hold timer) + Hours within thumb reach */
	.hmns-thumb {
		display: flex;
		gap: var(--control-gap);
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 990;
		padding: var(--space-4) var(--space-6) calc(var(--space-4) + env(safe-area-inset-bottom));
		background: var(--surface-nav);
		border-top: 1px solid var(--border-on-dark);
	}
	.hmns-thumb [hidden], .hmns-panel [hidden] { display: none !important; }
	html body .hmns-thumb .hmns-btn { padding: 0 var(--space-3); white-space: nowrap; }
	html body .hmns-thumb .hmns-thumb__cart:not([hidden]) { flex: 1.45 1 0; font-variant-numeric: tabular-nums; }
	html body .hmns-thumb:has(.hmns-thumb__cart:not([hidden])) .hmns-btn--on-dark { flex: 0.9 1 0; }
	@media screen and (max-width: 400px) {
		.hmns-thumb { padding-left: var(--space-4); padding-right: var(--space-4); }
		html body .hmns-thumb .hmns-btn { padding: 0 10px; gap: 6px; font-size: 16px; line-height: 24px; }
		html body .hmns-thumb .hmns-btn svg { width: 20px; height: 20px; }
	}
	html body .hmns-panel__cta { flex: none; width: 100%; margin: 0 0 var(--space-4); }
	html body .hmns-panel__inline-clear {
		margin-left: var(--space-2);
		padding: 0;
		border: 0;
		background: transparent;
		color: var(--text-subhead);
		font-family: var(--font-body);
		font-size: var(--type-small);
		font-weight: var(--weight-regular);
		text-decoration: underline;
		text-underline-offset: 3px;
		cursor: pointer;
	}
	html body .hmns-panel__inline-clear:hover { color: var(--text-link); }

	/* Scrim: HMNS dims up, into light */
	.hmns-scrim {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 1000;
		background: var(--scrim);
		-webkit-backdrop-filter: blur(var(--scrim-blur)) saturate(var(--scrim-saturate));
		backdrop-filter: blur(var(--scrim-blur)) saturate(var(--scrim-saturate));
		opacity: 0;
		transition: opacity var(--motion-overlay) var(--ease-standard);
	}
	.hmns-scrim[hidden], .hmns-panel[hidden] { display: none; }
	.hmns-scrim.is-open, .hmns-panel.is-open { opacity: 1; }

	/* Panel: a raised white card on the one museum-light shadow */
	.hmns-panel {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 1001;
		max-height: calc(100dvh - var(--hmns-bar));
		overflow-y: auto;
		padding: var(--space-6) var(--space-6) calc(var(--space-7) + env(safe-area-inset-bottom));
		background: var(--surface-card);
		color: var(--text-body);
		box-shadow: var(--shadow-raised);
		font-family: var(--font-body);
		font-weight: var(--weight-light);
		font-size: var(--type-body-mobile);
		line-height: var(--leading-body-mobile);
		opacity: 0;
		transition: opacity var(--motion-overlay) var(--ease-standard);
	}
	.hmns-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-4); }
	html body .hmns-panel__title { margin: 0; font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--type-title-3); line-height: var(--leading-display); letter-spacing: var(--tracking-display); color: var(--text-heading); }
	html body .hmns-panel__close {
		width: var(--control-height);
		height: var(--control-height);
		max-height: none;
		margin: 0 calc(var(--space-3) * -1) 0 0;
		padding: 0;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		border: 0;
		border-radius: var(--radius-none);
		background: transparent;
		color: var(--text-body);
		cursor: pointer;
	}
	.hmns-panel__close svg { width: var(--icon-size); height: var(--icon-size); }

	/* Fixed slots: the label never moves, only the value changes */
	.hmns-slots { margin: 0 0 var(--space-6); border-top: 1px solid var(--border-rule); }
	.hmns-slot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); min-height: var(--control-height); padding: var(--space-3) 0; border-bottom: 1px solid var(--border-hairline); }
	.hmns-slot dt { margin: 0; font-family: var(--font-label); font-weight: 500; font-size: var(--type-label-sm); line-height: var(--leading-display); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-label); }
	.hmns-slot dd { margin: 0; font-weight: var(--weight-regular); font-size: var(--type-body); line-height: var(--leading-body); color: var(--text-body); font-variant-numeric: tabular-nums; text-align: right; }

	/* Links: Fossil Rim on a Serengeti hairline, hovering to Monarch */
	.hmns-panel__links { list-style: none; margin: 0; padding: 0; }
	.hmns-panel__links li { margin: 0; }
	html body .hmns-link {
		display: inline-flex;
		align-items: center;
		gap: var(--control-gap);
		margin: var(--space-3) 0;
		padding-bottom: var(--space-1);
		border-bottom: 1px solid var(--border-underline);
		color: var(--text-subhead);
		font-size: var(--type-body);
		line-height: var(--leading-body);
		font-weight: var(--weight-light);
		text-decoration: none;
		transition: color var(--motion-base) var(--ease-standard), border-color var(--motion-base) var(--ease-standard);
	}
	html body .hmns-link svg { width: var(--icon-size-sm); height: var(--icon-size-sm); }
	html body .hmns-link:hover { color: var(--text-link); border-bottom-color: var(--text-link); }

	/* Home poster (Hero): the photograph runs from the bottom of the header stack to the thumb bar; label, title and
	   line sit bottom-left on the system's 15% to 65% black wash. #homepage-hero is doubled to outrank the block's
	   own phone rules (#homepage-hero.hh-no-pattern.hh-media ...), which load after this file. */
	html body #container:has(#homepage-hero) { padding-top: var(--hmns-header-stack-height, 56px) !important; }
	html body #content:has(#homepage-hero) { margin-top: 0; }
	#homepage-hero#homepage-hero {
		display: flex;
		align-items: flex-end;
		width: 100vw;
		max-width: none;
		margin-left: calc(50% - 50vw) !important; /* full bleed out of the page column's 16px padding */
		min-height: calc(100svh - var(--hmns-header-stack-height, 56px) - 80px - env(safe-area-inset-bottom));
		margin-top: 0;
		margin-bottom: 0;
		margin-right: 0;
		padding: 0;
		overflow: hidden;
	}
	#homepage-hero#homepage-hero::before {
		content: '';
		position: absolute;
		inset: 0;
		z-index: 1;
		background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .65) 100%); /* hmns-design Hero wash */
		pointer-events: none;
	}
	#homepage-hero#homepage-hero .shade { display: none; } /* the wash replaces the editor's flat shade on phones */
	#homepage-hero#homepage-hero .hero-flex { display: block; position: relative; width: 100%; bottom: auto; padding: var(--space-11) var(--space-6) var(--space-6); }
	#homepage-hero#homepage-hero .hero-content { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); text-align: left; }
	#homepage-hero#homepage-hero :is(.super, .super-large) {
		margin: 0;
		font-family: var(--font-label);
		font-weight: 500;
		font-size: var(--type-label-sm);
		line-height: var(--leading-display);
		letter-spacing: var(--tracking-label);
		text-transform: uppercase;
		text-shadow: none;
		color: var(--text-on-dark);
	}
	#homepage-hero#homepage-hero .large-title {
		max-width: none;
		margin: 0;
		font-family: var(--font-display);
		font-weight: var(--weight-display);
		font-size: var(--type-title-2);
		line-height: 1;
		letter-spacing: var(--tracking-display);
		text-align: left;
		text-shadow: none;
		color: var(--hmns-white);
	}
	#homepage-hero#homepage-hero .large-title + .large-title { margin-top: calc(var(--space-4) * -1 + var(--space-1)); } /* a two-line title reads as one */
	#homepage-hero#homepage-hero .sub {
		margin: 0;
		font-family: var(--font-body);
		font-weight: var(--weight-light);
		font-size: var(--type-subhead-mobile);
		line-height: var(--leading-subhead-mobile);
		text-align: left;
		text-shadow: none;
		color: var(--text-on-dark);
	}
	/* One button, always; the thumb bar holds the primary, so the hero's reads as the on-dark outline */
	#homepage-hero#homepage-hero .cta-flex { display: flex; flex-direction: column; gap: var(--space-2); width: 100%; margin: var(--space-2) 0 0; }
	#homepage-hero#homepage-hero .cta-flex a.cta {
		width: 100%;
		height: var(--control-height);
		max-height: none;
		margin: 0;
		padding: 0 var(--space-4);
		display: flex;
		align-items: center;
		justify-content: center;
		gap: var(--control-gap);
		border: 0;
		border-radius: var(--radius-none);
		background: transparent;
		box-shadow: inset 0 0 0 1px var(--text-on-dark);
		font-family: var(--font-body);
		font-weight: var(--weight-regular);
		font-size: var(--type-body);
		line-height: var(--leading-body);
		color: var(--text-on-dark);
		transition: background-color var(--motion-base) var(--ease-standard), color var(--motion-base) var(--ease-standard);
	}
	#homepage-hero#homepage-hero .cta-flex a.cta:hover { background: var(--hmns-white); color: var(--hmns-dark-gray); }
	#homepage-hero#homepage-hero .cta-flex a.cta svg { width: var(--icon-size); height: var(--icon-size); margin: 0; }
	#homepage-hero#homepage-hero .cta-flex a.cta svg path { fill: currentColor; }
	/* Pause control (WCAG 2.2.2): a square 48px on-dark control in the top-right gutter, drawn with the system's glyphs */
	#homepage-hero#homepage-hero .play-pause { display: block; position: absolute; top: var(--space-4); right: var(--space-4); bottom: auto; left: auto; z-index: 3; transform: none; }
	#homepage-hero#homepage-hero .play-pause > div { width: var(--control-height); height: var(--control-height); display: flex; align-items: center; justify-content: center; color: var(--text-on-dark); background: var(--surface-nav-glass); }
	#homepage-hero#homepage-hero .play-pause > div.hide { display: none; }
	#homepage-hero#homepage-hero .play-pause svg { display: none; }
	#homepage-hero#homepage-hero .play-pause > div::before { content: ''; width: var(--icon-size); height: var(--icon-size); background: currentColor; -webkit-mask: var(--hmns-glyph) center / contain no-repeat; mask: var(--hmns-glyph) center / contain no-repeat; }
	#homepage-hero#homepage-hero .play-pause .pause { --hmns-glyph: url(../../hmns/icons/Pause.svg); }
	#homepage-hero#homepage-hero .play-pause .play { --hmns-glyph: url(../../hmns/icons/Play.svg); }
	#homepage-hero#homepage-hero .play-pause > div:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

	/* Home below the poster: 24px gutters (the system's phone gutter; the page used 16px) and one 64px step between
	   sections. The hero, info strip and notice stay joined as one opening unit. */
	html body #container:has(#homepage-hero) > .container { padding-left: var(--space-6); padding-right: var(--space-6); }
	/* !important: several blocks print their editor margin fields as inline styles; on phones the rhythm is the system's */
	html body .entry-content:has(> #homepage-hero) > * { margin-top: 0 !important; margin-bottom: var(--space-9) !important; }
	html body .entry-content:has(> #homepage-hero) > :is(#homepage-hero, #fw-icons-and-info) { margin-bottom: 0 !important; }
	html body .entry-content:has(> #homepage-hero) > :is(#featured-alternating-rows-animated, #card-grid-wlinks, #shop-grid) { padding-top: 0; padding-bottom: 0; }
	/* Link rows (Exhibitions, Burke Baker Planetarium ...): wrap between links, never inside a label */
	html body #hmns-flickity-slider ul:has(> li > a),
	html body #card-grid-wlinks .link-flex { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-6); }
	html body #hmns-flickity-slider ul:has(> li > a) > li { flex: 0 0 auto; width: auto; margin: 0; }
	html body :is(#hmns-flickity-slider li, #card-grid-wlinks .link-flex) > a { white-space: nowrap; }

	/* Section headings: 16px to their link row, 32px to the content, so each heading opens its own section */
	html body #hmns-flickity-slider .exhibits-title { margin-bottom: var(--space-4); }
	html body #card-grid-wlinks .title { margin-bottom: var(--space-4); }
	html body #card-grid-wlinks .link-flex { margin-bottom: var(--space-7); }
	html body #card-grid-wlinks .card-grid { margin-top: 0; padding-top: 0; }
	#featured-alternating-rows-animated#featured-alternating-rows-animated .f-title { margin-bottom: 0; }
	#featured-alternating-rows-animated#featured-alternating-rows-animated .title-box { margin-bottom: var(--space-7); padding-bottom: 0; }
	#featured-alternating-rows-animated#featured-alternating-rows-animated .rows { margin-top: 0; padding-top: 0; }
	html body #shop-grid .shop-title h2 { margin-bottom: 0; }

	/* Home, phones (review 10 Nov 2026). Notice band: 16px above and below (was 8px), its text on the info rows' text
	   column (past the 32px icon column) rather than under the icons. */
	html body #fw-notification { padding-top: var(--space-4); padding-bottom: var(--space-4); }
	html body #fw-notification .notification-content { padding: 0 0 0 var(--space-7); }
	/* Link row: the block pushes its last link down 24px for its own two-row layout; the row wraps on a gap here */
	html body #card-grid-wlinks .link-flex > a { margin: 0 !important; }
	/* Gift shop band: 48px inside, top and bottom (the label and the button sat on its edges), and it meets the footer map */
	html body .entry-content:has(> #homepage-hero) > #shop-grid { padding-top: var(--space-8); padding-bottom: var(--space-8); margin-bottom: 0 !important; }
	/* An empty paragraph left at the end of the page would put the 64px section step between the band and the map */
	html body .entry-content:has(> #homepage-hero) > p:empty { display: none; }
	/* Footer map and engraving are handled across all widths in assets/css/hmns/footer.css. */

	/* The opening unit joins the notice band only where one follows (main); elsewhere the next section keeps its 64px */
	html body .entry-content:has(> #homepage-hero) > #fw-icons-and-info:not(:has(+ #fw-notification)) { margin-bottom: var(--space-9) !important; }
	/* More To Explore: photographs full bleed (they sat 8px in, on no gutter), cards on the 24px gutter */
	#featured-alternating-rows-animated#featured-alternating-rows-animated .rows > .row { width: 100vw; max-width: none; margin-left: calc(50% - 50vw); margin-right: 0; }
	/* Hero buttons that repeat the thumb bar, or come after the first (block-homepage-hero.php) */
	#homepage-hero#homepage-hero .cta-flex a.cta.hh-cta-phone-hide { display: none; }
	#homepage-hero#homepage-hero .cta-flex:not(:has(a.cta:not(.hh-cta-phone-hide))) { display: none; }
	.hmns-panel__note { margin: 0 0 var(--space-6); font-size: var(--type-body-mobile); line-height: var(--leading-body-mobile); color: var(--text-body); }

	/* Headings wrap into even lines instead of leaving one word alone on the last */
	html body :is(h1, h2, h3, .large-title) { text-wrap: balance; }
	/* Reading text never leaves one word alone on its last line */
	html body :is(.feat-info-desc, .faq-answer, .admission-intro, #featured-alternating-rows-animated .description, .hmns-tt__notice, .hmns-tt__aside, #admission-pricing .card-content, #content-with-sidebar :is(p, li), .the-everything-block :is(p, li), #images-and-info-grid .ii-content, #simple-accordion .accordion-content) { text-wrap: pretty; }

	/* ===== Slice 2: interior pages ===== */

	/* Page banner (PageBanner): the section's engraved tile, breadcrumb, Sentinel title, left-aligned, 48px x 24px.
	   The block pulls the page up 150px under the header stack and pads 200px to compensate; phones start below it.
	   #simple-page-header doubled + !important: the block prints its padding fields inline. */
	html body #content:has(#simple-page-header) { margin-top: 0; }
	#simple-page-header#simple-page-header { width: 100%; margin: 0 !important; padding: 0 !important; }
	#simple-page-header#simple-page-header .fw-bg { background-size: 130px 130px !important; background-position: top left !important; }
	#simple-page-header#simple-page-header .simple-page-header-titles { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); padding: var(--space-8) var(--space-6); text-align: left; }
	#simple-page-header#simple-page-header .sp-super-title { margin: 0; }
	/* The block hides the title on phones (screen-reader only) because the switcher repeats it; PageBanner shows it */
	#simple-page-header#simple-page-header .sp-title { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: normal; }
	#simple-page-header#simple-page-header .sp-super-title a { margin: 0; gap: var(--space-2); padding-bottom: var(--space-1); font-family: var(--font-body); font-weight: var(--weight-light); font-size: var(--type-body-mobile); line-height: var(--leading-body-mobile); color: var(--text-on-dark); }
	#simple-page-header#simple-page-header .sp-super-title svg { margin: 0; width: var(--icon-size-sm); height: var(--icon-size-sm); }
	#simple-page-header#simple-page-header .sp-super-title svg path { fill: currentColor; }
	#simple-page-header#simple-page-header .sp-title h1 { margin: 0; font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--type-title-2); line-height: var(--leading-display); letter-spacing: var(--tracking-display); color: var(--hmns-white); text-align: left; }
	/* Section switcher under the banner: the phone menu's row (white, Termina 14, chevron), opening cream link rows */
	/* The block sets the switcher absolute, straddling the banner's bottom edge; on phones it sits in flow under it */
	#simple-page-header#simple-page-header .tertiary-nav-bar { position: relative; left: auto; bottom: auto; transform: none; width: auto; z-index: 2; margin: 0 calc(var(--space-6) * -1); padding: 0; background: var(--hmns-white); box-shadow: none; border-bottom: 1px solid var(--border-hairline); }
	#simple-page-header#simple-page-header .mobile-title-flex { display: flex; align-items: center; justify-content: space-between; width: 100%; max-height: none; height: auto; margin: 0; border: 0; background: transparent; min-height: var(--control-height); padding: 20px var(--space-6); text-align: left; cursor: pointer; }
	#simple-page-header#simple-page-header .mobile-title-flex:hover { background: transparent; border-color: transparent; }
	#simple-page-header#simple-page-header .mobile-title { font-family: var(--font-label); font-weight: 500; font-size: var(--type-label); line-height: var(--leading-display); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-label); }
	#simple-page-header#simple-page-header .mobile-title-flex svg { width: var(--icon-size-sm); height: auto; margin: 0; }
	#simple-page-header#simple-page-header .mobile-title-flex svg path { fill: var(--text-label); }
	#simple-page-header#simple-page-header .mobile-title-flex:focus-visible { outline: 2px solid var(--focus-ring) !important; outline-offset: -2px; }
	#simple-page-header#simple-page-header .tertiary-nav-bar nav #tertiary-menu-wrapper { position: static; top: auto; width: 100%; background: var(--surface-sunken); box-shadow: none; }
	#simple-page-header#simple-page-header .tertiary-nav-bar nav ul { display: block; margin: 0; padding: 0; }
	#simple-page-header#simple-page-header .tertiary-nav-bar nav ul li { margin: 0; padding: 0 !important; border: 0 !important; }
	#simple-page-header#simple-page-header .tertiary-nav-bar nav ul li a { display: block; padding: var(--space-4) var(--space-6) !important; border: 0 !important; background: var(--surface-sunken); font-family: var(--font-body); font-weight: var(--weight-light); font-size: var(--type-body); line-height: var(--leading-body); color: var(--text-subhead); text-decoration: none; }
	#simple-page-header#simple-page-header .tertiary-nav-bar nav ul li.current-page a { font-weight: var(--weight-regular); color: var(--text-body); }

	/* Pages built from these blocks: 24px gutters, 64px between sections (as on home) */
	html body:has(#simple-page-header) { background: var(--surface-page); }
	html body #container:has(#simple-page-header) > .container { padding-left: var(--space-6); padding-right: var(--space-6); }
	html body .entry-content:has(> #simple-page-header) > * { margin-top: 0 !important; margin-bottom: var(--space-9) !important; }
	html body .entry-content:has(> #simple-page-header) > #simple-page-header { margin-bottom: var(--space-7) !important; }
	html body .entry-content:has(> #simple-page-header) > :is(#content-with-sidebar, .the-everything-block, #images-and-info-grid, #simple-accordion) { padding-top: 0 !important; padding-bottom: 0 !important; }
	html body .entry-content:has(> #simple-page-header) > :is(#content-with-sidebar, .the-everything-block, #images-and-info-grid, #simple-accordion) > .fw-bg { display: none; }
	html body .entry-content:has(> #simple-page-header) > p:empty { display: none; }
	html body .entry-content:has(> #simple-page-header) > :last-child,
	html body .entry-content:has(> #simple-page-header) > #full-width-columns:not(:has(~ section)) { margin-bottom: 0 !important; }

	/* Hours timetable (block-hours-of-operation.php .hmns-tt): today first, then fixed rows, attractions folded */
	#hours-of-operation#hours-of-operation { padding: 0 !important; }
	/* One page ground: the blocks' full-bleed white layers left cream strips between sections */
	#hours-of-operation#hours-of-operation > .fw-bg, #admission-pricing#admission-pricing > .fw-bg { display: none; }
	#hours-of-operation#hours-of-operation > .hours-flex,
	#hours-of-operation#hours-of-operation > .background-image-layer { display: none; }
	.hmns-tt { display: flex; flex-direction: column; gap: var(--space-7); position: relative; z-index: 1; }
	.hmns-tt__today { display: flex; align-items: center; gap: var(--space-2); margin: 0; font-family: var(--font-body); font-weight: var(--weight-regular); font-size: var(--type-subhead-mobile); line-height: var(--leading-subhead-mobile); color: var(--text-body); font-variant-numeric: tabular-nums; }
	.hmns-tt__today svg { flex: 0 0 auto; width: var(--icon-size); height: var(--icon-size); }
	.hmns-tt__group { display: flex; flex-direction: column; gap: var(--space-4); }
	html body :is(.hmns-tt__title, .hmns-pt__title) { margin: 0; font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--type-title-3); line-height: var(--leading-display); letter-spacing: var(--tracking-display); color: var(--text-heading); text-align: left; }
	.hmns-tt__notice, .hmns-tt__aside { margin: 0; font-family: var(--font-body); font-weight: var(--weight-light); font-size: var(--type-body-mobile); line-height: var(--leading-body-mobile); color: var(--text-body); }
	.hmns-tt__notice p { margin: 0; }

	/* Rows (PriceTable rows): label left, value right, on hairlines inside a white table with a rule edge */
	:is(.hmns-tt, .hmns-pt) dl { margin: 0; padding: 0; border: 0; border-top: 1px solid var(--border-rule); border-bottom: 1px solid var(--border-rule); background: none; }
	.hmns-tt__row, .hmns-pt__row { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); margin: 0; padding: 12px 0; border-bottom: 1px solid var(--border-hairline); }
	:is(.hmns-tt__row, .hmns-pt__row):last-child { border-bottom: 0; }
	.hmns-tt__row dt { flex: 1 1 auto; min-width: 0; margin: 0; font-family: var(--font-body); font-weight: var(--weight-regular); font-size: var(--type-body); line-height: var(--leading-body); color: var(--text-body); }
	.hmns-tt__row dd { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; margin: 0; text-align: right; }
	.hmns-tt__time { font-family: var(--font-body); font-weight: var(--weight-regular); font-size: var(--type-body); line-height: var(--leading-body); color: var(--text-body); font-variant-numeric: tabular-nums; white-space: nowrap; }
	:is(.hmns-tt__note, .hmns-pt__note) { font-family: var(--font-body); font-weight: var(--weight-light); font-size: var(--type-body-mobile); line-height: var(--leading-small); color: var(--text-subhead); font-variant-numeric: tabular-nums; }

	/* Price table (block-admission.php .hmns-pt): PriceTable, General Admission open, add-ons folded */
	#admission-pricing#admission-pricing { padding: 0 !important; }
	#admission-pricing#admission-pricing :is(.admission-table, .admission-mobile-list) { display: none; }
	#admission-pricing#admission-pricing .admission-flex { display: block; }
	#admission-pricing#admission-pricing .admission-title h3 { margin: 0 0 var(--space-4); font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--type-title-3); line-height: var(--leading-display); color: var(--text-heading); }
	#admission-pricing#admission-pricing .admission-intro { font-size: var(--type-body-mobile); line-height: var(--leading-body-mobile); font-weight: var(--weight-light); }
	#admission-pricing#admission-pricing .admission-intro p { margin: 0 0 var(--space-4); }
	/* Links on the cream page ground are Fossil Rim (Monarch is 4.3:1 there), hovering to Monarch */
	#admission-pricing#admission-pricing .admission-intro a { color: var(--text-subhead); text-decoration: underline; text-decoration-color: var(--border-underline); text-underline-offset: 4px; }
	#admission-pricing#admission-pricing .admission-intro a:hover { color: var(--text-link); }
	html body a[href^="tel:"] { white-space: nowrap; }
	.hmns-pt { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-6); }
	.hmns-pt__group { display: flex; flex-direction: column; }
	.hmns-pt__group dl { margin-top: var(--space-4); }
	html body .hmns-pt__title { font-size: var(--type-title-4); }
	.hmns-pt__qualifier { margin: var(--space-1) 0 0; font-family: var(--font-display); font-style: italic; font-weight: var(--weight-display); font-size: var(--type-body); line-height: var(--leading-body); color: var(--text-subhead); }
	.hmns-pt__row { align-items: center; }
	.hmns-pt__row dt { display: flex; flex-direction: column; min-width: 0; margin: 0; }
	.hmns-pt__who { font-family: var(--font-body); font-weight: var(--weight-regular); font-size: var(--type-body); line-height: var(--leading-body); color: var(--text-body); }
	.hmns-pt__row dd { margin: 0; font-family: var(--font-body); font-weight: var(--weight-light); font-size: var(--type-subhead); line-height: var(--leading-subhead); color: var(--text-subhead); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }

	/* Folds (Accordion): stacked rows sharing one rule, 20/28 title, 24px chevron; the open row shows its table */
	.hmns-fold { margin: 0; border: 0; border-top: 1px solid var(--border-rule); border-bottom: 1px solid var(--border-rule); background: none; }
	:is(.hmns-tt__group, .hmns-pt) > .hmns-fold + .hmns-fold { margin-top: calc(var(--space-4) * -1 - 1px); }
	.hmns-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-7); min-height: var(--control-height); padding: 20px 0; cursor: pointer; list-style: none; font-family: var(--font-body); font-weight: var(--weight-regular); font-size: 20px; line-height: var(--leading-body); color: var(--text-body); }
	.hmns-fold > summary::-webkit-details-marker { display: none; }
	.hmns-fold > summary svg { flex: 0 0 auto; width: var(--icon-size); height: var(--icon-size); }
	.hmns-fold[open] > summary svg { transform: scaleY(-1); }
	html body .hmns-fold > summary:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
	.hmns-fold > dl { margin: 0 0 var(--space-4); border-bottom: 0; }
	/* A merged attraction fold (js/hmns-phone.js) holds its hours, then its prices, each under a short label */
	.hmns-fold__label { margin: var(--space-4) 0 var(--space-2); font-family: var(--font-label); font-weight: 500; font-size: var(--type-label-sm); line-height: var(--leading-display); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-label); }
	.hmns-fold__label:first-of-type { margin-top: 0; }

	/* Exhibit pages (featured-exhibit-info, alternating rows, FAQ): a hall guide. Facts in fixed rows on a full-bleed
	   dark band after the poster, then one left-aligned reading column. The Buy Tickets form (.buy-tickets) is
	   Tessitura markup and keeps its own styles. */
	html body .entry-content:has(> #homepage-hero) > #homepage-hero + #featured-exhibit-info { margin-top: 0 !important; }
	#featured-exhibit-info#featured-exhibit-info { padding: 0 !important; }
	/* Exhibit pages print blocks straight into <main>: 64px between sections (inline editor margins), poster and facts joined */
	html body main:has(> #featured-exhibit-info) > * { margin-top: 0 !important; margin-bottom: var(--space-9) !important; }
	html body main:has(> #featured-exhibit-info) > #homepage-hero { margin-bottom: 0 !important; }
	html body main:has(> #featured-exhibit-info) > #featured-alternating-rows-animated { padding-top: 0; padding-bottom: 0; }
	/* One ground: the block's own #f5f5f5 layer met the cream page in a seam */
	#featured-exhibit-info#featured-exhibit-info > .fw-bg, #featured-exhibit-info#featured-exhibit-info > .background-svg-texture { display: none; }
	/* Section headings follow the reading column on exhibit pages (home keeps its centred modules) */
	html body main:has(> #featured-exhibit-info) :is(#featured-alternating-rows-animated .title-box, #faq-guidelines .title-box, #card-grid-wlinks .title) { text-align: left; align-items: flex-start; }
	html body main:has(> #featured-exhibit-info) :is(#featured-alternating-rows-animated .title-box, #faq-guidelines .title-box, #card-grid-wlinks .title) :is(h2, .title, .f-title) { text-align: left; }
	html body main:has(> #featured-exhibit-info) :is(#faq-guidelines .title-box > a, #card-grid-wlinks .link-flex) { margin-left: 0; margin-right: 0; justify-content: flex-start; }
	/* Gallery: its controls carry z-index in the billions with no stacking layer of their own, so they drew over the
	   header and thumb bar. Own layer except in fullscreen, where the gallery script hides the header; hide the thumb bar too. */
	html:has(.hmns-gallery .fullscreen) .hmns-thumb { display: none; }
	#featured-exhibit-info#featured-exhibit-info .fei-flex { display: flex; flex-direction: column; gap: var(--space-8); padding: 0; }
	#featured-exhibit-info#featured-exhibit-info .info-card { order: -1; align-self: flex-start; left: auto; right: auto; transform: none; width: 100vw; max-width: none; margin: 0 0 0 calc(50% - 50vw); /* the block bleeds it with left: 50% and a translate; one margin does it here */ padding: var(--space-7) var(--space-6); border-radius: var(--radius-none); box-shadow: none; background: var(--hmns-dark-gray); color: var(--text-on-dark); }
	#featured-exhibit-info#featured-exhibit-info .info-card .button-flex { display: flex; margin: 0 0 var(--space-6); padding: 0; }
	#featured-exhibit-info#featured-exhibit-info .info-card .button-flex a.cta { width: 100%; height: var(--control-height); max-height: none; margin: 0; padding: 0 var(--space-4); display: flex; align-items: center; justify-content: center; gap: var(--control-gap); border: 0; border-radius: var(--radius-none); background: transparent; box-shadow: inset 0 0 0 1px var(--text-on-dark); font-family: var(--font-body); font-weight: var(--weight-regular); font-size: var(--type-body); line-height: var(--leading-body); color: var(--text-on-dark); transition: background-color var(--motion-base) var(--ease-standard), color var(--motion-base) var(--ease-standard); }
	#featured-exhibit-info#featured-exhibit-info .info-card .button-flex a.cta:hover { background: var(--hmns-white); color: var(--hmns-dark-gray); }
	#featured-exhibit-info#featured-exhibit-info .info-card .button-flex a.cta svg { width: var(--icon-size); height: var(--icon-size); margin: 0; }
	#featured-exhibit-info#featured-exhibit-info .info-card .button-flex a.cta svg :is(path, rect, circle, line, polyline) { stroke: currentColor; }
	/* Fact rows: icon, the fact, then its link, on on-dark hairlines */
	#featured-exhibit-info#featured-exhibit-info .info-list-container { margin: 0; padding: 0; border-top: 1px solid var(--border-on-dark); }
	#featured-exhibit-info#featured-exhibit-info .icon-list-flex { display: flex; align-items: flex-start; gap: var(--space-4); margin: 0; padding: var(--space-4) 0; border-bottom: 1px solid var(--border-on-dark); }
	#featured-exhibit-info#featured-exhibit-info .icon-list-flex .icon { flex: 0 0 auto; width: var(--icon-size); height: var(--icon-size); margin: 2px 0 0; }
	#featured-exhibit-info#featured-exhibit-info .icon-list-flex .icon svg { width: 100%; height: 100%; }
	#featured-exhibit-info#featured-exhibit-info .icon-title { margin: 0; font-family: var(--font-body); font-weight: var(--weight-regular); font-size: var(--type-body); line-height: var(--leading-body); color: var(--text-on-dark); }
	#featured-exhibit-info#featured-exhibit-info .icon-titles-link a { display: inline-flex; align-items: center; gap: var(--space-2); margin: var(--space-1) 0 0; padding-bottom: var(--space-1); border-bottom: 1px solid var(--border-underline); font-family: var(--font-body); font-weight: var(--weight-light); font-size: var(--type-body-mobile); line-height: var(--leading-body-mobile); color: var(--text-on-dark); text-decoration: none; }
	#featured-exhibit-info#featured-exhibit-info .icon-titles-link a svg { width: var(--icon-size-sm); height: var(--icon-size-sm); margin: 0; }
	#featured-exhibit-info#featured-exhibit-info .info-card .buy-tickets { margin: var(--space-6) 0 0; }
	#featured-exhibit-info#featured-exhibit-info .optional-note { margin: var(--space-6) 0 0; padding: 0; background: none; font-family: var(--font-body); font-weight: var(--weight-light); font-size: var(--type-body-mobile); line-height: var(--leading-body-mobile); color: var(--text-on-dark); }
	#featured-exhibit-info#featured-exhibit-info .optional-note .on-title { margin: 0 0 var(--space-2); font-family: var(--font-display); font-style: italic; font-weight: var(--weight-display); font-size: var(--type-body); line-height: var(--leading-body); color: var(--text-on-dark); }
	#featured-exhibit-info#featured-exhibit-info .optional-note p { margin: 0 0 var(--space-4); }
	/* The story: Sentinel 30 title, one Fossil Rim subhead line, body at 18/28, left-aligned at a reading measure */
	#featured-exhibit-info#featured-exhibit-info .featured-background-info { width: 100%; max-width: var(--measure); margin: 0; padding: 0; text-align: left; }
	#featured-exhibit-info#featured-exhibit-info .feat-info-title { margin: 0 0 var(--space-4); font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--type-title-3); line-height: var(--leading-display); letter-spacing: var(--tracking-display); color: var(--text-heading); text-align: left; }
	#featured-exhibit-info#featured-exhibit-info .feat-info-sub { margin: 0 0 var(--space-6); font-family: var(--font-body); font-weight: var(--weight-light); font-size: var(--type-subhead-mobile); line-height: var(--leading-subhead-mobile); color: var(--text-subhead); text-align: left; }
	#featured-exhibit-info#featured-exhibit-info .feat-info-desc { margin: 0; font-family: var(--font-body); font-weight: var(--weight-light); font-size: var(--type-body); line-height: var(--leading-body); color: var(--text-body); text-align: left; }

	/* Alternating rows (exhibit highlights, home More To Explore): photograph, then its caption below it, left-aligned.
	   Before: a white card floated over the photo with centred text. */
	/* Content card titles on phones are one size, Title 4 (22px): the grid was 20px and the slider 25px beside the rows' 22px */
	#card-grid-wlinks#card-grid-wlinks .bot-title, #hmns-flickity-slider#hmns-flickity-slider .bot-title { font-size: var(--type-title-4); }
	#featured-alternating-rows-animated#featured-alternating-rows-animated .rows { row-gap: var(--space-8); } /* the grid gap alone spaces the entries */
	#featured-alternating-rows-animated#featured-alternating-rows-animated .rows > .row { display: flex; flex-direction: column; height: auto; min-height: 0; margin-bottom: 0; padding: 0; }
	#featured-alternating-rows-animated#featured-alternating-rows-animated .feat-background { order: -1; /* odd rows print the caption first */ position: relative; width: 100%; height: auto; margin: 0; padding: 0; aspect-ratio: 4 / 3; inset: auto; transform: none; }
	#featured-alternating-rows-animated#featured-alternating-rows-animated .row > :is(.card-right, .card-left) { position: static; align-self: stretch; width: auto; max-width: none; margin: 0; padding: var(--space-6) var(--space-6) 0; inset: auto; transform: none; background: transparent; box-shadow: none; border-bottom: 0 !important; text-align: left; }
	#featured-alternating-rows-animated#featured-alternating-rows-animated .row :is(.super-title, .title, .description, .sub-title) { text-align: left; }
	#featured-alternating-rows-animated#featured-alternating-rows-animated .row .title { margin: var(--space-2) 0 var(--space-4); font-family: var(--font-display); font-weight: var(--weight-display); font-size: var(--type-title-4); line-height: 1.2; color: var(--text-heading); }
	#featured-alternating-rows-animated#featured-alternating-rows-animated .row .description { font-family: var(--font-body); font-weight: var(--weight-light); font-size: var(--type-body); line-height: var(--leading-body); color: var(--text-body); }
	#featured-alternating-rows-animated#featured-alternating-rows-animated .row .description p { margin: 0 0 var(--space-4); }
	#featured-alternating-rows-animated#featured-alternating-rows-animated .row :is(.card-right, .card-left) > :last-child, #featured-alternating-rows-animated#featured-alternating-rows-animated .row .description p:last-child { margin-bottom: 0; }
	/* Their buttons: one Monarch per screen is the thumb bar's, so these are the light outline */
	#featured-alternating-rows-animated#featured-alternating-rows-animated .row .button-flex { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-2); margin: var(--space-6) 0 0; }
	#featured-alternating-rows-animated#featured-alternating-rows-animated .row .button-flex a.cta { width: 100%; height: var(--control-height); max-height: none; margin: 0; padding: 0 var(--space-4); display: flex; align-items: center; justify-content: center; gap: var(--control-gap); border: 0; border-radius: var(--radius-none); background: transparent; box-shadow: var(--ring-inset); font-family: var(--font-body); font-weight: var(--weight-regular); font-size: var(--type-body); line-height: var(--leading-body); color: var(--text-body); transition: background-color var(--motion-base) var(--ease-standard), color var(--motion-base) var(--ease-standard); }
	#featured-alternating-rows-animated#featured-alternating-rows-animated .row .button-flex a.cta:hover { background: var(--hmns-fossil-rim); color: var(--hmns-white); }
	#featured-alternating-rows-animated#featured-alternating-rows-animated .row .button-flex a.cta svg { width: var(--icon-size); height: var(--icon-size); margin: 0; }
	#featured-alternating-rows-animated#featured-alternating-rows-animated .row .button-flex a.cta svg path { fill: currentColor; }

	/* FAQ (Accordion): questions 20/28 on Fossil Rim 30% rules, answers 18/28 at a reading measure */
	#faq-guidelines#faq-guidelines .faq-item { margin: 0; padding: 0; border-bottom: 1px solid var(--border-rule); }
	/* !important: the block's tab CSS sets the panel's padding and border with !important */
	#faq-guidelines#faq-guidelines .responsive-tabs__panel { padding: 0 !important; border: 0 !important; border-top: 1px solid var(--border-rule) !important; background: none; }
	#faq-guidelines#faq-guidelines .responsive-tabs__list__item { box-shadow: none; }
	#faq-guidelines#faq-guidelines .responsive-tabs__list__item:not(.responsive-tabs__list__item--active) { background: none; }
	#faq-guidelines#faq-guidelines .faq-item:first-child { border-top: 0; }
	#faq-guidelines#faq-guidelines .faq-title { display: flex; align-items: center; justify-content: space-between; gap: var(--space-7); min-height: var(--control-height); padding: 20px 0; cursor: pointer; }
	#faq-guidelines#faq-guidelines .faq-title:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
	#faq-guidelines#faq-guidelines .faq-title .question { font-family: var(--font-body); font-weight: var(--weight-regular); font-size: 20px; line-height: var(--leading-body); color: var(--text-body); }
	#faq-guidelines#faq-guidelines .faq-answer { max-width: var(--measure); padding: 0 0 20px; font-family: var(--font-body); font-weight: var(--weight-light); font-size: var(--type-body); line-height: var(--leading-body); color: var(--text-body); }
	#faq-guidelines#faq-guidelines .faq-answer p { margin: 0 0 var(--space-4); }
	#faq-guidelines#faq-guidelines .faq-answer p:last-child { margin-bottom: 0; }

	html.hmns-locked, html.hmns-locked body { overflow: hidden; }
}

/* All widths: Tessitura Login block (#hmns-login-box on /login/) — styled to match TNEW's redesigned
   Section 11 Login page (one centered column, crisp 48px four-sided inputs, underline tab bar,
   full-width Monarch primary CTA). Doubled #hmns-login-box outranks blocks/block-tessitura-login.css
   (which Genesis Custom Blocks prints after wp_head) with zero edits to the block's PHP or JS. */
html body #hmns-login-box#hmns-login-box {
	width: auto;
	max-width: 480px;
	margin: var(--space-8) auto var(--space-9);
	padding: 0 var(--space-6);
	border: 0;
	background: transparent;
	font-family: var(--font-body);
	color: var(--text-body);
}
html body #hmns-login-box#hmns-login-box:has(.create-account-box.active) {
	max-width: 560px;
}
html body #hmns-login-box#hmns-login-box .login-flex {
	display: flex;
	flex-direction: column;
	gap: var(--space-6);
}
html body #hmns-login-box#hmns-login-box .title-bar {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-2);
	text-align: left;
}
html body #hmns-login-box#hmns-login-box .title-bar h2 {
	margin: 0;
	font-family: var(--font-display);
	font-weight: var(--weight-display);
	font-size: clamp(28px, 5vw, 35px);
	line-height: 1.08;
	letter-spacing: var(--tracking-display);
	color: var(--text-heading);
	text-align: left;
}
html body #hmns-login-box#hmns-login-box .title-bar h4 {
	margin: 0;
	font-family: var(--font-body);
	font-weight: var(--weight-regular);
	font-size: var(--type-body);
	line-height: var(--leading-body);
	color: var(--text-subhead);
	text-align: left;
}
html body #hmns-login-box#hmns-login-box .title-bar p {
	margin: 0;
	font-family: var(--font-body);
	font-weight: var(--weight-light);
	font-size: 16px;
	line-height: 26px;
	color: var(--text-subhead);
	text-align: left;
}
/* Segmented underline tab bar (replaces the three 205px cream switcher boxes) */
html body #hmns-login-box#hmns-login-box .form-switcher {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: var(--space-1) var(--space-6);
	margin: 0;
	padding: 0;
	overflow: visible;
	border-bottom: 1px solid var(--border-rule);
}
html body #hmns-login-box#hmns-login-box .form-switcher-box {
	display: flex;
	flex: 0 0 auto;
	width: auto;
	margin: 0;
	padding: 0;
	background: transparent;
}
html body #hmns-login-box#hmns-login-box .form-switcher-title { display: none; }
html body #hmns-login-box#hmns-login-box .form-switcher-box button {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	max-height: none;
	margin: 0 0 -1px;
	padding: 0 0 10px !important;
	border: 0 !important;
	border-bottom: 2px solid transparent !important;
	border-radius: 0 !important;
	background: transparent !important;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 24px;
	font-weight: var(--weight-regular) !important;
	color: var(--text-subhead) !important;
	white-space: nowrap;
	cursor: pointer;
	transition: color var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard);
}
html body #hmns-login-box#hmns-login-box .form-switcher-box button:hover {
	color: var(--text-heading) !important;
	border-bottom-color: var(--border-underline) !important;
	background: transparent !important;
}
html body #hmns-login-box#hmns-login-box:has(.login-form-box:not(.hide)) #show-login-form,
html body #hmns-login-box#hmns-login-box:has(.password-reset-box.active) #show-password-reset-form,
html body #hmns-login-box#hmns-login-box:has(.create-account-box.active) #show-create-account-form {
	color: var(--text-heading) !important;
	font-weight: 600 !important;
	border-bottom-color: var(--hmns-monarch-accessible) !important;
}
html body #hmns-login-box#hmns-login-box :is(a, button, input, select):focus-visible {
	outline: 2px solid var(--focus-ring) !important;
	outline-offset: 2px;
}
/* Return URL banner */
html body #hmns-login-box#hmns-login-box .return-url-notification {
	margin: 0;
	padding: 12px 16px;
	background: var(--surface-sunken);
	border: 0;
	border-left: 3px solid var(--hmns-ocean-blue);
	font-family: var(--font-body);
	font-size: var(--type-small);
	line-height: 20px;
	font-weight: var(--weight-light);
	color: var(--text-subhead);
	text-align: left;
	overflow-wrap: anywhere;
}
html body #hmns-login-box#hmns-login-box .return-url-notification a {
	color: var(--text-body);
	font-weight: var(--weight-regular);
	text-decoration: underline;
	text-decoration-color: var(--border-underline);
	text-underline-offset: 3px;
}
html body #hmns-login-box#hmns-login-box .return-url-notification a:hover { color: var(--text-link); }
/* Flat editorial form containers (matches TNEW Section 11) */
html body #hmns-login-box#hmns-login-box :is(.login-form-box, .create-account-box, .password-reset-box, .password-change-box) {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background: transparent;
	box-shadow: none;
	border: 0;
}
html body #hmns-login-box#hmns-login-box :is(.login-top-bar, .password-reset-top-bar, .password-change-top-bar) {
	margin: 0 0 var(--space-5);
	padding: 0;
	background: transparent;
	color: var(--text-heading);
	font-family: var(--font-display);
	font-weight: var(--weight-display);
	font-size: 28px;
	line-height: 1.1;
	letter-spacing: var(--tracking-display);
	text-align: left;
}
html body #hmns-login-box#hmns-login-box .create-account-section {
	margin-bottom: var(--space-6);
}
html body #hmns-login-box#hmns-login-box .create-account-section-top-bar {
	margin: 0 0 var(--space-4);
	padding: 0 0 var(--space-2);
	background: transparent;
	border-bottom: 1px solid var(--border-rule);
	color: var(--text-label);
	font-family: var(--font-label);
	font-weight: 500;
	font-size: var(--type-label-sm);
	line-height: var(--leading-display);
	letter-spacing: var(--tracking-label);
	text-transform: uppercase;
	text-align: left;
}
html body #hmns-login-box#hmns-login-box :is(.login-form, .password-reset-form, .password-change-form, .create-account-fields) {
	padding: 0;
}
/* Labels and 48px four-sided square fields */
html body #hmns-login-box#hmns-login-box .label-flex {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: var(--space-2);
	margin: 0 0 6px;
}
html body #hmns-login-box#hmns-login-box .label-flex label {
	margin: 0 auto 0 0;
	font-family: var(--font-body);
	font-size: 13px;
	line-height: 20px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: var(--text-heading);
}
html body #hmns-login-box#hmns-login-box .label-flex span.required {
	font-family: var(--font-body);
	font-size: 13px;
	line-height: 20px;
	font-weight: var(--weight-light);
	color: var(--text-subhead);
}
html body #hmns-login-box#hmns-login-box :is(input[type="text"], input[type="password"], input[type="email"]) {
	display: block;
	width: 100%;
	height: var(--control-height);
	margin: 0 0 var(--space-5);
	padding: 0 14px;
	background: var(--hmns-white);
	border: 1px solid var(--border-input);
	border-radius: var(--radius-none);
	box-shadow: none;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 24px;
	font-weight: var(--weight-regular);
	color: var(--text-body);
	-webkit-appearance: none;
	appearance: none;
}
html body #hmns-login-box#hmns-login-box :is(input[type="text"], input[type="password"], input[type="email"])::placeholder {
	color: var(--text-muted);
	opacity: 1;
}
html body #hmns-login-box#hmns-login-box form#create-account-form .select-outer {
	width: 100%;
	margin: 0 0 var(--space-5);
	padding: 0;
	background: var(--hmns-white);
	border: 1px solid var(--border-input);
	border-radius: var(--radius-none);
}
html body #hmns-login-box#hmns-login-box form#create-account-form select {
	width: 100%;
	height: var(--control-height);
	padding: 0 40px 0 14px;
	border: 0;
	background-color: transparent;
	background-position: calc(100% - 14px) center;
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: var(--weight-regular);
	color: var(--text-body);
}
/* Full-width Monarch primary submit button (no cream box or 4px bottom stripe) */
html body #hmns-login-box#hmns-login-box :is(.login-submit, .create-account-submit, .password-reset-submit, .password-change-submit) {
	display: block;
	margin: var(--space-2) 0 0;
	padding: 0;
	background: transparent;
	border: 0;
}
html body #hmns-login-box#hmns-login-box :is(.login-submit, .create-account-submit, .password-reset-submit, .password-change-submit) input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 0;
	height: var(--control-height);
	max-height: none;
	margin: 0;
	padding: 0 var(--space-6);
	background: var(--action-primary);
	color: var(--action-on-primary);
	border: 0;
	border-radius: var(--radius-none);
	font-family: var(--font-body);
	font-size: var(--type-body);
	line-height: var(--leading-body);
	font-weight: var(--weight-regular);
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	transition: background-color var(--motion-base) var(--ease-standard);
}
html body #hmns-login-box#hmns-login-box :is(.login-submit, .create-account-submit, .password-reset-submit, .password-change-submit) input[type="submit"]:hover {
	background: var(--action-primary-hover);
}
html body #hmns-login-box#hmns-login-box .login-form .login-fields .login-links {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--space-2);
	margin: 0 0 var(--space-4);
}
html body #hmns-login-box#hmns-login-box .login-form .login-fields .login-links a {
	color: var(--text-body);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: var(--weight-regular);
	text-decoration: underline;
	text-decoration-color: var(--border-underline);
	text-underline-offset: 4px;
}
html body #hmns-login-box#hmns-login-box .login-form .login-fields .login-links a:hover { color: var(--text-link); }
html body #hmns-login-box#hmns-login-box :is(.loginReturn, .create-account-return, .password-reset-return, .password-change-return) {
	margin-top: var(--space-4);
	padding: var(--space-4);
	background: var(--surface-sunken);
	border-left: 3px solid var(--hmns-monarch-accessible);
	text-align: left;
}
html body #hmns-login-box#hmns-login-box :is(.loginReturn, .create-account-return, .password-reset-return, .password-change-return) h6 {
	margin: 0 0 var(--space-2);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 600;
	color: var(--text-heading);
}
html body #hmns-login-box#hmns-login-box .login-status-checking {
	padding: var(--space-7) 0 !important;
	color: var(--text-subhead);
	font-size: 16px;
}
@media screen and (max-width: 767px) {
	html:has(#hmns-login-box) .hmns-thumb { display: none; }
	html:has(#hmns-login-box) body { padding-bottom: var(--space-7); }
	html body #hmns-login-box#hmns-login-box {
		margin: var(--space-5) auto var(--space-7);
		padding: 0 var(--space-2);
	}
	html body #hmns-login-box#hmns-login-box .login-flex { gap: var(--space-4); }
	html body #hmns-login-box#hmns-login-box .login-top-bar { display: none; }
	html body #hmns-login-box#hmns-login-box .form-switcher {
		gap: var(--space-1) var(--space-4);
		overflow: visible;
	}
	html body #hmns-login-box#hmns-login-box .form-switcher-box button { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
	.hmns-scrim, .hmns-panel, .hmns-menu, .hmns-menu a, .hmns-btn,
	#simple-page-header .mobile-title-flex svg,
	#simple-accordion .accordion-chevron,
	#simple-accordion .accordion-content { transition: none; }
}
