.dm-header {
  /* Note: using z-index here breaks the menu button on iOS13 */
  position: relative;
  overflow: hidden;
  background-color: var(--white);
}

.dm-header:after {
  content: "";
  height: calc(var(--brandLogoHeight) / 2);
  background-color: var(--flint);
  width: 100%;
  display: block;
  position: absolute;
  bottom: 0;
}

.dm-header__topBar {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  position: relative;
  top: 0;
  transform: none;
  padding-right: 50px;
  height: calc(var(--brandLogoHeight) / 2);
  background-color: var(--white);
}

.dm-header__topBar>* {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dm-header__logoNavWrapper {
  display: flex;
  align-items: baseline;
}

.dm-header__profileLink {
  margin-left: auto;
}

/* prevent display of text selection in the header (happens when doubleclicking) */
.dm-header::selection {
  color: initial;
  background: initial;
}


.dm-brandLinkWrapper { grid-area: brandLink; }
.dm-header__topBar { grid-area: topBar; }
.dm-hotTopics { grid-area: hotTopics; }

.dm-header {
  user-select: none;
}

.dm-header__inner {
  display: grid;
  grid-template-columns: min-content auto;
  grid-template-areas:
    "brandLink topBar"
    "brandLink hotTopics";
  z-index: 3;
  position: relative;
}

/* site left aligned to show skyscraper */
@media (min-width: 1364px) and (max-width: 1699px) {
  .dm-header__inner {
    margin-left: 0;
  }
}
