/* Shared wedding-site header.
   Keep all common sizing here so the invitation and uploader cannot drift. */
.topbar {
  padding: env(safe-area-inset-top) max(20px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  background: rgba(250, 247, 241, .97);
  border-bottom: 1px solid #e5d8c1;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.topbar-inner {
  width: min(100%, 1280px);
  max-width: 1280px;
  min-height: 75px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  font: 500 1.5rem var(--serif);
}

.brand img {
  width: 34px;
  height: 34px;
}

.brand em {
  color: var(--gold);
  font-weight: 400;
}

.languages {
  display: flex;
  flex-shrink: 0;
  gap: 2px;
  border-left: 1px solid #e5d8c1;
  padding-left: 12px;
}

.languages button {
  min-width: 42px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--sage);
  font: 400 .8rem var(--sans);
  cursor: pointer;
}

.languages button[aria-pressed="true"] {
  background: var(--cream);
  color: var(--ink);
  box-shadow: inset 0 -2px var(--gold);
}

.menu-toggle,
.home-link {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd2bd;
  border-radius: 8px;
  background: transparent;
  color: var(--sage);
}

.home-link svg {
  width: 22px;
  height: 22px;
}

.home-link svg path {
  vector-effect: non-scaling-stroke;
  stroke-width: 1px;
}

/* The invitation switches to its compact menu at this width. Remove the
   desktop divider at the same point, including phones in landscape. */
@media (max-width: 1100px) {
  .topbar-inner {
    min-height: 67px;
    gap: 12px;
  }

  .languages {
    margin-left: auto;
    padding-left: 0;
    border-left: 0;
  }
}

/* One mobile scale for both pages. */
@media (max-width: 480px) {
  .topbar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .topbar-inner {
    min-height: 64px;
    gap: 8px;
  }

  .brand {
    gap: 10px;
    font-size: 1.5rem;
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .languages button {
    min-width: 36px;
    padding: 0 5px;
  }
}

@media (max-width: 350px) {
  .brand img {
    display: none;
  }
}
