/* ==========================================================================
   WAVESLAB CENTRAL THEME OVERRIDES
   ========================================================================== */

/* Navbar Background & Borders */
header, nav, .navbar, #navbar {
  background-color: #0f3460 !important; /* Waves Lab Dark Blue */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Navbar Links Spacing & Color */
.navbar .nav-link, #navbar .nav-link, nav a {
  color: rgba(255, 255, 255, 0.85) !important;
  padding-left: 0.65rem !important;
  padding-right: 0.65rem !important;
  font-weight: 500 !important;
  display: inline-block !important;
}

/* Hover & Active States */
.navbar .nav-link:hover, 
.navbar .nav-item.active .nav-link,
#navbar .nav-link:hover {
  color: #ffffff !important;
}

/* Icons & Search Bar */
.navbar #search-toggle, 
.navbar i,
.navbar .navbar-toggler {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Footer Background & Text */
footer, footer.fixed-bottom {
  background-color: #0f3460 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}

footer, footer.fixed-bottom, footer span, footer a, footer.fixed-bottom a {
  color: rgba(255, 255, 255, 0.8) !important;
}

footer a:hover, footer.fixed-bottom a:hover {
  color: #ffffff !important;
}


/* ==========================================================================
   HIDE ONLY "ctrl k" TEXT (KEEP MAGNIFIER ICON)
   ========================================================================== */

#search-toggle,
button#search-toggle,
.navbar #search-toggle {
  font-size: 0 !important;
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}

#search-toggle kbd,
#search-toggle span {
  font-size: 0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#search-toggle i,
#search-toggle .fa-magnifying-glass {
  font-size: 1rem !important;
  display: inline-block !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

.navbar #search-toggle,
#search-toggle {
  position: relative !important;
  top: 2px !important;
  display: inline-block !important;
  vertical-align: middle !important;
}


/* ==========================================================================
   PUBLICATION FLOATING YEAR MARKERS
   ========================================================================== */

h2.year,
.publications h2.year,
div.publications h2.year,
.bibliography h2.year {
  color: #0f3460 !important;
  opacity: 1 !important;
  font-weight: 800 !important;
  font-size: 2.2rem !important;
  text-shadow: none !important;
  filter: none !important;
}

.publications, .bibliography {
  --global-divider-color: #0f3460 !important;
  --global-text-color-light: #0f3460 !important;
}


/* ==========================================================================
   FORCE REMOVE NUMBERING ("1.") FROM PUBLICATIONS
   ========================================================================== */

/* 1. Remove standard HTML ordered list numbering */
ol.bibliography,
.publications ol,
.bibliography ol {
  list-style: none !important;
  list-style-type: none !important;
  counter-reset: none !important;
  padding-left: 0 !important;
}

/* 2. Remove custom CSS pseudo-element counters if used by the theme */
ol.bibliography li,
.publications ol li,
.bibliography li {
  list-style: none !important;
  list-style-type: none !important;
  counter-increment: none !important;
}

ol.bibliography li::before,
.publications ol li::before,
.bibliography li::before,
ol.bibliography li::marker {
  content: none !important;
  display: none !important;
}

/* ==========================================================================
   HIDE AUTO-GENERATED "REFERENCES" SECTION ONLY ON PROJECT PAGES
   ========================================================================== */

/* Hide any auto-injected References heading or bibliography block that follows .waveslab-project */
.waveslab-project ~ h2,
.waveslab-project ~ .publications,
.post:has(.waveslab-project) > h2,
.post:has(.waveslab-project) > .publications {
  display: none !important;
}


/* Make project/page headers match the custom .header-bar styling */
.post-header {
  background-color: #0f3460 !important;
  color: #ffffff !important;
  padding: 2rem 2.25rem !important;
  border-radius: 14px !important;
  margin-bottom: 2rem !important;
}

.post-header .post-title,
.post-header h1 {
  color: #ffffff !important;
  font-weight: 800 !important;
  margin-bottom: 0.4rem !important;
}

.post-header .post-description,
.post-header p {
  color: #e2e8f0 !important;
  font-size: 1rem !important;
  margin-bottom: 0 !important;
}