/* Rev 2.5.2: Canopy Command Bar header theme. */
.site-header {
  position: sticky;
  isolation: isolate;
  grid-template-columns: minmax(220px, 270px) minmax(0, 1fr) max-content;
  gap: clamp(0.75rem, 1.8vw, 1.5rem);
  min-height: 88px;
  padding: 7px 24px 9px;
  border-bottom: 0;
  background: linear-gradient(100deg, #fbfcfd 0%, #f1f6f7 52%, #e7eff1 100%);
  box-shadow: 0 9px 26px rgba(29, 57, 68, 0.14), inset 0 -1px 0 rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px) saturate(1.04);
}

.site-header::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(112deg, rgba(255, 255, 255, 0.52) 0 26%, rgba(69, 116, 94, 0.07) 52%, rgba(183, 139, 67, 0.06) 100%);
}

.site-header::after {
  content: "";
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  pointer-events: none;
  opacity: 0.76;
  background: linear-gradient(90deg, #294653 0 22%, #4f876d 44% 80%, #b58b49 100%);
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.site-header .brand {
  position: relative;
  isolation: isolate;
  display: block;
  width: min(25vw, 270px);
  min-width: 220px;
  height: 82px;
  padding: 0 20px 13px 0;
  overflow: visible;
}

.site-header .brand::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 9px -6px 11px -5px;
  border-radius: 0;
  pointer-events: none;
  opacity: 0.24;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), rgba(226, 238, 240, 0.24) 76%, transparent 100%);
  filter: blur(8px);
  box-shadow: none;
}

.site-header .brand img {
  position: relative;
  z-index: 1;
  display: block;
  width: min(100%, 205px);
  height: auto;
  max-width: 205px;
  max-height: none;
  object-fit: contain;
  object-position: left center;
  opacity: 1;
  mix-blend-mode: multiply;
  filter: saturate(1) contrast(1.04) drop-shadow(0 4px 7px rgba(28, 58, 71, 0.11));
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 94%, rgba(0, 0, 0, 0.88) 97%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 94%, rgba(0, 0, 0, 0.88) 97%, transparent 100%);
}

.site-header .brand .revision-stamp {
  position: absolute;
  z-index: 2;
  left: 19px;
  bottom: 1px;
  padding: 1px 5px;
  border: 0;
  border-radius: 3px;
  background: rgba(240, 247, 248, 0.74);
  color: #172a38;
  font-size: 10px;
  line-height: 1.2;
  opacity: 0.82;
}

.site-header .site-nav,
.site-header .auth-actions {
  min-height: 42px;
  padding: 4px;
  border-radius: 8px;
}

.site-header .site-nav {
  justify-content: center;
  gap: 2px;
  flex-wrap: nowrap;
  overflow: hidden;
  border: 1px solid rgba(30, 65, 75, 0.86);
  background: linear-gradient(180deg, #254750 0%, #193740 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 6px 16px rgba(24, 53, 61, 0.16);
}

.site-header .site-nav a {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 32px;
  padding: 7px 10px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  color: rgba(248, 252, 251, 0.88);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.site-header .site-nav a:hover,
.site-header .site-nav a.active {
  border-color: transparent;
  background: rgba(95, 152, 123, 0.3);
  color: #fff;
  box-shadow: inset 0 -2px 0 #8fc5a7;
  transform: none;
}

.site-header .auth-actions {
  gap: 4px;
  border: 1px solid rgba(151, 174, 184, 0.44);
  background: rgba(255, 255, 255, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), 0 5px 14px rgba(29, 57, 68, 0.06);
}

.site-header .auth-actions .button,
.site-header .auth-actions .profile-chip {
  min-height: 32px;
  border-radius: 5px;
  box-shadow: none;
}

.site-header .auth-actions .button.primary {
  border-color: #447860;
  background: #447860;
  color: #fff;
}

.site-header .auth-actions .button.primary:hover {
  border-color: #365f4c;
  background: #365f4c;
}

@media (max-width: 1280px) {
  .site-header {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  }

  .site-header .brand {
    width: min(32vw, 300px);
    min-width: 220px;
    height: 82px;
  }

  .site-header .auth-actions {
    grid-column: 2;
    justify-self: end;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 6px 12px 10px;
  }

  .site-header .brand {
    width: min(82vw, 300px);
    min-width: 0;
    height: 78px;
  }

  .site-header .brand img {
    width: min(100%, 190px);
    max-width: 190px;
  }

  .site-header .site-nav,
  .site-header .auth-actions {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  .site-header .site-nav {
    justify-content: flex-start;
  }

  .site-header .auth-actions {
    grid-column: 1;
    justify-self: stretch;
  }

  .site-header .site-nav a {
    flex: 0 0 102px;
  }

  .site-header .auth-actions .button,
  .site-header .auth-actions .profile-chip {
    flex: 0 0 auto;
  }
}