.agpc-public-catalog {
	--agpc-public-green: #24372f;
	--agpc-public-cream: #f7f4ee;
	width: 100%;
	margin: 24px auto;
	border: 1px solid #dfe2dd;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 10px 32px rgba(26, 40, 32, .08);
	overflow: hidden;
}

.agpc-public-toolbar {
	min-height: 72px;
	padding: 15px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	background: var(--agpc-public-cream);
	border-bottom: 1px solid #dfe2dd;
}

.agpc-public-toolbar strong {
	color: #1d251f;
	font-size: clamp(16px, 2vw, 22px);
	line-height: 1.25;
}

.agpc-public-download {
	padding: 11px 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	border-radius: 5px;
	background: var(--agpc-public-green);
	color: #fff !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
}

.agpc-public-download:hover,
.agpc-public-download:focus {
	background: #385247;
	color: #fff !important;
}

.agpc-public-viewer {
	width: 100%;
	position: relative;
	background: #dfe2df;
}

.agpc-pdf-controls {
	min-height: 52px;
	padding: 8px 14px;
	position: relative;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-bottom: 1px solid #111614;
	background: #1d2521;
	color: #fff;
}

.agpc-pdf-control-group {
	display: flex;
	align-items: center;
	gap: 7px;
}

.agpc-pdf-controls button {
	min-width: 35px;
	height: 34px;
	margin: 0;
	padding: 0 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(255, 255, 255, .24);
	border-radius: 5px;
	background: rgba(255, 255, 255, .08);
	box-shadow: none;
	color: #fff;
	cursor: pointer;
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
}

.agpc-pdf-controls button:hover,
.agpc-pdf-controls button:focus-visible {
	border-color: rgba(255, 255, 255, .6);
	background: rgba(255, 255, 255, .18);
	color: #fff;
}

.agpc-pdf-controls .agpc-pdf-fit {
	min-width: 48px;
	font-size: 12px;
}

.agpc-pdf-page-count,
.agpc-pdf-zoom {
	min-width: 60px;
	color: rgba(255, 255, 255, .86);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.agpc-pdf-status {
	padding: 8px 14px;
	border-bottom: 1px solid #cfd3cf;
	background: #f7f4ee;
	color: #505952;
	font-size: 12px;
	text-align: center;
}

.agpc-pdf-status.is-complete {
	padding-top: 6px;
	padding-bottom: 6px;
	font-size: 11px;
}

.agpc-public-viewer.has-viewer-error .agpc-pdf-status {
	padding: 20px;
	background: #fff4f2;
	color: #862f27;
}

.agpc-pdf-scroll {
	width: 100%;
	height: var(--agpc-viewer-height, 900px);
	min-height: 500px;
	overflow: auto;
	overscroll-behavior: contain;
	background: #d9dcda;
	scrollbar-color: #7a827d #d9dcda;
}

.agpc-pdf-pages {
	width: 100%;
	min-width: 100%;
	padding: 18px 0 28px;
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: 18px;
	box-sizing: border-box;
}

.agpc-pdf-page {
	width: calc(100% - 42px);
	max-width: 900px;
	position: relative;
	flex: 0 0 auto;
	aspect-ratio: 595.28 / 841.89;
	background: #fff;
	box-shadow: 0 3px 16px rgba(21, 30, 25, .24);
	overflow: hidden;
}

.agpc-pdf-page.is-rendered {
	max-width: none;
}

.agpc-pdf-page canvas {
	width: 100%;
	height: 100%;
	display: block;
	background: #fff;
}

.agpc-pdf-page-placeholder {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: linear-gradient(110deg, #f6f7f6 30%, #ecefec 42%, #f6f7f6 54%);
	background-size: 220% 100%;
	color: #7a827d;
	font-size: 12px;
	animation: agpc-pdf-loading 1.8s linear infinite;
}

.agpc-pdf-page.has-render-error .agpc-pdf-page-placeholder {
	background: #fff4f2;
	color: #862f27;
	animation: none;
}

@keyframes agpc-pdf-loading {
	to { background-position-x: -220%; }
}

.agpc-pdf-annotation-layer {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.agpc-pdf-annotation-layer a {
	position: absolute;
	display: block;
	pointer-events: auto;
	background: transparent;
	text-decoration: none;
}

.agpc-pdf-annotation-layer a:hover,
.agpc-pdf-annotation-layer a:focus-visible {
	outline: 2px solid rgba(36, 55, 47, .68);
	outline-offset: -2px;
	background: rgba(36, 55, 47, .06);
}

.agpc-pdf-noscript {
	margin: 0;
	padding: 18px;
	background: #fff4f2;
	color: #862f27;
	font-size: 13px;
	text-align: center;
}

.agpc-public-empty {
	margin: 20px 0;
	padding: 20px;
	border: 1px solid #e2e1dc;
	border-radius: 7px;
	background: #f7f4ee;
	color: #545b55;
	text-align: center;
}

@media (max-width: 700px) {
	.agpc-public-toolbar {
		align-items: stretch;
		flex-direction: column;
	}

	.agpc-public-download {
		width: 100%;
		box-sizing: border-box;
	}

	.agpc-public-viewer {
		min-height: 0;
	}

	.agpc-pdf-controls {
		align-items: stretch;
		flex-direction: column;
	}

	.agpc-pdf-control-group {
		justify-content: center;
	}

	.agpc-pdf-scroll {
		height: min(var(--agpc-viewer-height, 900px), 75vh);
		min-height: 520px;
	}

	.agpc-pdf-pages {
		padding-top: 12px;
		gap: 12px;
	}

	.agpc-pdf-page {
		width: calc(100% - 24px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.agpc-pdf-page-placeholder {
		animation: none;
	}
}
