/* Header and footer shared by the /repos, /results and /stats pages */

/* repos.css and styles.css redefine most of these for their own rules.
   They are declared here as well so that /stats, which loads no other
   stylesheet, still renders the header and the footer. */
:root {
	--primary-color: #2c3e50;
	--secondary-color: #3498db;
	--background-color: #f4f6f8;
	--surface-color: #ffffff;
	--text-color: #2c3e50;
	--muted-color: #7f8c8d;
	--border-color: #dee2e6;
	--row-hover-color: #eaf4fb;
	--shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* The header spans the full window, so the default body margin of the
   browser would leave a strip of background along its left and right. */
body {
	margin: 0;
	background: var(--background-color);
	color: var(--text-color);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
}

.site-header {
	background: var(--surface-color);
	border-bottom: 1px solid var(--border-color);
	box-shadow: var(--shadow);
}

.site-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px 24px;
}

.site-logo img {
	display: block;
	margin: 0;
	height: 44px;
	width: auto;
}

.site-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

/* styles.css colours every a:visited grey, which outweighs a plain
   ".site-nav a" selector, so the nav links name both states. */
.site-nav a:link,
.site-nav a:visited {
	padding: 6px 12px;
	border-radius: 6px;
	color: var(--primary-color);
	text-decoration: none;
	font-size: 0.95em;
	font-weight: 500;
	white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:active {
	background: var(--row-hover-color);
	color: var(--secondary-color);
}

.site-footer {
	max-width: 1200px;
	margin: 0 auto 30px auto;
	padding: 0 24px;
	text-align: center;
	font-size: 0.9em;
	color: var(--muted-color);
}

.site-footer a:link,
.site-footer a:visited {
	color: var(--secondary-color);
	text-decoration: none;
}

.site-footer a:hover,
.site-footer a:active {
	color: var(--primary-color);
}

@media (max-width: 768px) {
	.site-header-inner {
		justify-content: center;
		padding: 12px 16px;
	}

	.site-nav {
		justify-content: center;
	}
}
