/* Light is the default. Dark is used only after an explicit choice. */
:root {
  color-scheme: light;
}
:root[data-theme="dark"] {
  color-scheme: dark;
}
.theme-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.theme-toggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--hair);
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.theme-toggle:hover {
  background: light-dark(#e7eaed, #2c343d);
}
.theme-toggle[aria-pressed="true"] {
  border-color: var(--muted);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
.theme-toggle-icon {
  display: block;
  width: 14px;
  height: 14px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%);
}
@media (max-width: 640px) {
  .site-header > .brand {
    order: 0;
  }
  .site-header > .theme-actions {
    order: 1;
  }
  .site-header > nav {
    order: 2;
    width: 100%;
  }
}
