/* Article-page header layout. Keep the account controls inside the header line. */
body > header {
  position: relative;
  box-sizing: border-box;
}

@media (min-width: 801px) {
  body > header {
    height: 124px;
    padding-top: 0;
    padding-bottom: 20px;
  }

  body > header .back {
    align-self: flex-start;
    margin-top: 22px;
  }

  body > header .article-member-actions {
    display: flex !important;
    position: absolute;
    top: auto;
    right: 4vw;
    bottom: 15px;
    margin: 0;
  }
}

@media (max-width: 800px) {
  body > header {
    height: 72px;
    min-height: 72px;
    padding: 0 12px;
    align-items: center;
  }

  body > header .brand {
    display: block;
    max-width: calc(100% - 116px);
    overflow: hidden;
    font-size: clamp(17px, 5.25vw, 22px);
    line-height: 1;
    letter-spacing: -1.6px;
    text-overflow: clip;
    white-space: nowrap;
  }

  body > header .back {
    display: none;
  }

  body > header .article-member-actions {
    display: flex !important;
    position: absolute;
    top: 50%;
    right: 10px;
    bottom: auto;
    transform: translateY(-50%);
    margin: 0;
    gap: 4px;
  }

  body > header .article-member-actions a {
    padding: 7px 7px;
    font-size: 9px;
  }
}
