details > summary, details {
    border: none !important;
}

/* Adjust this value to match the sticky menu height */
html {
  scroll-padding-top: 70px; 
}

.bg-success {
    background-color: #d4edda !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}
* {
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}
/* Navigation */
.sticky-nav {position:sticky; top:0; z-index:100; background:#f5f5f5; width:100%; box-shadow:0 2px 4px rgba(0,0,0,.1); border: 2px solid #f5f5f5;
   border-radius: 8px;}
.tab-nav {display:flex; background:#f5f5f5; margin:0; padding:0; list-style:none; align-items:center;}
.tab-nav li {margin:0; position:relative;}
.tab-nav li:not(:last-child)::after {content:""; position:absolute; right:0; top:20%; height:60%; width:1px; background:rgba(255,255,255,.5);}

/* Buttons and links */
.tab-nav button, .tab-nav a {background:#f5f5f5; color:#333333; border:none; padding:10px 20px; cursor:pointer; font-size:.9em; text-align:center; white-space:nowrap; text-decoration:none; display:block;}
.tab-nav button:hover, .tab-nav a:hover {background:#eeeeee; text-decoration:none;}

/* Dropdown */
.dropdown {position:relative;}
.dropdown-toggle {padding-right:25px !important;}
.caret {display:inline-block; width:0; height:0; margin-left:5px; vertical-align:middle; border-top:4px dashed; border-right:4px solid transparent; border-left:4px solid transparent;}
.dropdown-menu {
  display:none; 
  position:absolute; 
  top:100%; 
  left:0; 
  z-index:1000; 
  min-width:220px; 
  padding:5px 0; 
  margin:0; 
  list-style:none; 
  background:#fff; 
  border:1px solid rgba(0,0,0,.15); 
  border-radius:4px; 
  box-shadow:0 6px 12px rgba(0,0,0,.175);
}
.dropdown-menu li {display:block; width:100%;}
.dropdown-menu a {
  background:#fff; 
  color:#333; 
  width:100%; 
  padding:8px 20px; 
  text-align:left; 
  font-weight:400;
  white-space: normal !important; /* Force text to wrap */
  word-wrap: break-word;
  overflow-wrap: break-word;
  line-height: 1.4;
}
.dropdown-menu a:hover {background:#f5f5f5; color:#333333;}

/* Fix dropdown width */
@media (min-width: 768px) {
  .dropdown-menu {
    max-width: 500px; /* Limit width on desktop */
  }
  
  /* Dropdown hover behavior - only on desktop */
  .dropdown:hover .dropdown-menu {
    display: block;
  }
}

/* Show dropdown when it has the show class */
.dropdown-menu.show {
  display: block;
}

/* List reset */
.list-inline {padding-left:0; list-style:none; margin:0;}
.list-inline > li {display:inline-block;}

/* Print-only elements */
.print-only {display:none;}

/* Mobile menu toggle button */
.mobile-menu-toggle {
  display: none;
  background-color: #f5f5f5;
  padding: 10px 15px;
  text-align: left;
}
#menu-toggle {
  background: transparent;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  padding: 8px 12px;
}
.menu-icon {
  display: inline-block;
  width: 25px;
  height: 3px;
  background-color: white;
  position: relative;
  margin: 0 auto;
}

.menu-icon:before,
.menu-icon:after {
  content: '';
  display: block !important;
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: white;
  left: 0;
}

.menu-icon:before {
  top: -8px;
}

.menu-icon:after {
  bottom: -8px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
} 
/* Make images responsive */
.img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive styles */
@media (max-width: 767px) {
  .banner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px;
  }
  
#menu-toggle {
    color: #333;
  }

.menu-icon {
    background-color: #333;
  }
  
  .menu-icon:before,
  .menu-icon:after {
    background-color: #333;
  }
  .app-logo {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .title {
    font-size: 20px;
  }
  
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: block;
  }
  
  /* Hide the menu by default on mobile */
  .tab-nav {
    display: none;
    flex-direction: column;
  }
  
  /* Show menu when toggled */
  .tab-nav.show-mobile-menu {
    display: flex !important;
  }
  
  /* Ensure the menu is properly hidden by default on mobile */
  .tab-nav:not(.show-mobile-menu) {
    display: none !important;
  }
  
  /* Full width tabs on mobile */
  .tab-nav li {
    width: 100%;
  }
  
  /* Remove vertical dividers on mobile */
  .tab-nav li:not(:last-child)::after {
    display: none;
  }
  
  /* Adjust dropdown positioning */
  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    margin-top: 0;
    padding-left: 20px;
  }
  
  /* Adjust dropdown toggle */
  .dropdown-toggle {
    width: 100%;
    text-align: left;
  }
  
  /* Adjust button padding */
  .tab-nav button {
    padding: 12px 15px;
    text-align: left;
    font-size: 16px;
  }
  
  /* Adjust buttons */
  .btn {
    margin-bottom: 10px;
    white-space: normal;
  }
  
  /* Disable hover behavior on mobile */
  .dropdown:hover .dropdown-menu {
    display: none;
  }
}

/* Medium screens */
@media (min-width: 768px) and (max-width: 991px) {
  .tab-nav button {
    padding: 10px 12px;
    font-size: 14px;
  }
}

/* Non-print styles */
#print-toc {
    display: none; /* Hide TOC by default in normal view */
}