/* Header-only navigation update */
#top .adhder-brand-logo{display:none!important}
#top .site-nav .adhder-simple-nav{font-weight:800!important;text-decoration:none!important;display:inline-flex;align-items:center;justify-content:center;transition:background-color .18s,color .18s,transform .18s;padding:10px 14px;border-radius:4px}
#top .site-nav .adhder-simple-nav:hover,#top .site-nav .adhder-simple-nav:focus-visible{background:#090909!important;color:#fff!important;transform:translateY(-1px)}
#top .su-header-actions .adhder-header-action{background:#090909!important;color:#fff!important;border-radius:4px;padding:12px 18px;font-weight:800;text-decoration:none!important;display:inline-flex;align-items:center;justify-content:center;transition:background .2s,color .2s}
#top .su-header-actions .adhder-header-action:hover{background:#8dc63f!important;color:#090909!important}
#top .su-header-actions .adhder-header-register{font-weight:700;text-decoration:none;color:inherit;padding:9px 10px}
#top .su-header-actions .adhder-header-register:hover{text-decoration:underline}
#top .adhder-menu-trigger,#top #adhder-mega-menu{display:none!important}
@media(max-width:760px){#top .site-nav .adhder-simple-nav{width:100%;justify-content:flex-start;padding:12px 16px}}

/* Login only: green by default, black text */
#top .su-header-actions a.adhder-header-action[href="/login.php"]{background:#8dc63f!important;color:#090909!important}
#top .su-header-actions a.adhder-header-action[href="/login.php"]:hover,#top .su-header-actions a.adhder-header-action[href="/login.php"]:focus-visible{background:#090909!important;color:#fff!important}

/* Smooth hover for centre navigation */
#top .site-nav .adhder-simple-nav{transition:background-color .35s ease,color .35s ease,transform .35s ease!important}
/* Mobile-only navigation dropdown */
#top .adhder-mobile-nav-toggle{display:none;border:0;background:#090909;color:white;border-radius:5px;width:42px;height:42px;cursor:pointer;align-items:center;justify-content:center;flex-direction:column;gap:5px;padding:10px}
#top .adhder-mobile-nav-toggle span{display:block;width:20px;height:2px;background:#fff;border-radius:2px}
@media(max-width:760px){
 #top .header-inner{position:relative}
 #top .menu-toggle{display:none!important}
 #top .adhder-mobile-nav-toggle{display:inline-flex!important;flex-shrink:0;order:2}
 #top .su-header-actions .adhder-header-register{padding:9px 4px}
 #top #site-nav{display:none!important;position:absolute!important;top:100%!important;left:0!important;right:0!important;width:100%!important;z-index:9999!important;background:#fff!important;padding:12px!important;box-shadow:0 12px 22px rgba(0,0,0,.16)!important;flex-direction:column!important;align-items:stretch!important;gap:3px!important}
 #top #site-nav.adhder-mobile-open{display:flex!important}
 #top #site-nav .adhder-simple-nav{display:flex!important;color:#090909!important}
 #top #site-nav .adhder-simple-nav:hover,#top #site-nav .adhder-simple-nav:focus-visible{background:#090909!important;color:#fff!important}
}

/* Dashboard button: green background and black text by default */
#top .su-header-actions a.adhder-header-action[href="/members/index.php"]{background:#8dc63f!important;color:#090909!important}
#top .su-header-actions a.adhder-header-action[href="/members/index.php"]:hover,#top .su-header-actions a.adhder-header-action[href="/members/index.php"]:focus-visible{background:#090909!important;color:#fff!important}

/* Compact, right-aligned desktop navigation; hover contrast. */
@media (min-width:761px) {
 body #top.site-header > .header-inner > #site-nav {
  margin-left:auto!important;margin-right:18px!important;
  justify-self:end!important;justify-content:flex-end!important;
  gap:clamp(3px,.55vw,10px)!important;
 }
 body #top.site-header #site-nav > a.adhder-simple-nav {
  padding:6px 9px!important;line-height:1.2!important;
  min-height:0!important;transform:none!important;
 }
}
body #top.site-header #site-nav > a.adhder-simple-nav:is(:hover,:focus-visible) {
 background:#090909!important;color:#fff!important;
}

/* Final navigation layout: direct selectors matching current header markup. */
@media (min-width: 901px) {
 html body #top.site-header .header-inner {display:flex!important;align-items:center!important;}
 html body #top.site-header .header-inner > .adhder-main-brand-group {flex:0 0 auto!important;}
 html body #top.site-header .header-inner > nav#site-nav {display:flex!important;position:static!important;flex:0 1 auto!important;width:auto!important;margin-left:auto!important;margin-right:14px!important;gap:4px!important;align-items:center!important;justify-content:flex-end!important;}
 html body #top.site-header .header-inner > nav#site-nav > a.adhder-simple-nav {padding:5px 8px!important;margin:0!important;line-height:1.15!important;min-height:0!important;height:auto!important;color:#111!important;}
 html body #top.site-header .header-inner > nav#site-nav > a.adhder-simple-nav:hover,
 html body #top.site-header .header-inner > nav#site-nav > a.adhder-simple-nav:focus-visible {background-color:#090909!important;color:#fff!important;}
 html body #top.site-header .header-inner > .su-header-actions {flex:0 0 auto!important;}
}
/* The brand tagline should not be displayed, including if injected by older branding CSS. */
#top .adhder-main-brand-group .brand-tagline, #top .adhder-main-brand-group .brand-subtitle, #top .adhder-main-brand-group .brand-strapline {display:none!important;}


/* Clean final navbar hover: preserve layout and all button styles. */
html body #top.site-header #site-nav a.adhder-simple-nav,
html body #top.site-header #site-nav a.adhder-simple-nav:hover,
html body #top.site-header #site-nav a.adhder-simple-nav:focus-visible {
  background:transparent!important;
  background-color:transparent!important;
  background-image:none!important;
  color:#111!important;
  box-shadow:none!important;
  transform:none!important;
  border-color:transparent!important;
  text-shadow:none!important;
}
html body #top.site-header #site-nav a.adhder-simple-nav:hover,
html body #top.site-header #site-nav a.adhder-simple-nav:focus-visible {
  text-decoration:underline!important;
  text-decoration-thickness:1px!important;
  text-underline-offset:5px!important;
}
