.mabh-glossary {
	--mabh-glossary-border: #d8e1db;
	--mabh-glossary-accent: #224f40;
	--mabh-glossary-wash: #f2f7f4;
	--mabh-glossary-muted: #506257;
}

.mabh-glossary__topics ul,
.mabh-glossary__alphabet ul {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	list-style: none;
	margin: 0 0 1.25rem;
	padding: 0;
}

.mabh-glossary__topics a,
.mabh-glossary__alphabet a,
.mabh-glossary__alphabet span {
	border: 1px solid var(--mabh-glossary-border);
	border-radius: .4rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.15rem;
	min-height: 2.15rem;
	padding-inline: .35rem;
	box-sizing: border-box;
}

.mabh-glossary__alphabet a,
.mabh-glossary__topics a {
	background: var(--mabh-glossary-wash);
	color: var(--mabh-glossary-accent);
	text-underline-offset: .2em;
}

.mabh-glossary__alphabet span {
	border-color: transparent;
	color: var(--mabh-glossary-muted);
}

.mabh-glossary__topics a {
	padding-inline: .75rem;
}

.mabh-glossary__letter {
	border-top: 1px solid var(--mabh-glossary-border);
	margin-block: 1.5rem;
	padding-block-start: 1rem;
}

.mabh-glossary__letter h2 {
	margin: 0 0 .8rem;
	scroll-margin-top: 4rem;
}

.mabh-glossary__letter dl {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
	gap: 1.1rem 1.7rem;
	margin: 0;
}

.mabh-glossary__entry dt {
	font-weight: 650;
}

.mabh-glossary__entry dd {
	margin: .2rem 0 0;
}

.mabh-glossary__topic {
	display: block;
	font-size: .8em;
	font-weight: normal;
}

.mabh-glossary__top {
	font-size: .9em;
	margin: 1.15rem 0 0;
}

.mabh-glossary-term {
	text-decoration-line: underline;
	text-decoration-style: dotted;
	text-decoration-thickness: 1px;
	text-underline-offset: .18em;
}

.mabh-glossary-tooltip {
	position: fixed;
	z-index: 100000;
	width: min(22rem, calc(100vw - 24px));
	box-sizing: border-box;
	padding: .75rem 1rem;
	border: 1px solid #b5cbbd;
	border-radius: .5rem;
	background: #f2f7f4;
	color: #202e27;
	box-shadow: 0 8px 24px rgb(25 45 35 / 15%);
	font: normal .95rem / 1.45 system-ui, sans-serif;
}

.mabh-glossary-tooltip[hidden] {
	display: none !important;
}

.mabh-glossary-tooltip strong,
.mabh-glossary-tooltip span {
	display: block;
}

.mabh-glossary-tooltip strong {
	color: #224f40;
	margin-bottom: .2rem;
}

@media (hover: none) {
	.mabh-glossary-term {
		text-decoration-style: solid;
	}
}

