/******************************************************************************
 * BASE
 ******************************************************************************/

html {
	font-size: 100%;
}

body {
	font-family:
		Iowan Old Style,
		Apple Garamond,
		Palatino Linotype,
		Times New Roman,
		'Droid Serif',
		Times,
		serif;
	background: #fdfdfd;
	font-size: 16px;
	color: #222;
}

/******************************************************************************
 * TYPOGRAPHY
 ******************************************************************************/

.greendoc-typography {
	line-height: 1.6em;
}

h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

h2 {
	font-size: 1.5em;
	margin: 2em 0 0.83em;
}

h3 {
	font-size: 1.17em;
	margin: 1em 0;
}

h4 {
	font-size: 1em;
	margin: 1.33em 0;
}

h5 {
	font-size: 0.83em;
	margin: 1.67em 0;
}

h6 {
	font-size: 0.67em;
	margin: 2.33em 0;
}

a {
	color: #4da6ff;
	text-decoration: none;
}

a:focus {
	outline: thin dotted;
}

a:active,
a:hover {
	outline: 0;
	text-decoration: underline;
}

ul {
	list-style: square;
	padding: 0 0 0 20px;
	margin: 0;
}

p,
ul,
ol {
	margin: 1em 0;
}

blockquote {
	margin: 1em 40px;
}

blockquote {
	border-left: 6px solid #ccc;
	padding-left: 1em;
	margin-left: 0;
	color: #606060;
	font-style: italic;
}

hr {
	box-sizing: content-box;
	height: 0;
}

mark {
	background: #ff8;
	color: #000;
}

pre,
code,
kbd,
samp {
	font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
	font-size: 0.875em;
}

pre,
code {
	margin: 0;
	line-height: 1.5em;
	background-color: rgba(0, 0, 0, 0.04);
}

pre {
	padding: 1.5em;
	white-space: pre;
	word-wrap: break-word;
	overflow: auto;
}

code {
	padding: 0.2em;
}

pre code {
	padding: 0;
	background-color: transparent;
}

small {
	font-size: 80%;
}

/* Prevent `sub` and `sup` affecting `line-height`. */
sup,
sub {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sup {
	top: -0.5em;
}

sub {
	bottom: -0.25em;
}

details[open] {
	padding-left: 1em;
	margin-bottom: 1em;
}

details[open] > summary {
	margin-left: -1em;
}

details > summary {
	cursor: pointer;
}

/******************************************************************************
 * FIGURES
 ******************************************************************************/

figure {
	margin: 0;
}

img {
	max-width: 100%;
}

/******************************************************************************
 * TABLES
 ******************************************************************************/

table {
	display: block;
	width: 100%;
	overflow: auto;
	margin-top: 10px;
	word-break: normal;
	word-break: keep-all;
	border-collapse: collapse;
	border-spacing: 0;
}

table th {
	font-weight: bold;
}

table th,
table td {
	padding: 6px 13px;
	border: 1px solid #ddd;
}

table tr {
	background-color: #fff;
	border-top: 1px solid #ccc;
}

table tr:nth-child(2n) {
	background-color: #f8f8f8;
}

/******************************************************************************
 * CONTAINERS
 ******************************************************************************/

.container {
	max-width: 1200px;
	margin: 0;
	padding: 0 40px;
}

@media (max-width: 640px) {
	.container {
		padding: 0 20px;
	}
}

.container-main {
	padding-top: 50px;
	padding-bottom: 0;
}

.content-wrap {
	padding-left: 300px;
}

@media (max-width: 900px) {
	.content-wrap {
		padding-left: 0;
	}
}

/******************************************************************************
 * NAVIGATION
 ******************************************************************************/

.greendoc-navigation {
	position: fixed !important;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	box-sizing: border-box;
	z-index: 1;
	max-height: calc(100vh - 1rem - 40px);
	left: 0;
	top: 40px;
	bottom: 0;
	width: 300px;
	padding: 20px;
	margin: 0;
	transition: left 0.3s ease;
}

@media (max-width: 900px) {
	.greendoc-navigation {
		display: block;
		left: -305px; /* Additional 5px for box-shadow blur. */
		max-height: none;
		background: #fff;
		box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.16);
	}

	.toggle-nav .greendoc-navigation {
		left: 0;
	}
}

.greendoc-navigation.greendoc-navigation--toolbar-hide {
	max-height: calc(100vh - 1rem);
	top: 0.5rem;
}

.greendoc-navigation ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.greendoc-navigation li {
	padding: 0;
}

.greendoc-navigation a {
	display: block;
	padding-top: 2px;
	padding-bottom: 2px;
	color: #222;
	text-decoration: none;
	text-overflow: ellipsis;
	overflow: hidden;
}
.greendoc-navigation a:hover {
	text-decoration: underline;
}

.greendoc-navigation > section {
	padding: 1em 0;
	border-bottom: 1px solid #eee;
}

.greendoc-navigation > section:first-child {
	padding-top: 0;
}

.greendoc-navigation > section:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.greendoc-navigation h4,
.greendoc-navigation h5 {
	font-size: 0.8em;
	font-style: italic;
	opacity: 0.6;
}

.greendoc-navigation h4 {
	margin: 0 0 1em;
}

.greendoc-navigation h5 {
	margin-bottom: 0.2em;
}

.greendoc-navigation ul li a.active {
	text-decoration: underline;
}
.greendoc-navigation a[target='_blank']::after {
	content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==);
	margin: 0 3px 0 5px;
}

/******************************************************************************
 * PANELS
 ******************************************************************************/

.greendoc-panel {
	margin: 20px 0;
	padding: 20px;
}

.greendoc-panel:empty {
	display: none;
}

.greendoc-panel > h1,
.greendoc-panel > h2,
.greendoc-panel > h3 {
	margin: 1.5em -20px 10px -20px;
	padding: 0 20px 10px 20px;
	border-bottom: 1px solid #eee;
}

.greendoc-panel-group {
	margin: 60px 0;
}

.greendoc-panel-group > h1,
.greendoc-panel-group > h2,
.greendoc-panel-group > h3 {
	padding-left: 20px;
	padding-right: 20px;
}

/******************************************************************************
 * SIGNATURES
 ******************************************************************************/

.greendoc-signature {
	margin: 0 0 1em 0;
	padding: 10px;
	border: 1px solid #eee;
	font-family: Menlo, Monaco, Consolas, 'Courier New', monospace;
	font-size: 14px;
	overflow-x: auto;
	color: #4da6ff;
}

.greendoc-signature.greendoc-kind-icon {
	padding-left: 30px;
}
.greendoc-signature.greendoc-kind-icon:before {
	top: 10px;
	left: 10px;
}
.greendoc-panel > .greendoc-signature {
	margin-left: -20px;
	margin-right: -20px;
	border-width: 1px 0;
}
.greendoc-panel > .greendoc-signature.greendoc-kind-icon {
	padding-left: 40px;
}
.greendoc-panel > .greendoc-signature.greendoc-kind-icon:before {
	left: 20px;
}

.greendoc-signature-symbol {
	color: #808080;
	font-weight: normal;
}

.greendoc-signature-type {
	font-style: italic;
	font-weight: normal;
}

.greendoc-signatures {
	padding: 0;
	margin: 0 0 1em 0;
	border: 1px solid #eee;
}
.greendoc-signatures .greendoc-signature {
	margin: 0;
	border-width: 1px 0 0 0;
	transition: background-color 0.1s;
}
.greendoc-signatures .greendoc-signature:first-child {
	border-top-width: 0;
}
.greendoc-signatures .greendoc-signature.current {
	background-color: #eee;
}
.greendoc-signatures.active > .greendoc-signature {
	cursor: pointer;
}
.greendoc-panel > .greendoc-signatures {
	margin-top: -20px;
	margin-left: -20px;
	margin-right: -20px;
	border-width: 1px 0;
}
.greendoc-panel > .greendoc-signatures .greendoc-signature.greendoc-kind-icon {
	padding-left: 40px;
}
.greendoc-panel > .greendoc-signatures .greendoc-signature.greendoc-kind-icon:before {
	left: 20px;
}
.greendoc-panel > a.anchor + .greendoc-signatures {
	border-top-width: 0;
	margin-top: -20px;
}

.greendoc-panel > .greendoc-signature.greendoc-kind-icon,
.greendoc-panel > .greendoc-signatures .greendoc-signature.greendoc-kind-icon {
	padding-left: 20px;
}

/******************************************************************************
 * HIERARCHY, COMMENTS, DESCRIPTIONS, MEMBERS
 ******************************************************************************/

.greendoc-comment .lead p:first-child {
	margin-top: 0;
}
.greendoc-comment .lead:last-child {
	margin-bottom: 0;
}

.greendoc-hierarchy {
	list-style: square;
	padding: 0 0 0 20px;
	margin: 0;
}
.greendoc-hierarchy .target {
	font-weight: bold;
}

.greendoc-anchor {
	position: absolute;
	top: -100px;
}

.greendoc-member {
	position: relative;
}

.greendoc-member .greendoc-member {
	margin-left: 0;
}

.greendoc-member .greendoc-anchor + h3 {
	margin-top: 0;
	margin-bottom: 0;
	border-bottom: none;
}

ul.greendoc-descriptions {
	position: relative;
	overflow: hidden;
	padding: 0;
	margin-bottom: 0;
	list-style: none;
}

ul.greendoc-descriptions h4,
ul.greendoc-descriptions .greendoc-index-panel h3,
.greendoc-index-panel ul.greendoc-descriptions h3 {
	font-size: 16px;
	margin: 1em 0 0.5em 0;
}

/******************************************************************************
 * TAGS
 ******************************************************************************/

.greendoc-panel > .tags {
	margin-bottom: 1em;
}

.tags {
	list-style: none;
	margin: 0;
	padding: 0;
}
.tag {
	display: inline-block;
	padding: 0.2em 0.5em;
	background: rgba(0, 0, 0, 0.08);
	height: 14px;
	line-height: 14px;
	font-size: 0.8em;
	font-family: monospace;
	border-radius: 4px;
	margin-right: 0.2em;
}
.tag[data-gd-tag='alpha'] {
	background-color: #f28705;
	color: #fff;
}
.tag[data-gd-tag='beta'] {
	background-color: #f2cb05;
	color: #fff;
}
.tag[data-gd-tag='experimental'] {
	background-color: #267365;
	color: #fff;
}
.tag[data-gd-tag='experimental']::before {
	content: '🧪';
	display: inline-block;
	padding-right: 0.5em;
}
.tag[data-gd-tag='deprecated'] {
	background-color: #f23030;
	color: #fff;
}

/******************************************************************************
 * SOURCES
 ******************************************************************************/

.greendoc-sources {
	font-size: 14px;
	color: #808080;
	margin: 0 0 1em 0;
}
.greendoc-sources a {
	color: #808080;
	text-decoration: underline;
}
.greendoc-sources ul,
.greendoc-sources p {
	margin: 0 !important;
}
.greendoc-sources ul {
	list-style: none;
	padding: 0;
}

/******************************************************************************
 * HEADER TOOLBAR
 ******************************************************************************/

.greendoc-toolbar {
	position: fixed;
	display: flex;
	box-sizing: border-box;
	list-style: none;
	z-index: 2;
	top: 0;
	left: 0;
	width: 100%;
	height: 40px;
	color: #333;
	background: #fff;
	border-bottom: 1px solid #eee;
	transition: transform 0.3s linear;
	padding: 0 20px;
	margin: 0;
	gap: 20px;
}
.greendoc-toolbar > * {
	position: relative;
	white-space: nowrap;
	line-height: 40px;
}
.greendoc-toolbar > .flex {
	flex-grow: 1;
}
.greendoc-toolbar a {
	color: #333;
	text-decoration: none;
}
.greendoc-toolbar a.title {
	font-weight: bold;
}
.greendoc-toolbar a:hover,
.greendoc-toolbar a:focus {
	text-decoration: underline;
}

.greendoc-toolbar--hide {
	transform: translateY(-100%);
}

.greendoc-toolbar-badge img {
	vertical-align: sub;
}

.greendoc-toolbar .greendoc-toolbar-pro-btn {
	background-image: linear-gradient(to right, #177bbb 0%, #514a9d 51%, #177bbb 100%);
	background-size: 200% auto;
	transition: 0.5s;
	color: #ffffff;
	height: 28px;
	display: inline-block;
	line-height: 28px;
	border-radius: 14px;
	padding: 0 0.75em 0 0.9em;
}

.greendoc-toolbar .greendoc-toolbar-pro-btn:hover,
.greendoc-toolbar .greendoc-toolbar-pro-btn:focus {
	background-position: right center; /* reverse direction */
	text-decoration: none;
	transform: translate(-0.15rem, -0.15rem);
	box-shadow: 0.15rem 0.15rem 0 #333;
}

@media (max-width: 900px) {
	.greendoc-toolbar-pro-btn {
		display: none;
	}
}

/******************************************************************************
 * HEADER WIDGET
 ******************************************************************************/

.greendoc-widget-item {
	margin-left: -20px;
}
.greendoc-widget {
	display: none;
	background: none;
	outline: none;
	border: none;
	width: 40px;
	height: 40px;
	overflow: hidden;
	opacity: 0.8;
	transition:
		opacity 0.1s,
		background-color 0.2s;
	vertical-align: bottom;
	cursor: pointer;
}
.greendoc-widget:hover {
	opacity: 1;
}
.greendoc-widget.active {
	opacity: 1;
	background-color: #eee;
}
.greendoc-widget:before {
	content: '';
	display: inline-block;
	width: 40px;
	height: 40px;
	margin: 0;
	background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAUAAAAAoCAQAAAAlSeuiAAABp0lEQVR4Ae3aUa3jQAyF4QNhIBTCQiiEQlgIhRAGhTAQBkIgBEIgDITZZGXNjZTePiSWYqn/54dGfbAq+SiTutWXAgAAAAAAAAAAAAA8NCz1UFSD2lKDS5d3NVzZj/BVNasaLoRZRUmj2lLrVVHWMUntQ13Wj/i1pWa9lprX6xMRnH4dx6Rjsn26+v+12ms+EcB37P0r+qH+DNQGXgMFcHzbregQ78B8eQCTJk0e979ZW7PdA2O49ceDsYexKgUNoI3EKYDWL3D8miaPh/uXtl6BHqEHFQvgXau/FsCiIWAAbST2fpQRT0sl70j3z5ZiBdD7CG5WZX8kxwmgjbiP5GQA9/3O2XaxnnHi53AEE0AbRh+JQwC3/fzC4hcb6xPvS4i3QaMdwX+0utsRPEY6gm2wNhKHAG77eUi7SIcK4G4NY4GMIan2u2Cxqzncl5DUn7Q8ArjvZ8JFOsl/Ed0jyBom+BomQKSto+9PcblHMM4iuu4X0QQw5hrGQY/gUxFkjZuf4m4alXVU+1De/VhEn5CvDSB/RsBzqWgAAAAAAAAAAAAAAACAfyyYJ5nhVuwIAAAAAElFTkSuQmCC);
	background-repeat: no-repeat;
	background-position: -40px 0;
	text-indent: -1024px;
	vertical-align: bottom;
}

@media (max-width: 900px) {
	.greendoc-widget {
		display: inline-block;
	}
}

@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) {
	.greendoc-widget:before {
		background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAoAAAABQCAMAAAC+sjQXAAAAM1BMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACjBUbJAAAAEXRSTlMA3/+/UCBw7xCPYIBAMM+vn1qYQ7QAAALCSURBVHgB7MGBAAAAAICg/akXqQIAAAAAAAAAAAAAAAAAAJids9mdE4bhoDNZCITP93/aSmhV/9uwPWyi8jtkblws2IxsYpz9LwSAaJW8AreE16PxOsMYE6Q4DiYKF7X+8ZHXc/E608xv5snEyIuZrVwMZjbnujR6T3gsXmcLOIRNzD+Ig2UuVtt2+NbAiX/wVLzOlviD9L2BOfGBlL/3D1I+uDjGBJArBPxU3x+K15kCQFo2s21JAOHrKpz4SPrWv4IKA+uFaR6vMwMcb+emA2DWEfDglrkLqEBOKVslA8Dx14oPMiV4CtywWxdQgAwkq2QE0uTXUwJGk2G9s3mTFNBzAkC7HKPsX72AEVjMnAWIpsPCRRjXdQxcjCYpoOcEgHY5Rtk/slWSgM3M2aSeeVgjAOeVpKcdgGMdNAXMuIAqOcZzqF8L+WcAsi8wkTeheCWMegL6mgCorHHyEJ5TVfxrLWDrTUjZdhnhjYqAnlN8TaoELOLVC0gucmoz/3RKcPs2jAs4+J5ET8AEZF+TSgGLeC1V8YuGQQU2IV1Asq9JCwE9XitZVPxr34bpJRj8PqsFLOK108W9aVrWZRrR7Sm2HL4JCToCujHZ6gUs4jUz0P1TEvD+U5wMa363YeziBODIq1YbJrsv9QKW8Ry1nNp+GAHvuingRTfmYcjBf0QpAS37bdUL6PFKtHJq63EsZ5cxcKMkDVIClu1dAK1PcJ5TFQ0M9wZKDCPs3BD7MIJGTs3WfiTfDVQYx5q5ZekCauTU3P5Q0ukGCgh49oFURdobWBY9N/CxEuwGjpGLuPhTdwH1x7HqDDxNgRP2zQ8lraFyF/yJ9vH6QGqtgSbBOU8/j2VORz+Wqfle2d5Ae4R+ML0z7Y+W4P7XHN3AU+tzyK/24EAGAAAAYJC/9T2+CgAAAAAAAAAAAAAAAAAAAADgJpfzHyIKFFBKAAAAAElFTkSuQmCC);
		background-size: 320px 40px;
	}
}

/******************************************************************************
 * HIGHLIGHT.JS
 * Based on C# theme by Jason Diamond <jason@diamond.name>
 ******************************************************************************/

.hljs {
	display: inline-block;
	padding: 0.5em;
	background: white;
	color: black;
}

.hljs-comment,
.hljs-annotation,
.hljs-template_comment,
.hljs-chunk {
	color: #008000;
}

.hljs-keyword,
.hljs-id,
.hljs-built_in,
.hljs-winutils,
.bash .hljs-variable,
.hljs-request,
.hljs-status,
.xml .hljs-tag,
.xml .hljs-tag .hljs-value {
	color: #00f;
}

.hljs-string,
.hljs-title,
.hljs-parent,
.hljs-tag .hljs-value,
.hljs-rules .hljs-value,
.hljs-template_tag,
.hljs-addition,
.hljs-flow,
.hljs-stream,
.hljs-date {
	color: #a31515;
}

.hljs-decorator,
.hljs-filter .hljs-argument,
.hljs-localvars,
.hljs-array,
.hljs-attr_selector,
.hljs-pseudo,
.hljs-pi,
.hljs-doctype,
.hljs-deletion,
.hljs-envvar,
.hljs-shebang,
.hljs-preprocessor,
.hljs-pragma,
.userType,
.hljs-prompt {
	color: #2b91af;
}

.hljs-phpdoc,
.hljs-javadoc,
.hljs-xmlDocTag {
	color: #808080;
}

.xml .hljs-attribute {
	color: #f00;
}

/******************************************************************************
 * FOOTER
 ******************************************************************************/

.greendoc-generator {
	text-align: center;
	padding: 0;
}

.greendoc-generator img {
	max-width: 40%;
}

@media (max-width: 900px) {
	.greendoc-generator img {
		max-width: 60%;
	}
}
