/* The site's tooltips (tooltip.js): M3's plain tooltip, body-small text at
   least 24px tall and at most 200px wide, with 8px of side padding and
   4px corners. It sits on the glass of the site's other popups (the
   calendar's tooltip, menus, cards), in each theme's own colours rather
   than M3's inverse ones, which read as the other theme here. Under the
   menus and the cursor, over the cards. */
.tooltip {
	position: fixed;
	z-index: 8950;
	box-sizing: border-box;
	min-height: 24px;
	max-width: 200px;
	padding: 4px 8px;
	border-radius: 4px;
	background: color-mix(in srgb, var(--popup) 82%, transparent);
	-webkit-backdrop-filter: blur(24px) saturate(1.4);
	backdrop-filter: blur(24px) saturate(1.4);
	box-shadow:
		inset 0 0 0 1px color-mix(in srgb, var(--text) 9%, transparent),
		0 1px 2px rgb(0 0 0 / 0.3),
		0 2px 6px 2px rgb(0 0 0 / 0.15);
	color: var(--text);
	font-size: 12px;
	line-height: 16px;
	overflow-wrap: break-word;
	user-select: none;
	--selection-line: none;
}

.tooltip[hidden] {
	display: none;
}

@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
	.tooltip {
		background: var(--popup);
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
	}
}
