
/* Parent menu item */
.menu-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.submenu-toggle {
    border: none;
    background: transparent;
    color: #5a4930;
    cursor: pointer;
    padding: 8px 3px;
    font-size: 14px;
}

/* Dropdown */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #fffdf8;
    border: 1px solid #e5d5b3;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.10);
    z-index: 1000;
    padding: 6px 0;
}

.submenu a {
    display: block;
    padding: 10px 15px;
    white-space: normal;
}

.submenu a:hover {
    background: #f5eddf;
}

/* Desktop hover and keyboard focus */
@media (min-width: 769px) {
    .has-submenu:hover > .submenu,
    .has-submenu:focus-within > .submenu,
    .has-submenu.submenu-open > .submenu {
        display: block;
    }
}

/* Mobile menu */
@media (max-width: 768px) {
    .header .row {
        position: relative;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .main-navigation {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
    }

    .main-navigation.open {
        display: flex;
    }

    .menu-item {
        display: grid;
        grid-template-columns: 1fr auto;
        width: 100%;
        border-bottom: 1px solid #eee5d5;
    }

    .menu-item > a {
        padding: 12px 10px;
    }

    .submenu-toggle {
        padding: 12px 15px;
        font-size: 18px;
    }

    .submenu {
        display: none;
        position: static;
        grid-column: 1 / -1;
        min-width: 0;
        width: 100%;
        border: none;
        border-top: 1px solid #e5d5b3;
        box-shadow: none;
        box-sizing: border-box;
        padding-left: 15px;
    }

    .has-submenu.submenu-open > .submenu {
        display: block;
    }



  .biography-years-menu {
    width: 100%;
    margin-bottom: 12px;
    position: relative;
    clear: both;
  }

  .biography-years-menu > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .biography-years-menu > ul > li {
    position: relative;
    flex: 0 0 auto;
  }

  .biography-years-menu > ul > li > a {
    font-size: 20px;
    padding: 12px 10px;
    white-space: nowrap;
  }

  /* Dropdown */
  .biography-years-menu ul .dropdown-years {
    width: 260px;
    min-width: 0;
    max-width: calc(100vw - 20px);
    left: 0 !important;
    box-sizing: border-box;
  }

  .biography-years-menu ul .dropdown-years li a {
    font-size: 17px;
    line-height: 1.4;
    padding: 10px 12px;
    white-space: normal;
    overflow-wrap: break-word;
  }


}






/* --- SECONDARY HORIZONTAL DECADE BAR (FORCED TO NEXT LINE) --- */
.biography-years-menu {
  width: 100%; /* Spans full width on its own dedicated line */
  display: block; /* Ensures it sits underneath the primary menu block */
  clear: both; /* Prevents floating elements from pulling it upward */
  margin-bottom: 12px; /* Empty space */
    position: relative; 
	/* CRITICAL CHANGE: Dark charcoal background with 85% opacity */
 
}
/* Secondary horizontal decade bar */
.biography-years-menu {
   font-family: 'Oswald Regular';
}


.biography-years-menu ul {
  display: flex;
  flex-direction: row; /* Arranges 1970s, 1980s, etc., side-by-side on this new line */
  list-style: none;
  padding: 10;
  margin: 0;
font-family: 'Oswald Regular';
  background-color: #e6ded1; /* Distinct background row color */
  /* CRITICAL CHANGE: Centers the 1970s, 1980s, etc. in the middle of the row */
  justify-content: center; 
  /* CRITICAL CHANGE: Dark charcoal background with 85% opacity */

  
  /* Optional: Smooth blur effect for modern browsers */
  backdrop-filter: blur(5px); 

}

.biography-years-menu > ul > li {
  position: relative; /* Anchor hook for absolute dropdown layout alignment */
font-family: 'Oswald', sans-serif;
}

.biography-years-menu a {
  	display: block;
padding: 14px 20px;
  	color: #000000;
  	text-decoration: none;
	font-family: 'Oswald Regular';
  	font-size: 24px;
	font-weight:500;
}

.biography-years-menu a:hover {
  color: #fff;
  background-color: #a49685;
}

.biography-years-menu {
    position: relative;
    margin-bottom: 18px;
}

    
/* --- SUBMENU FLY-DOWN SETTINGS (Individual Years Lists) --- */
.biography-years-menu ul .dropdown-years {
    margin-left: 0 !important;
    padding-left: 0 !important;
    left: 0 !important;font-family: 'Oswald', sans-serif;
}

.biography-years-menu-item-has-children > .sub-menu {
    left: 0 !important;
    margin-left: 0 !important;
}
.biography-years-menu ul .dropdown-years {
position: absolute;
    top: 100%;
    left: 0 !important;

    display: none;
    flex-direction: column;
    align-items: stretch;

    /* KEY FIX: give the dropdown enough width */
    width: 250px;
    min-width: 250px;
    max-width: 85vw;
    box-sizing: border-box;

    margin: 0 !important;
    padding: 0 !important;
    list-style: none;

    background-color: #746859;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.biography-years-menu ul .dropdown-years li {
display: block;
    width: 100%;
    min-width: 0;
    flex: 0 0 auto;
    box-sizing: border-box;
}
.biography-years-menu ul .dropdown-years li a {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 15px;
    font-family: 'Oswald Regular';
	font-weight:100;
    font-size: 20px;
    line-height: 1.25;letter-spacing: 0.3px;
    color: #fff;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}
/* Open submenu on hover */
.biography-years-menu > ul > li:hover > .dropdown-years {
    display: flex;
}

/* Hover on individual dropdown entries */
.biography-years-menu ul .dropdown-years li a:hover {
    color: #000;
    background-color: #746859;
}
.biography-years-menu > ul > li:hover > a {
  color: #000;
  background-color: #746859; 
}
.biography-years-menu ul .dropdown-years a {
  padding: 8px 15px;
  font-size: 22px;/* Keeps year numbers and band names strictly on one line */
  white-space: normal; color:#fff;
  font-family: 'Oswald Regular';
 
}

/* Reveal action handler on hover */
.biography-years-menu li:hover .dropdown-years {
  display: flex;
}
.biography-years-menu ul li ul li a:hover {
  color: #000;
  background-color:#746859;
}
/* Keep the current page link highlighted */
.biography-years-menu a.active {
    color: #C9A66B;
}

/* Hover effect */
.biography-years-menu a:hover {
    color: #C9A66B;
}

@media (max-width: 768px) {

.biography-years-menu ul .dropdown-years li a {
    
    font-size: 16px;
	font-weight:600;
    font-family: 'Roboto';
}

}




/* Very small phones */
@media (max-width: 480px) {

  .biography-years-menu > ul > li > a {
    font-size: 17px;
    padding: 10px 7px;
  }

  .biography-years-menu ul .dropdown-years {
    width: 230px;
    max-width: calc(100vw - 16px);
  }

  .biography-years-menu ul .dropdown-years li a {
    font-size: 16px;
    padding: 9px 10px;
  }

.biography-years-menu ul .dropdown-years li a {
    
    font-size: 16px;
    
}




}
