/* Licensed @beui-pro/navbar-expand, refreshed with shadcn 2026-09-13.
   Original dimensions, Geist typography, neutral theme and motion tokens.
   672px breakpoint (instead of 640px) reserves space for five MAJ News links
   and the existing display/theme controls in place of the demo CTA. */
@font-face {
  font-family: "Maj Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/static/fonts/geist-latin.woff2") format("woff2");
}
body.has-topbar { padding-top: 0; }
.beui-navbar-shell {
  --pill-bg: lab(98.84% 0 0);
  --pill-fg: lab(3.04863% 0 0);
  --pill-border: lab(3.04863% 0 0 / .06);
  --pill-muted: lab(96.52% 0 0);
  --pill-muted-fg: lab(42% 0 0);
  position: sticky; top: 0; z-index: 1003;
  width: 100%; padding: 16px 16px 0; pointer-events: none;
}
[data-theme="dark"] .beui-navbar-shell {
  --pill-bg: #151515;
  --pill-fg: lab(95.36% 0 0);
  --pill-border: #ffffff0d;
  --pill-muted: #1c1c1c;
  --pill-muted-fg: lab(55.92% 0 0);
}
.topbar.beui-navbar-expand {
  --text: var(--pill-fg);
  --chip-bg: var(--pill-muted);
  position: relative; inset: auto; z-index: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: min(var(--beui-nav-width, 40rem), calc(100vw - 32px), 47rem);
  height: 48px; min-height: 48px; margin: 0 auto; padding: 0 8px 0 12px;
  border: 1px solid color-mix(in srgb, var(--pill-border) 50%, transparent);
  border-radius: 9999px; background: color-mix(in srgb, var(--pill-bg) 80%, transparent);
  box-shadow: none; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  transform: none; transition: none; will-change: auto; pointer-events: auto;
  font-family: "Maj Geist", ui-sans-serif, system-ui, sans-serif;
  color: var(--pill-fg);
}
@supports (backdrop-filter: blur(24px)) {
  .topbar.beui-navbar-expand { background: color-mix(in srgb, var(--pill-bg) 72%, transparent); }
}
.beui-navbar-expand .topbar-left, .beui-navbar-expand .topbar-right {
  display: flex; align-items: center; flex: 0 0 auto;
}
.beui-navbar-expand .brand {
  display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 0;
  padding: 0; border-radius: 9999px; color: var(--pill-fg); letter-spacing: normal;
}
.beui-navbar-expand .brand .site-brand-logo { width: 28px; height: 28px; flex: none; }
.beui-navbar-expand .brand-name { font-size: 14px; font-weight: 600; line-height: 20px; white-space: nowrap; }
.beui-navbar-expand .topbar-center {
  position: static; display: flex; flex: 0 0 auto; align-items: center;
  width: auto; height: auto; min-height: 0; max-height: none; max-width: none;
  margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none;
  backdrop-filter: none; overflow: visible;
  opacity: var(--beui-nav-opacity, .82); transform: translateX(var(--beui-nav-x, -4px));
}
.beui-navbar-expand .theme-nav {
  position: relative; display: flex; flex-direction: row; align-items: center;
  isolation: isolate; gap: 0; padding: 0; width: auto; max-width: none;
}
.beui-navbar-expand .theme-nav a {
  display: flex; position: relative; align-items: center; justify-content: center;
  flex: none; height: 32px; min-height: 32px; padding: 0 14px; border: 0;
  font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: normal;
  white-space: nowrap; border-radius: 9999px;
  color: var(--pill-muted-fg); background: transparent; transition: color .15s;
}
.beui-navbar-expand .theme-nav a.active, .beui-navbar-expand .theme-nav a:hover { color: var(--pill-fg); background: transparent; }
.beui-navbar-expand .theme-nav::before {
  content: ""; position: absolute; top: 0; left: 0; height: 100%; z-index: -1;
  width: var(--nav-indicator-width, 0px); transform: translateX(var(--nav-indicator-x, 0px));
  opacity: var(--nav-indicator-opacity, 0); border: 0; border-radius: 9999px;
  background: var(--pill-muted); pointer-events: none; transition: opacity .15s;
}
.beui-navbar-expand .topbar-right { gap: 6px; }
/* The category pages retain two utility buttons instead of the demo's CTA. */
.beui-navbar-expand:has(.tools .action-swap + .action-swap) { gap: 4px; }
.beui-navbar-expand .tools { display: flex; align-items: center; gap: 6px; margin: 0; }
.beui-navbar-expand .action-swap { width: 32px; height: 32px; }
.beui-navbar-expand .brand:focus-visible,
.beui-navbar-expand .theme-nav a:focus-visible,
.beui-navbar-expand .menu-toggle:focus-visible { outline: 2px solid color-mix(in srgb, var(--pill-fg) 30%, transparent); outline-offset: 2px; }
.beui-navbar-expand .menu-toggle { display: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 9999px; }
.beui-navbar-expand .menu-toggle-lines { width: 16px; height: 14px; }
.beui-navbar-expand .menu-toggle-lines span { transition: opacity .2s cubic-bezier(.16,1,.3,1); }
@media (max-width: 671px) {
  .beui-navbar-expand .menu-toggle { display: flex; }
  .beui-navbar-expand .topbar-center {
    display: none; position: absolute; top: calc(100% + 5px); left: -1px; right: -1px;
    width: calc(100% + 2px); max-width: 448px; max-height: calc(100dvh - 84px); margin: 0 auto;
    padding: 8px; overflow-y: auto; opacity: 1; transform: none; border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--pill-border) 60%, transparent);
    background: color-mix(in srgb, var(--pill-bg) 95%, transparent);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); box-shadow: none;
  }
  .beui-navbar-expand.mobile-menu-open .topbar-center { display: block; animation: beui-nav-menu-in .2s cubic-bezier(.16,1,.3,1); }
  .beui-navbar-expand.mobile-menu-closing .topbar-center { display: block; animation: beui-nav-menu-out .2s cubic-bezier(.16,1,.3,1) forwards; }
  .beui-navbar-expand .theme-nav { flex-direction: column; align-items: stretch; width: 100%; }
  .beui-navbar-expand .theme-nav::before { display: none; }
  .beui-navbar-expand .theme-nav a { height: auto; min-height: 40px; padding: 10px 12px; justify-content: flex-start; border-radius: 16px; color: var(--pill-fg); }
  .beui-navbar-expand .theme-nav a:hover, .beui-navbar-expand .theme-nav a:focus-visible { background: var(--pill-muted); }
}
@keyframes beui-nav-menu-in { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes beui-nav-menu-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-6px) scale(.985); } }
@media (prefers-reduced-motion: reduce) {
  .beui-navbar-expand .theme-nav::before, .beui-navbar-expand .menu-toggle-lines span { transition: none; }
  .beui-navbar-expand.mobile-menu-open .topbar-center, .beui-navbar-expand.mobile-menu-closing .topbar-center { animation: none; }
}
