/* Keep the exported header in its final geometry before post-hydration controls arrive. */
.topbar:not(.mahina-main-header) {
  isolation: isolate;
  justify-content: space-between;
  padding-inline: clamp(18px, 5vw, 72px);
}

.topbar:not(.mahina-main-header) > .brand {
  position: absolute !important;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: inline-flex;
  width: 138px;
  height: auto;
  align-items: center;
  justify-content: center;
  transform: translate(-50%, -50%);
}

.topbar:not(.mahina-main-header) > .brand img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain;
  object-position: center;
}

.topbar:not(.mahina-main-header) > .topbar-menu-title {
  display: none !important;
}

.topbar:not(.mahina-main-header) > .topbar-actions {
  position: relative;
  z-index: 4;
  margin-left: auto;
  gap: 9px;
}

.topbar:not(.mahina-main-header) .topbar-actions > .menu-button {
  position: fixed;
  top: 10px;
  left: clamp(18px, 5vw, 72px);
  z-index: 4;
  width: 36px;
  min-width: 36px;
  height: 38px;
  min-height: 38px;
  gap: 6px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.topbar:not(.mahina-main-header) .topbar-actions > .menu-button > span:not(.mahina-menu-button-label) {
  width: 18px;
  height: 1.4px;
}

.topbar:not(.mahina-main-header) .menu-button .mahina-menu-button-label {
  display: none !important;
}

@media (max-width: 720px) {
  .topbar:not(.mahina-main-header) {
    padding-inline: 10px 8px;
  }

  .topbar:not(.mahina-main-header) > .brand {
    width: 96px;
  }

  .topbar:not(.mahina-main-header) .topbar-actions > .menu-button {
    top: 4px;
    left: 10px;
    width: 36px;
    min-width: 36px;
    height: 38px;
    min-height: 38px;
    padding: 0;
  }

  .topbar:not(.mahina-main-header) > .topbar-actions {
    gap: 4px;
  }
}

@media (max-width: 420px) {
  .topbar:not(.mahina-main-header) > .brand {
    width: 82px;
  }
}
