/* NAV.CSS — force top nav, kill sidebar rules */

.page-wrap{
  display: flex !important;
  flex-direction: column !important; /* <-- THIS stops the “left column” layout */
}

/* Kill any old template sidebar nav behavior */
#nav ul{
  position: static !important;
  top: auto !important;
  left: auto !important;
}

/* Make labels visible (many templates hide them) */
#nav .label,
.site-nav .label{
  display: inline !important;
}

/* Shared styling for either nav id or class */
#nav,
.site-nav{
  width: 100% !important;
  background: rgba(40,10,15,.85);
  position: sticky;
  top: 0;
  z-index: 9999;
}

#nav ul,
.site-nav ul{
  list-style: none;
  margin: 0;
  padding: 0.9rem 1rem;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 2.25rem;
}

/* If any <br> survived in the nav, don’t let them break the layout */
#nav br,
.site-nav br{
  display: none !important;
}

#nav li,
.site-nav li{
  margin: 0 !important;
}

#nav a,
.site-nav a{
  color: #fff !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .55rem;
  opacity: .9;
}

#nav a:hover,
.site-nav a:hover{
  opacity: 1;
}

#nav a.active,
.site-nav a.active{
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: .35rem;
}

/* VERY important: remove the left “reserved space” main.css adds for the old sidebar */
#main{
  margin-left: 0 !important;
  padding-left: 0 !important;
  width: 100% !important;
}

@media screen and (max-width: 736px){
  #nav ul,
  .site-nav ul{
    flex-wrap: wrap;
    gap: 1rem;
  }
}