/* --- THEME OVERRIDES --- */
[data-md-color-scheme="slate"] .md-header {
  background-color: var(--md-default-bg-color);
}

/* --- DESKTOP LOGO INTERACTION (Breast -> Hover -> Sexy) --- */
.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  display: none;
}

.md-header__button.md-logo {
  background-image: url("/Images/breast.png");
  background-size: 32px;
  background-repeat: no-repeat;
  background-position: center;
  transition: all 0.3s ease;
  width: 3rem;
  height: 3rem;
  display: inline-block;
}

.md-header__button.md-logo:hover {
  background-image: url("/Images/sexy.png");
  transform: scale(1.1);
}

/* --- CUSTOM HEADER NAVIGATION BUTTONS CONTAINER --- */
.custom-header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.custom-header-nav::-webkit-scrollbar {
  display: none;
}

.header-nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  color: inherit;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.nav-icon {
  font-size: 1.2em;
}

/* --- TOP NAVIGATION TABS (SEAMLESS 100% INFINITE CHAIN TICKER WITH VOID FADE) --- */
.md-tabs {
  overflow: hidden !important;
  position: relative;
  width: 100%;
  /* Void Fade Mask on left and right edges for a refined look */
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.md-tabs__list {
  display: flex !important;
  flex-wrap: nowrap !important;
  width: max-content !important;
  will-change: transform;
  animation: seamlessChainTicker 50s linear infinite !important;
}

/* Smoothly pause rotation when user hovers over the navigation bar */
.md-tabs:hover .md-tabs__list,
.md-tabs__list:hover {
  animation-play-state: paused !important;
}

/* 0% to -50% translation creates a 100% seamless infinite looping chain */
@keyframes seamlessChainTicker {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive: Hide text labels on smaller screens to save space */
@media screen and (max-width: 60em) {
  .nav-label {
    display: none;
  }
  .custom-header-nav {
    gap: 5px;
    margin-left: 10px;
  }
  .header-nav-btn {
    padding: 6px;
    border-radius: 50%;
  }
}

/* Adjust size for emoji icons */
.emoji-icon {
  font-size: 1.5rem !important;
  line-height: 1;
}

/* --- SEARCH RESULTS: hide frontmatter tag chips (prevents overlap with search.highlight) --- */
.md-search-result .md-tags {
  display: none !important;
}

/* Safety net if a lone chip still appears in a teaser */
.md-search-result .md-tag {
  display: inline-flex;
  position: static;
  vertical-align: baseline;
  margin: 0.1em 0.15em;
}

.md-search-result .md-tag mark,
.md-search-result mark.md-tag {
  position: static;
  display: inline;
  background: transparent;
}

/* Keep search dialog above sticky tabs / journey "Re-open navigator" */
.md-search,
.md-search__overlay {
  z-index: 5;
}

.md-header {
  z-index: 4;
}
