/*
 * Pages as code: shared section rules (loaded once on any page that renders a section).
 * Visual language: playbook pages/_template/page.css. Per-type rules live in sections/<type>.css.
 */
@layer sections {
	.cp-sec { padding-block: var(--cp-s8); }
	@media (min-width: 782px) { .cp-sec { padding-block: var(--cp-s12); } }
	.cp-sec--bg-grey { background: var(--cp-grey); }
	.cp-sec--bg-dark { background: var(--cp-charcoal); color: var(--cp-white); --cp-focus: 2px solid var(--cp-white); }
	.cp-sec--bg-dark a:not(.cp-btn) { color: var(--cp-teal); }
	.cp-sec--bg-dark .cp-sec__intro { color: #C9CED4; }
	.cp-sec--tight { padding-block: var(--cp-s6); }

	/* Section head: eyebrow, title, intro. */
	.cp-sec__head { max-width: 760px; margin: 0 auto var(--cp-s5); text-align: center; }
	.cp-sec__head > * + * { margin-top: var(--cp-s2); }
	.cp-sec__title { font-size: var(--cp-text-xxl); line-height: 1.15; }
	h1.cp-sec__title { font-size: var(--cp-text-display); }
	.cp-sec__intro { font-size: var(--cp-text-md); color: var(--cp-grey-2); }
	.cp-sec__actions { margin-top: var(--cp-s4); }
	.cp-center .cp-sec__actions, .cp-sec__head + .cp-sec__actions { justify-content: center; }

	/* Media frame (images / video / placeholders). */
	.cp-media { border-radius: var(--cp-radius); overflow: hidden; background: var(--cp-white); box-shadow: var(--cp-shadow); }
	.cp-media img, .cp-media video { display: block; width: 100%; height: auto; }
	.cp-media--dark { background: #30343b; box-shadow: var(--cp-shadow-lg); }

	/* Dev-only: TODO tags and striped placeholder images (never rendered on production). */
	.cp-todo {
		display: inline-block;
		margin: 0 0 var(--cp-s1);
		padding: 6px 10px;
		border-radius: 6px;
		background: #B42318;
		color: #fff;
		font: 700 13px/1.4 var(--cp-font-body);
		text-align: start;
		overflow-wrap: anywhere;
	}
	.cp-todo--block { display: block; margin-block: var(--cp-s3); }
	.cp-ph {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		gap: var(--cp-s1);
		aspect-ratio: 1130 / 970;
		padding: var(--cp-s3);
		background: repeating-linear-gradient(45deg, #F7F8F9 0 16px, #EEF1F2 16px 32px);
		border: 2px dashed #B5BCC2;
		border-radius: var(--cp-radius);
		color: var(--cp-grey-2);
		font: 600 16px/1.4 var(--cp-font-head);
		text-align: center;
		overflow-wrap: anywhere;
	}
	.cp-ph small { font: 400 var(--cp-text-sm)/1.4 var(--cp-font-body); }

	/* Price line printed by [cp-download-actions display="price"]. */
	.cp-price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px var(--cp-s1); color: var(--cp-grey-2); }
	.cp-price-line .cp-price { font: 700 var(--cp-text-lg)/1.2 var(--cp-font-head); color: var(--cp-charcoal); }

	/* Space for the sticky mobile CTA so it never covers the footer's last line. */
	@media (max-width: 781px) { body.cp-landing .wp-site-blocks { padding-bottom: 72px; } }
}
