/*
 * Colors.
 */ 

 :root {
	--link: #060;
	--link-hover: #080;
	--background: #fff;
	--background-highlight: #eee;
	--text: #000;
	--text-dim: #666;
}

@media (prefers-color-scheme: dark) {
	:root {
		--link: #0b0;
		--link-hover: #0f0;
		--background: #212529;
		--background-highlight: #4d5053;
		--text: #dee2e6;
		--text-dim: #aaa;
	}
}

/*
 * General
 */

body {
	font: 14pt Calibri, Verdana, Geneva, sans-serif;
	margin: 0;
	padding: 20px;
	color: var(--text);
	background-color: var(--background);
}

.today {
	background-color: var(--background-highlight);
}

footer {
	display: grid;
	grid-template-columns: repeat(auto-fit, 25vw);
	border: 2px none var(--background-highlight);
	border-top-style: solid;
	padding-top: 1rem;	
}

/*
 * Links
 */

a {
	color: var(--link);
	text-decoration: underline;
}

a:hover {
	color: var(--link-hover);
	text-decoration: none;
}

/*
 * Tables
 */

table {
	width:100%;
	border-collapse: collapse;
  table-layout: fixed;
  overflow-wrap: break-word;
	border: 1px solid var(--text);
}

table td {
	padding: 3px 6px;
	border: 1px solid var(--text);
}

table th {
	padding: 3px 6px;
	border: 1px solid var(--text);
}

table.lectures {

	& th:nth-of-type(1) {
		width: 8rem;
	}

	& tr {
		& td:nth-of-type(1) {
			text-align: end;
		}
	}
}
