:root {
	--nxs-mint: #9be3c5;
	--nxs-turquoise: #43c8ae;
	--nxs-green: #73b58a;
	--nxs-ink: #103f33;
	--nxs-glass: linear-gradient(145deg, rgb(245 255 251 / 0.96), rgb(185 229 212 / 0.91));
	--nxs-drawer-ink: #123d32;
	--nxs-drawer-surface: linear-gradient(165deg, #f2fff9 0%, #e0f7ee 52%, #b8ebd8 100%);
	--nxs-content-gap: clamp(0.65rem, 1vw, 0.9rem);
}

html:has(body.nxs-app-shell-theme),
body.nxs-app-shell-theme {
	height: 100%;
	margin: 0 !important;
	overflow: hidden !important;
	overscroll-behavior: none;
}

body.nxs-app-shell-theme .wp-site-blocks {
	height: 100%;
	min-height: 0;
	overflow: hidden;
}

body.nxs-app-shell-theme .wp-site-blocks > main {
	height: 100%;
	min-height: 0;
}

.nxs-shell {
	height: var(--nxs-shell-viewport-height, 100vh);
	height: var(--nxs-shell-viewport-height, 100dvh);
	isolation: isolate;
	overflow: hidden;
	position: relative;
	width: 100vw;
}

.nxs-shell__background,
.nxs-shell__background > .kse-hero,
.nxs-shell__fallback {
	height: 100%;
	inset: 0;
	margin: 0 !important;
	max-height: none !important;
	max-width: none !important;
	position: absolute !important;
	width: 100%;
}

.nxs-shell__background > .kse-hero { --kse-hero-height: var(--nxs-shell-viewport-height, 100dvh) !important; }

.nxs-shell__reader {
	bottom: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	height: auto;
	left: clamp(16rem, 20.5vw, 25rem);
	max-width: 58rem;
	overflow: hidden;
	min-height: 0;
	position: absolute;
	top: clamp(14.5rem, 30dvh, 18rem);
	width: min(62vw, 58rem);
	z-index: 10020;
}

.nxs-shell__reader[hidden] { display: none !important; }

.nxs-shell__content:not(.uses-nxs-content-cards),
.nxs-shell__surface,
.nxs-content-container--cards:not(.is-nxs-content-normalized) > :not([data-nxs-content-owned], .wp-block-group, .wp-block-columns, .wp-block-shortcode, .wp-block-spacer, .wp-block-separator, .mth-story-collection, .mth-scrollytelling, .mth-cinema, .mth-cinema-landing, script, style, link, meta, template, noscript),
.nxs-content-container--cards:not(.is-nxs-content-normalized) .wp-block-columns > .wp-block-column:not(.nxs-shell__surface, .nxs-shell__surface *),
.nxs-content-container--cards:not(.is-nxs-content-normalized) .wp-block-group__inner-container > :not([data-nxs-content-owned], .wp-block-columns, .wp-block-group, .wp-block-shortcode, .wp-block-spacer, .wp-block-separator, script, style, link, meta, template, noscript) {
	background: var(--nxs-glass), radial-gradient(circle at 92% 4%, rgb(65 205 169 / 0.17), transparent 42%);
	border: 1px solid rgb(72 196 160 / 0.68);
	border-radius: 0.95rem;
	box-shadow: 0 0.8rem 2.5rem rgb(2 38 29 / 0.24), inset 0 1px 0 rgb(255 255 255 / 0.86);
	-webkit-backdrop-filter: blur(14px) saturate(1.07);
	backdrop-filter: blur(14px) saturate(1.07);
}

.nxs-shell__reader-head {
	align-self: flex-start;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	break-inside: avoid;
	flex: 0 0 auto;
	inline-size: fit-content;
	max-inline-size: min(100%, 48rem);
	padding: 0.72rem 1rem;
	width: fit-content;
}

.nxs-shell__eyebrow {
	color: #17755f;
	font: 800 0.64rem/1.2 ui-sans-serif, system-ui, sans-serif;
	letter-spacing: 0.11em;
	margin: 0 0 0.2rem;
	text-transform: uppercase;
}

.nxs-shell__reader-head h1 {
	color: var(--nxs-ink);
	font: 600 clamp(1.35rem, 2vw, 1.9rem)/1.04 ui-serif, "Iowan Old Style", Georgia, serif;
	letter-spacing: -0.025em;
	margin: 0;
	overflow: hidden;
	overflow-wrap: anywhere;
	text-overflow: clip;
	white-space: normal;
}

.nxs-shell__page-body { display: contents; }

.nxs-shell__scroll {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 0.42rem;
	padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
	scroll-padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
	scroll-padding-top: 0.5rem;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	scrollbar-color: rgb(34 148 119 / 0.58) transparent;
	scrollbar-gutter: stable;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-y;
}

/* The application owns the vertical scroll container, so its editable block
 * footer must live inside that container instead of below the 100dvh shell. */
.nxs-shell__footer {
	box-sizing: border-box;
	flex: 0 0 auto;
	margin-top: 0.2rem;
	padding: 0.02rem;
	width: 100%;
}

.nxs-shell__footer .mth-site-footer {
	background: var(--mth-footer-surface);
	border: 1px solid rgb(72 196 160 / 0.68);
	border-radius: 0.95rem;
	box-shadow: 0 0.3rem 1rem rgb(2 38 29 / 0.12);
	box-sizing: border-box;
	color: var(--mth-footer-ink);
	margin: 0 !important;
	max-width: none !important;
	overflow: hidden;
	width: 100%;
}

.nxs-shell__footer .mth-footer-inner {
	box-sizing: border-box;
	margin-inline: auto;
	max-width: none;
	padding-inline: clamp(0.85rem, 1.8vw, 1.35rem);
}

.nxs-shell__footer :where(.mth-footer-title a, .mth-footer-nav a) {
	color: inherit;
}

.nxs-shell__content {
	color: rgb(16 61 50 / 0.92);
	display: grid;
	font: 400 clamp(0.96rem, 1.02vw, 1.05rem)/1.65 ui-sans-serif, system-ui, sans-serif;
	gap: var(--nxs-content-gap);
	margin: 0;
	max-width: none;
	min-width: 0;
	padding: 0.02rem 0.02rem 0.7rem;
	width: 100%;
	--wp--style--global--content-size: 100%;
	--wp--style--global--wide-size: 100%;
}

.nxs-shell__content:not(.uses-nxs-content-cards),
/* When separated content surfaces are enabled, only the surfaces may paint a
 * background. The reader, WordPress document and structural layout blocks
 * remain transparent so the fixed storytelling scene is visible in every gap. */
.nxs-shell__reader,
.nxs-shell__scroll,
.nxs-shell__content.uses-nxs-content-cards,
.nxs-shell__content.uses-nxs-content-cards > .nxs-content-container,
.nxs-content-container--cards .nxs-shell__layout,
.nxs-content-container--cards:not(.is-nxs-content-normalized) :where(.wp-block-group, .wp-block-group__inner-container, .wp-block-columns, .wp-block-shortcode):not(.nxs-shell__surface, .nxs-shell__surface *) {
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
}
.nxs-content-container--cards .nxs-shell__layout,
.nxs-content-container--cards:not(.is-nxs-content-normalized) :where(.wp-block-group, .wp-block-group__inner-container, .wp-block-columns, .wp-block-shortcode):not(.nxs-shell__surface, .nxs-shell__surface *) {
	padding: 0 !important;
}
.nxs-shell__content.uses-nxs-content-cards,
.nxs-shell__content.uses-nxs-content-cards > .nxs-content-container {
	border-radius: 0;
	padding-inline: 0;
}
.nxs-shell__surface,
.nxs-content-container--cards:not(.is-nxs-content-normalized) > :not([data-nxs-content-owned], .wp-block-group, .wp-block-columns, .wp-block-shortcode, .wp-block-spacer, .wp-block-separator, .mth-story-collection, .mth-scrollytelling, .mth-cinema, .mth-cinema-landing, script, style, link, meta, template, noscript),
.nxs-content-container--cards:not(.is-nxs-content-normalized) .wp-block-columns > .wp-block-column:not(.nxs-shell__surface, .nxs-shell__surface *),
.nxs-content-container--cards:not(.is-nxs-content-normalized) .wp-block-group__inner-container > :not([data-nxs-content-owned], .wp-block-columns, .wp-block-group, .wp-block-shortcode, .wp-block-spacer, .wp-block-separator, script, style, link, meta, template, noscript) { padding: clamp(0.9rem, 1.35vw, 1.25rem) clamp(0.9rem, 1.7vw, 1.4rem); }.nxs-shell__wp-container {
	box-sizing: border-box;
	margin-block: 0 !important;
	margin-inline: 0 !important;
	max-width: none;
	min-width: 0;
	width: 100%;
}
.nxs-shell__content.uses-nxs-content-cards > * { margin-block: 0 !important; }
.nxs-shell__content.has-nxs-cards .kse-story-guide-article {
	display: grid;
	gap: var(--nxs-content-gap);
}
.nxs-shell__card,
.nxs-shell__surface { margin-block: 0 !important; max-width: none !important; width: 100%; }.nxs-content-container--cards.is-nxs-content-normalized > :not([data-nxs-content-owned]),
.nxs-shell__layout {
	box-sizing: border-box;
	margin-block: 0 !important;
	max-width: none;
	min-width: 0;
	width: 100%;
}
.nxs-content-container--cards:not(.is-nxs-content-normalized) > :not([data-nxs-content-owned], script, style, link, meta, template, noscript),
.nxs-content-container--cards:not(.is-nxs-content-normalized) :where(.wp-block-group, .wp-block-group__inner-container, .wp-block-shortcode):not(.nxs-shell__surface, .nxs-shell__surface *) { box-sizing: border-box; margin-block: 0 !important; max-width: none; min-width: 0; width: 100%; }
.nxs-content-container--cards:not(.is-nxs-content-normalized) :where(.wp-block-group, .wp-block-group__inner-container, .wp-block-shortcode):not(.nxs-shell__surface, .nxs-shell__surface *) { display: grid; gap: var(--nxs-content-gap); }
.nxs-content-container--cards:not(.is-nxs-content-normalized) .wp-block-columns:not(.nxs-shell__surface, .nxs-shell__surface *) { display: flex; gap: var(--nxs-content-gap); margin-block: 0 !important; max-width: none !important; min-width: 0; width: 100% !important; }
.nxs-content-container--cards:not(.is-nxs-content-normalized) .nxs-shell__surface .nxs-shell__surface {
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin: 0 !important;
	padding: 0;
}
.nxs-shell__layout,
.nxs-shell__layout > .wp-block-group__inner-container { display: grid; gap: var(--nxs-content-gap); }
.nxs-shell__layout.wp-block-columns { display: flex; gap: var(--nxs-content-gap); }

.nxs-shell__layout.wp-block-columns > .wp-block-column { flex: 1 1 0; min-width: 0; }

/* Gutenberg column cards share one editorial rhythm. The runtime sets the
 * heading slot per visible row from the actual rendered headings, so images
 * and following content align even when a title wraps to additional lines. */
.nxs-shell__columns {
	align-items: stretch;
	gap: clamp(0.9rem, 1.25vw, 1.2rem) !important;
}
.nxs-shell__column-card {
	align-content: start;
	display: flex;
	flex-direction: column;
	gap: clamp(0.82rem, 1.05vw, 1.1rem);
}
.nxs-shell__column-card > * {
	margin-block: 0 !important;
}
@media (min-width: 783px) {
	.nxs-shell__column-card > :is(h1, h2, h3, h4, h5, h6):first-child {
		box-sizing: border-box;
		min-block-size: var(--nxs-column-heading-size, 2lh);
	}
}
@media (max-width: 782px) {
	.nxs-shell__surface .wp-block-columns:not(.is-not-stacked-on-mobile),
	.nxs-content-container--cards:not(.is-nxs-content-normalized) .wp-block-columns:not(.nxs-shell__surface, .nxs-shell__surface *):not(.is-not-stacked-on-mobile),
	.nxs-shell__layout.wp-block-columns:not(.is-not-stacked-on-mobile) {
		display: grid !important;
		grid-auto-rows: max-content;
		grid-template-columns: minmax(0, 1fr) !important;
	}
	.nxs-content-container--cards:not(.is-nxs-content-normalized) .wp-block-columns:not(.nxs-shell__surface, .nxs-shell__surface *):not(.is-not-stacked-on-mobile) > .wp-block-column,
	.nxs-shell__layout.wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column {
		align-self: start;
		flex: none;
		height: auto;
		min-height: 0;
		width: 100% !important;
	}
	.nxs-shell__columns { gap: 1rem !important; }
	.nxs-shell__column-card { gap: 0.85rem; }
	.nxs-shell__column-card > :is(h1, h2, h3, h4, h5, h6):first-child { min-block-size: 0; }
}
.nxs-shell__empty-block { display: none !important; }
.nxs-shell__generated-surface {
	min-width: 0;
	overflow-wrap: anywhere;
}
.nxs-shell__generated-surface > * { max-width: 100%; }
.nxs-shell__generated-surface :where(pre) { max-width: 100%; overflow-x: auto; }
.nxs-shell__generated-surface :where(input, select, textarea, button) { box-sizing: border-box; max-width: 100%; }
.nxs-shell__embedded-shortcode {
	box-sizing: border-box;
	left: auto !important;
	margin-inline: 0 !important;
	max-width: 100% !important;
	right: auto !important;
	width: 100% !important;
}
/* Editorial media contract. WordPress owns authored width, alignment and
 * focal position. The theme supplies only the selected crop ratio, responsive
 * containment and the default full-width behavior when no authored size exists.
 * Plugin internals, galleries, logos, backgrounds and immersive experiences
 * retain their component-owned geometry. */
.nxs-shell { --nxs-content-image-ratio: 4 / 3; }
.nxs-shell--images-ratio-16-9 { --nxs-content-image-ratio: 16 / 9; }
.nxs-shell--images-ratio-3-2 { --nxs-content-image-ratio: 3 / 2; }
.nxs-shell--images-ratio-1-1 { --nxs-content-image-ratio: 1 / 1; }

.nxs-shell:not(.nxs-shell--images-original) .nxs-shell__editorial-media-owner > figure.wp-block-image,
.nxs-shell:not(.nxs-shell--images-original) :is(.nxs-content-container--cards, .nxs-shell__layout) > figure.wp-block-image.nxs-shell__editorial-media-owner {
	box-sizing: border-box;
	display: block;
	margin-inline: 0;
	max-width: 100%;
	min-width: 0;
	width: 100%;
}

.nxs-shell:not(.nxs-shell--images-original) :is(
	.nxs-shell__editorial-media-owner > img,
	.nxs-shell__editorial-media-owner > figure.wp-block-image > img,
	.nxs-content-container--cards > img.nxs-shell__editorial-media-owner,
	.nxs-shell__layout > img.nxs-shell__editorial-media-owner
) {
	aspect-ratio: var(--nxs-content-image-ratio);
	box-sizing: border-box;
	display: block;
	height: auto;
	max-height: none;
	max-width: 100%;
	min-width: 0;
	object-fit: cover;
	object-position: 50% 50%;
	overflow: hidden;
	width: 100%;
}

.nxs-shell:not(.nxs-shell--images-original) :is(
	.nxs-shell__editorial-media-owner > picture,
	.nxs-content-container--cards > picture.nxs-shell__editorial-media-owner,
	.nxs-shell__layout > picture.nxs-shell__editorial-media-owner,
	.nxs-shell__editorial-media-owner > figure.wp-block-image > a
) {
	aspect-ratio: var(--nxs-content-image-ratio);
	box-sizing: border-box;
	display: block;
	max-width: 100%;
	overflow: hidden;
	width: 100%;
}

.nxs-shell:not(.nxs-shell--images-original) :is(
	.nxs-shell__editorial-media-owner > picture > img,
	.nxs-content-container--cards > picture.nxs-shell__editorial-media-owner > img,
	.nxs-shell__layout > picture.nxs-shell__editorial-media-owner > img,
	.nxs-shell__editorial-media-owner > figure.wp-block-image > a > img
) {
	display: block;
	height: 100%;
	max-height: none;
	max-width: 100%;
	object-fit: cover;
	object-position: 50% 50%;
	width: 100%;
}

/* Older Gutenberg versions mark resized blocks without an inline CSS width.
 * In that case the image's width attribute/intrinsic width remains authoritative. */
.nxs-shell:not(.nxs-shell--images-original) .nxs-shell__editorial-media-owner > figure.wp-block-image.is-resized > img:not([style*="width"]) {
	width: auto;
}
.nxs-shell:not(.nxs-shell--images-original) .nxs-shell__editorial-media-owner > figure.wp-block-image.is-resized > a {
	width: fit-content;
}
.nxs-shell:not(.nxs-shell--images-original) .nxs-shell__editorial-media-owner > figure.wp-block-image.is-resized > a > img {
	height: auto;
	width: auto;
}

/* Match Gutenberg's visible alignment contract even when the image block is
 * also a theme surface. The important margin only defeats the surface reset. */
.nxs-shell__content figure.wp-block-image.aligncenter { margin-inline: auto !important; }
.nxs-shell__content figure.wp-block-image.aligncenter > :is(img, a),
.nxs-shell__content :is(img, picture).aligncenter { margin-inline: auto; }
.nxs-shell__content figure.wp-block-image.alignleft > :is(img, a),
.nxs-shell__content :is(img, picture).alignleft { margin-left: 0; margin-right: auto; }
.nxs-shell__content figure.wp-block-image.alignright > :is(img, a),
.nxs-shell__content :is(img, picture).alignright { margin-left: auto; margin-right: 0; }

.nxs-shell:not(.nxs-shell--images-original) :is(.nxs-content-container--cards, .nxs-shell__layout) > figure.wp-block-image.nxs-shell__editorial-media-owner figcaption,
.nxs-shell:not(.nxs-shell--images-original) .nxs-shell__editorial-media-owner > figure.wp-block-image figcaption {
	box-sizing: border-box;
	margin: 0;
	max-width: 100%;
	overflow-wrap: anywhere;
	padding-top: 0.65rem;
}
.nxs-shell__embedded-shortcode.mth-scrollytelling { --mth-content-width: 100%; }
.nxs-shell__embedded-shortcode :where([data-mth-view-mode="film"], [data-mth-autoplay]) { display: none !important; }
.nxs-shell__embedded-shortcode.mth-cinema-landing .mth-cinema-landing__float { max-width: calc(100% - 2rem); }

body.nxs-app-shell-theme .nxs-shell__content > :where(.alignwide, .alignfull, .wp-block-group, .wp-block-cover, .wp-block-columns) {
	margin-inline: 0 !important;
	max-width: none !important;
	width: 100% !important;
}
body.nxs-app-shell-theme .nxs-shell__content > .kse-story-guide {
	font-size: inherit;
	margin: 0 !important;
	max-width: none !important;
	width: 100% !important;
}
body.nxs-app-shell-theme .nxs-shell__content .kse-story-guide-article {
	margin: 0 !important;
	max-width: none !important;
	padding: 0 !important;
	width: 100% !important;
}
body.nxs-app-shell-theme .nxs-shell__content .kse-story-guide-article > :where(header, aside, nav, section, details, footer),
body.nxs-app-shell-theme .nxs-shell__content :where(.kse-guide-toc, .kse-guide-callout, .kse-guide-project-brief, .kse-guide-workbench-map, details.kse-guide-phase-accordion) {
	margin-block: 0 !important;
	max-width: none !important;
	width: 100%;
}
.nxs-shell__content [id] { scroll-margin-top: 0.6rem; }
.nxs-shell__content > :first-child,
.nxs-shell__card > :first-child { margin-top: 0; }
.nxs-shell__content > :last-child,
.nxs-shell__card > :last-child { margin-bottom: 0; }
.nxs-shell__content :where(h1, h2, h3, h4) { color: var(--nxs-ink); font-family: ui-serif, "Iowan Old Style", Georgia, serif; line-height: 1.12; text-wrap: balance; }
.nxs-shell__content :where(h2) { font-size: clamp(1.4rem, 2vw, 1.85rem); }
.nxs-shell__content :where(h3) { font-size: clamp(1.12rem, 1.5vw, 1.35rem); }
.nxs-shell__content :where(img, video, iframe) { border-radius: 0.72rem; height: auto; max-width: 100%; }
.nxs-shell__content :where(table) { border-collapse: collapse; display: block; max-width: 100%; overflow-x: auto; width: 100%; }
.nxs-shell__content :where(th, td) { border-bottom: 1px solid rgb(18 104 82 / 0.18); padding: 0.65rem; text-align: left; }
.nxs-shell__content :where(.wp-block-button__link, a.kse-hero__content-link) { background: linear-gradient(135deg, #eafff6, #9ce3c8); border: 1px solid rgb(32 153 122 / 0.52); border-radius: 999px; color: #104d3e; display: inline-flex; font-weight: 750; min-height: 2.75rem; padding: 0.65rem 1rem; text-decoration: none; }
.nxs-shell__content :where(.kse-story-root, .kse-story-workbench, .kse-story-guide) { max-width: 100%; min-width: 0; width: 100%; }

.nxs-shell__loading {
	align-items: center;
	background: rgb(235 255 247 / 0.78);
	border-radius: 0.95rem;
	display: flex;
	inset: 0;
	justify-content: center;
	position: absolute;
	z-index: 3;
}
.nxs-shell__loading[hidden] { display: none; }
.nxs-shell__loading i { animation: nxs-pulse 1.2s ease-in-out infinite; background: #28b28f; border-radius: 50%; height: 0.55rem; margin: 0 0.2rem; width: 0.55rem; }
.nxs-shell__loading i:nth-child(2) { animation-delay: 120ms; }
.nxs-shell__loading i:nth-child(3) { animation-delay: 240ms; }
@keyframes nxs-pulse { 0%, 100% { opacity: 0.3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-0.3rem); } }

.nxs-shell__picture,
.nxs-shell__picture img { height: 100%; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.nxs-shell__fallback-interface { left: clamp(1rem, 5vw, 5rem); position: absolute; top: clamp(1rem, 5vh, 3rem); width: min(55rem, 60vw); z-index: 2; }
.nxs-shell__fallback-brand { align-items: center; color: var(--nxs-ink); display: flex; gap: 0.8rem; }
.nxs-shell__fallback-brand img { height: 3.4rem; object-fit: contain; width: 3.4rem; }
.nxs-shell__fallback-brand strong { display: block; font: 600 clamp(1.45rem, 2.6vw, 2.8rem)/1 ui-serif, Georgia, serif; }
.nxs-shell__fallback-brand span { display: block; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.12em; margin-top: 0.35rem; text-transform: uppercase; }
.nxs-shell__fallback-menu { display: grid; gap: 0.55rem; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 1.2rem 0 0; padding: 0; }
.nxs-shell__fallback-menu a { background: var(--nxs-glass); border: 1px solid rgb(72 196 160 / 0.68); border-radius: 0.85rem; color: var(--nxs-ink); display: flex; font-weight: 750; min-height: 4rem; padding: 0.8rem; text-decoration: none; align-items: center; }

@media (max-width: 782px), (max-height: 500px) and (max-width: 932px) {
	.nxs-shell__reader-head { padding: 0.58rem 0.78rem; }
	.nxs-shell__reader-head h1 { font-size: clamp(1.15rem, 4vw, 1.4rem); }
	.nxs-shell__content { font-size: clamp(0.9rem, 2.7vw, 1rem); line-height: 1.55; padding-bottom: max(1.25rem, calc(env(safe-area-inset-bottom) + 0.75rem)); }
	.nxs-shell__content:not(.uses-nxs-content-cards),
	.nxs-shell__surface { border-radius: 0.82rem; padding: 0.9rem; }
	.nxs-shell__fallback-interface { left: max(0.6rem, env(safe-area-inset-left)); right: max(0.6rem, env(safe-area-inset-right)); top: max(0.65rem, env(safe-area-inset-top)); width: auto; }
	.nxs-shell__fallback-brand img { height: 2.8rem; width: 2.8rem; }
	.nxs-shell__fallback-brand strong { font-size: clamp(1.15rem, 4.5vw, 1.7rem); }
	.nxs-shell__fallback-menu { gap: 0.34rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0.75rem; }
	.nxs-shell__fallback-menu a { font-size: clamp(0.75rem, 2.7vw, 0.95rem); min-height: 4rem; overflow-wrap: anywhere; padding: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
	.nxs-shell__loading i { animation: none; opacity: 0.72; }
}

@media (forced-colors: active) {
	.nxs-shell__content:not(.uses-nxs-content-cards), .nxs-shell__surface, .nxs-shell__fallback-menu a { background: Canvas; border: 1px solid CanvasText; box-shadow: none; color: CanvasText; }
}


/* Native WordPress navigation chrome. The theme owns this interface; the
 * Cinema plugin remains responsible only for the static scene and dataflow. */
.nxs-shell {
	--nxs-nav-root-surface: linear-gradient(145deg, #153a2d, #071d16);
	--nxs-nav-control-surface: #0a241b;
	--nxs-nav-current-surface: linear-gradient(145deg, #1c4a39, #0b2e23);
	--nxs-nav-dropdown-surface: linear-gradient(145deg, #0d3025, #051912);
	--nxs-nav-row-surface: linear-gradient(145deg, #164033, #09251c);
	--nxs-nav-text: #fff;
	--nxs-workspace-left: max(clamp(2rem, 4vw, 5rem), calc((100vw - 86rem) / 2));
	--nxs-workspace-width: min(86rem, calc(100vw - var(--nxs-workspace-left) - var(--nxs-workspace-left)));
}

.nxs-shell__background .kse-hero__experience,
.nxs-shell__fallback-interface {
	display: none !important;
}

.nxs-shell__chrome {
	left: var(--nxs-workspace-left);
	position: absolute;
	top: max(0.7rem, env(safe-area-inset-top));
	width: var(--nxs-workspace-width);
	z-index: 10030;
}

.nxs-shell__brand {
	align-items: center;
	color: var(--nxs-ink);
	display: inline-flex;
	gap: clamp(0.55rem, 0.8vw, 0.78rem);
	max-width: 100%;
	text-decoration: none;
}

.nxs-shell__brand-logo {
	display: block;
	flex: 0 0 auto;
	height: clamp(3rem, 4.2vw, 3.8rem);
	object-fit: contain;
	width: clamp(3rem, 4.2vw, 3.8rem);
}

.nxs-shell__brand-copy { display: flex; flex-direction: column; min-width: 0; }
.nxs-shell__brand-copy strong {
	font: 500 clamp(1.5rem, 2.35vw, 2.35rem)/0.96 ui-serif, "Iowan Old Style", Georgia, serif;
	letter-spacing: -0.04em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nxs-shell__brand-copy small {
	color: rgb(16 74 60 / 0.82);
	font: 800 0.62rem/1.15 ui-sans-serif, system-ui, sans-serif;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.nxs-shell__brand-copy small { margin-top: 0.28rem; }
.nxs-shell__menu-region { display: flex; align-items: center; gap: 0.65rem; margin-top: clamp(0.55rem, 1vh, 0.75rem); }
.nxs-shell__menu-region > .nxs-shell__navigation { flex: 1; }
.nxs-shell__model-toggle {
	align-items: center;
	appearance: none;
	background: var(--nxs-nav-control-surface);
	border: 1px solid #52c99f;
	border-radius: 0.65rem;
	box-shadow: none;
	color: var(--nxs-nav-text);
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	gap: 0.6rem;
	justify-content: space-between;
	min-height: 44px;
	padding: 0.55rem 0.75rem;
	font: 600 0.85rem/1.4 ui-sans-serif, system-ui, sans-serif;
	text-shadow: none;
}
.nxs-shell__model-toggle [data-nxs-model-toggle-state] { background: #a6e9ce; border-radius: 1rem; color: #103e30; min-width: 2.6em; padding: 0.15em 0.4em; text-align: center; }
.nxs-shell__model-toggle[aria-pressed="false"] [data-nxs-model-toggle-state] { background: #e0e8e4; color: #273c33; }
.nxs-shell__model-toggle:hover { border-color: #a6e9ce; }
.nxs-shell__model-toggle:focus-visible { outline: 3px solid #52c99f; outline-offset: 3px; }
.nxs-shell__model-toggle[hidden] { display: none !important; }
/* Reserve the same geometry until the deferred controller is ready. No-JS
 * navigation has no dead setting; this button never replaces a WP menu item. */
html.nxs-js .nxs-shell__model-toggle[hidden] { display: inline-flex !important; visibility: hidden; }
.nxs-shell__mobile-menu-toggle,
.nxs-shell__drawer-close,
.nxs-shell__menu-scrim { display: none; }
.nxs-shell__mobile-menu-icon i { display: block; }
.nxs-shell__navigation { min-width: 0; position: relative; width: 100%; }
.nxs-shell__navigation :where(.wp-block-navigation, .nxs-shell__classic-navigation) {
	box-sizing: border-box;
	max-width: none !important;
	min-width: 0;
	width: 100% !important;
}
.nxs-shell__navigation .wp-block-navigation__responsive-container-open,
.nxs-shell__navigation .wp-block-navigation__responsive-container-close { display: none !important; }
.nxs-shell__navigation .wp-block-navigation__responsive-container,
.nxs-shell__navigation .wp-block-navigation__responsive-container-content {
	box-sizing: border-box;
	display: block !important;
	max-width: none !important;
	min-width: 0;
	position: static !important;
	width: 100% !important;
}

/* Progressive no-JS state: native WordPress links remain a scrollable document
 * navigation with full-size controls until the router decorates the root. */
html:not(.nxs-js) body.nxs-app-shell-theme:has([data-nxs-navigation] :is(.wp-block-navigation__container, .nxs-shell__fallback-menu):not([data-nxs-nav-root])) .nxs-shell:not(.is-landing):not(.has-studio-workspace) {
	overflow-x: hidden;
	overflow-y: auto;
}
html:not(.nxs-js) body.nxs-app-shell-theme:has([data-nxs-navigation] :is(.wp-block-navigation__container, .nxs-shell__fallback-menu):not([data-nxs-nav-root])) .nxs-shell:not(.is-landing):not(.has-studio-workspace) .nxs-shell__background {
	position: fixed !important;
}
html:not(.nxs-js) body.nxs-app-shell-theme:has([data-nxs-navigation] :is(.wp-block-navigation__container, .nxs-shell__fallback-menu):not([data-nxs-nav-root])) .nxs-shell:not(.is-landing):not(.has-studio-workspace) .nxs-shell__chrome {
	left: auto;
	margin-inline: auto;
	padding-top: max(0.7rem, env(safe-area-inset-top));
	position: relative;
	top: auto;
}
html:not(.nxs-js) body.nxs-app-shell-theme:has([data-nxs-navigation] :is(.wp-block-navigation__container, .nxs-shell__fallback-menu):not([data-nxs-nav-root])) .nxs-shell:not(.is-landing):not(.has-studio-workspace) .nxs-shell__reader {
	bottom: auto;
	height: auto;
	left: auto;
	margin: 0.75rem auto max(1rem, env(safe-area-inset-bottom));
	max-width: var(--nxs-workspace-width);
	position: relative;
	top: auto;
	width: var(--nxs-workspace-width);
}
html:not(.nxs-js) body.nxs-app-shell-theme:has([data-nxs-navigation] :is(.wp-block-navigation__container, .nxs-shell__fallback-menu):not([data-nxs-nav-root])) .nxs-shell:not(.is-landing):not(.has-studio-workspace) .nxs-shell__scroll {
	overflow: visible;
}

html:not(.nxs-js) .nxs-shell__navigation :is(.wp-block-navigation__submenu-container, .sub-menu):not(.nxs-shell__submenu) {
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	background: var(--nxs-nav-dropdown-surface);
	border: 1px solid rgb(87 205 155 / 0.58);
	color: var(--nxs-nav-text);
	display: grid !important;
	gap: 0.28rem;
	grid-column: 1 / -1;
	list-style: none;
	margin: 0 !important;
	padding: 0.34rem !important;
	position: static !important;
	width: 100% !important;
}
html:not(.nxs-js) .nxs-shell__navigation li:has(> :is(.wp-block-navigation__submenu-container, .sub-menu):not(.nxs-shell__submenu)) > button:not(.nxs-shell__submenu-toggle) { display: none !important; }
html:not(.nxs-js) .nxs-shell__navigation :is(.wp-block-navigation__submenu-container, .sub-menu):not(.nxs-shell__submenu) > li > a {
	align-items: center;
	background: var(--nxs-nav-row-surface);
	border: 1px solid rgb(87 205 155 / 0.42);
	border-radius: 0.5rem;
	color: var(--nxs-nav-text);
	display: flex;
	font: 720 0.82rem/1.2 ui-sans-serif, system-ui, sans-serif;
	min-height: 2.75rem;
	padding: 0.52rem 0.62rem;
	text-decoration: none;
	width: 100%;
}
html.nxs-js .nxs-shell__navigation :is(.wp-block-navigation__submenu-container, .sub-menu):not(.nxs-shell__submenu) { display: none !important; }

.nxs-shell__navigation :where(.wp-block-navigation__container, .nxs-shell__fallback-menu) {
	align-items: stretch;
	display: grid !important;
	gap: clamp(0.32rem, 0.6vw, 0.52rem);
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
	list-style: none;
	margin: 0;
	max-width: none;
	padding: 0;
	position: relative;
	width: 100%;
}

body.nxs-app-shell-theme .nxs-shell .nxs-shell__navigation [data-nxs-nav-root] { overflow: visible !important; }

.nxs-shell__navigation [data-item-count="1"] { grid-template-columns: minmax(0, 1fr); }
.nxs-shell__navigation [data-item-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nxs-shell__navigation [data-item-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nxs-shell__navigation [data-item-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.nxs-shell__navigation :where(.wp-block-navigation__container, .nxs-shell__fallback-menu) > li {
	align-items: stretch;
	background: var(--nxs-nav-root-surface);
	border: 1px solid rgb(87 205 155 / 0.62);
	border-radius: 0.72rem;
	box-shadow: 0 0.55rem 1.65rem rgb(0 0 0 / 0.42), inset 0 1px rgb(87 205 155 / 0.14);
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	min-height: 3.2rem;
	min-width: 0;
	overflow: visible;
	position: static;
}

.nxs-shell__navigation :where(.wp-block-navigation__container, .nxs-shell__fallback-menu) > li::before {
	display: none;
	border-radius: 0.72rem 0.72rem 0 0;
	content: "";
	grid-column: 1 / -1;
	height: 2px;
	margin-bottom: -2px;
	pointer-events: none;
}

.nxs-shell__navigation .nxs-shell__nav-link,
.nxs-shell__navigation .wp-block-navigation__container > li > .wp-block-navigation-item__content,
.nxs-shell__navigation :where(.wp-block-navigation__container, .nxs-shell__fallback-menu):not([data-nxs-nav-root]) > li > a {
	align-items: center;
	color: var(--nxs-nav-text);
	display: flex;
	font: 650 clamp(0.83rem, 0.96vw, 1rem)/1.25 ui-sans-serif, system-ui, sans-serif;
	grid-column: 1;
	grid-row: 1;
	min-height: 3.1rem;
	min-width: 0;
	overflow-wrap: anywhere;
	padding: 0.5rem 0.68rem;
	text-decoration: none;
}
.nxs-shell__navigation [data-nxs-nav-root] > li:not(.has-child) > .nxs-shell__nav-link,
.nxs-shell__navigation .wp-block-navigation__container > li:not(.has-child) > .wp-block-navigation-item__content { grid-column: 1 / -1; }

.nxs-shell__navigation .nxs-shell__submenu-toggle:not(.nxs-shell__label-toggle),
html.nxs-js .nxs-shell__navigation .wp-block-navigation-submenu__toggle {
	align-self: center;
	background: var(--nxs-nav-control-surface);
	border: 1px solid rgb(87 205 155 / 0.52);
	border-radius: 999px;
	color: #57cd9b;
	cursor: pointer;
	display: inline-flex;
	grid-column: 2;
	grid-row: 1;
	height: 2.15rem;
	justify-content: center;
	margin-right: 0.42rem;
	padding: 0;
	place-items: center;
	transition: background-color 160ms ease, transform 160ms ease;
	width: 2.15rem;
}
html.nxs-js .nxs-shell__navigation .wp-block-navigation-submenu__toggle svg { height: 0.5rem; width: 0.5rem; }

.nxs-shell__navigation .nxs-shell__submenu-toggle:not(.nxs-shell__label-toggle)[aria-expanded="true"] {
	background: var(--nxs-nav-control-surface);
	transform: none;
}
.nxs-shell__submenu-chevron {
	border: solid currentColor;
	border-width: 0 2px 2px 0;
	display: block;
	height: 0.42rem;
	pointer-events: none;
	transform: translateY(-0.1rem) rotate(45deg);
	transition: transform 160ms ease;
	width: 0.42rem;
}
.nxs-shell__submenu-toggle[aria-expanded="true"] .nxs-shell__submenu-chevron {
	transform: translateY(0.1rem) rotate(225deg);
}
.nxs-shell__navigation .nxs-shell__submenu-toggle > :not(.nxs-shell__submenu-chevron) {
	display: none !important;
}
.nxs-shell__navigation .nxs-shell__label-toggle {
	appearance: none;
	background: transparent;
	border: 0;
	cursor: pointer;
	grid-column: 1 / -1;
	text-align: left;
	width: 100%;
}
.nxs-shell__navigation :where(a, button):focus-visible { outline: 3px solid var(--nxs-turquoise); outline-offset: 2px; }

.nxs-shell__navigation .nxs-shell__submenu {
	background: var(--nxs-nav-dropdown-surface);
	border: 1px solid rgb(87 205 155 / 0.62);
	border-radius: 0.8rem;
	box-shadow: 0 0.8rem 2.4rem rgb(0 0 0 / 0.58), inset 0 1px rgb(87 205 155 / 0.14);
	display: grid !important;
	gap: 0.35rem;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr));
	inset: calc(100% + 0.42rem) 0 auto !important;
	list-style: none;
	margin: 0 !important;
	max-height: min(42dvh, 22rem);
	overflow: auto;
	padding: 0.48rem !important;
	position: absolute !important;
	width: 100% !important;
	z-index: 20;
}

.nxs-shell__navigation .nxs-shell__submenu[data-item-count="1"] { grid-template-columns: minmax(0, 1fr); }
.nxs-shell__navigation .nxs-shell__submenu[data-item-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nxs-shell__navigation .nxs-shell__submenu[data-item-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nxs-shell__navigation .nxs-shell__submenu[data-item-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nxs-shell__navigation .nxs-shell__submenu:not([hidden]) { opacity: 1 !important; pointer-events: auto !important; visibility: visible !important; }
.nxs-shell__navigation .nxs-shell__submenu[hidden] { display: none !important; }
.nxs-shell__navigation .nxs-shell__submenu > li { background: transparent; border: 0; display: grid; min-width: 0; position: relative; }
.nxs-shell__navigation .nxs-shell__submenu > li > .nxs-shell__nav-link {
	background: var(--nxs-nav-row-surface);
	border: 1px solid rgb(87 205 155 / 0.46);
	color: var(--nxs-nav-text);
	border-radius: 0.62rem;
	font-family: ui-sans-serif, system-ui, sans-serif;
	font-size: clamp(0.78rem, 0.86vw, 0.92rem);
	font-weight: 750;
	min-height: 2.85rem;
	padding: 0.44rem 0.55rem;
}

/* Desktop and tablet use a conventional click-owned dropdown. WordPress Core
 * otherwise keeps its hover flyout at zero height until the pointer enters it. */
@media (min-width: 783px) {
	body.nxs-app-shell-theme .nxs-shell .nxs-shell__navigation [data-nxs-nav-root] > li.has-child {
		overflow: visible !important;
		position: relative !important;
	}
	body.nxs-app-shell-theme .nxs-shell .nxs-shell__navigation [data-nxs-nav-root] > li.has-child > .nxs-shell__submenu {
		align-content: start;
		box-sizing: border-box;
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		height: auto !important;
		inset: calc(100% + 0.42rem) auto auto 50% !important;
		max-height: min(60dvh, 28rem) !important;
		max-width: calc(100vw - 2rem) !important;
		min-height: 0 !important;
		min-width: min(18rem, calc(100vw - 2rem)) !important;
		overflow-x: hidden !important;
		overflow-y: auto !important;
		transform: translateX(calc(-50% + var(--nxs-submenu-shift, 0px))) !important;
		width: min(20rem, calc(100vw - 2rem)) !important;
	}
	body.nxs-app-shell-theme .nxs-shell .nxs-shell__navigation [data-nxs-nav-root] > li.has-child > .nxs-shell__submenu[hidden] {
		display: none !important;
		height: 0 !important;
		opacity: 0 !important;
		pointer-events: none !important;
		visibility: hidden !important;
	}
	body.nxs-app-shell-theme .nxs-shell .nxs-shell__navigation [data-nxs-nav-root] > li.has-child > .nxs-shell__submenu:not([hidden]) {
		display: grid !important;
		height: auto !important;
		opacity: 1 !important;
		pointer-events: auto !important;
		visibility: visible !important;
	}
	body.nxs-app-shell-theme .nxs-shell .nxs-shell__navigation [data-nxs-nav-root] > li.has-child > .nxs-shell__submenu > li {
		display: block !important;
		width: 100% !important;
	}
	body.nxs-app-shell-theme .nxs-shell .nxs-shell__navigation [data-nxs-nav-root] > li.has-child > .nxs-shell__submenu > li > .nxs-shell__nav-link {
		white-space: normal;
		width: 100% !important;
	}
}

.nxs-shell__reader {
	bottom: max(0.55rem, env(safe-area-inset-bottom));
	left: var(--nxs-workspace-left) !important;
	max-width: none;
	right: auto !important;
	top: var(--nxs-reader-top, 10.75rem) !important;
	transform: none !important;
	width: var(--nxs-workspace-width) !important;
}

@media (min-width: 1181px) {
	.nxs-shell { --nxs-reader-top: 4.7rem; }
	.nxs-shell__chrome {
		align-items: center;
		column-gap: clamp(0.8rem, 1.4vw, 1.35rem);
		display: grid;
		grid-template-columns: minmax(19rem, 23rem) minmax(0, 1fr);
	}
	.nxs-shell__brand { align-self: center; gap: 0.58rem; min-width: 0; padding-bottom: 0; }
	.nxs-shell__brand-logo { height: clamp(2.55rem, 3vw, 3rem); width: clamp(2.55rem, 3vw, 3rem); }
	.nxs-shell__brand-copy strong { font-size: clamp(1.28rem, 1.45vw, 1.66rem); overflow: visible; text-overflow: clip; }
	.nxs-shell__brand-copy small { font-size: 0.55rem; margin-top: 0.2rem; }
	.nxs-shell__menu-region { align-self: center; margin-top: 0; min-width: 0; width: 100%; }
	html.nxs-js body.nxs-app-shell-theme .nxs-shell .nxs-shell__navigation :is(.wp-block-navigation__container, .nxs-shell__fallback-menu):not([data-nxs-nav-root]),
	body.nxs-app-shell-theme .nxs-shell .nxs-shell__navigation [data-nxs-nav-root] {
		align-items: stretch;
		display: flex !important;
		flex-wrap: nowrap !important;
		gap: clamp(0.22rem, 0.4vw, 0.38rem);
		justify-content: flex-end !important;
		max-width: none !important;
		min-width: 0;
		width: 100% !important;
	}
	html.nxs-js body.nxs-app-shell-theme .nxs-shell .nxs-shell__navigation :is(.wp-block-navigation__container, .nxs-shell__fallback-menu):not([data-nxs-nav-root]) > li,
	body.nxs-app-shell-theme .nxs-shell .nxs-shell__navigation [data-nxs-nav-root] > li {
		border-radius: 0.58rem;
		flex: 0 1 auto !important;
		inline-size: auto !important;
		min-inline-size: min-content;
		min-height: 2.75rem;
		min-width: 4.5rem;
		width: auto !important;
	}
	.nxs-shell__navigation :where(.wp-block-navigation__container, .nxs-shell__fallback-menu) > li::before { border-radius: 0.58rem 0.58rem 0 0; }
	.nxs-shell__navigation .nxs-shell__nav-link,
	html.nxs-js .nxs-shell__navigation .wp-block-navigation__container > li > .wp-block-navigation-item__content {
		font-size: clamp(0.8rem, 0.8vw, 0.9rem);
		line-height: 1.25;
		min-height: 2.75rem;
		min-inline-size: min-content;
		overflow-wrap: normal !important;
		padding: 0.3rem 0.46rem;
		word-break: keep-all !important;
		hyphens: none;
	}
	html.nxs-js .nxs-shell__navigation .wp-block-navigation-submenu__toggle,
	.nxs-shell__navigation .nxs-shell__submenu-toggle:not(.nxs-shell__label-toggle) {
		height: 1.65rem;
		margin-right: 0.26rem;
		width: 1.65rem;
	}
	.nxs-shell__reader-head { padding: 0.56rem 0.88rem; }
	.nxs-shell__reader-head h1 { font-size: clamp(1.2rem, 1.35vw, 1.55rem); }
	.nxs-shell__eyebrow { font-size: 0.58rem; margin-bottom: 0.14rem; }
}

@media (max-width: 1180px) {
	.nxs-shell {
		--nxs-workspace-left: clamp(0.75rem, 2.4vw, 1.5rem);
		--nxs-workspace-width: min(72rem, calc(100vw - clamp(1.5rem, 4.8vw, 3rem)));
	}
	.nxs-shell__chrome { top: max(0.55rem, env(safe-area-inset-top)); }
	.nxs-shell__brand-logo { height: clamp(2.7rem, 6vw, 3.35rem); width: clamp(2.7rem, 6vw, 3.35rem); }
	.nxs-shell__brand-copy strong { font-size: clamp(1.3rem, 3.2vw, 1.85rem); }
}

@media (max-width: 782px) {
	.nxs-shell {
		--nxs-reader-top: 4.2rem;
		--nxs-workspace-left: max(0.55rem, env(safe-area-inset-left));
		--nxs-workspace-width: calc(100vw - max(1.1rem, env(safe-area-inset-left)) - max(0rem, env(safe-area-inset-right)));
	}
	.nxs-shell__chrome { top: max(0.45rem, env(safe-area-inset-top)); }
	.nxs-shell__brand-logo { height: clamp(2.35rem, 10vw, 2.75rem); width: clamp(2.35rem, 10vw, 2.75rem); }
	.nxs-shell__brand-copy strong { font-size: clamp(1.05rem, 5vw, 1.42rem); }
	.nxs-shell__brand-copy small { font-size: 0.52rem; margin-top: 0.18rem; }
	.nxs-shell__menu-region { margin-top: 0.42rem; }
	.nxs-shell__navigation :where(.wp-block-navigation__container, .nxs-shell__fallback-menu) { gap: 0.3rem; }
	.nxs-shell .nxs-shell__navigation [data-nxs-nav-root][data-item-count="3"] { grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr) minmax(0, 0.82fr); }
	.nxs-shell__navigation [data-item-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nxs-shell__navigation :where(.wp-block-navigation__container, .nxs-shell__fallback-menu) > li { border-radius: 0.62rem; min-height: 3.05rem; }
	.nxs-shell__navigation .nxs-shell__nav-link { font-size: clamp(0.7rem, 3.2vw, 0.88rem); min-height: 3rem; padding: 0.32rem 0.45rem; }
	.nxs-shell__navigation .nxs-shell__submenu-toggle:not(.nxs-shell__label-toggle) { height: 1.85rem; margin-right: 0.28rem; width: 1.85rem; }
	.nxs-shell__navigation .nxs-shell__submenu { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: min(50dvh, 23rem); }
	.nxs-shell__navigation .nxs-shell__submenu[data-item-count="1"] { grid-template-columns: minmax(0, 1fr); }
	.nxs-shell__navigation .nxs-shell__submenu[data-item-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nxs-shell__navigation .nxs-shell__submenu[data-item-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nxs-shell__navigation .nxs-shell__submenu[data-item-count="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nxs-shell__navigation .nxs-shell__submenu > li > .nxs-shell__nav-link { font-size: 0.78rem; min-height: 2.75rem; }
	.nxs-shell__reader { max-width: none; width: var(--nxs-workspace-width) !important; }
}

/* Release 1.2 application contract. These component-scoped rules normalize
 * WordPress content, active navigation and accessibility without leaking into
 * opt-out templates or standalone plugin views. */
.nxs-shell__skip-link {
	background: #fff;
	border: 2px solid var(--nxs-turquoise);
	border-radius: 0.6rem;
	color: var(--nxs-ink);
	font: 750 0.9rem/1 ui-sans-serif, system-ui, sans-serif;
	left: var(--nxs-workspace-left);
	opacity: 0;
	padding: 0.7rem 0.9rem;
	pointer-events: none;
	position: absolute;
	top: max(0.5rem, env(safe-area-inset-top));
	transform: translateY(-140%);
	transition: opacity 140ms ease, transform 140ms ease;
	z-index: 10060;
}
.nxs-shell:not(.is-reading) .nxs-shell__skip-link { display: none; }
.nxs-shell.is-reading .nxs-shell__skip-link:focus { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nxs-shell.without-navigation .nxs-shell__chrome { display: block; }
.nxs-shell.without-navigation .nxs-shell__brand { max-width: min(100%, 38rem); }
.nxs-shell__content { display: block; }
.nxs-content-container {
	box-sizing: border-box;
	display: grid;
	gap: var(--nxs-content-gap);
	margin: 0 !important;
	max-width: none !important;
	min-width: 0;
	width: 100% !important;
}
.nxs-shell__content:not(.uses-nxs-content-cards) > .nxs-content-container { display: block; }
.nxs-content-container--cards > :not([data-nxs-content-owned]) { margin-block: 0 !important; }
.nxs-shell__navigation [data-nxs-nav-root] > li:is(.is-current, .is-current-ancestor) {
	background: var(--nxs-nav-current-surface);
	border-color: #087a67;
	box-shadow: 0 0 0 2px rgb(87 205 155 / 0.38), 0 0.55rem 1.65rem rgb(0 0 0 / 0.48);
}
.nxs-shell__navigation .nxs-shell__submenu > li.is-current > .nxs-shell__nav-link {
	background: var(--nxs-nav-current-surface);
	border-color: #51c7a5;
	box-shadow: inset 3px 0 #087a67;
}
	color: var(--nxs-nav-text);
.nxs-shell__navigation .nxs-shell__submenu > li.has-child {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
}
.nxs-shell__navigation .nxs-shell__submenu > li.has-child > .nxs-shell__nav-link { grid-column: 1; grid-row: 1; }
.nxs-shell__navigation .nxs-shell__submenu > li.has-child > .nxs-shell__submenu-toggle { grid-column: 2; grid-row: 1; }
.nxs-shell__navigation .nxs-shell__submenu .nxs-shell__submenu {
	background: var(--nxs-nav-dropdown-surface);
	box-shadow: inset 0 1px rgb(255 255 255 / 8%);
	grid-column: 1 / -1;
	grid-row: 2;
	inset: auto !important;
	margin-top: 0.3rem !important;
	max-height: none;
	position: static !important;
	width: 100% !important;
}
.nxs-shell__error-panel { min-height: 12rem; }
.nxs-shell__error-panel > p { max-width: 62ch; }
.nxs-shell__error-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1rem; }
.nxs-shell__action {
	align-items: center;
	background: linear-gradient(135deg, #0d8d75, #08715f);
	border: 1px solid #075f50;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	display: inline-flex;
	font: 750 0.86rem/1 ui-sans-serif, system-ui, sans-serif;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.7rem 1rem;
	text-decoration: none;
}
.nxs-shell__action--secondary { background: rgb(255 255 255 / 62%); color: #0b5e4d; }
.nxs-shell__action:focus-visible { outline: 3px solid var(--nxs-turquoise); outline-offset: 2px; }
@media (max-width: 782px) {
	.nxs-shell__skip-link { left: max(0.55rem, env(safe-area-inset-left)); }
	.nxs-shell__content:not(.uses-nxs-content-cards),
	.nxs-shell__surface {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background: linear-gradient(145deg, rgb(247 255 251 / 96%), rgb(200 237 223 / 95%));
		box-shadow: 0 0.55rem 1.7rem rgb(2 38 29 / 18%);
	}
	.nxs-shell__navigation .nxs-shell__submenu[data-item-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nxs-shell__navigation .nxs-shell__submenu .nxs-shell__submenu { grid-template-columns: 1fr; }
}

/* Compact mobile navigation: WordPress keeps owning the menu tree while the
 * theme presents it as an accessible off-canvas list. Without JavaScript the
 * existing in-flow navigation remains visible as the progressive fallback. */
@media (max-width: 782px), (max-height: 500px) and (max-width: 932px) {
	:where(html.nxs-js) :where(.nxs-shell.has-navigation) .nxs-shell__chrome,
	.nxs-shell.has-mobile-drawer .nxs-shell__chrome {
		align-items: center;
		display: grid;
		gap: 0.5rem;
		grid-template-columns: auto minmax(0, 1fr);
		width: var(--nxs-workspace-width);
	}
	:where(html.nxs-js) :where(.nxs-shell.has-navigation) .nxs-shell__brand,
	.nxs-shell.has-mobile-drawer .nxs-shell__brand {
		grid-column: 2;
		grid-row: 1;
		justify-self: end;
		max-width: 100%;
		min-width: 0;
		padding-left: 0.2rem;
		padding-right: 0;
	}
	:where(html.nxs-js) :where(.nxs-shell.has-navigation) .nxs-shell__brand-logo,
	.nxs-shell.has-mobile-drawer .nxs-shell__brand-logo {
		height: clamp(2.2rem, 9vw, 2.65rem);
		width: clamp(2.2rem, 9vw, 2.65rem);
	}
	:where(html.nxs-js) :where(.nxs-shell.has-navigation) .nxs-shell__brand-copy strong,
	.nxs-shell.has-mobile-drawer .nxs-shell__brand-copy strong {
		font-size: clamp(1rem, 4.7vw, 1.35rem);
	}
	:where(html.nxs-js) :where(.nxs-shell.has-navigation) .nxs-shell__mobile-menu-toggle,
	.nxs-shell.has-mobile-drawer .nxs-shell__mobile-menu-toggle {
		align-items: center;
		appearance: none;
		background: linear-gradient(145deg, rgb(246 255 251 / 96%), rgb(164 235 210 / 94%));
		border: 1px solid rgb(49 172 137 / 62%);
		border-radius: 999px;
		box-shadow: 0 0.35rem 1.1rem rgb(3 54 41 / 16%), inset 0 1px rgb(255 255 255 / 88%);
		color: #123d32;
		cursor: pointer;
		display: inline-flex;
		font: 800 0.7rem/1 ui-sans-serif, system-ui, sans-serif;
		gap: 0.42rem;
		grid-column: 1;
		grid-row: 1;
		justify-content: center;
		justify-self: start;
		min-height: 2.75rem;
		padding: 0.55rem 0.72rem;
		position: relative;
		text-transform: uppercase;
		transition: opacity 140ms ease;
		z-index: 10050;
	}
	.nxs-shell.is-mobile-menu-open .nxs-shell__mobile-menu-toggle { opacity: 0; pointer-events: none; visibility: hidden; }
	.nxs-shell.has-mobile-drawer .nxs-shell__mobile-menu-toggle:focus-visible {
		outline: 3px solid var(--nxs-turquoise);
		outline-offset: 2px;
	}
	.nxs-shell__mobile-menu-icon {
		display: grid;
		gap: 0.2rem;
		width: 1rem;
	}
	.nxs-shell__mobile-menu-icon i {
		background: currentColor;
		border-radius: 999px;
		height: 2px;
		transform-origin: center;
		transition: opacity 150ms ease, transform 180ms ease;
		width: 100%;
	}
	.nxs-shell.is-mobile-menu-open .nxs-shell__mobile-menu-icon i:nth-child(1) { transform: translateY(0.4rem) rotate(45deg); }
	.nxs-shell.is-mobile-menu-open .nxs-shell__mobile-menu-icon i:nth-child(2) { opacity: 0; }
	.nxs-shell.is-mobile-menu-open .nxs-shell__mobile-menu-icon i:nth-child(3) { transform: translateY(-0.4rem) rotate(-45deg); }
	:where(html.nxs-js) :where(.nxs-shell.has-navigation) .nxs-shell__menu-region,
	.nxs-shell.has-mobile-drawer .nxs-shell__menu-region {
		align-items: stretch;
		flex-direction: column;
		-webkit-overflow-scrolling: touch;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background-color: #e0f7ee;
		background-image: var(--nxs-drawer-surface);
		border: 1px solid rgb(55 169 137 / 58%);
		border-left: 0;
		border-radius: 0 1rem 1rem 0;
		bottom: max(0.45rem, env(safe-area-inset-bottom));
		box-shadow: 1rem 0 3rem rgb(1 35 27 / 28%), inset 0 1px rgb(255 255 255 / 90%);
		color: var(--nxs-drawer-ink);
		color-scheme: light;
		contain: paint;
		isolation: isolate;
		left: 0;
		margin: 0;
		max-height: none;
		opacity: 1;
		overflow-x: hidden;
		overflow-y: auto;
		overscroll-behavior: contain;
		padding: 3.75rem max(0.65rem, env(safe-area-inset-left)) 1rem;
		pointer-events: none;
		position: fixed;
		top: var(--nxs-mobile-drawer-top, 4.5rem);
		transform: translateX(calc(-100% - 1.25rem));
		transition: opacity 170ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1), visibility 220ms linear;
		visibility: hidden;
		width: min(22rem, calc(100% - 3rem));
		z-index: 10040;
	}
	.nxs-shell.is-mobile-menu-open .nxs-shell__menu-region {
		opacity: 1;
		pointer-events: auto;
		transform: translateX(0);
		visibility: visible;
	}
	.nxs-shell.has-mobile-drawer .nxs-shell__menu-region > .nxs-shell__navigation { flex: 0 0 auto; }
	.nxs-shell.has-mobile-drawer .nxs-shell__model-toggle { width: 100%; margin-top: 0.5rem; }
	body.nxs-app-shell-theme .nxs-shell.has-mobile-drawer [data-nxs-mobile-menu],
	body.nxs-app-shell-theme .nxs-shell.has-mobile-drawer [data-nxs-mobile-menu] .nxs-shell__navigation {
		filter: none;
		mix-blend-mode: normal;
		opacity: 1;
	}
	body.nxs-app-shell-theme .nxs-shell.has-mobile-drawer [data-nxs-mobile-menu] :where(.nxs-shell__nav-link, .wp-block-navigation-item__content, .nxs-shell__submenu-toggle, .nxs-shell__drawer-close) {
		-webkit-text-fill-color: var(--nxs-drawer-ink) !important;
		color: var(--nxs-drawer-ink) !important;
		opacity: 1 !important;
		text-shadow: none !important;
	}
	.nxs-shell.has-mobile-drawer .nxs-shell__drawer-close {
		align-items: center;
		appearance: none;
		background: rgb(255 255 255 / 62%);
		border: 1px solid rgb(34 137 109 / 28%);
		border-radius: 999px;
		color: #115b49;
		cursor: pointer;
		display: inline-flex;
		font: 500 1.45rem/1 ui-sans-serif, system-ui, sans-serif;
		height: 2.75rem;
		justify-content: center;
		padding: 0;
		position: absolute;
		right: 0.55rem;
		top: 0.55rem;
		width: 2.75rem;
		z-index: 2;
	}
	.nxs-shell.has-mobile-drawer .nxs-shell__drawer-close:focus-visible {
		outline: 3px solid var(--nxs-turquoise);
		outline-offset: 2px;
	}
	.nxs-shell.has-mobile-drawer .nxs-shell__navigation [data-nxs-nav-root] {
		display: flex !important;
		flex-direction: column;
		align-items: stretch !important;
		gap: 0.25rem !important;
		overflow: visible !important;
		width: 100%;
	}
	/* Integration boundary: Core navigation rows may carry width:auto and
	 * centered flex alignment. Every drawer row owns the complete inline size. */
	body.nxs-app-shell-theme .nxs-shell.has-mobile-drawer .nxs-shell__navigation [data-nxs-nav-root] > li {
		align-self: stretch !important;
		inline-size: 100% !important;
		width: 100% !important;
		min-inline-size: 0;
		margin: 0;
	}
	.nxs-shell.has-mobile-drawer .nxs-shell__navigation [data-nxs-nav-root] > li {
		display: grid !important;
		grid-template-rows: auto auto;
		background: transparent;
		border: 0;
		border-bottom: 1px solid rgb(18 104 82 / 16%);
		border-radius: 0.5rem;
		box-shadow: none;
		grid-template-columns: minmax(0, 1fr) 2.9rem;
		min-height: 3.15rem;
	}
	.nxs-shell.has-mobile-drawer .nxs-shell__navigation [data-nxs-nav-root] > li::before { display: none; }
	.nxs-shell.has-mobile-drawer .nxs-shell__navigation [data-nxs-nav-root] > li > .nxs-shell__nav-link {
		justify-content: flex-start;
		text-align: left;
		width: 100%;
		font-family: ui-sans-serif, system-ui, sans-serif;
		font-size: clamp(0.88rem, 3.8vw, 1rem);
		font-weight: 760;
		grid-column: 1;
		grid-row: 1;
		line-height: 1.2;
		min-height: 3.15rem;
		overflow-wrap: break-word;
		padding: 0.75rem;
		word-break: normal;
	}
	.nxs-shell.has-mobile-drawer .nxs-shell__navigation [data-nxs-nav-root] > li:not(.has-child) > .nxs-shell__nav-link { grid-column: 1 / -1; }
	.nxs-shell.has-mobile-drawer .nxs-shell__navigation .nxs-shell__submenu-toggle:not(.nxs-shell__label-toggle) {
		align-self: center !important;
		background: transparent !important;
		border: 0 !important;
		border-radius: 0.5rem;
		grid-column: 2 !important;
		grid-row: 1 !important;
		height: 2.75rem !important;
		margin: 0 !important;
		min-height: 2.75rem;
		min-width: 2.75rem;
		transform: none !important;
		width: 2.75rem !important;
	}
	.nxs-shell.has-mobile-drawer .nxs-shell__navigation .nxs-shell__submenu-toggle:not(.nxs-shell__label-toggle):is(:hover, :focus-visible) { background: rgb(14 105 82 / 10%) !important; }
	.nxs-shell.has-mobile-drawer .nxs-shell__navigation .nxs-shell__submenu {
		background: rgb(14 105 82 / 8%);
		border: 0;
		border-left: 2px solid rgb(18 139 108 / 38%);
		border-radius: 0.45rem;
		box-shadow: none;
		grid-column: 1 / -1;
		grid-row: 2;
		grid-template-columns: minmax(0, 1fr) !important;
		inset: auto !important;
		margin: 0 0 0.45rem 0.25rem !important;
		max-height: none;
		overflow: visible;
		padding: 0.2rem 0.22rem !important;
		position: static !important;
		width: calc(100% - 0.25rem) !important;
	}
	.nxs-shell.has-mobile-drawer .nxs-shell__navigation .nxs-shell__submenu > li > .nxs-shell__nav-link {
		background: transparent;
		border: 0;
		border-radius: 0.38rem;
		font-size: 0.83rem;
		font-weight: 690;
		line-height: 1.25;
		min-height: 2.75rem;
		padding: 0.58rem 0.62rem;
	}
	.nxs-shell.has-mobile-drawer .nxs-shell__navigation [data-nxs-nav-root] > li:is(.is-current, .is-current-ancestor) {
		background: rgb(255 255 255 / 34%);
		border-left: 3px solid #0a8069;
		box-shadow: none;
		padding-left: 0.25rem;
	}
	.nxs-shell.has-mobile-drawer .nxs-shell__navigation .nxs-shell__submenu > li.is-current > .nxs-shell__nav-link {
		background: rgb(255 255 255 / 58%);
		box-shadow: inset 3px 0 #087a67;
	}
	/* WordPress Core styles submenu parents as flex rows. The drawer is an
	 * accordion: parent link + compact toggle in row one, submenu below. */
	body.nxs-app-shell-theme .nxs-shell.has-mobile-drawer [data-nxs-mobile-menu] .nxs-shell__navigation li.has-child {
		align-items: stretch !important;
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) 2.75rem !important;
		grid-template-rows: auto auto !important;
		min-width: 0 !important;
		position: static !important;
		width: 100% !important;
	}
	body.nxs-app-shell-theme .nxs-shell.has-mobile-drawer [data-nxs-mobile-menu] .nxs-shell__navigation li.has-child > :is(.nxs-shell__nav-link, .wp-block-navigation-item__content) {
		grid-column: 1 !important;
		grid-row: 1 !important;
		min-width: 0 !important;
		width: 100% !important;
	}
	body.nxs-app-shell-theme .nxs-shell.has-mobile-drawer [data-nxs-mobile-menu] .nxs-shell__navigation li.has-child > :is(.nxs-shell__submenu, .wp-block-navigation__submenu-container, .sub-menu) {
		align-self: stretch !important;
		display: grid !important;
		float: none !important;
		grid-column: 1 / -1 !important;
		grid-row: 2 !important;
		grid-template-columns: minmax(0, 1fr) !important;
		height: auto !important;
		inset: auto !important;
		margin: 0 0 0.35rem !important;
		max-height: none !important;
		max-width: 100% !important;
		min-width: 0 !important;
		opacity: 1 !important;
		overflow: visible !important;
		padding: 0.1rem 0 0.3rem 0.65rem !important;
		position: static !important;
		transform: none !important;
		visibility: visible !important;
		width: 100% !important;
	}
	body.nxs-app-shell-theme .nxs-shell.has-mobile-drawer [data-nxs-mobile-menu] .nxs-shell__navigation li.has-child > :is(.nxs-shell__submenu, .wp-block-navigation__submenu-container, .sub-menu)[hidden] { display: none !important; }
	body.nxs-app-shell-theme .nxs-shell.has-mobile-drawer [data-nxs-mobile-menu] .nxs-shell__navigation li.has-child > :is(.nxs-shell__submenu, .wp-block-navigation__submenu-container, .sub-menu) > li {
		display: grid !important;
		min-width: 0 !important;
		position: static !important;
		width: 100% !important;
	}
	.nxs-shell.has-mobile-drawer .nxs-shell__menu-scrim {
		appearance: none;
		background: rgb(2 31 24 / 42%);
		border: 0;
		bottom: 0;
		display: block;
		left: 0;
		margin: 0;
		padding: 0;
		position: fixed;
		right: 0;
		top: var(--nxs-mobile-drawer-top, 4.5rem);
		z-index: 10020;
	}
	.nxs-shell.has-mobile-drawer .nxs-shell__menu-scrim[hidden] { display: none !important; }
	.nxs-shell__background .kse-hero.is-nxs-mobile-flow-static .kse-hero__flow {
		display: none !important;
	}
	.nxs-shell__background .kse-hero.is-nxs-mobile-flow-static .kse-hero__shade {
		background: linear-gradient(180deg, rgb(10 38 30 / 0.06), transparent 38%, rgb(7 29 23 / 0.16));
	}
}

@media (max-width: 782px) and (prefers-reduced-motion: reduce) {
	.nxs-shell.has-mobile-drawer .nxs-shell__menu-region,
	.nxs-shell__mobile-menu-icon i { transition: none; }
}
@media (prefers-reduced-transparency: reduce) {
	.nxs-shell__content:not(.uses-nxs-content-cards),
	.nxs-shell__surface {
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		background: #effaf5;
	}
}
/* A guide is one WordPress content surface. Its internal grid must be allowed
 * to shrink instead of promoting intrinsic child widths into reader overflow. */
body.nxs-app-shell-theme .nxs-shell__content.has-nxs-cards .kse-story-guide-article {
	grid-template-columns: minmax(0, 1fr);
	min-width: 0;
}
body.nxs-app-shell-theme .nxs-shell__content .kse-story-guide-article > * {
	box-sizing: border-box;
	max-width: 100% !important;
	min-width: 0;
}
/* The standalone landing state lives in assets/css/landing-gateway.css. */
@media print {
	html:has(body.nxs-app-shell-theme), body.nxs-app-shell-theme,
	body.nxs-app-shell-theme .wp-site-blocks,
	body.nxs-app-shell-theme .wp-site-blocks > main,
	.nxs-shell { height: auto !important; overflow: visible !important; width: auto !important; }
	.nxs-shell__background, .nxs-shell__chrome, .nxs-shell__skip-link, .nxs-shell__loading { display: none !important; }
	.nxs-shell__reader, .nxs-shell__scroll {
		display: block !important;
		height: auto !important;
		inset: auto !important;
		overflow: visible !important;
		position: static !important;
		transform: none !important;
		width: auto !important;
	}
	.nxs-shell__reader[hidden] { display: none !important; }
	.nxs-shell__content:not(.uses-nxs-content-cards), .nxs-shell__surface {
		background: #fff !important;
		box-shadow: none !important;
		break-inside: avoid;
	}
}
