.tombi-version-desktop {
  position: relative;
  top: 11px;
  display: none;
  flex: none;
  margin-left: 0.125rem;
}

.tombi-version-trigger {
  padding: 0.2rem 0.25rem;
  border: 0;
  border-radius: 0.4rem;
  background: transparent;
  color: rgb(255 255 255 / 72%);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}

.tombi-version-trigger:hover,
.tombi-version-trigger:focus-visible {
  color: white;
}

.tombi-version-menu {
  position: absolute;
  top: calc(100% + 1.125rem);
  left: 0;
  z-index: 60;
  min-width: 8rem;
  max-height: min(22rem, 70vh);
  overflow-y: auto;
  padding: 0.35rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 12px 24px #0003;
}

.tombi-version-option {
  display: block;
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 0;
  border-radius: 0.35rem;
  background: transparent;
  color: #111827;
  text-align: left;
  cursor: pointer;
}

.tombi-version-option:hover,
.tombi-version-option:focus-visible {
  background: #f3f4f6;
}

.tombi-version-option[aria-current="page"] {
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 700;
}

:root.dark .tombi-version-menu {
  border-color: #374151;
  background: #111827;
}

:root.dark .tombi-version-menu .tombi-version-option {
  color: #f9fafb;
}

:root.dark .tombi-version-menu .tombi-version-option:hover,
:root.dark .tombi-version-menu .tombi-version-option:focus-visible {
  background: #1f2937;
}

:root.dark .tombi-version-menu .tombi-version-option[aria-current="page"] {
  background: #1f2937;
  color: #facc15;
}

.tombi-version-mobile {
  position: relative;
}

.tombi-version-mobile-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 0.5rem);
  height: 4rem;
  margin: 0.25rem;
  padding: 0 0.75rem;
  border: 0;
  background: transparent;
  color: rgb(255 255 255 / 72%);
  text-align: left;
  font-size: 1rem;
  cursor: pointer;
}

.tombi-version-mobile-trigger:hover {
  background: rgb(255 255 255 / 5%);
}

.tombi-version-mobile-chevron {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin-right: -0.75rem;
  border-radius: 0.25rem;
}

.tombi-version-mobile-trigger:hover .tombi-version-mobile-chevron,
.tombi-version-mobile-trigger[aria-expanded="true"] .tombi-version-mobile-chevron {
  background: rgb(255 255 255 / 10%);
}

.tombi-version-mobile-trigger svg {
  width: 1rem;
  height: 1rem;
  color: rgb(255 255 255 / 60%);
  transition: transform 200ms ease-in-out;
}

.tombi-version-mobile-panel {
  overflow: hidden;
  padding-left: 1rem;
  transition: max-height 200ms linear;
}

.tombi-version-mobile-panel .tombi-version-option {
  color: white;
  font-size: 1rem;
  min-height: 3rem;
  margin: 0.25rem;
  width: calc(100% - 0.5rem);
}

.tombi-version-mobile-panel .tombi-version-option:hover,
.tombi-version-mobile-panel .tombi-version-option:focus-visible {
  background: rgb(255 255 255 / 10%);
}

.tombi-version-mobile-panel .tombi-version-option[aria-current="page"] {
  background: rgb(255 255 255 / 12%);
  color: #fff;
}

:root.dark .tombi-version-mobile-panel .tombi-version-option[aria-current="page"] {
  color: #facc15;
}

.tombi-mobile-social-links {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  position: relative;
  left: 0.5rem;
  padding: 0;
}

.tombi-mobile-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
}

.tombi-mobile-social-link svg {
  width: 1.75rem;
  height: 1.75rem;
}

@media (min-width: 768px) {
  header:has(.tombi-version-desktop) > nav > div {
    justify-content: flex-start;
  }
  header:has(.tombi-version-desktop) > nav > div > .flex-shrink-0 + div {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  header:has(.tombi-version-desktop) > nav > div > div:has(input) {
    margin-left: auto;
  }
  .tombi-version-desktop {
    display: block;
  }
  .tombi-version-mobile {
    display: none;
  }
  .tombi-mobile-social-links {
    display: none;
  }
}
