/* CP Ad Manager — front end. CP palette: ink #0b0b0b, blue #0036f9, pale blue #eef1fb. */
.cpam-slot { display: flex; gap: 28px; box-sizing: border-box; }
.cpam-slot *, .cpam-slot *::before, .cpam-slot *::after { box-sizing: border-box; }
.cpam-slot--vertical { flex-direction: column; align-items: center; margin-top: 36px; }
.cpam-slot--horizontal { flex-direction: column; width: 100%; }

.cpam-unit { position: relative; display: block; width: 100%; margin: 0; text-decoration: none; }
.cpam-unit--vertical { max-width: 300px; }
.cpam-unit--horizontal { max-width: 1320px; margin: 0 auto; }

.cpam-label {
	display: block; margin: 0 0 6px; font: 600 10px/1.2 "Archivo", "Inter", system-ui, sans-serif;
	letter-spacing: .14em; text-transform: uppercase; color: #8a8a8a; text-align: center;
}
.cpam-link { display: block; line-height: 0; overflow: hidden; background: #f4f4f4; }
.cpam-link picture { display: block; }
.cpam-img { display: block; width: 100%; height: auto; transition: transform .5s ease, opacity .3s ease; }
a.cpam-link:hover .cpam-img { transform: scale(1.015); }
a.cpam-link:focus-visible { outline: 3px solid #0036f9; outline-offset: 3px; }

/* Homepage band (between theme sections) */
.cpam-band { padding: 44px 0 64px; }
.cpam-band .cpam-slot { margin: 0; }
.cpam-band .cpam-link { border-radius: 2px; box-shadow: 0 10px 30px rgba(11, 11, 11, .08); }

/* "Advertise with CP" placeholder for empty positions */
.cpam-placeholder {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
	padding: 24px; text-align: center; color: #0b0b0b;
	background: #eef1fb; border: 1px solid #c9d3f7;
	transition: background .25s ease, border-color .25s ease;
}
.cpam-placeholder.cpam-unit--vertical { aspect-ratio: 1 / 2; }
.cpam-placeholder.cpam-unit--horizontal { aspect-ratio: 1320 / 300; min-height: 180px; }
.cpam-placeholder:hover { background: #e3e9fb; border-color: #0036f9; }
.cpam-ph-eyebrow { font: 600 10px/1 "Archivo", system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #6b6b6b; }
.cpam-ph-title { font: 800 26px/1.1 "Archivo", system-ui, sans-serif; letter-spacing: -.01em; }
.cpam-ph-size { font: 500 13px/1 "Inter", system-ui, sans-serif; color: #6b6b6b; }
.cpam-ph-cta { margin-top: 6px; padding: 10px 18px; background: #0036f9; color: #fff; font: 700 13px/1 "Archivo", system-ui, sans-serif; letter-spacing: .02em; }
.cpam-placeholder:hover .cpam-ph-cta { background: #002bc4; }
.cpam-placeholder.cpam-unit--horizontal .cpam-ph-title { font-size: 32px; }

@media (max-width: 1024px) {
	.cpam-slot--vertical { margin-top: 28px; }
}
@media (max-width: 767px) {
	.cpam-band { padding: 28px 0 44px; }
	.cpam-placeholder.cpam-unit--horizontal { aspect-ratio: 2 / 1; min-height: 0; }
	.cpam-placeholder.cpam-unit--horizontal .cpam-ph-title { font-size: 22px; }
	.cpam-slot--vertical { gap: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	.cpam-img, .cpam-placeholder { transition: none; }
	a.cpam-link:hover .cpam-img { transform: none; }
}
@media print { .cpam-slot, .cpam-band { display: none !important; } }
