.cm-header {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.cm-header {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background-color: #f8f9fa;
  border-radius: 4px;
  cursor: pointer;
}

.cm-header:focus {
  outline: 2px solid #007bff;
  outline-offset: -2px;
}

.cm-header:hover {
  background-color: #e9ecef;
}

.cm-header-label {
  flex: 1;
  margin: 0;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
}

.cm-toggle {
  background: none;
  border: none;
  padding: 4px 8px;
  margin-left: 8px;
  cursor: pointer;
  color: #212529; /* High contrast dark gray for AAA compliance */
  display: flex;
  align-items: center;
  justify-content: center;
  /* Ensure sufficient contrast on all backgrounds */
  background-color: transparent;
}

.cm-toggle:hover {
  color: #000000; /* Even higher contrast on hover */
  background-color: #f8f9fa;
}

.cm-toggle:focus {
  outline: 2px solid #007bff;
  outline-offset: -2px;
  color: #000000; /* High contrast focus state */
}

.cm-toggle:active {
  color: #000000;
  background-color: #e9ecef;
}

.cm-toggle-icon {
  font-size: 1.2rem;
  line-height: 1;
  /* AAA contrast compliance: 7:1 ratio or higher */
  color: #212529 !important; /* Dark gray text for high contrast */
  background-color: transparent !important;
  opacity: 1 !important;
}

.cm-children {
  list-style: none;
  padding-left: 24px;
  margin: 8px 0;
}

.cm-child-link {
  display: block;
  padding: 4px 8px;
  color: #212529;
  text-decoration: none;
}

.cm-child-link:hover {
  background-color: #e9ecef;
  border-radius: 4px;
}

.cm-child-prefix {
  margin-right: 8px;
  color: #6c757d;
}