@charset "utf-8";

/*! fonts.css */

@font-face
{
	font-family: 'Roobert';
	src: url('/fonts/roobert/Roobert-Regular.woff2') format('woff2'),
		url('/fonts/roobert/Roobert-Regular.woff') format('woff'),
		url('/fonts/roobert/Roobert-Regular.eot') format('embedded-opentype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face
{
	font-family: 'Roobert';
	src: url('/fonts/roobert/Roobert-SemiBold.woff2') format('woff2'),
		url('/fonts/roobert/Roobert-SemiBold.woff') format('woff'),
		url('/fonts/roobert/Roobert-SemiBold.eot') format('embedded-opentype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face
{
	font-family: 'Roobert';
	src: url('/fonts/roobert/Roobert-Heavy.woff2') format('woff2'),
		url('/fonts/roobert/Roobert-Heavy.woff') format('woff'),
		url('/fonts/roobert/Roobert-Heavy.eot') format('embedded-opentype');
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

/* Shim for navbar colors */
:root
{
	--text: var(--foreground);
	--page-bg: var(--boxBackground);
	--psd-lightest-gray: var(--lightest-gray);
	--link: var(--interactive);
}

#navbar.scrolled
{
		border-bottom: 0.1rem solid var(--text);
}

body
{
	font-family: 'Roobert', sans-serif;
}

#navbar a
{
	color: inherit;
}

.anchorjs-link
{
	margin-left: -4rem !important;
}

:target .anchorjs-link
{
	margin-left: -5rem !important;
}

@media (min-width: 670px)
{
	.anchorjs-link
	{
		margin-left: -2rem !important;
	}

	:target .anchorjs-link
	{
		margin-left: -3.5rem !important;
	}
}

#toc
{
	z-index: 100;
	padding-bottom: 4em;
	background: var(--pageBackground);
}

@media (min-width: 1300px)
{
	#toc
	{
		left: calc(50% - 65rem);
	}
}

main
{
	max-width: 130rem;
	margin: 0 auto;
}

#docSwitcher
{
	position: fixed;
	bottom: 0;
	right: 0;
	font-size: 0.75em;
	display: grid;
	align-items: center;
	width: 100vw;
	grid-template-columns: 1fr auto;
	z-index: 200;
	opacity: 0.95;
	pointer-events: none;
}

#docSwitcher form
{
	grid-column: 2;
	grid-row: 1;
}

#docSwitcher label
{
	text-transform: uppercase;
	font-size: 1em;
	font-weight: 200;
}

#docSwitcher select
{
	-webkit-appearance: none;
	border: 0;
	padding: 0;
	margin: 0.5em;
	background: inherit;
	font: inherit;
	border: 0.1rem solid var(--purple);
	border-radius: 0.25em;
	background: var(--muted-purple);
	color: var(--white);
	padding: 0.25em 1em;
	pointer-events: all;
	font-weight: 400;
}

#docSwitcher #deprecationWarning
{
	grid-column: 1;
	grid-row: 1;
	place-self: stretch;
	display: flex;
	justify-content: center;
	align-items: center;
	color: var(--white);
	opacity: 0;
}

#docSwitcher.deprecated
{
	background-color: var(--negative);
}

#docSwitcher.deprecated #deprecationWarning
{
	opacity: 1;
}

#toc a.active
{
	font-weight: 700;
	border-left: 0.25em solid var(--interactive);
	padding-left: 0.35em;
}

/* ---------------------------- */
/*!---- RESPONSIVE SCALING ---- */
/* ---------------------------- */

html
{
	font-size: 2.4px;
}

body
{
	font-size: 3rem;
}

#toc
{
	top: 3em;
	padding-top: 3em;
}

#navbar
{
		font-size: 1.4em;
}

body
{
		padding-top: calc(1.4em * 2.125);
}

/* Start scaling */
@media screen and (min-width: 240px)
{
	html
	{
		font-size: 1vw;
	}

	body
	{
		font-size: 4rem;
		line-height: 1.3;
	}

	main
	{
		font-size: 3.2rem;
	}
	
}

@media screen and (min-width: 670px)
{
	body
	{
		font-size: 2.4rem;
	}

	main
	{
		font-size: 2rem;
	}
	
	#navbar
	{
			font-size: 1.2em;
	}
	
	body
	{
			padding-top: calc(1.2em * 2.125);
	}
	
	#toc
	{
		height: calc(100vh - 3em);
	}

}

/* Stop scaling */
@media screen and (min-width: 1000px)
{
	html
	{
		font-size: 10px;
	}

	main
	{
		font-size: 1.8rem;
	}
	
	#navbar
	{
			font-size: 1em;
	}
	
	body
	{
			padding-top: calc(1em * 2.125);
	}
}
