/**
 * Grouped "Related" section (inc/ts-related.php). Its own file so a new
 * filename sidesteps stale cached copies of ts-hooks.css (?ver is stripped).
 */
/* --- .ts-rel: grouped "Related" section (inc/ts-related.php) -----------------
   Full-width rows grouped by kind: title left, source right; long groups fold
   into <details>. Stacks the meta under the title on narrow screens. */
.ts-rel__group {
	margin: 0 0 1.6em;
}
.ts-rel .ts-rel__head {
	display: flex;
	align-items: baseline;
	gap: .5em;
	margin: 0 0 .3em;
	padding: 0 0 .3em;
	font-size: 1.15rem;
	background: none;
	border-bottom: 1px solid rgba(128, 128, 128, .45);
}
.ts-rel__count {
	font-size: .8rem;
	font-weight: 400;
	opacity: .65;
}
.ts-rel__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ts-rel__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 18rem);
	gap: .3em 1.2em;
	padding: .45em 0;
	margin: 0;
	border-bottom: 1px solid rgba(128, 128, 128, .18);
	line-height: 1.4;
}
.ts-rel__meta {
	font-size: .85em;
	opacity: .75;
	text-align: right;
}
.ts-rel__badge {
	display: inline-block;
	margin-left: .35em;
	padding: 0 .45em;
	font-size: .72em;
	line-height: 1.6;
	vertical-align: .1em;
	border: 1px solid currentColor;
	border-radius: 3px;
	opacity: .8;
}
.ts-rel__dl {
	margin-left: .5em;
	font-size: .85em;
	white-space: nowrap;
}
.ts-rel__dl::before {
	content: "↓ ";
}
.ts-rel__group--adverts .ts-rel__dl::before {
	content: "";
}
.ts-rel__more > summary {
	cursor: pointer;
	padding: .45em 0;
	font-size: .9em;
	opacity: .8;
	list-style: none;
}
.ts-rel__more > summary::-webkit-details-marker {
	display: none;
}
.ts-rel__more > summary::after {
	content: " ▾";
}
.ts-rel__more[open] > summary {
	display: none;
}
@media (max-width: 640px) {
	.ts-rel__row {
		grid-template-columns: minmax(0, 1fr);
	}
	.ts-rel__meta {
		text-align: left;
	}
}

/* Breathing room above the "Related" bar, whatever sits before it. */
#related {
	margin-top: 2.5em;
}
