/* One switch for the site's daylight and evening palettes. */
.ud-theme-switch {
  --switch-track: #e7e2d9;
  --switch-line: #b7afa1;
  --switch-thumb: #fffdf7;
  --switch-selected: #3b3329;
  --switch-other: #665e53;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--switch-other);
  cursor: pointer;
}
html[data-theme="dark"] .ud-theme-switch {
  --switch-track: #32332e;
  --switch-line: #6d6c60;
  --switch-thumb: #e5c6a1;
  --switch-selected: #312a23;
  --switch-other: #c9c4b6;
}
.ud-theme-track {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 26px 26px;
  place-items: center;
  height: 28px;
  padding: 0 1px;
  box-sizing: border-box;
  border: 1px solid var(--switch-line);
  border-radius: 999px;
  background: var(--switch-track);
}
.ud-theme-track::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 2px auto 2px 3px;
  width: 22px;
  border-radius: 50%;
  background: var(--switch-thumb);
  box-shadow: 0 1px 2px #0002;
  transition: transform 140ms ease;
}
html[data-theme="dark"] .ud-theme-track::before { transform: translateX(26px); }
html[data-theme="light"] .ud-theme-track svg:first-child,
html[data-theme="dark"] .ud-theme-track svg:last-child { color: var(--switch-selected); }
.ud-theme-switch:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 6px; }
.ud-theme-switch:hover .ud-theme-track { border-color: var(--switch-other); }
.ud-admin-appearance { display: flex; justify-content: flex-end; }
.ud-masthead-utility-inner > .ud-theme-switch { margin-left: auto; margin-right: 14px; min-height: 38px; }
.ud-theme-switch[hidden] { display: none; }
@media (min-width: 900px) {
  .ud-masthead-tools > .ud-theme-switch { display: none; }
}
@media (max-width: 899px) {
  .ud-masthead-utility-inner > .ud-theme-switch { display: none; }
}
@media (max-width: 400px) {
  .ud-studio-masthead .ud-masthead-brand img { width: clamp(110px, 34vw, 136px); }
  .ud-studio-masthead .ud-masthead-tools { gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .ud-theme-track::before { transition: none; }
}
@media (forced-colors: active) {
  .ud-theme-track { border-color: ButtonText; }
  .ud-theme-track::before { outline: 1px solid Highlight; }
}
