@charset "utf-8";
@import url("/css/colors.css");
@import url("/css/fonts.css");

*
{
	-webkit-box-sizing: border-box;
}

:target
{
	scroll-margin: 3em 0 0 0;
	position: relative;
}

html
{
	font-size: 11px;
	padding: 2em;
	box-sizing: border-box;
}

body
{
	font-family: "Hellix", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
	font-size: 1.6rem;
	line-height: 1.2em;
	max-width: 1024px;
	margin: 0 auto;
}

h1
{
	font-weight: 800;
	font-size: 4rem;
	line-height: 1.1em;
	letter-spacing: -0.0125em;
	margin: 0.5em auto;
}

table
{
	border-radius: 10px;
	border-collapse: collapse;
	width: 100%;
	margin: 2em auto;
}

thead
{
	border-bottom-width: 3px;
	border-bottom-style: double;
}

th
{
	font-weight: 400;
	text-transform: uppercase;
	padding: 0.5em;
	border: 0;
	text-align: left;
}

th.col-method
{
	text-align: center;
}

tbody
{
	border-bottom-width: 1px;
	border-bottom-style: solid;
}

table.api-toc tr:hover
{
	cursor: pointer;
}

table.api-toc
{
}

td
{
	padding: 0.5em;
}

td.col-method
{
	text-align: center
}

li
{
	margin: 0.25em 0;
}

pre,
code
{
	font-family: "SFMono-Regular", "Consolas", "Liberation Mono", Menlo, "Ubuntu Mono", "DejaVu Sans Mono", "Courier New", monospace;
	font-weight: 400;
	font-size: 0.85em;
}

code
{
	border-radius: 4px;
	border-width: 1px;
	border-style: solid;
	padding: 0 0.25em;
}

pre>code
{
	color: inherit;
	border: none;
	padding: none;
}

td.param
{
	background-color: transparent;
	border-radius: none;
	border: 0;
	text-align: left;
}

td.optional
{
	font-weight: 400;
	text-transform: uppercase;
}

pre
{
	display: block;
	position: relative;
	padding: 1em;
	border-style: solid;
	border-width: 1px;
	border-radius: 8px;
	overflow: auto;
}

blockquote
{
	margin: 0.8rem 3.2rem 2.4rem 1.6rem;
	font-size: .85em;
	border: 1px solid var(--base03);
	border-left-width: 8px;
	border-left-style: solid;
	padding: 0.8rem 1.6rem 0.8rem 1.6rem;
	display: inline-block;
	border-radius: 0.4rem;
	border-left-color: var(--base12);
	background-color: var(--base02);
	color: var(--base07);
}

blockquote p
{
	padding: 0;
	margin: auto;
}

h2
{
	font-size: 2.4em;
	line-height: 1.3em;
	font-weight: 300;
	margin: 1.5em 0 0.5em 0;
	letter-spacing: -0.0145em;

}

h3
{
	font-size: 1.8em;
	line-height: 1.3em;
	font-weight: 500;
	margin: 2em 0 0.5em 0;
}

h4
{
	font-size: 1.6em;
	font-weight: 300;
	line-height: 1.3em;
	margin: 2em 0 0.5em 0;
}

h5
{
	font-size: 1.2em;
	font-weight: 700;
	line-height: 1.2em;
	margin: 2em 0 0.5em 0;
}

h6
{
	font-size: 1.2em;
	font-weight: 300;
	line-height: 1.2em;
	margin: 2em 0 0.5em 0;
}

:target
{
	animation-name: glow;
	animation-duration: 2s;
	animation-iteration-count: infinite;
	animation-timing-function: ease-in;
}

@keyframes glow
{
	0% { filter: brightness(0.75); }
	50% { filter: brightness(1.25); }
	100% { filter: brightness(0.75); }
}

dt
{
	text-transform: uppercase;
	margin: 2em 0 1rem 0;
}

dt.result
{
	margin-bottom: 0;
}

dd
{
	margin: 0;
}

hr
{
	border: 0;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	width: 80%;
	margin: 2em auto;
}

header.pageHeader
{
	background-image: url("/images/icon_nova.png");
	background-repeat: no-repeat;
	background-position: 0% 1em;
	background-size: 5.6rem;
	padding-left: 6.4rem;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	padding-bottom: 0.5em;
}

a.siteTitle
{
	display: inline-block;
	text-decoration: none;
	font-size: 6.4rem;
	line-height: 1em;
	letter-spacing: -0.0125em;
	text-transform: lowercase;
	font-weight: 800;
}

.breadcrumb-nav
{
	font-size: 0.85em;
	line-height: 1em;
	margin: 0.5em auto;

}

.breadcrumb
{
	font-weight: 400;
}


.breadcrumb a
{
	text-decoration: none;
}

.breadcrumb a:hover
{
	text-decoration: underline;
}


.breadcrumb::after
{
	content: " > ";
}

.breadcrumb[data-here]::after
{
	content: "";
}

p
{
	line-height: 1.5em;
}

input#search
{
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	border: 0.045em solid rgba(0,0,0,0.15);
	border-radius: 12px;
	padding: 0.5em 0.5em 0.5em 1.65em;
	background-image: url("/images/search.svg");
	background-repeat: no-repeat;
	background-position: 0.5em 52.5%;
	background-size: 1em;
	width: 80%;
	font-family: "Hellix";

	font-weight: 400;
	transition: background-color 200ms linear;
	font-size: 1.3em;
	line-height: 1em;
	margin: 1em 0;
	display: block;
}

#search-results
{
	padding: 1em 2em;
	border-radius: 12px;
}

#search-results h2
{
	margin: 0.5em 0;
}

ul.section-list,
ul.article-list
{
	list-style: none;
	padding-left: 0;
	margin-bottom: 1em;
	line-height: 1.3;
}

li>ul.section-list,
ul.article-list
{
	padding-left: 1.7em;
	/* list-style: disc; */
}

li.section>div.title>a
{
	font-size: 1.2em;
	font-weight: 800;
	line-height: 1.6em;
}

li.page>div.title>a
{
	font-size: 1em;
	line-height: 1.4em;
}

li.endpoints ul.article-list li.page a:before
{
	content: "/";
}

li.page>.desc,
li.section>.desc {
	list-style: none;
	margin-top: 0.15em;
	margin-bottom: 0.85em;
	font-size: 0.85em;
	line-height: 1.1em;
}

.lastUpdate
{
	font-style: italic;
	padding-right: 1em;
}

footer
{
	margin: 2em auto;
	border-top-width: 1px;
	border-top-style: solid;
	display: flex;
	justify-content: space-between;
}

main
{
	grid-template-columns: auto auto;
}

div.mainContent
{
	grid-column: 1 / span 2;
}

nav#TableOfContents
{
	font-size: 0.9em;
	background-color: var(--base01);
	grid-column: 1 / span 2;
}

nav#TableOfContents>ul
{
	padding-left: 0;
}

nav#TableOfContents ul
{
	padding-left: 1.5em;
}

nav.top
{
	position: fixed;
	width: 100%;
	max-width: 100vw;
	top: 0;
	right: 0;
	left: 0;
	z-index: 10;
	transition-property: background-color;
	transition-timing-function: ease-in-out;
	transition-duration: 450ms;
}

nav.top a
{
	text-decoration: none;
}

/* Rainbow divider after navbar */
nav.top:after
{
	position: relative;
	content: "";
	width: 100%;
	height: 0.1em;
	display: block;
	background-image: -webkit-linear-gradient(0deg, var(--base09), var(--base0F), var(--base15), var(--base0E), var(--base0D));
	opacity: 0;
	transition-property: opacity;
	transition-timing-function: ease-in-out;
	transition-duration: 450ms;
}

nav.top.scrolled
{
	background-color: #080f24;
}

nav.top.scrolled:after
{
	opacity: 1;
}

body.reduce-motion nav.top,
body.reduce-motion nav.top:after
 {
	 transition-property: none;
 }

@media screen and (prefers-reduced-motion)
{
	nav.top,
	nav.top:after
	{
		transition-property: none;
	}
}

nav.top ul
{
	display: flex;
	justify-content: space-between;
	align-content: center;
	list-style: none;
	padding: 0.5em 0em;
	margin: 0;
}

nav.top li
{
	margin: 0 0.15em;
	padding: 0;
	align-self: center;
	cursor: pointer;
}

nav.top li a
{
	display: block;
	position: relative;
	z-index: 10;
	color: var(--base05);
	font-size: 0.6em;
	letter-spacing: -0.035em;
	padding: 0.375em 0.5em 0.5em 1.75em;
	line-height: 1;
	background-repeat: no-repeat;
	background-size: 1em;
	background-position: 0.5em 50%;
	border-radius: 1em;
}

nav.top li#help a { background-image: url("/images/top-nav-help.svg"); }
nav.top li#extensions a { background-image: url("/images/top-nav-extensions.svg"); }
nav.top li#future a { background-image: url("/images/top-nav-future.svg"); }
nav.top li#about a { background-image: url("/images/top-nav-future.svg"); }
nav.top li#api a { background-image: url("/images/top-nav-api.svg"); }

nav.top li#api {margin-left: -0.25em;}

nav.top li#buy a
{
	color: var(--base01);
	background-color: var(--base0B);
	background-image: url("/images/top-nav-buy.svg");
}

nav.top li#download
{
	position: absolute;
	left: 0.15em;
}

#home nav.top li#download
{
	opacity: 0;
	pointer-events: none;
	transition-property: opacity;
	transition-timing-function: ease-in-out;
	transition-duration: 450ms;
	z-index: -1;
	visibility: hidden;
}

#home nav.top.scrolled li#download
{
	opacity: 1;
	pointer-events: all;
	z-index: unset;
	visibility: visible;
}

nav.top li#download a,
body#notfound main a
{
	color: var(--base07);
	background-color: var(--base0D);
	font-weight: 700;
	padding: 0.325em 0.75em 0.5em 0.75em;
}

nav.top li#download a:hover
{
	text-decoration: none;
}


nav.top li a:hover
{
	text-decoration: underline;
}

/* Start auto-resizing */
@media screen and (min-width: 240px)
{
	nav.top, nav.top.scrolled { font-size: 4.3vw; }
	header { margin-top: 4vw; }
	nav.top ul { justify-content: center; }
	nav.top li#download,
	nav.top.scrolled li#download { position: static; opacity: 1;}
}

@media screen and (min-width: 740px)
{
	main
	{
		display: grid;
		grid-template-columns: auto 1fr 1fr;
	}

	div.mainContent
	{
		grid-column: 1 / span 3
	}

	nav#TableOfContents+div.mainContent
	{
		border-left: solid 0.1rem var(--base03);
		padding-left: 2em;
		grid-column: 2 / span 3;
	}

	nav#TableOfContents
	{
		min-width: 20ch;
		max-width: 40ch;
		align-self: start;
		position: sticky;
		top: 4em;
		max-height: calc(100vh - 4em);
		overflow: auto;
		padding-right: 2em;
		margin-right: 0.25em;
		grid-column: 1 / span 1;
	}
}

/* Start auto-resizing */
@media screen and (min-width: 740px)
{
	header { margin-top: 6rem; }

	nav.top ul { justify-content: flex-end; }

	nav.top li#download { position: absolute; }
	nav.top, nav.top.scrolled { font-size: 3rem; }
	nav.top.scrolled li#download { position: absolute; }
}
