/* Americans for Paper Access — styles that theme.json can't express. */

html {
	scroll-behavior: smooth;
}

/* Sections sit flush against each other. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

/* ---------- Header ---------- */
.afpa-header {
	border-bottom: 1px solid var(--wp--preset--color--border);
}

.afpa-header-row {
	flex-wrap: nowrap !important;
}

.afpa-header-logo {
	margin: 0;
	min-width: 0;
	flex-shrink: 1;
}

.afpa-header-logo img {
	display: block;
	height: clamp(32px, 9vw, 52px) !important;
	width: auto !important;
	max-width: 100%;
}

.afpa-header-row .wp-block-buttons {
	flex-shrink: 0;
}

.afpa-header-row .wp-block-button__link {
	white-space: nowrap;
	font-size: clamp(0.8125rem, 3.4vw, 0.9375rem);
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	padding: 0.65rem clamp(0.875rem, 4vw, 1.375rem);
}

/* ---------- Hero ---------- */
.afpa-hero-title {
	line-height: 1.3;
	letter-spacing: -0.01em;
}

.afpa-hero-title mark {
	padding: 0 0.16em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.afpa-btn-arrow .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 56px;
}

.afpa-btn-arrow .wp-block-button__link::after {
	content: "";
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='M19 12l-7 7-7-7'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='M19 12l-7 7-7-7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.afpa-stat-card {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 12px;
	max-width: 440px;
	margin-inline: auto;
	box-sizing: border-box;
}

.afpa-stat-mark {
	margin: 0;
}

.afpa-stat-mark img {
	width: 56px !important;
	height: auto !important;
	display: block;
}

.afpa-stat-number {
	line-height: 1;
	letter-spacing: -0.02em;
}

.afpa-stat-number::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	margin-top: 18px;
	background: var(--wp--preset--color--red);
}

.afpa-wave {
	margin-top: var(--wp--preset--spacing--50) !important;
	margin-bottom: 0 !important;
}

.afpa-wave img {
	display: block;
	width: 100% !important;
	height: clamp(80px, 11vw, 160px) !important;
	object-fit: fill;
}

/* ---------- Petition ---------- */
.afpa-divider {
	margin-bottom: 0;
}

.afpa-divider img {
	width: 140px !important;
	height: auto !important;
}

.afpa-petition-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--border);
	border-top: 6px solid var(--wp--preset--color--navy);
	border-radius: 12px;
	box-shadow: 0 12px 32px rgba(13, 31, 61, 0.08);
	box-sizing: border-box;
}

.afpa-embed-placeholder {
	min-height: 520px;
	box-sizing: border-box;
	border: 2px dashed var(--wp--preset--color--civic-gray);
	border-radius: 8px;
	background: #fafbfc;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 32px;
	text-align: center;
	color: var(--wp--preset--color--charcoal);
}

.afpa-embed-placeholder strong {
	font-size: 0.9375rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--navy);
}

.afpa-embed-placeholder p {
	margin: 0;
	max-width: 380px;
	font-size: 0.9375rem;
}

/* Keep embedded forms inside the card. */
.afpa-petition-card iframe {
	max-width: 100%;
}

/* ---------- Footer ---------- */
.afpa-footer-mark {
	margin: 0;
}

.afpa-footer-mark img {
	width: 40px !important;
	height: auto !important;
	display: block;
}

.afpa-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.16);
}

/* Even spacing inside the stat card. */
.afpa-stat-card > * {
	margin-block: 0 !important;
}

.afpa-stat-card > * + * {
	margin-block-start: 18px !important;
}

@media (max-width: 600px) {
	.afpa-petition-card {
		padding: 16px !important;
	}

	.afpa-embed-placeholder {
		padding: 24px 16px;
	}
}
