/* rii */

:root {
	color-scheme: light dark;
}
html {
	margin: 0;
}
body {
	font-family: "SourceSans3", sans-serif;
	font-size: 19.2px;  /* 1.2rem */
	line-height: 1.5;
	margin: 2em;
}

code, pre, tt {
	font-family: "SourceCodePro", monospace, sans-serif;
}

.riiblue {
	color: #0080ff;
}

a {
	color: #0080ff;
	text-decoration: none;
}
.link-ext:after,
a[href^="//"]:after,
a[href^="http://"]:after,
a[href^="https://"]:after,
a[href^="gopher://"]:after,
a[href^="ftp://"]:after {
	content: "\a0\2197";
}

abbr {
	border: 0 none;
	border-bottom: 1px dotted #ddd;
	cursor: help;
	text-decoration: none;
}
a abbr {
	cursor: inherit;
}

blockquote {
	font-family: "SourceSerif4", serif;
	padding: .5em 0;
	text-align: justify;
}
blockquote.big-text {
	font-size: 150%;
}
blockquote.large-text {
	font-size: 200%;
}
blockquote p.source {
	font-size: .75em;
	font-style: italic;
	text-align: right;
}

hr {
	background-color: #bbb;
	border: 0 none;
	height: 1px;
}
hr.narrow {
	margin-left: auto;
	margin-right: auto;
	width: 67%;
}
li {
	padding-left: .5em;
	*padding-left: 1em;
}

mark {
	-webkit-border-radius: .25em;
	-khtml-border-radius: .25em;
	-moz-border-radius: .25em;
	border-radius: .25em;
	padding: .1em .25em;
}

.button {
	background-color: #0080ff;
	-webkit-border-radius: .5em;
	-khtml-border-radius: .5em;
	-moz-border-radius: .5em;
	border-radius: .5em;
	color: white;
	display: inline-block;
	*display: inline;
	padding: .5em 1em;
	text-align: center;
	-webkit-transition: background-color .25s, box-shadow .25s, -webkit-box-shadow .25s, -moz-box-shadow .25s;
	-o-transition: background-color .25s, box-shadow .25s, -webkit-box-shadow .25s, -moz-box-shadow .25s;
	transition: background-color .25s, box-shadow .25s, -webkit-box-shadow .25s, -moz-box-shadow .25s;
}
.button:hover {
	background-color: #035eba;
	-webkit-box-shadow: 0px 2px 10px #ddd;
	-moz-box-shadow: 0px 2px 10px #ddd;
	box-shadow: 0px 2px 10px #ddd;
	-webkit-transition: background-color .25s, box-shadow .25s, -webkit-box-shadow .25s, -moz-box-shadow .25s;
	-o-transition: background-color .25s, box-shadow .25s, -webkit-box-shadow .25s, -moz-box-shadow .25s;
	transition: background-color .25s, box-shadow .25s, -webkit-box-shadow .25s, -moz-box-shadow .25s;
}
.button:active {
	background-color: #035eba;
	box-shadow: inset 0px 2px 5px #00203f;
}

.pull-left {
	float: left;
}
.pull-right {
	float: right;
}

a.page-link {
	margin-left: 5em;
}
a.page-link.margin {
	float: right;
}

table {
	border-collapse: collapse;
}
table th,
table td {
	padding: .2em .5em;
}
table.alternate-rows tbody tr:nth-of-type(even) {
	background-color: #f0f0ff;
}
table thead tr {
	border-bottom: 2px solid #0080ff;
}
table th {
	font-weight: bold;
}

fieldset {
	border-radius: 8px;
	border-style: #ccc;
	border-style: solid;
	margin-bottom: 1em;
	margin-top: 1em;
}


@media (max-width: 799px) {
	body {
		margin: 1em;
	}
}

.section {
	clear: both;
	margin: 3em 0;
}

.note {
	background-color: #efefef;
	-webkit-border-radius: .5em;
	-khtml-border-radius: .5em;
	-moz-border-radius: .5em;
	border-radius: .5em;
	padding: 1em;
	margin: 2em 0;
}
.error.note {
	background-color: #ecc;
	border-color: red;
}
.warning.note {
	background-color: #eec;
	border-color: orange;
}
.success.note {
	background-color: #cec;
	border-color: green;
}

@media (prefers-color-scheme: dark) {
	body {
		background-color: black;
		color: white;
	}

	hr {
		background-color: #555;
	}

	.button {
		color: black;
	}
	.button:hover {
		background-color: #4ca5ff;
		-webkit-box-shadow: 0px 2px 10px #444;
		-moz-box-shadow: 0px 2px 10px #444;
		box-shadow: 0px 2px 10px #444;
	}

	fieldset {
		border-color: #444;
	}

	.note {
		background-color: #222;
	}
	.error.note {
		color: black;
		background-color: #e88;
	}
	.warning.note {
		color: black;
		background-color: #ed6;
	}
	.success.note {
		color: black;
		background-color: #6d6;
	}
}

@media (prefers-reduced-motion) {
	* {
		transition: none !important;
	}
}
