/* Shared public and vendor header: identical size and placement on every page. */
.cw-public-header, .cw-home-header, .site-header, .cw-portal-header {
  height: 80px;
  min-height: 80px;
  width: min(960px, calc(100% - 48px));
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #f4f5f3;
}
.cw-home-header, .site-header { width: min(960px, 100%); }
.cw-public-brand, .cw-home-brand, .site-header .brand, .cw-portal-brand {
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  color: #202822;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0;
  text-decoration: none;
}
.site-header .brand > span { display: inline-flex; align-items: center; }
.site-header .brand strong { display: block; font-size: 18px; font-weight: 650; line-height: 1.2; letter-spacing: 0; }
.cw-public-brand span, .cw-home-brand span, .site-header .brand small, .cw-portal-brand span {
  display: inline-flex;
  align-items: center;
  min-height: 14px;
  transform: translateY(1px);
  margin: 0 0 0 9px;
  padding: 0 0 0 9px;
  border-left: 1px solid #c9d0cb;
  color: #657069;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  box-sizing: border-box;
  width: 86px;
}
.cw-portal-header { position: fixed; left: 0; right: 0; }
body.cw-shared-brand { padding-top: 80px; }
.cw-shared-brand .side { top: 80px; height: calc(100vh - 80px); }
.cw-shared-brand .app-shell { min-height: calc(100vh - 80px); }
.cw-shared-brand .side .brand-lockup,
.cw-shared-brand .public-shell.login-public .brand-only { display: none; }
.cw-shared-brand .mobile-top > strong { display: none; }
.cw-shared-brand .mobile-top { justify-content: flex-end; }
.site-header > button { grid-column: 3; grid-row: 1; justify-self: end; }
@media (max-width: 760px) {
  .cw-portal-header:has(.cw-mobile-sections),
  .site-header:has(> button:not(.is-hidden)) {
    height: 120px;
    grid-template-rows: 80px 40px;
  }
  .cw-portal-header .cw-mobile-sections,
  .site-header > button:not(.is-hidden) {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
    align-self: start;
  }
  body.cw-shared-brand:has(.cw-portal-header .cw-mobile-sections) { padding-top: 120px; }
}
