/**
 * Newsletter sign-up form (parts/v3-newsletter-form.php): the footer (dark,
 * filled rounded fields, arrow button inside the email field), insight article box and the /newsletter/ page
 * (light, boxed fields and the v3 pill button). Self-contained tokens (--nl-*).
 * Enqueued by acma_nl_form() only where a form is printed.
 */

.acma-nl {
	--nl-ink: #0e1622;
	--nl-text: #3f4a57;
	--nl-muted: #5f6b78;
	--nl-line: #c9d0d9;
	--nl-link: #005f9f;
	--nl-focus: #005f9f;
	--nl-err: #b42318; /* --v3-danger */
	--nl-ok: #3d7309;
	position: relative;
	display: grid;
	gap: 14px;
	margin: 0;
	font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	text-align: left;
}
.acma-nl--dark {
	--nl-ink: #ffffff;
	--nl-text: rgba(255, 255, 255, .8);
	--nl-muted: rgba(255, 255, 255, .7);
	--nl-line: rgba(255, 255, 255, .28);
	--nl-link: #ffffff;
	--nl-focus: #7ab242;
	--nl-err: #f9a8d4;
	--nl-ok: #9bdc52;
	gap: 12px;
	margin-top: 22px;
}

.acma-nl__hp { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.acma-nl__fields { display: grid; gap: 14px; }
.acma-nl__field { display: flex; flex-direction: column; min-width: 0; }

.acma-nl .acma-nl__label {
	display: block; margin: 0 0 var(--v3-lbl-gap, 10px); padding: 0;
	font-family: inherit; font-size: var(--v3-lbl-fs, 15px); font-weight: 600; line-height: 1.4;
	letter-spacing: normal; text-transform: none; color: var(--nl-ink);
}
.acma-nl .acma-nl__opt { font-weight: 400; color: var(--nl-muted); }

.acma-nl .acma-nl__input {
	display: block; width: 100%; min-width: 0; min-height: var(--v3-fld-h, 56px); margin: 0; padding: 12px 16px;
	border: 1px solid var(--nl-line); border-radius: 12px; background: #fff; color: var(--nl-ink);
	font-family: inherit; font-size: var(--v3-fld-fs, 16px); font-weight: 400; line-height: 1.4;
	box-shadow: none; outline: 0; -webkit-appearance: none; appearance: none;
	transition: border-color .25s, box-shadow .25s;
}
.acma-nl .acma-nl__input:hover { border-color: var(--v3-field-hover, #9aa5b2); }
.acma-nl .acma-nl__input::placeholder { color: var(--v3-placeholder, #6b7683); opacity: 1; }
.acma-nl .acma-nl__input:focus::placeholder { opacity: .6; }
.acma-nl .acma-nl__input:focus { border-color: var(--nl-focus); box-shadow: var(--v3-fld-focus, 0 0 0 1px #005f9f, 0 0 0 5px rgba(0, 95, 159, .16)); }
.acma-nl .acma-nl__input[aria-invalid="true"] { border-color: var(--nl-err); box-shadow: 0 0 0 1px var(--nl-err); }
.acma-nl__row { display: flex; align-items: center; gap: 10px; }

/* The ring is drawn by box-shadow, never the browser or legacy outline. */
.acma-nl .acma-nl__input:is(:focus, :focus-visible) { outline: 0 !important; }

/* Dark (footer): filled, rounded fields with a soft green focus ring; the arrow sits inside the email field. */
.acma-nl--dark .acma-nl__input {
	min-height: var(--v3-fld-h, 56px); padding: 0 16px !important; border: 1px solid rgba(255, 255, 255, .16) !important;
	border-radius: 12px !important; background: rgba(255, 255, 255, .06) !important; color: #fff;
	font-size: var(--v3-fld-fs, 16px); box-shadow: none !important; caret-color: var(--nl-focus);
}
.acma-nl--dark .acma-nl__input:hover { border-color: rgba(255, 255, 255, .32) !important; }
.acma-nl--dark .acma-nl__input:focus {
	border-color: var(--nl-focus) !important; background: rgba(255, 255, 255, .09) !important;
	box-shadow: 0 0 0 1px var(--nl-focus), 0 0 0 5px rgba(122, 178, 66, .24) !important;
}
.acma-nl--dark .acma-nl__input[aria-invalid="true"] {
	border-color: var(--nl-err) !important; box-shadow: 0 0 0 1px var(--nl-err) !important;
}
.acma-nl--dark .acma-nl__input::placeholder { color: rgba(255, 255, 255, .42); opacity: 1; }
.acma-nl--dark .acma-nl__input:-webkit-autofill {
	-webkit-text-fill-color: #fff; -webkit-box-shadow: 0 0 0 40px #1d2733 inset !important; transition: background-color 9999s;
}
.acma-nl--dark .acma-nl__row { position: relative; display: block; }
.acma-nl--dark .acma-nl__row .acma-nl__input { padding-right: 60px !important; }
.acma-nl--dark .acma-nl__row .acma-nl__go { position: absolute; top: 50%; right: 6px; margin: 0; transform: translateY(-50%); }
.acma-nl .acma-nl__go {
	display: grid; place-items: center; flex: none; width: 40px; height: 40px; margin: 0; padding: 0;
	border: 0; border-radius: 10px; background: #fff; color: #071a33; cursor: pointer; transition: background-color .3s;
}
.acma-nl .acma-nl__go svg { width: 18px; height: 18px; transition: transform .3s; }
.acma-nl .acma-nl__go:hover { background: #7ab242; }
.acma-nl .acma-nl__go:hover svg { transform: translateX(3px); }
.acma-nl .acma-nl__go:focus-visible { outline: 2px solid var(--nl-focus) !important; outline-offset: 2px; }

.acma-nl__bot:empty { display: none; }

.acma-nl .acma-nl__consent {
	margin: 0; font-family: inherit; font-size: 14px; line-height: 1.5; font-weight: 400;
	color: var(--nl-muted);
}
.acma-nl .acma-nl__consent a { color: var(--nl-link); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.acma-nl .acma-nl__consent a:hover { text-decoration-thickness: 2px; color: var(--nl-link) !important; }
.acma-nl .acma-nl__consent a:focus-visible { outline: 3px solid var(--nl-focus); outline-offset: 2px; border-radius: 2px; }
.acma-nl .acma-nl__msg {
	margin: 0; font-family: inherit; font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--nl-text);
}
.acma-nl .acma-nl__msg.is-ok { color: var(--nl-ok) !important; }
.acma-nl .acma-nl__msg.is-error { color: var(--nl-err) !important; }
.acma-nl.is-busy button[type="submit"] { cursor: progress; opacity: .7; }

/* Light (insight box, newsletter page): name and email side by side once there is room. */
.acma-nl:not(.acma-nl--dark) .acma-nl__btn { justify-self: start; }
/* Solid navy on light with a royal wipe, as the lead form's submit button. */
.acma-v3 .acma-nl .acma-nl__btn { background: #071a33; color: #fff; border-color: #071a33; }
.acma-v3 .acma-nl .acma-nl__btn::before { background: #005f9f; }
.acma-v3 .acma-nl .acma-nl__btn:is(:hover, :focus-visible) { color: #fff; border-color: #005f9f; }
@container (min-width: 560px) {
	.acma-nl:not(.acma-nl--dark) .acma-nl__fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
}
.acma-nl--page, .acma-nl--inline { container-type: inline-size; }

/* Insight article box. */
.acma-nl-box {
	margin-top: clamp(32px, 3vw, 56px); padding: clamp(22px, 2.4vw, 40px);
	border-radius: clamp(14px, 1.2vw, 24px); background: #f3f5f8;
	box-shadow: inset 0 4px 0 var(--accent, #005f9f);
}
.acma-v3 .acma-nl-box__title { margin: 0; font-size: clamp(22px, .5vw + 16px, 30px); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; color: #0e1622; }
.acma-v3 .acma-nl-box__lead { margin: 10px 0 20px; max-width: 56ch; font-size: clamp(16px, .2vw + 13.5px, 19px); line-height: 1.6; color: #3f4a57; }

@media (max-width: 639.98px) {
	.acma-nl:not(.acma-nl--dark) .acma-nl__btn { justify-self: stretch; }
}
@media (prefers-reduced-motion: reduce) {
	.acma-nl *, .acma-nl *::before, .acma-nl *::after { transition: none !important; }
}
html.translated-ltr .acma-nl .acma-nl__label,
html.translated-ltr .acma-nl .acma-nl__consent { line-height: 1.7 !important; }
