/* The home page's own parts around the editor, in the editor's dark mode. The editor itself -
   toolbar, markup pane, maths view, history bar, suggestions, menus, the picture and chemistry
   editors - is fxeditor-api's: its dark mode (theme.ts) puts html.fxEditorDark on the page,
   turned on by the history bar's Dark switch and kept in the browser. What this page draws
   around it - the editor's box, the suggestions column, the switches and buttons under the
   equation, the hint and the export panel - follows here. The rest of the page stays light.

   The colours are the API's dark ones, the same as My Home's dark mode (my-home-dark.css). */

html.fxEditorDark #equation-editor {
  --dk-surface: #181c22;
  --dk-raised: #1f242c;
  --dk-input: #14181e;
  --dk-hover: #272d37;
  --dk-line: #2e3540;
  --dk-line-strong: #414a58;
  --dk-ink: #e4e8ee;
  --dk-ink-soft: #aab3c0;

  background: var(--dk-surface);
  border-color: var(--dk-line);
  color: var(--dk-ink);
  color-scheme: dark;
}
html.fxEditorDark #equation-editor #editor-bar { background: transparent; color: var(--dk-ink); }

/* The suggestions down the right. */
html.fxEditorDark #equation-editor .predictor-rail { background: var(--dk-raised); border-color: var(--dk-line); color: var(--dk-ink-soft); }

/* The switches and buttons under the equation, and the hint. */
html.fxEditorDark #equation-editor .cc-switch-track { background: #3d4552; }
html.fxEditorDark #equation-editor .cc-switch input:checked + .cc-switch-track { background: #3f9b5a; }
html.fxEditorDark #equation-editor .cc-switch-label { color: var(--dk-ink-soft); }
html.fxEditorDark #equation-editor .cc-switch input:checked ~ .cc-switch-label { color: var(--dk-ink); }
html.fxEditorDark #equation-editor .mathview-actions-grid button { background: var(--dk-raised); border-color: var(--dk-line-strong); color: var(--dk-ink); }
html.fxEditorDark #equation-editor .mathview-actions-grid button:hover { background: var(--dk-hover); }
html.fxEditorDark #equation-editor .hint { color: var(--dk-ink-soft); }

/* The export panel under the equation. */
html.fxEditorDark #equation-editor #export-panel { background: var(--dk-surface); border-color: var(--dk-line); color: var(--dk-ink); }
html.fxEditorDark #equation-editor .export-head { background: var(--dk-raised); border-color: var(--dk-line); }
html.fxEditorDark #equation-editor .export-head label,
html.fxEditorDark #equation-editor #export_image .export-image-url { color: var(--dk-ink-soft); }
html.fxEditorDark #equation-editor .export-head select,
html.fxEditorDark #equation-editor .export-colour { background: var(--dk-input); border-color: var(--dk-line-strong); color: var(--dk-ink); }
html.fxEditorDark #equation-editor .export-colour:hover,
html.fxEditorDark #equation-editor .export-colour[aria-expanded="true"] { background: var(--dk-hover); }
html.fxEditorDark #equation-editor .export-swatches { background: var(--dk-raised); border-color: var(--dk-line-strong); color: var(--dk-ink); }
html.fxEditorDark #equation-editor .export-swatches .default,
html.fxEditorDark #equation-editor .export-swatches .other button,
html.fxEditorDark #equation-editor .export-swatches .other input[type="color"] { background: var(--dk-input); border-color: var(--dk-line-strong); color: var(--dk-ink); }
html.fxEditorDark #equation-editor #export-copy,
html.fxEditorDark #equation-editor #export-url,
html.fxEditorDark #equation-editor #export-download,
html.fxEditorDark #equation-editor #export_area,
html.fxEditorDark #equation-editor #export_image { background: var(--dk-input); border-color: var(--dk-line); color: var(--dk-ink); }
html.fxEditorDark #equation-editor #export-copy:hover,
html.fxEditorDark #equation-editor #export-url:hover,
html.fxEditorDark #equation-editor #export-download:hover { background: var(--dk-hover); }
/* The picture as it will be exported stays on white: it is drawn in the export's own colours. */
html.fxEditorDark #equation-editor #export_image .export-image-picture { background: #fff; border-radius: 4px; padding: 6px 0; }
html.fxEditorDark #equation-editor #export_image .export-zoom { background: var(--dk-input); border-color: var(--dk-line-strong); color: var(--dk-ink); }
