/* NUV Glossary — index and term pages. Colours inherit from the theme where possible.
   List rules are scoped under .nuv-gl twice over so they beat theme rules such as
   Flatsome's ".entry-content ul li { margin-left: 1.3em }". */

.nuv-gl {
	--nuv-gl-border: #d5d9d8;
	--nuv-gl-muted: #9aa3a1;
	--nuv-gl-current: #ececec;
}

/* A–Z bar */
.nuv-gl .nuv-gl-nav ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(2.6em, 1fr));
	list-style: none;
	margin: 0 0 1em;
	padding: 0 0 0 1px;
}
.nuv-gl .nuv-gl-nav ul li {
	margin: 0 0 -1px -1px;
	padding: 0;
	list-style: none;
}
.nuv-gl .nuv-gl-nav a,
.nuv-gl .nuv-gl-nav span {
	display: block;
	padding: .45em .2em;
	border: 1px solid var(--nuv-gl-border);
	text-align: center;
	text-decoration: none;
	line-height: 1.2;
	white-space: nowrap;
}
.nuv-gl .nuv-gl-nav a:hover,
.nuv-gl .nuv-gl-nav a:focus,
.nuv-gl .nuv-gl-nav a.is-current {
	background: var(--nuv-gl-current);
}
.nuv-gl .nuv-gl-nav .is-empty {
	color: var(--nuv-gl-muted);
	opacity: .5;
}

.nuv-gl-count {
	margin: 0 0 1.5em;
}

/* Term list: columns read top to bottom, like a printed index.
   The left padding leaves room for the "New!" star. */
.nuv-gl-letter {
	margin: 1.25em 0 .5em;
}
.nuv-gl ul.nuv-gl-terms {
	list-style: none;
	margin: 0 0 1.5em;
	padding: 0 0 0 1.25em;
	column-gap: 2.5em;
}
.nuv-gl-cols-2 ul.nuv-gl-terms { column-count: 2; }
.nuv-gl-cols-3 ul.nuv-gl-terms { column-count: 3; }
.nuv-gl-cols-4 ul.nuv-gl-terms { column-count: 4; }

@media (max-width: 900px) {
	.nuv-gl-cols-3 ul.nuv-gl-terms,
	.nuv-gl-cols-4 ul.nuv-gl-terms { column-count: 2; }
}
@media (max-width: 600px) {
	.nuv-gl ul.nuv-gl-terms { column-count: 1; }
}

.nuv-gl ul.nuv-gl-terms li {
	position: relative;
	margin: 0;
	padding: .2em 0;
	list-style: none;
	break-inside: avoid;
	overflow-wrap: anywhere;
}
.nuv-gl .nuv-gl-terms a {
	color: inherit;
	text-decoration: none;
}
.nuv-gl .nuv-gl-terms a:hover,
.nuv-gl .nuv-gl-terms a:focus {
	text-decoration: underline;
}
.nuv-gl .nuv-gl-terms a.is-synonym {
	font-style: italic;
}
.nuv-gl-new {
	position: absolute;
	left: -1.1em;
	font-size: .9em;
}

/* Pagination */
.nuv-gl-pages {
	display: flex;
	flex-wrap: wrap;
	gap: .35em;
	margin: 1.5em 0;
}
.nuv-gl-pages a,
.nuv-gl-pages span {
	padding: .3em .7em;
	border: 1px solid var(--nuv-gl-border);
	text-decoration: none;
}
.nuv-gl-pages .is-current {
	background: var(--nuv-gl-current);
}

/* Term pages */
.nuv-gl-term-head {
	margin-bottom: 1.5em;
}
.nuv-gl-term-head .nuv-gl-nav ul {
	margin-bottom: .75em;
}
.nuv-gl-back {
	margin: 0;
}
.nuv-gl-term-foot {
	margin-top: 1.5em;
}
.nuv-gl-related ul {
	margin-top: 0;
}
