/*
	Lexique (www/js/Glossary.js) : mot souligné + « ? », et son
	infobulle. Page publique seulement — mêmes teintes que le
	panneau de détails (fond sombre).
*/

.gloss-term {
	text-decoration: underline dotted;
	text-decoration-color: var(--v-accent, #3b82f6);
	text-decoration-thickness: 2px;
	text-underline-offset: 3px;

	cursor: help;
	border-radius: 3px;
	outline: none;
}

/* le « ? » : collé au mot, sans jamais passer seul à la ligne */
.gloss-term::after {
	content: "?";

	display: inline-block;
	width: 1.15em;
	height: 1.15em;
	margin-left: 2px;

	vertical-align: super;
	font-size: 0.62em;
	font-weight: 700;
	line-height: 1.15em;
	text-align: center;
	text-decoration: none;

	color: #ffffff;
	background: var(--v-accent, #3b82f6);
	border-radius: 50%;
}

.gloss-term:hover,
.gloss-term.open,
.gloss-term:focus-visible {
	background: rgba(59, 130, 246, 0.18);
}

.gloss-tip {
	position: fixed;
	z-index: 5000;

	max-width: min(320px, calc(100vw - 16px));
	padding: 10px 12px;

	background: rgba(2, 6, 23, 0.97);
	border: 1px solid #334155;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);

	color: #e2e8f0;
	font-size: 14px;
	line-height: 1.45;

	pointer-events: none;
}

.gloss-tip.hidden {
	display: none;
}

.gloss-tip-word {
	margin-bottom: 4px;

	font-weight: 700;
	color: #ffffff;
}

.gloss-tip-body {
	white-space: pre-line;
	color: #cbd5e1;
}
