html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] {
  color-scheme: dark;
  --shade-10: #131518;
  --shade-20: #1d2025;
  --shade-30: #2b3037;
  --shade-40: #353b43;
  --shade-50: #929ba9;
  --shade-60: #b4bdca;
  --shade-70: #cbd2dc;
  --shade-80: #dce1e8;
  --shade-90: #eef1f5;
  --shade-100: #f6f7f9;
  --blue: #9bb6ff;
  --color: #131518;
}
body { background-color: var(--shade-10); color: var(--shade-90); }
.help-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 7px;
  border: 1px solid #666;
  border-radius: 4px;
  background: #000;
  color: #fff;
  flex-shrink: 0;
  cursor: pointer;
}
.help-theme-toggle:hover { border-color: #ccc; }
.help-theme-toggle svg { width: 20px; height: 20px; }
.help-theme-sun { display: none; }
html[data-theme="dark"] .help-theme-moon { display: none; }
html[data-theme="dark"] .help-theme-sun { display: block; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
html[data-theme="dark"] .layout-nav .icon-m,
html[data-theme="dark"] .layout-nav .icon-s,
html[data-theme="dark"] .help-category-toggle img,
html[data-theme="dark"] .search-modal-close-button { filter: brightness(0) invert(1); }
html[data-theme="dark"] .search-modal { background-color: #0009; }
html[data-theme="dark"] .rich-text-content :is(code, pre) { color: var(--shade-100); background: var(--shade-20); }
html[data-theme="dark"] ::selection { color: #fff; background: #365a9a; }
@media screen and (max-width: 991px) {
  .nav-top .nav-menu-link-group { flex-wrap: wrap; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; } }
