/* Standalone newsletter page. The embedded Mailchimp form itself is unchanged. */
.ag-newsletter-page .hero-section .entry-header,
.ag-newsletter-content {
	width: min(var(--theme-container-width), 1200px);
	max-width: 1200px;
	margin-inline: auto;
}

.ag-newsletter-content {
	padding-bottom: clamp(3rem, 7vw, 5.5rem);
}

.ag-newsletter-page .hero-section .entry-header .page-title {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

.ag-newsletter-content > :first-child {
	margin-top: 0;
}

.ag-newsletter-content > :last-child {
	margin-bottom: 0;
}

/* Neutralize the old inline presentation while preserving its exact wording. */
.ag-newsletter-content > p > span[style] {
	color: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	line-height: inherit !important;
}

.ag-newsletter-content > p:has(> span[style]) {
	max-width: 48rem;
	font-size: 1rem;
	line-height: 1.7;
	margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

#mc_embed_signup {
	width: min(100%, 42rem);
}

#mc_embed_signup form,
#mc_embed_signup .mc-field-group,
#mc_embed_signup fieldset {
	min-width: 0;
}

#mc_embed_signup .indicates-required {
	margin: 0 0 1rem;
	font-size: 0.875rem;
	opacity: 0.75;
}

#mc_embed_signup .mc-field-group {
	margin-bottom: 1rem;
}

#mc_embed_signup .mc-field-group > label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

#mc_embed_signup .mc-field-group > br {
	display: none;
}

#mc_embed_signup input[type="email"],
#mc_embed_signup input[type="text"] {
	box-sizing: border-box;
	width: 100%;
	min-height: 3rem;
	padding: 0.65rem 0.8rem;
}

#mc_embed_signup #mergeRow-gdpr {
	margin-top: 1.75rem;
}

#mc_embed_signup .content__gdpr > p:first-child {
	margin: 0 0 0.75rem;
	font-weight: 600;
}

#mc_embed_signup .mc_fieldset.gdprRequired,
#mc_embed_signup .mc_fieldset {
	margin: 0;
	padding: 0;
	border: 0;
}

#mc_embed_signup .mc_fieldset label.checkbox {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	min-height: 2.75rem;
	margin: 0;
	padding: 0.45rem 0;
	cursor: pointer;
	font-weight: 600;
}

#mc_embed_signup .mc_fieldset input[type="checkbox"] {
	flex: 0 0 auto;
	width: 1.25rem;
	height: 1.25rem;
	margin: 0;
}

#mc_embed_signup .content__gdpr > p:not(:first-child),
#mc_embed_signup .content__gdprLegal {
	max-width: 64ch;
	font-size: 0.875rem;
	line-height: 1.6;
	opacity: 0.78;
}

#mc_embed_signup .content__gdpr > p:not(:first-child) {
	margin: 1.25rem 0 0;
}

#mc_embed_signup .content__gdprLegal {
	margin-top: 0.75rem;
}

#mc_embed_signup .content__gdprLegal p {
	margin: 0;
}

#mc_embed_signup .clear {
	margin-top: 1.5rem;
}

#mc_embed_signup #mc-embedded-subscribe {
	width: auto;
	min-height: 2.875rem;
	margin: 0;
	padding-inline: 1.25rem;
}

#mc_embed_signup #mce-responses {
	margin-top: 1rem;
}

#mc_embed_signup a {
	text-underline-offset: 0.14em;
}

@media (max-width: 689.98px) {
	.ag-newsletter-content {
		width: min(var(--theme-container-width), calc(100% - 32px));
	}

	#mc_embed_signup {
		width: 100%;
	}

	#mc_embed_signup input[type="email"],
	#mc_embed_signup input[type="text"] {
		font-size: 1rem;
	}
}
