:root { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

.site-header .header-tools {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-inline-start: 16px;
  border-inline-start: 1px solid var(--theme-divider, var(--line));
}

.site-header nav { margin-inline-start: auto; }
.site-header :is(.menu-toggle, .nav-toggle) { margin-inline-start: auto; flex-shrink: 0; }

@media (max-width: 720px) {
  .site-header .header-tools { padding-inline-start: 8px; }
  .site-header .header__inner { gap: 12px; }
}

.site-header .theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid currentColor;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  box-shadow: none;
  cursor: pointer;
}

.site-header .theme-toggle[hidden] { display: none; }
.site-header .theme-toggle:hover { background: rgba(131, 216, 245, 0.15); color: inherit; }
.site-header .theme-toggle:focus-visible { outline: 3px solid #20a9e0; outline-offset: 3px; }
.theme-toggle svg { display: block; width: 22px; height: 22px; }
.theme-icon--sun, [data-theme="dark"] .theme-icon--moon { display: none; }
[data-theme="dark"] .theme-icon--sun { display: initial; }
