html body #navbar-main {

  /* ----------------------------------
   * Fixed Header (top layer)
   * ---------------------------------- */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background-color: var(--agold);
  background-color: transparent;



  a.navbar-brand {
    padding-top: 0px;
    padding-bottom: 0px;
    margin-right: 0px;
    /* margin-left: 20px; */
    /* height: 25px; */
  }

  /* ----------------------------------
   * Logo (always visible above menu)
   * ---------------------------------- */
  .collab-header-logo {
    position: relative;
    z-index: 1150;
    margin-left: 10px;
    display: inline-flex;
    align-items: center;

    img {
      height: 25px;
      width: auto;
      display: inline-block;

      opacity: 0;

      /* Reverse-order hide delays (3 → 2 → 1) */
      &.slice-1 {
        transition-delay: 0.3s;
      }

      &.slice-2 {
        transition-delay: 0.15s;
      }

      &.slice-3 {
        transition-delay: 0s;
      }

      transition: opacity 0.6s ease;
    }

    &.is-revealed {
      img {
        opacity: 1;
      }

      /* Forward-order reveal delays (1 → 2 → 3) */
      .slice-1 {
        transition-delay: 0s;
      }

      .slice-2 {
        transition-delay: 0.15s;
      }

      .slice-3 {
        transition-delay: 0.3s;
      }
    }
  }


  /* ----------------------------------
   * Links / Typography
   * ---------------------------------- */
  a,
  li span {
    color: var(--cdarkgrey);
    color: #fff;
    font-weight: normal;
    text-decoration: none;
    letter-spacing: 1px;
    /* font-family: var(--titlefont); */
    font-family: var(--font-body);
    padding-left: 0;
    padding-right: 0;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
  }



  a:hover {
    color: var(--scream);
  }

  li {
    text-align: center;
  }

  li.active::before,
  li.active::after {
    content: "*";
    position: relative;
    top: 7px;
    font-size: 2rem;
    padding: 5px;
    color: var(--scream);
    left: -1px;
    ;

  }

  li a,
  li span {
    font-size: 1.5rem;
    display: inline-block;
    cursor: pointer;
    letter-spacing: 3px;
    font-weight: 100;
    ;
  }

  li a.lang-menu-item,
  span.lang-separator {
    font-size: 1.5rem;
  }

  span.lang-separator {
    color: white;
    font-weight: 100;
    position: relative;
    top: 0px;
    ;
  }

  .menu-accordion-content li a {
    font-size: 1rem;
    padding: 0.3rem;
  }

  .menu-accordion-content li:first-of-type a {
    font-size: 1.4rem;
    ;
  }

  .main-menu ul {
    padding: 0px;
  }

  /* Logo above menu in overlay */
  .nav-overlay-logo {
    margin-bottom: 2.5rem;
    text-align: center;
  }

  .nav-overlay-logo img {
    width: 100px;
    height: auto;
    display: inline-block;
  }

  /* Let region/nav wrappers shrink to content so flex centering works */
  .navbar-collapse>div,
  .navbar-collapse>div>nav,
  .navbar-collapse>div>nav>.navbar-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* ----------------------------------
   * Fullscreen Menu Overlay
   * ---------------------------------- */

  .navbar-collapse {
    position: fixed;
    inset: 0;
    height: 100svh;
    overflow-y: auto;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    background: var(--stealdark);
  }




  .navbar-collapse.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;

    transition: opacity 0.3s ease;
  }

  /* ----------------------------------
   * Fade menu content only
   * ---------------------------------- */
  /* ----------------------------------
   * Animate menu content (show / hide)
   * ---------------------------------- */
  /* .navbar-collapse>.navbar-nav {
    opacity: 0;
    transform: translateY(-12px);
    transition:
      opacity 0.45s cubic-bezier(0.77, 0, 0.175, 1),
      transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);
    will-change: opacity, transform;
  }

  .navbar-collapse.show>.navbar-nav {
    opacity: 1;
    transform: translateY(0);
  } */

  /* ----------------------------------
   * Kill Bootstrap collapse height animation
   * ---------------------------------- */
  /* .navbar-collapse.collapsing {
    height: auto !important;
    transition: none !important;
    overflow: visible !important;
  } */

  /* ----------------------------------
   * Toggler (highest priority)
   * ---------------------------------- */
  .navbar-toggler {
    z-index: 1200;
    border: 0;
    box-shadow: none;
    outline: none;
    /* margin-right: 20px; */
    transition: margin-right 0.45s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 0px;
  }

  /* =========================================================
   * Hamburger toggler (matches current button markup exactly)
   * ========================================================= */

  .hamburger-toggler {
    position: relative;
    display: inline-block;


    width: 50px;
    height: 44px;

    padding: 0;
    border: 0;
    background: none;

    cursor: pointer;
    z-index: 1200;
  }

  /* Hamburger bars */
  .hamburger-line {
    position: absolute;
    left: 10px;

    width: 28px;
    height: 2px;

    background-color: #fff;
    border-radius: 1px;

    pointer-events: none;

    transform-origin: center;

    transition:
      transform 0.35s cubic-bezier(0.77, 0, 0.175, 1),
      opacity 0.2s ease;
  }

  /* resting positions */
  .hamburger-line:nth-of-type(1) {
    top: 12px;
  }

  .hamburger-line:nth-of-type(2) {
    top: 20px;
  }

  .hamburger-line:nth-of-type(3) {
    top: 28px;
  }

  /* active state → double-spin cross */
  .hamburger-toggler:not(.collapsed) .hamburger-line:nth-of-type(1) {
    transform: translateY(8px) rotate(405deg);
  }

  .hamburger-toggler:not(.collapsed) .hamburger-line:nth-of-type(2) {
    opacity: 0;
  }

  .hamburger-toggler:not(.collapsed) .hamburger-line:nth-of-type(3) {
    transform: translateY(-8px) rotate(-405deg);
  }





  .hamburger-toggler.is-animating {
    pointer-events: none;
  }

  /* Attention animation */
  @keyframes hamburger-attention {

    0% {
      transform: scale(1) rotate(0deg);
    }

    20% {
      transform: scale(1.15) rotate(-8deg);
    }

    40% {
      transform: scale(1.15) rotate(8deg);
    }

    60% {
      transform: scale(1.1) rotate(-4deg);
    }

    80% {
      transform: scale(1.05) rotate(4deg);
    }

    100% {
      transform: scale(1) rotate(0deg);
    }

  }

  #navbar-main .navbar-toggler.attention {
    animation: hamburger-attention 0.8s ease;
  }









  /* ----------------------------------
   * Breakpoints (kept intact)
   * ---------------------------------- */
  @media (max-width: 1500px) {}

  @media (max-width: 1200px) {}

  @media (max-width: 992px) {
    #navbar-main.navbar-expand-lg .navbar-toggler {
      display: block;
    }
  }

  @media (max-width: 768px) {

    li a,
    li span {
      font-size: 1.75rem;
      display: inline-block;
      padding-top: 6px;
      padding-bottom: 6px;
    }

    .navbar-collapse {
      padding-top: 0;
    }
  }

  @media (max-width: 576px) {}

}

/* End html body #navbar-main */



/* Allow the Admin Menu to drop over site header for logged in users  */
html body.user-logged-in #navbar-main {
  z-index: 10;
}