/* EVO Newsletter popup. Uses the EVO theme tokens, with fallbacks. */
.evo-nl {
	--nl-dark: var(--evo-dark, #222630);
	--nl-dark-2: var(--evo-dark-2, #1a1d24);
	--nl-red: #d0151d; /* AA with white text (brand #ed1e26 is 4.4:1) */
	--nl-red-2: var(--evo-accent-light, #f26344);
	--nl-muted: var(--evo-text-on-dark-muted, #b7bac2);
	--nl-line: var(--evo-border-on-dark, rgba(255, 255, 255, 0.12));
	--nl-radius: var(--evo-radius-md, 8px);
	--nl-ease: var(--evo-ease, cubic-bezier(0.16, 1, 0.3, 1));
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: grid;
	place-items: center;
	padding: 20px;
	font-family: var(--evo-font, Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
}
.evo-nl[hidden] { display: none; }
html.evo-nl-open { overflow: hidden; }

.evo-nl__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 11, 14, 0.72);
	opacity: 0;
	transition: opacity 260ms ease;
}
.evo-nl.is-in .evo-nl__backdrop { opacity: 1; }

.evo-nl__dialog {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	width: min(1040px, 100%);
	max-height: calc(100vh - 40px);
	overflow: auto;
	background: linear-gradient(160deg, var(--nl-dark) 0%, var(--nl-dark-2) 100%);
	color: #fff;
	border: 1px solid var(--nl-line);
	border-radius: var(--nl-radius);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
	opacity: 0;
	transform: translateY(18px) scale(0.98);
	transition: opacity 320ms var(--nl-ease), transform 420ms var(--nl-ease);
	outline: none;
}
.evo-nl.is-in .evo-nl__dialog { opacity: 1; transform: none; }
/* Red rule along the top, like the EVO bands */
.evo-nl__dialog::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	background: linear-gradient(120deg, var(--evo-accent, #ed1e26) 0%, var(--nl-red-2) 100%);
	z-index: 2;
}

/* Photo, centre-cropped. Width always = its column (never overlaps the text).
   Square by default; if the text column is taller, the photo stretches to
   the same height and stays centre-cropped. */
.evo-nl__media { position: relative; min-width: 0; width: 100%; background: #111; overflow: hidden; }
.evo-nl__media::before { content: ""; display: block; padding-top: 100%; } /* 1:1 minimum */
.evo-nl__media img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; }

.evo-nl__body { display: flex; flex-direction: column; justify-content: center; padding: 44px 40px 32px; }
.evo-nl__view[hidden] { display: none; }

.evo-nl__eyebrow {
	margin: 0 0 12px;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--nl-red-2);
}
.evo-nl__title {
	margin: 0 0 14px;
	font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.6rem);
	font-weight: 900;
	line-height: 1.02;
	letter-spacing: -0.01em;
	text-transform: uppercase;
	color: #fff;
	outline: none;
}
.evo-nl__text { margin: 0 0 22px; font-size: 0.98rem; line-height: 1.55; color: var(--nl-muted); }

.evo-nl__label {
	display: block;
	margin-bottom: 8px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
}
.evo-nl__row { display: grid; gap: 10px; }
.evo-nl__input {
	width: 100%;
	min-height: 50px;
	padding: 12px 14px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: var(--evo-radius-sm, 4px);
	background: #fff;
	color: #17181c;
	font: inherit;
	font-size: 16px; /* no iOS zoom */
	box-sizing: border-box;
}
.evo-nl__input:focus { outline: 2px solid var(--nl-red-2); outline-offset: 2px; }
.evo-nl__input[aria-invalid="true"] { border-color: var(--nl-red-2); }
.evo-nl__submit {
	min-height: 50px;
	padding: 12px 20px;
	border: 0;
	border-radius: var(--evo-radius-sm, 4px);
	background: var(--nl-red);
	color: #fff;
	font: inherit;
	font-size: 0.86rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 180ms ease, transform 180ms ease;
}
.evo-nl__submit:hover { background: #b0121a; }
.evo-nl__submit:active { transform: translateY(1px); }
.evo-nl__submit:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.evo-nl__submit[disabled] { opacity: 0.7; cursor: wait; }
.evo-nl__submit--block { width: 100%; }

.evo-nl__msg { min-height: 1.4em; margin: 10px 0 0; font-size: 0.85rem; color: var(--nl-red-2); }
.evo-nl__msg:empty { min-height: 0; margin: 0; }
.evo-nl__fine { margin: 14px 0 0; font-size: 0.75rem; line-height: 1.5; color: var(--nl-muted); }
.evo-nl__fine a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

.evo-nl__no {
	align-self: flex-start;
	margin-top: 14px;
	padding: 6px 0;
	border: 0;
	background: none;
	color: var(--nl-muted);
	font: inherit;
	font-size: 0.8rem;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.evo-nl__no:hover { color: #fff; }

.evo-nl__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	cursor: pointer;
}
.evo-nl__close:hover { background: var(--nl-red); }
.evo-nl__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.evo-nl__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Phones: photo becomes a centre-cropped band so the form stays on screen */
@media (max-width: 680px) {
	.evo-nl { padding: 12px; align-items: end; }
	.evo-nl__dialog { grid-template-columns: 1fr; max-height: calc(100vh - 24px); }
	.evo-nl__media::before { padding-top: 50%; } /* 2:1 band on phones */
	.evo-nl__body { padding: 24px 20px 20px; }
	.evo-nl__title { font-size: 1.85rem; }
	.evo-nl__text { margin-bottom: 18px; font-size: 0.92rem; }
}
@media (min-width: 681px) and (max-height: 620px) {
	.evo-nl__media::before { padding-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.evo-nl__backdrop, .evo-nl__dialog { transition: none; }
	.evo-nl__dialog { transform: none; }
}
@media print { .evo-nl { display: none !important; } }
