.schema-example-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  margin: 0 0 10px 0;
  border-radius: 8px;
  background: #e8e8e8;
  max-width: 100%;
  box-sizing: border-box;
}

.schema-example-toggle__btn {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  margin: 0;
  cursor: pointer;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 6px;
  background: transparent;
  color: #333;
  font: inherit;
  font-size: 90%;
  line-height: 1.2;
  white-space: nowrap;
}

.schema-example-toggle__btn.active {
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  font-weight: 600;
}

#topicText span.s_key {
  color: #00c;
}

#topicText span.s_string {
  color: #a64030;
}

@media not print {
  html.dark .schema-example-toggle {
    background: #2a2a2a;
  }

  html.dark .schema-example-toggle__btn {
    color: #ddd;
  }

  html.dark .schema-example-toggle__btn.active {
    background: #3a3a3a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  }

  html.dark #topicText span.s_key {
    color: #5898ff !important;
  }

  html.dark #topicText span.s_string {
    color: #fb6363 !important;
  }
}

@media (max-width: 480px) {
  .schema-example-toggle {
    display: flex;
    width: 100%;
  }

  .schema-example-toggle__btn {
    flex: 1 1 auto;
    text-align: center;
    white-space: normal;
  }
}
