/* FLOW /newsletter/ — glue to HOME; gold tint over existing .flow-hero background recipe */

.flow-newsletter-hero {
	min-height: 0;
	padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}

.flow-newsletter-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: radial-gradient(ellipse at center, rgba(242, 234, 29, 0.22) 0%, rgba(5, 2, 10, 0.28) 72%);
}

body.flow-newsletter .flow-wrap {
	max-width: none;
	width: var(--flow-wrap, min(1440px, calc(100% - 48px)));
}

body.flow-newsletter .flow-forge__inner > .flow-glass-card {
	width: 100%;
	max-width: 42rem;
	margin-inline: auto;
	margin-bottom: 1.25rem;
}

body.flow-newsletter .flow-forge__form-wrap .flow-glass-card {
	width: 100%;
}

body.flow-newsletter .flow-newsletter__form {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
}

body.flow-newsletter .flow-newsletter__submit {
	margin-top: 0;
}

/* Consent modal */
.flow-newsletter-modal {
	width: min(42rem, calc(100vw - 1.5rem));
	max-width: none;
	max-height: min(90dvh, 52rem);
	margin: auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	overflow: visible;
}

.flow-newsletter-modal::backdrop {
	background: rgba(6, 2, 12, 0.78);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.flow-newsletter-modal:not([open]) {
	display: none !important;
}

.flow-newsletter-modal:not([open])::backdrop {
	display: none !important;
	background: transparent;
	pointer-events: none;
}

.flow-newsletter-modal__panel {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	max-height: min(90dvh, 52rem);
	text-align: left;
	padding: 0;
}

.flow-newsletter-modal--success {
	width: min(28rem, calc(100vw - 1.5rem));
}

.flow-newsletter-modal--success .flow-newsletter-modal__panel {
	max-height: none;
}

.flow-newsletter-modal--success .flow-newsletter-modal__title {
	text-align: center;
}

.flow-newsletter-success__body {
	margin: 0;
	line-height: 1.55;
	text-align: center;
}

.flow-newsletter-modal__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.75rem;
	flex-shrink: 0;
	padding: 1.25rem 1.25rem 0.75rem;
}

.flow-newsletter-modal__title {
	margin: 0;
	padding-right: 0.25rem;
	font-family: var(--flow-font);
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.3;
	background: none;
	-webkit-text-fill-color: #a855f7;
	color: #a855f7;
}

.flow-newsletter-modal__close {
	border: 0;
	background: transparent;
	color: #e85d5d;
	font-size: 22px;
	line-height: 1;
	width: 32px;
	height: 32px;
	min-width: 32px;
	min-height: 32px;
	border-radius: 10px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	float: none;
	flex-shrink: 0;
	transition: background 140ms ease, color 140ms ease;
}

.flow-newsletter-modal__close:hover,
.flow-newsletter-modal__close:focus-visible {
	background: rgba(232, 93, 93, 0.16);
	color: #ff7a7a;
}

.flow-newsletter-modal__close:focus-visible {
	outline: 2px solid #f2ea1d;
	outline-offset: 2px;
}

.flow-newsletter-modal__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow: auto;
	padding: 0 1.25rem 1rem;
	font-size: 1rem;
	line-height: 1.65;
	--holon-slim-scroll-thumb: color-mix(in srgb, #c084fc 55%, transparent);
	--holon-slim-scroll-track: color-mix(in srgb, #05020a 80%, transparent);
}

.flow-newsletter-modal__body > h1:first-child {
	display: none;
}

.flow-newsletter-modal__body h1,
.flow-newsletter-modal__body h2,
.flow-newsletter-modal__body h3 {
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1.35;
	margin: 1rem 0 0.5rem;
	background: none;
	-webkit-text-fill-color: #a855f7;
	color: #a855f7;
}

.flow-newsletter-modal__body a {
	color: #c084fc;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.flow-newsletter-modal__body a:hover,
.flow-newsletter-modal__body a:focus-visible {
	color: #d8b4fe;
}

.flow-newsletter-modal .holon-newsletter-consent-divider {
	border: 0;
	height: 1px;
	width: 100%;
	margin: 1.35rem 0 0.15rem;
	background: linear-gradient(
		90deg,
		transparent,
		color-mix(in srgb, var(--flow-accent-dark, #a855f7) 50%, transparent) 20%,
		color-mix(in srgb, var(--flow-accent-light, #c084fc) 40%, transparent) 50%,
		color-mix(in srgb, var(--flow-accent-dark, #a855f7) 50%, transparent) 80%,
		transparent
	);
}

.flow-newsletter-modal .holon-newsletter-consent-heading {
	font-size: calc(1.05rem + 1pt);
	text-align: center;
	margin-top: 0.65rem;
}

.flow-newsletter-modal__footer {
	flex-shrink: 0;
	padding: 0.85rem 1.25rem 1.25rem;
}

.flow-newsletter-modal__links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 0 0 0.85rem;
}

.flow-newsletter-modal__actions {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 0.75rem;
	flex-wrap: nowrap;
}

.flow-newsletter-modal__actions .flow-btn {
	width: auto;
	max-width: 100%;
	flex: 0 0 auto;
}

.flow-newsletter-modal .holon-newsletter-consent-affirm {
	color: #ff8a80;
	font-weight: 700;
	line-height: 1.6;
	margin: 1rem 0;
	padding: 0.85rem 1rem;
	border-left: 3px solid #ff8a80;
	background: color-mix(in srgb, #ff8a80 14%, transparent);
	border-radius: 0 0.5rem 0.5rem 0;
}

.flow-newsletter-modal .holon-newsletter-consent-affirm strong {
	color: inherit;
	font-weight: 700;
	-webkit-text-fill-color: currentColor;
}

@media (prefers-contrast: more) {
	.flow-newsletter-modal .holon-newsletter-consent-affirm {
		color: #ffb4ab;
		border-left-color: #ffb4ab;
		background: color-mix(in srgb, #ffb4ab 18%, transparent);
	}
}

@media (max-width: 640px) {
	.flow-newsletter-modal {
		width: calc(100vw - 1.5rem);
		max-height: min(92dvh, 52rem);
	}

	.flow-newsletter-modal__panel {
		max-height: min(92dvh, 52rem);
	}

	.flow-newsletter-modal__actions {
		gap: 0.5rem;
		flex-wrap: nowrap;
	}
}
