html[data-conses-docs-theme="light"] {
  color-scheme: light;
  background: #fff;
}
html[data-conses-docs-theme="dark"] {
  color-scheme: dark;
  background: hsl(228, 21%, 14%);
}
.book { color-scheme: light; }
.book.color-theme-2 { color-scheme: dark; }
.book .font-settings .button[aria-pressed="true"] {
  color: #1d1d1f;
  background: rgba(0, 0, 0, 0.06);
  font-weight: 600;
}

/* HonKit provides the page, sidebar, search, table and code colors. Only the
   custom gallery needs dark surfaces; original keyboard photos stay white. */
@media screen {
  .book.color-theme-2 .font-settings .button[aria-pressed="true"] {
    color: #f5f5f7;
    background: rgba(255, 255, 255, 0.08);
  }
  .book.color-theme-2 .dropdown-menu .button {
    color: hsl(214, 24%, 73%);
  }
  .book.color-theme-2 .dropdown-menu .button:hover,
  .book.color-theme-2 .dropdown-menu .button:focus-visible {
    color: #f5f5f7;
  }
  .book.color-theme-2 .book-header,
  .book.color-theme-2 .book-header .btn {
    color: hsl(214, 24%, 73%);
  }
  .book.color-theme-2 .book-header h1 {
    color: hsl(214, 29%, 80%);
  }
  .book.color-theme-2 .book-header .btn:hover,
  .book.color-theme-2 .book-header .btn:focus-visible {
    color: #f5f5f7;
  }
  .book.color-theme-2 .keyboard-browser {
    color: hsl(214, 29%, 80%);
    background: hsl(233, 18%, 19%);
    border-color: hsl(230, 17%, 28%);
  }
  .book.color-theme-2 .keyboard-category-tabs,
  .book.color-theme-2 .keyboard-model-tabs {
    background: hsl(229, 20%, 24%);
  }
  .book.color-theme-2 .keyboard-category-tabs button,
  .book.color-theme-2 .keyboard-model-tabs button {
    color: hsl(214, 29%, 80%);
  }
  .book.color-theme-2 .keyboard-category-tabs button:hover,
  .book.color-theme-2 .keyboard-model-tabs button:hover {
    color: #f5f5f7;
    background: rgba(255, 255, 255, 0.08);
  }
  .book.color-theme-2 .keyboard-category-tabs button[aria-selected="true"],
  .book.color-theme-2 .keyboard-model-tabs button[aria-selected="true"] {
    color: #f5f5f7;
    background: hsl(229, 20%, 34%);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  }
  .book.color-theme-2 .keyboard-browser label,
  .book.color-theme-2 .keyboard-caption p,
  .book.color-theme-2 .keyboard-availability,
  .book.color-theme-2 .keyboard-status,
  .book.color-theme-2 .keyboard-provenance {
    color: hsl(214, 24%, 73%);
  }
  .book.color-theme-2 .keyboard-browser select {
    color: #edf0f5;
    background-color: hsl(229, 20%, 22%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23b7bed0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    border-color: hsl(230, 17%, 36%);
  }
  .book.color-theme-2 .keyboard-stage {
    background: hsl(228, 21%, 16%);
    border-color: hsl(230, 17%, 28%);
  }
  .book.color-theme-2 .keyboard-category-tabs button:focus-visible,
  .book.color-theme-2 .keyboard-model-tabs button:focus-visible,
  .book.color-theme-2 .keyboard-browser select:focus-visible,
  .book.color-theme-2 .keyboard-photo:focus-visible,
  .book.color-theme-2 .keyboard-source-link:focus-visible {
    outline-color: #5ba9ff;
  }
  .book.color-theme-2 .markdown-section .shortcut-key {
    background: rgba(255, 255, 255, 0.08);
  }
}
