/* Vocabulary class tree (GAP-11). Complementa public-pages.css. */

.vocab-tree-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.vocab-tree {
  margin-top: 22px;
  border: 1px solid rgba(31, 36, 147, .12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(31, 36, 147, .08);
  padding: 14px 18px;
}

.tree-root,
.tree-children {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tree-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  padding-left: calc(var(--level, 0) * 22px);
}

.tree-toggle {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: rgba(30, 40, 165, .07);
  color: var(--bee-blue, #1f2493);
  cursor: pointer;
  transition: background .2s ease;
}
.tree-toggle:hover:not(:disabled) {
  background: rgba(30, 40, 165, .16);
}
.tree-toggle:disabled {
  opacity: .35;
  cursor: default;
}
.tree-toggle .material-symbols-outlined {
  font-size: 18px;
}

.tree-label {
  min-width: 0;
  color: #2d326a;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-decoration: none;
}
a.tree-label:hover {
  color: var(--bee-blue, #1f2493);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a.tree-label:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(31, 36, 147, .22);
  outline-offset: 3px;
}
.tree-count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(250, 215, 65, .35);
  color: var(--bee-blue, #1f2493);
  font-size: 11px;
  font-weight: 900;
}

.tree-node[aria-expanded="true"] > .tree-row .tree-label {
  color: var(--bee-blue, #1f2493);
  font-weight: 800;
}

.tree-loading {
  padding: 4px 0 4px calc((var(--level, 1)) * 22px);
  font-size: 13px;
}
