/* Shared header and navigation dimensions, matching the home page. */
#announcement-bar {
  height: 44px;
  min-height: 44px;
  max-height: 44px;
  contain: strict;
  overflow: hidden;
  transform: translateZ(0);
}

#main-header {
  contain: layout paint;
  top: 44px;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: transform 0.3s ease;
}

#announcement-bar.header-hidden {
  transform: translateY(-100%) translateZ(0);
}

#main-header.header-scrolled {
  transform: translateY(-44px) translateZ(0);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

#main-header .container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

#announcement-bar p {
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#mobile-menu {
  backdrop-filter: none !important;
  visibility: hidden;
}

#mobile-menu.opacity-100 {
  visibility: visible;
}

nav#main-header a.nav-link.active {
  color: #3b82f6 !important;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 12rem;
  margin-inline: auto;
}

.footer-social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

/* Pages that previously used a compact static header need room for the fixed home-page header. */
.site-chrome-content {
  padding-top: 8rem !important;
}

@media (min-width: 768px) {
  .footer-social-links {
    justify-content: flex-start;
    margin-left: 0;
    margin-right: 0;
  }

  .site-chrome-content {
    padding-top: 10rem !important;
  }

  #main-header.header-scrolled {
    backdrop-filter: blur(8px);
  }

  #mobile-menu.backdrop-blur-xl {
    backdrop-filter: blur(24px) !important;
  }
}

@media (max-width: 767px) {
  #announcement-bar {
    height: 40px;
    min-height: 40px;
    max-height: 40px;
  }

  #main-header {
    top: 40px;
  }

  #main-header.header-scrolled {
    transform: translateY(-40px) translateZ(0);
    backdrop-filter: none;
  }

  #announcement-bar p {
    font-size: 11px;
    line-height: 1.2;
  }
}

@media (max-width: 380px) {
  #announcement-bar p {
    font-size: 10px;
  }
}
