/**
 * Content Manager PDF poster (clickable first-page preview).
 */

.cpd-pdf-poster {
	margin: 1.25rem 0;
	max-width: 420px;
}

.cpd-pdf-poster__link {
	display: block;
	overflow: hidden;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
	text-decoration: none;
	color: inherit;
	outline-offset: 2px;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.cpd-pdf-poster__link:hover,
.cpd-pdf-poster__link:focus-visible {
	border-color: #94a3b8;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.cpd-pdf-poster__link:focus-visible {
	outline: 2px solid #0f172a;
}

.cpd-pdf-poster__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 8.5 / 11;
	object-fit: cover;
	object-position: top center;
	background: #fff;
}

.cpd-pdf-poster__fallback {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	min-height: 220px;
	padding: 1.5rem 1rem;
	box-sizing: border-box;
	text-align: center;
}

.cpd-pdf-poster__icon {
	font-size: 48px;
	width: 48px;
	height: 48px;
	color: #64748b;
}

.cpd-pdf-poster__filename {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	color: #1e293b;
	word-break: break-word;
}
