/* =====================================================
   UHDARC TOP NAVBAR — TRADITIONAL + STABLE
   + Talkgroups dropdown (DMR / P25 / YSF) — NO ARROW
   + Mobile: collapsible menu (not always visible)
   + Mobile: auto-hide on scroll down (shows on scroll up)
   ===================================================== */

#uh-navbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;

  background: var(--surface);
  border-bottom: 1px solid var(--line);

  transition: transform 200ms ease;
}

/* Auto-hide behavior (mobile only via JS) */
#uh-navbar.uh-hide{
  transform: translateY(-110%);
}

.uh-nav-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 18px;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* ---------- BRAND ---------- */

.uh-brand{
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  margin-right: auto;
}

.uh-logo{
  font-family: var(--mono);
  font-weight: 900;
  letter-spacing: .14em;
  font-size: 16px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}

.uh-tagline{
  font-size: 13px;
  color: var(--muted);
}

/* ---------- MOBILE TOGGLE BUTTON ---------- */

.uh-nav-toggle{
  display: none; /* shown on mobile */
  align-items: center;
  gap: 10px;

  padding: 8px 12px;
  border-radius: 10px;

  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);

  font-family: var(--mono);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;

  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.uh-nav-toggle:hover{
  background: rgba(255,106,0,.08);
}

.uh-nav-toggle:focus-visible{
  outline: 2px solid rgba(255,106,0,.65);
  outline-offset: 2px;
}

.uh-burger{
  width: 18px;
  height: 12px;
  display: inline-block;
  position: relative;
}

.uh-burger::before,
.uh-burger::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.uh-burger::before{
  top: 0;
  box-shadow: 0 5px 0 0 var(--text);
}

.uh-burger::after{
  bottom: 0;
}

/* ---------- NAV LINKS ---------- */

.uh-nav-links{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.uh-nav-links a{
  padding: 8px 12px;
  border-radius: 8px;

  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;

  text-decoration: none;
  color: var(--text);
}

.uh-nav-links a:hover{
  background: rgba(255,106,0,.08);
}

.uh-nav-links a.active{
  background: var(--accent);
  color: #000;
}

/* =====================================================
   TALKGROUPS DROPDOWN (NO ARROW)
   ===================================================== */

.uh-nav-dd{
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Make the trigger button look EXACTLY like the other nav links */
.uh-nav-dd-trigger{
  padding: 8px 12px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--text);

  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;

  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.uh-nav-dd-trigger:hover{
  background: rgba(255,106,0,.08);
}

.uh-nav-dd-trigger.active{
  background: var(--accent);
  color: #000;
}

/* Dropdown menu */
.uh-nav-dd-menu{
  position: absolute;
  top: calc(100% + 8px);
  left: 0;

  min-width: 210px;
  padding: 8px;
  border-radius: 12px;

  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);

  display: none;
  z-index: 2100;
}

.uh-nav-dd.open .uh-nav-dd-menu{
  display: block;
}

/* Menu items */
.uh-nav-dd-menu a{
  display: block;
  padding: 10px 12px;
  border-radius: 10px;

  text-decoration: none;
  color: var(--text);

  font-family: var(--mono);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.uh-nav-dd-menu a:hover{
  background: rgba(255,106,0,.10);
}

.uh-nav-dd-trigger:focus-visible,
.uh-nav-dd-menu a:focus-visible{
  outline: 2px solid rgba(255,106,0,.65);
  outline-offset: 2px;
}

/* =====================================================
   MOBILE: COLLAPSIBLE NAV PANEL (NOT ALWAYS VISIBLE)
   ===================================================== */

@media (max-width: 700px){
  /* Keep the bar fixed, but compact. Nav panel is hidden until opened. */
  .uh-nav-toggle{
    display: inline-flex;
  }

  /* The nav links become a panel that is hidden by default */
  .uh-nav-panel{
    display: none;
    width: 100%;
    padding-top: 6px;
    border-top: 1px solid var(--line);
    margin-top: 4px;
  }

  #uh-navbar.uh-mobile-open .uh-nav-panel{
    display: flex;
  }

  .uh-nav-links{
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .uh-nav-links a{
    width: 100%;
    text-align: left;
    padding: 12px 12px;
    border-radius: 10px;
  }

  .uh-nav-dd{
    width: 100%;
    display: block;
  }

  .uh-nav-dd-trigger{
    width: 100%;
    text-align: left;
    padding: 12px 12px;
    border-radius: 10px;
  }

  .uh-nav-dd-menu{
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 6px;
    box-shadow: none;
  }

  .uh-nav-dd-menu a{
    padding: 12px 12px;
  }
}
