:root {
	--paper: #14161c;
	--paper-2: #1c1f28;
	--ink: #e4e6ed;
	--ink-dim: #939aad;
	--rule: #2b2f3b;
	--rule-strong: #454b5c;
	--accent: #5b8cff;
	--accent-dim: #4570dd;
	--good: #4caf7d;
	--warn: #d99a3f;
	--bad: #e0655f;
	--serif: Georgia, "Times New Roman", "Liberation Serif", serif;
	--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	--container: 980px;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.55;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

a { color: var(--accent); }
a:hover { color: var(--accent-dim); }

header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--paper);
	border-bottom: 3px double var(--rule-strong);
	padding: .45rem 1.25rem .35rem;
}

.header-inner {
	max-width: var(--container);
	margin: 0 auto;
	position: relative;
}

header h1 {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	font-family: var(--serif);
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: .01em;
	color: var(--ink);
	text-align: center;
	margin-bottom: .2rem;
}

header h1 img {
	width: 1.1em;
	height: 1.1em;
}

.gh-corner {
	position: absolute;
	top: 0;
	left: 0;
	color: var(--ink-dim);
	line-height: 0;
	padding: .15rem;
}

.gh-corner:hover { color: var(--accent); }

.header-actions {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	gap: .5rem;
	align-items: center;
}

.new-member-btn {
	background: var(--accent);
	color: #fff;
	text-decoration: none;
	padding: .3rem .7rem;
	border-radius: 4px;
	font-size: .78rem;
	font-weight: 600;
	transition: background .15s ease;
	white-space: nowrap;
}

.new-member-btn:hover { background: var(--accent-dim); }

.admin-btn {
	color: var(--ink-dim);
	text-decoration: none;
	padding: .3rem .4rem;
	border-radius: 4px;
	font-size: .82rem;
	transition: color .15s ease;
}

.admin-btn:hover { color: var(--ink); }

nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	column-gap: 1rem;
	row-gap: .2rem;
	font-size: .88rem;
}

nav a {
	color: var(--ink-dim);
	text-decoration: none;
	padding-bottom: .15rem;
	border-bottom: 2px solid transparent;
}

nav a:hover { color: var(--ink); }

nav a.active {
	color: var(--ink);
	border-bottom-color: var(--accent);
	font-weight: 600;
}

nav .sep {
	color: var(--rule-strong);
}

main {
	flex: 1;
	max-width: var(--container);
	width: 100%;
	margin: 0 auto;
	padding: 1.15rem 1.5rem 1.4rem;
}


/* ===================================================== shared components === */
h2 {
	font-family: var(--serif);
	font-size: 1.15rem;
	font-weight: 700;
	margin-bottom: .5rem;
	border-bottom: 1px solid var(--rule);
	padding-bottom: .25rem;
}

.card {
	border: 1px solid var(--rule);
	background: var(--paper-2);
	padding: .6rem 1rem;
	margin-bottom: .6rem;
	border-radius: 4px;
}

.card-title {
	font-size: .74rem;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--ink-dim);
	margin-bottom: .3rem;
	border-bottom: 1px solid var(--rule);
	padding-bottom: .15rem;
}

.btn-sm {
	display: inline-block;
	background: var(--paper);
	color: var(--ink);
	border: 1px solid var(--rule-strong);
	padding: .12rem .55rem;
	font-size: .74rem;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	border-radius: 3px;
}

.btn-sm:hover { background: var(--paper-2); }

.table-wrap {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

table {
	width: 100%;
	min-width: 460px;
	border-collapse: collapse;
	font-size: .88rem;
}

th {
	text-align: left;
	padding: .3rem .6rem;
	font-weight: 700;
	font-size: .72rem;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: var(--ink-dim);
	border-bottom: 2px solid var(--rule-strong);
	white-space: nowrap;
}

td {
	padding: .35rem .6rem;
	border-bottom: 1px solid var(--rule);
	vertical-align: top;
}

tr:last-child td { border-bottom: none; }

/* Below this width, a multi-column table stops fitting without
   horizontal scroll, so it's presented as a stack of labelled rows
   instead of asking the reader to scroll sideways. */
@media (max-width: 640px) {
	table.stacked { min-width: 0; }
	table.stacked thead { display: none; }
	table.stacked, table.stacked tbody, table.stacked tr, table.stacked td { display: block; width: 100%; }
	table.stacked tr { border-bottom: 1px solid var(--rule); padding: .4rem 0; }
	table.stacked tr:last-child { border-bottom: none; }
	table.stacked td {
		border-bottom: none; padding: .15rem 0; white-space: normal;
	}
	table.stacked td::before {
		content: attr(data-label); display: block; font-size: .7rem;
		color: var(--ink-dim); text-transform: uppercase; letter-spacing: .03em;
	}
}

.pager {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	margin-top: .75rem;
	padding-top: .75rem;
	border-top: 1px solid var(--rule);
	font-size: .88rem;
}

.pager a { text-decoration: none; }
.pager-current { color: var(--ink-dim); }

/* Mobile Responsive Styles */
@media (max-width: 768px) {
	header {
		padding: .8rem 1rem .55rem 1rem;
	}

	.gh-corner { display: none; }

	.header-actions {
		position: static;
		justify-content: center;
		margin-bottom: .4rem;
	}

	header h1 {
		font-size: 1.1rem;
	}

	nav {
		column-gap: .7rem;
		font-size: .82rem;
	}

	main {
		padding: 1.25rem 1rem 1.5rem;
	}
}
