/* Shared Python syntax colors — lesson blocks + CodeMirror editor */

:root {
  --tds-py-keyword: #ef6c00;
  --tds-py-string: #009688;
  --tds-py-number: #ad1457;
  --tds-py-comment: #9e9e9e;
  --tds-py-function: #0074d9;
  --tds-py-variable: #001080;
  --tds-py-operator: #666666;
}

/* --- Static lesson blocks --- */
.code-example--python pre code .keyword,
pre.code-python code .keyword,
pre.code-python .keyword {
  color: var(--tds-py-keyword);
  font-weight: 700;
}

.code-example--python pre code .function,
pre.code-python code .function,
pre.code-python .function {
  color: var(--tds-py-function);
  font-weight: 600;
}

.code-example--python pre code .variable,
pre.code-python code .variable,
pre.code-python .variable {
  color: var(--tds-py-variable);
  font-weight: 400;
}

.code-example--python pre code .string,
pre.code-python code .string,
pre.code-python .string {
  color: var(--tds-py-string);
}

.code-example--python pre code .number,
pre.code-python code .number,
pre.code-python .number {
  color: var(--tds-py-number);
}

.code-example--python pre code .comment,
pre.code-python code .comment,
pre.code-python .comment {
  color: var(--tds-py-comment);
  font-style: italic;
}

.code-example--python pre code .operator,
pre.code-python code .operator,
pre.code-python .operator {
  color: var(--tds-py-operator);
  font-weight: 600;
}

/* --- CodeMirror theme (exercise + inline playground) --- */
.cm-s-tds-python.CodeMirror {
  background: #fff;
  color: #000;
}

.cm-s-tds-python .CodeMirror-gutters {
  background: #fafafa;
  border-right: none;
}

.cm-s-tds-python .CodeMirror-linenumber {
  color: #aaa;
}

.cm-s-tds-python .cm-keyword {
  color: var(--tds-py-keyword);
  font-weight: 700;
}

.cm-s-tds-python .cm-builtin {
  color: var(--tds-py-function);
  font-weight: 600;
}

.cm-s-tds-python .cm-def {
  color: var(--tds-py-function);
  font-weight: 600;
}

.cm-s-tds-python .cm-variable,
.cm-s-tds-python .cm-variable-2,
.cm-s-tds-python .cm-variable-3,
.cm-s-tds-python .cm-qualifier,
.cm-s-tds-python .cm-property {
  color: var(--tds-py-variable);
}

.cm-s-tds-python .cm-string,
.cm-s-tds-python .cm-string-2 {
  color: var(--tds-py-string);
}

.cm-s-tds-python .cm-number,
.cm-s-tds-python .cm-atom {
  color: var(--tds-py-number);
}

.cm-s-tds-python .cm-comment {
  color: var(--tds-py-comment);
  font-style: italic;
}

.cm-s-tds-python .cm-operator,
.cm-s-tds-python .cm-bracket,
.cm-s-tds-python .cm-punctuation {
  color: var(--tds-py-operator);
}

.cm-s-tds-python .cm-meta {
  color: var(--tds-py-keyword);
}
