/* Inline superscript reference */
.ug-fn-ref {
	position: relative;
	display: inline;
	line-height: 0;
	vertical-align: super;
	font-size: 0.75em;
}

.ug-fn-ref > a {
	position: relative;
	text-decoration: none;
	border-bottom: none;
	line-height: 0;
	cursor: pointer;
	top: 3px;
	font-size: 90%;
	color: var(--global-link);
}

.ug-fn-ref > a::before { content: '['; }
.ug-fn-ref > a::after  { content: ']'; }

/* Tooltip */
.ug-fn-tip {
	display: none;
	position: absolute;
	bottom: calc(100% + 6px);
	left: 50%;
	transform: translateX(-50%);
	min-width: 200px;
	width: max-content;
	pointer-events: none;
	white-space: normal;

	font-size: 13px !important;
	color: #000000 !important;
	background-color: #ffffff !important;
	border-width: 1px !important;
	border-style: solid !important;
	border-color: #cccc99 !important;
	-webkit-box-shadow: 2px 2px 11px #666666;
	-moz-box-shadow: 2px 2px 11px #666666;
	box-shadow: 2px 2px 11px #666666;
	max-width: 450px !important;
	z-index: 2147483647 !important;
	cursor: auto;
	text-align: start !important;
	padding: 12px !important;
	line-height: 1.2;
	font-weight: 400;
	font-style: normal;
}
.ug-fn-tip a{
	font-size: 13px !important;
}

.ug-fn-ref:hover .ug-fn-tip,
.ug-fn-ref.ug-fn-open .ug-fn-tip {
	display: block;
}

/* Reference list at bottom */
.ug-footnotes {
	margin: 2em auto !important;
	font-size: 15px;
	line-height: 1.6;
	color: inherit;
}
.ug-footnotes .ug-fn-text a {
	font-size: 15px;
}

.ug-footnotes-heading {
    margin: 0 0 0.83em;
    font-size: 27px;
    line-height: 1.3em;
    font-weight: 400;
    border-bottom: 1px solid #aaaaaa;
}

.ug-footnotes-list {
	list-style: none;
	padding-left: 0;
	margin: 0;
}

.ug-fn-item {
	display: flex;
	align-items: baseline;
	gap: 0.6em;
	margin-bottom: 0.4em;
}

.ug-fn-label {
	display: flex;
	align-items: baseline;
	gap: 0;
	flex-shrink: 0;
	white-space: nowrap;
}

.ug-fn-num {
	font-variant-numeric: tabular-nums;
	color: var(--global-link);
	font-weight: 600;
}

.ug-fn-text {
	flex: 1;
}

.ug-fn-back {
	text-decoration: none;
	font-weight: 800;
	font-size: 16px;
}

.ug-fn-back:hover {
	opacity: 1;
}
