/* NyangDay header space switcher: compact icon navigation without overlapping labels. */
.site-header .space-switcher {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  flex: 0 0 auto;
}

.site-header .space-switcher > a {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center !important;
  line-height: 1 !important;
  border-radius: 50% !important;
  position: relative !important;
}

/* The visible labels previously overflowed the fixed circular links.
   Link names remain available through aria-label and hover/focus tooltips. */
.site-header .space-switcher > a > span {
  display: none !important;
}

.site-header .space-switcher > a > svg {
  width: 21px !important;
  height: 21px !important;
  display: block !important;
  margin: 0 !important;
  transform: none !important;
  position: static !important;
}

.site-header .space-switcher > a.active {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
}

@media (max-width: 720px) {
  .site-header {
    padding-inline: 12px !important;
    gap: 6px !important;
  }

  .site-header .brand {
    flex: 0 0 39px;
  }

  .site-header .brand > span:last-child {
    display: none !important;
  }

  .site-header .space-switcher {
    margin-left: auto !important;
    padding: 3px !important;
    gap: 1px !important;
  }

  .site-header .space-switcher > a,
  .site-header .space-switcher > a.active {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }

  .site-header .space-switcher > a > svg {
    width: 20px !important;
    height: 20px !important;
  }

  .site-header .menu-button {
    flex: 0 0 42px;
  }
}

@media (max-width: 360px) {
  .site-header .space-switcher > a,
  .site-header .space-switcher > a.active {
    width: 35px !important;
    height: 35px !important;
    min-width: 35px !important;
  }
}
