/* Newsletter — subscribe form + sitewide modal.
 *
 * Self-contained named classes with literal brand values, like
 * setup-navigator.css: the live app.css is edited surgically rather than
 * rebuilt, so any Tailwind utility not already compiled into it would be
 * missing. Only .btn-primary is borrowed, and that one is already there.
 */

/* ── Form ─────────────────────────────────────────────────────────────── */
.uae-nl-form {
	max-width: 28rem;
	margin: 0 auto;
}

.uae-nl-row {
	display: flex;
	gap: 8px;
	align-items: center;
	background: #ffffff;
	border-radius: 999px;
	padding: 6px 6px 6px 20px;
}

.uae-nl-input {
	flex: 1 1 auto;
	min-width: 0;
	background: transparent;
	border: 0;
	outline: none;
	font-size: 16px;
	line-height: 1.4;
	color: #163300;
	font-family: inherit;
}

.uae-nl-input::placeholder {
	color: #868685;
}

.uae-nl-btn {
	flex: none;
	padding: 13px 28px;
	cursor: pointer;
}

.uae-nl-btn[disabled] {
	opacity: 0.6;
	cursor: default;
}

/* Decoy field: off-screen rather than display:none, which some bots skip. */
.uae-nl-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.uae-nl-msg {
	margin: 12px 0 0;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
	min-height: 0;
}

.uae-nl-msg:empty {
	display: none;
}

.uae-nl-msg.is-ok {
	color: #9fe870;
}

.uae-nl-msg.is-error {
	color: #ffb4a2;
}

/* ── Modal ────────────────────────────────────────────────────────────── */
.uae-nl-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

/* Must beat display:flex above, or [hidden] is ignored. */
.uae-nl-modal[hidden] {
	display: none;
}

.uae-nl-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(14, 15, 12, 0.6);
}

.uae-nl-panel {
	position: relative;
	width: 100%;
	max-width: 34rem;
	background: #163300;
	color: #ffffff;
	border-radius: 24px;
	padding: 48px 32px 36px;
	text-align: center;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
}

.uae-nl-close {
	position: absolute;
	top: 16px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #ffffff;
	cursor: pointer;
}

.uae-nl-close:hover {
	background: rgba(255, 255, 255, 0.12);
}

.uae-nl-title {
	font-size: clamp(26px, 5vw, 36px);
	font-weight: 900;
	line-height: 1.1;
	letter-spacing: -0.02em;
	text-transform: uppercase;
	color: #9fe870;
	margin: 0 0 12px;
}

.uae-nl-sub {
	font-size: 16px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.85);
	max-width: 26rem;
	margin: 0 auto 24px;
}

.uae-nl-fine {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.6);
	margin: 16px 0 0;
}

@media (max-width: 480px) {
	.uae-nl-row {
		flex-wrap: wrap;
		background: transparent;
		padding: 0;
		gap: 10px;
	}

	.uae-nl-input {
		width: 100%;
		background: #ffffff;
		border-radius: 999px;
		padding: 14px 20px;
	}

	.uae-nl-btn {
		width: 100%;
	}
}

/* Fallback in case the compiled bundle does not carry the core class. */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
