/* Shared navigation only: no page-wide selectors or resets. */
#nav-root {
  --navbar-bg: #192025;
  --navbar-svg-hover: #00ffcc;
  --link-hover-color: #00ffcc;
  --highlight-color: #00ffcc;
  --transition: transform 0.3s ease-in-out;
  font-family: Allo, Arial, sans-serif;
}

#nav-root,
#nav-root * {
  box-sizing: border-box;
}

#nav-root .navbar a {
  text-decoration: none;
}

#nav-root .navbar {
  font-size: 18px;
  line-height: normal;
}

/* Prevent a document stylesheet from changing the logo or button typography. */
#nav-root .navbar svg {
  width: auto;
}

#nav-root .navbar button {
  font-family: inherit;
}

/* -----------------------------------------
   NAVIGATION BAR (ALL PAGES)
------------------------------------------ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--navbar-bg);
  border-bottom: 2px solid var(--link-hover-color);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.navbar svg {
  height: 50px;
  fill: white;
}

.navbar svg:hover {
  fill: var(--navbar-svg-hover);
}

.navbar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.navbar a {
  position: relative;
  color: white;
  margin: 0 10px;
  transition: var(--transition);
}

.navbar a:not(.logo-link)::before {
  content: "";
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle at bottom,
      rgba(0, 255, 204, 0.08) 0%,
      /* centre glow — very soft */
      rgba(0, 255, 204, 0.04) 45%,
      /* mid fade */
      rgba(0, 255, 204, 0.00) 80%
      /* outer fade */
    );
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.navbar>.navbar-links>li>a:not(.logo-link):hover::before {
  opacity: 1;
  transform: scale(1);
}

/*controls the white underline effect on link hover*/
.navbar>.navbar-links>li>a:not(.logo-link)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -20px;
  /* adjust to align with your navbar border */
  width: 100%;
  height: 3px;
  /* thickness of the glow-bar */
  background-color: white;
  /* your #00ffcc accent */
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
  pointer-events: none;
}

.navbar>.navbar-links>li>a:hover::after {
  transform: scaleX(1);
}

.navbar a:hover {
  color: var(--highlight-color);

}

#menu-toggle {
  display: none;
  font-size: 40px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Desktop default */
#tableHeader {
  display: block;
}

#visibleHeader {
  display: none;
}

.navbar-links {
  list-style: none;
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.navbar-links a {
  font-size: clamp(12px, 1.2vw, 16px);
  padding: clamp(6px, 0.8vw, 10px) clamp(8px, 1vw, 14px);
  white-space: nowrap;
}


.navbar-links.right {
  margin-left: auto;
  margin-right: 25px;
}

/* ------------------------- */
/*  MOBILE NAVBAR – FLOATING */
/* ------------------------- */
@media (max-width: 1620px) {

  /* Keep navbar, but simplify it on mobile */
  .navbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 8px 12px;
    background-color: transparent;
    z-index: 100;
    border: 0px;
    box-shadow: 0 0 0 0;
  }

  /* Logo stays top-left, nothing special needed */
  .navbar>a:first-child {
    display: inline-flex;
    align-items: center;
  }

  /* Hide normal nav lists by default on mobile */
  .navbar-links,
  .navbar-links.right {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .navbar a:not(.logo-link):hover::before {
    opacity: 1;
    transform: scale(1);
  }

  .navbar a:not(.logo-link)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -20px;
    /* adjust to align with your navbar border */
    width: 100%;
    height: 10px;
    /* thickness of the glow-bar */
    background-color: transparent;
    /* your #00ffcc accent */
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
    pointer-events: none;
  }

  /* FLOATING HAMBURGER BUTTON (bottom-right) */
  #menu-toggle {
    display: block;
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    /* avoid iOS Safari bar */
    right: 16px;
    z-index: 10000;

    font-size: 26px;
    line-height: 1;
    padding: 12px 14px;
    border-radius: 999px;
    border: none;
    cursor: pointer;

    background-color: #00ffcc;
    /* tweak to match your accent color */
    color: #111;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }

  .navbar-links.right {
    display: none !important;
  }

  /* DROPDOWN MENU (opens above the button) */
  .navbar-links.show,
  .navbar-links.right.show {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    /* above the button */
    right: 16px;
    width: 70vw;
    /* nice thumb-sized panel */
    max-width: 320px;
    background-color: #222;
    border-radius: 8px;
    padding: 8px 0;
    gap: 4px;
    z-index: 10000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  }

  .navbar-links li,
  .navbar-links.right li {
    width: 100%;
  }

  .navbar-links a,
  .navbar-links.right a {
    display: block;
    width: 100%;
    padding: 10px 14px;
    text-decoration: none;
    /* inherit your existing font/color, or: */
    color: #fff;
  }

  .navbar-links a:hover,
  .navbar-links.right a:hover {
    background-color: #333;
  }

  .navbar svg {
    display: none;
  }

}



/* Parent needs to anchor the dropdown */
.navbar-links .has-submenu {
  position: relative;
}


/* Dropdown hidden by default */
.navbar-links .submenu {
  display: none;
  position: absolute;
  top: 140%;
  left: 10px;

  min-width: 180px;
  margin: 0;
  padding: 0;

  list-style: none;
  z-index: 1000;
  padding-top: 6px;

}


/* Show on mouse hover or keyboard focus */
.navbar-links .has-submenu:hover>.submenu,
.navbar-links .has-submenu:focus-within>.submenu {
  display: block;
}


/* Dropdown links */
.navbar-links .submenu li {
  width: 100%;
  background: var(--navbar-bg);
  border-bottom: 1px solid var(--highlight-color);
  border-radius: 0 0 6px 6px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}


.navbar-links .submenu a {
  display: block;
  white-space: nowrap;
  padding: 10px 14px;
}


@media (max-width: 700px) {

  .navbar-links .has-submenu .submenu {
    display: none;
    position: static;

    min-width: 0;
    border: 0;
    box-shadow: none;
    background: none;
  }

  .navbar-links .submenu a {
    padding-left: 28px;
    font-size: 0.9em;
  }
}

.hidden {
  display: none;
}

/* The TOP entry inside the main menu is for the collapsed menu only. */
#nav-root .mobile-top-link {
  display: none;
}

@media (max-width: 1620px) {
  #nav-root .navbar-links.show .mobile-top-link {
    display: block;
  }
}

/* The right-hand menu is deliberately folded into the primary mobile menu. */
@media (max-width: 1620px) {

  #nav-root .navbar-links.right,
  #nav-root .navbar-links.right.show {
    display: none !important;
  }
}

#nav-root .navbar {
  max-width: 100%;
}

#nav-root .mobile-only-link {
  display: none;
}

@media (max-width: 1620px) {
  #nav-root .navbar-links.show .mobile-only-link {
    display: block;
  }
}

@media (max-width: 1620px) {
  #nav-root .navbar-links .has-submenu>.submenu {
    display: none !important;
  }
}

@media (max-width: 1620px) {

  /* Remove desktop underline effect */
  #nav-root .navbar a::after {
    display: none !important;
  }

  /* Remove desktop radial hover glow */
  #nav-root .navbar a::before {
    display: none !important;
  }

}