/*****************************************************
NAVIGATION
*****************************************************/

@media screen {

/*****************************************************
TOPNAV
*****************************************************/

.navbar {
  /* Box Model */
  padding: 0.25rem var(--spacing-sm);

  /* Typography */
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-on-dark);

  /* Visual */
  background-color: var(--bg-nav);
  border-bottom: 1px solid var(--accent-border);

  /* Position — sticky so nav locks to top when scrolled past */
  position: sticky;
  top: 0;
  z-index: 99;
}

/* Inner wrapper centers brand + nav as a group */
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
  flex-wrap: wrap;
}

@media (min-width: 992px) {
  .navbar-inner {
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: nowrap;
  }
}

.navbar-brand {
  /* Typography */
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-on-dark);
  text-decoration: none;

  /* Visual */
  border-bottom: none;
}

.navbar-brand:hover {
  /* Typography */
  color: var(--text-on-dark);
}

/* Remove global link styles from all nav elements */
.navbar a,
.navbar a:visited {
  border-bottom: none;
  color: inherit;
}

.navbar a:visited:hover,
.navbar a:visited:focus {
  color: var(--interactive-hover);
}

/* Hamburger button — hidden on desktop */
.navbar-toggler {
  display: flex;
  align-items: center;
  padding: 0.35rem 0.5rem;
  background: transparent;
  border: 1px solid var(--text-on-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.navbar-toggler:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(232, 228, 223, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: contain;
}

/* Collapsible nav — hidden by default on mobile */
.navbar-collapse {
  display: none;
  width: 100%;
  padding-bottom: var(--spacing-sm);
}

.navbar-collapse.show {
  display: block;
}

/* Desktop: always show the nav, no hamburger */
@media (min-width: 992px) {
  .navbar-toggler {
    display: none;
  }

  .navbar-collapse {
    display: flex !important;
    align-items: center;
    width: auto;
    padding-bottom: 0;
  }
}

.navbar-nav {
  /* Display */
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

@media (min-width: 992px) {
  .navbar-nav {
    flex-direction: row;
    gap: var(--spacing-md);
  }
}

/* Use Bootstrap's .nav-link class for consistency */
.nav-link {
  /* Box Model */
  display: inline-block;
  padding: 0.3rem var(--spacing-sm);

  /* Typography */
  text-decoration: none;
  color: var(--text-on-dark) !important;

  /* Visual */
  border-radius: var(--radius-sm);

  /* Interactivity */
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.nav-link:visited {
  /* Typography */
  color: var(--text-on-dark) !important;
}

.nav-link:hover,
.nav-link:focus {
  /* Typography */
  color: var(--interactive-hover) !important;
}


ul .dropdown-menu {
  /* Visibility — hidden by default, shown via JS .show class */
  display: none;

  /* Positioning */
  position: absolute;
  z-index: 100;
  min-width: 12rem;

  /* Box Model */
  padding: 0.25rem 0;
  list-style: none;

  /* Visual */
  background-color: var(--bg-nav);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

ul .dropdown-menu.show {
  display: block;
}

/* On mobile, dropdown flows inline (not absolutely positioned) */
@media (max-width: 991px) {
  ul .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-left: 2px solid var(--border-light);
    border-radius: 0;
    padding-left: var(--spacing-md);
    margin-left: var(--spacing-sm);
  }
}

.dropdown-item {
  /* Display */
  display: block;

  /* Box Model */
  padding: 0.25rem 0.75rem;

  /* Typography */
  font-size: 0.85rem;
  line-height: 1.3;
  color: var(--text-on-dark);
  text-decoration: none;

  /* Visual */
  background: transparent;
  border-left: 2px solid transparent;

  /* Interactivity */
  transition: border-color var(--transition-fast);
}

.dropdown-item:hover,
.dropdown-item:focus {
  /* Typography */
  color: var(--interactive-hover);

  /* Visual */
  background: transparent;
  border-left-color: var(--interactive-hover);
}

.dropdown-divider {
  /* Box Model */
  margin: 0.1rem 0;

  /* Visual */
  border: none;
  border-top: 1px solid var(--text-on-dark);
  opacity: 0.3;
}

.nav-link.dropdown-toggle[aria-expanded="true"] {
  color: var(--text-on-dark);
  background-color: transparent;
}

/* Position parent li relative for dropdown absolute positioning */
.nav-item.dropdown {
  position: relative;
}


/*****************************************************
SIDENAV - See nav-left.css and nav-profile.css for sidebar styling
*****************************************************/





/*****************************************************
BREADCRUMB NAVIGATION
*****************************************************/
.breadcrumb-nav-list {
  /* Display */
  display: flex;
  list-style: none;
  gap: 8px;
  
  /* Box Model */
  margin: 0 0 16px 0;
  padding: 0;
}

.breadcrumb-nav-list-item a {
  /* Typography */
  font-size: 1rem;
  text-decoration: none;
  color: var(--info);
}

.breadcrumb-nav-list-item span {
  /* Typography */
  font-size: 1rem;
  color: var(--text-muted);
}


} /* end media screen */


.navbar-workshop-toggle {
  display: flex;
  align-items: center;
  margin-left: auto;
  padding: 0 1rem;
}

.navbar-workshop-toggle input[type="checkbox"] {
  cursor: pointer;
}

.navbar-workshop-toggle label {
  cursor: pointer;
  margin-left: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-on-dark);
}


/*****************************************************************************/
/*
/* SMALL SCREEN
/*
/*****************************************************************************/

@media (max-width: 768px) {
  .navbar-workshop-toggle {
    padding: 0.5rem 1rem;
    border-top: 1px solid var(--border-light);
  }
}
