.wn-header-actions {
  display: flex;
  flex: 0 0 auto;
  height: 100%;
}

.wn-mobile-header-actions {
  display: none;
}

@media (min-width: 50rem) {
  .main-header {
    position: sticky;
    top: 0;
    z-index: 2;
  }
}

.wn-header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: auto 0.125rem;
  color: #5c5962;
  border-radius: 999px;
  cursor: pointer;
  transition: color 140ms ease-out, background-color 140ms ease-out, transform 140ms ease-out;
}

[data-wn-theme="dark"] .wn-header-action {
  color: #bab9c3;
}

.wn-header-action:focus-visible {
  outline: 0;
  color: #00863f;
}

[data-wn-theme="dark"] .wn-header-action:focus-visible {
  color: #00d970;
}

@media (hover: hover) and (pointer: fine) {
  .wn-header-action:hover {
    color: #00863f;
    background-color: rgba(0, 134, 63, 0.08);
    transform: scale(1.04);
  }

  [data-wn-theme="dark"] .wn-header-action:hover {
    color: #00d970;
    background-color: rgba(0, 217, 112, 0.08);
  }
}

.wn-header-action svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: currentColor;
}

.wn-header-action--github svg {
  width: 1rem;
  height: 1rem;
  opacity: 0.84;
}

.wn-theme-icon {
  fill: currentColor;
}

.wn-theme-icon-moon,
[data-wn-theme="dark"] .wn-theme-icon-sun {
  display: none;
}

[data-wn-theme="dark"] .wn-theme-icon-moon {
  display: block;
}

.search-input:focus,
.search-input:focus-visible {
  outline: 0;
  box-shadow: inset 0 -2px 0 #00863f;
}

[data-wn-theme="dark"] .search-input:focus,
[data-wn-theme="dark"] .search-input:focus-visible {
  box-shadow: inset 0 -2px 0 #00d970;
}

@media (min-width: 50rem) {
  .search-active .search-input-wrap {
    box-shadow: none;
  }
}

@media (max-width: 49.999rem) {
  .main-header .wn-header-actions {
    display: none;
  }

  .site-header .wn-mobile-header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.125rem;
    height: 3.75rem;
    margin-right: 0.125rem;
  }

  .site-header .wn-mobile-header-actions .wn-header-action {
    margin: 0;
  }

  .site-header .wn-mobile-header-actions .wn-header-action:hover {
    background-color: transparent;
    transform: none;
  }
}

.wn-theme-transition,
.wn-theme-transition body,
.wn-theme-transition .side-bar,
.wn-theme-transition .main-header,
.wn-theme-transition .main-content,
.wn-theme-transition .search-input,
.wn-theme-transition :not(pre, figure) > code,
.wn-theme-transition .highlight,
.wn-theme-transition .rcb {
  transition: background-color 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out;
}

@media (max-width: 31.25rem) {
  .wn-header-action {
    width: 2rem;
    height: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wn-header-action,
  .wn-theme-transition,
  .wn-theme-transition body,
  .wn-theme-transition .side-bar,
  .wn-theme-transition .main-header,
  .wn-theme-transition .main-content,
  .wn-theme-transition .search-input,
  .wn-theme-transition :not(pre, figure) > code,
  .wn-theme-transition .highlight,
  .wn-theme-transition .rcb {
    transition: none;
  }
}
