.tree {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tree.is-expanded {
  display: block;
}

.tree .tree {
  padding-left: 32px;
}

.tree-node {
  display: flex;
  align-items: stretch;
  border-radius: 4px;
  margin: calc(var(--vertical-rhythm) / 4) 0;
}

.tree-node:hover {
  background-color: var(--medium-light-color);
}

.tree-node.is-important {
  font-weight: bold;
}

.tree-node.is-selected {
  background-color: var(--default-color);
  color: var(--default-background-color);
}

a.tree-node,
a.tree-node-icon,
a.tree-node-label {
  color: inherit;
  text-decoration: none;
}

.tree-node-icon {
  flex: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
}

.tree-node-label {
  display: flex;
  align-items: center;
  flex: 1;
  padding: calc(var(--vertical-rhythm) / 4) 0.5rem;
  min-height: var(--vertical-rhythm);
}

.tree-node-icon + .tree-node-label {
  padding-left: 0;
}

.tree-node-primary-text {
  flex: 1;
  overflow-wrap: break-word;
}

.tree-node-secondary-text {
  font-size: calc(1rem * $type-scale-7);
  line-height: calc(var(--vertical-rhythm) * $type-height-7);
  white-space: nowrap;
}

.tree-node-primary-text + .tree-node-secondary-text {
  margin-left: 1rem;
}
