/* ————————————————————–
	Tree core styles
  */
.tree {
  margin-top: 0;
  margin-left: -18px;
  list-style-type: none;
}

.tree input {
  position: absolute;
  clip: rect(0, 0, 0, 0);
}

.tree input ~ ul {
  display: none;
}

.tree input:checked ~ ul {
  display: block;
}

/* ————————————————————–
	Tree rows
  */
.tree li {
  line-height: 1.2;
  position: relative;
  padding: 0 0 1em 1em;
}

.tree ul li {
  padding: 1em 0 0 1em;
}

.tree > li:last-child {
  padding-bottom: 0;
}

/* ————————————————————–
	Tree labels
  */
.tree_label {
  position: relative;
  display: inline-block;
}

label.tree_label {
  cursor: pointer;
}

/* ————————————————————–
	Tree expanded icon
  */
label.tree_label:before {
  background: #000;
  color: #fff;
  position: relative;
  z-index: 100;
  float: left;
  margin: 0 1em 0 -2em;
  width: 1em;
  height: 1em;
  border-radius: 1em;
  content: "+";
  text-align: center;
  line-height: 0.9em;
}

:checked ~ label.tree_label:before {
  content: "–";
}

/* ————————————————————–
	Tree branches
  */
.tree li:before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -0.5em;
  display: block;
  width: 0;
  border-left: 3px solid #0026ff;
  content: "";
}

.tree_label:after {
  position: absolute;
  top: 0;
  left: -1.5em;
  display: block;
  height: 0.5em;
  width: 1em;
  border-bottom: 3px solid #0026ff;
  border-left: 3px solid #0026ff;
  border-radius: 0 0 0 0.6em;
  content: "";
}

label.tree_label:after {
  border-bottom: 0;
}

:checked ~ label.tree_label:after {
  border-radius: 0 0.6em 0 0;
  border-top: 3px solid #0026ff;
  border-right: 3px solid #0026ff;
  border-bottom: 0;
  border-left: 0;
  bottom: 0;
  top: 0.5em;
  height: auto;
}

.tree li:last-child:before {
  height: 1em;
  bottom: auto;
}

.tree > li:last-child:before {
  display: none;
}

.tree ul {
	padding-inline-start: 0;
  list-style-type: none;
}

/*
Setting smaller font-sizes for lower levels
---------------------------------------
*/

.lvl1 ~ ul {
	font-size: 0.84em;
}

:checked ~ label.tree_label.lvl1:after {
	font-size: 0.84em;
}

.lvl2 ~ ul {
	font-size: 0.9em;
}

:checked ~ label.tree_label.lvl2:after {
	font-size: 0.9em;
}
/*---------------------------------------*/

.starts_with_emoji::first-letter {
	text-shadow: none;
	color: black;
}

.expandable {
  position: relative;
  bottom: 2px;
}

:not(:checked) ~ label .expandable{
  left: -5px;
}
