.nv-anglicism-term {
	position: relative;
	display: inline;
	color: inherit;
	text-decoration: underline;
	text-decoration-style: dotted;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	cursor: help;
}

.nv-anglicism-page-term {
	position: relative;
	display: inline;
	color: inherit;
	text-decoration: underline;
	text-decoration-style: dotted;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
	cursor: help;
}

.nv-anglicism-term:focus {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.nv-anglicism-page-term:focus {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.nv-anglicism-tooltip {
	position: relative;
	z-index: 1;
}

.nv-anglicism-replacement {
	display: inline;
	color: inherit;
}

.nv-anglicism-original {
	display: inline;
	color: currentColor;
	opacity: 0.72;
}

.nv-anglicism-explanation {
	display: inline;
	color: currentColor;
	opacity: 0.86;
}

.nv-anglicism-footnote-term {
	display: inline;
	color: inherit;
}

.nv-anglicism-footnote-sup {
	margin-left: 2px;
	font-size: 0.68em;
	line-height: 0;
	vertical-align: super;
}

.nv-anglicism-footnote-link {
	color: currentColor;
	text-decoration: none;
}

.nv-anglicism-footnote-link:hover,
.nv-anglicism-footnote-link:focus {
	text-decoration: underline;
	text-underline-offset: 0.12em;
}

.nv-anglicism-footnotes {
	margin-top: 32px;
	padding-top: 20px;
	border-top: 1px solid currentColor;
	color: inherit;
}

.nv-anglicism-footnotes-title {
	margin: 0 0 14px;
	font-size: 1.15em;
	line-height: 1.3;
}

.nv-anglicism-footnotes-list {
	display: grid;
	counter-reset: none;
	gap: 10px;
	margin: 0;
	padding-left: 0;
	list-style: none;
}

.nv-anglicism-footnotes-item {
	position: static;
	min-height: 0;
	padding-left: 0;
	scroll-margin-top: 96px;
}

.nv-anglicism-footnotes-list .nv-anglicism-footnotes-item::before {
	content: none;
	display: none;
}

.nv-anglicism-footnotes-item:target {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.nv-anglicism-footnotes-number,
.nv-anglicism-footnotes-word {
	font-weight: 600;
}

.nv-anglicism-footnotes-description {
	opacity: 0.88;
}

.nv-anglicism-term::after {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 10px);
	z-index: 50;
	width: max-content;
	max-width: min(320px, 80vw);
	padding: 10px 12px;
	border-radius: 6px;
	background: #1f2933;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
	color: #ffffff;
	content: attr(data-anglicism-description);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	opacity: 0;
	pointer-events: none;
	text-align: left;
	transform: translate(-50%, 4px);
	transition: opacity 0.16s ease, transform 0.16s ease;
	white-space: normal;
}

.nv-anglicism-page-term::after {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 10px);
	z-index: 50;
	width: max-content;
	max-width: min(320px, 80vw);
	padding: 10px 12px;
	border-radius: 6px;
	background: #1f2933;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
	color: #ffffff;
	content: attr(data-anglicism-description);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	opacity: 0;
	pointer-events: none;
	text-align: left;
	transform: translate(-50%, 4px);
	transition: opacity 0.16s ease, transform 0.16s ease;
	white-space: normal;
}

.nv-anglicism-term::before {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 4px);
	z-index: 51;
	width: 10px;
	height: 10px;
	background: #1f2933;
	content: "";
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 4px) rotate(45deg);
	transition: opacity 0.16s ease, transform 0.16s ease;
}

.nv-anglicism-page-term::before {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 4px);
	z-index: 51;
	width: 10px;
	height: 10px;
	background: #1f2933;
	content: "";
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 4px) rotate(45deg);
	transition: opacity 0.16s ease, transform 0.16s ease;
}

.nv-anglicism-term:hover::after,
.nv-anglicism-term:focus::after,
.nv-anglicism-term:focus-within::after {
	opacity: 1;
	transform: translate(-50%, 0);
}

.nv-anglicism-page-term:hover::after,
.nv-anglicism-page-term:focus::after,
.nv-anglicism-page-term:focus-within::after {
	opacity: 1;
	transform: translate(-50%, 0);
}

.nv-anglicism-term:hover::before,
.nv-anglicism-term:focus::before,
.nv-anglicism-term:focus-within::before {
	opacity: 1;
	transform: translate(-50%, 0) rotate(45deg);
}

.nv-anglicism-page-term:hover::before,
.nv-anglicism-page-term:focus::before,
.nv-anglicism-page-term:focus-within::before {
	opacity: 1;
	transform: translate(-50%, 0) rotate(45deg);
}

.nv-anglicism-floating-tooltip-enabled .nv-anglicism-term::before,
.nv-anglicism-floating-tooltip-enabled .nv-anglicism-term::after,
.nv-anglicism-floating-tooltip-enabled .nv-anglicism-page-term::before,
.nv-anglicism-floating-tooltip-enabled .nv-anglicism-page-term::after {
	content: none;
	display: none;
}

.nv-anglicism-floating-tooltip {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 999999;
	width: max-content;
	max-width: min(320px, 80vw);
	padding: 10px 12px;
	border-radius: 6px;
	background: #1f2933;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.22);
	color: #ffffff;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	opacity: 0;
	pointer-events: none;
	text-align: left;
	transform: translateY(4px);
	transition: opacity 0.16s ease, transform 0.16s ease;
	white-space: normal;
}

.nv-anglicism-floating-tooltip::before {
	position: absolute;
	left: 50%;
	bottom: -5px;
	width: 10px;
	height: 10px;
	background: #1f2933;
	content: "";
	transform: translateX(-50%) rotate(45deg);
}

.nv-anglicism-floating-tooltip--below::before {
	bottom: auto;
	top: -5px;
}

.nv-anglicism-floating-tooltip--visible {
	opacity: 1;
	transform: translateY(0);
}

.nv-anglicism-page-term.is-tooltip-left::after {
    left: 0;
    transform: translate(0, 4px);
}

.nv-anglicism-page-term.is-tooltip-left:hover::after,
.nv-anglicism-page-term.is-tooltip-left:focus::after {
    transform: translate(0, 0);
}

.nv-anglicism-page-term.is-tooltip-right::after {
    left: auto;
    right: 0;
    transform: translate(0, 4px);
}

.nv-anglicism-page-term.is-tooltip-right:hover::after,
.nv-anglicism-page-term.is-tooltip-right:focus::after {
    transform: translate(0, 0);
}

@media (max-width: 640px) {
	.nv-anglicism-term::after {
		max-width: min(260px, 78vw);
		font-size: 13px;
	}

	.nv-anglicism-page-term::after {
		max-width: min(260px, 78vw);
		font-size: 13px;
	}

	.nv-anglicism-floating-tooltip {
		max-width: min(260px, 78vw);
		font-size: 13px;
	}
}
