/**
 * The find-result highlight, written flat.
 *
 * Two jobs. First, PDF.js writes these rules with CSS nesting, inside
 * .textLayer { ... }, and a browser that does not take that syntax drops
 * exactly these rules while keeping the rest of the stylesheet, which
 * would show the issue and the page jump with nothing marked.
 *
 * Second, the colours. PDF.js ships magenta for a match and green for the
 * one you are on, which reads as decoration rather than as marking. These
 * are a highlighter's yellow for every match and amber for the current
 * one, which is what a reader of a legal digest expects, and they stay
 * light enough to read black type through.
 *
 * A file rather than a style tag in the page: the viewer's own
 * Content-Security-Policy is style-src 'self', which refuses inline CSS.
 */
.textLayer .highlight {
	margin: -1px;
	padding: 1px;
	border-radius: 4px;
	background-color: rgba( 255, 222, 0, 0.45 );
}

.textLayer .highlight.begin {
	border-radius: 4px 0 0 4px;
}

.textLayer .highlight.end {
	border-radius: 0 4px 4px 0;
}

.textLayer .highlight.middle {
	border-radius: 0;
}

.textLayer .highlight.selected {
	background-color: rgba( 255, 145, 0, 0.55 );
}

/* The message a reader with JavaScript off sees, in place of the viewer. */
.lscr-reader-noscript {
	padding: 2rem;
	font: 16px/1.5 Georgia, "Times New Roman", serif;
}
