@charset "UTF-8";

body {
	padding: 0;
	margin: 0;
	height: 100vh;
	font: 16px sans-serif;
	background: #e4e9ec;
}
.outermost {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	align-content: stretch;
	align-items: stretch;
}
.tab {
	font-weight: bold;
	display: inline-block;
	padding-right: 5px;
	padding-left: 5px;
	border-top: 2px solid white;
}
.tab_current {
	color: black;
	border-top: #e4e9ec;
	background: #e4e9ec;
}
.tab a {
	color: #888;
	text-decoration: none;
}
.tab a:hover {
	color: #444;
}
#site_header {
	flex: 0 auto;
	padding: 4px 0 0 4px;
	background: white;
}
#site_header > button {
	position: relative;
	top: -3px;
}
#site_body_outer {
	flex: 1 auto;
	overflow-y: scroll;
	padding-top: 10px;
	padding-left: 10px;
}
#site_body_outer > *:last-child {
	padding-bottom: 150px;
}
h1 {
	margin: 20px 0 4px 0;
}
svg {
	display: block;
}
.textbox textarea, .textbox pre {
	font-size: 100%;
	font-family: sans-serif;
	font-weight: normal;
	border: none;
	padding: 0 1px;
	margin: 0;
	white-space: pre-wrap;
	word-wrap: break-word;
}
.textbox {
	display: inline-block;
	position: relative;
	vertical-align: top;
}
.textbox pre {
	min-width: 5px;
	visibility: hidden;
	/* padding on pre only, because FF won't draw text over the padding */
	padding-bottom: 1px;
}
.textbox textarea {
	outline: none;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
	box-sizing: border-box;
	background: transparent;
	background-clip: padding-box;
	overflow: hidden;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	resize: none;
}
.textbox textarea:hover {
	background: #f4f7f9;
}
.textbox textarea:focus {
	background: #fcfbfd;
}
.textbox pre span:empty:after {
	content: attr(placeholder);
}
strong > div.textbox textarea,
strong > div.textbox pre {
	font-weight: bold;
}
body > * {
	white-space: pre-wrap;
}
.fixed_header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: #fff;
	border-bottom: 2px solid #aaa;
	z-index: 1000
}
.unfixed_header {
	color: #fff
	border-bottom: 2px solid #fff;
	margin-bottom: 10px;
}
.list {
	position: relative;
	padding-left: 40px;
	padding-top: 4px;
	padding-bottom: 4px;
}
.icon_show_hover {
	position: absolute;
	width: 40px;
	left: 0;
	top: 0;
	height: 100%;
}
.icon {
	visibility: hidden;
}
.icon_show_hover.hovered ~ .row > .icon {
	visibility: visible;
}
/* always show icon to insert into an empty list */
.icon_show_hover + .row.append_row > .icon {
	visibility: visible;
}
.node {
	position: relative;
}
.row {
	position: relative;
}
.icon_remove {
	display: block;
	height: 6px;
	width: 6px;
	position: absolute;
	left: -23px;
	top: 7px;
}
.icon_remove:hover + div {
	background: rgba(255, 0, 0, 0.12);
}
svg.icon_remove > path {
	fill: #800;
}
svg.icon_remove:hover > path {
	fill: #f00;
}
svg.icon_paste > path {
	stroke: #00b;
	fill: none;
	stroke-width: 1.5px;
}
svg.icon_paste:hover > path {
	stroke: #66f;
}
.icon_add {
	display: block;
	position: absolute;
	left: -13px;
	top: -5px;
	width: 9px;
	height: 9px;
}
svg.icon_add > path {
	fill: #060;
}
svg.icon_add:hover > path {
	fill: #0c0;
}
.icon_paste {
	display: none;
	position: absolute;
	top: -5px;
	left: -35px;
	color: #00b;
	width: 7px;
	height: 9px;
}
.icon_add, .icon_paste, .icon_remove {
	cursor: pointer;
}
.menu_item, .menu_cat {
	background: #eef;
	padding: 1px 4px;
	border: 1px solid #bbb;
}
.menu_cat {
	cursor: default;
	padding-right: calc(1em + 4px);
	position: relative;
	color: black;
}
.menu_cat:after {
	content: '>';
	display: block;
	position: absolute;
	right: 4px;
	top: 1px;
}
.menu_item {
	cursor: pointer;
	color: green;
}
.menu_top li:hover {
	background: #e9faff;
}
.menu_hover_right, .menu_hover_right > li {
	z-index: 1000;
	margin: 0;
	list-style: none;
	white-space: pre;
}
.menu_hover_right {
	display: inline-block;
	padding: 0;
}
.menu_hover_right > li {
	position: relative;
}
.menu_hover_right > li + li {
	margin-top: -1px;
}
.menu_hover_right > li > .menu_hover_right {
	display: none;
	position: absolute;
	left: 100%;
	top: 50%;
	padding: 30px 0;
	transform: translateY(-50%);
}
.menu_hover_right > li:hover > .menu_hover_right {
	display: block;
}
.menu_top > li {
	position: relative;
}
.menu_top > li:hover:before {
	content: '';
	display: block;
	width: 100%;
	height: 30px;
	position: absolute;
	bottom: 100%;
	left: 0;
}
.menu_top > li:hover:after {
	content: '';
	display: block;
	width: 100%;
	height: 30px;
	position: absolute;
	top: 100%;
	left: 0;
}
.image_preview {
	display: inline-block;
	max-width: 200px;
	max-height: 150px;
	vertical-align: middle;
	border: 1px solid #aaa;
}
.images_row + .images_row {
	margin-top: 4px;
}
.field {
	display: flex;
	white-space: pre;
}
.tag:not(:empty) ~ .tag:not(:empty) {
	margin-left: 7px;
}
.topic_tags .tag:not(:empty) {
	display: inline-block;
}
.topic_tags + h1 {
	margin-top: 7px;
}
.autosave_outer {
	display: inline-block;
	position: relative;
	vertical-align: bottom;
}
.autosave_outer > ul {
	display: none;
}
.autosave_outer:hover > ul {
	display: block;
	position: absolute;
	top: 100%;
	right: -120px;
	margin: 0;
	padding: 10px 20px 20px 20px;
	background: white;
	list-style-type: none;
	z-index: 1000;
}
.autosave_outer > ul > li {
	margin: 0;
	padding: 0;
	list-style-type: none;
	white-space: pre;
}
