/* ============================================================
   Peptra Labs - glossary index
   Same palette and spacing as the lab report archive, so the two
   index pages read as one system rather than two designs.
   Mobile first: the stacked definition list is the base, the two
   column row is the enhancement.
   ============================================================ */

.pl-glossary {
	--plg-navy: #0e2c5a;
	--plg-blue: #245a9e;
	--plg-ink: #0f172a;
	--plg-muted: #64748b;
	--plg-line: #e5e9f0;
	--plg-soft: #f8fafc;

	margin: 32px 0 0;
}

.pl-glossary-count {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin: 0 0 20px;
}

.pl-glossary-count strong {
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	color: var(--plg-navy);
}

.pl-glossary-count span {
	font-size: 13px;
	color: var(--plg-muted);
}

.pl-glossary-list {
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--plg-line);
}

.pl-glossary-item {
	padding: 18px 0;
	border-bottom: 1px solid var(--plg-line);
}

.pl-glossary-item dt {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.3;
}

.pl-glossary-item dt a {
	color: var(--plg-navy);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: border-color .15s ease, color .15s ease;
}

.pl-glossary-item dt a:hover,
.pl-glossary-item dt a:focus-visible {
	color: var(--plg-blue);
	border-bottom-color: currentColor;
}

/* The theme resets focus outlines on links inside content; put a visible one
   back, because this list is a keyboard user's whole navigation on this page. */
.pl-glossary-item dt a:focus-visible {
	outline: 2px solid var(--plg-blue);
	outline-offset: 3px;
}

.pl-glossary-item dd {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: var(--plg-muted);
}

/* From tablet up the term sits beside its definition. The column is fixed
   rather than a fraction so a long term wraps inside its own column instead of
   pushing the definitions out of alignment down the page. */
@media (min-width: 768px) {
	.pl-glossary-item {
		display: grid;
		grid-template-columns: 260px 1fr;
		gap: 24px;
		align-items: baseline;
	}

	.pl-glossary-item dt {
		margin-bottom: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pl-glossary-item dt a {
		transition: none;
	}
}
