/*
 * Seamless PDF Pages – front-end.
 * Everything here exists to make the PDF look like plain page content:
 * no frame, border, shadow, toolbar or inner scrollbar.
 */

.sdoc {
	display: block;
	position: relative;
	width: 100%;
	box-sizing: border-box;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	overflow: visible;
}

.sdoc .sdoc-page {
	position: relative;
	display: block;
	width: 100%;
	height: 0;
	margin: 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	background: transparent;
	overflow: hidden;
	box-sizing: content-box;
}

.sdoc .sdoc-page + .sdoc-page {
	margin-top: var(--sdoc-gap, 0px);
}

/* Rendered page image. */
.sdoc .sdoc-canvas {
	position: absolute;
	left: 0;
	top: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	background: none !important;
	opacity: 1;
	transition: opacity 0.25s ease;
	-webkit-user-select: none;
	user-select: none;
}

.sdoc .sdoc-canvas.sdoc-fresh {
	opacity: 0;
}

.sdoc[data-bg="blend"] .sdoc-canvas {
	mix-blend-mode: multiply;
}

/* Full-size page box behind the trimmed view (holds text and links). */
.sdoc .sdoc-sheet {
	position: absolute;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

/* Invisible text on top of the page: selection, copy and Ctrl+F work like real text. */
.sdoc .sdoc-tl {
	position: absolute;
	left: 0;
	top: 0;
	width: 100% !important;
	height: 100% !important;
	margin: 0;
	padding: 0;
	overflow: hidden;
	opacity: 1;
	z-index: 0;
	line-height: 1;
	text-align: initial;
	text-indent: 0;
	text-transform: none;
	letter-spacing: normal;
	word-spacing: normal;
	font-style: normal;
	font-weight: normal;
	-webkit-text-size-adjust: none;
	-moz-text-size-adjust: none;
	text-size-adjust: none;
	forced-color-adjust: none;
	transform-origin: 0 0;
	caret-color: transparent;
	--min-font-size: 1;
	--text-scale-factor: calc(var(--total-scale-factor, 1) * var(--min-font-size));
	--min-font-size-inv: calc(1 / var(--min-font-size));
}

.sdoc .sdoc-tl span,
.sdoc .sdoc-tl br {
	color: transparent;
	position: absolute;
	white-space: pre;
	cursor: text;
	transform-origin: 0% 0%;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	text-decoration: none;
	-webkit-user-select: text;
	-moz-user-select: text;
	user-select: text;
}

.sdoc .sdoc-tl > :not(.markedContent),
.sdoc .sdoc-tl .markedContent span:not(.markedContent) {
	z-index: 1;
	--font-height: 0;
	font-size: calc(var(--text-scale-factor) * var(--font-height));
	--scale-x: 1;
	--rotate: 0deg;
	transform: rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv));
}

.sdoc .sdoc-tl .markedContent {
	display: contents;
}

.sdoc .sdoc-tl span[role="img"] {
	-webkit-user-select: none;
	user-select: none;
	cursor: default;
}

.sdoc .sdoc-tl ::-moz-selection {
	background: rgba(0, 110, 255, 0.25);
	color: transparent;
}

.sdoc .sdoc-tl ::selection {
	background: rgba(0, 110, 255, 0.25);
	color: transparent;
}

.sdoc .sdoc-tl br::-moz-selection {
	background: transparent;
}

.sdoc .sdoc-tl br::selection {
	background: transparent;
}

.sdoc .sdoc-tl .sdoc-eoc {
	display: block;
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	bottom: 0;
	z-index: 0;
	cursor: default;
	transform: none;
	-webkit-user-select: none;
	user-select: none;
}

.sdoc .sdoc-tl.selecting .sdoc-eoc {
	top: 0;
}

/* Links that exist inside the PDF. */
.sdoc .sdoc-ln {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.sdoc .sdoc-ln a,
.sdoc .sdoc-ln a:hover,
.sdoc .sdoc-ln a:focus {
	position: absolute;
	display: block;
	margin: 0;
	padding: 0;
	pointer-events: auto;
	cursor: pointer;
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	text-decoration: none !important;
	outline: none;
}

.sdoc .sdoc-ln a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	.sdoc .sdoc-canvas {
		transition: none;
	}
}

@media print {
	.sdoc .sdoc-page {
		break-inside: avoid;
		page-break-inside: avoid;
	}
	.sdoc .sdoc-canvas.sdoc-fresh {
		opacity: 1;
	}
}
