/* Theme toggle icon (partials/day-night-toggle.html), shared by the Room sidebar
   and the public headers. It shows the theme a click switches to: a moon in light
   mode, a sun in dark mode. The state follows html.throne-theme-dark, which every
   theme writer sets, so neither toggle script styles it. */
.day-night-toggle {
  display: inline-flex;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.day-night-toggle svg {
  display: block;
  width: 100%;
  height: 100%;
}

.day-night-toggle .day-night-sun {
  display: none;
}

html.throne-theme-dark .day-night-toggle .day-night-moon {
  display: none;
}

html.throne-theme-dark .day-night-toggle .day-night-sun {
  display: block;
}
