.example {
	display: grid;
	grid-template-columns: minmax(min-content, 40em) 1fr;
}
	.example h2 {
		font-size: .9em;
		font-weight: normal;
		margin-bottom: 0;
		border: 1px solid #000;
		border-bottom: 0;
		display: inline-block;
		padding: .25em 1em;
	}
	.example:focus-within,
	.example :focus {
		outline: none;
	}
	.example .code > pre {
		background-color: #333;
		line-height: 1.4;
		padding: 1em;
		margin: 0;
		display: block;
	}
	.example .code > pre,
	.example .code > code {
		white-space: wrap;
		overflow: auto;
		display: block;
		outline: none;
	}
	.example .preview > iframe {
		border: 1px solid #ccc;
		width: 100%;
		height: calc(100% - 3.25em);
	}

body {
	padding: 1em;
	font-family: system-ui, sans-serif;
	line-height: 1.4;
}
	h1 {
		font-size: 3em;
		font-weight: normal;
	}
	h2 {
		font-size: 1.75em;
		margin: 1.5em 0 .5em;
	}

.pre-head {
	font-weight: normal;
	font-size: 1rem;
	margin-bottom: 0.25em;
}
.all-examples {
	position: absolute;
	right: 1em;
	top: 1em;
}

.examples {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(30em, 1fr));
	gap: 2em;
}
	.example-container {
		background: #eee;
		padding: 1em;
	}
	.example-container h2 {
		font-weight: normal;
		margin-top: 0;
	}
	.example-container h3 {
		font-weight: normal;
		font-size: 1.1em;
	}

baseline-status {
	margin-bottom: 1em;
}

/**
 * okaidia theme for JavaScript, CSS and HTML
 * Loosely based on Monokai textmate theme by http://www.monokai.nl/
 * @author ocodia
 */

code[class*="language-"],
pre[class*="language-"] {
	color: #f8f8f2;
	background: none;
	text-shadow: 0 1px rgba(0, 0, 0, 0.3);
	font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
	font-size: 1em;
	text-align: left;
	white-space: pre;
	word-spacing: normal;
	word-break: normal;
	word-wrap: normal;
	line-height: 1.5;

	-moz-tab-size: 4;
	-o-tab-size: 4;
	tab-size: 4;

	-webkit-hyphens: none;
	-moz-hyphens: none;
	-ms-hyphens: none;
	hyphens: none;
}

/* Code blocks */
pre[class*="language-"] {
	padding: 1em;
	margin: .5em 0;
	overflow: auto;
	border-radius: 0.3em;
}

:not(pre) > code[class*="language-"],
pre[class*="language-"] {
	background: #272822;
}

/* Inline code */
:not(pre) > code[class*="language-"] {
	padding: .1em;
	border-radius: .3em;
	white-space: normal;
}

.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
	color: slategray;
}

.token.punctuation {
	color: #f8f8f2;
}

.token.namespace {
	opacity: .7;
}

.token.property,
.token.tag,
.token.constant,
.token.symbol,
.token.deleted {
	color: #f92672;
}

.token.boolean,
.token.number {
	color: #ae81ff;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
	color: #a6e22e;
}

.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string,
.token.variable {
	color: #f8f8f2;
}

.token.atrule,
.token.attr-value,
.token.function,
.token.class-name {
	color: #e6db74;
}

.token.keyword {
	color: #66d9ef;
}

.token.regex,
.token.important {
	color: #fd971f;
}

.token.important,
.token.bold {
	font-weight: bold;
}
.token.italic {
	font-style: italic;
}

.token.entity {
	cursor: help;
}
