/* ==========================================================================
   NEWSLETTER POPUP
   Ships hidden; assets/js/newsletter-popup.js is the only thing that reveals
   it, so a script failure can never leave a modal nobody can close.
   ========================================================================== */
.np {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.np__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(5, 22, 46, 0.62);
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.22s ease;
}
.np.is-open .np__backdrop { opacity: 1; }

.np__dialog {
	position: relative;
	width: 100%;
	max-width: 460px;
	padding: 34px 32px 26px;
	text-align: center;
	background: #fff;
	border-radius: var(--radius-lg);
	box-shadow: 0 30px 70px rgba(5, 22, 46, 0.32);
	/* Rises and settles rather than just fading - a little motion is what
	   makes it read as arriving rather than as a page element that was
	   always there and only now became visible. */
	opacity: 0;
	transform: translateY(18px) scale(0.97);
	transition: opacity 0.24s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}
.np.is-open .np__dialog {
	opacity: 1;
	transform: translateY(0) scale(1);
}
/* Reduced motion: appear, but do not travel. */
.np.is-instant .np__dialog,
.np.is-instant .np__backdrop {
	transition: none;
	transform: none;
}

.np__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: inline-flex;
	padding: 7px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--color-text-muted);
	cursor: pointer;
}
.np__close:hover {
	background: var(--color-bg-alt);
	color: var(--color-navy-900);
}

.np__art {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	margin-bottom: 16px;
	border-radius: 50%;
	color: #fff;
	background: var(--color-navy-900);
}
.np__eyebrow {
	margin: 0 0 6px;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	/* --color-warning, not --color-accent-dark: the brighter orange is 3.1:1
	   on white, and this is text, which needs 4.5:1. */
	color: var(--color-warning);
}
.np__title {
	margin: 0 0 10px;
	font-size: clamp(20px, 2.6vw, 25px);
	line-height: 1.2;
	letter-spacing: -0.022em;
	color: var(--color-navy-900);
}
.np__text {
	margin: 0 0 20px;
	font-size: 14.5px;
	line-height: 1.65;
	color: var(--color-text-muted);
}
.np__form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.np__form input[type="email"] {
	flex: 1 1 210px;
	min-width: 0;
	padding: 12px 14px;
	font: inherit;
	font-size: 14.5px;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-md);
}
.np__form input[type="email"]:focus {
	outline: 2px solid var(--color-primary-ink);
	outline-offset: 1px;
	border-color: transparent;
}
.np__form .btn { flex: 0 0 auto; }

.np__small {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin: 14px 0 0;
	font-size: 12px;
	color: var(--color-text-muted);
}
.np__small svg { color: var(--color-success); }

.np__dismiss {
	margin-top: 14px;
	padding: 4px;
	border: 0;
	background: none;
	font: inherit;
	font-size: 12.5px;
	color: var(--color-text-muted);
	text-decoration: underline;
	cursor: pointer;
}
.np__dismiss:hover { color: var(--color-navy-900); }
