/**
 * CTA in Post — self-contained styles for the Article Post template.
 *
 * Standalone vanilla CSS so the block works on templates that strip the legacy
 * Understrap/Bootstrap bundle. Enqueued only on the Article Post template —
 * legacy templates keep using the bundled .cta-in-post / .btn styles untouched.
 *
 * Matches the Article Newsletter block's look: navy card, white type, compact
 * orange button. 10px rem base + Inter, per the Article Post design system.
 */

.cta-in-post {
	--cta-navy:   #0e2c47;
	--cta-orange: #fe6c3b;

	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2.4rem;
	flex-wrap: wrap;

	margin: 3.2rem 0;
	padding: 24px 28px;
	border-radius: 12px;
	background: var(--cta-navy);
	font-family: Inter, sans-serif;
	color: #fff;
}

.cta-in-post .cta-message {
	min-width: 0;
}

.cta-in-post .cta-message p {
	margin: 0;
	font-size: 1.3rem;
	font-weight: 400;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.65);
}
.cta-in-post .cta-message p + p {
	margin-top: 0.4rem;
}

.cta-in-post .cta-message strong,
.cta-in-post .cta-message b {
	display: block;
	margin-bottom: 0.2rem;
	font-size: 1.7rem;
	font-weight: 700;
	line-height: 1.3;
	color: #fff;
}

/* ── Button (compact, mirrors .article-ns__submit) ──────────────── */
.cta-in-post .btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border: none;
	border-radius: 6px;
	background: var(--cta-orange);
	color: #fff;
	font-family: Inter, sans-serif;
	font-size: 1.3rem;
	font-weight: 500;
	letter-spacing: 1px;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: filter 0.2s ease;
}
.cta-in-post .btn:hover {
	filter: brightness(0.96);
	color: #fff;
	text-decoration: none;
}
.cta-in-post .btn:focus-visible {
	outline: 2px solid var(--cta-orange);
	outline-offset: 2px;
}

/* Uppercase variant (ACF make_uppercase toggle). */
.cta-in-post.text-uppercase .cta-message strong,
.cta-in-post.text-uppercase .cta-message b {
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

@media (min-width: 768px) {
	.cta-in-post {
		border-radius: 16px;
		padding: 28px 36px;
		background: linear-gradient(135deg, #0e2c47 0%, #1b3a5c 100%);
	}
}

@media (max-width: 600px) {
	.cta-in-post {
		flex-direction: column;
		align-items: flex-start;
	}
}
