/* Sources / the bibliography (sources.php, design Sources.dc.html). */

.sr-sources {
	max-width: var(--sr-content-max);
	margin: 0 auto;
	padding: 24px 24px 96px;
	box-sizing: content-box; /* design: the side padding sits outside the max-width */
	display: flex;
	flex-direction: column;
	gap: 28px;
	color: var(--sr-color-ink);
}

.sr-sources__head {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.sr-sources__eyebrow {
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--sr-color-lime-ink);
}

.sr-sources .sr-sources__title {
	margin: 0;
	font-size: 120px;
	line-height: 0.88;
}

.sr-sources__form {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.sr-sources__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

/* Design: this search box sits on the panel grey (the Cases and Organizations ones are white). */
.sr-sources__search {
	flex: 1 1 356px;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 18px;
	border-radius: var(--sr-radius-control);
	background: var(--sr-color-panel);
}

.sr-sources__search:focus-within {
	outline: 3px solid var(--sr-focus-ring, var(--sr-color-focus));
	outline-offset: 2px;
}

.sr-sources__search input.sr-sources__q {
	flex: 1;
	min-width: 0;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--sr-color-ink);
	font-family: var(--sr-font-ui);
	font-size: 15px;
	outline: none;
}

.sr-sources__table-wrap {
	overflow-x: auto;
	border: 1px solid var(--sr-color-rule);
	border-radius: var(--sr-radius-card);
	background: var(--sr-color-white);
}

.sr-sources__table {
	width: 100%;
	min-width: 900px;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	font-size: 14px;
}

.sr-sources__table th {
	padding: 14px 18px;
	border: 0;
	background: var(--sr-color-panel);
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--sr-color-ink);
}

.sr-sources__table td {
	padding: 16px 18px;
	border: 0;
	border-top: 1px solid var(--sr-color-card-border-light);
	background: none;
	vertical-align: top;
}

.sr-sources__table tr[hidden] {
	display: none;
}

/* Added: a footnote link (/sources/#B-nnn) lands on its row and marks it. */
.sr-sources__table tr:target td {
	background: var(--sr-color-lime-tint);
}

.sr-sources__table tr {
	scroll-margin-top: 24px;
}

.sr-sources__id {
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.sr-sources__title-cell {
	max-width: 380px;
	font-weight: 600;
	line-height: 1.4;
}

.sr-sources .sr-sources__title-cell a,
.sr-sources .sr-sources__cited {
	color: var(--sr-color-ink);
}

.sr-sources__table td.is-soft {
	color: var(--sr-color-ink-soft);
}

.sr-sources__table td.is-date {
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.sr-sources__type {
	display: inline-block;
	padding: 3px 10px;
	border: 1px solid transparent;
	border-radius: var(--sr-radius-control);
	font-size: 11px;
	font-weight: 600;
	white-space: nowrap;
}

.sr-sources__type--official {
	background: var(--sr-color-ink);
	color: var(--sr-color-on-dark);
}

.sr-sources__type--lead {
	border: 1px dashed var(--sr-color-dove-grey);
	background: var(--sr-color-panel);
}

.sr-sources .sr-sources__cited {
	font-size: 13px;
}

.sr-sources__empty td {
	padding: 32px 18px;
	text-align: center;
	color: var(--sr-color-ink-soft);
}

.sr-sources [data-sr-apply] {
	align-self: flex-start;
}

.sr-sources [data-sr-apply][hidden] {
	display: none;
}

@media (max-width: 699px) {
	.sr-sources {
		padding: 24px 16px 72px;
	}

	.sr-sources .sr-sources__title {
		font-size: 64px;
	}
}
