/* Day and night, shared by every page: the ground painted before the
   scripts run (theme-preboot.js) and the switch itself (theme.js). */
html.pre-dark body { background: #0E2230; color: #e8e8e8; }
.theme-toggle {
  position: absolute; top: 18px; right: 24px; z-index: 600;
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.7); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid #e5e5e5; border-radius: 100px; color: #666; cursor: pointer; padding: 0; font: inherit;
  transition: color .15s, border-color .15s, background .15s;
}
.theme-toggle:hover { color: #171717; border-color: #bbb; }
body.dark .theme-toggle { background: rgba(20,20,25,.6); border-color: rgba(255,255,255,.12); color: #999; }
body.dark .theme-toggle:hover { color: #f5f5f5; border-color: rgba(255,255,255,.25); }
.theme-toggle:active { transform: scale(.92); }
.theme-toggle svg { width: 17px; height: 17px; stroke-width: 1.75; fill: none; stroke: currentColor; }
.theme-toggle .icon-sun { display: none; }
body.dark .theme-toggle .icon-sun { display: block; }
body.dark .theme-toggle .icon-moon { display: none; }
