/*
 * Glossary terms: a <dfn> with a tooltip shown on hover and on keyboard
 * focus (WCAG 1.4.13: hoverable, persistent, Escape dismisses). Themes may
 * override; keep the tooltip text available to aria-describedby.
 */
.iels-gloss {
	position: relative;
	display: inline;
}
.iels-gloss__term {
	font-style: normal;
	text-decoration: underline dotted;
	text-underline-offset: 0.2em;
	cursor: help;
}
.iels-gloss__term:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}
.iels-gloss__tip {
	position: absolute;
	z-index: 100;
	left: 0;
	top: 100%;
	width: max-content;
	max-width: min(20em, 80vw);
	margin-top: 0.25em;
	padding: 0.5em 0.75em;
	border-radius: 4px;
	background: #1e1e1e;
	color: #fff;
	font-size: 0.875rem;
	font-style: normal;
	font-weight: normal;
	line-height: 1.4;
	text-align: left;
	white-space: normal;
	/* Hidden visually until hover/focus; still in the accessibility tree. */
	clip-path: inset(50%);
	opacity: 0;
	pointer-events: none;
}
.iels-gloss:hover .iels-gloss__tip,
.iels-gloss:focus-within .iels-gloss__tip {
	clip-path: none;
	opacity: 1;
	pointer-events: auto;
}
.iels-gloss.is-dismissed .iels-gloss__tip {
	clip-path: inset(50%);
	opacity: 0;
	pointer-events: none;
}
