﻿/**
 * NightMirror Marketing Theme
 *
 * @package NightMirror
 */

/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
	--nm-color-primary: #2a4258;
	--nm-color-primary-dark: #122c41;
	--nm-color-accent: #698a9d;
	--nm-color-page: #f7f8f8;
	--nm-color-surface: #ffffff;
	--nm-color-subtle: #e4e7ea;
	--nm-color-text: #2a4258;
	--nm-color-text-muted: #6b7280;
	--nm-color-border: #e5e7eb;
	--nm-color-danger: #ef4444;
	--nm-color-overlay: rgba(42, 66, 88, 0.45);
	--nm-color-header-bg: rgba(247, 248, 248, 0.92);

	--nm-font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
	--nm-font-body: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	--nm-radius-sm: 0.5rem;
	--nm-radius-md: 1rem;
	--nm-radius-lg: 1.5rem;
	--nm-radius-xl: 2rem;

	--nm-shadow-sm: 0 1px 2px rgba(42, 66, 88, 0.06);
	--nm-shadow-md: 0 8px 24px rgba(42, 66, 88, 0.08);

	--nm-space-xs: 0.5rem;
	--nm-space-sm: 0.75rem;
	--nm-space-md: 1rem;
	--nm-space-lg: 1.5rem;
	--nm-space-xl: 2rem;
	--nm-space-2xl: 3rem;
	--nm-space-3xl: 4rem;

	--nm-container-wide: 70rem;
	--nm-container-page: 60rem;
	--nm-container-reading: 48.75rem;
	--nm-marketing-rail: var(--nm-container-wide);
	--nm-container-gutter: clamp(1rem, 4vw, 2rem);

	--nm-section-space-sm: var(--nm-space-lg);
	--nm-section-space-md: var(--nm-space-xl);
	--nm-section-space-lg: var(--nm-space-2xl);

	--nm-page-top-space: clamp(2.5rem, 6vw, 4.5rem);
	--nm-page-hero-space: clamp(2rem, 5vw, 4rem);
	--nm-content-space: clamp(2rem, 5vw, 4rem);
	--nm-section-space-block: clamp(3rem, 7vw, 5rem);

	--nm-z-header: 100;
	--nm-z-nav-overlay: 210;
	--nm-z-nav-panel: 220;
	--nm-z-nav-mobile: 220;
	--nm-z-skip-link: 100001;

	/* Legacy aliases — header, footer, homepage sections */
	--nm-container: var(--nm-container-wide);
	--nm-container-narrow: var(--nm-container-reading);
	--nm-container-max: var(--nm-container-wide);

	--nm-header-height: 4.5rem;
	--nm-transition: 180ms ease;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	height: 100%;
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	display: flex;
	flex-direction: column;
	min-height: 100%;
	min-height: 100dvh;
	margin: 0;
	font-family: var(--nm-font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--nm-color-text);
	background: var(--nm-color-page);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--nm-color-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.15em;
}

a:hover {
	color: var(--nm-color-accent);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--nm-font-heading);
	font-weight: 700;
	line-height: 1.2;
	color: var(--nm-color-text);
	margin: 0 0 var(--nm-space-md);
}

p {
	margin: 0 0 var(--nm-space-md);
}

ul[role="list"],
ol[role="list"] {
	list-style: none;
	padding: 0;
	margin: 0;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background: var(--nm-color-surface);
	clip: auto !important;
	clip-path: none;
	color: var(--nm-color-primary);
	display: block;
	font-size: 0.875rem;
	height: auto;
	left: var(--nm-space-md);
	line-height: normal;
	padding: var(--nm-space-sm) var(--nm-space-md);
	top: var(--nm-space-md);
	width: auto;
	z-index: 100000;
}

/* Material Symbols */
.material-symbols-outlined,
.nm-icon {
	font-family: "Material Symbols Outlined";
	font-weight: normal;
	font-style: normal;
	font-size: 1.5rem;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	display: inline-block;
	white-space: nowrap;
	word-wrap: normal;
	direction: ltr;
	-webkit-font-smoothing: antialiased;
	font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
	vertical-align: middle;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.nm-container {
	width: 100%;
	max-width: var(--nm-container-wide);
	margin-inline: auto;
	padding-inline: var(--nm-container-gutter);
}

.nm-container--wide {
	max-width: var(--nm-container-wide);
}

.nm-container--page {
	max-width: var(--nm-container-page);
}

.nm-container--reading {
	max-width: var(--nm-container-reading);
}

.nm-container--narrow {
	max-width: var(--nm-container-reading);
}

/* Marketing templates — match official homepage content rail */
.nm-page--default .nm-container--page,
.nm-page--faq .nm-container--page,
.nm-page--features .nm-container--page,
.nm-page--marketing .nm-container--page,
.nm-page--pricing .nm-container--page,
.nm-page--legal .nm-container--page,
.nm-page--blog .nm-container--page,
.nm-page--single .nm-container--page {
	max-width: var(--nm-marketing-rail);
}

.nm-page--legal .nm-content--legal {
	max-width: var(--nm-container-reading);
}

.nm-main {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	width: 100%;
	position: relative;
	z-index: 0;
}

.nm-section {
	padding-block: var(--nm-space-2xl);
}

.nm-section__header {
	margin-bottom: var(--nm-space-xl);
	max-width: 42rem;
}

.nm-section__header--centered {
	text-align: center;
	margin-inline: auto;
}

.nm-section__title {
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	margin-bottom: var(--nm-space-sm);
}

.nm-section__lead {
	font-size: 1.0625rem;
	color: var(--nm-color-text-muted);
	margin-bottom: 0;
}

.nm-section__cta {
	margin-top: var(--nm-space-xl);
	text-align: center;
}

/* ==========================================================================
   Skip link
   ========================================================================== */

.nm-skip-link {
	position: absolute;
	left: -9999px;
	top: var(--nm-space-md);
	z-index: var(--nm-z-skip-link);
	padding: var(--nm-space-sm) var(--nm-space-md);
	background: var(--nm-color-primary);
	color: var(--nm-color-page);
	border-radius: var(--nm-radius-sm);
	font-weight: 700;
	text-decoration: none;
}

.nm-skip-link:focus {
	left: var(--nm-space-md);
}

/* ==========================================================================
   Header & navigation
   ========================================================================== */

.nm-site-header {
	position: sticky;
	top: 0;
	z-index: var(--nm-z-header);
	flex-shrink: 0;
	background: var(--nm-color-header-bg);
	border-bottom: 1px solid var(--nm-color-border);
}

.nm-site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--nm-color-header-bg);
	pointer-events: none;
}

@supports (backdrop-filter: blur(8px)) {
	.nm-site-header::before {
		backdrop-filter: blur(8px);
	}
}

.nm-site-header.is-nav-open {
	z-index: var(--nm-z-nav-mobile);
}

.nm-site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--nm-header-height);
	gap: var(--nm-space-md);
	min-width: 0;
}

.nm-site-header__brand {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	max-width: 55%;
}

.nm-site-header__logo-link,
.nm-site-header__logo img,
.custom-logo-link img {
	display: block;
	max-height: 2.5rem;
	width: auto;
}

.nm-site-header__cta {
	display: none;
	align-items: center;
	gap: var(--nm-space-sm);
}

.nm-nav {
	display: flex;
	align-items: center;
	position: relative;
	z-index: 1;
}

.nm-nav__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--nm-color-primary);
	cursor: pointer;
}

.nm-nav__toggle-icon {
	font-size: 1.75rem;
	line-height: 1;
}

.nm-nav__toggle:focus-visible {
	outline: 2px solid var(--nm-color-accent);
	outline-offset: 2px;
}

.nm-nav__overlay {
	position: fixed;
	inset: 0;
	z-index: var(--nm-z-nav-overlay);
	background: var(--nm-color-overlay);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 260ms ease, visibility 260ms ease;
}

.nm-nav__overlay[hidden] {
	display: none;
}

.nm-nav__overlay.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.nm-nav__panel {
	display: flex;
	flex-direction: column;
	position: fixed;
	top: 0;
	right: 0;
	width: 100vw;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	z-index: var(--nm-z-nav-panel);
	background: var(--nm-color-page);
	border-radius: 0;
	box-shadow: none;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	transform: translateX(100%);
	visibility: hidden;
	pointer-events: none;
	transition:
		transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
		visibility 420ms linear;
}

.nm-nav__panel[hidden] {
	display: none;
}

.nm-nav__panel.is-open {
	transform: translateX(0);
	visibility: visible;
	pointer-events: auto;
}

.nm-nav__panel-bar {
	display: grid;
	grid-template-columns: 2.75rem 1fr 2.75rem;
	align-items: center;
	flex-shrink: 0;
	min-height: var(--nm-header-height);
	padding: 0 var(--nm-space-md);
	background: var(--nm-color-page);
	border-bottom: 1px solid var(--nm-color-border);
}

.nm-nav__panel-brand {
	grid-column: 2;
	justify-self: center;
}

.nm-nav__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--nm-color-primary);
	cursor: pointer;
}

.nm-nav__close:focus-visible {
	outline: 2px solid var(--nm-color-accent);
	outline-offset: 2px;
}

.nm-nav__close-icon {
	font-size: 1.5rem;
	line-height: 1;
}

.nm-nav__panel-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: var(--nm-space-lg);
	padding: var(--nm-space-md) var(--nm-space-lg) var(--nm-space-lg);
	min-height: 0;
}

.nm-nav__panel-brand-link,
.nm-nav__panel-brand .custom-logo-link {
	display: inline-block;
	text-decoration: none;
}

.nm-nav__panel-brand-link img,
.nm-nav__panel-brand .custom-logo {
	display: block;
	max-height: 2.5rem;
	width: auto;
}

body.nm-nav-panel-open {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.nm-nav__overlay,
	.nm-nav__panel {
		transition-duration: 1ms;
	}
}

@media (max-width: 782px) {
	body.admin-bar .nm-nav__panel {
		top: 46px;
		height: calc(100vh - 46px);
		height: calc(100dvh - 46px);
	}
}

@media (min-width: 783px) and (max-width: 959.98px) {
	body.admin-bar .nm-nav__panel {
		top: 32px;
		height: calc(100vh - 32px);
		height: calc(100dvh - 32px);
	}
}

.nm-nav__list {
	display: flex;
	flex-direction: column;
	gap: var(--nm-space-xs);
}

.nm-nav__list a,
.nm-nav__list .nm-nav__link,
#primary-menu a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.5rem;
	padding: var(--nm-space-sm) var(--nm-space-md);
	border: 1px solid transparent;
	border-radius: var(--nm-radius-sm);
	box-sizing: border-box;
	font-weight: 600;
	line-height: 1;
	font-family: var(--nm-font-body);
	white-space: nowrap;
	flex-shrink: 0;
	color: var(--nm-color-text);
	text-decoration: none;
}

.nm-nav__list .current-menu-item > a,
#primary-menu .current-menu-item > a {
	color: var(--nm-color-primary);
	background: transparent;
	box-shadow: inset 0 -2px 0 var(--nm-color-accent);
}

.nm-nav__list a:hover,
.nm-nav__list .nm-nav__link:hover,
#primary-menu a:hover {
	background: transparent;
	color: var(--nm-color-primary);
	outline: none;
	box-shadow: inset 0 -2px 0 var(--nm-color-accent);
}

.nm-nav__list a:focus-visible,
.nm-nav__list .nm-nav__link:focus-visible,
#primary-menu a:focus-visible {
	background: transparent;
	color: var(--nm-color-primary);
	outline: 2px solid var(--nm-color-accent);
	outline-offset: 2px;
	box-shadow: inset 0 -2px 0 var(--nm-color-accent);
}

.nm-nav__actions {
	margin-top: var(--nm-space-lg);
	padding-top: var(--nm-space-lg);
	border-top: 1px solid var(--nm-color-border);
	display: flex;
	flex-direction: column;
	gap: var(--nm-space-md);
}

/* Language switcher (custom Polylang renderer) */
.nm-lang-switch {
	position: relative;
	min-height: 0;
}

.nm-lang-switch__trigger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	min-height: 2.5rem;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--nm-color-border);
	border-radius: var(--nm-radius-sm);
	background: var(--nm-color-surface);
	color: var(--nm-color-primary);
	font-family: var(--nm-font-body);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background var(--nm-transition), border-color var(--nm-transition), color var(--nm-transition);
}

.nm-lang-switch__trigger:hover {
	background: var(--nm-color-subtle);
}

.nm-lang-switch__trigger:focus-visible {
	outline: 2px solid var(--nm-color-accent);
	outline-offset: 2px;
}

/* Header — desktop visual refinement (>= 1200px only) */
@media (min-width: 1200px) {
	.nm-site-header__cta {
		gap: 0.75rem;
		flex-shrink: 0;
	}
}

.nm-lang-switch__caret {
	font-size: 0.75rem;
	line-height: 1;
	opacity: 0.75;
}

.nm-lang-switch__menu {
	position: absolute;
	top: calc(100% + 0.35rem);
	right: 0;
	z-index: calc(var(--nm-z-header) + 2);
	min-width: 11rem;
	margin: 0;
	padding: 0.35rem;
	list-style: none;
	border: 1px solid var(--nm-color-border);
	border-radius: var(--nm-radius-sm);
	background: var(--nm-color-surface);
	box-shadow: var(--nm-shadow-md);
}

.nm-lang-switch__menu[hidden] {
	display: none;
}

.nm-lang-switch__item {
	margin: 0;
}

.nm-lang-switch__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	min-height: 2.5rem;
	padding: 0.5rem 0.75rem;
	border-radius: calc(var(--nm-radius-sm) - 0.125rem);
	box-sizing: border-box;
	color: var(--nm-color-text);
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}

.nm-lang-switch__link:hover,
.nm-lang-switch__link:focus-visible {
	background: var(--nm-color-subtle);
	color: var(--nm-color-primary);
	outline: none;
	box-shadow: inset 0 0 0 2px var(--nm-color-accent);
}

.nm-lang-switch__link[aria-current="true"] {
	background: var(--nm-color-subtle);
	color: var(--nm-color-primary);
}

.nm-lang-switch__code {
	font-weight: 800;
	letter-spacing: 0.04em;
}

.nm-lang-switch__name {
	font-weight: 600;
}

.nm-lang-switch__flag {
	display: block;
	flex-shrink: 0;
	width: 16px;
	height: 11px;
	object-fit: cover;
	border-radius: 1px;
}

.nm-lang-switch--mobile {
	width: 100%;
}

.nm-lang-switch--mobile .nm-lang-switch__label {
	margin: 0 0 var(--nm-space-xs);
	padding: 0 var(--nm-space-md);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nm-color-text-muted);
}

.nm-lang-switch--mobile .nm-lang-switch__list {
	display: grid;
	gap: var(--nm-space-xs);
	margin: 0;
	padding: 0;
	list-style: none;
}

.nm-lang-switch--mobile .nm-lang-switch__link {
	justify-content: center;
	width: 100%;
	min-height: 2.75rem;
	padding: var(--nm-space-sm) var(--nm-space-md);
	border: 1px solid transparent;
	border-radius: var(--nm-radius-sm);
	font-size: 0.9375rem;
}

.nm-lang-switch--footer {
	margin-top: var(--nm-space-md);
}

.nm-lang-switch--footer .nm-lang-switch__list--inline {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nm-lang-switch--footer .nm-lang-switch__link {
	width: auto;
	min-height: auto;
	padding: 0;
	color: #b0c9e4;
	font-size: 0.875rem;
	font-weight: 600;
}

.nm-lang-switch--footer .nm-lang-switch__link:hover,
.nm-lang-switch--footer .nm-lang-switch__link:focus-visible {
	background: transparent;
	color: #ffffff;
	box-shadow: none;
	text-decoration: underline;
}

.nm-nav__actions .nm-lang-switch--mobile {
	padding-top: 0;
	border-top: 0;
}

.nm-nav__actions:has(.nm-lang-switch--mobile) {
	border-top: 1px solid var(--nm-color-border);
}

.nm-nav__actions .nm-lang-switch--mobile + .nm-btn {
	width: 100%;
	margin-top: var(--nm-space-md);
	padding-top: var(--nm-space-lg);
	border-top: 1px solid var(--nm-color-border);
}

.nm-menu-admin-hint {
	margin: 0;
	padding: var(--nm-space-sm) var(--nm-space-md);
	font-size: 0.8125rem;
	font-style: italic;
	color: var(--nm-color-text-muted);
}

.nm-site-footer .nm-menu-admin-hint {
	padding: 0;
	color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.nm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--nm-space-xs);
	min-height: 3rem;
	padding: 0.75rem 1.25rem;
	border-radius: var(--nm-radius-md);
	font-family: var(--nm-font-body);
	font-size: 0.9375rem;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background var(--nm-transition), color var(--nm-transition), border-color var(--nm-transition), transform var(--nm-transition);
}

.nm-btn:focus-visible {
	outline: 2px solid var(--nm-color-accent);
	outline-offset: 2px;
}

.nm-btn--primary {
	background: var(--nm-color-primary);
	color: var(--nm-color-page);
}

.nm-btn--primary:hover {
	background: #1f3345;
	color: var(--nm-color-page);
}

.nm-btn--secondary {
	background: var(--nm-color-subtle);
	color: var(--nm-color-primary);
	border-color: var(--nm-color-border);
}

.nm-btn--secondary:hover {
	background: #d8dde2;
	color: var(--nm-color-primary);
}

.nm-btn--ghost {
	background: transparent;
	color: var(--nm-color-primary);
	border-color: var(--nm-color-border);
}

.nm-btn--ghost:hover {
	background: var(--nm-color-surface);
}

.nm-btn--outline {
	background: transparent;
	color: var(--nm-color-primary);
	border-color: var(--nm-color-primary);
}

.nm-btn--outline:hover {
	background: var(--nm-color-surface);
	color: var(--nm-color-primary-dark);
	border-color: var(--nm-color-primary-dark);
}

.nm-btn--light {
	background: var(--nm-color-surface);
	color: var(--nm-color-primary-dark);
	border-color: transparent;
}

.nm-btn--light:hover {
	background: #eef2f4;
	color: var(--nm-color-primary-dark);
}

.nm-btn--sm {
	min-height: 2.5rem;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
}

.nm-btn--lg {
	min-height: 3rem;
	padding: 0.875rem 1.5rem;
}


/* ==========================================================================
   Cards
   ========================================================================== */

.nm-card {
	background: var(--nm-color-surface);
	border: 1px solid var(--nm-color-border);
	border-radius: var(--nm-radius-lg);
	padding: var(--nm-space-lg);
	box-shadow: var(--nm-shadow-sm);
}

.nm-card__title {
	font-size: 1.125rem;
	margin-bottom: var(--nm-space-sm);
}

.nm-card__title a {
	text-decoration: none;
	color: inherit;
}

.nm-card__title a:hover {
	color: var(--nm-color-accent);
}

.nm-card__text {
	color: var(--nm-color-text-muted);
	font-size: 0.9375rem;
	margin-bottom: 0;
}

.nm-card__meta {
	font-size: 0.8125rem;
	color: var(--nm-color-text-muted);
	margin-bottom: var(--nm-space-sm);
}

.nm-card--highlight {
	background: linear-gradient(135deg, var(--nm-color-surface) 0%, #f0f3f5 100%);
	border-color: #d5dce3;
	padding: var(--nm-space-xl);
}

.nm-card--cta {
	text-align: center;
	padding: var(--nm-space-2xl) var(--nm-space-xl);
	background: linear-gradient(160deg, var(--nm-color-surface) 0%, #eef2f4 100%);
	border-radius: var(--nm-radius-xl);
}

.nm-card--trust {
	padding: var(--nm-space-xl);
}

.nm-card--featured {
	border-color: var(--nm-color-accent);
	box-shadow: var(--nm-shadow-md);
}

.nm-card__media {
	display: block;
	margin: calc(var(--nm-space-lg) * -1) calc(var(--nm-space-lg) * -1) var(--nm-space-md);
	border-radius: var(--nm-radius-lg) var(--nm-radius-lg) 0 0;
	overflow: hidden;
}

.nm-card__media img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.nm-faq-list {
	display: grid;
	gap: var(--nm-space-sm);
}

.nm-faq-item {
	border: 1px solid var(--nm-color-border);
	border-radius: var(--nm-radius-md);
	background: var(--nm-color-surface);
	overflow: hidden;
}

.nm-faq-item__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--nm-space-md);
	padding: var(--nm-space-md) var(--nm-space-lg);
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.nm-faq-item__question::-webkit-details-marker {
	display: none;
}

.nm-faq-item__question:focus-visible {
	outline: 2px solid var(--nm-color-accent);
	outline-offset: -2px;
}

.nm-faq-item[open] .nm-faq-item__icon {
	transform: rotate(180deg);
}

.nm-faq-item__answer {
	padding: 0 var(--nm-space-lg) var(--nm-space-lg);
	color: var(--nm-color-text-muted);
}

.nm-faq-item__answer p {
	margin: 0;
}

/* ==========================================================================
   Generic page templates & Gutenberg content
   ========================================================================== */

.nm-page {
	padding-bottom: var(--nm-section-space-block);
}

.nm-page__hero {
	padding-block: var(--nm-page-top-space) var(--nm-page-hero-space);
	background: linear-gradient(180deg, #f7f8f8 0%, rgba(247, 248, 248, 0) 100%);
}

/* Standard pages: tighter H1-to-content rhythm (not 404) */
.nm-page:not(.nm-page--404) .nm-page__hero:not(.nm-page__hero--compact) {
	padding-block: clamp(1.75rem, 5vw, 2.5rem) clamp(0.75rem, 2.5vw, 1.25rem);
}

.nm-page:not(.nm-page--404) .nm-page__content {
	padding-top: clamp(1rem, 2.5vw, 1.25rem);
}

.nm-page__hero--compact {
	padding-block: var(--nm-page-top-space) var(--nm-content-space);
}

.nm-page__eyebrow {
	margin: 0 0 var(--nm-space-sm);
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--nm-color-text-muted);
}

.nm-page__title {
	font-size: clamp(1.75rem, 6vw, 2.75rem);
	margin: 0;
}

.nm-page__intro {
	margin-top: var(--nm-space-md);
	font-size: 1rem;
	color: var(--nm-color-text-muted);
	max-width: 42rem;
}

.nm-page__content {
	padding-top: var(--nm-content-space);
	padding-bottom: var(--nm-content-space);
}

.nm-page--marketing .nm-page__content,
.nm-page--features .nm-page__content,
.nm-page--pricing .nm-page__content,
.nm-page--faq .nm-page__content,
.nm-page--legal .nm-page__content,
.nm-page--blog .nm-page__content {
	padding-bottom: var(--nm-content-space);
}

.nm-content {
	display: grid;
	gap: var(--nm-space-md);
	/* Page/article templates already set width via .nm-container; avoid a second narrow content column inside Groups. */
	--wp--style--global--content-size: 100%;
	--wp--style--global--wide-size: 100%;
}

.nm-content > *:first-child {
	margin-top: 0;
}

.nm-content > *:last-child {
	margin-bottom: 0;
}

.nm-content h2,
.nm-content h3 {
	margin: var(--nm-space-lg) 0 var(--nm-space-sm);
	color: var(--nm-color-primary-dark);
}

.nm-content p,
.nm-content ul,
.nm-content ol {
	margin: 0 0 var(--nm-space-md);
}

.nm-content ul,
.nm-content ol {
	padding-left: 1.25rem;
}

.nm-content a {
	color: var(--nm-color-primary);
}

.nm-content a:hover,
.nm-content a:focus-visible {
	color: var(--nm-color-accent);
}

.nm-content .wp-block-group,
.nm-content .wp-block-columns {
	margin-block: var(--nm-space-md);
}

/* Gutenberg Group: full content width unless alignwide / alignfull is explicit */
.nm-content .wp-block-group.is-layout-constrained:not(.alignwide):not(.alignfull),
.nm-content .wp-block-group.wp-block-group-is-layout-constrained:not(.alignwide):not(.alignfull),
.nm-content .wp-block-group.is-layout-flow,
.nm-content .wp-block-group-is-layout-flow {
	max-width: none;
	width: 100%;
}

.nm-content .wp-block-group__inner-container {
	max-width: none;
	width: 100%;
	margin-inline: 0;
}

.nm-content :where(.wp-block-group.is-layout-constrained, .wp-block-group-is-layout-constrained):not(.alignwide):not(.alignfull) > :where(:not(.alignleft):not(.alignright):not(.alignfull):not(.alignwide)) {
	max-width: none;
	margin-inline: 0;
}

.nm-content .wp-block-columns {
	max-width: none;
	width: 100%;
}

.nm-content > .alignwide,
.nm-content .wp-block-group.alignwide,
.nm-content .wp-block-columns.alignwide {
	width: 100%;
	max-width: 100%;
	margin-inline: auto;
}

.nm-content .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: var(--nm-space-sm);
	margin-top: var(--nm-space-md);
}

.nm-content .wp-block-button__link {
	background: var(--nm-color-primary);
	color: var(--nm-color-page);
	border: 1px solid transparent;
	border-radius: var(--nm-radius-md);
	font-family: var(--nm-font-body);
	font-size: 0.9375rem;
	font-weight: 800;
	line-height: 1.2;
	padding: 0.75rem 1.25rem;
	text-decoration: none;
}

.nm-content .wp-block-button__link:hover,
.nm-content .wp-block-button__link:focus-visible {
	background: #1f3345;
	color: var(--nm-color-page);
}

.nm-content details {
	border: 1px solid var(--nm-color-border);
	border-radius: var(--nm-radius-md);
	background: var(--nm-color-surface);
	padding: var(--nm-space-sm) var(--nm-space-md);
}

.nm-content details + details {
	margin-top: var(--nm-space-sm);
}

.nm-content summary {
	cursor: pointer;
	font-weight: 700;
	color: var(--nm-color-text);
}

.nm-content summary:focus-visible {
	outline: 2px solid var(--nm-color-accent);
	outline-offset: 2px;
	border-radius: var(--nm-radius-sm);
}

/* --------------------------------------------------------------------------
   Gutenberg content styling — marketing pages (scoped; not homepage/blog/legal)
   -------------------------------------------------------------------------- */

.nm-page:not(.nm-page--legal) .nm-content {
	--nm-gutenberg-section-gap: var(--nm-space-xl);
	--nm-gutenberg-card-gap: var(--nm-space-md);
	--nm-gutenberg-card-padding: var(--nm-space-lg);
	gap: var(--nm-gutenberg-section-gap);
}

/* Group blocks: section rhythm without extra horizontal narrowing */
.nm-page:not(.nm-page--legal) .nm-content > .wp-block-group,
.nm-page:not(.nm-page--legal) .nm-content > .wp-block-columns {
	margin-block: 0;
}

.nm-page:not(.nm-page--legal) .nm-content .wp-block-group .wp-block-group {
	margin-block: var(--nm-space-lg);
}

.nm-page:not(.nm-page--legal) .nm-content .wp-block-group .wp-block-group__inner-container {
	display: grid;
	gap: var(--nm-space-sm);
}

.nm-page:not(.nm-page--legal) .nm-content .wp-block-group > :where(.wp-block-group__inner-container, .wp-block-group-is-layout-flow) > :where(h2, h3):first-child {
	margin-top: 0;
}

.nm-page:not(.nm-page--legal) .nm-content .wp-block-group > :where(.wp-block-group__inner-container, .wp-block-group-is-layout-flow) > :where(h2, h3):last-child {
	margin-bottom: var(--nm-space-xs);
}

.nm-page:not(.nm-page--legal) .nm-content .wp-block-group > :where(.wp-block-group__inner-container, .wp-block-group-is-layout-flow) > :where(p, ul, ol):last-child,
.nm-page:not(.nm-page--legal) .nm-content .wp-block-group > :where(.wp-block-group__inner-container, .wp-block-group-is-layout-flow) > .wp-block-buttons:last-child {
	margin-bottom: 0;
}

/* Column card grid — Features (not legal/blog/homepage) */
.nm-page--features .nm-content .wp-block-columns {
	gap: var(--nm-gutenberg-card-gap);
}

.nm-page--features .nm-content .wp-block-column {
	background: var(--nm-color-surface);
	border: 1px solid var(--nm-color-border);
	border-radius: var(--nm-radius-lg);
	box-shadow: var(--nm-shadow-sm);
	padding: var(--nm-gutenberg-card-padding);
}

.nm-page--features .nm-content .wp-block-column > :first-child {
	margin-top: 0;
}

.nm-page--features .nm-content .wp-block-column > :last-child {
	margin-bottom: 0;
}

.nm-page--features .nm-content .wp-block-column .wp-block-column {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
}

/* Image-first cards — shared base (step + feature + pricing proof; opt-in via .nm-image-card) */
.nm-page--marketing .nm-content .nm-image-card.nm-step-card,
.nm-page--features .nm-content .nm-image-card.nm-feature-card,
.nm-page--pricing .nm-content .nm-image-card.nm-proof-card {
	position: relative;
	background: var(--nm-color-surface);
	border: 1px solid rgba(42, 66, 88, 0.1);
	border-radius: 1.375rem;
	box-shadow:
		0 1px 2px rgba(42, 66, 88, 0.04),
		0 6px 20px rgba(42, 66, 88, 0.07);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 0;
}

.nm-page--marketing .nm-content .nm-image-card.nm-step-card :where(.wp-block-image, figure.wp-block-image),
.nm-page--features .nm-content .nm-image-card.nm-feature-card :where(.wp-block-image, figure.wp-block-image),
.nm-page--pricing .nm-content .nm-image-card.nm-proof-card :where(.wp-block-image, figure.wp-block-image) {
	position: relative;
	margin: 0;
	max-width: none;
	width: 100%;
}

.nm-page--marketing .nm-content .nm-image-card.nm-step-card img,
.nm-page--features .nm-content .nm-image-card.nm-feature-card img,
.nm-page--pricing .nm-content .nm-image-card.nm-proof-card img {
	display: block;
	width: 100%;
	max-width: none;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

/* How it works — image-first step cards (requires Gutenberg classes on each column) */
.nm-page--marketing .nm-content .wp-block-columns:has(> .wp-block-column.nm-step-card) {
	gap: clamp(1.125rem, 3vw, 1.5rem);
}

.nm-page--marketing .nm-content .nm-image-card.nm-step-card {
	--nm-step-card-pad: clamp(1.125rem, 3vw, 1.5rem);
	--nm-step-number-size: clamp(3.25rem, 8vw, 4.25rem);
	--nm-step-func-size: clamp(2.375rem, 5.5vw, 2.875rem);
	--nm-step-func-glyph: clamp(1.125rem, 2.5vw, 1.375rem);
	--nm-step-content-offset: clamp(1.5rem, 3.5vw, 1.875rem);
}

/* Step number badge — top-left over image (card ::before) */
.nm-page--marketing .nm-content .nm-image-card.nm-step-card::before {
	content: var(--nm-step-number);
	position: absolute;
	top: clamp(0.875rem, 2.5vw, 1rem);
	left: clamp(0.875rem, 2.5vw, 1rem);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: var(--nm-step-number-size);
	height: var(--nm-step-number-size);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid rgba(105, 138, 157, 0.2);
	box-shadow: 0 2px 12px rgba(42, 66, 88, 0.1);
	font-family: var(--nm-font-heading);
	font-size: clamp(1rem, 2.4vw, 1.3125rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.04em;
	color: var(--nm-color-primary-dark);
	pointer-events: none;
}

/* Functional icon badge — lower-left, overlaps image/content boundary (figure ::after) */
.nm-page--marketing .nm-content .nm-image-card.nm-step-card :where(.wp-block-image, figure.wp-block-image)::after {
	content: "";
	position: absolute;
	left: clamp(0.875rem, 2.5vw, 1.125rem);
	bottom: calc(var(--nm-step-func-size) * -0.45);
	z-index: 3;
	width: var(--nm-step-func-size);
	height: var(--nm-step-func-size);
	border-radius: 50%;
	background-color: #f3f5f8;
	background-image: var(--nm-step-icon);
	background-repeat: no-repeat;
	background-position: center;
	background-size: var(--nm-step-func-glyph);
	border: 1px solid rgba(105, 138, 157, 0.24);
	box-shadow: 0 3px 12px rgba(42, 66, 88, 0.12);
	pointer-events: none;
}

.nm-page--marketing .nm-content .nm-step-card--share {
	--nm-step-number: "01";
	--nm-step-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23698a9d' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a3 3 0 0 0-3 3v7a3 3 0 0 0 6 0V5a3 3 0 0 0-3-3Z'/%3E%3Cpath d='M19 11v1a7 7 0 0 1-14 0v-1'/%3E%3Cline x1='12' x2='12' y1='19' y2='22'/%3E%3Cline x1='8' x2='16' y1='22' y2='22'/%3E%3C/svg%3E");
}

.nm-page--marketing .nm-content .nm-step-card--style {
	--nm-step-number: "02";
	--nm-step-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23698a9d' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' x2='4' y1='21' y2='14'/%3E%3Cline x1='4' x2='4' y1='10' y2='3'/%3E%3Cline x1='12' x2='12' y1='21' y2='12'/%3E%3Cline x1='12' x2='12' y1='8' y2='3'/%3E%3Cline x1='20' x2='20' y1='21' y2='16'/%3E%3Cline x1='20' x2='20' y1='12' y2='3'/%3E%3Cline x1='1' x2='7' y1='14' y2='14'/%3E%3Cline x1='9' x2='15' y1='8' y2='8'/%3E%3Cline x1='17' x2='23' y1='16' y2='16'/%3E%3C/svg%3E");
}

.nm-page--marketing .nm-content .nm-step-card--result {
	--nm-step-number: "03";
	--nm-step-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23698a9d' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 13.5 8.5 19 10l-5.5 1.5L12 17l-1.5-5.5L5 10l5.5-1.5L12 3Z'/%3E%3Cpath d='M5 3 5.6 5.4 8 6l-2.4.6L5 9l-.6-2.4L2 6l2.4-.6L5 3Z'/%3E%3Cpath d='M19 15l.8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8L19 15Z'/%3E%3C/svg%3E");
}

.nm-page--marketing .nm-content .nm-step-card--save {
	--nm-step-number: "04";
	--nm-step-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23698a9d' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

.nm-page--marketing .nm-content .nm-image-card.nm-step-card > :where(h2, h3, h4, p, ul, ol):not(.wp-block-image),
.nm-page--features .nm-content .nm-image-card.nm-feature-card > :where(h2, h3, h4, p, ul, ol):not(.wp-block-image) {
	margin-inline: 0;
}

.nm-page--marketing .nm-content .nm-image-card.nm-step-card > :where(h2, h3, h4, p, ul, ol):not(.wp-block-image) {
	padding-inline: var(--nm-step-card-pad);
}

.nm-page--marketing .nm-content .nm-image-card.nm-step-card > :where(h2, h3, h4):first-of-type,
.nm-page--features .nm-content .nm-image-card.nm-feature-card > :where(h2, h3, h4):first-of-type {
	margin-bottom: 0.5rem;
	padding-top: 0;
	font-family: var(--nm-font-heading);
	font-size: clamp(1.15rem, 2.2vw, 1.35rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--nm-color-primary-dark);
}

.nm-page--marketing .nm-content .nm-image-card.nm-step-card > :where(h2, h3, h4):first-of-type {
	margin-top: var(--nm-step-content-offset);
	padding-inline: var(--nm-step-card-pad);
}

.nm-page--marketing .nm-content .nm-image-card.nm-step-card > p,
.nm-page--features .nm-content .nm-image-card.nm-feature-card > p {
	margin-top: 0;
	margin-bottom: 0;
	line-height: 1.55;
	color: var(--nm-color-text-muted);
}

.nm-page--marketing .nm-content .nm-image-card.nm-step-card > p {
	padding-bottom: var(--nm-step-card-pad);
}

.nm-page--marketing .nm-content .nm-image-card.nm-step-card > :last-child,
.nm-page--features .nm-content .nm-image-card.nm-feature-card > :last-child {
	margin-bottom: 0;
}

.nm-page--marketing .nm-content .wp-block-column .wp-block-column {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
}

/* Features — image-first feature cards (no step numbers; icon badge only) */
.nm-page--features .nm-content .wp-block-columns:has(> .wp-block-column.nm-feature-card) {
	gap: clamp(1.125rem, 3vw, 1.5rem);
}

.nm-page--features .nm-content .nm-image-card.nm-feature-card {
	--nm-feature-card-pad: clamp(1.125rem, 3vw, 1.5rem);
	--nm-feature-func-size: clamp(2.375rem, 5.5vw, 2.875rem);
	--nm-feature-func-glyph: clamp(1.125rem, 2.5vw, 1.375rem);
	--nm-feature-content-offset: clamp(1.5rem, 3.5vw, 1.875rem);
}

.nm-page--features .nm-content .nm-image-card.nm-feature-card::before {
	display: none;
	content: none;
}

.nm-page--features .nm-content .nm-image-card.nm-feature-card :where(.wp-block-image, figure.wp-block-image)::after {
	content: "";
	position: absolute;
	left: clamp(0.875rem, 2.5vw, 1.125rem);
	bottom: calc(var(--nm-feature-func-size) * -0.45);
	z-index: 3;
	width: var(--nm-feature-func-size);
	height: var(--nm-feature-func-size);
	border-radius: 50%;
	background-color: #f3f5f8;
	background-image: var(--nm-feature-icon);
	background-repeat: no-repeat;
	background-position: center;
	background-size: var(--nm-feature-func-glyph);
	border: 1px solid rgba(105, 138, 157, 0.24);
	box-shadow: 0 3px 12px rgba(42, 66, 88, 0.12);
	pointer-events: none;
}

.nm-page--features .nm-content .nm-feature-card--dream-result {
	--nm-feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23698a9d' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41'/%3E%3C/svg%3E");
}

.nm-page--features .nm-content .nm-feature-card--my-dreams {
	--nm-feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23698a9d' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
}

.nm-page--features .nm-content .nm-feature-card--community {
	--nm-feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23698a9d' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.nm-page--features .nm-content .nm-feature-card--insights {
	--nm-feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23698a9d' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='17' r='2'/%3E%3Ccircle cx='12' cy='7' r='2'/%3E%3Ccircle cx='18' cy='14' r='2'/%3E%3Cpath d='M8 15l3-5 4 4 4-6'/%3E%3C/svg%3E");
}

.nm-page--features .nm-content .nm-feature-card--symbols {
	--nm-feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23698a9d' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3c-1.5 2-4 3-4 7a4 4 0 0 0 8 0c0-4-2.5-5-4-7z'/%3E%3Cpath d='M9 18h6'/%3E%3Cpath d='M10 22h4'/%3E%3C/svg%3E");
}

.nm-page--features .nm-content .nm-feature-card--credits {
	--nm-feature-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23698a9d' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E");
}

.nm-page--features .nm-content .nm-image-card.nm-feature-card > :where(h2, h3, h4, p, ul, ol):not(.wp-block-image) {
	padding-inline: var(--nm-feature-card-pad);
}

.nm-page--features .nm-content .nm-image-card.nm-feature-card > :where(h2, h3, h4):first-of-type {
	margin-top: var(--nm-feature-content-offset);
	padding-inline: var(--nm-feature-card-pad);
}

.nm-page--features .nm-content .nm-image-card.nm-feature-card > p {
	padding-bottom: var(--nm-feature-card-pad);
}

@media (hover: hover) and (pointer: fine) {
	.nm-page--marketing .nm-content .nm-image-card.nm-step-card,
	.nm-page--features .nm-content .nm-image-card.nm-feature-card,
	.nm-page--pricing .nm-content .nm-image-card.nm-proof-card {
		transition: transform var(--nm-transition), box-shadow var(--nm-transition);
	}

	.nm-page--marketing .nm-content .nm-image-card.nm-step-card:hover,
	.nm-page--features .nm-content .nm-image-card.nm-feature-card:hover,
	.nm-page--pricing .nm-content .nm-image-card.nm-proof-card:hover {
		box-shadow:
			0 2px 4px rgba(42, 66, 88, 0.05),
			0 10px 28px rgba(42, 66, 88, 0.1);
		transform: translateY(-1px);
	}
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: reduce) {
	.nm-page--marketing .nm-content .nm-image-card.nm-step-card,
	.nm-page--features .nm-content .nm-image-card.nm-feature-card,
	.nm-page--pricing .nm-content .nm-image-card.nm-proof-card {
		transition: none;
	}

	.nm-page--marketing .nm-content .nm-image-card.nm-step-card:hover,
	.nm-page--features .nm-content .nm-image-card.nm-feature-card:hover,
	.nm-page--pricing .nm-content .nm-image-card.nm-proof-card:hover {
		transform: none;
	}
}

/* --------------------------------------------------------------------------
   Editorial numbered list — opt-in via .nm-editorial-list on Gutenberg List
   (standard pages; not blog/legal/homepage)
   -------------------------------------------------------------------------- */

/* Shared tall editorial number tokens (list + link-list) */
.nm-page:not(.nm-page--legal):not(.nm-page--404) .nm-content :is(.nm-editorial-list, .nm-editorial-link-list) {
	--nm-editorial-number-color: var(--nm-color-primary-dark);
	--nm-editorial-number-size: clamp(2.4rem, 6vw, 3.6rem);
	--nm-editorial-number-lh: 0.75;
	--nm-editorial-number-scale-y: 1.35;
	--nm-editorial-number-weight: 600;
	--nm-editorial-number-tracking: -0.04em;
	--nm-editorial-body-size: 1rem;
	--nm-editorial-body-lh: 1.6;
	--nm-editorial-row-gap: clamp(1rem, 3vw, 1.5rem);
	--nm-editorial-num-col: minmax(3rem, 3.75rem);
}

/* List root: classes on ul/ol, or on a wrapper div around the list block */
.nm-page:not(.nm-page--legal):not(.nm-page--404) .nm-content :where(
	:is(ul, ol).nm-editorial-list,
	.nm-editorial-list:is(ul, ol),
	.nm-editorial-list:not(:is(ul, ol)) > :is(ul, ol)
) {
	--nm-editorial-divider: rgba(42, 66, 88, 0.1);
	list-style: none;
	padding: 0;
	margin-top: 1rem;
	margin-bottom: 1.5rem;
	counter-reset: nm-editorial-item;
}

.nm-page:not(.nm-page--legal):not(.nm-page--404) .nm-content :where(
	:is(ul, ol).nm-editorial-list,
	.nm-editorial-list:is(ul, ol),
	.nm-editorial-list:not(:is(ul, ol)) > :is(ul, ol)
) > li {
	counter-increment: nm-editorial-item;
	display: grid;
	grid-template-columns: var(--nm-editorial-num-col) 1fr;
	column-gap: var(--nm-editorial-row-gap);
	align-items: start;
	padding-block: clamp(0.9rem, 2.6vw, 1.15rem);
	margin: 0;
	padding-left: 0;
	border-top: 1px solid var(--nm-editorial-divider);
	font-size: var(--nm-editorial-body-size);
	line-height: var(--nm-editorial-body-lh);
	color: var(--nm-color-text);
}

.nm-page:not(.nm-page--legal):not(.nm-page--404) .nm-content :where(
	:is(ul, ol).nm-editorial-list,
	.nm-editorial-list:is(ul, ol),
	.nm-editorial-list:not(:is(ul, ol)) > :is(ul, ol)
) > li + li {
	margin-top: 0;
}

.nm-page:not(.nm-page--legal):not(.nm-page--404) .nm-content :where(
	:is(ul, ol).nm-editorial-list,
	.nm-editorial-list:is(ul, ol),
	.nm-editorial-list:not(:is(ul, ol)) > :is(ul, ol)
) > li::before {
	content: counter(nm-editorial-item, decimal-leading-zero);
	grid-column: 1;
	grid-row: 1;
	font-family: var(--nm-font-heading);
	font-size: clamp(1.35rem, 3vw, 1.85rem);
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--nm-editorial-number-color);
}

.nm-page:not(.nm-page--legal):not(.nm-page--404) .nm-content :where(
	:is(ul, ol).nm-editorial-list,
	.nm-editorial-list:is(ul, ol),
	.nm-editorial-list:not(:is(ul, ol)) > :is(ul, ol)
) > li:last-child {
	border-bottom: 1px solid var(--nm-editorial-divider);
}

/* Result-list variant — tall numbers, no dividers, body-size text (How it works) */
.nm-page:not(.nm-page--legal):not(.nm-page--404) .nm-content :where(
	:is(ul, ol).nm-editorial-list.nm-editorial-result-list,
	.nm-editorial-list.nm-editorial-result-list:is(ul, ol),
	.nm-editorial-list.nm-editorial-result-list:not(:is(ul, ol)) > :is(ul, ol)
) {
	max-width: var(--nm-container-reading);
	margin-top: clamp(0.75rem, 2.5vw, 1.125rem);
	margin-bottom: clamp(2rem, 5vw, 2.75rem);
	padding-inline-start: clamp(0.5rem, 4vw, 1rem);
}

.nm-page:not(.nm-page--legal):not(.nm-page--404) .nm-content :where(
	:is(ul, ol).nm-editorial-list.nm-editorial-result-list,
	.nm-editorial-list.nm-editorial-result-list:is(ul, ol),
	.nm-editorial-list.nm-editorial-result-list:not(:is(ul, ol)) > :is(ul, ol)
) > li {
	align-items: start;
	padding-block: clamp(1rem, 2.8vw, 1.35rem);
	border-top: none;
}

.nm-page:not(.nm-page--legal):not(.nm-page--404) .nm-content :where(
	:is(ul, ol).nm-editorial-list.nm-editorial-result-list,
	.nm-editorial-list.nm-editorial-result-list:is(ul, ol),
	.nm-editorial-list.nm-editorial-result-list:not(:is(ul, ol)) > :is(ul, ol)
) > li:last-child {
	border-bottom: none;
}

.nm-page:not(.nm-page--legal):not(.nm-page--404) .nm-content :where(
	:is(ul, ol).nm-editorial-list.nm-editorial-result-list,
	.nm-editorial-list.nm-editorial-result-list:is(ul, ol),
	.nm-editorial-list.nm-editorial-result-list:not(:is(ul, ol)) > :is(ul, ol)
) > li::before {
	content: counter(nm-editorial-item);
	font-size: var(--nm-editorial-number-size);
	font-weight: var(--nm-editorial-number-weight);
	line-height: var(--nm-editorial-number-lh);
	letter-spacing: var(--nm-editorial-number-tracking);
	color: var(--nm-editorial-number-color);
	transform: scaleY(var(--nm-editorial-number-scale-y));
	transform-origin: top left;
	align-self: start;
	padding-top: 0.05em;
}

.nm-page--marketing .nm-content :where(h2, h3, .wp-block-heading) + :where(
	:is(ul, ol).nm-editorial-list.nm-editorial-result-list,
	.nm-editorial-list.nm-editorial-result-list:not(:is(ul, ol))
) {
	margin-top: clamp(0.75rem, 2.5vw, 1.125rem);
}

.nm-page--marketing .nm-content :where(
	:is(ul, ol).nm-editorial-list.nm-editorial-result-list,
	.nm-editorial-list.nm-editorial-result-list:not(:is(ul, ol))
) + :where(h2, h3, .wp-block-heading) {
	margin-top: clamp(2.5rem, 6.5vw, 3.5rem);
	margin-bottom: clamp(0.65rem, 2vw, 0.85rem);
}

.nm-page--marketing .nm-content :where(
	:is(ul, ol).nm-editorial-list.nm-editorial-result-list,
	.nm-editorial-list.nm-editorial-result-list:not(:is(ul, ol))
) + :where(h2, h3) + :where(p, .wp-block-paragraph) {
	margin-bottom: 0;
	max-width: var(--nm-container-reading);
	line-height: 1.65;
}

.nm-page--marketing .nm-content :where(
	:is(ul, ol).nm-editorial-list.nm-editorial-result-list,
	.nm-editorial-list.nm-editorial-result-list:not(:is(ul, ol))
) + :where(h2, h3) + :where(p, .wp-block-paragraph) + :where(h2, h3, .wp-block-heading) {
	margin-top: clamp(2rem, 5vw, 2.75rem);
	margin-bottom: clamp(0.65rem, 2vw, 0.85rem);
}

.nm-page--marketing .nm-content :where(
	:is(ul, ol).nm-editorial-list.nm-editorial-result-list,
	.nm-editorial-list.nm-editorial-result-list:not(:is(ul, ol))
) + :where(h2, h3) + :where(p, .wp-block-paragraph) + :where(h2, h3) + :where(p, .wp-block-paragraph) {
	max-width: var(--nm-container-reading);
	line-height: 1.65;
}

.nm-page--marketing .nm-content :where(
	:is(ul, ol).nm-editorial-list.nm-editorial-result-list,
	.nm-editorial-list.nm-editorial-result-list:not(:is(ul, ol))
) ~ .wp-block-buttons {
	margin-top: clamp(1.75rem, 4.5vw, 2.5rem);
	margin-bottom: 0;
}

@media (max-width: 47.99rem) {
	.nm-page:not(.nm-page--legal):not(.nm-page--404) .nm-content :where(
		:is(ul, ol).nm-editorial-list.nm-editorial-result-list,
		.nm-editorial-list.nm-editorial-result-list:is(ul, ol),
		.nm-editorial-list.nm-editorial-result-list:not(:is(ul, ol)) > :is(ul, ol),
		.nm-editorial-link-list
	) {
		padding-inline-start: clamp(0.5rem, 4vw, 1rem);
		--nm-editorial-num-col: minmax(2.75rem, 3.25rem);
		--nm-editorial-number-size: clamp(2.25rem, 7vw, 3.2rem);
	}

	.nm-page:not(.nm-page--legal):not(.nm-page--404) .nm-content :where(
		:is(ul, ol).nm-editorial-list:not(.nm-editorial-result-list),
		.nm-editorial-list:not(.nm-editorial-result-list):is(ul, ol)
	) > li {
		column-gap: 0.7rem;
	}

	.nm-page:not(.nm-page--legal):not(.nm-page--404) .nm-content :where(
		:is(ul, ol).nm-editorial-list:not(.nm-editorial-result-list),
		.nm-editorial-list:not(.nm-editorial-result-list):is(ul, ol)
	) > li::before {
		font-size: 1.2rem;
	}
}

/* --------------------------------------------------------------------------
   Editorial link-list — Group blocks with heading + paragraph per item
   (opt-in: .nm-editorial-link-list + .nm-editorial-link-item)
   -------------------------------------------------------------------------- */

.nm-page:not(.nm-page--legal):not(.nm-page--404) .nm-content .nm-editorial-link-list {
	counter-reset: nm-editorial-link-item;
	margin-block: clamp(1.5rem, 4vw, 2.5rem);
}

.nm-page:not(.nm-page--legal):not(.nm-page--404) .nm-content .nm-editorial-link-list > :where(.wp-block-group__inner-container, .wp-block-group-is-layout-flow),
.nm-page:not(.nm-page--legal):not(.nm-page--404) .nm-content .nm-editorial-link-list:has(> .nm-editorial-link-item) {
	display: grid;
	gap: clamp(1.25rem, 3vw, 1.75rem);
	padding-inline-start: clamp(0.5rem, 4vw, 1rem);
}

.nm-page:not(.nm-page--legal):not(.nm-page--404) .nm-content .nm-editorial-link-list .nm-editorial-link-item {
	counter-increment: nm-editorial-link-item;
	position: relative;
	display: grid;
	grid-template-columns: var(--nm-editorial-num-col) 1fr;
	column-gap: var(--nm-editorial-row-gap);
	align-items: start;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.nm-page:not(.nm-page--legal):not(.nm-page--404) .nm-content .nm-editorial-link-list .nm-editorial-link-item::before {
	content: counter(nm-editorial-link-item);
	grid-column: 1;
	grid-row: 1 / -1;
	align-self: start;
	font-family: var(--nm-font-heading);
	font-size: var(--nm-editorial-number-size);
	font-weight: var(--nm-editorial-number-weight);
	line-height: var(--nm-editorial-number-lh);
	letter-spacing: var(--nm-editorial-number-tracking);
	color: var(--nm-editorial-number-color);
	transform: scaleY(var(--nm-editorial-number-scale-y));
	transform-origin: top left;
	padding-top: 0.05em;
	pointer-events: none;
}

.nm-page:not(.nm-page--legal):not(.nm-page--404) .nm-content .nm-editorial-link-list .nm-editorial-link-item > * {
	grid-column: 2;
	margin-inline: 0;
}

.nm-page:not(.nm-page--legal):not(.nm-page--404) .nm-content .nm-editorial-link-list .nm-editorial-link-item > :where(h2, h3, h4, .wp-block-heading) {
	margin-top: 0;
	margin-bottom: 0.35rem;
	padding: 0;
	font-family: var(--nm-font-heading);
	font-size: clamp(1.0625rem, 2.4vw, 1.2rem);
	font-weight: 700;
	line-height: 1.25;
	color: var(--nm-color-primary-dark);
}

.nm-page:not(.nm-page--legal):not(.nm-page--404) .nm-content .nm-editorial-link-list .nm-editorial-link-item > :where(p, .wp-block-paragraph) {
	margin-top: 0;
	margin-bottom: 0;
	padding: 0;
	font-size: var(--nm-editorial-body-size);
	line-height: var(--nm-editorial-body-lh);
	color: var(--nm-color-text-muted);
}

.nm-page:not(.nm-page--legal):not(.nm-page--404) .nm-content .nm-editorial-link-list .nm-editorial-link-item > :last-child {
	margin-bottom: 0;
}

/* Features — editorial link-list below feature cards */
.nm-page--features .nm-content .nm-editorial-link-list.nm-editorial-link-list--features {
	max-width: var(--nm-container-reading);
	margin-top: clamp(2rem, 5vw, 3rem);
	margin-bottom: clamp(2rem, 5vw, 2.75rem);
}

.nm-page--features .nm-content .nm-editorial-link-list.nm-editorial-link-list--features > :where(.wp-block-group__inner-container, .wp-block-group-is-layout-flow) {
	gap: clamp(1.35rem, 3.5vw, 1.85rem);
}

/* Pricing — block flow for floated proof-cards; grid prevents sibling text wrap */
.nm-page--pricing .nm-content {
	display: flow-root;
}

.nm-page--pricing .nm-content > * + * {
	margin-top: var(--nm-gutenberg-section-gap);
}

.nm-page--pricing .nm-content > .wp-block-buttons {
	clear: both;
}

/* Pricing — proof cards (opt-in; no automatic white group cards) */
.nm-page--pricing .nm-content .wp-block-columns:has(.nm-proof-card) {
	gap: clamp(1.125rem, 3vw, 1.5rem);
}

.nm-page--pricing .nm-content > :where(.wp-block-column, .wp-block-group).nm-image-card.nm-proof-card:not(.alignright) {
	max-width: min(100%, 42.5rem);
	width: 100%;
	margin-inline: auto;
	margin-block: clamp(1.5rem, 4vw, 2.25rem);
}

.nm-page--pricing .nm-content .wp-block-columns .nm-image-card.nm-proof-card {
	max-width: none;
	margin-inline: 0;
	margin-block: 0;
}

.nm-page--pricing .nm-content .nm-image-card.nm-proof-card {
	--nm-proof-card-pad: clamp(1.125rem, 3vw, 1.5rem);
	--nm-proof-content-offset: clamp(1rem, 2.5vw, 1.25rem);
}

.nm-page--pricing .nm-content .nm-image-card.nm-proof-card::before,
.nm-page--pricing .nm-content .nm-image-card.nm-proof-card :where(.wp-block-image, figure.wp-block-image)::after {
	display: none;
	content: none;
}

.nm-page--pricing .nm-content .nm-image-card.nm-proof-card > :where(h2, h3, h4, p, ul, ol):not(.wp-block-image) {
	margin-inline: 0;
	padding-inline: var(--nm-proof-card-pad);
}

.nm-page--pricing .nm-content .nm-image-card.nm-proof-card > :where(h2, h3):first-of-type {
	margin-top: var(--nm-proof-content-offset);
	margin-bottom: 0.5rem;
	padding-top: 0;
	font-family: var(--nm-font-heading);
	font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
	font-weight: 700;
	line-height: 1.25;
	color: var(--nm-color-primary-dark);
}

.nm-page--pricing .nm-content .nm-image-card.nm-proof-card > :where(h4, h4.wp-block-heading) {
	margin-top: var(--nm-proof-content-offset);
	margin-bottom: 0.35rem;
	padding-top: 0;
	padding-inline: var(--nm-proof-card-pad);
	font-family: var(--nm-font-heading);
	font-style: italic;
	font-size: clamp(1rem, 1.4vw, 1.125rem);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0.02em;
	color: var(--nm-color-primary-dark);
}

.nm-page--pricing .nm-content .nm-image-card.nm-proof-card > :where(p, .wp-block-paragraph) {
	margin-top: 0;
	margin-bottom: 0;
	padding-bottom: var(--nm-proof-card-pad);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--nm-color-text-muted);
}

.nm-page--pricing .nm-content .nm-image-card.nm-proof-card > :last-child {
	margin-bottom: 0;
}

.nm-page--pricing .nm-content .nm-image-card.nm-proof-card.nm-proof-card--excerpt > :where(p, .wp-block-paragraph) {
	font-size: 1rem;
	line-height: 1.7;
}

.nm-page--pricing .nm-content .nm-image-card.nm-proof-card.nm-proof-card--excerpt > :where(p, .wp-block-paragraph) em {
	font-style: italic;
	color: var(--nm-color-accent);
}

.nm-page--pricing .nm-content .nm-image-card.nm-proof-card.nm-proof-card--result > :where(h4, h4.wp-block-heading) {
	letter-spacing: 0.03em;
}

@media (max-width: 47.99rem) {
	.nm-page--pricing .nm-content .nm-image-card.nm-proof-card.alignright {
		float: none;
		width: 100%;
		max-width: none;
		margin: clamp(1.5rem, 6vw, 2rem) 0;
		margin-inline: 0;
	}
}

@media (min-width: 48rem) {
	.nm-page--pricing .nm-content > :where(.wp-block-column, .wp-block-group).nm-image-card.nm-proof-card.alignright,
	.nm-page--pricing .nm-content .nm-image-card.nm-proof-card.alignright {
		float: right;
		width: min(42%, 28rem);
		max-width: none;
		margin: 0 0 clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.25rem);
		margin-inline: 0;
	}

	.nm-page--pricing .nm-content .wp-block-columns .nm-image-card.nm-proof-card.alignright {
		float: none;
		width: 100%;
		margin: 0;
	}
}

/* Contact — grouped placeholder sections */
.nm-page--default .nm-content > .wp-block-group {
	background: var(--nm-color-surface);
	border: 1px solid var(--nm-color-border);
	border-radius: var(--nm-radius-lg);
	box-shadow: var(--nm-shadow-sm);
	padding: var(--nm-gutenberg-card-padding);
}

.nm-page--default .nm-content > .wp-block-group > :where(.wp-block-group__inner-container, .wp-block-group-is-layout-flow) {
	gap: var(--nm-space-sm);
}

/* FAQ — Details blocks as NightMirror accordion */
.nm-page--faq .nm-content .wp-block-details {
	border: 1px solid var(--nm-color-border);
	border-radius: var(--nm-radius-md);
	background: var(--nm-color-surface);
	overflow: hidden;
	padding: 0;
	margin: 0;
}

.nm-page--faq .nm-content .wp-block-details + .wp-block-details {
	margin-top: var(--nm-space-sm);
}

.nm-page--faq .nm-content .wp-block-details summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--nm-space-md);
	min-height: 3rem;
	padding: var(--nm-space-md) var(--nm-space-lg);
	font-weight: 700;
	color: var(--nm-color-text);
	list-style: none;
	cursor: pointer;
}

.nm-page--faq .nm-content .wp-block-details summary::-webkit-details-marker {
	display: none;
}

.nm-page--faq .nm-content .wp-block-details summary::after {
	content: "";
	flex-shrink: 0;
	width: 0.5rem;
	height: 0.5rem;
	border-right: 2px solid var(--nm-color-accent);
	border-bottom: 2px solid var(--nm-color-accent);
	transform: rotate(45deg);
	transition: transform var(--nm-transition);
}

@media (prefers-reduced-motion: reduce) {
	.nm-page--faq .nm-content .wp-block-details summary::after {
		transition: none;
	}
}

.nm-page--faq .nm-content .wp-block-details[open] summary {
	border-bottom: 1px solid var(--nm-color-border);
}

.nm-page--faq .nm-content .wp-block-details[open] summary::after {
	transform: rotate(-135deg);
}

.nm-page--faq .nm-content .wp-block-details summary:focus-visible {
	outline: 2px solid var(--nm-color-accent);
	outline-offset: -2px;
	border-radius: 0;
}

.nm-page--faq .nm-content .wp-block-details > :not(summary) {
	padding: var(--nm-space-md) var(--nm-space-lg) var(--nm-space-lg);
	color: var(--nm-color-text-muted);
}

.nm-page--faq .nm-content .wp-block-details > :not(summary) p {
	margin: 0;
}

/* Lists, headings, buttons — marketing pages only */
.nm-page:not(.nm-page--legal) .nm-content h2 + p,
.nm-page:not(.nm-page--legal) .nm-content h3 + p {
	margin-top: 0;
}

.nm-page:not(.nm-page--legal) .nm-content ul,
.nm-page:not(.nm-page--legal) .nm-content ol {
	padding-left: 1.5rem;
	margin-bottom: var(--nm-space-md);
}

.nm-page:not(.nm-page--legal) .nm-content li {
	padding-left: 0.15rem;
}

.nm-page:not(.nm-page--legal) .nm-content li + li {
	margin-top: var(--nm-space-xs);
}

.nm-page:not(.nm-page--legal) .nm-content li::marker {
	color: var(--nm-color-accent);
}

.nm-page:not(.nm-page--legal) .nm-content .wp-block-buttons {
	margin-top: var(--nm-space-lg);
	margin-bottom: 0;
}

.nm-page:not(.nm-page--legal) .nm-content .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	transition: background-color var(--nm-transition), border-color var(--nm-transition), color var(--nm-transition);
}

.nm-page:not(.nm-page--legal) .nm-content .wp-block-button__link:focus-visible {
	outline: 2px solid var(--nm-color-accent);
	outline-offset: 2px;
}

.nm-page:not(.nm-page--legal) .nm-content .wp-block-button.is-style-outline .wp-block-button__link,
.nm-page:not(.nm-page--legal) .nm-content .wp-block-button__link.is-style-outline {
	background: var(--nm-color-surface);
	color: var(--nm-color-primary);
	border-color: var(--nm-color-border);
}

.nm-page:not(.nm-page--legal) .nm-content .wp-block-button.is-style-outline .wp-block-button__link:hover,
.nm-page:not(.nm-page--legal) .nm-content .wp-block-button.is-style-outline .wp-block-button__link:focus-visible,
.nm-page:not(.nm-page--legal) .nm-content .wp-block-button__link.is-style-outline:hover,
.nm-page:not(.nm-page--legal) .nm-content .wp-block-button__link.is-style-outline:focus-visible {
	background: #f0f3f5;
	color: var(--nm-color-primary-dark);
	border-color: var(--nm-color-accent);
}

@media (max-width: 47.99rem) {
	.nm-page--marketing .nm-content .wp-block-columns,
	.nm-page--features .nm-content .wp-block-columns {
		gap: var(--nm-space-md);
	}

	.nm-page--marketing .nm-content {
		--nm-step-card-mobile-gap: clamp(1.375rem, 5vw, 1.75rem);
	}

	.nm-page--features .nm-content {
		--nm-feature-card-mobile-gap: clamp(1.375rem, 5vw, 1.75rem);
	}

	.nm-page--marketing .nm-content .wp-block-columns:has(> .wp-block-column.nm-step-card) {
		gap: var(--nm-step-card-mobile-gap);
		margin-block: 0;
	}

	.nm-page--features .nm-content .wp-block-columns:has(> .wp-block-column.nm-feature-card) {
		gap: var(--nm-feature-card-mobile-gap);
		margin-block: 0;
	}

	/* Match row-to-row spacing to in-row card gap (neutralize .nm-content grid gap doubling) */
	.nm-page--marketing .nm-content > .wp-block-columns:has(> .wp-block-column.nm-step-card) + .wp-block-columns:has(> .wp-block-column.nm-step-card) {
		margin-block-start: calc(var(--nm-step-card-mobile-gap) - var(--nm-gutenberg-section-gap));
	}

	.nm-page--features .nm-content > .wp-block-columns:has(> .wp-block-column.nm-feature-card) + .wp-block-columns:has(> .wp-block-column.nm-feature-card) {
		margin-block-start: calc(var(--nm-feature-card-mobile-gap) - var(--nm-gutenberg-section-gap));
	}

	.nm-page--marketing .nm-content .nm-image-card.nm-step-card {
		--nm-step-card-pad: clamp(1rem, 4vw, 1.125rem);
		--nm-step-number-size: clamp(3.25rem, 10vw, 3.75rem);
		--nm-step-func-size: 2.375rem;
		--nm-step-content-offset: clamp(1.375rem, 4vw, 1.625rem);
	}

	.nm-page--marketing .nm-content .nm-image-card.nm-step-card::before {
		top: 1rem;
		left: 1rem;
	}

	.nm-page--marketing .nm-content .nm-image-card.nm-step-card :where(.wp-block-image, figure.wp-block-image)::after {
		left: 1rem;
		bottom: calc(var(--nm-step-func-size) * -0.42);
	}

	.nm-page--features .nm-content .nm-image-card.nm-feature-card {
		--nm-feature-card-pad: clamp(1rem, 4vw, 1.125rem);
		--nm-feature-func-size: 2.375rem;
		--nm-feature-content-offset: clamp(1.375rem, 4vw, 1.625rem);
	}

	.nm-page--features .nm-content .nm-image-card.nm-feature-card :where(.wp-block-image, figure.wp-block-image)::after {
		left: 1rem;
		bottom: calc(var(--nm-feature-func-size) * -0.42);
	}

	.nm-page--features .nm-content .wp-block-column:not(.nm-feature-card) {
		padding: var(--nm-space-md);
	}

	.nm-page--default .nm-content > .wp-block-group {
		padding: var(--nm-space-md);
	}

	.nm-page:not(.nm-page--legal) .nm-content .wp-block-buttons {
		flex-direction: column;
		align-items: stretch;
		width: 100%;
	}

	.nm-page:not(.nm-page--legal) .nm-content .wp-block-button,
	.nm-page:not(.nm-page--legal) .nm-content .wp-block-button__link {
		width: 100%;
	}
}

@media (min-width: 48rem) {
	.nm-page--marketing .nm-content .wp-block-columns:has(> .wp-block-column.nm-step-card) {
		gap: clamp(1.25rem, 2.5vw, 1.75rem);
	}

	.nm-page--features .nm-content .wp-block-columns:has(> .wp-block-column.nm-feature-card) {
		gap: clamp(1.25rem, 2.5vw, 1.75rem);
	}

	.nm-page--marketing .nm-content .nm-image-card.nm-step-card {
		--nm-step-number-size: clamp(3.5rem, 5vw, 4.25rem);
		--nm-step-func-size: clamp(2.5rem, 3.5vw, 2.875rem);
		--nm-step-content-offset: clamp(1.625rem, 2.5vw, 2rem);
	}

	.nm-page--marketing .nm-content .nm-image-card.nm-step-card::before {
		top: 1rem;
		left: 1rem;
	}

	.nm-page--features .nm-content .nm-image-card.nm-feature-card {
		--nm-feature-func-size: clamp(2.5rem, 3.5vw, 2.875rem);
		--nm-feature-content-offset: clamp(1.625rem, 2.5vw, 2rem);
	}

	.nm-page--features .nm-content .wp-block-columns:not(:has(> .wp-block-column.nm-feature-card)) {
		gap: var(--nm-space-lg);
	}
}

/* Blog/article: no marketing card treatment on columns or groups */
.nm-article__content.nm-content .wp-block-column,
.nm-blog .nm-content .wp-block-column {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
}

.nm-content--legal p,
.nm-content--legal li {
	line-height: 1.75;
}

.nm-page--legal .nm-content .wp-block-group,
.nm-page--legal .nm-content .wp-block-columns {
	margin-block: var(--nm-space-md);
}

/* ==========================================================================
   Blog foundation templates
   ========================================================================== */

.nm-blog {
	padding-bottom: var(--nm-section-space-block);
}

.nm-blog__header:not(.nm-page__hero) {
	padding-block: var(--nm-page-top-space) var(--nm-content-space);
}

.nm-blog__title:not(.nm-page__title) {
	font-size: clamp(1.75rem, 5vw, 2.5rem);
	margin: 0;
}

.nm-blog__intro:not(.nm-page__intro) {
	margin-top: var(--nm-space-sm);
	max-width: 46rem;
	color: var(--nm-color-text-muted);
}

.nm-blog__content:not(.nm-page__content) {
	padding-top: 0;
}

.nm-post-grid {
	display: grid;
	gap: var(--nm-space-md);
}

.nm-post-card {
	background: var(--nm-color-surface);
	border: 1px solid var(--nm-color-border);
	border-radius: var(--nm-radius-lg);
	box-shadow: var(--nm-shadow-sm);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.nm-post-card__media {
	display: block;
}

.nm-post-card__media img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.nm-post-card__content {
	padding: var(--nm-space-lg);
	display: grid;
	gap: var(--nm-space-sm);
}

.nm-post-card__meta {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--nm-color-text-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
	align-items: center;
}

.nm-post-card__meta a {
	color: var(--nm-color-primary);
	text-decoration: none;
	font-weight: 600;
}

.nm-post-card__title {
	margin: 0;
	font-size: 1.25rem;
}

.nm-post-card__title a {
	color: var(--nm-color-text);
	text-decoration: none;
}

.nm-post-card__title a:hover,
.nm-post-card__title a:focus-visible {
	color: var(--nm-color-primary);
}

.nm-post-card__excerpt {
	margin: 0;
	color: var(--nm-color-text-muted);
}

.nm-post-card__link {
	font-weight: 700;
	text-decoration: none;
}

.nm-pagination {
	margin-top: var(--nm-space-xl);
}

.nm-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--nm-space-xs);
}

.nm-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding-inline: 0.65rem;
	border-radius: var(--nm-radius-sm);
	border: 1px solid var(--nm-color-border);
	background: var(--nm-color-surface);
	text-decoration: none;
	color: var(--nm-color-text);
}

.nm-pagination .page-numbers.current {
	background: var(--nm-color-primary);
	color: var(--nm-color-page);
	border-color: var(--nm-color-primary);
}

.nm-article {
	padding-block: var(--nm-page-top-space) var(--nm-section-space-block);
}

.nm-page--single.nm-article {
	padding-block: 0 var(--nm-section-space-block);
}

.nm-page--single > .nm-container--page {
	padding-top: clamp(1.75rem, 5vw, 2.5rem);
	padding-bottom: var(--nm-content-space);
}

.nm-page--single .nm-article__content,
.nm-page--single .nm-article__footer {
	max-width: var(--nm-container-reading);
}

.nm-page--404 {
	padding-bottom: var(--nm-section-space-block);
}

.nm-page--404 .nm-page__hero {
	background: transparent;
}

.nm-page .nm-cta-final,
.nm-blog .nm-cta-final,
.nm-article > .nm-cta-final {
	margin-top: var(--nm-content-space);
	padding-block: var(--nm-content-space);
}

/* Marketing pages: CTA light band runs flush to footer (no page-grey strip below) */
.nm-page:not(.nm-page--legal):not(.nm-page--404):has(> .nm-cta-final) {
	padding-bottom: 0;
}

.nm-page:not(.nm-page--legal):not(.nm-page--404) > .nm-cta-final {
	margin-bottom: 0;
	background: #ffffff;
	padding-bottom: var(--nm-section-space-block);
}

.nm-page__content:empty,
.nm-page__content:not(:has(.nm-content > *)) {
	padding-bottom: var(--nm-space-lg);
}

.nm-article__header {
	margin-bottom: var(--nm-content-space);
}

.nm-article__meta {
	margin: 0 0 var(--nm-space-sm);
	color: var(--nm-color-text-muted);
	font-size: 0.875rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.nm-article__meta a {
	text-decoration: none;
	font-weight: 600;
}

.nm-article__title {
	font-size: clamp(1.9rem, 5vw, 3rem);
	margin: 0;
}

.nm-article__media {
	margin: 0 0 var(--nm-space-lg);
	border-radius: var(--nm-radius-lg);
	overflow: hidden;
}

.nm-article__media img {
	width: 100%;
}

.nm-article__content {
	margin-bottom: var(--nm-space-lg);
}

.nm-article__footer {
	border-top: 1px solid var(--nm-color-border);
	padding-top: var(--nm-space-md);
	display: grid;
	gap: var(--nm-space-md);
}

.nm-empty-state {
	padding: var(--nm-space-xl);
	border: 1px solid var(--nm-color-border);
	border-radius: var(--nm-radius-lg);
	background: var(--nm-color-surface);
}

.nm-empty-state h2 {
	margin-top: 0;
}

.nm-search .search-form {
	display: flex;
	flex-wrap: wrap;
	gap: var(--nm-space-xs);
	margin-top: var(--nm-space-sm);
}

.nm-search .search-field {
	flex: 1 1 16rem;
	min-height: 2.75rem;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--nm-color-border);
	border-radius: var(--nm-radius-sm);
}

.nm-search .search-submit {
	min-height: 2.75rem;
	padding: 0.65rem 1rem;
	border-radius: var(--nm-radius-sm);
	border: 1px solid transparent;
	background: var(--nm-color-primary);
	color: var(--nm-color-page);
	font-weight: 700;
	cursor: pointer;
}


/* ==========================================================================
   Homepage v3.0 — final mobile spacing test
   ========================================================================== */

:root {
	--nm-color-insight-light: #b0c9e4;
	--nm-color-soft-accent: #c5e7fd;
	--nm-shadow-card: 0 14px 35px rgba(18, 44, 65, 0.055);
	--nm-shadow-card-featured: 0 18px 42px rgba(18, 44, 65, 0.07);
}

.nm-home .nm-section {
	padding-block: var(--nm-space-2xl);
}

/* --- Hero --- */

.nm-home .nm-hero {
	position: relative;
	padding-block: var(--nm-space-xl) var(--nm-space-2xl);
	background: #f7f8f8;
	overflow: visible;
}

.nm-hero__grid {
	display: grid;
	gap: var(--nm-space-md);
	align-items: center;
}

.nm-hero__badge {
	display: inline-block;
	margin: 0;
	padding: 0.35rem 0.85rem;
	font-size: 0.8125rem;
	font-weight: 700;
	color: #2a4258;
	background: #ffffff;
	border: 1px solid rgba(42, 66, 88, 0.1);
	border-radius: 999px;
	justify-self: start;
}

.nm-hero__title {
	font-size: clamp(1.75rem, 6vw, 3.25rem);
	margin: 0;
	max-width: none;
	line-height: 1.12;
	justify-self: start;
	color: #2a4258;
}

.nm-hero__lead {
	font-size: clamp(1rem, 2.5vw, 1.125rem);
	color: #6b7280;
	max-width: 36rem;
	margin: 0;
	line-height: 1.6;
	justify-self: start;
}

.nm-hero__actions {
	display: flex;
	flex-direction: column;
	gap: var(--nm-space-md);
	margin: 0;
	justify-self: start;
	width: 100%;
	max-width: 22rem;
}

.nm-hero__actions .nm-btn--primary {
	box-shadow: 0 12px 28px rgba(42, 66, 88, 0.2);
}

.nm-hero__actions .nm-btn--outline {
	font-weight: 700;
	border-color: rgba(42, 66, 88, 0.35);
}

.nm-hero__trustline {
	font-size: 0.8125rem;
	color: #6b7280;
	margin: 0;
	justify-self: start;
}

.nm-hero__visual {
	position: relative;
	display: flex;
	justify-content: center;
	margin: 0;
	overflow: visible;
}

.nm-hero__device-wrap {
	position: relative;
	width: min(72%, 194px);
	margin-inline: auto;
	overflow: visible;
}

.nm-hero__device-glow {
	position: absolute;
	inset: 6% 2% 4%;
	background: radial-gradient(ellipse at center, rgba(105, 138, 157, 0.16) 0%, rgba(105, 138, 157, 0) 70%);
	border-radius: 50%;
	pointer-events: none;
	z-index: 0;
}

.nm-hero__device {
	position: relative;
	z-index: 1;
	margin: 0;
}

.nm-hero__device-frame {
	position: relative;
	padding: 0.65rem;
	background: linear-gradient(165deg, #243a4f 0%, #122c41 100%);
	border-radius: 2.25rem;
	border: 2px solid rgba(255, 255, 255, 0.08);
	box-shadow:
		0 28px 56px rgba(18, 44, 65, 0.2),
		0 10px 20px rgba(42, 66, 88, 0.1);
	overflow: visible;
}

.nm-hero__device-frame::before {
	content: "";
	position: absolute;
	top: 0.85rem;
	left: 50%;
	transform: translateX(-50%);
	width: 28%;
	height: 0.32rem;
	background: rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	z-index: 2;
}

.nm-hero__device-frame--compact {
	max-width: 280px;
	margin-inline: auto;
	border: none;
	box-shadow: 0 24px 60px rgba(18, 44, 65, 0.16);
}

.nm-hero__screenshot,
.nm-hero__device-frame img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 390 / 844;
	object-fit: cover;
	object-position: top center;
	border-radius: 1.75rem;
}

/* --- Value strip --- */

.nm-value-strip {
	padding-block: var(--nm-space-md);
	background: #f7f8f8;
	border-block: 1px solid rgba(42, 66, 88, 0.06);
}

.nm-value-strip__list {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--nm-space-sm) var(--nm-space-md);
	justify-items: center;
	text-align: center;
}

.nm-value-strip__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 0.35rem;
	min-width: 0;
	width: 100%;
	max-width: 11rem;
}

.nm-value-strip__item .nm-icon {
	flex-shrink: 0;
	font-size: 1.25rem;
	color: #698a9d;
}

.nm-value-strip__title {
	font-family: var(--nm-font-body);
	font-size: 0.8125rem;
	font-weight: 700;
	color: #2a4258;
	line-height: 1.3;
}

/* --- My Dreams / Dream Journal showcase --- */

.nm-dream-journal {
	background: #ffffff;
}

.nm-dream-journal__grid {
	display: flex;
	flex-direction: column;
	gap: var(--nm-space-sm);
	align-items: stretch;
}

.nm-dream-journal__visual {
	position: relative;
	display: flex;
	justify-content: center;
	order: 3;
	margin-block: 0.25rem;
}

.nm-dream-journal__panel {
	display: contents;
}

.nm-dream-journal__title {
	order: 1;
	margin: 0 0 0.4rem;
}

.nm-dream-journal__lead {
	order: 2;
	margin: 0 0 0.75rem;
}

.nm-dream-journal__features {
	order: 4;
	margin-top: 0.25rem;
}

.nm-dream-journal__visual::before {
	content: "";
	position: absolute;
	inset: 8% 4% 4%;
	background: radial-gradient(ellipse at center, rgba(105, 138, 157, 0.12) 0%, rgba(105, 138, 157, 0) 72%);
	filter: blur(16px);
	pointer-events: none;
	z-index: 0;
}

.nm-dream-journal__figure {
	position: relative;
	z-index: 1;
	margin: 0;
	max-width: min(100%, 280px);
	width: 100%;
}

.nm-showcase-device__frame {
	overflow: hidden;
	max-width: 280px;
	margin-inline: auto;
}

.nm-showcase-device__frame .nm-hero__screenshot {
	width: 100%;
	height: auto;
	max-height: none;
	aspect-ratio: 390 / 844;
	object-fit: cover;
	object-position: top center;
	border-radius: 1.75rem;
}

.nm-dream-journal__title {
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	color: #2a4258;
}

.nm-dream-journal__lead {
	font-size: 1rem;
	color: #6b7280;
	line-height: 1.55;
	text-align: center;
	max-width: 34rem;
	margin-inline: auto;
}

.nm-dream-journal__features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nm-dream-journal__feature {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.5rem;
	min-width: 0;
}

.nm-dream-journal__feature-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 12px;
	background: #e4e7ea;
}

.nm-dream-journal__feature-icon .nm-icon {
	font-size: 1.25rem;
	color: #698a9d;
}

.nm-dream-journal__feature-label {
	font-size: 0.875rem;
	font-weight: 600;
	color: #2a4258;
	line-height: 1.35;
}

/* --- Community showcase --- */

.nm-community {
	background: #f7f8f8;
}

.nm-community__grid {
	display: flex;
	flex-direction: column;
	gap: var(--nm-space-sm);
	align-items: stretch;
}

.nm-community__panel {
	display: contents;
}

.nm-community__title {
	order: 1;
	margin: 0 0 0.4rem;
}

.nm-community__visual {
	position: relative;
	display: flex;
	justify-content: center;
	order: 3;
	margin-block: 0.25rem;
}

.nm-community__lead {
	order: 2;
	margin: 0 0 0.75rem;
}

.nm-community__features {
	order: 4;
	margin-top: 0.25rem;
}

.nm-community__visual::before {
	content: "";
	position: absolute;
	inset: 8% 4% 4%;
	background: radial-gradient(ellipse at center, rgba(105, 138, 157, 0.12) 0%, rgba(105, 138, 157, 0) 72%);
	filter: blur(16px);
	pointer-events: none;
	z-index: 0;
}

.nm-community__figure {
	position: relative;
	z-index: 1;
	margin: 0;
	max-width: min(100%, 280px);
	width: 100%;
}

.nm-community__title {
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	color: #2a4258;
}

.nm-community__lead {
	font-size: 1rem;
	color: #6b7280;
	line-height: 1.55;
	text-align: center;
	max-width: 34rem;
	margin-inline: auto;
}

.nm-community__features {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem 0.85rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nm-community__feature {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.5rem;
	min-width: 0;
}

.nm-community__feature-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.85);
	border: 1px solid rgba(42, 66, 88, 0.06);
}

.nm-community__feature-icon .nm-icon {
	font-size: 1.25rem;
	color: #698a9d;
}

.nm-community__feature-label {
	font-size: 0.875rem;
	font-weight: 600;
	color: #2a4258;
	line-height: 1.35;
}

/* --- Insights dark --- */

.nm-insights-dark {
	background: #122c41;
	color: #f0f3f5;
	padding-block: var(--nm-space-2xl);
}

.nm-insights-dark__grid {
	display: grid;
	gap: var(--nm-space-xl);
	align-items: start;
}

.nm-insights-dark__title {
	font-size: clamp(1.75rem, 4vw, 2.375rem);
	color: #ffffff;
	margin-bottom: var(--nm-space-md);
	max-width: 20ch;
	line-height: 1.2;
}

.nm-insights-dark__lead {
	font-size: 1rem;
	color: rgba(255, 255, 255, 0.78);
	max-width: 34rem;
	margin-bottom: var(--nm-space-sm);
	line-height: 1.65;
}

.nm-insights-dark__support {
	font-size: 0.9375rem;
	color: rgba(255, 255, 255, 0.78);
	max-width: 34rem;
	margin: 0 0 var(--nm-space-lg);
	line-height: 1.6;
}

.nm-insights-dark__patterns {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nm-insights-dark__pattern {
	position: relative;
	display: grid;
	gap: 0.2rem;
	padding: var(--nm-space-md) 0 var(--nm-space-md) 1.35rem;
	border-bottom: 1px solid rgba(197, 231, 253, 0.2);
}

.nm-insights-dark__pattern::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.25rem;
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 999px;
	background: #c5e7fd;
}

.nm-insights-dark__pattern-title {
	font-size: 1rem;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.3;
}

.nm-insights-dark__pattern-text {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.68);
	line-height: 1.45;
}

.nm-insights-dark__pattern:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

/* --- Pricing --- */

.nm-pricing {
	background: #f7f8f8;
}

.nm-pricing__header {
	text-align: center;
	margin-bottom: var(--nm-space-md);
}

.nm-pricing__layout {
	display: grid;
	gap: var(--nm-space-sm);
}

.nm-pricing__card {
	padding: var(--nm-space-lg);
	background: #ffffff;
	border: 1px solid rgba(42, 66, 88, 0.08);
	border-radius: 20px;
	box-shadow: none;
}

.nm-pricing__card--featured {
	border: 1px solid rgba(42, 66, 88, 0.1);
	box-shadow: var(--nm-shadow-card-featured);
}

.nm-pricing__card--featured .nm-pricing__card-title {
	font-size: 1.3125rem;
}

.nm-pricing__card--featured .nm-icon {
	color: #2a4258;
}

.nm-pricing__card .nm-icon {
	font-size: 1.75rem;
	color: #698a9d;
	margin-bottom: var(--nm-space-sm);
}

.nm-pricing__card-title {
	font-size: 1.25rem;
	color: #2a4258;
	margin-bottom: var(--nm-space-xs);
}

.nm-pricing__card-text {
	font-size: 0.9375rem;
	color: #6b7280;
	margin: 0;
	line-height: 1.55;
}

.nm-pricing__cta {
	text-align: center;
	margin-top: var(--nm-space-xs);
}

.nm-pricing__cta .nm-btn--primary {
	min-width: min(100%, 16rem);
}

/* --- Final CTA --- */

.nm-cta-final {
	padding-block: var(--nm-space-xl);
	background: #ffffff;
}

.nm-cta-final__inner {
	text-align: center;
	max-width: min(100%, 42rem);
	margin-inline: auto;
	padding: var(--nm-space-lg) var(--nm-space-xl);
	background: #ffffff;
	border: 1px solid rgba(42, 66, 88, 0.07);
	border-radius: 24px;
	box-shadow: 0 12px 36px rgba(18, 44, 65, 0.045);
}

.nm-cta-final__title {
	font-size: clamp(1.75rem, 4vw, 2.125rem);
	margin: 0 0 var(--nm-space-xs);
	color: #2a4258;
	font-weight: 700;
	line-height: 1.2;
}

.nm-cta-final__text {
	font-size: 1rem;
	color: #6b7280;
	max-width: 26rem;
	margin: 0 auto var(--nm-space-md);
	line-height: 1.55;
}

.nm-cta-final__inner .nm-btn--primary {
	background: #2a4258;
	border-color: #2a4258;
	box-shadow: 0 14px 32px rgba(42, 66, 88, 0.22);
	min-width: min(100%, 15rem);
}

/* --- FAQ --- */

.nm-home .nm-faq {
	background: #f7f8f8;
	padding-block: var(--nm-space-xl);
}

.nm-home .nm-faq-item {
	background: #ffffff;
	border-color: rgba(42, 66, 88, 0.1);
}

/* --- Dark footer --- */

.nm-site-footer {
	flex-shrink: 0;
	background: #2a4258;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: #ffffff;
	padding-block: var(--nm-space-xl) var(--nm-space-md);
	margin-top: 0;
}

.nm-site-footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	text-decoration: none;
	color: #ffffff;
}

.nm-site-footer__logo-icon {
	display: block;
	width: 42px;
	height: 42px;
	flex-shrink: 0;
}

.nm-site-footer__logo-text {
	font-family: var(--nm-font-heading);
	font-size: 1.425rem;
	font-weight: 700;
	line-height: 42px;
	color: #ffffff;
	letter-spacing: 0.04em;
}

.nm-site-footer__tagline {
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.875rem;
	max-width: 24rem;
	line-height: 1.5;
	margin-top: var(--nm-space-sm);
}

.nm-footer-col__title {
	font-family: var(--nm-font-body);
	font-size: 0.75rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #ffffff;
	margin-bottom: var(--nm-space-sm);
}

.nm-footer-col__list {
	display: grid;
	gap: 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nm-footer-col__list a {
	text-decoration: none;
	color: #b0c9e4;
	font-size: 0.875rem;
	line-height: 1.4;
}

.nm-footer-col__list a:hover,
.nm-footer-col__list a:focus-visible {
	color: #ffffff;
}

.nm-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nm-site-footer__bottom {
	padding-top: var(--nm-space-md);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: grid;
	justify-items: center;
	text-align: center;
	gap: var(--nm-space-xs);
}

.nm-site-footer__legal {
	max-width: 60rem;
	margin: 0 auto;
	font-size: 0.75rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.55);
	text-align: center;
}

.nm-site-footer__legal a {
	color: #b0c9e4;
}

.nm-site-footer__top {
	display: grid;
	gap: var(--nm-space-lg);
	margin-bottom: var(--nm-space-sm);
	max-width: var(--nm-container-max);
	margin-inline: auto;
}

.nm-site-footer__columns {
	display: grid;
	gap: var(--nm-space-md);
}

/* --- Mobile hero order --- */

@media (max-width: 767px) {
	.nm-home .nm-section {
		padding-block: var(--nm-space-lg);
	}

	.nm-home .nm-hero {
		padding-block: var(--nm-space-lg);
	}

	.nm-hero__grid {
		grid-template-columns: 1fr;
		grid-template-areas:
			"badge"
			"title"
			"visual"
			"lead"
			"actions"
			"trust";
		gap: var(--nm-space-sm);
	}

	.nm-hero__badge {
		grid-area: badge;
	}

	.nm-hero__title {
		grid-area: title;
		font-size: clamp(1.625rem, 7vw, 2rem);
	}

	.nm-hero__visual {
		grid-area: visual;
		margin-block: var(--nm-space-xs);
	}

	.nm-hero__lead {
		grid-area: lead;
	}

	.nm-hero__actions {
		grid-area: actions;
		max-width: 80%;
		margin-inline: auto;
		margin-top: var(--nm-space-sm);
		align-items: stretch;
	}

	.nm-hero__trustline {
		grid-area: trust;
		display: none;
	}

	.nm-hero__device-wrap {
		overflow: visible;
		margin-bottom: var(--nm-space-sm);
		width: min(75%, 204px);
	}

	.nm-dream-journal__title,
	.nm-community__title,
	.nm-insights-dark__title,
	.nm-pricing__header .nm-section__title,
	.nm-home .nm-faq .nm-section__title,
	.nm-cta-final__title {
		text-align: center;
	}

	.nm-insights-dark__title {
		margin-inline: auto;
	}

	.nm-home .nm-dream-journal,
	.nm-home .nm-community {
		padding-top: calc(var(--nm-space-lg) + 1rem);
		padding-bottom: calc(var(--nm-space-lg) + 1rem);
	}

	.nm-dream-journal__visual,
	.nm-community__visual {
		margin-block: 0.5rem 1rem;
	}

	.nm-dream-journal__features,
	.nm-community__features {
		margin-top: 1rem;
	}

	.nm-dream-journal__figure,
	.nm-community__figure {
		max-width: 220px;
	}

	.nm-dream-journal__lead,
	.nm-community__lead {
		margin-bottom: 0.75rem;
		text-align: center;
	}

	.nm-insights-dark {
		padding-block: calc(var(--nm-space-lg) + 0.5rem);
	}

	.nm-insights-dark__title {
		margin-bottom: calc(var(--nm-space-md) + 0.25rem);
	}

	.nm-insights-dark__lead {
		margin-bottom: calc(var(--nm-space-sm) + 0.5rem);
	}

	.nm-insights-dark__support {
		margin-bottom: calc(var(--nm-space-lg) + 0.5rem);
	}

	.nm-insights-dark__content .nm-btn {
		display: block;
		width: fit-content;
		max-width: 100%;
		margin-inline: auto;
	}

	.nm-insights-dark__grid {
		gap: calc(var(--nm-space-lg) + 0.5rem);
	}

	.nm-insights-dark__pattern {
		padding-block: calc(var(--nm-space-sm) + 0.25rem);
	}

	.nm-home .nm-faq {
		padding-block: var(--nm-space-lg);
	}

	.nm-cta-final__inner {
		padding: var(--nm-space-lg) var(--nm-space-md);
	}
}

@media (min-width: 640px) {
	.nm-hero__actions {
		flex-direction: row;
		flex-wrap: wrap;
		max-width: none;
	}

	.nm-value-strip__list {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 768px) {
	.nm-value-strip__list {
		grid-template-columns: repeat(4, 1fr);
	}

	.nm-dream-journal__grid {
		display: grid;
		grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr);
		grid-template-areas: "visual panel";
		gap: var(--nm-space-lg);
		align-items: center;
	}

	.nm-dream-journal__visual {
		grid-area: visual;
		order: unset;
	}

	.nm-dream-journal__panel {
		display: flex;
		flex-direction: column;
		gap: 0.65rem;
		grid-area: panel;
	}

	.nm-dream-journal__title,
	.nm-dream-journal__lead,
	.nm-dream-journal__features {
		order: unset;
	}

	.nm-dream-journal__title {
		text-align: left;
	}

	.nm-dream-journal__lead {
		text-align: left;
		margin-inline: 0;
		max-width: none;
	}

	.nm-community__grid {
		display: grid;
		grid-template-columns: minmax(0, 0.56fr) minmax(0, 0.44fr);
		grid-template-areas: "panel visual";
		gap: var(--nm-space-lg);
		align-items: center;
	}

	.nm-community__panel {
		display: flex;
		flex-direction: column;
		gap: 0.65rem;
		grid-area: panel;
	}

	.nm-community__visual {
		grid-area: visual;
		order: unset;
	}

	.nm-community__title,
	.nm-community__lead,
	.nm-community__features {
		order: unset;
	}

	.nm-community__title {
		text-align: left;
	}

	.nm-community__lead {
		text-align: left;
		margin-inline: 0;
		max-width: none;
	}
}

@media (min-width: 960px) {
	.nm-home .nm-section {
		padding-block: var(--nm-space-2xl);
	}

	.nm-home .nm-hero {
		padding-block: var(--nm-space-2xl) var(--nm-space-3xl);
	}

	.nm-hero__grid {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
		grid-template-rows: auto auto auto auto auto;
		grid-template-areas:
			"badge visual"
			"title visual"
			"lead visual"
			"actions visual"
			"trust visual";
		column-gap: var(--nm-space-2xl);
		row-gap: var(--nm-space-md);
		align-items: center;
	}

	.nm-hero__badge {
		grid-area: badge;
		position: relative;
		z-index: 2;
	}

	.nm-hero__title {
		grid-area: title;
		max-width: 16ch;
		font-size: clamp(2.25rem, 3.5vw, 3.35rem);
		position: relative;
		z-index: 2;
	}

	.nm-hero__lead {
		grid-area: lead;
		max-width: 38rem;
		position: relative;
		z-index: 2;
	}

	.nm-hero__actions {
		grid-area: actions;
		position: relative;
		z-index: 2;
	}

	.nm-hero__trustline {
		grid-area: trust;
		display: block;
		position: relative;
		z-index: 2;
	}

	.nm-hero__visual {
		grid-area: visual;
		justify-self: end;
		align-self: center;
		overflow: visible;
		max-width: 100%;
		z-index: 1;
	}

	.nm-hero__device-wrap {
		width: min(100%, 330px);
		margin-inline: 0;
		margin-left: auto;
	}

	.nm-hero__device {
		transform: none;
	}

	.nm-dream-journal__grid {
		grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
		gap: var(--nm-space-lg);
	}

	.nm-dream-journal__panel {
		gap: 0.75rem;
	}

	.nm-community__grid {
		grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.42fr);
		gap: var(--nm-space-lg);
	}

	.nm-community__panel {
		gap: 0.75rem;
	}

	.nm-dream-journal__figure {
		max-width: 300px;
		margin-inline: 0;
	}

	.nm-showcase-device__frame {
		max-width: 300px;
	}

	.nm-community__visual {
		justify-content: flex-end;
	}

	.nm-community__figure {
		max-width: 300px;
		margin-inline: 0 0 0 auto;
	}

	.nm-community__figure .nm-showcase-device__frame {
		margin-inline: 0 0 0 auto;
	}

	.nm-cta-final__inner {
		max-width: min(100%, 51.25rem);
		padding: var(--nm-space-xl) var(--nm-space-2xl);
		border-radius: 26px;
	}

	.nm-insights-dark__grid {
		grid-template-columns: 1.1fr 0.9fr;
		gap: var(--nm-space-2xl);
	}

	.nm-insights-dark__title {
		max-width: none;
	}

	.nm-pricing__layout {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		align-items: stretch;
		gap: var(--nm-space-md);
	}


	.nm-pricing__cta {
		grid-column: 1 / -1;
		margin-top: 0;
	}

	.nm-site-footer__top {
		grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
		align-items: start;
		gap: var(--nm-space-2xl);
	}
}

/* iPad / tablet portrait */
@media (min-width: 768px) and (max-width: 1180px) and (orientation: portrait) {
	.nm-hero__grid {
		column-gap: var(--nm-space-xl);
	}

	.nm-hero__device-wrap {
		width: min(100%, 272px);
	}

	.nm-hero__visual {
		overflow: visible;
		padding-right: 0;
	}

	.nm-dream-journal__grid {
		grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr);
		gap: var(--nm-space-lg);
	}

	.nm-community__grid {
		grid-template-columns: minmax(0, 0.56fr) minmax(0, 0.44fr);
		gap: var(--nm-space-lg);
	}

	.nm-insights-dark {
		padding-block: var(--nm-space-xl);
	}

	.nm-insights-dark__grid {
		gap: var(--nm-space-lg);
	}

	.nm-container {
		padding-inline: 40px;
	}

	.nm-pricing__layout {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.nm-pricing__cta {
		grid-column: 1 / -1;
	}

	.nm-site-footer__top {
		grid-template-columns: 1fr;
	}

	.nm-site-footer__columns {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ==========================================================================
   Responsive â€” tablet
   ========================================================================== */

@media (min-width: 640px) {
	.nm-steps {
		grid-template-columns: repeat(2, 1fr);
	}

	.nm-feature-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.nm-pricing-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.nm-post-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.nm-insights__cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ==========================================================================
   Responsive â€” desktop
   ========================================================================== */

@media (min-width: 960px) {
	.nm-section {
		padding-block: var(--nm-space-3xl);
	}

	.nm-home .nm-section {
		padding-block: var(--nm-space-2xl);
	}

	.nm-site-header__cta {
		display: flex;
	}

	.nm-nav__toggle {
		display: none;
	}

	.nm-nav__overlay {
		display: none !important;
	}

	.nm-nav__panel {
		display: flex !important;
		position: static;
		top: auto;
		right: auto;
		width: auto;
		max-width: none;
		height: auto;
		z-index: auto;
		flex-direction: row;
		background: transparent;
		padding: 0;
		overflow: visible;
		align-items: center;
		gap: var(--nm-space-lg);
		transform: none;
		visibility: visible;
		pointer-events: auto;
		transition: none;
	}

	.nm-nav__panel-bar,
	.nm-nav__panel-brand {
		display: none;
	}

	.nm-nav__panel-body {
		display: flex;
		flex-direction: row;
		align-items: center;
		flex: 1 1 auto;
		gap: var(--nm-space-lg);
		padding: 0;
		min-height: 0;
	}

	.nm-site-header.is-nav-open {
		z-index: var(--nm-z-header);
	}

	body.nm-nav-panel-open {
		overflow: visible;
	}

	.nm-nav__panel[hidden] {
		display: flex !important;
	}

	.nm-nav__list {
		flex-direction: row;
		align-items: center;
		gap: 0.25rem;
	}

	.nm-nav__actions {
		display: none;
	}

	.nm-nav__list a,
	#primary-menu a {
		min-height: 2.5rem;
		padding: 0.5rem 0.75rem;
		font-size: 0.9375rem;
	}

	.nm-pwa-preview__grid,
	.nm-insights__grid {
		grid-template-columns: 1fr 1fr;
		gap: var(--nm-space-2xl);
	}

	.nm-pwa-preview__grid {
		direction: rtl;
	}

	.nm-pwa-preview__grid > * {
		direction: ltr;
	}

	.nm-steps {
		grid-template-columns: repeat(4, 1fr);
	}

	.nm-feature-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.nm-feature-grid .nm-card:nth-child(7) {
		grid-column: span 1;
	}

	.nm-trust__grid {
		grid-template-columns: 1fr 1fr;
	}

	.nm-site-footer__top {
		grid-template-columns: 1.2fr 2fr;
	}

	.nm-post-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.nm-post-nav {
		grid-template-columns: 1fr 1fr;
	}
}

/* Last feature card spans on some breakpoints */
@media (min-width: 960px) and (max-width: 1199px) {
	/* Force tablet/iPad layout (hamburger panel) */
	.nm-site-header__cta {
		display: none !important;
	}

	.nm-nav__toggle {
		display: flex !important;
	}

	.nm-nav__overlay {
		display: block !important;
	}

	.nm-nav__panel {
		position: fixed !important;
		top: 0;
		right: 0;
		width: 100vw;
		max-width: none;
		height: 100vh;
		height: 100dvh;
		z-index: var(--nm-z-nav-panel);
		background: var(--nm-color-page);
		border-radius: 0;
		box-shadow: none;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		transform: translateX(100%) !important;
		visibility: hidden !important;
		pointer-events: none !important;
		transition:
			transform 420ms cubic-bezier(0.22, 1, 0.36, 1),
			visibility 420ms linear !important;
		flex-direction: column !important;
		align-items: stretch;
		gap: 0;
		display: flex !important;
	}

	.nm-nav__panel[hidden] {
		display: none !important;
	}

	.nm-nav__panel.is-open {
		transform: translateX(0) !important;
		visibility: visible !important;
		pointer-events: auto !important;
	}

	.nm-nav__panel-bar {
		display: grid !important;
	}

	.nm-nav__panel-brand {
		display: block !important;
	}

	.nm-nav__panel-body {
		align-items: stretch;
		min-height: 0;
	}

	.nm-nav__panel-secondary {
		display: grid !important;
	}

	.nm-nav__list {
		flex-direction: column !important;
		align-items: stretch;
		gap: var(--nm-space-xs) !important;
	}

	.nm-nav__actions {
		display: flex !important;
		flex-direction: column;
	}

	.nm-feature-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Header desktop — wide editorial layout (final cascade) */
@media (min-width: 1200px) {
	.nm-site-header > .nm-site-header__inner.nm-container {
		max-width: 90rem;
		width: 100%;
		padding-inline: clamp(2rem, 5vw, 4.5rem);
	}

	.nm-site-header__inner {
		display: grid;
		grid-template-columns: auto 1fr auto;
		align-items: center;
		column-gap: clamp(2.5rem, 4vw, 5rem);
		min-height: 4.25rem;
	}

	.nm-site-header__brand {
		max-width: none;
		justify-self: start;
	}

	.nm-site-header__logo-link img,
	.nm-site-header__logo img,
	.nm-site-header .custom-logo-link img {
		max-height: 2.35rem;
	}

	.nm-nav {
		justify-self: center;
		min-width: 0;
	}

	.nm-site-header__cta {
		justify-self: end;
	}

	.nm-site-header .nm-nav__list {
		flex-wrap: nowrap;
		justify-content: center;
		gap: clamp(2.1rem, 2.8vw, 3.25rem);
	}

	.nm-site-header .nm-nav__list a,
	.nm-site-header .nm-nav__list .nm-nav__link,
	.nm-site-header #primary-menu a {
		position: relative;
		min-height: 2.45rem;
		padding: 0.35rem 0;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		font-family: var(--nm-font-body);
		font-size: 0.94rem;
		font-weight: 500;
		line-height: 1;
		letter-spacing: -0.005em;
		color: rgba(31, 53, 73, 0.76);
		text-decoration: none;
		-webkit-font-smoothing: antialiased;
		transition: color 160ms ease;
	}

	.nm-site-header .nm-nav__list a::after,
	.nm-site-header .nm-nav__list .nm-nav__link::after,
	.nm-site-header #primary-menu a::after {
		content: "";
		position: absolute;
		left: 50%;
		bottom: 0.1rem;
		width: 4px;
		height: 4px;
		border-radius: 999px;
		background: rgba(42, 66, 88, 0.62);
		opacity: 0;
		transform: translateX(-50%) scale(0.7);
		transition: opacity 160ms ease, transform 160ms ease;
	}

	.nm-site-header .nm-nav__list .current-menu-item > a,
	.nm-site-header .nm-nav__list .current_page_item > a,
	.nm-site-header .nm-nav__list .current-menu-ancestor > a,
	.nm-site-header #primary-menu .current-menu-item > a,
	.nm-site-header #primary-menu .current_page_item > a,
	.nm-site-header #primary-menu .current-menu-ancestor > a {
		color: var(--nm-color-primary);
		background: transparent;
		box-shadow: none;
	}

	.nm-site-header .nm-nav__list .current-menu-item > a::after,
	.nm-site-header .nm-nav__list .current_page_item > a::after,
	.nm-site-header .nm-nav__list .current-menu-ancestor > a::after,
	.nm-site-header #primary-menu .current-menu-item > a::after,
	.nm-site-header #primary-menu .current_page_item > a::after,
	.nm-site-header #primary-menu .current-menu-ancestor > a::after {
		opacity: 1;
		transform: translateX(-50%) scale(1);
	}

	.nm-site-header .nm-nav__list a:hover,
	.nm-site-header .nm-nav__list .nm-nav__link:hover,
	.nm-site-header #primary-menu a:hover {
		color: var(--nm-color-primary);
		background: transparent;
		box-shadow: none;
	}

	.nm-site-header .nm-nav__list a:hover::after,
	.nm-site-header .nm-nav__list .nm-nav__link:hover::after,
	.nm-site-header #primary-menu a:hover::after {
		opacity: 0.45;
		transform: translateX(-50%) scale(1);
	}

	.nm-site-header .nm-nav__list .current-menu-item > a:hover::after,
	.nm-site-header .nm-nav__list .current_page_item > a:hover::after,
	.nm-site-header .nm-nav__list .current-menu-ancestor > a:hover::after,
	.nm-site-header #primary-menu .current-menu-item > a:hover::after,
	.nm-site-header #primary-menu .current_page_item > a:hover::after,
	.nm-site-header #primary-menu .current-menu-ancestor > a:hover::after {
		opacity: 1;
	}

	.nm-site-header .nm-nav__list a:focus-visible,
	.nm-site-header .nm-nav__list .nm-nav__link:focus-visible,
	.nm-site-header #primary-menu a:focus-visible {
		color: var(--nm-color-primary);
		background: transparent;
		box-shadow: none;
		outline: 2px solid rgba(31, 53, 73, 0.28);
		outline-offset: 3px;
	}

	.nm-site-header .nm-nav__list a:focus-visible::after,
	.nm-site-header .nm-nav__list .nm-nav__link:focus-visible::after,
	.nm-site-header #primary-menu a:focus-visible::after {
		opacity: 0.55;
		transform: translateX(-50%) scale(1);
	}

	.nm-site-header .nm-site-header__cta .nm-lang-switch__trigger {
		min-height: 2.45rem;
		height: 2.45rem;
		padding-inline: 1rem;
		border-radius: 999px;
		border: 1px solid rgba(31, 53, 73, 0.16);
		background: #ffffff;
		color: rgba(31, 53, 73, 0.84);
		font-family: var(--nm-font-body);
		font-size: 0.9rem;
		font-weight: 500;
		line-height: 1;
		letter-spacing: -0.005em;
		transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
	}

	.nm-site-header .nm-site-header__cta .nm-lang-switch__trigger:hover {
		background: rgba(31, 53, 73, 0.04);
		border-color: rgba(31, 53, 73, 0.28);
		color: var(--nm-color-primary);
	}

	.nm-site-header .nm-site-header__cta .nm-lang-switch__code {
		font-weight: 500;
	}

	.nm-site-header .nm-site-header__cta-btn {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0.45rem;
		box-sizing: border-box;
		min-height: 2.45rem;
		height: 2.45rem;
		padding: 0 1.25rem;
		border-radius: 999px;
		border: 1px solid rgba(31, 53, 73, 0.22);
		background: #ffffff;
		color: rgba(31, 53, 73, 0.92);
		box-shadow: none;
		font-family: var(--nm-font-body);
		font-size: 0.9rem;
		font-weight: 600;
		line-height: 1;
		letter-spacing: -0.005em;
		text-decoration: none;
		white-space: nowrap;
		cursor: pointer;
		-webkit-font-smoothing: antialiased;
		transition:
			border-color 160ms ease,
			background-color 160ms ease,
			color 160ms ease,
			transform 160ms ease;
	}

	.nm-site-header .nm-site-header__cta-icon {
		width: 0.85em;
		height: 0.85em;
		flex: 0 0 auto;
		display: inline-block;
		color: currentColor;
		background: transparent;
		border: 0;
		box-shadow: none;
	}

	.nm-site-header .nm-site-header__cta-btn:hover {
		background: rgba(31, 53, 73, 0.04);
		border-color: rgba(31, 53, 73, 0.34);
		color: var(--nm-color-primary);
		transform: translateY(-1px);
		box-shadow: none;
	}

	.nm-site-header .nm-site-header__cta-btn:active {
		transform: translateY(0);
	}

	.nm-site-header .nm-site-header__cta-btn:focus-visible {
		outline: 2px solid rgba(31, 53, 73, 0.28);
		outline-offset: 3px;
	}

	.nm-nav__panel-secondary {
		display: none !important;
	}

	.nm-nav__panel-primary {
		display: flex;
		align-items: center;
	}
}

/* --------------------------------------------------------------------------
   Soft Moon Panel — mobile/tablet hamburger (< 1200px)
   All rules scoped under .nm-nav__panel — desktop header nav untouched.
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
	.nm-nav__panel {
		isolation: isolate;
		background-color: var(--nm-color-page);
	}

	.nm-nav__panel::before {
		content: "";
		position: absolute;
		right: 0;
		bottom: 0;
		z-index: 0;
		width: min(54vw, 34rem);
		height: min(62vh, 36rem);
		pointer-events: none;
		opacity: 0.1;
		background:
			radial-gradient(circle at 58% 44%, rgba(105, 138, 157, 0.14), rgba(105, 138, 157, 0) 58%),
			radial-gradient(circle at 72% 78%, rgba(176, 201, 228, 0.1), rgba(176, 201, 228, 0) 62%);
		background-repeat: no-repeat;
		background-position: center;
		background-size: contain;
		mix-blend-mode: normal;
	}

	.nm-nav__panel > * {
		position: relative;
		z-index: 1;
	}

	.nm-nav__panel-bar {
		background: var(--nm-color-page);
		border-bottom: 0;
		min-height: clamp(5.75rem, 9.5vw, 7.25rem);
		overflow: visible;
		padding-inline: clamp(1.75rem, 4.5vw, 3.75rem);
	}

	.nm-nav__panel-bar .nm-menu-admin-hint {
		display: none;
	}

	.nm-nav__close,
	.nm-nav__panel-close {
		position: relative;
		display: inline-grid;
		place-items: center;
		width: clamp(3.75rem, 7vw, 5rem);
		height: clamp(3.75rem, 7vw, 5rem);
		padding: 0;
		border: 1.5px solid rgba(31, 53, 73, 0.72);
		border-radius: 999px;
		background: transparent;
		color: var(--nm-color-primary);
		line-height: 1;
		box-sizing: border-box;
		box-shadow: none;
	}

	.nm-nav__close:hover,
	.nm-nav__close:focus-visible,
	.nm-nav__panel-close:hover,
	.nm-nav__panel-close:focus-visible {
		background: rgba(31, 53, 73, 0.04);
		border-color: var(--nm-color-primary);
	}

	.nm-nav__panel-close-mark {
		position: relative;
		display: block;
		width: 1.35rem;
		height: 1.35rem;
	}

	.nm-nav__panel-close-mark::before,
	.nm-nav__panel-close-mark::after {
		content: "";
		position: absolute;
		left: 50%;
		top: 50%;
		width: 1.45rem;
		height: 1.5px;
		background: currentColor;
		border-radius: 999px;
		transform-origin: center;
	}

	.nm-nav__panel-close-mark::before {
		transform: translate(-50%, -50%) rotate(45deg);
	}

	.nm-nav__panel-close-mark::after {
		transform: translate(-50%, -50%) rotate(-45deg);
	}

	.nm-nav__panel-brand {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		line-height: 0;
		overflow: visible;
	}

	.nm-nav__panel-logo-large,
	.nm-nav__panel-brand img,
	.nm-nav__panel-brand .custom-logo,
	.nm-nav__panel-brand-link img,
	.nm-nav__panel-brand .custom-logo-link img {
		display: block;
		width: clamp(17rem, 31vw, 24rem);
		max-width: min(72vw, 24rem);
		height: auto !important;
		max-height: none !important;
		aspect-ratio: auto;
		object-fit: contain;
	}

	.nm-nav__panel .nm-nav__panel-body {
		width: 100%;
		max-width: none;
		margin: 0;
		min-height: calc(100dvh - clamp(5.75rem, 9.5vw, 7.25rem));
		padding:
			clamp(2rem, 7vw, 3rem)
			clamp(1.25rem, 6vw, 2rem)
			clamp(1.5rem, 6vw, 2.5rem);
	}

	.nm-nav__panel .nm-nav__panel-primary,
	.nm-nav__panel .nm-nav__panel-secondary {
		min-width: 0;
	}

	.nm-nav__panel .nm-nav__list {
		display: grid;
		gap: 0.85rem;
	}

	.nm-nav__panel .nm-nav__list a,
	.nm-nav__panel .nm-nav__list .nm-nav__link,
	.nm-nav__panel #primary-menu a {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: flex-start;
		min-height: 0;
		width: auto;
		padding: 0;
		border: 0;
		border-radius: 0;
		font-family: var(--nm-font-heading);
		font-size: clamp(2.45rem, 13vw, 3.35rem);
		font-weight: 400;
		line-height: 0.98;
		letter-spacing: -0.035em;
		color: var(--nm-color-primary);
		text-decoration: none;
		background: transparent;
		box-shadow: none;
		white-space: normal;
		transition: color 180ms ease, transform 180ms ease;
	}

	.nm-nav__panel .nm-nav__list a::before,
	.nm-nav__panel .nm-nav__list .nm-nav__link::before,
	.nm-nav__panel #primary-menu a::before {
		content: "";
		position: absolute;
		left: -1.45rem;
		top: 50%;
		width: 0.62rem;
		height: 0.62rem;
		border-radius: 999px;
		background: var(--nm-color-primary);
		opacity: 0;
		transform: translateY(-50%) scale(0.7);
		transition: opacity 180ms ease, transform 180ms ease;
	}

	.nm-nav__panel .nm-nav__list a:hover,
	.nm-nav__panel .nm-nav__list .nm-nav__link:hover,
	.nm-nav__panel #primary-menu a:hover,
	.nm-nav__panel .nm-nav__list a:focus-visible,
	.nm-nav__panel .nm-nav__list .nm-nav__link:focus-visible,
	.nm-nav__panel #primary-menu a:focus-visible {
		background: transparent;
		color: var(--nm-color-primary-dark);
		box-shadow: none;
		transform: translateX(0.16rem);
	}

	.nm-nav__panel .nm-nav__list .current-menu-item > a,
	.nm-nav__panel .nm-nav__list .current_page_item > a,
	.nm-nav__panel #primary-menu .current-menu-item > a,
	.nm-nav__panel #primary-menu .current_page_item > a {
		background: transparent;
		color: var(--nm-color-primary);
		box-shadow: none;
	}

	.nm-nav__panel .nm-nav__list .current-menu-item > a::before,
	.nm-nav__panel .nm-nav__list .current_page_item > a::before,
	.nm-nav__panel #primary-menu .current-menu-item > a::before,
	.nm-nav__panel #primary-menu .current_page_item > a::before {
		opacity: 1;
		transform: translateY(-50%) scale(1);
	}

	.nm-nav__panel .nm-lang-switch--mobile {
		margin: 0;
		padding: 0;
		border: 0;
		width: 100%;
	}

	.nm-nav__panel .nm-lang-switch--mobile .nm-lang-switch__label {
		margin: 0 0 1rem;
		padding: 0;
		font-family: var(--nm-font-body);
		font-size: 0.78rem;
		font-weight: 800;
		letter-spacing: 0.16em;
		text-transform: uppercase;
		color: rgba(31, 53, 73, 0.56);
		text-align: left;
	}

	.nm-nav__panel .nm-lang-switch--mobile .nm-lang-switch__list {
		display: grid;
		gap: 0.72rem;
	}

	.nm-nav__panel .nm-lang-switch--mobile .nm-lang-switch__link {
		position: relative;
		display: inline-flex;
		align-items: center;
		justify-content: flex-start;
		gap: 1rem;
		width: fit-content;
		max-width: 100%;
		min-height: 0;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		color: rgba(31, 53, 73, 0.76);
		font-size: 1rem;
		font-weight: 600;
	}

	.nm-nav__panel .nm-lang-switch--mobile .nm-lang-switch__link::after {
		content: "";
		position: static;
		width: 0.42rem;
		height: 0.42rem;
		margin-left: 0;
		border-radius: 999px;
		background: var(--nm-color-primary);
		opacity: 0;
		transform: scale(0.7);
		transition: opacity 160ms ease, transform 160ms ease;
		flex: 0 0 auto;
	}

	.nm-nav__panel .nm-lang-switch--mobile .nm-lang-switch__link:hover,
	.nm-nav__panel .nm-lang-switch--mobile .nm-lang-switch__link:focus-visible {
		background: transparent;
		color: var(--nm-color-primary);
		box-shadow: none;
	}

	.nm-nav__panel .nm-lang-switch--mobile .nm-lang-switch__link.is-current,
	.nm-nav__panel .nm-lang-switch--mobile .nm-lang-switch__link[aria-current="true"],
	.nm-nav__panel .nm-lang-switch--mobile .current-lang > .nm-lang-switch__link {
		background: transparent;
		color: var(--nm-color-primary);
		font-weight: 800;
		box-shadow: none;
	}

	.nm-nav__panel .nm-lang-switch--mobile .nm-lang-switch__link.is-current::after,
	.nm-nav__panel .nm-lang-switch--mobile .nm-lang-switch__link[aria-current="true"]::after,
	.nm-nav__panel .nm-lang-switch--mobile .current-lang > .nm-lang-switch__link::after {
		opacity: 1;
		transform: scale(1);
	}

	.nm-nav__panel-support {
		display: grid;
		gap: 0.75rem;
		border-top: 1px solid rgba(31, 53, 73, 0.16);
		padding-top: clamp(1.3rem, 2.5vw, 1.8rem);
	}

	.nm-nav__panel .nm-nav__support-list {
		display: grid;
		gap: 0.9rem;
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.nm-nav__panel .nm-nav__support-list a {
		display: inline-flex;
		align-items: center;
		gap: 0.75rem;
		width: fit-content;
		color: rgba(31, 53, 73, 0.78);
		font-family: var(--nm-font-body);
		font-size: 1rem;
		font-weight: 600;
		text-decoration: none;
	}

	.nm-nav__panel .nm-nav__support-list a::before {
		display: inline-grid;
		place-items: center;
		width: 1.35rem;
		height: 1.35rem;
		border: 1px solid rgba(31, 53, 73, 0.34);
		border-radius: 999px;
		color: var(--nm-color-primary);
		font-size: 0.78rem;
		line-height: 1;
		flex: 0 0 auto;
	}

	.nm-nav__panel .nm-nav__support-list li:nth-child(1) a::before {
		content: "?";
	}

	.nm-nav__panel .nm-nav__support-list li:nth-child(2) a::before {
		content: "✉";
	}

	.nm-nav__panel .nm-nav__support-list li:nth-child(3) a::before {
		content: "♢";
	}

	.nm-nav__panel .nm-nav__support-list a:hover,
	.nm-nav__panel .nm-nav__support-list a:focus-visible {
		color: var(--nm-color-primary);
		text-decoration: underline;
		text-underline-offset: 0.18em;
	}

	.nm-nav__panel .nm-nav__actions {
		margin: 0;
		padding: 0;
		border: 0;
		align-items: flex-start;
	}

	.nm-nav__panel .nm-nav__panel-cta {
		display: inline-flex;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
		width: min(100%, 18rem);
		min-height: 4.25rem;
		padding: 0 1.45rem;
		border: 0;
		border-radius: 0.85rem;
		background: linear-gradient(135deg, #0f2030 0%, var(--nm-color-primary) 100%);
		color: #fff;
		box-shadow: 0 18px 42px rgba(42, 66, 88, 0.18);
		font-size: 1.08rem;
		font-weight: 800;
		text-decoration: none;
	}

	.nm-nav__panel .nm-nav__panel-cta:hover,
	.nm-nav__panel .nm-nav__panel-cta:focus-visible {
		background: linear-gradient(135deg, #0c1a28 0%, var(--nm-color-primary-dark) 100%);
		color: #fff;
		transform: translateY(-1px);
		box-shadow: 0 20px 44px rgba(42, 66, 88, 0.22);
	}

	.nm-nav__panel .nm-nav__panel-cta:active {
		transform: translateY(0);
	}

	.nm-nav__panel-cta-icon {
		font-size: 1.35rem;
		line-height: 1;
	}

	.nm-nav__panel-cta-label {
		flex: 1 1 auto;
		text-align: left;
		white-space: nowrap;
	}

	.nm-nav__panel-cta-arrow {
		font-family: inherit;
		font-size: 1.6rem;
		line-height: 1;
		color: currentColor;
		background: transparent;
	}

	.nm-nav__panel-cta-note {
		margin: 0.85rem 0 0;
		color: rgba(31, 53, 73, 0.54);
		font-size: 1rem;
		font-weight: 600;
		line-height: 1.45;
		max-width: 18rem;
	}
}

@media (min-width: 768px) and (max-width: 1199px) {
	.nm-nav__panel .nm-nav__panel-body {
		display: grid !important;
		grid-template-columns: minmax(0, 1.35fr) minmax(19rem, 0.68fr);
		align-items: center;
		gap: clamp(2.75rem, 5.8vw, 4.75rem);
		width: min(100%, var(--nm-container-wide));
		max-width: var(--nm-container-wide);
		margin-inline: auto;
		min-height: calc(100dvh - clamp(5.75rem, 9.5vw, 7.25rem));
		padding-top: clamp(0.75rem, 2.2vw, 1.5rem);
		padding-bottom: clamp(3.5rem, 6vw, 5.5rem);
		padding-inline: var(--nm-container-gutter);
		transform: translateY(clamp(-3.25rem, -5vw, -5.5rem));
	}

	.nm-nav__panel .nm-nav__list a,
	.nm-nav__panel .nm-nav__list .nm-nav__link,
	.nm-nav__panel #primary-menu a {
		white-space: nowrap;
	}

	.nm-nav__panel .nm-nav__panel-primary {
		display: flex;
		align-items: center;
		justify-content: center;
		align-self: center;
		min-height: 100%;
		padding-left: clamp(2rem, 4.5vw, 4rem);
		padding-right: clamp(1rem, 2vw, 2rem);
	}

	.nm-nav__panel .nm-nav__panel-primary .nm-nav__list {
		width: min(100%, 46rem);
		max-width: 46rem;
		margin-inline: auto;
		padding-left: 1.6rem;
	}

	.nm-nav__panel .nm-nav__panel-secondary {
		position: relative;
		display: grid !important;
		align-content: center;
		align-self: center;
		gap: clamp(1.85rem, 3.2vw, 2.65rem);
		min-height: min(66vh, 36rem);
		padding-left: clamp(2.4rem, 4.5vw, 3.75rem);
	}

	.nm-nav__panel .nm-nav__panel-secondary::before {
		content: "";
		position: absolute;
		left: 0;
		top: 0;
		bottom: 0;
		width: 1px;
		background: rgba(31, 53, 73, 0.16);
	}

	.nm-nav__panel .nm-lang-switch--mobile .nm-lang-switch__label {
		font-size: 0.86rem;
		letter-spacing: 0.17em;
		margin-bottom: 1.15rem;
	}

	.nm-nav__panel .nm-lang-switch--mobile .nm-lang-switch__list {
		gap: 0.95rem;
	}

	.nm-nav__panel .nm-lang-switch--mobile .nm-lang-switch__link {
		font-size: 1.08rem;
		line-height: 1.25;
	}

	.nm-nav__panel .nm-nav__support-list {
		gap: 1.1rem;
	}

	.nm-nav__panel .nm-nav__support-list a {
		font-size: 1.06rem;
		line-height: 1.25;
	}

	.nm-nav__panel .nm-nav__actions {
		margin-top: clamp(0.75rem, 1.8vw, 1.35rem);
	}

	.nm-nav__panel .nm-nav__panel-cta {
		width: min(100%, 20.5rem);
		min-height: 4.3rem;
		padding: 0 1.55rem;
		border-radius: 0.8rem;
		white-space: nowrap;
	}

	.nm-nav__panel-cta-label {
		white-space: nowrap;
		font-size: 1.08rem;
		line-height: 1;
		flex: 1 1 auto;
		min-width: 0;
	}

	.nm-nav__panel-cta-icon,
	.nm-nav__panel-cta-arrow {
		flex: 0 0 auto;
	}

	.nm-nav__panel-cta-note {
		margin-top: 1.15rem;
		font-size: 1.03rem;
		line-height: 1.45;
		max-width: 20.5rem;
	}
}

/* iPad mini — compact tablet */
@media (min-width: 768px) and (max-width: 819px) {
	.nm-nav__panel .nm-nav__panel-primary .nm-nav__list {
		width: min(100%, 40rem);
		max-width: 40rem;
	}

	.nm-nav__panel .nm-nav__list {
		gap: clamp(2.25rem, 3.8vw, 3.25rem);
	}

	.nm-nav__panel .nm-nav__list a,
	.nm-nav__panel .nm-nav__list .nm-nav__link,
	.nm-nav__panel #primary-menu a {
		font-size: clamp(2.9rem, 5.45vw, 3.7rem);
		font-weight: 300;
		font-synthesis-weight: none;
		line-height: 1;
		letter-spacing: -0.05em;
		white-space: nowrap;
	}
}

/* iPad Air */
@media (min-width: 820px) and (max-width: 959px) {
	.nm-nav__panel .nm-nav__panel-primary .nm-nav__list {
		width: min(100%, 40rem);
		max-width: 40rem;
	}

	.nm-nav__panel .nm-nav__list {
		gap: clamp(2.85rem, 4.4vw, 3.75rem);
	}

	.nm-nav__panel .nm-nav__list a,
	.nm-nav__panel .nm-nav__list .nm-nav__link,
	.nm-nav__panel #primary-menu a {
		font-size: clamp(2.9rem, 5.45vw, 3.7rem);
		font-weight: 300;
		font-synthesis-weight: none;
		line-height: 1;
		letter-spacing: -0.05em;
		white-space: nowrap;
	}
}

/* iPad Pro / large tablet */
@media (min-width: 960px) and (max-width: 1199px) {
	.nm-nav__panel .nm-nav__panel-body {
		grid-template-columns: minmax(0, 1.42fr) minmax(20rem, 0.72fr);
		gap: clamp(2.4rem, 4.8vw, 4.25rem);
		transform: translateY(calc(clamp(-3.25rem, -5vw, -5.5rem) - 30px));
	}

	.nm-nav__panel .nm-nav__panel-secondary {
		transform: translateX(clamp(-2.25rem, -2.6vw, -1.25rem));
	}

	.nm-nav__panel .nm-nav__list a,
	.nm-nav__panel .nm-nav__list .nm-nav__link,
	.nm-nav__panel #primary-menu a {
		font-size: clamp(3.25rem, 5.35vw, 4.3rem);
		font-weight: 300;
		font-synthesis-weight: none;
		line-height: 0.98;
		letter-spacing: -0.052em;
		white-space: nowrap;
	}

	.nm-nav__panel .nm-lang-switch--mobile .nm-lang-switch__label {
		font-size: 0.95rem;
		letter-spacing: 0.17em;
	}

	.nm-nav__panel .nm-lang-switch--mobile .nm-lang-switch__list {
		gap: 1.08rem;
	}

	.nm-nav__panel .nm-lang-switch--mobile .nm-lang-switch__link {
		font-size: 1.18rem;
		line-height: 1.3;
	}

	.nm-nav__panel .nm-nav__support-list {
		gap: 1.2rem;
	}

	.nm-nav__panel .nm-nav__support-list a {
		font-size: 1.15rem;
		line-height: 1.3;
	}

	.nm-nav__panel-cta-note {
		font-size: 1.08rem;
		line-height: 1.48;
		max-width: 22rem;
	}
}

/* iPad Pro — final spacing overrides (cascade win) */
@media (min-width: 960px) and (max-width: 1199px) {
	.nm-nav__panel .nm-nav__list,
	.nm-nav__panel-primary .nm-nav__list {
		gap: clamp(4.6rem, 6.2vw, 6.25rem) !important;
	}
}

@media (max-width: 767px) {
	.nm-nav__panel::before {
		width: 70vw;
		height: 42vh;
		opacity: 0.06;
	}

	.nm-nav__panel-bar {
		min-height: 4.75rem;
		padding-inline: clamp(1.25rem, 5vw, 1.75rem);
		background: var(--nm-color-page);
	}

	.nm-nav__close,
	.nm-nav__panel-close {
		width: 3rem;
		height: 3rem;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		color: var(--nm-color-primary);
	}

	.nm-nav__panel-close-mark {
		position: relative;
		width: 1.45rem;
		height: 1.45rem;
	}

	.nm-nav__panel-close-mark::before {
		content: "";
		position: absolute;
		left: 0.18rem;
		top: 50%;
		width: 1.2rem;
		height: 1.5px;
		background: currentColor;
		border-radius: 999px;
		transform: translateY(-50%);
	}

	.nm-nav__panel-close-mark::after {
		content: "";
		position: absolute;
		left: 0.18rem;
		top: 50%;
		width: 0.62rem;
		height: 0.62rem;
		border-left: 1.5px solid currentColor;
		border-bottom: 1.5px solid currentColor;
		transform: translateY(-50%) rotate(45deg);
		background: transparent;
		border-radius: 0;
	}

	.nm-nav__panel-logo-large,
	.nm-nav__panel-brand img,
	.nm-nav__panel-brand .custom-logo,
	.nm-nav__panel-brand-link img,
	.nm-nav__panel-brand .custom-logo-link img {
		width: clamp(11.5rem, 48vw, 15rem);
		max-width: 68vw;
		height: auto !important;
		max-height: none !important;
		object-fit: contain;
	}

	.nm-nav__panel .nm-nav__panel-body {
		display: flex;
		flex-direction: column;
		gap: clamp(1.8rem, 6vw, 2.75rem);
		width: 100%;
		max-width: none;
		margin: 0;
		min-height: calc(100dvh - clamp(5.75rem, 9.5vw, 7.25rem));
		padding-top: clamp(1.75rem, 6vw, 2.75rem);
		padding-inline: clamp(1.5rem, 6vw, 2rem);
		padding-bottom: max(3rem, calc(env(safe-area-inset-bottom) + 2.75rem));
		transform: none;
	}

	.nm-nav__panel .nm-nav__panel-primary {
		width: 100%;
		padding-left: clamp(0.75rem, 4vw, 1.25rem);
		padding-right: 0;
		padding-bottom: clamp(1.35rem, 5vw, 2rem);
		margin-bottom: clamp(1.35rem, 5vw, 2rem);
		border-bottom: 1px solid rgba(31, 53, 73, 0.14);
	}

	.nm-nav__panel .nm-nav__panel-primary .nm-nav__list {
		width: 100%;
		max-width: 100%;
	}

	.nm-nav__panel .nm-nav__list {
		gap: clamp(0.75rem, 3.5vw, 1.15rem);
	}

	.nm-nav__panel .nm-nav__list a,
	.nm-nav__panel .nm-nav__list .nm-nav__link,
	.nm-nav__panel #primary-menu a {
		font-size: clamp(1.95rem, 8.3vw, 2.55rem);
		font-weight: 300;
		font-synthesis-weight: none;
		line-height: 1.04;
		letter-spacing: -0.045em;
		white-space: normal;
	}

	.nm-nav__panel .nm-nav__panel-secondary {
		display: grid;
		width: 100%;
		gap: clamp(1.25rem, 5vw, 1.85rem);
		margin-top: auto;
		padding-left: 0;
		padding-inline: clamp(0.75rem, 4vw, 1.25rem);
	}

	.nm-nav__panel .nm-nav__panel-secondary::before {
		display: none;
	}

	.nm-nav__panel .nm-lang-switch--mobile .nm-lang-switch__label {
		font-size: 0.78rem;
		letter-spacing: 0.16em;
	}

	.nm-nav__panel .nm-lang-switch--mobile .nm-lang-switch__list {
		gap: 0.85rem;
	}

	.nm-nav__panel .nm-lang-switch--mobile .nm-lang-switch__link {
		font-size: 0.98rem;
		line-height: 1.35;
	}

	.nm-nav__panel .nm-nav__support-list {
		gap: 0.9rem;
	}

	.nm-nav__panel .nm-nav__support-list a {
		font-size: 0.98rem;
		line-height: 1.35;
	}

	.nm-nav__panel .nm-nav__actions {
		margin-top: clamp(1.15rem, 5vw, 1.75rem);
		padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
	}

	.nm-nav__panel .nm-nav__panel-cta {
		width: 100%;
		max-width: 21rem;
		min-height: 3.75rem;
		margin-inline: 0;
	}

	.nm-nav__panel-cta-note {
		margin-top: 1rem;
		max-width: 21rem;
		font-size: 0.95rem;
		line-height: 1.45;
	}
}

/* --------------------------------------------------------------------------
   Soft Moon Panel — tablet landscape (768–1199px, landscape only)
   Portrait tablet/mobile layouts above remain unchanged.
   -------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1199px) and (orientation: landscape) {
	.nm-nav__panel-bar {
		min-height: clamp(4.75rem, 10vh, 5.75rem);
	}

	.nm-nav__panel-close {
		position: relative;
		top: 10px;
	}

	.nm-nav__panel-logo-large,
	.nm-nav__panel-brand img,
	.nm-nav__panel-brand .custom-logo,
	.nm-nav__panel-brand-link img,
	.nm-nav__panel-brand .custom-logo-link img {
		width: clamp(14rem, 26vw, 18rem);
		max-width: 46vw;
		height: auto !important;
		max-height: none !important;
		object-fit: contain;
	}

	.nm-nav__panel .nm-nav__panel-body {
		min-height: calc(100dvh - 6.25rem);
		padding-top: clamp(4.25rem, 8vh, 5.75rem);
		padding-bottom: clamp(2rem, 5vh, 3rem);
		align-items: start;
		grid-template-columns: minmax(0, 1.28fr) minmax(18rem, 0.72fr);
		gap: clamp(2.5rem, 5vw, 4.25rem);
		transform: none;
	}

	.nm-nav__panel .nm-nav__panel-primary {
		align-self: start;
		justify-content: center;
		padding-left: clamp(2.5rem, 5vw, 4rem);
		padding-right: clamp(1rem, 2vw, 2rem);
	}

	.nm-nav__panel .nm-nav__list,
	.nm-nav__panel-primary .nm-nav__list {
		gap: clamp(1.15rem, 2.6vh, 1.85rem) !important;
		width: min(100%, 38rem);
		max-width: 38rem;
	}

	.nm-nav__panel .nm-nav__list a,
	.nm-nav__panel .nm-nav__list .nm-nav__link,
	.nm-nav__panel #primary-menu a {
		font-size: clamp(2.35rem, 4.35vw, 3.25rem);
		line-height: 0.98;
		font-weight: 300;
		font-synthesis-weight: none;
		letter-spacing: -0.05em;
		white-space: normal;
	}

	.nm-nav__panel .nm-nav__panel-secondary {
		align-self: start;
		gap: clamp(1.15rem, 2.4vh, 1.8rem);
		transform: none;
	}

	.nm-nav__panel .nm-lang-switch--mobile .nm-lang-switch__label {
		font-size: 0.78rem;
		letter-spacing: 0.16em;
	}

	.nm-nav__panel .nm-lang-switch--mobile .nm-lang-switch__list {
		gap: 0.72rem;
	}

	.nm-nav__panel .nm-lang-switch--mobile .nm-lang-switch__link {
		font-size: 0.98rem;
		line-height: 1.25;
	}

	.nm-nav__panel .nm-nav__support-list {
		gap: 0.78rem;
	}

	.nm-nav__panel .nm-nav__support-list a {
		font-size: 0.96rem;
		line-height: 1.25;
	}

	.nm-nav__panel .nm-nav__actions {
		margin-top: clamp(0.9rem, 2vh, 1.35rem);
	}

	.nm-nav__panel .nm-nav__panel-cta {
		min-height: 3.25rem;
		max-width: 19.5rem;
	}

	.nm-nav__panel-cta-note {
		font-size: 0.92rem;
		line-height: 1.35;
		max-width: 19.5rem;
	}
}

/* --------------------------------------------------------------------------
   Mobile phone landscape — portrait-only guard (not tablets)
   -------------------------------------------------------------------------- */
.nm-phone-landscape-guard {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
	place-items: center;
	padding: 2rem;
	background:
		radial-gradient(circle at 78% 42%, rgba(255, 255, 255, 0.92), rgba(248, 246, 243, 0.98) 42%, var(--nm-color-page) 78%),
		var(--nm-color-page);
	color: var(--nm-color-primary);
	text-align: center;
}

.nm-phone-landscape-guard__card {
	max-width: 22rem;
}

.nm-phone-landscape-guard__mark {
	font-size: 2.2rem;
	line-height: 1;
	margin-bottom: 1rem;
}

.nm-phone-landscape-guard__title {
	margin: 0;
	font-family: var(--nm-font-heading);
	font-size: clamp(1.65rem, 7vw, 2.2rem);
	line-height: 1.05;
	color: var(--nm-color-primary);
}

.nm-phone-landscape-guard__text {
	margin: 0.85rem 0 0;
	font-size: 0.95rem;
	line-height: 1.45;
	color: rgba(31, 53, 73, 0.72);
}

/* ==========================================================================
   Mobile footer layout (max-width: 767px only)
   ========================================================================== */

@media (max-width: 767px) {
	.nm-site-footer {
		padding-block: clamp(2.75rem, 10vw, 4rem) max(2.5rem, calc(env(safe-area-inset-bottom) + 2.5rem));
	}

	.nm-site-footer .nm-container {
		display: grid;
		gap: clamp(2rem, 7vw, 2.75rem);
	}

	.nm-site-footer__top {
		gap: clamp(2rem, 7vw, 2.75rem);
		margin-bottom: 0;
	}

	.nm-site-footer__brand {
		display: grid;
		gap: 1rem;
		max-width: 23rem;
		grid-column: 1 / -1;
	}

	.nm-site-footer__tagline {
		max-width: 23rem;
		margin-top: 0;
		font-size: 0.95rem;
		line-height: 1.55;
	}

	.nm-site-footer__columns {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		column-gap: clamp(1.5rem, 7vw, 2.25rem);
		row-gap: clamp(2rem, 8vw, 2.75rem);
		align-items: start;
	}

	.nm-site-footer__columns > .nm-footer-col:nth-child(3) {
		grid-column: 1 / -1;
	}

	.nm-site-footer__columns > .nm-footer-col:nth-child(3) .nm-footer-col__list {
		display: grid;
		grid-template-columns: 1fr;
		gap: 0.75rem 1.25rem;
	}

	.nm-footer-col__title {
		margin-bottom: 0.85rem;
		font-size: 0.78rem;
		letter-spacing: 0.08em;
		line-height: 1.25;
	}

	.nm-footer-col__list {
		gap: 0.72rem;
	}

	.nm-footer-col__list a {
		font-size: 0.96rem;
		line-height: 1.35;
		word-break: break-word;
	}

	.nm-site-footer__bottom {
		margin-top: clamp(0.75rem, 4vw, 1.5rem);
		padding-top: clamp(1.25rem, 5vw, 1.75rem);
		justify-items: center;
		text-align: center;
	}

	.nm-site-footer__legal {
		max-width: 22rem;
		margin: 0 auto;
		font-size: 0.76rem;
		line-height: 1.55;
		text-align: center;
	}
}

@media (min-width: 390px) and (max-width: 767px) {
	.nm-site-footer__columns > .nm-footer-col:nth-child(3) .nm-footer-col__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 768px) {
	.nm-site-footer__columns {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (orientation: landscape) and (max-height: 520px) and (hover: none) and (pointer: coarse) {
	html,
	body {
		overflow: hidden;
	}

	.nm-phone-landscape-guard {
		display: grid;
	}
}
