.hidden-level {
  display: none;
}

.level-tag {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: bold;
  margin-right: 15px;
}

.level-beginner {
  background-color: #e6f3e6;
  color: #2e7d32;
}
.level-expert {
  background-color: #ffebee;
  color: #c62828;
}

[data-md-color-scheme="slate"] .level-beginner {
  font-weight: 600;
  color: #86efac;
  background-color: #14532d;
}

.switch-container {
  display: flex;
  align-items: center;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 10px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 0;
  background-color: white;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #d94412;
}

input:checked + .slider:before {
  transform: translateX(30px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.switch-label {
  margin-top: 10px;
  margin-left: 10px;
  font-weight: bold;
}

.md-nav__item--nested .toc-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-right: 5px;
}

.md-nav__item--nested.toc-collapsed > .md-nav__list {
  display: none;
}
