.agw,
.agw-up {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  gap: 4px;
  padding: 0 8px;
  overflow-x: auto;
  background: #16191d;
  color: #c9d1d9;
}

.agw.agw-foot {
  justify-content: center;
}

.agw a,
.agw-up a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  box-sizing: border-box;
  height: 36px;
  padding: 0 8px;
  color: #c9d1d9;
  font: 400 14px/20px system-ui, sans-serif;
  text-decoration: none;
  white-space: nowrap;
}

.agw .agw-brand {
  font-weight: 650;
}

.agw a[aria-current] {
  border-radius: 18px;
  background: rgba(255,255,255,.09);
  color: #fff;
  font-weight: 650;
  text-decoration: underline 2px #58a6ff;
  text-underline-offset: 4px;
}

.agw a:focus-visible,
.agw-up a:focus-visible {
  outline: 2px solid #58a6ff;
  outline-offset: -2px;
}

@media (max-width: 640px) {
  .agw a,
  .agw-up a {
    height: 44px;
    font-size: 14px;
  }

  .agw .agw-brand {
    display: none;
  }
}

@media print {
  .agw,
  .agw-up {
    display: none;
  }
}

/* The icon row on links.html is absolutely positioned at the document top. */
.agw:has(+ div[style="position:absolute;top:0;left:0;height:16px;"]) {
  margin-top: 16px;
}

@media screen and (max-width: 800px) {
  /* Note's existing mobile header occupies the first 50px of the viewport. */
  .agw:has(+ #mobile-navbar) {
    margin-top: 50px;
  }
}
