.site-menu {
  margin-top: 13px;
  position: relative;
  display: grid;
  gap: 10px;
  width: max-content;
  z-index: 30;
}

.site-menu-access-heading {
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font: 600 14px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-menu-view-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: -1px 0 1px;
  color: rgba(255, 255, 255, .26);
  font: 12px/1 Arial, Helvetica, sans-serif;
}

.site-menu-view-switch button,
.site-menu-view-switch a,
.site-menu-view-switch .view-mode-current {
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, .52);
  font: inherit;
  letter-spacing: 0;
  text-decoration: none;
}

.site-menu-view-switch button,
.site-menu-view-switch a {
  cursor: pointer;
  transition: color .18s ease;
}

.site-menu-view-switch button:hover,
.site-menu-view-switch button:focus-visible,
.site-menu-view-switch button.is-active,
.site-menu-view-switch a:hover,
.site-menu-view-switch a:focus-visible,
.site-menu-view-switch .view-mode-current {
  color: rgba(255, 255, 255, .96);
  outline: none;
}

.site-menu-toggle {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 4px;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, .56);
  font: 13px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
  transition: color .2s ease;
}

.site-menu-toggle-icon {
  font-size: 14px;
  line-height: 1;
}

.site-menu-current {
  margin: 0;
  color: #d5d2cb;
  font: 12px/1.3 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  max-width: min(250px, calc(100vw - 100px));
}

.site-menu-toggle:hover,
.site-menu-toggle:focus-visible,
.site-menu.is-open .site-menu-toggle {
  color: rgba(255, 255, 255, .72);
  outline: none;
}

.site-menu-list {
  position: absolute;
  top: 100%;
  left: 0;
  display: grid;
  gap: 10px;
  min-width: 128px;
  max-height: calc(100dvh - 210px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: 12px;
  margin-top: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-3px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

/* Guest menus keep touch/wheel access on short screens without a visible bar. */
.site-menu:not(.site-menu--administrator) .site-menu-list {
  scrollbar-width: none;
}

.site-menu:not(.site-menu--administrator) .site-menu-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.site-menu.is-open .site-menu-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-menu-list a,
.site-menu-list .site-menu-disabled {
  color: rgba(255, 255, 255, .54);
  font: 13px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  text-decoration: none;
  transition: color .2s ease;
}

.site-menu-list .site-menu-disabled {
  display: block;
  cursor: default;
  opacity: .58;
}

.site-menu-private-label {
  color: rgba(255, 255, 255, .5);
  font-weight: 400;
}

.site-menu-more {
  margin-left: 5px;
  font-size: 11px;
}

.site-menu-list a[aria-current="page"],
.site-menu-list a:hover,
.site-menu-list a:focus-visible {
  color: rgba(255, 255, 255, .96);
  outline: none;
}

.site-menu-list .site-menu-section-title {
  margin-top: 8px;
  font-size: 14px;
}

.site-menu-shell {
  position: fixed;
  top: 28px;
  left: 28px;
  z-index: 60;
  font-family: Arial, Helvetica, sans-serif;
}

.account-link {
  position: fixed;
  top: 25px;
  right: 28px;
  z-index: 70;
  display: block;
  width: 34px;
  height: 34px;
  color: rgba(255, 255, 255, .54);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: rgba(0, 0, 0, .1);
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.account-link::before,
.account-link::after {
  content: "";
  position: absolute;
  left: 50%;
  border: 1px solid currentColor;
  transform: translateX(-50%);
}

.account-link::before {
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.account-link::after {
  bottom: 7px;
  width: 15px;
  height: 8px;
  border-bottom: 0;
  border-radius: 12px 12px 4px 4px;
}

.account-link:hover,
.account-link:focus-visible {
  color: rgba(255, 255, 255, .84);
  border-color: rgba(255, 255, 255, .48);
  background: rgba(255, 255, 255, .04);
  outline: none;
}

@media (max-width: 760px) {
  body.site-menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(0, 0, 0, .88);
    pointer-events: none;
  }

  .site-menu-shell {
    top: 18px;
    left: 18px;
  }

  .account-link {
    top: 16px;
    right: 18px;
    width: 32px;
    height: 32px;
  }
}
