/* The full company wordmark needs a landscape container at every breakpoint. */
body .brand .brand-mark:has(img),
body .story-brand__mark,
body .auth-mobile-brand > span,
body .portal-profile-brand > span {
  width: 112px !important;
  height: 48px !important;
  min-width: 112px;
  flex: 0 0 112px;
  padding: 6px 8px !important;
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
}
body .brand .brand-mark:has(img) img,
body .story-brand__mark img,
body .auth-mobile-brand > span img,
body .portal-profile-brand > span img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain !important;
  object-position: center;
}

/* Department symbols are square icons, not landscape company wordmarks. */
body .brand .brand-mark:not(:has(img)),
body .sidebar-brand-mark:not(:has(img)) {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px;
  max-width: 36px;
  flex: 0 0 36px;
  padding: 0 !important;
  box-sizing: border-box;
  display: grid !important;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}
body :is(.brand-mark,.sidebar-brand-mark):not(:has(img)) > i {
  width: 1.25em;
  text-align: center;
  font-size: inherit;
  line-height: 1;
}
