/**
 * Nightshift — theme styles.
 * Tokens come from theme.json (var(--wp--preset--*) / var(--wp--custom--*)).
 * Sections: base · utilities/block styles · header · navigation · footer ·
 * hero · sections · motion · reduced motion.
 */

/* ---------- Base ---------- */
:root {
	--ns-ease: var(--wp--custom--ease, cubic-bezier(.2,.7,.1,1));
	--ns-radius: var(--wp--custom--radius, 14px);
	--ns-panel-radius: 20px;
	--ns-button-radius: 999px;
	--ns-lift: 1;
	--ns-glow: var(--wp--custom--glow--accent, color-mix(in srgb, var(--wp--preset--color--accent) 35%, transparent));
	--ns-glow-secondary: var(--wp--custom--glow--secondary, color-mix(in srgb, var(--wp--preset--color--secondary) 35%, transparent));
	--ns-announcement-h: 36px;
	--ns-header-h: var(--wp--custom--header-height, 68px);
	--ns-gutter: var(--wp--style--root--padding-right, clamp(1rem, 4vw, 2rem));
	color-scheme: dark;
}

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--ns-header-h) + 16px); }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; text-rendering: optimizeLegibility; }
::selection { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid var(--wp--preset--color--accent);
	outline-offset: 3px;
	border-radius: 6px;
}
a { text-underline-offset: 0.2em; text-decoration-thickness: 1px; transition: color .25s; }

/* Root blocks sit flush; sections own their spacing. */
.wp-site-blocks > * { margin-block: 0; }
.wp-site-blocks > * + * { margin-block-start: 0; }

.ns-main { padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--80); }
.ns-main--flush { padding-block: 0; }
.ns-main--flush > *, .ns-main--flush > .wp-block-post-content > * { margin-block-start: 0; }

.ns-page-title { margin-block-end: var(--wp--preset--spacing--50); }

code, kbd, samp { font-family: var(--wp--preset--font-family--mono); font-size: .9em; }
:not(pre) > code {
	background: var(--wp--preset--color--surface);
	border: 1px dashed var(--wp--preset--color--border-strong);
	border-radius: 6px;
	padding: .1em .4em;
}

/* Form controls (WooCommerce block styles are layered in woocommerce.css). */
input[type="text"], input[type="email"], input[type="search"], input[type="tel"], input[type="url"],
input[type="password"], input[type="number"], select, textarea {
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: 10px;
	font: inherit;
	min-height: 48px;
	padding: .7rem 1rem;
	transition: border-color .25s, box-shadow .25s;
}
input:focus, select:focus, textarea:focus {
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--accent) 15%, transparent);
	outline: none;
}
::placeholder { color: var(--wp--preset--color--secondary); opacity: 1; }

.screen-reader-text:focus, .skip-link:focus {
	background: var(--wp--preset--color--accent) !important;
	color: var(--wp--preset--color--on-accent) !important;
	border-radius: 999px;
	padding: .75rem 1.25rem !important;
	z-index: 100000;
}

/* ---------- Buttons ---------- */
.wp-element-button, .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	min-height: 52px;
	transition: transform .3s var(--ns-ease), box-shadow .3s, background-color .3s, color .3s, border-color .3s;
}
.wp-block-button:not(.is-style-outline):not(.is-style-link) .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline):not(.is-style-link) .wp-block-button__link:focus-visible {
	transform: translateY(calc(-2px * var(--ns-lift)));
	box-shadow: 0 10px 40px -6px var(--ns-glow);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus-visible {
	border-color: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--accent);
	background: transparent;
}
.wp-block-button.is-style-arrow .wp-block-button__link::after {
	content: "";
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
	transition: transform .3s var(--ns-ease);
}
.wp-block-button.is-style-arrow .wp-block-button__link:hover::after { transform: translateX(4px); }
.wp-block-button.is-style-link .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--accent);
	padding: 0;
	min-height: 44px;
	border-radius: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: .8125rem;
	font-weight: 500;
	letter-spacing: .08em;
	text-transform: uppercase;
	border-bottom: 1px solid transparent;
}
.wp-block-button.is-style-link .wp-block-button__link:hover { border-bottom-color: var(--wp--preset--color--accent); }

/* ---------- Paragraph / heading styles ---------- */
.is-style-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: .75rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
}
.is-style-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--wp--preset--color--accent); flex: none; }
p.is-style-eyebrow { display: flex; }
.has-text-align-center.is-style-eyebrow { justify-content: center; }

.is-style-mono-label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: .75rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary-light);
}
/* Measure is limited with end padding, not max-width, so text stays left-aligned inside constrained layouts. */
.is-style-lead { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--contrast-muted); padding-inline-end: max(0px, calc(100% - 40ch)); }
.is-style-fine-print { font-size: .75rem; line-height: 1.5; color: var(--wp--preset--color--secondary); }
.is-style-fine-print:not(.alignwide):not(.alignfull) { padding-inline-end: max(0px, calc(100% - 80ch)); }
.wp-block-heading.is-style-display { font-size: var(--wp--preset--font-size--huge); line-height: .92; letter-spacing: calc(-.03em * var(--wp--custom--typography--tracking)); }

/* ---------- Group styles ---------- */
.wp-block-group.is-style-card,
.wp-block-group.is-style-card-glow {
	position: relative;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--ns-radius);
	background: var(--wp--preset--color--surface);
	padding: clamp(1rem, 2.5vw, 1.5rem);
	overflow: hidden;
	isolation: isolate;
}
.wp-block-group.is-style-card > :first-child, .wp-block-group.is-style-card-glow > :first-child { margin-block-start: 0; }
.wp-block-group.is-style-card-glow {
	background: linear-gradient(180deg, var(--wp--preset--color--surface-raised), var(--wp--preset--color--surface));
	transition: border-color .3s, transform .4s var(--ns-ease), box-shadow .4s;
}
.wp-block-group.is-style-card-glow::before {
	content: "";
	position: absolute;
	width: 180px;
	height: 180px;
	right: -60px;
	top: -60px;
	border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--accent) 22%, transparent), transparent 70%);
	z-index: -1;
	opacity: .7;
	transition: transform .5s var(--ns-ease), opacity .3s;
}
.wp-block-group.is-style-card-glow:hover,
.wp-block-group.is-style-card-glow:focus-within {
	border-color: var(--wp--preset--color--border-strong);
	transform: translateY(calc(-3px * var(--ns-lift)));
	box-shadow: 0 24px 60px -24px var(--ns-glow);
}
.wp-block-group.is-style-card-glow:hover::before { transform: scale(1.5); opacity: 1; }

.wp-block-group.is-style-grid-bg { position: relative; isolation: isolate; }
.wp-block-group.is-style-grid-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(var(--wp--preset--color--border) 1px, transparent 1px),
		linear-gradient(90deg, var(--wp--preset--color--border) 1px, transparent 1px);
	background-size: 64px 64px;
	opacity: .35;
	-webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
	        mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
	pointer-events: none;
}
.wp-block-group.is-style-section-rule { border-block: 1px solid var(--wp--preset--color--border); }

/* ---------- List styles ---------- */
.wp-block-list.is-style-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.wp-block-list.is-style-chips li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: .71875rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 8px 12px;
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: var(--ns-button-radius);
	background: color-mix(in srgb, var(--wp--preset--color--surface) 60%, transparent);
}
.wp-block-list.is-style-chips li::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	box-shadow: 0 0 8px var(--ns-glow);
}
.wp-block-list.is-style-checks { list-style: none; padding: 0; }
.wp-block-list.is-style-checks li { position: relative; padding-inline-start: 1.75rem; margin-block: .5rem; }
.wp-block-list.is-style-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: .3em;
	width: 1.05rem;
	height: 1.05rem;
	border-radius: 5px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent) 45%, transparent);
	background: color-mix(in srgb, var(--wp--preset--color--accent) 8%, transparent) var(--ns-icon-check-accent) center / 70% no-repeat;
}
.wp-block-list.is-style-plain { list-style: none; padding: 0; }
.wp-block-list.is-style-plain li { margin-block: .35rem; }
.wp-block-list.is-style-plain a { color: var(--wp--preset--color--contrast-muted); text-decoration: none; }
.wp-block-list.is-style-plain a:hover { color: var(--wp--preset--color--accent); }

.wp-block-separator.is-style-dashed { border-top-style: dashed !important; border-top-width: 1px; background: none; }

/* Table */
.wp-block-table table { border-collapse: collapse; width: 100%; }
.wp-block-table th, .wp-block-table td { border: 0; border-bottom: 1px solid var(--wp--preset--color--border); padding: .75rem .5rem; text-align: left; }
.wp-block-table thead { border-bottom: 1px solid var(--wp--preset--color--border-strong); }
.wp-block-table th { font-family: var(--wp--preset--font-family--mono); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--secondary-light); }

/* ---------- Header ---------- */
.wp-site-blocks > header.wp-block-template-part { z-index: 50; }
.ns-sticky-header .wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: calc(var(--wp-admin--admin-bar--height, 0px) - var(--ns-announcement-h));
}

.ns-announcement {
	gap: 18px !important;
	min-height: var(--ns-announcement-h);
	height: var(--ns-announcement-h);
	overflow: hidden;
	padding-inline: var(--ns-gutter);
	font-family: var(--wp--preset--font-family--mono);
	font-size: .75rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	text-align: center;
}
.ns-announcement > p { margin: 0; white-space: nowrap; display: inline-flex; align-items: center; gap: 18px; }
.ns-announcement > p + p::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .6; }
.ns-announcement a { color: inherit; }
@media (max-width: 767px) {
	.ns-announcement > p + p { display: none; }
}

/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block for the fixed mobile-menu overlay. */
.ns-header {
	position: relative;
	isolation: isolate;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.ns-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: color-mix(in srgb, var(--wp--preset--color--base) 78%, transparent);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	        backdrop-filter: blur(14px) saturate(140%);
}
.ns-header__inner { min-height: var(--ns-header-h); gap: 16px; }
.ns-header .ns-brand { flex: none; margin: 0; }
.ns-brand a, .ns-brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
:where(body:not(.ns-no-brand-dot)) .ns-brand a::after,
:where(body:not(.ns-no-brand-dot)) .ns-brand:not(:has(a))::after {
	content: "";
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	box-shadow: 0 0 12px var(--ns-glow);
	flex: none;
}

/* Header actions: search, account, mini-cart as 44px icon buttons */
.ns-header__actions { gap: 2px !important; flex: none; }
.ns-icon-btn,
.ns-header__search .wp-block-search__button,
.ns-header__account a,
.ns-header__cart .wc-block-mini-cart__button {
	width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 0 !important;
	margin: 0;
	display: inline-grid !important;
	place-items: center;
	border-radius: 50% !important;
	background: transparent !important;
	color: var(--wp--preset--color--contrast) !important;
	border: 0 !important;
	box-shadow: none !important;
	transition: background-color .25s, color .25s;
	position: relative;
	cursor: pointer;
}
.ns-header__search .wp-block-search__button:hover,
.ns-header__account a:hover,
.ns-header__cart .wc-block-mini-cart__button:hover {
	background: var(--wp--preset--color--surface-raised) !important;
	color: var(--wp--preset--color--accent) !important;
	transform: none;
}
.ns-header__search .wp-block-search__button svg,
.ns-header__account svg,
.ns-header__cart .wc-block-mini-cart__icon { width: 22px; height: 22px; fill: currentColor; }

/* Search: field slides out to the left of the icon */
.ns-header__search { margin: 0; }
.ns-header__search .wp-block-search__inside-wrapper { position: relative; border: 0; padding: 0; background: none; }
.ns-header__search .wp-block-search__input {
	position: absolute;
	right: 100%;
	top: 50%;
	translate: 0 -50%;
	width: min(260px, 60vw) !important;
	height: 44px;
	min-height: 44px;
	margin-right: 4px;
	border-radius: var(--ns-button-radius);
	transition: opacity .3s, transform .3s var(--ns-ease);
}
.ns-header__search.wp-block-search__searchfield-hidden .wp-block-search__input {
	opacity: 0;
	pointer-events: none;
	transform: translateX(8px);
	width: min(260px, 60vw) !important;
	padding: .7rem 1rem;
	border: 1px solid var(--wp--preset--color--border-strong);
}

.ns-header__cart .wc-block-mini-cart__badge {
	background: var(--wp--preset--color--accent) !important;
	color: var(--wp--preset--color--on-accent) !important;
	border: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 11px;
	font-weight: 500;
	min-width: 18px;
	height: 18px;
	top: 3px;
	left: auto;
	right: 1px;
	transform: none;
}
.ns-header__cart .wc-block-mini-cart__amount { display: none; }
.ns-header__cart .wc-block-mini-cart__quantity-badge { display: grid; place-items: center; }

/* ---------- Navigation ---------- */
.ns-header__nav { flex: 1 1 auto; }
.ns-header__nav .wp-block-navigation__container { gap: 4px; }
.ns-header__nav .wp-block-navigation-item__content {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 12px !important;
	transition: color .25s;
}
.ns-header__nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 10px;
	height: 1px;
	background: var(--wp--preset--color--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .35s var(--ns-ease);
}
.ns-header__nav .wp-block-navigation-item__content:hover::after,
.ns-header__nav .wp-block-navigation-item__content:focus-visible::after,
.ns-header__nav .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.ns-header__nav .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--contrast); }

/* Submenus */
.ns-header__nav .wp-block-navigation__submenu-container {
	background: var(--wp--preset--color--surface) !important;
	border: 1px solid var(--wp--preset--color--border-strong) !important;
	border-radius: var(--ns-radius);
	padding: 8px;
	min-width: 240px !important;
	box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--wp--custom--color--shadow) 80%, transparent);
}
.ns-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content { width: 100%; border-radius: 8px; padding: 0 12px !important; }
.ns-header__nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--surface-raised); }

/* Toggle + overlay. Core collapses at 600px; the design collapses at 960px. */
.ns-header__nav .wp-block-navigation__responsive-container-open,
.ns-header__nav .wp-block-navigation__responsive-container-close {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	place-items: center;
	color: var(--wp--preset--color--contrast);
	transition: background-color .25s, color .25s;
}
.ns-header__nav .wp-block-navigation__responsive-container-open:hover,
.ns-header__nav .wp-block-navigation__responsive-container-close:hover { background: var(--wp--preset--color--surface-raised); color: var(--wp--preset--color--accent); }

@media (max-width: 959px) {
	.ns-header__nav { order: 3; flex: none; }
	.ns-header__actions { margin-left: auto; }
	.ns-header__nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: grid; }
	.ns-header__nav .is-menu-open .wp-block-navigation__responsive-container-close { display: grid; }
	.ns-header__nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
	.ns-header__account { display: none; }
}
.ns-header__nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: calc(var(--wp-admin--admin-bar--height, 0px) + 16px) var(--ns-gutter) 32px;
	background:
		radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--wp--preset--color--accent) 16%, transparent), transparent 45%),
		var(--wp--preset--color--base) !important;
	animation: ns-overlay-in .35s var(--ns-ease);
}
.ns-header__nav .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 64px; align-items: stretch !important; }
.ns-header__nav .is-menu-open .wp-block-navigation__container { gap: 0 !important; width: 100%; align-items: stretch !important; }
.ns-header__nav .is-menu-open .wp-block-navigation-item { width: 100%; }
.ns-header__nav .is-menu-open .wp-block-navigation-item__content {
	width: 100%;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: clamp(1.6rem, 7vw, 2.25rem);
	letter-spacing: calc(-.02em * var(--wp--custom--typography--tracking));
	color: var(--wp--preset--color--contrast) !important;
	padding: 14px 0 !important;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.ns-header__nav .is-menu-open .wp-block-navigation-item__content::after { display: none; }
.ns-header__nav .is-menu-open .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--accent) !important; }
@keyframes ns-overlay-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
.wp-site-blocks > footer.wp-block-template-part { margin-block-start: 0; }
.ns-footer {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	border-top: 1px solid var(--wp--preset--color--border);
	background:
		radial-gradient(ellipse 60% 50% at 85% 100%, color-mix(in srgb, var(--wp--preset--color--accent) 10%, transparent), transparent 70%),
		linear-gradient(180deg, color-mix(in srgb, var(--wp--preset--color--base) 51%, var(--wp--preset--color--surface)), var(--wp--preset--color--base));
	padding-block-start: var(--wp--preset--spacing--70);
}
.ns-footer__top { gap: var(--wp--preset--spacing--60) !important; margin-block-end: var(--wp--preset--spacing--60); }
.ns-footer__brand .ns-brand { font-size: 2rem; margin: 0; }
.ns-footer__tagline { margin-block: .75rem 1.5rem !important; font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--contrast-muted); max-width: 28ch; }
.ns-footer__help { color: var(--wp--preset--color--contrast-muted); font-size: .9375rem; }
.ns-footer__social { margin-block-start: 1.25rem; gap: 4px !important; }
.ns-footer__social .wp-social-link { border-radius: 50%; transition: background-color .25s, color .25s; }
.ns-footer__social .wp-social-link a { padding: 10px; }
.ns-footer__social .wp-social-link:hover { background: var(--wp--preset--color--surface-raised); color: var(--wp--preset--color--accent) !important; }

.ns-footer__cols { gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40) !important; }
.ns-footer__heading {
	font-family: var(--wp--preset--font-family--mono) !important;
	font-size: .75rem !important;
	font-weight: 500 !important;
	letter-spacing: .14em !important;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary) !important;
	margin: 0 0 1rem !important;
	line-height: 1.4 !important;
}
.ns-footer__links,
.ns-footer__links ul { list-style: none; margin: 0; padding: 0; gap: 0 !important; }
.ns-footer__links .wp-block-navigation-item__content,
.ns-footer__links a {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	padding: 0 !important;
	color: var(--wp--preset--color--contrast-muted) !important;
	text-decoration: none;
	font-size: .9375rem;
	transition: color .25s, transform .3s var(--ns-ease);
}
.ns-footer__links .wp-block-navigation-item__content:hover,
.ns-footer__links a:hover { color: var(--wp--preset--color--accent) !important; transform: translateX(3px); }
.ns-footer__links .wc-block-product-categories-list-item { margin: 0; }
.ns-footer__links .wc-block-product-categories-list-item-count { display: none; }

.ns-footer__notice { border-top: 1px solid var(--wp--preset--color--border); padding-top: 1.5rem; margin-block-end: 0 !important; }
.ns-footer__bottom {
	padding-block: 1rem;
	font-family: var(--wp--preset--font-family--mono);
	font-size: .75rem;
	letter-spacing: .06em;
	color: var(--wp--preset--color--secondary);
	gap: 12px !important;
}
.ns-footer__bottom p { margin: 0; }
.ns-footer__secure { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; }
.ns-footer__secure::before {
	content: "";
	width: 14px;
	height: 14px;
	background: var(--wp--preset--color--accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Oversized outlined wordmark bleeding off the bottom edge */
.ns-footer__wordmark {
	margin: 0 !important;
	padding-inline: var(--ns-gutter);
	font-family: var(--wp--preset--font-family--display);
	font-weight: var(--wp--custom--typography--display-weight);
	font-size: clamp(4.5rem, 19vw, 19rem) !important;
	line-height: .78 !important;
	letter-spacing: calc(-.04em * var(--wp--custom--typography--tracking)) !important;
	text-align: center;
	color: transparent !important;
	-webkit-text-stroke: 1px var(--wp--preset--color--border-strong);
	background: linear-gradient(180deg, color-mix(in srgb, var(--wp--preset--color--accent) 14%, transparent), transparent 75%);
	-webkit-background-clip: text;
	        background-clip: text;
	translate: 0 10%;
	user-select: none;
	pointer-events: none;
	white-space: nowrap;
	overflow: hidden;
}
.ns-footer__wordmark a { color: inherit; }

@media (max-width: 781px) {
	.ns-footer__top { flex-wrap: wrap !important; }
	.ns-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* ---------- Sections ---------- */
.ns-section { padding-block: var(--wp--preset--spacing--70); }
.ns-section + .ns-section { padding-block-start: 0; }

/* Style guide swatches */
.ns-swatches { gap: 12px !important; }
.ns-swatch__chip { aspect-ratio: 4 / 3; border-radius: var(--ns-radius); border: 1px solid var(--wp--preset--color--border-strong); }
.ns-swatch p { margin-block-start: .6rem; }

/* ---------- Hero ---------- */
.ns-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding-block: clamp(3.5rem, 8vw, 4.5rem) clamp(3rem, 7vw, 3.5rem);
	min-height: min(88vh, 820px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
/* Grid texture */
.ns-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background-image:
		linear-gradient(var(--wp--preset--color--border) 1px, transparent 1px),
		linear-gradient(90deg, var(--wp--preset--color--border) 1px, transparent 1px);
	background-size: 64px 64px;
	opacity: .35;
	-webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
	        mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
/* Accent orb */
.ns-hero::after {
	content: "";
	position: absolute;
	z-index: -1;
	width: 420px;
	height: 420px;
	right: -60px;
	top: 6%;
	border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--accent) calc(42% * var(--ns-glow-strength, 1)), transparent), transparent 65%);
	filter: blur(70px);
	animation: ns-drift-a 22s ease-in-out infinite alternate;
	pointer-events: none;
}
/* Secondary orb + small orb live on the inner wrapper */
.ns-hero > .ns-hero__inner { width: 100%; }
.ns-hero__inner { position: relative; gap: clamp(2rem, 5vw, 3rem) !important; margin-block: 0 !important; }
.ns-hero__inner::before,
.ns-hero__inner::after {
	content: "";
	position: absolute;
	z-index: -1;
	border-radius: 50%;
	filter: blur(70px);
	pointer-events: none;
}
.ns-hero__inner::before {
	width: 520px;
	height: 520px;
	right: 22%;
	bottom: -260px;
	background: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--secondary) calc(45% * var(--ns-ambient-secondary, 1) * var(--ns-glow-strength, 1)), transparent), transparent 65%);
	animation: ns-drift-b 28s ease-in-out infinite alternate;
}
.ns-hero__inner::after {
	width: 200px;
	height: 200px;
	left: -80px;
	top: 10%;
	background: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--accent) 18%, transparent), transparent 70%);
	animation: ns-drift-b 18s ease-in-out infinite alternate-reverse;
}
.ns-no-ambient .ns-hero::before, .ns-no-ambient .ns-hero::after,
.ns-no-ambient .ns-hero__inner::before, .ns-no-ambient .ns-hero__inner::after { display: none; }
@keyframes ns-drift-a { to { transform: translate(-90px, 70px) scale(1.12); } }
@keyframes ns-drift-b { to { transform: translate(70px, -60px) scale(.92); } }

.ns-hero__copy > * { margin-block: 0; }
.ns-hero__copy > * + * { margin-block-start: 0; }
.ns-hero__title { margin: 18px 0 22px !important; line-height: .92 !important; letter-spacing: calc(-.03em * var(--wp--custom--typography--tracking)) !important; }
.ns-hero__title mark { text-shadow: 0 0 40px color-mix(in srgb, var(--wp--preset--color--accent) 25%, transparent); }
.ns-hero__sub { padding-inline-end: max(0px, calc(100% - 34ch)); margin-block-end: 30px !important; }
.ns-hero__ctas { gap: 12px; }
.ns-hero__chips { margin-block-start: 40px !important; }

/* Ambient product composition (decorative; swap for an Image block any time) */
.ns-hero-visual { position: relative; height: 340px; }
@media (min-width: 960px) { .ns-hero-visual { height: 480px; } }
.ns-float { position: absolute; animation: ns-float 9s ease-in-out infinite; }
@keyframes ns-float {
	0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)) scale(var(--s, 1)); }
	50% { transform: translateY(-16px) rotate(calc(var(--r, 0deg) + 4deg)) scale(var(--s, 1)); }
}
.ns-bottle { left: 50%; top: 50%; width: 150px; height: 250px; margin: -125px 0 0 -75px; --r: -4deg; }
@media (min-width: 960px) { .ns-bottle { width: 180px; height: 300px; margin: -150px 0 0 -90px; } }
.ns-bottle__cap {
	position: absolute;
	left: 22%;
	right: 22%;
	top: 0;
	height: 16%;
	border-radius: 10px 10px 4px 4px;
	background: linear-gradient(90deg, color-mix(in srgb, var(--wp--preset--color--border-strong) 48%, var(--wp--custom--color--shadow)), var(--wp--preset--color--border-strong) 45%, color-mix(in srgb, var(--wp--preset--color--border-strong) 48%, var(--wp--custom--color--shadow)));
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--border-strong) 85%, var(--wp--preset--color--secondary));
	border: 1px solid oklch(from var(--wp--preset--color--border-strong) calc(l + .0375) calc(c + .001) calc(h - 2.36));
}
.ns-bottle__body {
	position: absolute;
	left: 0;
	right: 0;
	top: 14%;
	bottom: 0;
	border-radius: 26px;
	background: linear-gradient(100deg, color-mix(in srgb, var(--wp--preset--color--base) 41%, var(--wp--preset--color--surface-raised)) 0%, color-mix(in srgb, var(--wp--preset--color--base) 20%, var(--wp--preset--color--border)) 38%, color-mix(in srgb, var(--wp--preset--color--base) 41%, var(--wp--preset--color--surface-raised)) 70%, color-mix(in srgb, var(--wp--preset--color--base) 69%, var(--wp--preset--color--surface)));
	border: 1px solid var(--wp--preset--color--border-strong);
	box-shadow: 0 30px 80px -20px color-mix(in srgb, var(--wp--preset--color--accent) 28%, transparent), inset 0 1px 0 color-mix(in srgb, var(--wp--custom--color--highlight) 6%, transparent);
}
.ns-bottle__body::before {
	content: "";
	position: absolute;
	left: 14%;
	top: 6%;
	width: 10%;
	height: 70%;
	border-radius: 20px;
	background: linear-gradient(color-mix(in srgb, var(--wp--custom--color--highlight) 14%, transparent), transparent);
}
.ns-bottle__label {
	position: absolute;
	left: 12%;
	right: 12%;
	top: 30%;
	padding: 12px 10px;
	border-radius: 8px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
	text-align: left;
}
.ns-bottle__label b {
	display: block;
	font-family: var(--wp--preset--font-family--display);
	font-weight: var(--wp--custom--typography--display-weight);
	font-size: clamp(17px, 4.6vw, 22px);
	line-height: 1;
	overflow-wrap: anywhere;
}
.ns-bottle__label small {
	display: block;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 9px;
	letter-spacing: .1em;
	margin-top: 6px;
	text-transform: uppercase;
}
.ns-bottle__spec {
	position: absolute;
	left: 12%;
	right: 12%;
	bottom: 10%;
	display: flex;
	justify-content: space-between;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 9px;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary-light);
}
.ns-capsule { width: 86px; height: 34px; border-radius: 999px; overflow: hidden; display: flex; box-shadow: 0 12px 30px -8px color-mix(in srgb, var(--wp--custom--color--shadow) 60%, transparent); }
.ns-capsule i { flex: 1; display: block; }
.ns-capsule i:first-child { background: linear-gradient(180deg, color-mix(in srgb, var(--wp--preset--color--accent) 61%, var(--wp--custom--color--highlight)), var(--wp--preset--color--accent) 50%, color-mix(in srgb, var(--wp--preset--color--accent) 77%, var(--wp--custom--color--shadow))); background: linear-gradient(180deg, oklch(from var(--wp--preset--color--accent) calc(l + .0528) calc(c - .0437) calc(h - 1.98)), var(--wp--preset--color--accent) 50%, oklch(from var(--wp--preset--color--accent) calc(l - .1359) calc(c - .0157) calc(h + .54))); }
.ns-capsule i:last-child { background: linear-gradient(180deg, color-mix(in srgb, var(--wp--preset--color--contrast) 58%, var(--wp--custom--color--highlight)), var(--wp--preset--color--contrast) 50%, color-mix(in srgb, var(--wp--preset--color--contrast) 5%, var(--wp--preset--color--contrast-muted))); }
.ns-capsule--sage i:first-child { background: linear-gradient(180deg, color-mix(in srgb, var(--wp--preset--color--secondary-light) 86%, var(--wp--custom--color--highlight)), var(--wp--preset--color--secondary) 50%, color-mix(in srgb, var(--wp--preset--color--surface) 31%, var(--wp--preset--color--secondary))); background: linear-gradient(180deg, color-mix(in srgb, var(--wp--preset--color--secondary-light) 86%, var(--wp--custom--color--highlight)), var(--wp--preset--color--secondary) 50%, oklch(from var(--wp--preset--color--secondary) calc(l - .1266) calc(c + .0018) calc(h - 4.25))); }
.ns-capsule--dark i:first-child { background: linear-gradient(180deg, var(--wp--preset--color--border-strong), color-mix(in srgb, var(--wp--preset--color--base) 27%, var(--wp--preset--color--border))); }
.ns-capsule--1 { left: 4%; top: 12%; --r: -28deg; animation-delay: -2s; }
.ns-capsule--2 { right: 2%; top: 22%; --r: 32deg; --s: .8; animation-delay: -4s; }
.ns-capsule--3 { left: 12%; bottom: 8%; --r: 14deg; animation-delay: -6s; }
.ns-capsule--4 { right: 10%; bottom: 4%; --r: -50deg; animation-delay: -1s; }

@media (max-width: 781px) {
	.ns-hero { min-height: 0; }
	.ns-hero__inner { flex-wrap: wrap !important; }
	.ns-hero__visual-col { flex-basis: 100% !important; }
}

/* ---------- Motion ---------- */
/* Hero entrance: staggered blur-in, runs once on load. */
.ns-js .ns-motion .ns-hero__copy > *,
.ns-js .ns-motion .ns-hero__visual-col {
	opacity: 0;
	filter: blur(8px);
	transform: translateY(22px);
	animation: ns-reveal .8s var(--ns-ease) forwards;
}
.ns-motion .ns-hero__copy > :nth-child(1) { animation-delay: .08s; }
.ns-motion .ns-hero__copy > :nth-child(2) { animation-delay: .2s; }
.ns-motion .ns-hero__copy > :nth-child(3) { animation-delay: .34s; }
.ns-motion .ns-hero__copy > :nth-child(4) { animation-delay: .48s; }
.ns-motion .ns-hero__copy > :nth-child(n+5) { animation-delay: .62s; }
.ns-motion .ns-hero__visual-col { animation-delay: .34s; }
@keyframes ns-reveal { to { opacity: 1; filter: blur(0); transform: none; } }

/* Scroll reveal: add class "ns-reveal" to any block, or "ns-reveal-children" to
   stagger its items (works through Query, Terms Query and Product Collection lists). */
.ns-js .ns-motion .ns-reveal:not(.is-revealed),
.ns-js .ns-motion .ns-reveal-item:not(.is-revealed) {
	opacity: 0;
	transform: var(--ns-reveal-from, translateY(24px));
}
.ns-js .ns-motion .ns-reveal,
.ns-js .ns-motion .ns-reveal-item {
	transition: opacity .8s var(--ns-ease), transform .8s var(--ns-ease);
	transition-delay: calc(var(--ns-i, 0) * 70ms);
}

/* No motion inside the editor canvas. */
.editor-styles-wrapper .ns-hero__copy > *,
.editor-styles-wrapper .ns-hero__visual-col,
.editor-styles-wrapper .ns-reveal,
.editor-styles-wrapper .ns-reveal-item { opacity: 1 !important; filter: none !important; transform: none !important; animation: none !important; }

.ns-no-motion .ns-float,
.ns-no-motion .ns-hero::after,
.ns-no-motion .ns-hero__inner::before,
.ns-no-motion .ns-hero__inner::after { animation: none; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
	.ns-hero__copy > *, .ns-hero__visual-col, .ns-reveal, .ns-reveal-item {
		opacity: 1 !important;
		filter: none !important;
		transform: none !important;
	}
}

/* =========================================================
   Homepage sections
   ========================================================= */

/* Section heads */
.ns-section-head { gap: 16px !important; margin-block-end: 28px !important; }
.ns-section-head__titles > * { margin: 0; }
.ns-section-head__titles h2 { margin-block-start: 10px; }
.ns-section-head__link { margin: 0; }

.ns-home > .ns-section { margin-block: 0; }
.ns-home > .ns-ticker + .ns-section { padding-block-start: var(--wp--preset--spacing--70); }

/* Ticker */
.ns-ticker {
	margin: 0 !important;
	overflow: hidden;
	display: flex;
	border-bottom: 1px solid var(--wp--preset--color--border);
	background: color-mix(in srgb, var(--wp--preset--color--base) 51%, var(--wp--preset--color--surface));
	padding-block: 16px;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	        mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ns-ticker__list {
	list-style: none;
	margin: 0;
	padding: 0 24px 0 0;
	display: flex;
	flex: none;
	gap: 48px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: .8125rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--contrast-muted);
	white-space: nowrap;
}
.ns-ticker__list li { display: inline-flex; align-items: center; gap: 48px; margin: 0; }
.ns-ticker__list li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--wp--preset--color--accent); box-shadow: 0 0 8px var(--ns-glow); }
.ns-ticker:not(.is-running) { justify-content: center; }
.ns-ticker:not(.is-running) .ns-ticker__list { flex-wrap: wrap; justify-content: center; gap: 12px 32px; white-space: normal; padding-inline: var(--ns-gutter); }
.ns-ticker:not(.is-running) .ns-ticker__list li { gap: 32px; }
.ns-ticker.is-running .ns-ticker__list { animation: ns-marquee 48s linear infinite; }
.ns-ticker.is-running:hover .ns-ticker__list { animation-play-state: paused; }
@keyframes ns-marquee { to { transform: translateX(-100%); } }

/* Categories (Terms Query) */
.ns-cat-grid .wp-block-term-template {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	counter-reset: ns-cat;
}
@media (min-width: 768px) { .ns-cat-grid .wp-block-term-template { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.ns-cat-grid .wp-block-term { counter-increment: ns-cat; margin: 0; }
.ns-cat-card {
	position: relative;
	height: 100%;
	min-height: 176px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 6px;
	padding: 16px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--ns-radius);
	background: var(--wp--preset--color--surface);
	overflow: hidden;
	isolation: isolate;
	transition: border-color .3s, transform .35s var(--ns-ease);
}
@media (min-width: 768px) { .ns-cat-card { min-height: 196px; padding: 20px; } }
.ns-cat-card > * { margin: 0 !important; }
.ns-cat-card::before {
	content: "";
	position: absolute;
	width: 180px;
	height: 180px;
	right: -60px;
	top: -60px;
	z-index: -1;
	border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--accent) 22%, transparent), transparent 70%);
	opacity: .7;
	transition: transform .5s var(--ns-ease), opacity .3s;
}
.ns-cat-grid .wp-block-term:nth-child(even) .ns-cat-card::before { background: radial-gradient(circle, color-mix(in srgb, var(--wp--preset--color--secondary) 35%, transparent), transparent 70%); }
.ns-cat-card::after {
	content: counter(ns-cat, decimal-leading-zero);
	position: absolute;
	left: 16px;
	top: 14px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: .6875rem;
	letter-spacing: .1em;
	color: var(--wp--preset--color--secondary);
}
@media (min-width: 768px) { .ns-cat-card::after { left: 20px; top: 18px; } }
.ns-cat-card:hover, .ns-cat-card:focus-within { border-color: var(--wp--preset--color--border-strong); transform: translateY(calc(-3px * var(--ns-lift))); }
.ns-cat-card:hover::before, .ns-cat-card:focus-within::before { transform: scale(1.5); opacity: 1; }
.ns-cat-card__name { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.125rem !important; line-height: 1.1; letter-spacing: -.01em; padding-right: 22px; }
@media (min-width: 768px) { .ns-cat-card__name { font-size: 1.3125rem !important; } }
.ns-cat-card__name a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.ns-cat-card__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ns-cat-card__name a::before {
	content: "";
	position: absolute;
	right: 16px;
	bottom: 18px;
	width: 18px;
	height: 18px;
	background: var(--wp--preset--color--accent);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M7 17L17 7M9 7h8v8'/%3E%3C/svg%3E") center / contain no-repeat;
	opacity: 0;
	transform: translate(-6px, 6px);
	transition: opacity .3s, transform .3s var(--ns-ease);
}
.ns-cat-card:hover .ns-cat-card__name a::before, .ns-cat-card:focus-within .ns-cat-card__name a::before { opacity: 1; transform: none; }
.ns-cat-card__desc, .ns-cat-card__desc p { margin: 0; font-size: .84375rem; line-height: 1.4; color: var(--wp--preset--color--contrast-muted); }
.ns-cat-card__count {
	position: absolute;
	right: 16px;
	top: 14px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: .6875rem;
	letter-spacing: .08em;
	color: var(--wp--preset--color--contrast);
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: 999px;
	padding: 2px 8px;
	background: color-mix(in srgb, var(--wp--preset--color--base) 60%, transparent);
}
@media (min-width: 768px) { .ns-cat-card__count { right: 20px; top: 16px; } }

/* Featured products */
.ns-featured { padding-block-start: 0 !important; }

/* Shop by goal */
.ns-goals { border-block: 1px solid var(--wp--preset--color--border); background: radial-gradient(ellipse 50% 60% at 0% 50%, color-mix(in srgb, var(--wp--preset--color--accent) 6%, transparent), transparent 70%); padding-block: var(--wp--preset--spacing--80) !important; }
.ns-goals__inner { gap: var(--wp--preset--spacing--60) !important; margin: 0; }
.ns-goals__intro > * { margin-block: 0; }
.ns-goals__intro h2 { margin-block: 12px 18px !important; }
.ns-goals__lead { color: var(--wp--preset--color--contrast-muted); max-width: 32ch; }
@media (min-width: 782px) { .ns-goals__intro { position: sticky; top: calc(var(--ns-header-h) + 32px + var(--wp-admin--admin-bar--height, 0px)); align-self: flex-start; } }
.ns-goal-list .wp-block-term-template { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--wp--preset--color--border); counter-reset: ns-goal; }
.ns-goal-list .wp-block-term { margin: 0; counter-increment: ns-goal; border-bottom: 1px solid var(--wp--preset--color--border); }
.ns-goal {
	position: relative;
	display: grid;
	grid-template-columns: 2.75rem minmax(0, 1fr) auto;
	grid-template-areas: "num name count" "num desc count";
	align-items: center;
	column-gap: 16px;
	padding: 18px 8px 18px 0;
	isolation: isolate;
}
.ns-goal > * { margin: 0 !important; }
.ns-goal::before {
	content: counter(ns-goal, decimal-leading-zero);
	grid-area: num;
	font-family: var(--wp--preset--font-family--mono);
	font-size: .75rem;
	letter-spacing: .1em;
	color: var(--wp--preset--color--secondary);
	align-self: start;
	padding-top: .9em;
}
.ns-goal::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, color-mix(in srgb, var(--wp--preset--color--accent) 10%, transparent), transparent 70%);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .5s var(--ns-ease);
}
.ns-goal:hover::after, .ns-goal:focus-within::after { transform: scaleX(1); }
.ns-goal__name {
	grid-area: name;
	font-family: var(--wp--preset--font-family--display);
	font-weight: var(--wp--custom--typography--display-weight);
	font-size: clamp(1.9rem, 5vw, 3.75rem) !important;
	line-height: 1;
	letter-spacing: calc(-.03em * var(--wp--custom--typography--tracking));
	transition: transform .45s var(--ns-ease);
}
.ns-goal__name a { color: var(--wp--preset--color--contrast); text-decoration: none; transition: color .3s; }
.ns-goal__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ns-goal:hover .ns-goal__name, .ns-goal:focus-within .ns-goal__name { transform: translateX(10px); }
.ns-goal:hover .ns-goal__name a, .ns-goal:focus-within .ns-goal__name a { color: var(--wp--preset--color--accent); }
.ns-goal__desc, .ns-goal__desc p { grid-area: desc; margin: 6px 0 0; font-family: var(--wp--preset--font-family--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--secondary-light); }
.ns-goal__count {
	grid-area: count;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: .75rem;
	color: var(--wp--preset--color--contrast-muted);
}
.ns-goal__count::after {
	content: "";
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--border-strong);
	background: var(--wp--preset--color--contrast) var(--ns-icon-arrow-on-accent) center / 18px no-repeat;
	background-color: transparent;
	transition: background-color .3s, border-color .3s, transform .4s var(--ns-ease);
	filter: invert(1);
}
.ns-goal:hover .ns-goal__count::after, .ns-goal:focus-within .ns-goal__count::after { filter: none; background-color: var(--wp--preset--color--accent); border-color: var(--wp--preset--color--accent); transform: rotate(-45deg); }

/* Collections */
.ns-coll-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
	.ns-coll-grid { grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; }
	.ns-coll-card--lg { grid-row: span 2; }
}
.ns-coll-grid > * { margin: 0 !important; }
.ns-coll-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: 340px;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: calc(var(--ns-panel-radius) * 1.2);
	overflow: hidden;
	isolation: isolate;
	background: var(--wp--preset--color--surface);
	transition: border-color .3s;
}
.ns-coll-card--lg { min-height: 520px; }
@media (min-width: 900px) { .ns-coll-card--lg { min-height: 720px; } }
.ns-coll-card:hover { border-color: var(--wp--preset--color--border-strong); }
.ns-coll-card__art { position: absolute !important; inset: 0; margin: 0 !important; z-index: -2; }
.ns-coll-card__art img { width: 100%; height: 100%; object-fit: cover; opacity: .7; transition: transform 1.2s var(--ns-ease), opacity .6s; }
.ns-coll-card:hover .ns-coll-card__art img { transform: scale(1.05); opacity: .85; }
.ns-coll-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in srgb, var(--wp--preset--color--base) 15%, transparent) 0%, color-mix(in srgb, var(--wp--preset--color--base) 55%, transparent) 45%, color-mix(in srgb, var(--wp--preset--color--base) 95%, transparent) 100%); }
.ns-coll-card__content { padding: clamp(1.25rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 14px; }
.ns-coll-card__content > * { margin: 0 !important; }
.ns-coll-card__title { font-size: clamp(1.75rem, 3.5vw, 2.75rem) !important; font-weight: var(--wp--custom--typography--display-weight) !important; line-height: 1 !important; letter-spacing: calc(-.03em * var(--wp--custom--typography--tracking)) !important; }
.ns-coll-card--lg .ns-coll-card__title { font-size: clamp(2.25rem, 5vw, 4rem) !important; }
.ns-coll-card__text { color: var(--wp--preset--color--contrast-muted); max-width: 34ch; }
.ns-coll-card .ns-mini-grid { max-width: 520px; }
.ns-coll-card .ns-mini__title { display: none; }

/* About */
.ns-about__inner { gap: var(--wp--preset--spacing--60) !important; margin: 0; }
.ns-about__media { position: relative; }
.ns-about__image { margin: 0; border-radius: calc(var(--ns-panel-radius) * 1.2); overflow: hidden; border: 1px solid var(--wp--preset--color--border); }
.ns-about__image img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.ns-about__tag {
	position: absolute;
	left: 20px;
	bottom: 20px;
	margin: 0;
	font-family: var(--wp--preset--font-family--mono);
	font-size: .75rem;
	letter-spacing: .1em;
	text-transform: uppercase;
	background: color-mix(in srgb, var(--wp--preset--color--base) 80%, transparent);
	-webkit-backdrop-filter: blur(8px);
	        backdrop-filter: blur(8px);
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: var(--ns-button-radius);
	padding: 8px 14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.ns-about__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--wp--preset--color--accent); box-shadow: 0 0 8px var(--ns-glow); }
.ns-about__copy > * { margin-block: 0; }
.ns-about__copy h2 { margin-block: 14px 22px; line-height: .95; letter-spacing: calc(-.03em * var(--wp--custom--typography--tracking)); font-size: clamp(2.1rem, 6.6vw, 4.5rem) !important; }
.ns-about__principles { margin-block: 26px 30px !important; }
.ns-about__principles li { font-size: 1.0625rem; }

/* How it works */
.ns-steps { padding-block-start: var(--wp--preset--spacing--40) !important; }
.ns-steps__grid { position: relative; gap: 14px !important; }
@media (min-width: 900px) { .ns-steps__grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
.ns-step { padding: clamp(1.5rem, 3vw, 2.25rem) !important; min-height: 280px; display: flex; flex-direction: column; }
.ns-step > * { margin: 0 !important; }
.ns-step__num {
	font-family: var(--wp--preset--font-family--display);
	font-weight: var(--wp--custom--typography--display-weight);
	font-size: clamp(3.5rem, 7vw, 5.5rem);
	line-height: .9;
	letter-spacing: calc(-.04em * var(--wp--custom--typography--tracking));
	color: transparent;
	-webkit-text-stroke: 1px var(--wp--preset--color--accent);
	margin-bottom: auto !important;
	padding-bottom: 32px;
}
.ns-step__title { font-size: 1.375rem !important; margin-bottom: 10px !important; }
.ns-step__text { color: var(--wp--preset--color--contrast-muted); font-size: .9375rem; }

/* Science & transparency */
.ns-science__panel {
	border: 1px solid var(--wp--preset--color--border);
	border-radius: calc(var(--ns-panel-radius) * 1.4);
	background: radial-gradient(ellipse 60% 70% at 100% 0%, color-mix(in srgb, var(--wp--preset--color--accent) 8%, transparent), transparent 60%), linear-gradient(180deg, color-mix(in srgb, var(--wp--preset--color--base) 22%, var(--wp--preset--color--surface)), color-mix(in srgb, var(--wp--preset--color--base) 82%, var(--wp--preset--color--surface)));
	padding: clamp(1.5rem, 5vw, 4rem);
	overflow: hidden;
}
.ns-science__inner { gap: var(--wp--preset--spacing--60) !important; margin: 0; }
.ns-science__copy > * { margin-block: 0; }
.ns-science__copy h2 { margin-block: 14px 20px; line-height: .95; letter-spacing: calc(-.03em * var(--wp--custom--typography--tracking)); font-size: clamp(2.1rem, 6.6vw, 4.75rem) !important; }
.ns-specs { margin-block-start: 32px !important; border-top: 1px solid var(--wp--preset--color--border); }
.ns-spec-row {
	display: grid;
	grid-template-columns: 5.5rem 1fr;
	grid-template-areas: "code title" "code text";
	column-gap: 16px;
	padding: 18px 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.ns-spec-row > * { margin: 0 !important; }
@media (min-width: 1100px) { .ns-spec-row { grid-template-columns: 5.5rem 12rem 1fr; grid-template-areas: "code title text"; align-items: baseline; } }
.ns-spec-row__code { grid-area: code; font-family: var(--wp--preset--font-family--mono); font-size: .75rem; letter-spacing: .1em; color: var(--wp--preset--color--accent); padding-top: .2em; }
.ns-spec-row__title { grid-area: title; font-size: 1.0625rem !important; }
.ns-spec-row__text { grid-area: text; color: var(--wp--preset--color--contrast-muted); font-size: .9375rem; }
.ns-science__reports { align-self: flex-start; }
@media (min-width: 782px) { .ns-science__reports { position: sticky; top: calc(var(--ns-header-h) + 32px + var(--wp-admin--admin-bar--height, 0px)); } }
.ns-report-card { border: 1px solid var(--wp--preset--color--border-strong); border-radius: var(--ns-radius); background: color-mix(in srgb, var(--wp--preset--color--surface-raised) 70%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); padding: clamp(1.25rem, 3vw, 1.75rem); }
.ns-report-card > * { margin-block: 0; }
.ns-report-card > * + * { margin-block-start: 16px; }

/* Lab reports block */
.nsc-reports__empty {
	position: relative;
	margin: 0;
	padding: 18px 18px 18px 52px;
	border: 1px dashed var(--wp--preset--color--border-strong);
	border-radius: 12px;
	color: var(--wp--preset--color--contrast-muted);
	font-size: .9375rem;
	line-height: 1.5;
}
.nsc-reports__empty::before {
	content: "";
	position: absolute;
	left: 18px;
	top: 20px;
	width: 20px;
	height: 20px;
	background: var(--wp--preset--color--secondary);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4h11l5 5v19H8z'/%3E%3Cpath d='M19 4v5h5M12 16h8M12 20h8M12 24h4'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 4h11l5 5v19H8z'/%3E%3Cpath d='M19 4v5h5M12 16h8M12 20h8M12 24h4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.nsc-reports__list { gap: 0 !important; border-top: 1px solid var(--wp--preset--color--border); }
.nsc-report { padding: 14px 0; border-bottom: 1px solid var(--wp--preset--color--border); display: grid; gap: 4px; }
.nsc-report__meta { display: flex; justify-content: space-between; font-family: var(--wp--preset--font-family--mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--secondary-light); }
.nsc-report__title { font-family: var(--wp--preset--font-family--display); font-weight: 700; color: var(--wp--preset--color--contrast); text-decoration: none; }
.nsc-report__lab { margin: 0; font-size: .8125rem; color: var(--wp--preset--color--contrast-muted); }
.nsc-report__file { font-family: var(--wp--preset--font-family--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }

/* Reviews */
.ns-reviews-section__note { margin-block: -12px 24px !important; }
.nsc-reviews__summary { display: flex; align-items: baseline; gap: 12px; margin: 0 0 20px; }
.nsc-reviews__avg { font-family: var(--wp--preset--font-family--display); font-weight: var(--wp--custom--typography--display-weight); font-size: 3rem; line-height: 1; color: var(--wp--preset--color--accent); }
.nsc-reviews__of { font-family: var(--wp--preset--font-family--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--contrast-muted); }
.nsc-reviews__list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 14px !important; }
.nsc-review { border: 1px solid var(--wp--preset--color--border); border-radius: var(--ns-radius); background: var(--wp--preset--color--surface); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.nsc-review__stars { color: var(--wp--preset--color--accent); }
.nsc-review__text { margin: 0; padding: 0; border: 0; font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.125rem; line-height: 1.3; }
.nsc-review__by { margin: auto 0 0; display: flex; gap: 10px; align-items: center; font-size: .875rem; }
.nsc-review__verified { font-family: var(--wp--preset--font-family--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--accent); border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent) 35%, transparent); border-radius: 5px; padding: 2px 6px; }
.nsc-review__product { font-family: var(--wp--preset--font-family--mono); font-size: .75rem; color: var(--wp--preset--color--secondary-light); text-decoration: none; }
.nsc-reviews__empty {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.5rem) clamp(4.5rem, 9vw, 7rem);
	border: 1px dashed var(--wp--preset--color--border-strong);
	border-radius: calc(var(--ns-panel-radius) * 1.2);
	background: radial-gradient(ellipse 40% 100% at 0% 50%, color-mix(in srgb, var(--wp--preset--color--accent) 6%, transparent), transparent 70%);
	overflow: hidden;
}
.nsc-reviews__empty::before {
	content: "\201C";
	position: absolute;
	left: clamp(1rem, 3vw, 2rem);
	top: 50%;
	transform: translateY(-38%);
	font-family: var(--wp--preset--font-family--display);
	font-weight: var(--wp--custom--typography--display-weight);
	font-size: clamp(5rem, 10vw, 8rem);
	line-height: 1;
	color: var(--wp--preset--color--accent);
	opacity: .9;
}
.nsc-reviews__empty p { margin: 0; max-width: 46ch; font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--contrast); }
.nsc-reviews__cta {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 22px;
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: var(--ns-button-radius);
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	font-weight: 600;
	transition: border-color .25s, color .25s;
}
.nsc-reviews__cta:hover { border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--accent); }

/* Journal */
.ns-journal__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) {
	.ns-journal__grid { grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; }
	.ns-journal__grid > li:first-child { grid-row: span 2; }
	.ns-journal__grid > li:not(:first-child) .ns-story { display: grid; grid-template-columns: 42% 1fr; align-items: stretch; }
	.ns-journal__grid > li:not(:first-child) .ns-story__image { position: relative; height: 100%; min-height: 220px; }
	.ns-journal__grid > li:not(:first-child) .ns-story__image a { position: absolute; inset: 0; }
	.ns-journal__grid > li:not(:first-child) .ns-story__image img { position: absolute; inset: 0; height: 100% !important; aspect-ratio: auto !important; object-fit: cover; }
	.ns-journal__grid > li:not(:first-child) .ns-story__excerpt { display: none; }
	.ns-journal__grid > li:first-child .ns-story__title { font-size: clamp(1.75rem, 3vw, 2.5rem) !important; }
}
.ns-journal__grid > li { margin: 0; }
.ns-story { position: relative; height: 100%; border: 1px solid var(--wp--preset--color--border); border-radius: var(--ns-radius); background: var(--wp--preset--color--surface); overflow: hidden; transition: border-color .3s; }
.ns-story:hover { border-color: var(--wp--preset--color--border-strong); }
.ns-story > * { margin: 0 !important; }
.ns-story__image { margin: 0; overflow: hidden; }
.ns-story__image img { display: block; width: 100%; transition: transform 1s var(--ns-ease); }
.ns-story:hover .ns-story__image img { transform: scale(1.05); }
.ns-story__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.ns-story__body > * { margin: 0 !important; }
.ns-story__meta { gap: 14px !important; font-family: var(--wp--preset--font-family--mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; }
.ns-story__meta > * { margin: 0 !important; }
.ns-story__meta a { color: var(--wp--preset--color--accent); text-decoration: none; position: relative; z-index: 2; }
.ns-story__title { font-size: 1.375rem !important; line-height: 1.1 !important; }
.ns-story__title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.ns-story__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ns-story__excerpt { color: var(--wp--preset--color--contrast-muted); font-size: .9375rem; }
.ns-story__excerpt .wp-block-post-excerpt__more-text { display: none; }

/* FAQ (core Accordion) */
.ns-faq { border-top: 1px solid var(--wp--preset--color--border); padding-block-start: var(--wp--preset--spacing--70) !important; }
.ns-faq__inner { gap: var(--wp--preset--spacing--60) !important; margin: 0; }
.ns-faq__intro > * { margin-block: 0; }
.ns-faq__intro h2 { margin-block: 12px 18px; }
.ns-faq__lead { color: var(--wp--preset--color--contrast-muted); margin-block-end: 24px !important; max-width: 30ch; }
@media (min-width: 782px) { .ns-faq__intro { position: sticky; top: calc(var(--ns-header-h) + 32px + var(--wp-admin--admin-bar--height, 0px)); align-self: flex-start; } }
.ns-faq__list { border-top: 1px solid var(--wp--preset--color--border); }
.ns-faq__list .wp-block-accordion-item { border-bottom: 1px solid var(--wp--preset--color--border); margin: 0; }
.ns-faq__list .wp-block-accordion-heading { margin: 0; font-size: inherit; }
.ns-faq__list .wp-block-accordion-heading__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 0;
	min-height: 64px;
	background: none;
	border: 0;
	color: var(--wp--preset--color--contrast);
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: clamp(1.05rem, 2vw, 1.3rem);
	line-height: 1.2;
	text-align: left;
	cursor: pointer;
	transition: color .25s;
}
.ns-faq__list .wp-block-accordion-heading__toggle:hover { color: var(--wp--preset--color--accent); }
.ns-faq__list .wp-block-accordion-heading__toggle-title { text-decoration: none !important; }
.ns-faq__list .wp-block-accordion-heading__toggle-icon {
	flex: none;
	width: 36px;
	height: 36px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--border-strong);
	font-family: var(--wp--preset--font-family--body);
	font-weight: 400;
	font-size: 1.25rem;
	transition: transform .35s var(--ns-ease), background-color .3s, color .3s, border-color .3s;
}
.ns-faq__list .wp-block-accordion-item.is-open .wp-block-accordion-heading__toggle-icon,
.ns-faq__list [aria-expanded="true"] .wp-block-accordion-heading__toggle-icon { transform: rotate(45deg); background: var(--wp--preset--color--accent); border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); }
.ns-faq__list .wp-block-accordion-panel { color: var(--wp--preset--color--contrast-muted); padding: 0 56px 22px 0; }
.ns-faq__list .wp-block-accordion-panel p { margin: 0; }

/* Newsletter (Nightshift Core + MailPoet). Hidden when the block renders nothing. */
.ns-newsletter-section:not(:has(.nsc-newsletter)) { display: none; }
.nsc-newsletter.ns-newsletter {
	border-radius: calc(var(--ns-panel-radius) * 1.4);
	background: radial-gradient(ellipse 60% 120% at 100% 0%, color-mix(in srgb, var(--wp--custom--color--highlight) 35%, transparent), transparent 60%), var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
	padding: clamp(1.75rem, 6vw, 4.5rem);
	display: grid;
	gap: 12px 48px;
	grid-template-columns: 1fr;
}
@media (min-width: 900px) { .nsc-newsletter.ns-newsletter { grid-template-columns: 1.2fr 1fr; } .nsc-newsletter.ns-newsletter > :not(.nsc-newsletter__form) { grid-column: 1; } .nsc-newsletter.ns-newsletter .nsc-newsletter__form { grid-column: 2; grid-row: 1 / span 3; align-self: end; } }
.nsc-newsletter.ns-newsletter > * { margin: 0 !important; max-width: none !important; }
.nsc-newsletter.ns-newsletter h2, .nsc-newsletter.ns-newsletter .wp-block-heading { color: var(--wp--preset--color--on-accent); }
.nsc-newsletter.ns-newsletter .is-style-eyebrow { color: var(--wp--preset--color--on-accent); }
.nsc-newsletter.ns-newsletter .is-style-eyebrow::before { background: var(--wp--preset--color--on-accent); }
.nsc-newsletter__form input[type="email"], .nsc-newsletter__form input[type="text"] { background: color-mix(in srgb, var(--wp--preset--color--base) 8%, transparent) !important; border: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 35%, transparent) !important; color: var(--wp--preset--color--on-accent) !important; border-radius: var(--ns-button-radius) !important; }
.nsc-newsletter__form input[type="submit"], .nsc-newsletter__form button { background: var(--wp--preset--color--base) !important; color: var(--wp--preset--color--contrast) !important; border-radius: var(--ns-button-radius) !important; min-height: 52px; padding: 0 26px !important; border: 0 !important; font-weight: 600; cursor: pointer; }

/* Responsive tweaks */
@media (max-width: 781px) {
	.ns-goals__inner, .ns-about__inner, .ns-faq__inner, .ns-science__inner { flex-wrap: wrap !important; }
	.ns-goals__inner > *, .ns-about__inner > *, .ns-faq__inner > *, .ns-science__inner > * { flex-basis: 100% !important; }
	.ns-goal { grid-template-columns: 2rem minmax(0, 1fr) auto; column-gap: 10px; padding-block: 14px; }
	.ns-goal__count { font-size: 0; gap: 0; }
	.ns-goal__count::after { width: 34px; height: 34px; }
	.ns-faq__list .wp-block-accordion-panel { padding-right: 0; }
}

/* Headings never break inside a word; long words shrink via fluid sizes instead. */
h1, h2, h3 { overflow-wrap: normal; word-break: normal; hyphens: manual; }

/* =========================================================
   Section surfaces — subtle steps of the base palette
   ========================================================= */
.wp-block-group.is-style-section-raised {
	background:
		radial-gradient(ellipse 70% 60% at 50% 0%, color-mix(in srgb, var(--wp--preset--color--accent) 4.5%, transparent), transparent 70%),
		linear-gradient(180deg, color-mix(in srgb, var(--wp--preset--color--base) 22%, var(--wp--preset--color--surface)) 0%, color-mix(in srgb, var(--wp--preset--color--base) 51%, var(--wp--preset--color--surface)) 100%);
	border-block: 1px solid var(--wp--preset--color--border);
}
.wp-block-group.is-style-section-deep {
	background:
		radial-gradient(ellipse 50% 60% at 0% 50%, color-mix(in srgb, var(--wp--preset--color--accent) 5%, transparent), transparent 70%),
		var(--wp--custom--color--deep);
	border-block: 1px solid color-mix(in srgb, var(--wp--preset--color--base) 45%, var(--wp--preset--color--border));
	box-shadow: inset 0 24px 48px -32px color-mix(in srgb, var(--wp--custom--color--shadow) 90%, transparent);
}
.ns-home > .is-style-section-raised,
.ns-home > .is-style-section-deep,
.ns-home > .ns-arrivals { padding-block: var(--wp--preset--spacing--80) !important; }
.ns-home > .is-style-section-raised + .ns-section,
.ns-home > .is-style-section-deep + .ns-section,
.ns-home > .ns-arrivals + .ns-section { padding-block-start: var(--wp--preset--spacing--80); }

/* Featured: more presence */
.ns-featured .ns-section-head h2 { font-size: var(--wp--preset--font-size--display); letter-spacing: calc(-.03em * var(--wp--custom--typography--tracking)); }
.ns-featured .ns-products .wc-block-product-template { gap: 18px; }
.ns-featured .ns-card { box-shadow: 0 30px 70px -40px color-mix(in srgb, var(--wp--custom--color--shadow) 90%, transparent); }
.ns-featured .ns-card__title { font-size: 1.375rem; }
.ns-featured .ns-card__media { background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--wp--preset--color--accent) 12%, transparent), transparent 60%), color-mix(in srgb, var(--wp--preset--color--base) 51%, var(--wp--preset--color--surface)); }
@media (min-width: 1024px) { .ns-featured .ns-card__body { padding: 20px 20px 22px; } }

/* =========================================================
   New arrivals rail
   ========================================================= */
.ns-arrivals {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(ellipse 45% 70% at 100% 0%, color-mix(in srgb, var(--wp--preset--color--accent) 14%, transparent), transparent 70%),
		linear-gradient(180deg, color-mix(in srgb, var(--wp--preset--color--base) 65%, var(--wp--preset--color--surface)), var(--wp--custom--color--deep-soft));
	border-block: 1px solid var(--wp--preset--color--border);
}
.ns-arrivals::before {
	content: "NEW";
	position: absolute;
	right: -2vw;
	top: -4vw;
	font-family: var(--wp--preset--font-family--display);
	font-weight: var(--wp--custom--typography--display-weight);
	font-size: clamp(8rem, 26vw, 24rem);
	line-height: 1;
	letter-spacing: calc(-.05em * var(--wp--custom--typography--tracking));
	color: transparent;
	-webkit-text-stroke: 1px color-mix(in srgb, var(--wp--preset--color--accent) 16%, transparent);
	pointer-events: none;
	z-index: 0;
}
.ns-arrivals > * { position: relative; z-index: 1; }
.ns-arrivals__head { gap: 24px !important; margin-block-end: 36px !important; }
.ns-arrivals__titles > * { margin: 0; }
.ns-arrivals__stamp {
	display: inline-flex !important;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px !important;
	padding: 6px 12px;
	border-radius: 999px;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--on-accent);
	font-family: var(--wp--preset--font-family--mono);
	font-size: .71875rem;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.ns-arrivals__stamp::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: ns-pulse 2.4s ease-in-out infinite; }
@keyframes ns-pulse { 50% { opacity: .25; } }
.ns-arrivals__title { line-height: .9 !important; letter-spacing: calc(-.04em * var(--wp--custom--typography--tracking)) !important; }
.ns-arrivals__aside { max-width: 360px; }
.ns-arrivals__aside > * { margin: 0; }
.ns-arrivals__lead { color: var(--wp--preset--color--contrast-muted); margin-bottom: 8px !important; }

.ns-rail { position: relative; margin-block: 0 !important; }
.ns-rail .wc-block-product-template {
	display: flex !important;
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 4px max(var(--ns-gutter), calc((100vw - var(--wp--style--global--wide-size)) / 2)) 28px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: max(var(--ns-gutter), calc((100vw - var(--wp--style--global--wide-size)) / 2));
	scrollbar-width: thin;
	scrollbar-color: var(--wp--preset--color--border-strong) transparent;
	overscroll-behavior-x: contain;
}
.ns-rail .wc-block-product-template > li {
	flex: 0 0 clamp(240px, 78vw, 320px);
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	scroll-snap-align: start;
}
.ns-rail .ns-card::after {
	content: "New";
	position: absolute;
	right: 12px;
	top: 12px;
	z-index: 3;
	padding: 4px 8px;
	border-radius: 6px;
	border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent) 50%, transparent);
	background: color-mix(in srgb, var(--wp--preset--color--base) 75%, transparent);
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--mono);
	font-size: .65625rem;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.ns-card__date {
	font-family: var(--wp--preset--font-family--mono);
	font-size: .6875rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--wp--preset--color--secondary);
	white-space: nowrap;
}
.ns-card__date::before { content: "+ "; color: var(--wp--preset--color--accent); }
.ns-rail__nav {
	position: absolute;
	right: max(var(--ns-gutter), calc((100vw - var(--wp--style--global--wide-size)) / 2));
	top: -84px;
	display: flex;
	gap: 8px;
}
.ns-rail__btn {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--border-strong);
	background: color-mix(in srgb, var(--wp--preset--color--base) 60%, transparent) var(--ns-icon-arrow-contrast) center / 18px no-repeat;
	cursor: pointer;
	transition: background-color .25s, border-color .25s, opacity .25s;
}
.ns-rail__btn--prev { transform: scaleX(-1); }
.ns-rail__btn:hover:not(:disabled) { background-color: var(--wp--preset--color--accent); border-color: var(--wp--preset--color--accent); filter: invert(0); background-image: var(--ns-icon-arrow-on-accent); }
.ns-rail__btn:disabled { opacity: .3; cursor: default; }
@media (max-width: 781px) { .ns-rail__nav { display: none; } }

/* =========================================================
   Goal index (Nightshift Core block)
   ========================================================= */
.nsc-goals { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--wp--preset--color--border); }
.nsc-goal {
	position: relative;
	display: grid;
	grid-template-columns: 2.75rem minmax(0, 1fr) auto auto;
	align-items: center;
	column-gap: 20px;
	padding: 20px 8px 20px 0;
	border-bottom: 1px solid var(--wp--preset--color--border);
	isolation: isolate;
}
.nsc-goal::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, color-mix(in srgb, var(--wp--preset--color--accent) 10%, transparent), transparent 70%);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .5s var(--ns-ease);
}
.nsc-goal:hover::after, .nsc-goal:focus-within::after { transform: scaleX(1); }
.nsc-goal__num { align-self: start; padding-top: .9em; font-family: var(--wp--preset--font-family--mono); font-size: .75rem; letter-spacing: .1em; color: var(--wp--preset--color--secondary); }
.nsc-goal__main { min-width: 0; }
.nsc-goal__name {
	margin: 0;
	font-family: var(--wp--preset--font-family--display);
	font-weight: var(--wp--custom--typography--display-weight);
	font-size: clamp(1.9rem, 5vw, 3.75rem);
	line-height: 1;
	letter-spacing: calc(-.03em * var(--wp--custom--typography--tracking));
	transition: transform .45s var(--ns-ease);
}
.nsc-goal__name a { color: var(--wp--preset--color--contrast); text-decoration: none; transition: color .3s; }
.nsc-goal__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.nsc-goal:hover .nsc-goal__name, .nsc-goal:focus-within .nsc-goal__name { transform: translateX(10px); }
.nsc-goal:hover .nsc-goal__name a, .nsc-goal:focus-within .nsc-goal__name a { color: var(--wp--preset--color--accent); }
.nsc-goal__desc { margin: 8px 0 0; font-family: var(--wp--preset--font-family--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--secondary-light); }
.nsc-goal__cats { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 2; }
.nsc-goal__cats a {
	display: inline-flex;
	align-items: center;
	min-height: 30px;
	padding: 0 10px;
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: var(--ns-button-radius);
	font-size: .75rem;
	color: var(--wp--preset--color--contrast-muted);
	text-decoration: none;
	background: color-mix(in srgb, var(--wp--preset--color--base) 60%, transparent);
	transition: border-color .25s, color .25s;
}
.nsc-goal__cats a:hover { border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--accent); }
.nsc-goal__products { display: flex; }
.nsc-goal__products img {
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 50%;
	border: 2px solid var(--wp--custom--color--deep);
	margin-left: -14px;
	transition: transform .4s var(--ns-ease);
}
.nsc-goal__products img:first-child { margin-left: 0; }
.nsc-goal:hover .nsc-goal__products img { transform: translateX(calc(var(--i, 0) * 4px)); }
.nsc-goal:hover .nsc-goal__products img:nth-child(2) { transform: translateX(6px); }
.nsc-goal:hover .nsc-goal__products img:nth-child(3) { transform: translateX(12px); }
.nsc-goal__count {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: .75rem;
	color: var(--wp--preset--color--contrast-muted);
	white-space: nowrap;
}
.nsc-goal__count::after {
	content: "";
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--border-strong);
	background: var(--ns-icon-arrow-contrast) center / 18px no-repeat;
	transition: background-color .3s, border-color .3s, transform .4s var(--ns-ease);
}
.nsc-goal:hover .nsc-goal__count::after, .nsc-goal:focus-within .nsc-goal__count::after {
	background: var(--wp--preset--color--accent) var(--ns-icon-arrow-on-accent) center / 18px no-repeat;
	border-color: var(--wp--preset--color--accent);
	transform: rotate(-45deg);
}
@media (max-width: 900px) {
	.nsc-goal { grid-template-columns: 2rem minmax(0, 1fr) auto; column-gap: 12px; }
	.nsc-goal__products { display: none; }
}
@media (max-width: 600px) {
	.nsc-goal__count { font-size: 0; gap: 0; }
	.nsc-goal__count::after { width: 36px; height: 36px; }
}

/* =========================================================
   Header search + search dialog
   ========================================================= */
.ns-header__search-text { display: none; }
@media (min-width: 1100px) {
	.ns-header__search .wp-block-search__button {
		width: auto !important;
		padding: 0 8px 0 14px !important;
		gap: 10px;
		border-radius: var(--ns-button-radius) !important;
		border: 1px solid var(--wp--preset--color--border-strong) !important;
		display: inline-flex !important;
		margin-right: 6px !important;
		min-width: 210px;
		justify-content: flex-start;
		color: var(--wp--preset--color--contrast-muted) !important;
	}
	.ns-header__search .ns-header__search-text {
		display: inline;
		font-size: .875rem;
		margin-right: auto;
	}

	.ns-header__search .wp-block-search__button svg { width: 18px; height: 18px; }
	.ns-header__search .wp-block-search__button:hover { border-color: var(--wp--preset--color--accent) !important; color: var(--wp--preset--color--contrast) !important; background: transparent !important; }
}
.ns-search-open { overflow: hidden; }
.ns-search {
	width: min(720px, calc(100vw - 24px));
	max-height: min(80vh, 760px);
	margin: 10vh auto auto;
	padding: 0;
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: calc(var(--ns-panel-radius) * 1.1);
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	box-shadow: 0 40px 120px -20px color-mix(in srgb, var(--wp--custom--color--shadow) 90%, transparent), 0 0 0 1px color-mix(in srgb, var(--wp--preset--color--accent) 5%, transparent);
	overflow: hidden;
}
.ns-search[open] { animation: ns-dialog-in .35s var(--ns-ease); }
.ns-search::backdrop { background: color-mix(in srgb, var(--wp--custom--color--overlay) 72%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
@keyframes ns-dialog-in { from { opacity: 0; transform: translateY(-12px) scale(.98); } to { opacity: 1; transform: none; } }
.ns-search__panel { display: flex; flex-direction: column; max-height: inherit; }
.ns-search__form { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px 14px 20px; border-bottom: 1px solid var(--wp--preset--color--border); }
.ns-search__icon { color: var(--wp--preset--color--accent); flex: none; }
.ns-search__input {
	flex: 1;
	min-width: 0;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 1.25rem !important;
	padding: 10px 0 !important;
	color: var(--wp--preset--color--contrast);
}
.ns-search__input::-webkit-search-cancel-button { display: none; }
.ns-search__close { background: none; border: 0; cursor: pointer; padding: 6px; }
.ns-search__close kbd { font-family: var(--wp--preset--font-family--mono); font-size: .6875rem; border: 1px solid var(--wp--preset--color--border-strong); border-radius: 6px; padding: 3px 7px; color: var(--wp--preset--color--contrast-muted); }
.ns-search__body { overflow-y: auto; padding: 8px 12px 18px; }
.ns-search__status { margin: 10px 8px; font-family: var(--wp--preset--font-family--mono); font-size: .71875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--wp--preset--color--secondary-light); }
.ns-search__status:empty { display: none; }
.ns-search__results { list-style: none; margin: 0; padding: 0; }
.ns-search__item {
	display: grid;
	grid-template-columns: 56px 1fr auto;
	align-items: center;
	gap: 14px;
	padding: 8px;
	border-radius: 12px;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	transition: background-color .2s;
}
.ns-search__item:hover, .ns-search__item:focus-visible { background: var(--wp--preset--color--surface-raised); outline-offset: 0; }
.ns-search__thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: color-mix(in srgb, var(--wp--preset--color--base) 51%, var(--wp--preset--color--surface)); border: 1px solid var(--wp--preset--color--border); }
.ns-search__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ns-search__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ns-search__name { font-family: var(--wp--preset--font-family--display); font-weight: 700; }
.ns-search__meta, .ns-search__oos { font-family: var(--wp--preset--font-family--mono); font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--secondary-light); }
.ns-search__oos { color: var(--wp--custom--color--caution); }
.ns-search__price { font-family: var(--wp--preset--font-family--mono); font-size: .875rem; }
.ns-search__suggest { padding: 10px 8px 0; }
.has-query .ns-search__suggest { border-top: 1px solid var(--wp--preset--color--border); margin-top: 10px; }
.ns-search__label { margin: 4px 0 10px; font-family: var(--wp--preset--font-family--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--secondary); }
.ns-search__chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ns-search__chips a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--wp--preset--color--border-strong); border-radius: var(--ns-button-radius); color: var(--wp--preset--color--contrast); text-decoration: none; font-size: .875rem; transition: border-color .2s, color .2s; }
.ns-search__chips a:hover { border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--accent); }
@media (max-width: 600px) { .ns-search { margin-top: 12px; max-height: calc(100vh - 24px); } .ns-search__item { grid-template-columns: 48px 1fr; } .ns-search__price { grid-column: 2; } }

/* =========================================================
   Phase 5 — content pages
   ========================================================= */

/* Breadcrumbs (WooCommerce breadcrumb block, used site-wide) */
.ns-crumbs-bar { padding-block: 20px 0; margin-block: 0 !important; }
.ns-breadcrumbs { margin: 0 0 4px; }

/* Page hero (default page template, archives, search) */
.ns-page-hero {
	padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 5vw, 3.25rem);
	border-bottom: 1px solid var(--wp--preset--color--border);
	background: radial-gradient(ellipse 50% 90% at 90% 0%, color-mix(in srgb, var(--wp--preset--color--accent) 10%, transparent), transparent 70%);
	margin-block-end: var(--wp--preset--spacing--60) !important;
}
.ns-page-hero__inner > * { margin-block: 0; }
.ns-page-hero__inner > * + * { margin-block-start: 16px; }
.ns-page-hero__title { font-size: var(--wp--preset--font-size--huge) !important; line-height: .9 !important; letter-spacing: calc(-.04em * var(--wp--custom--typography--tracking)) !important; margin-block-start: 14px !important; }
.ns-page-hero__title--md { font-size: var(--wp--preset--font-size--display) !important; }
.ns-page-hero__title--search { font-size: var(--wp--preset--font-size--display) !important; }

/* Editorial hero (inside page content patterns) */
.ns-ed-hero { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2.5rem, 6vw, 4rem); border-bottom: 1px solid var(--wp--preset--color--border); background: radial-gradient(ellipse 55% 100% at 85% 0%, color-mix(in srgb, var(--wp--preset--color--accent) 12%, transparent), transparent 70%); margin-block: 0 var(--wp--preset--spacing--60) !important; }
.ns-ed-hero__inner > * { margin-block: 0; }
.ns-ed-hero__title { margin-block: 16px 22px !important; font-size: var(--wp--preset--font-size--huge) !important; line-height: .9 !important; letter-spacing: calc(-.04em * var(--wp--custom--typography--tracking)) !important; }
.ns-ed-hero__lead { max-width: none; padding-inline-end: max(0px, calc(100% - 46ch)); }

/* Default page content: readable prose */
.ns-page-content { padding-block-end: var(--wp--preset--spacing--80); }
.ns-page-content > *, .ns-legal__content > *, .ns-article__content > * { margin-block: 0; }
.ns-page-content > * + *:where(:not(.ns-lib)), .ns-legal__content > * + *, .ns-article__content > * + * { margin-block-start: 1.15em; }
/* Library sections (patterns with "ns-lib") keep their own typography and spacing inside page content. */
.ns-page-content p:where(:not(.ns-lib *)), .ns-legal__content p, .ns-article__content p, .ns-page-content li:where(:not(.ns-lib *)), .ns-article__content li { color: var(--wp--preset--color--contrast-muted); font-size: 1.0625rem; line-height: 1.7; }
.ns-page-content h2:where(:not(.ns-lib *)), .ns-legal__content h2, .ns-article__content h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-block-start: 1.8em !important; }
.ns-page-content h3:where(:not(.ns-lib *)), .ns-article__content h3 { margin-block-start: 1.6em !important; }
.ns-main--editorial > .wp-block-post-content { padding-block-end: var(--wp--preset--spacing--80); }
.ns-main--editorial > .wp-block-post-content > * { margin-block-start: 0; }

/* Review notice (legal + policy drafts) */
.ns-review-notice {
	position: relative;
	padding: 18px 20px 18px 56px !important;
	border: 1px solid color-mix(in srgb, var(--wp--custom--color--warning) 45%, transparent);
	border-radius: calc(var(--ns-panel-radius) * 0.8);
	background: linear-gradient(180deg, color-mix(in srgb, var(--wp--custom--color--warning) 8%, transparent), color-mix(in srgb, var(--wp--custom--color--warning) 2%, transparent));
	margin-block-end: 2em !important;
}
.ns-review-notice::before {
	content: "!";
	position: absolute;
	left: 18px;
	top: 18px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: var(--wp--custom--color--warning);
	color: var(--wp--preset--color--on-accent);
	font-family: var(--wp--preset--font-family--mono);
	font-weight: 700;
	font-size: .875rem;
}
.ns-review-notice > * { margin: 0 !important; }
.ns-review-notice > * + * { margin-top: 6px !important; }
.ns-review-notice p { font-size: .9375rem !important; color: var(--wp--preset--color--contrast-muted); line-height: 1.55 !important; }
.ns-review-notice .ns-review-notice__title { font-family: var(--wp--preset--font-family--mono); font-size: .75rem !important; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--custom--color--warning) !important; }

/* Legal template */
.ns-legal { gap: var(--wp--preset--spacing--60) !important; padding-block-end: var(--wp--preset--spacing--80); margin-block: 0 !important; }
.ns-legal-meta { gap: 8px !important; font-family: var(--wp--preset--font-family--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--secondary); }
.ns-legal-meta > * { margin: 0 !important; }
.ns-legal-meta .wp-block-post-date { color: var(--wp--preset--color--contrast); }
@media (min-width: 782px) { .ns-legal__aside { position: sticky; top: calc(var(--ns-header-h) + 32px + var(--wp-admin--admin-bar--height, 0px)); align-self: flex-start; } }
.ns-legal__aside-card { border: 1px solid var(--wp--preset--color--border); border-radius: calc(var(--ns-panel-radius) * 0.9); padding: 22px; background: var(--wp--preset--color--surface); }
.ns-legal__aside-card > * { margin-block: 0; }
.ns-legal__aside-card > * + * { margin-block-start: 14px; }
.ns-legal__content { counter-reset: ns-legal; max-width: 760px; }
.ns-legal__content h2 { counter-increment: ns-legal; display: flex; gap: 14px; align-items: baseline; }
.ns-legal__content h2::before { content: counter(ns-legal, decimal-leading-zero); font-family: var(--wp--preset--font-family--mono); font-size: .8125rem; font-weight: 500; letter-spacing: .08em; color: var(--wp--preset--color--accent); }
.ns-legal__content > .ns-review-notice:first-child { margin-top: 0 !important; }

/* Journal index: lead story + grid */
.ns-main--journal .ns-journal-index { padding-block-end: var(--wp--preset--spacing--80); }
.ns-journal-index__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .ns-journal-index__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .ns-journal-index__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ns-journal-index__grid > li { margin: 0; }
@media (min-width: 1024px) {
	.ns-journal-index__grid:not(.ns-journal-index__grid--plain) > li:first-child { grid-column: 1 / -1; }
	.ns-journal-index__grid:not(.ns-journal-index__grid--plain) > li:first-child .ns-story { display: grid; grid-template-columns: 1.3fr 1fr; }
	.ns-journal-index__grid:not(.ns-journal-index__grid--plain) > li:first-child .ns-story__image img { height: 100% !important; aspect-ratio: auto !important; min-height: 420px; object-fit: cover; }
	.ns-journal-index__grid:not(.ns-journal-index__grid--plain) > li:first-child .ns-story__body { padding: clamp(1.5rem, 4vw, 3rem); justify-content: center; }
	.ns-journal-index__grid:not(.ns-journal-index__grid--plain) > li:first-child .ns-story__title { font-size: clamp(2rem, 3.5vw, 3rem) !important; line-height: 1 !important; letter-spacing: calc(-.03em * var(--wp--custom--typography--tracking)) !important; }
}
.ns-chips-nav { margin-block-start: 26px !important; }
.ns-chips-nav .wp-block-term-template { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ns-chips-nav .wp-block-term { margin: 0; }
.ns-chip a {
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--wp--preset--color--border-strong);
	border-radius: var(--ns-button-radius);
	font-family: var(--wp--preset--font-family--body);
	font-size: .875rem;
	font-weight: 500;
	color: var(--wp--preset--color--contrast);
	text-decoration: none;
	transition: border-color .2s, color .2s, background .2s;
}
.ns-chip a:hover { border-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--accent); }
.ns-chip { margin: 0; font-size: inherit !important; }
.ns-empty { color: var(--wp--preset--color--contrast-muted); }

/* Article */
.ns-article { padding-block: clamp(1.5rem, 4vw, 2.5rem) var(--wp--preset--spacing--70); }
.ns-article__head { margin-block-end: var(--wp--preset--spacing--50) !important; }
.ns-article__head > * { margin-block: 0; }
.ns-article__head > * + * { margin-block-start: 18px; }
.ns-article__meta { gap: 16px !important; margin-block-start: 30px !important; font-family: var(--wp--preset--font-family--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--secondary); }
.ns-article__meta > * { margin: 0 !important; }
.ns-article__cat a { color: var(--wp--preset--color--accent); text-decoration: none; }
.ns-article__title { font-size: clamp(2.4rem, 6vw, 5rem) !important; line-height: .95 !important; letter-spacing: calc(-.04em * var(--wp--custom--typography--tracking)) !important; max-width: 18ch; }
.ns-article__lead, .ns-article__lead p { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--contrast-muted); max-width: 56ch; margin: 0; }
.ns-article__lead .wp-block-post-excerpt__more-text { display: none; }
.ns-article__image { margin-block: 0 var(--wp--preset--spacing--60) !important; border-radius: calc(var(--ns-panel-radius) * 1.2); overflow: hidden; border: 1px solid var(--wp--preset--color--border); }
.ns-article__image img { display: block; }
.ns-article__content > p:first-of-type:not(.is-style-fine-print) { font-size: 1.25rem; color: var(--wp--preset--color--contrast); }
.ns-article__content .is-style-fine-print { border: 1px dashed var(--wp--preset--color--border-strong); border-radius: 10px; padding: 10px 14px; }
.ns-article__content blockquote.wp-block-quote { margin-block: 2em; padding-block: 6px; }
.ns-article__content blockquote p { font-family: var(--wp--preset--font-family--display); font-size: clamp(1.4rem, 3vw, 2rem) !important; color: var(--wp--preset--color--contrast) !important; line-height: 1.15 !important; }
.ns-article__foot { margin-block-start: var(--wp--preset--spacing--60) !important; }
.ns-article__foot > * + * { margin-block-start: 24px; }
.ns-article__tags { font-family: var(--wp--preset--font-family--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--wp--preset--color--secondary); }
.ns-article__nav { gap: 12px !important; padding-top: 24px; border-top: 1px solid var(--wp--preset--color--border); }
.ns-article__nav > * { margin: 0 !important; }
.ns-article__nav .wp-block-post-navigation-link { flex: 1 1 260px; border: 1px solid var(--wp--preset--color--border); border-radius: 14px; padding: 16px 18px; transition: border-color .25s; }
.ns-article__nav .wp-block-post-navigation-link:hover { border-color: var(--wp--preset--color--border-strong); }
.ns-article__nav .post-navigation-link-next { text-align: right; }
.ns-article__nav .wp-block-post-navigation-link a { color: var(--wp--preset--color--contrast); text-decoration: none; font-family: var(--wp--preset--font-family--display); font-weight: 700; }
.ns-article__nav .post-navigation-link__label { display: block; font-family: var(--wp--preset--font-family--mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--secondary); font-weight: 400; margin-bottom: 4px; }

/* Search results */
.ns-search-inline { max-width: 620px; margin-block-start: 22px !important; }
.ns-search-inline .wp-block-search__inside-wrapper { gap: 8px; }
.ns-search-inline .wp-block-search__input { border-radius: var(--ns-button-radius); min-height: 52px; padding-inline: 20px; }
.ns-search-inline .wp-block-search__button { margin: 0; }
.ns-search-hint { font-size: .875rem; color: var(--wp--preset--color--secondary-light); }
.ns-results { padding-block-end: var(--wp--preset--spacing--80); }
.ns-results__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--wp--preset--color--border); }
.ns-results__list > li { margin: 0; border-bottom: 1px solid var(--wp--preset--color--border); }
.ns-result { position: relative; display: flex; gap: 20px; padding: 20px 0; align-items: center; }
.ns-result > * { margin: 0 !important; }
.ns-result__image { flex: 0 0 96px; border-radius: 12px; overflow: hidden; border: 1px solid var(--wp--preset--color--border); }
.ns-result__body > * { margin: 0; }
.ns-result__body > * + * { margin-top: 6px; }
.ns-result__type { font-family: var(--wp--preset--font-family--mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--accent); }
.ns-result__title { font-size: 1.375rem !important; }
.ns-result__title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.ns-result__title a::after { content: ""; position: absolute; inset: 0; }
.ns-result:hover .ns-result__title a { color: var(--wp--preset--color--accent); }
.ns-result__excerpt, .ns-result__excerpt p { color: var(--wp--preset--color--contrast-muted); font-size: .9375rem; }
.ns-result__excerpt .wp-block-post-excerpt__more-text { display: none; }

/* 404 */
.ns-404 { position: relative; overflow: hidden; padding-block: clamp(3rem, 9vw, 7rem); border-bottom: 1px solid var(--wp--preset--color--border); }
.ns-404__inner { position: relative; }
.ns-404__inner > * { margin-block: 0; position: relative; z-index: 1; }
.ns-404__inner > * + * { margin-block-start: 18px; }
.ns-404__code {
	position: absolute !important;
	right: -2vw;
	top: 50%;
	transform: translateY(-50%);
	z-index: 0 !important;
	margin: 0 !important;
	font-family: var(--wp--preset--font-family--display);
	font-weight: var(--wp--custom--typography--display-weight);
	font-size: clamp(8rem, 30vw, 26rem);
	line-height: .8;
	letter-spacing: calc(-.06em * var(--wp--custom--typography--tracking));
	color: transparent;
	-webkit-text-stroke: 1px color-mix(in srgb, var(--wp--preset--color--accent) 28%, transparent);
	pointer-events: none;
	user-select: none;
}
.ns-404__title { font-size: var(--wp--preset--font-size--huge) !important; line-height: .9 !important; letter-spacing: calc(-.04em * var(--wp--custom--typography--tracking)) !important; max-width: 10ch; }
.ns-404__actions { gap: 12px; margin-block-start: 28px !important; }

/* Lab results */
.ns-lab-steps { gap: 14px !important; margin-block-end: var(--wp--preset--spacing--60) !important; }
.ns-lab-step { border-top: 1px solid var(--wp--preset--color--accent); padding-top: 18px; }
.ns-lab-step > * { margin-block: 0; }
.ns-lab-step > * + * { margin-block-start: 8px; }
.ns-lab-step__num { font-family: var(--wp--preset--font-family--mono); font-size: .75rem; letter-spacing: .1em; color: var(--wp--preset--color--accent); }
.ns-lab-step h3 { font-size: 1.25rem !important; }
.ns-lab-step p:not(.ns-lab-step__num) { color: var(--wp--preset--color--contrast-muted); font-size: .9375rem; }
.ns-lab-list { padding-block-end: var(--wp--preset--spacing--80); }
.ns-lab-list__title { font-size: var(--wp--preset--font-size--x-large) !important; margin-block-end: 18px !important; }
.ns-lab-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.ns-lab-grid > li { margin: 0; }
.nsc-report-card { position: relative; height: 100%; border: 1px solid var(--wp--preset--color--border); border-radius: var(--ns-radius); background: linear-gradient(180deg, var(--wp--preset--color--surface-raised), var(--wp--preset--color--surface)); padding: 20px; transition: border-color .3s, transform .4s var(--ns-ease); }
.nsc-report-card:hover { border-color: var(--wp--preset--color--border-strong); transform: translateY(calc(-3px * var(--ns-lift))); }
.nsc-report-card > * { margin: 0; }
.nsc-report-card > * + * { margin-top: 8px; }
.nsc-report-card__meta { display: flex; justify-content: space-between; font-family: var(--wp--preset--font-family--mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--secondary-light); }
.nsc-report-card__title { font-family: var(--wp--preset--font-family--display); font-size: 1.25rem; }
.nsc-report-card__title a { color: var(--wp--preset--color--contrast); text-decoration: none; }
.nsc-report-card__title a::after { content: ""; position: absolute; inset: 0; }
.nsc-report-card__lab, .nsc-report-card__products { font-size: .875rem; color: var(--wp--preset--color--contrast-muted); }
.ns-lab-empty { border: 1px dashed var(--wp--preset--color--border-strong); border-radius: calc(var(--ns-panel-radius) * 1.1); padding: clamp(1.5rem, 4vw, 2.5rem); background: radial-gradient(ellipse 40% 100% at 0% 50%, color-mix(in srgb, var(--wp--preset--color--accent) 6%, transparent), transparent 70%); max-width: 760px; }
.ns-lab-empty > * { margin-block: 0; }
.ns-lab-empty > * + * { margin-block-start: 14px; }
.ns-lab-empty p { color: var(--wp--preset--color--contrast-muted); }
.ns-report { padding-block-end: var(--wp--preset--spacing--80); }
.ns-report > * + * { margin-block-start: 28px; }
.nsc-report-details__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 12px; margin: 0; }
.nsc-report-details__facts > div { border: 1px solid var(--wp--preset--color--border); border-radius: 14px; padding: 16px; background: var(--wp--preset--color--surface); }
.nsc-report-details__facts dt { font-family: var(--wp--preset--font-family--mono); font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--secondary-light); }
.nsc-report-details__facts dd { margin: 6px 0 0; font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.125rem; }
.nsc-report-details h2 { font-size: var(--wp--preset--font-size--x-large); margin: 36px 0 14px; }
.nsc-report-details__products ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.nsc-report-details__products a { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid var(--wp--preset--color--border-strong); border-radius: var(--ns-button-radius); color: var(--wp--preset--color--contrast); text-decoration: none; }
.nsc-report-details__products img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.nsc-report-details__results table { width: 100%; border-collapse: collapse; }
.nsc-report-details__results th, .nsc-report-details__results td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--wp--preset--color--border); }
.nsc-report-details__results thead th { font-family: var(--wp--preset--font-family--mono); font-size: .6875rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--wp--preset--color--secondary-light); }
.nsc-report-details__results td { font-family: var(--wp--preset--font-family--mono); }
.nsc-report-details__results tr.is-pass td:last-child { color: var(--wp--preset--color--accent); }
.nsc-report-details__results tr.is-fail td:last-child { color: var(--wp--custom--color--error-soft); }
.nsc-report-details__note, .nsc-report-details__verified { font-size: .8125rem; color: var(--wp--preset--color--secondary-light); }
.nsc-report-details__file { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: var(--ns-button-radius); background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); font-weight: 600; text-decoration: none; margin-top: 24px; }

/* About extras */
.ns-values__grid { gap: 14px !important; }
.ns-value { min-height: 240px; display: flex; flex-direction: column; }
.ns-value > * { margin: 0 !important; }
.ns-quote-band { padding-block: var(--wp--preset--spacing--70) !important; }
.ns-pullquote { border: 0 !important; padding: 0 !important; text-align: left !important; }
.ns-pullquote blockquote { margin: 0; }
.ns-pullquote p { font-size: clamp(2rem, 5.5vw, 4.5rem) !important; line-height: .98 !important; letter-spacing: calc(-.035em * var(--wp--custom--typography--tracking)); max-width: 18ch; }
.ns-pullquote cite { display: block; margin-top: 22px; }
.ns-cta { border: 1px solid var(--wp--preset--color--border-strong); border-radius: calc(var(--ns-panel-radius) * 1.4); padding: clamp(1.75rem, 5vw, 3.5rem) !important; gap: 22px !important; background: radial-gradient(ellipse 50% 120% at 100% 0%, color-mix(in srgb, var(--wp--preset--color--accent) 14%, transparent), transparent 70%), var(--wp--preset--color--surface); }
.ns-cta > * { margin: 0 !important; }
.ns-cta__title { font-size: var(--wp--preset--font-size--display) !important; letter-spacing: calc(-.035em * var(--wp--custom--typography--tracking)) !important; }
.ns-cta .wp-block-buttons { gap: 12px; }
.ns-cta-band { padding-block-start: 0 !important; }

/* Contact */
.ns-contact { gap: clamp(1.5rem, 4vw, 3rem) !important; padding-block-end: var(--wp--preset--spacing--80); margin-block: 0 !important; }
.ns-contact__info > * + * { margin-block-start: 12px; }
.ns-contact-card { border: 1px solid var(--wp--preset--color--border); border-radius: calc(var(--ns-panel-radius) * 0.9); padding: 20px 22px; background: var(--wp--preset--color--surface); }
.ns-contact-card > * { margin: 0; }
.ns-contact-card > * + * { margin-top: 6px; }
.ns-contact-card__value { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.25rem; }
.ns-contact-card__value a { color: var(--wp--preset--color--contrast); }
.ns-contact-card--links ul { margin-top: 10px !important; }

/* Contact form (Nightshift Core) */
.nsc-contact { border: 1px solid var(--wp--preset--color--border-strong); border-radius: calc(var(--ns-panel-radius) * 1.2); padding: clamp(1.25rem, 4vw, 2.25rem); background: linear-gradient(180deg, var(--wp--preset--color--surface-raised), var(--wp--preset--color--surface)); scroll-margin-top: calc(var(--ns-header-h) + 24px); }
.nsc-form { display: grid; gap: 18px; }
.nsc-form__row { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .nsc-form__row { grid-template-columns: 1fr 1fr; } }
.nsc-form__field { display: flex; flex-direction: column; gap: 8px; }
.nsc-form__field label { font-size: .875rem; font-weight: 500; color: var(--wp--preset--color--contrast); }
.nsc-form__field label span { color: var(--wp--preset--color--accent); }
.nsc-form__field input[type="text"], .nsc-form__field input[type="email"], .nsc-form__field select, .nsc-form__field textarea { width: 100%; background: var(--wp--preset--color--base); }
.nsc-form__field select { appearance: none; -webkit-appearance: none; background: var(--wp--preset--color--base) var(--ns-icon-chevron) right 14px center / 16px no-repeat; padding-right: 40px; }
.nsc-form__field textarea { min-height: 160px; resize: vertical; }
.nsc-form__field [aria-invalid="true"] { border-color: var(--wp--custom--color--error) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--custom--color--error) 15%, transparent); }
.nsc-form__error { margin: 0; font-size: .8125rem; color: var(--wp--custom--color--error-soft); }
.nsc-form__error::before { content: "↳ "; }
.nsc-form__hint { margin: 0; font-size: .8125rem; color: var(--wp--preset--color--secondary-light); }
.nsc-form__field--check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.nsc-form__field--check input { width: 22px; height: 22px; min-height: 0; margin: 2px 0 0; accent-color: var(--wp--preset--color--accent); flex: none; }
.nsc-form__field--check label { flex: 1 1 0; font-weight: 400; color: var(--wp--preset--color--contrast-muted); line-height: 1.5; }
.nsc-form__field--check label a { color: var(--wp--preset--color--accent); }
.nsc-form__field--check .nsc-form__error { flex-basis: 100%; }
.nsc-form__required { margin: 0; font-size: .75rem; color: var(--wp--preset--color--secondary); }
.nsc-form__submit { justify-self: start; min-height: 56px; padding: 0 32px; border: 0; border-radius: var(--ns-button-radius); background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); font-family: var(--wp--preset--font-family--body); font-weight: 600; font-size: 1rem; cursor: pointer; transition: transform .3s var(--ns-ease), box-shadow .3s; }
.nsc-form__submit:hover, .nsc-form__submit:focus-visible { transform: translateY(calc(-2px * var(--ns-lift))); box-shadow: 0 10px 40px -6px var(--ns-glow); }
.nsc-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nsc-form__alert { border: 1px solid color-mix(in srgb, var(--wp--custom--color--error) 50%, transparent); border-left: 3px solid var(--wp--custom--color--error); border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; background: color-mix(in srgb, var(--wp--custom--color--error) 6%, transparent); }
.nsc-form__alert p { margin: 0; }
.nsc-form__alert ul { margin: 8px 0 0; padding-left: 18px; }
.nsc-form__alert a { color: var(--wp--custom--color--error-text); }
.nsc-form__success { border: 1px solid color-mix(in srgb, var(--wp--preset--color--accent) 45%, transparent); border-radius: calc(var(--ns-panel-radius) * 0.8); padding: 22px; background: color-mix(in srgb, var(--wp--preset--color--accent) 6%, transparent); }
.nsc-form__success p { margin: 0; color: var(--wp--preset--color--contrast-muted); }
.nsc-form__success-title { font-family: var(--wp--preset--font-family--display); font-weight: var(--wp--custom--typography--display-weight); font-size: 1.5rem; color: var(--wp--preset--color--accent) !important; margin-bottom: 6px !important; }

/* FAQ page */
.ns-faq-page { display: grid; gap: var(--wp--preset--spacing--60); grid-template-columns: 1fr; padding-block-end: var(--wp--preset--spacing--80); }
@media (min-width: 900px) { .ns-faq-page { grid-template-columns: 240px minmax(0, 1fr); } .ns-faq-page__nav { position: sticky; top: calc(var(--ns-header-h) + 32px + var(--wp-admin--admin-bar--height, 0px)); align-self: start; } }
.ns-faq-page > * { margin: 0 !important; }
.ns-faq-page__topics { border-top: 1px solid var(--wp--preset--color--border); }
.ns-faq-page__topics li { margin: 0 !important; border-bottom: 1px solid var(--wp--preset--color--border); }
.ns-faq-page__topics a { display: flex; align-items: center; min-height: 48px; font-weight: 500; }
.ns-faq-page__help { margin-top: 22px !important; }
.ns-faq-page__help p { margin: 0 0 10px; color: var(--wp--preset--color--contrast-muted); }
.ns-faq-group { scroll-margin-top: calc(var(--ns-header-h) + 24px); }
.ns-faq-group + .ns-faq-group { margin-top: var(--wp--preset--spacing--60) !important; }
.ns-faq-group__title { font-size: var(--wp--preset--font-size--x-large) !important; margin: 0 0 8px !important; }
@media (max-width: 899px) { .ns-faq-page__topics { display: flex; flex-wrap: wrap; gap: 8px; border: 0; } .ns-faq-page__topics li { border: 0; } .ns-faq-page__topics a { min-height: 40px; padding: 0 14px; border: 1px solid var(--wp--preset--color--border-strong); border-radius: var(--ns-button-radius); font-size: .875rem; } }

/* Policy page */
.ns-policy { padding-block-end: var(--wp--preset--spacing--80); }
.ns-policy > * + * { margin-block-start: 28px; }
.ns-policy__facts { gap: 12px !important; }
.ns-fact { border: 1px solid var(--wp--preset--color--border); border-radius: calc(var(--ns-panel-radius) * 0.9); padding: 20px; background: var(--wp--preset--color--surface); }
.ns-fact > * { margin: 0; }
.ns-fact > * + * { margin-top: 6px; }
.ns-fact__value { font-family: var(--wp--preset--font-family--display); font-weight: var(--wp--custom--typography--display-weight); font-size: 1.375rem; letter-spacing: -.01em; }
.ns-fact__note { font-size: .875rem; color: var(--wp--preset--color--contrast-muted); }
.ns-policy__h { margin-block-start: var(--wp--preset--spacing--60) !important; }

/* Accent marks never render the browser's yellow highlight (e.g. when inline styles are filtered). */
mark.has-inline-color { background-color: transparent; }
.ns-pullquote cite { font-size: .75rem !important; }
/* Story cards without a featured image get a branded placeholder. */
.ns-story:not(:has(.ns-story__image)) .ns-story__body::before {
	content: "";
	display: block;
	aspect-ratio: 4 / 3;
	margin: -18px -20px 6px;
	background: radial-gradient(circle at 70% 30%, color-mix(in srgb, var(--wp--preset--color--accent) 18%, transparent), transparent 55%), repeating-linear-gradient(90deg, color-mix(in srgb, var(--wp--custom--color--highlight) 3.5%, transparent) 0 1px, transparent 1px 48px), color-mix(in srgb, var(--wp--preset--color--base) 51%, var(--wp--preset--color--surface));
	border-bottom: 1px solid var(--wp--preset--color--border);
}
.ns-policy__facts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)) !important; }
.ns-lab-steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)) !important; }
.ns-values__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)) !important; }
/* Columns in editorial/legal layouts align to the wide width */
.ns-main--editorial .wp-block-post-content > .alignwide, .ns-main--legal > .alignwide { margin-inline: auto !important; }
.nsc-form__row > *, .nsc-form__field { min-width: 0; }

/* Footer: collapsible link groups on small screens (enhanced by ui.js; the
   legal column always stays open). */
@media (max-width: 781px) {
	.ns-footer__cols.is-collapsible { grid-template-columns: 1fr !important; gap: 0 !important; border-top: 1px solid var(--wp--preset--color--border); }
	.ns-footer__cols.is-collapsible .ns-footer__col { border-bottom: 1px solid var(--wp--preset--color--border); }
	.ns-footer__toggle {
		display: flex;
		width: 100%;
		align-items: center;
		justify-content: space-between;
		min-height: 52px;
		padding: 0;
		background: none;
		border: 0;
		color: inherit;
		font: inherit;
		letter-spacing: inherit;
		text-transform: inherit;
		cursor: pointer;
	}
	.ns-footer__toggle::after { content: "+"; font-family: var(--wp--preset--font-family--body); font-size: 1.25rem; color: var(--wp--preset--color--contrast); transition: transform .3s var(--ns-ease); }
	.ns-footer__toggle[aria-expanded="true"]::after { transform: rotate(45deg); }
	.ns-footer__cols.is-collapsible .ns-footer__heading { margin: 0 !important; }
	.ns-footer__cols.is-collapsible .ns-footer__col > .ns-footer__links { padding-bottom: 14px; }
	.ns-footer__cols.is-collapsible .ns-footer__col.is-collapsed > .ns-footer__links { display: none !important; }
	.ns-footer__cols.is-collapsible .ns-footer__col--legal .ns-footer__heading { min-height: 52px; display: flex; align-items: center; }
}

/* Product gallery: shorter on phones so the title and price show sooner. */
@media (max-width: 781px) {
	.ns-pdp__gallery .wc-block-product-gallery-large-image { max-height: 62vw; }
	.ns-pdp__gallery .wc-block-product-gallery-large-image img { max-height: 62vw; object-fit: contain !important; width: 100% !important; }
	.ns-pdp__gallery .wc-block-product-gallery-thumbnails__thumbnail { width: 64px !important; height: 64px !important; }
}
/* Oversized hero titles: scale with the viewport on phones so single long words never overflow. */
@media (max-width: 600px) {
	.ns-ed-hero__title, .ns-page-hero__title, .ns-404__title { font-size: clamp(2rem, 10.5vw, 3.6rem) !important; }
	.ns-page-hero__title--md, .ns-page-hero__title--search { font-size: clamp(2rem, 10vw, 2.8rem) !important; }
	.ns-cta__title { font-size: clamp(2rem, 10vw, 2.6rem) !important; }
}
input, select, textarea, button { box-sizing: border-box; max-width: 100%; }
@media (max-width: 600px) { .ns-404__code { opacity: .5; top: 30%; } }

/* =========================================================
   Phase 5 refinements
   ========================================================= */

/* Placeholder content: obvious in the editor and for logged-in editors on the site. */
.editor-styles-wrapper .is-style-placeholder,
.logged-in .is-style-placeholder {
	outline: 1px dashed color-mix(in srgb, var(--wp--custom--color--warning) 70%, transparent);
	outline-offset: 4px;
	border-radius: 4px;
	background: color-mix(in srgb, var(--wp--custom--color--warning) 6%, transparent);
}
.editor-styles-wrapper .is-style-placeholder::before,
.logged-in .is-style-placeholder::before {
	content: "Placeholder";
	display: block;
	margin-bottom: 4px;
	font-family: var(--wp--preset--font-family--mono);
	font-size: .625rem;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--wp--custom--color--warning);
}

/* About: story split stacks before the text column gets too narrow. */
@media (max-width: 1023px) {
	.ns-about__inner { flex-wrap: wrap !important; }
	.ns-about__inner > .wp-block-column { flex-basis: 100% !important; }
	.ns-about__media .ns-about__image img { aspect-ratio: 16 / 10; }
	.ns-about__copy h2 { max-width: 20ch; }
}
.ns-about__copy h2 { text-wrap: balance; }
.ns-team__grid { gap: 14px !important; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)) !important; }
.ns-person { border: 1px solid var(--wp--preset--color--border); border-radius: var(--ns-radius); padding: 22px; background: var(--wp--preset--color--surface); }
.ns-person > * { margin: 0; }
.ns-person > * + * { margin-top: 8px; }
.ns-person__initials { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--wp--preset--color--surface-raised); border: 1px solid var(--wp--preset--color--border-strong); font-family: var(--wp--preset--font-family--display); font-weight: var(--wp--custom--typography--display-weight); color: var(--wp--preset--color--accent); margin-bottom: 14px !important; }
.ns-person__name { font-size: 1.25rem !important; }
.ns-person__role { color: var(--wp--preset--color--contrast-muted); font-size: .9375rem; }
.ns-team { padding-block-start: var(--wp--preset--spacing--40) !important; }

/* Journal & archives: fluid grid; tracks collapse so 1–2 stories never leave holes. */
.ns-journal-index__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)) !important; }
.ns-journal-index__grid:not(.ns-journal-index__grid--plain) > li:first-child { grid-column: 1 / -1; }
.ns-journal-index__grid:not(.ns-journal-index__grid--plain) > li:first-child .ns-story { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) {
	.ns-journal-index__grid:not(.ns-journal-index__grid--plain) > li:first-child .ns-story { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
	.ns-journal-index__grid:not(.ns-journal-index__grid--plain) > li:first-child .ns-story__image { height: 100%; }
	.ns-journal-index__grid:not(.ns-journal-index__grid--plain) > li:first-child .ns-story__image img { height: 100% !important; aspect-ratio: auto !important; min-height: 320px; object-fit: cover; }
	.ns-journal-index__grid:not(.ns-journal-index__grid--plain) > li:first-child .ns-story__body { padding: clamp(1.5rem, 3.5vw, 3rem); justify-content: center; }
	.ns-journal-index__grid:not(.ns-journal-index__grid--plain) > li:first-child .ns-story__title { font-size: clamp(1.75rem, 3.4vw, 3rem) !important; line-height: 1 !important; letter-spacing: calc(-.03em * var(--wp--custom--typography--tracking)) !important; }
}
/* A single remaining story after the lead becomes a horizontal card instead of a stretched tile. */
@media (min-width: 768px) {
	.ns-journal-index__grid > li:only-child:not(:first-child),
	.ns-journal-index__grid:not(.ns-journal-index__grid--plain) > li:nth-child(2):last-child .ns-story,
	.ns-journal-index__grid--plain > li:only-child .ns-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
	.ns-journal-index__grid:not(.ns-journal-index__grid--plain) > li:nth-child(2):last-child { grid-column: 1 / -1; }
	.ns-journal-index__grid:not(.ns-journal-index__grid--plain) > li:nth-child(2):last-child .ns-story__body { justify-content: center; padding: clamp(1.25rem, 3vw, 2.25rem); }
}
.ns-journal-index__grid--plain { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)) !important; }
.ns-story__title { text-wrap: balance; }

/* Article */
.ns-article__title { text-wrap: balance; }
.ns-article__nav:empty { display: none; }
@media (max-width: 600px) {
	.ns-article__title { font-size: clamp(2rem, 10vw, 2.6rem) !important; }
	.ns-article__nav .wp-block-post-navigation-link { flex-basis: 100%; }
	.ns-article__image { border-radius: calc(var(--ns-panel-radius) * 0.8); }
}

/* Shipping & Returns facts: 4 → 2 → 1 columns, headings never break mid-phrase. */
.ns-policy__facts { grid-template-columns: 1fr !important; }
@media (min-width: 600px) { .ns-policy__facts { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (min-width: 1100px) { .ns-policy__facts { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
.ns-fact { display: flex; flex-direction: column; }
.ns-fact__value { font-size: clamp(1.125rem, 1.6vw, 1.3125rem) !important; line-height: 1.15; text-wrap: balance; overflow-wrap: normal; }
.ns-fact .ns-fact__note { margin-top: auto !important; padding-top: 10px; }
.ns-policy .ns-steps__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)) !important; }
.ns-policy .ns-step { min-height: 0; }
.ns-policy .ns-step__num { padding-bottom: 18px; }

/* Contact: stack earlier; the form decides its own column count from its width. */
@media (max-width: 1023px) {
	.ns-contact { flex-wrap: wrap !important; }
	.ns-contact > .wp-block-column { flex-basis: 100% !important; }
	.ns-contact__info { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
	.ns-contact__info > * + * { margin-block-start: 0 !important; }
}
.nsc-contact { container-type: inline-size; }
.nsc-form__row { grid-template-columns: 1fr !important; }
@container (min-width: 560px) { .nsc-form__row { grid-template-columns: 1fr 1fr !important; } }
.nsc-form__field input, .nsc-form__field select { min-height: 52px; }
.nsc-form__alert:focus, .nsc-form__success:focus { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 3px; }
@media (max-width: 480px) { .nsc-form__submit { width: 100%; } }

/* Search */
.ns-search-scope { gap: 8px; margin-block-start: 18px !important; }
.ns-search-scope .wp-block-button__link { min-height: 44px; padding: 0 18px !important; font-size: .875rem; }
.ns-search-scope__current .wp-block-button__link { background: var(--wp--preset--color--accent) !important; color: var(--wp--preset--color--on-accent) !important; border-color: var(--wp--preset--color--accent) !important; }
.ns-search-scope-foot { gap: 14px !important; padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--70); border-top: 1px solid var(--wp--preset--color--border); margin-top: var(--wp--preset--spacing--50) !important; }
.ns-search-scope-foot p { margin: 0; color: var(--wp--preset--color--contrast-muted); }
@media (max-width: 600px) {
	.ns-result { gap: 14px; align-items: flex-start; }
	.ns-result__image { flex-basis: 64px; }
	.ns-result__title { font-size: 1.125rem !important; }
}

/* 404: decorative numerals never sit behind body text. */
.ns-404__inner > *:not(.ns-404__code) { max-width: min(100%, 640px); }
@media (max-width: 1023px) {
	.ns-404__code {
		position: static !important;
		transform: none;
		font-size: clamp(5rem, 28vw, 10rem);
		line-height: .85;
		margin-bottom: 8px !important;
		opacity: 1;
	}
}

/* Touch targets: plain-text link lists and breadcrumbs get comfortable hit areas. */
.wp-block-list.is-style-plain a, .ns-legal__nav .wp-block-navigation-item__content { display: inline-flex; align-items: center; min-height: 40px; }
.ns-breadcrumbs a { display: inline-block; padding-block: 6px; }
.ns-story__meta a, .ns-article__cat a { display: inline-block; padding-block: 4px; }
.search .ns-shop-hero__title, body.search-results .ns-shop-hero__title, body.search-no-results .ns-shop-hero__title { font-size: var(--wp--preset--font-size--display) !important; overflow-wrap: anywhere; text-wrap: balance; }
.ns-404__title { max-width: 13ch; text-wrap: balance; }
.ns-legal__content h2 { font-size: clamp(1.3rem, 6vw, 2.25rem) !important; overflow-wrap: break-word; }
.nsc-form__field--check input { width: 24px !important; height: 24px !important; }
.ns-card__cat a, .ns-mini__cat a { display: inline-block; padding-block: 5px; }
.ns-card__meta { min-height: 24px; }
.ns-404__title { max-width: none; }
.ns-main--404 .ns-featured { padding-block: var(--wp--preset--spacing--70) !important; }
.ns-result__title a, .ns-card__title a { display: inline-block; padding-block: 3px; }

/* Journal index v2: count-aware grid. The lead story spans the full row; the
   remaining stories fill rows of 3 (desktop) or 2 (tablet) and the last row
   always fills the width — 1 leftover becomes a horizontal card, 2 leftovers split the row. */
.ns-journal-index__grid:not(.ns-journal-index__grid--plain) { grid-template-columns: 1fr !important; }
@media (min-width: 768px) {
	.ns-journal-index__grid:not(.ns-journal-index__grid--plain) { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
	.ns-journal-index__grid:not(.ns-journal-index__grid--plain) > li { grid-column: span 2; }
	.ns-journal-index__grid:not(.ns-journal-index__grid--plain) > li:first-child { grid-column: 1 / -1; }
	/* odd number of stories after the lead → last one full width */
	.ns-journal-index__grid:not(.ns-journal-index__grid--plain) > li:nth-child(2n):last-child { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
	.ns-journal-index__grid:not(.ns-journal-index__grid--plain) { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
	.ns-journal-index__grid:not(.ns-journal-index__grid--plain) > li { grid-column: span 2; }
	.ns-journal-index__grid:not(.ns-journal-index__grid--plain) > li:first-child { grid-column: 1 / -1; }
	.ns-journal-index__grid:not(.ns-journal-index__grid--plain) > li:nth-child(2n):last-child { grid-column: span 2; }
	/* (n-1) % 3 == 1 → last story full width */
	.ns-journal-index__grid:not(.ns-journal-index__grid--plain) > li:nth-child(3n+2):last-child { grid-column: 1 / -1; }
	/* (n-1) % 3 == 2 → last two stories half width each */
	.ns-journal-index__grid:not(.ns-journal-index__grid--plain) > li:nth-child(3n):last-child,
	.ns-journal-index__grid:not(.ns-journal-index__grid--plain) > li:nth-child(3n+2):nth-last-child(2) { grid-column: span 3; }
}
/* Any non-lead story spanning the full row is laid out horizontally. */
@media (min-width: 768px) {
	.ns-journal-index__grid:not(.ns-journal-index__grid--plain) > li:not(:first-child):is(:nth-child(2n):last-child) .ns-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
}
@media (min-width: 1024px) {
	.ns-journal-index__grid:not(.ns-journal-index__grid--plain) > li:not(:first-child):is(:nth-child(2n):last-child) .ns-story { display: block; }
	.ns-journal-index__grid:not(.ns-journal-index__grid--plain) > li:not(:first-child):nth-child(3n+2):last-child .ns-story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
}
.ns-journal-index__grid > li:not(:first-child) .ns-story[style*="grid"], .ns-journal-index__grid > li:not(:first-child) .ns-story { align-items: stretch; }
.ns-journal-index__grid > li:not(:first-child) .ns-story .ns-story__body { justify-content: center; }
.ns-404__inner > .ns-404__title { max-width: none; padding-inline-end: .1em; }
@media (max-width: 600px) {
	body.search .ns-shop-hero__title { font-size: clamp(1.75rem, 8.5vw, 2.4rem) !important; }
}
@media (min-width: 768px) and (max-width: 1199px) {
	.ns-journal-index__grid:not(.ns-journal-index__grid--plain) > li:first-child .ns-story__title { font-size: clamp(1.6rem, 2.9vw, 2.4rem) !important; }
}
@media (max-width: 380px) {
	.ns-card__title { font-size: .9375rem !important; }
}
/* Even rows: principles 4 → 2 → 1, three-step grids 3 → 1, team 3 → 1. */
.ns-values__grid { grid-template-columns: 1fr !important; }
@media (min-width: 600px) { .ns-values__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (min-width: 1100px) { .ns-values__grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
.ns-policy .ns-steps__grid, .ns-steps .ns-steps__grid, .ns-team__grid, .ns-lab-steps { grid-template-columns: 1fr !important; }
@media (min-width: 768px) { .ns-policy .ns-steps__grid, .ns-steps .ns-steps__grid, .ns-team__grid, .ns-lab-steps { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
/* Homepage sections inside post content (Landing template / static front page). */
.ns-home > .wp-block-post-content > .ns-section, .ns-home > .wp-block-post-content > * { margin-block: 0; }
.ns-home > .wp-block-post-content > .is-style-section-raised,
.ns-home > .wp-block-post-content > .is-style-section-deep,
.ns-home > .wp-block-post-content > .ns-arrivals { padding-block: var(--wp--preset--spacing--80) !important; }
.ns-home > .wp-block-post-content > .ns-ticker + .ns-section { padding-block-start: var(--wp--preset--spacing--70); }
/* Site logo next to (or instead of) the title. */
.ns-brand-wrap { gap: 12px !important; flex: none; }
.ns-brand-wrap > * { margin: 0 !important; }
.ns-logo img { max-height: 40px; width: auto; }
.ns-brand-wrap:has(.ns-logo img) .ns-brand { display: none; }
/* Long site titles wrap instead of widening the page. */
.ns-brand-wrap { flex: 0 1 auto; min-width: 0; max-width: 40%; }
.ns-header .ns-brand { flex: 0 1 auto; min-width: 0; }
.ns-brand a { min-width: 0; overflow-wrap: anywhere; }
/* Empty Nightshift menu locations hide their footer column. */
.ns-footer__col:not(:has(a)) { display: none; }
.ns-footer__top-link a { color: var(--wp--preset--color--secondary); text-decoration: none; }
.ns-footer__top-link a:hover { color: var(--wp--preset--color--accent); }
/* Store-driven homepage sections hide themselves until the store has content
   (they always show in the editor). */
body:not(.block-editor-page) .ns-categories:not(:has(.wp-block-term)),
body:not(.block-editor-page) .ns-goals:not(:has(.nsc-goal, .wp-block-term)),
body:not(.block-editor-page) .ns-arrivals:not(:has(.wc-block-product)),
body:not(.block-editor-page) .ns-featured:not(:has(.wc-block-product)) { display: none; }
.ns-footer__wordmark { font-size: var(--ns-wordmark-size, clamp(4.5rem, 19vw, 19rem)) !important; }
.ns-footer__top-link a { display: inline-flex; align-items: center; min-height: 32px; }

/* =========================================================
   Header layouts (template part alternatives)
   ========================================================= */
@media (min-width: 960px) {
	.ns-header--centered .ns-header__inner { display: grid !important; grid-template-columns: 1fr auto 1fr; }
	.ns-header--centered .ns-brand-wrap { justify-self: center; }
	.ns-header--centered .ns-header__actions { justify-self: end; }
}
.ns-header--minimal .ns-header__nav { order: 3; flex: none; margin-left: 4px; }
.ns-header--minimal .ns-header__actions { margin-left: auto; }
.ns-header--minimal .ns-header__nav .wp-block-navigation__responsive-container-open { display: grid; }
.ns-footer__logo { margin: 0; }
.ns-footer__logo img { display: block; max-height: 48px; width: auto; }

/* =========================================================
   Cover text follows the palette
   Core picks white or black text once, when the overlay colour is chosen,
   so a Cover designed in a dark preset keeps white text in a light one.
   When the overlay is a palette colour (50%+), take the text colour from the
   palette instead. Covers with their own text colour are left alone.
   ========================================================= */
.wp-block-cover:not(.has-text-color):has(> .wp-block-cover__background:is(.has-background-dim-50,.has-background-dim-60,.has-background-dim-70,.has-background-dim-80,.has-background-dim-90,.has-background-dim-100):is(.has-base-background-color, .has-surface-background-color, .has-surface-raised-background-color)) { color: var(--wp--preset--color--contrast); }
.wp-block-cover:not(.has-text-color):has(> .wp-block-cover__background:is(.has-background-dim-50,.has-background-dim-60,.has-background-dim-70,.has-background-dim-80,.has-background-dim-90,.has-background-dim-100).has-accent-background-color) { color: var(--wp--preset--color--on-accent); }
.wp-block-cover:not(.has-text-color):has(> .wp-block-cover__background:is(.has-background-dim-50,.has-background-dim-60,.has-background-dim-70,.has-background-dim-80,.has-background-dim-90,.has-background-dim-100).has-contrast-background-color) { color: var(--wp--preset--color--base); }

/* Wide notes (paragraphs cannot use "wide" alignment on WordPress 6.9). */
:is(.ns-footer__notice, .ns-checkout-foot__copy, .ns-reviews-section__note) { max-width: var(--wp--style--global--wide-size) !important; margin-inline: auto !important; padding-inline-end: 0 !important; }
