/* Load after existing header styles. Runtime opts in only the existing .header root. */
.header[data-gmc-header-bar-ready="true"] {
  --gmc-header-bar-progress: 0;
  --gmc-header-bar-tint: 4, 48, 66;
  isolation: isolate;
  background: transparent !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.header[data-gmc-header-bar-ready="true"] > [data-gmc-header-bar-background] {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  pointer-events: none;
  background: rgba(var(--gmc-header-bar-tint), .84);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
  opacity: var(--gmc-header-bar-progress);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: opacity 160ms ease-out;
}

/* Keep direct navigation readable; never apply an opacity animation to its content. */
.header[data-gmc-header-bar-ready="true"] > nav {
  opacity: 1 !important;
  visibility: visible !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .72);
}

.header[data-gmc-header-bar-ready="true"] :is(a, button):focus-visible {
  outline: 2px solid var(--lemon, #f9f562);
  outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
  .header[data-gmc-header-bar-ready="true"] > [data-gmc-header-bar-background] {
    transition: none;
  }
}
