/**
 * Footer newsletter signup.
 *
 * Written as plain CSS on purpose: the theme's Tailwind build (v3.1.8) is a
 * committed artifact in style.css with no source or config in the repo, so any
 * utility class not already compiled in would render as nothing. Scoped under
 * .c4817-nl so it cannot reach the rest of the footer.
 */

/* Separates the block from whatever it is stacked under — in the footer that
   is the contact menu. */
.c4817-nl {
	margin-top: 2rem;
}

.c4817-nl__intro {
	margin: 0 0 0.75rem;
	font-size: 0.875rem;
	line-height: 1.5;
	opacity: 0.85;
}

.c4817-nl__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.c4817-nl__input {
	flex: 1 1 12rem;
	min-width: 0;
	padding: 0.625rem 0.75rem;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 2px;
	background: transparent;
	color: #fff;
	font: inherit;
	font-size: 0.9375rem;
}

.c4817-nl__input::placeholder {
	color: rgba(255, 255, 255, 0.6);
}

.c4817-nl__input:focus-visible,
.c4817-nl__button:focus-visible,
.c4817-nl__consent input:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.c4817-nl__button {
	padding: 0.625rem 1.25rem;
	border: 1px solid #fff;
	border-radius: 2px;
	background: #fff;
	color: #000;
	font: inherit;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.c4817-nl__button:hover {
	background: transparent;
	color: #fff;
}

.c4817-nl__button[disabled] {
	opacity: 0.6;
	cursor: default;
}

.c4817-nl__consent {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin-top: 0.75rem;
	font-size: 0.8125rem;
	line-height: 1.45;
	opacity: 0.9;
}

/* style.css sets a global `input, textarea { width: 100% }`, which makes the
   checkbox fill the whole row and push its label out of the column. Needs an
   explicit size, and a selector specific enough to win. */
.c4817-nl__consent input[type="checkbox"] {
	flex: 0 0 auto;
	width: 1rem;
	height: 1rem;
	margin-top: 0.15rem;
}

.c4817-nl__consent a {
	text-decoration: underline;
}

.c4817-nl__message {
	margin: 0.75rem 0 0;
	font-size: 0.8125rem;
	line-height: 1.45;
	min-height: 1.2em;
}

.c4817-nl__message--error {
	color: #ffb4b4;
}

/* Visually hidden, still read by screen readers. */
.c4817-nl__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Honeypot: off-screen rather than display:none, which some bots detect. */
.c4817-nl__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.c4817-nl__button {
		transition: none;
	}
}

/* -------------------------------------------------------------------------
 * Timed popup
 *
 * The panel is black-on-white-text like the footer, so every field style
 * above applies unchanged in both places.
 * ------------------------------------------------------------------------- */

.c4817-nl-modal[hidden] {
	display: none;
}

.c4817-nl-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.c4817-nl-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.7);
}

.c4817-nl-modal__panel {
	position: relative;
	display: flex;
	width: 100%;
	max-width: 46rem;
	max-height: calc(100vh - 2rem);
	overflow: auto;
	background: #000;
	color: #fff;
	animation: c4817-nl-in 0.25s ease-out;
}

.c4817-nl-modal__media {
	flex: 0 0 40%;
	align-self: stretch;
}

.c4817-nl-modal__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.c4817-nl-modal__body {
	flex: 1 1 auto;
	padding: 2.5rem 2rem 2rem;
	min-width: 0;
}

.c4817-nl-modal__title {
	margin: 0;
	font-size: 1.75rem;
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.c4817-nl-modal__close {
	position: absolute;
	top: 0.25rem;
	right: 0.5rem;
	z-index: 1;
	padding: 0.25rem 0.5rem;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 1.75rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0.7;
}

.c4817-nl-modal__close:hover,
.c4817-nl-modal__close:focus-visible {
	opacity: 1;
}

/* The footer block needs separating from the menu above it; inside the panel
   the title already does that. */
.c4817-nl--modal {
	margin-top: 1rem;
}

.c4817-nl-locked {
	overflow: hidden;
}

@keyframes c4817-nl-in {
	from {
		opacity: 0;
		transform: translateY(0.75rem);
	}
}

@media (max-width: 640px) {
	.c4817-nl-modal__panel {
		display: block;
	}

	.c4817-nl-modal__media {
		max-height: 9rem;
		overflow: hidden;
	}

	.c4817-nl-modal__body {
		padding: 1.75rem 1.25rem 1.5rem;
	}

	.c4817-nl-modal__title {
		font-size: 1.375rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.c4817-nl-modal__panel {
		animation: none;
	}
}
