/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/*
*
* Actual css
*
* */
body {
	margin:      40px auto;
	max-width:   700px;

	line-height: 1.5;
	font-size:   12pt;

	color:       #444444;
	background:  #EEEEEE;
}

h1, h2, h3, h4, h5, h6, p, hr, code-block {
	margin-top: 0.8em;
	margin-bottom: 0.8em;
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1.2;
	font-weight: bolder;
}

h1 {
	font-size: 220%;
}
h2 {
	font-size: 180%;
}
h3 {
	font-size: 140%;
}
h4, h5, h6 {
	font-size: 100%;
}

/*
* Codeblocks
*/

code, code-block {
	color: #111111;
	background: #CCCCCC;
	font-family: monospace;
}

code {
	padding-left: 4px;
	padding-right: 4px;
}

code-block {
	display: grid;
	grid-template-rows: auto;
	grid-template-columns: 1fr 2em;
	grid-template-areas:
		"filename" "copy-text"
		"content" "content";
}

code-block > button.copy-text {
	grid-area: "copy-text";
}

/* Not a child of code-block because it's in the shadow DOM */
span.filename {
	grid-area: "filename";
	background: #BBBBBB;
	font-style: italic;
}

code-block > span[slot="content"] {
	grid-area: "content";

	padding-left: 0.5em;
	padding-right: 0.5em;
	white-space: pre;
	overflow: auto;
}

/*
* Tooltips
*/

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip .tooltip-text {
  visibility: hidden;
  width: 120px;
  background-color: #555;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -60px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip .tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #555 transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}
