/* The Data and credits page (web/credits.html; docs/site.md, "The Data and credits page"): the legal pages' panel,
   wide enough for the site's tables at four columns. The tables are filled by the build (tools/site/credits_page.py). */

.site-credits-article { max-width: 1240px; }
.site-credits-article .site-table-wrap { margin: 16px 0 0; }
/* Fixed columns, so a long license text cannot squeeze what it is used for. */
.site-credits-table { table-layout: fixed; font-size: 14px; line-height: 1.55; }
.site-credits-table th:nth-child(1) { width: 21%; }
.site-credits-table th:nth-child(2) { width: 31%; }
.site-credits-table th:nth-child(3) { width: 30%; }
.site-credits-table td { overflow-wrap: break-word; }
.site-credits-table td:first-child { width: auto; white-space: normal; }
.site-legal-article .site-credits-table td p { color: var(--site-text-2); line-height: 1.55; }
.site-legal-article .site-credits-table td p + p { margin-top: 6px; }
.site-credits-table b { display: block; color: var(--site-text); font-weight: 600; overflow-wrap: normal; }
.site-credits-files { display: block; margin-top: 4px; color: var(--site-text-4); font: 400 11.5px/1.5 var(--site-font-mono); overflow-wrap: anywhere; }
.site-credits-files span { display: block; }
.site-legal-article .site-credits-table .site-credits-from { color: var(--site-text-4); font-size: 13px; }
.site-legal-article .site-credits-table .site-credits-changes { color: var(--site-text-3); }

@media (max-width: 899px) {
	.site-credits-table td:not(:last-child) { border-bottom: 0; }
	/* The tables read as one block per row here: each cell after the first says what it holds. */
	.site-credits-table td:not(:first-child)::before {
		content: attr(data-label);
		display: block;
		margin: 6px 0 2px;
		color: var(--site-text-4);
		font: 600 11.5px/1.3 var(--site-font-display);
		letter-spacing: .05em;
		text-transform: uppercase;
	}
}
