/**
 * AP Newsletter — scoped styles. Depends on ap-base.css.
 */

.ap-news {
	background: var(--ap-paper);
	border-top: 1px solid var(--ap-border);
	padding: 4rem 0;
}

.ap-news__inner {
	max-width: 42rem;
	margin-inline: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.ap-news .ap-news__title {
	margin: 0.75rem 0 0 !important;
	padding: 0 !important;
	font-family: var(--ap-font-display), Georgia, serif !important;
	font-weight: 400 !important;
	letter-spacing: -0.015em !important;
	line-height: 1.1 !important;
	font-size: 2.25rem !important;
	color: var(--ap-ink) !important;
}

.ap-news .ap-news__text {
	margin: 1rem 0 0 !important;
	padding: 0 !important;
	max-width: 28rem;
	font-family: var(--ap-font-body), ui-sans-serif, system-ui, sans-serif !important;
	font-size: 1rem !important;
	line-height: 1.6 !important;
	color: var(--ap-muted) !important;
}

.ap-news__form {
	margin-top: 2rem;
	width: 100%;
	display: flex;
	justify-content: center;
}

/* Subscribe status notices. */
.ap-news__notice {
	margin: 1.25rem 0 0 !important;
	padding: 0.7rem 1rem !important;
	max-width: 28rem;
	border-radius: 6px;
	font-family: var(--ap-font-body), ui-sans-serif, system-ui, sans-serif !important;
	font-size: 0.95rem !important;
	line-height: 1.5 !important;
}

.ap-news__notice--ok {
	background: rgba(22, 120, 60, 0.08);
	color: #16783c;
}

.ap-news__notice--err {
	background: rgba(222, 28, 28, 0.08);
	color: var(--ap-red);
}

/* Honeypot: hidden from real users, present for bots. */
.ap-news .ap-contact__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (min-width: 768px) {
	.ap-news { padding: 6rem 0; }
}

@media (min-width: 1024px) {
	.ap-news .ap-news__title { font-size: 3rem !important; }
}
