/**
 * Accessibility utilities.
 *
 * `.screen-reader-text` is a WordPress convention, but core only ships the rule
 * in its *admin* stylesheet — a block theme gets nothing on the front end. The
 * class was already being used by the calendar's filter labels and the filter
 * bar, where it did nothing at all and the labels simply rendered visibly; the
 * search form's label and submit button rely on it too.
 *
 * The `clip-path` + 1px box is the standard visually-hidden recipe: the element
 * stays in the accessibility tree and keeps its dimensions (so it is still
 * announced and still focusable), but paints nothing.
 *
 * `:focus` deliberately un-hides the element — that is what makes a
 * "skip to content" style control usable once tabbed to. The search form's own
 * submit button is a genuine control, so this is the wanted behaviour there.
 *
 * Loaded on the front end (ehm_enqueue_assets) and in the editor
 * (add_editor_style) for parity.
 */

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	border: 0;
	clip-path: inset(50%);
	white-space: nowrap;
	word-wrap: normal;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: 5px;
	left: 5px;
	width: auto;
	height: auto;
	margin: 0;
	padding: 12px 24px;
	background-color: var(--wp--preset--color--weiss, #fff);
	color: var(--wp--preset--color--schwarz-85, #262626);
	clip-path: none;
	text-decoration: none;
}
