/* Hidden visually but still read by screen readers. */
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

@media (min-width: 1200px) {
	.content-frame {
		/* Drawn in each theme's hairline colour, so the bars stay as faint on
		   the light page as on the dark one. */
		--bar: color-mix(in srgb, var(--hairline) 9%, transparent);
		background-image: repeating-linear-gradient(to right, transparent 0, transparent 23px, var(--bar) 23px, var(--bar) 24px);
	}
}

/* Compact controls keep M3's 48dp touch target where the pointer is a
   finger: their hit area reaches above and below what's drawn. */
@media (pointer: coarse) {
	:is(.ref-button, .loc-chip, .heatmap-toggle, .diff-toggle, .page-more)::after {
		content: "";
		position: absolute;
		z-index: 1;
		inset: -8px 0;
	}

	.page-crumbs a,
	.markdown .md-anchor {
		position: relative;
	}

	:is(.page-crumbs a, .markdown .md-anchor)::after {
		content: "";
		position: absolute;
		z-index: 1;
		inset: -12px -4px;
	}
}
