/* Ensure sticky navigation */

/* Dark mode background */
.dark .dark\:bg-neutral-950 {
  background-color: var(--color-gray-100);
}

/* Markdown code blocks control*/
pre {
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Navbar related */
@media (min-width: 768px) {
  .mobile-burger {
    display: none;
  }

  .desktop-nav {
    display: flex !important;
    width: auto !important;
  }

  .nav-links-container {
    flex-direction: row;
    padding-top: 0;
  }
}

nav.sticky,
.sticky-nav {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 999 !important;
  background-color: inherit !important;
}

.logo-image {
  color: inherit;
  display: inline-block;
  overflow: visible;
  max-width: 100%;
}

.logo-image svg path {
  fill: currentColor;
}

.logo-image svg {
  height: 1.6rem;
  width: auto;
  display: block;
  padding-top: 0.22rem;
  overflow: visible;
  shape-rendering: geometricPrecision;
}

/* Footer related */
body > footer {
  margin-top: auto !important;
}

.mobile-only {
  display: block;
}
.desktop-only {
  display: none;
}

@media (min-width: 768px) {
  .mobile-only {
    display: none !important;
  }
  .desktop-only {
    display: block !important;
  }
  .footer-copyright {
    align-self: flex-end;
  }
}

.contact-channels {
  display: flex;
  gap: 1.8rem;
}

.rss-link {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* CV related */
.cv-page body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.cv-page main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-height: 0; /* important for Firefox */
}

.cv-page main > iframe {
  flex-grow: 1;
  width: 100%;
  border: none;
  min-height: 0; /* important for Firefox */
}

/* BibTeX / Publications related */
.badge {
  display: inline-block;
  padding: 2px 6px;
  color: var(--polar-night-0);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  margin-left: 8px;
  cursor: pointer;
}

pre.bibtex-block,
div.abstract-block {
  background: var(--color-gray-200);
  border-left: 4px solid var(--frost-blue);
  padding: 0px;
  margin: 0;
  font-size: 0.9rem;
  overflow-x: auto;
  color: var(--color-gray-900);

  height: 0;
  overflow: hidden;
  transition: height 0.3s ease, margin-top 0.3s ease;
}

pre.bibtex-block.expanded,
div.abstract-block.expanded {
  margin-top: 8px;
}

.badge-bibtex {
  background-color: var(--aurora-green);
}
.badge-bibtex:hover {
  background-color: color-mix(in srgb, var(--aurora-green) 80%, white);
}

.badge-abstract {
  background-color: var(--frost-cyan);
}
.badge-abstract:hover {
  background-color: color-mix(in srgb, var(--frost-cyan) 80%, white);
}

/* Layouts related */
#page {
  padding-top: 25px;
  max-width: 90ch;

}
