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

html {-webkit-text-size-adjust: 100%}

body {
	/*font: normal 13px verdana, sans-serif;*/
	font: normal 14px -apple-system, BlinkMacSystemFont, Roboto, helvetica, arial, sans-serif;
	margin: 0;
	margin-bottom: 30px;
}


header,
nav,
main {
	width: 100%;
	max-width: 600px;
	margin: 0 auto;
}


header img {width: 100%}


nav {line-height: 30px}
nav ul {
	list-style: none;
}
nav a {
	color: #888;
	text-decoration: none;
	padding: 5px 10px;
}
nav a:hover {color: black}
nav a.active {color: #ccc}


main {padding: 0 5px}

main h1 {
	text-align: center;
	margin-top: 30px;
	margin-bottom: 5px;
	color: #666;
	font-size: 24px;
	font-weight: normal;
}

section {padding: 15px 0}

section div {
	border-left: 5px solid #a00;
	padding: 8px 10px 5px 10px;
	background: #eee;
	margin: 10px 0;
}

section h1 {
	font-weight: bold;
	text-align: left;
	margin-top: 30px;
	margin-bottom: 5px;
	color: #333;
	font-size: 16px;
}
section h1:first-child {margin-top: 0}
section h2 {
	margin-top: 10px;
	margin-bottom: 2px;
	color: #777;
	font-size: 14px;
}
section p {
	line-height: 1.3;
	margin-bottom: 5px;
}
section a {
	color: #933;
	text-decoration: none;
}
section ol,
section ul {margin: 8px 0 8px 20px}
section a:hover {text-decoration: underline}

section table {border-collapse: collapse; width: 100%}
section table td {
	border-bottom: 1px solid #eee;
	line-height: 1.5;
	vertical-align: top;
	padding-right: 5px;
}
section table tr:first-child td {border-top: 1px solid #eee}


footer {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	text-align: center;
	padding: 4px;
	border-top: 1px solid #ddd;
	background: #f8f8f8;
	color: #777;
	font-size: 10px;
}
footer h1 {
	margin: 0;
	line-height: 15px;
	height: 15px;
	font: inherit;
	color: #955;
	margin-bottom: 4px;
}


@media (prefers-color-scheme: dark) {
	nav li {border-color: #666}
	nav li a {color: #ccc}
	nav a.active {color: #888}
	section h1 {color: #ddd}
	section h2 {color: #aaa}
	section p {color: #bbb}
	body {background: #333; color: #ccc; border-color: #666}
	footer {background: #222; border-color: #444}
	footer p {color: #777}
	section div {background: #555}
	section div h1 {color: white}
	section div p {color: #eee}
	section table td,
	section table tr:first-child td {border-color: #444}
}

@media only screen and (min-width: 601px) {
	nav h1 {display: none}
	nav ul {
		text-align: center;
		word-spacing: -4px;
	}
	nav li {
		display: inline;
		border-right: 1px solid #eee;
		word-spacing: 0;
	}
	nav li:last-child {border-right: 0}
	nav a:hover {border-bottom: 3px solid #ddd}
}

@media only screen and (max-width: 600px) {
	section p {font-size: 16px}
	nav a {
		color: #333;
		display: block;
	}
	footer {font-size: 12px}
	
	body {margin-top: 90px}
	header {
		position: fixed;
		top: 0;
		overflow: hidden;
		max-height: 75px;
	}
	nav {
		position: fixed;
		top: 0;
	}
	nav h1 {
		font-size: 30px;
		line-height: 74px;
		width: 40px;
		padding: 0 10px;
		color: white;
	}
	nav ul {
		border: 1px solid #ddd;
		background: white;
		transition: transform 300ms, opacity 300ms;
		transform: translate(0, 0);
		opacity: 1;
	}
	nav.hide {width: auto}
	nav.hide ul {transform: translate(-100%, 0); opacity: 0}
	nav li {
		display: block;
		text-align: left;
		font-size: 20px;
		line-height: 40px;
		border-bottom: 1px solid #eee;
	}
}

@media (prefers-color-scheme: dark) and (max-width: 601px) {
	nav ul {background-color: #222; border-color: #444}
	nav li {border-color: #444;}
}

.schema section h1 {background: #eee; margin: 0; padding: 2px 3px; color: #555}
.schema td:first-child {width: 1.8em; text-align: right}
.schema td:nth-child(2) {font-style: italic; width: 60px; color: #a55}
.schema tr.act td {font-weight: bold}
.schema tr.act td:nth-child(2) {font-weight: normal}

.schema img {display: none}
