/* Global menu shell, placement, logo and shared menu-level variables. */

.top-menu {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  width: 100%;
  padding: 16px var(--page-gutter) 0;
  pointer-events: none;
  font-family: var(--font-menu);
  --mobile-menu-top-space: 104px;
  --mobile-safe-bottom: max(20px, env(safe-area-inset-bottom, 0px));
  --dropdown-base:
    radial-gradient(circle at 72% 18%, var(--tech-glow-sm), transparent 14rem),
    linear-gradient(135deg, rgba(31, 36, 30, .84), rgba(18, 22, 18, .80) 54%, rgba(27, 32, 26, .83));
  --dropdown-active:
    radial-gradient(circle at 72% 16%, var(--tech-glow-lg), transparent 15rem),
    radial-gradient(circle at 18% 100%, rgba(245, 242, 223, .055), transparent 13rem),
    linear-gradient(135deg, rgba(35, 41, 34, .985), rgba(16, 20, 16, .965) 58%, rgba(29, 36, 29, .985));
}

.top-menu-shell {
  width: 100%;
  pointer-events: auto;
  overflow: visible;
}

.top-menu-bar {
  position: relative;
  width: 100%;
  min-height: var(--menu-height);
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
  padding: 10px clamp(18px, 2.1vw, 34px);
  border-radius: 18px;
  overflow: visible;
  background: rgba(22, 27, 22, .58);
  box-shadow: 0 18px 66px rgba(0, 0, 0, .24), 0 0 46px rgba(var(--champagne-rgb), .035), inset 0 1px 0 rgba(255, 255, 255, .09);
  backdrop-filter: blur(10px) saturate(118%);
  transition: background-color .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}

.top-menu-brand {
  width: 60px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  line-height: 0;
}

.top-menu-logo {
  width: auto;
  height: 44px;
  max-width: 60px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(245, 242, 223, .16));
}
