/**
 * Newsletter Manager — public signup form.
 *
 * Scoped under .nlm-signup so it layers cleanly over any theme. A modern, light card with a
 * clear field stack and a single full-width call to action. Custom properties expose the accent,
 * radius and border so a theme can retune it without overriding rules.
 */

.nlm-signup {
	--nlm-accent: #4f46e5;
	--nlm-accent-hover: #4338ca;
	--nlm-accent-ring: rgba(79, 70, 229, 0.18);
	--nlm-radius: 16px;
	--nlm-radius-field: 10px;
	--nlm-border: #e3e6ee;
	--nlm-border-strong: #d4d8e3;
	--nlm-fg: #1c2333;
	--nlm-fg-muted: #5b6472;

	box-sizing: border-box;
	max-width: 440px;
	margin: 1.5rem 0;
	padding: 1.85rem 1.85rem 2rem;
	border: 1px solid var(--nlm-border);
	border-radius: var(--nlm-radius);
	background: #fff;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 12px 32px rgba(16, 24, 40, 0.05);
	color: var(--nlm-fg);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.5;
}

.nlm-signup *,
.nlm-signup *::before,
.nlm-signup *::after {
	box-sizing: border-box;
}

.nlm-signup__title {
	margin: 0 0 0.4rem;
	/* Keep the card self-consistent rather than inheriting the theme's heading face. */
	font-family: inherit;
	font-size: 1.35rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.25;
	color: var(--nlm-fg);
}

.nlm-signup__description {
	margin: 0 0 1.25rem;
	color: var(--nlm-fg-muted);
	font-size: 0.95rem;
}

.nlm-signup__field {
	display: block;
	margin-bottom: 0.9rem;
}

.nlm-signup__label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--nlm-fg);
}

.nlm-signup__input {
	width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--nlm-border-strong);
	border-radius: var(--nlm-radius-field);
	font-size: 1rem;
	line-height: 1.4;
	color: var(--nlm-fg);
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nlm-signup__input::placeholder {
	color: #9aa2b1;
}

.nlm-signup__input:focus {
	outline: none;
	border-color: var(--nlm-accent);
	box-shadow: 0 0 0 3px var(--nlm-accent-ring);
}

.nlm-signup__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 0.55rem;
	padding: 0.78rem 1.2rem;
	border: none;
	border-radius: var(--nlm-radius-field);
	background: var(--nlm-accent);
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(79, 70, 229, 0.35);
	transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}

.nlm-signup__button:hover,
.nlm-signup__button:focus {
	background: var(--nlm-accent-hover);
}

.nlm-signup__button:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px var(--nlm-accent-ring);
}

.nlm-signup__button:active {
	transform: translateY(1px);
}

.nlm-signup__notice {
	margin: 0 0 1.1rem;
	padding: 0.75rem 0.95rem;
	border-radius: var(--nlm-radius-field);
	font-size: 0.92rem;
	border: 1px solid transparent;
}

.nlm-signup__notice--success {
	background: #ecfdf5;
	border-color: #a7f3d0;
	color: #066e4b;
}

.nlm-signup__notice--warning {
	background: #fffbeb;
	border-color: #fde68a;
	color: #92400e;
}

.nlm-signup__notice--error {
	background: #fef2f2;
	border-color: #fecaca;
	color: #b42318;
}

/* The honeypot is removed from layout and assistive tech; only bots fill it. */
.nlm-signup__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
