/* VS Code Dark+ inspired syntax colors for server-rendered and dynamic snippets. */
.syntax-token--comment { color: #6a9955; }
.syntax-token--string { color: #ce9178; }
.syntax-token--number { color: #b5cea8; }
.syntax-token--literal,
.syntax-token--keyword { color: #569cd6; }
.syntax-token--function { color: #dcdcaa; }
.syntax-token--type { color: #4ec9b0; }
.syntax-token--property,
.syntax-token--variable,
.syntax-token--flag,
.syntax-token--attribute { color: #9cdcfe; }
.syntax-token--constant { color: #4fc1ff; }
.syntax-token--tag { color: #569cd6; }
.syntax-token--selector { color: #d7ba7d; }
.syntax-token--protocol { color: #4ec9b0; }
.syntax-token--http-method { color: #569cd6; }
.syntax-token--yaml-key { color: #9cdcfe; }
.syntax-token--yaml-anchor { color: #c586c0; }
.syntax-token--operator,
.syntax-token--punctuation { color: #d4d4d4; }

.syntax-editor {
  position: relative;
  width: 100%;
  height: 150px;
  min-height: 96px;
  max-height: 560px;
  overflow: hidden;
  resize: vertical;
  border: 1px solid #252525;
  border-radius: 7px;
  background: #050505;
}
.syntax-editor:focus-within { outline: 2px solid #e5e5e5; outline-offset: 1px; }
.syntax-editor-preview,
.syntax-editor textarea {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 12px;
  border: 0;
  border-radius: inherit;
  font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  tab-size: 2;
}
.syntax-editor-preview {
  display: none;
  z-index: 0;
  overflow: hidden;
  color: #bdbdbd;
  pointer-events: none;
}
.syntax-editor textarea {
  z-index: 1;
  overflow: auto;
  resize: none;
  outline: 0;
  background: #050505;
  color: #d5d5d5;
  caret-color: #f2f2f2;
  scrollbar-color: #444 transparent;
}
.syntax-editor.is-highlight-ready .syntax-editor-preview { display: block; }
.syntax-editor.is-highlight-ready textarea {
  background: transparent;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.syntax-editor.is-highlight-ready textarea::selection { background: rgba(87, 130, 180, .38); color: transparent; }
.syntax-editor--compact { height: 110px; }
.api-sandbox-editor { margin-top: 14px; }
