/**
 * Sources and licences.
 *
 * The attribution statement is the licence condition being discharged, so it
 * is the most prominent thing in each entry after the title — not a footnote.
 */

.pem-src { max-width: var(--measure, 34rem); }

.pem-src__count {
	font-variant-numeric: tabular-nums;
	padding-bottom: .75rem;
	border-bottom: 2px solid var(--ink, #16191d);
	margin: 0 0 1.5rem;
}

.pem-src h2 { margin: 2rem 0 .75rem; font-size: var(--step-1, 1.125rem); }

/* Sits above the uncleared list, not below it: a reader meeting nine blocked
   sources needs to know at once that this is a constraint observed rather than
   a list of things used anyway. */
.pem-src__caveat {
	padding: .8rem 1rem;
	border-left: 4px solid var(--stop, #8c2f18);
	background: var(--warn-bg, #fdf6ec);
	font-size: var(--step--1, .875rem);
	line-height: 1.55;
	margin: 0 0 1.25rem;
}

.pem-src__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }

.pem-src__item { padding-left: 1rem; border-left: 3px solid var(--rule, #d4d8dd); }
.pem-src__item--blocked { border-left-color: var(--stop, #8c2f18); }

.pem-src__title { margin: 0 0 .15rem; font-size: var(--step-0, 1rem); line-height: 1.4; }

.pem-src__publisher {
	margin: 0 0 .5rem;
	color: var(--ink-2, #4a5058);
	font-size: var(--step--1, .875rem);
}

.pem-src__meta {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: .25rem .8rem;
	margin: 0 0 .6rem;
	font-size: var(--step--1, .875rem);
}

.pem-src__meta dt {
	font-size: var(--step--2, .78rem);
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--ink-2, #4a5058);
	font-weight: 600;
}

.pem-src__meta dd { margin: 0; }

/* Verbatim, because a tidied-up statement is no longer the one the licence
   asked for. Presented as a quotation so it reads as somebody else's words. */
.pem-src__attribution {
	margin: 0;
	padding: .6rem .85rem;
	background: var(--ground-2, #f4f6f8);
	border-left: 3px solid var(--accent, #0b4f6c);
}

.pem-src__attribution p {
	margin: 0;
	font-size: var(--step--1, .875rem);
	line-height: 1.5;
}

:target.pem-src__item { outline: 2px solid var(--accent, #0b4f6c); outline-offset: .4rem; }
