html {
	overflow-x: scroll;
	scroll-padding-top: 1rem;
}

body {
	font: 1.05rem/1.5 system-ui, sans-serif;
	max-width: 645px;
	margin: 0 auto;
	padding: 1.5rem;
}

@media only screen and (max-width: 645px) {
	body {
		font: 1rem/1.4 system-ui, sans-serif;
	}
}

main {
	margin: 2rem 0;
	margin-bottom: 3rem;
}

header {
	display: flex;
	justify-content: space-between;
}

nav a {
	margin-left: 0.5rem;
}

nav a.active {
	font-weight: bold;
}

footer p {
	margin: 0;
}

code,kbd {
	font-family: ui-monospace, monospace;
	font-size: 90%;
	padding: 0 1px;
}

kbd {
	margin: 0 0.07rem;
	padding: 0.07rem 0.35rem;
	border: 0.07rem solid;
	border-bottom: 0.18rem solid;
	border-radius: 0.21rem;
}

kbd:hover {
	border-bottom: 0.07rem solid;
	vertical-align: -0.1rem;
	cursor: text;
}

pre {
	font-family: ui-monospace, monospace;
	position: relative;
	margin: 0;
}

pre::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 95%;
	right: 0;
	background-image: linear-gradient(to right, transparent, white);
}

pre code {
	display: block;
	line-height: 1.4;
	padding: 0.75rem 0;
	overflow: auto;
	padding-inline-end: 1.5rem;
}

a {
	color: #00f;
}

header a:hover,
a.footnote {
	text-decoration: underline;
}

a:hover,
header a,
a.footnote {
	text-decoration: none;
}

h1,h2,h3 {
	margin-bottom: 1rem;
	line-height: 1.2;
}

h2 {
	margin-top: 1.75rem
}

ol, ul {
	padding-left: 1.5rem;
}

sup {
	line-height: 1;
}

small {
	font-size: 90%
}

abbr {
	text-decoration: underline dotted;
}

figure {
	margin: 0
}

figcaption {
	text-align: center;
}

img {
	width: 100%
}

blockquote {
	padding-top: 0.1rem;
	padding-bottom: 0.1rem;
}

details {
	margin: 1rem 0;
}

summary {
	cursor: pointer;
}

.highlight .gp,
.highlight .c,
.highlight .c1 {
	opacity: 0.6
}

.highlight .k,
.highlight .b {
	font-weight: bold;
}

.flex {
	display: flex
}

.flex > * {
	flex: 1
}

.rc-scout__logo {
	float: right;
}

.rc-scout__logo i {
    display: inline-block;
    padding: 0;
    border: 0;
    margin: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: no-repeat center url('data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2012%2015%22%3E%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%2212%22%20height%3D%2210%22%20fill%3D%22%23000%22%3E%3C%2Frect%3E%3Crect%20x%3D%221%22%20y%3D%221%22%20width%3D%2210%22%20height%3D%228%22%20fill%3D%22%23fff%22%3E%3C%2Frect%3E%3Crect%20x%3D%222%22%20y%3D%222%22%20width%3D%228%22%20height%3D%226%22%20fill%3D%22%23000%22%3E%3C%2Frect%3E%3Crect%20x%3D%222%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%233dc06c%22%3E%3C%2Frect%3E%3Crect%20x%3D%224%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%233dc06c%22%3E%3C%2Frect%3E%3Crect%20x%3D%226%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%233dc06c%22%3E%3C%2Frect%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%222%22%20height%3D%221%22%20fill%3D%22%233dc06c%22%3E%3C%2Frect%3E%3Crect%20x%3D%226%22%20y%3D%225%22%20width%3D%222%22%20height%3D%221%22%20fill%3D%22%233dc06c%22%3E%3C%2Frect%3E%3Crect%20x%3D%224%22%20y%3D%229%22%20width%3D%224%22%20height%3D%223%22%20fill%3D%22%23000%22%3E%3C%2Frect%3E%3Crect%20x%3D%221%22%20y%3D%2211%22%20width%3D%2210%22%20height%3D%224%22%20fill%3D%22%23000%22%3E%3C%2Frect%3E%3Crect%20x%3D%220%22%20y%3D%2212%22%20width%3D%2212%22%20height%3D%223%22%20fill%3D%22%23000%22%3E%3C%2Frect%3E%3Crect%20x%3D%222%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%3E%3C%2Frect%3E%3Crect%20x%3D%223%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%3E%3C%2Frect%3E%3Crect%20x%3D%224%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%3E%3C%2Frect%3E%3Crect%20x%3D%225%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%3E%3C%2Frect%3E%3Crect%20x%3D%226%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%3E%3C%2Frect%3E%3Crect%20x%3D%227%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%3E%3C%2Frect%3E%3Crect%20x%3D%228%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%3E%3C%2Frect%3E%3Crect%20x%3D%229%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23fff%22%3E%3C%2Frect%3E%3C%2Fsvg%3E');
}

@media(prefers-color-scheme: dark) {
	body {
		background: #000;
		color: #eee;
	}
	h1,h2,h3,b,strong,a,a:hover {
		color: #fff;
	}
	pre::after {
		background-image: linear-gradient(to right, transparent, black);
	}
	.highlight .gp,
	.highlight .c,
	.highlight .c1 {
		opacity: 0.7
	}
}
