.mast-account {
  position: relative;
  flex: 0 0 auto;
  color: var(--navy);
  font-size: 12px;
  font-weight: 650;
}

.mast-account > div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mast-account [hidden] {
  display: none;
}

.mast-account :is(a, button) {
  color: inherit;
  white-space: nowrap;
  padding: 5px 0;
}

.mast-account button {
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.mast-account :is(a, button):hover {
  text-decoration: underline;
}

.mast-account :is(a + a, .mast-account-logout) {
  border-left: 1px solid var(--orange);
  padding-left: 7px;
}

.mast-account-name {
  max-width: 16ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mast-account-status {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 12;
  width: 180px;
  padding: 8px;
  background: white;
  border: 1px solid var(--orange);
}

@media (761px <= width <= 1120px) {
  .masthead:has(.mast-account) nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .masthead:has(.mast-account) { gap: 4px 10px; }
  .masthead:has(.mast-account) .audience-brand { order: 1; }
  .mast-account { order: 2; margin-left: auto; }
  .masthead:has(.mast-account) .mobile-menu { order: 3; }
  .masthead:has(.mast-account) nav { order: 4; }
  .mast-account :is(a, button) { padding-block: 12px; }
}

@media (max-width: 450px) {
  .masthead:has(.mast-account) .wordmark { font-size: 20px; }
  .masthead:has(.mast-account) .wordmark span { font-size: 27px; }
  .masthead:has(.mast-account) .audience-links { gap: 4px; font-size: 9px; }
  .mast-account { font-size: 11px; }
}

@media (max-width: 360px) {
  .masthead:has(.mast-account) { flex-wrap: wrap; }
  .masthead:has(.mast-account) .mobile-menu { order: 2; margin-left: auto; }
  .mast-account { order: 3; flex-basis: 100%; margin-left: 0; }
  .mast-account > div { justify-content: flex-end; }
}
