/* Stable navigation and hero framing across desktop widths. */
.topbar {
  height: 84px;
  min-height: 84px;
  padding: 0 clamp(24px, 3vw, 58px);
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  gap: clamp(20px, 2.5vw, 48px);
  align-items: center;
  overflow: hidden;
}
.topbar .brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  line-height: 1;
}
.topbar .brand img {
  display: block;
  width: 46px;
  height: 46px;
  max-width: 46px;
  max-height: 46px;
  object-fit: contain;
}
.topbar .brand span {
  font-size: 1.75rem;
}
.topbar .brand small {
  font-size: 0.56rem;
}
.topbar nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 1.7vw, 30px);
  white-space: nowrap;
}
.topbar nav a {
  font-size: clamp(0.78rem, 0.75vw, 0.92rem);
}
.topbar .mobile-nav {
  display: none;
}
.topbar .language-picker {
  justify-self: end;
  margin-left: 0;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.topbar-actions [data-open-bi],
.topbar-actions [data-open-comms],
.topbar-actions [data-open-event-ops] {
  display: none;
}
.topbar-actions .ghost {
  padding: 10px 14px;
  font-size: 0.82rem;
}
.hero {
  min-height: calc(100vh - 84px);
}
.hero-copy {
  max-width: 760px;
}

@media (max-width: 1320px) {
  .topbar {
    gap: 18px;
  }
  .topbar nav {
    gap: 11px;
  }
  .topbar nav a,
  .topbar .nav-link {
    font-size: 0.72rem;
  }
  .topbar-actions [data-open-session] {
    display: none;
  }
}
@media (max-width: 980px) {
  .topbar {
    display: flex;
    justify-content: space-between;
    height: 74px;
    min-height: 74px;
    gap: 12px;
  }
  .topbar .brand { order: 1; }
  .topbar .language-picker { order: 2; margin-left: auto; }
  .topbar nav {
    display: none;
  }
  .topbar .mobile-nav {
    display: block;
    position: relative;
    order: 3;
  }
  .topbar .mobile-nav summary {
    list-style: none;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    padding: 9px 15px;
    font-weight: 700;
  }
  .topbar .mobile-nav summary::-webkit-details-marker {
    display: none;
  }
  .topbar .mobile-nav div {
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 12px 18px 20px;
    background: #15080f;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.35);
  }
  .topbar .mobile-nav a {
    color: #fff;
    text-decoration: none;
    padding: 13px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .topbar-actions [data-open-member-dashboard] {
    display: none;
  }
  .hero {
    min-height: calc(100vh - 74px);
  }
}
@media (max-width: 560px) {
  .topbar {
    padding: 0 18px;
  }
  .topbar .brand img {
    width: 40px;
    height: 40px;
  }
  .topbar .brand span {
    font-size: 1.5rem;
  }
  .topbar .brand small {
    display: none;
  }
  .topbar .language-picker select {
    max-width: 96px;
  }
  .topbar-actions .ghost {
    padding: 9px 12px;
    font-size: 0.78rem;
  }
}
