/* Initial state - shared styles */
.site-header {
  z-index: 101;
  width: 100%;
  transition: background-color 0.3s ease;
}

.site-header__inner {
  position: relative;
  z-index: 1;
  flex-grow: 1;
  width: 100%;
  transition: background-color 0.3s ease;
}

/* === Logged-in user: static (not fixed) and solid color === */
body.user-logged-in .site-header {
  position: relative;
  background-color: #004C97 !important;
}

body.user-logged-in .site-header__inner {
  background: #004C97 !important;
}

/* === Anonymous user: fixed, overlay at top, transparent background === */
body.user-anonymous .site-header {
  position: fixed;
  left: 0;
  background-color: transparent !important;
}

body.user-anonymous .site-header__inner {
  background: transparent !important;
}

/* === On scroll: change background === */
body.user-anonymous.scrolled .site-header__inner {
  background: #004C97 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Scroll behavior: background and top */
body.user-anonymous.scrolled .site-header {
  top: 0 !important;
}