.decker-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 1.2rem;
  z-index: 256;
  background: var(--menu-background-color);
  color: var(--menu-text-color);
  border-right: 2px solid var(--menu-border-color);
  overflow: auto;
}

.menu-header {
  display: grid;
  box-sizing: border-box;
  width: 100%;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  z-index: 258;

  padding: var(--common-menu-header-padding);
  background: var(--menu-header-background-color);
  color: var(--menu-header-text-color);
  background: var(--menu-header-background-color);

  border-bottom: 2px solid var(--menu-border-color);
  flex-grow: 0;
}

.menu-header-button-group {
  grid-column: 2 / 6;
  display: grid;
  grid-template-columns: subgrid;
  justify-items: center;
  &:has(:focus-visible) {
    outline: solid 2px var(--focus-color) !important;
    outline-offset: 2px;
  }
}

.menu-header button {
  box-sizing: border-box;
  background: none;
  color: var(--menu-header-text-color);
  border-radius: 100%;
}

#decker-menu-close-button {
  grid-column: 1 / 1;
}

.menu-header button:hover {
  color: var(--icon-hover-color);
}

.menu-header button:active {
  color: var(--icon-active-color);
}

.menu-header button[aria-pressed="true"] {
  background-color: var(--accent3);
  border: 1px inset var(--foreground-color);
  border-radius: 0.25rem;
}

.menu-header button[aria-pressed="true"]:hover {
  color: var(--foreground-color);
}

.menu-header button[aria-disabled="true"] {
  cursor: default;
  color: var(--shade4);
}

ul.slide-list {
  font-size: 0.8em;
  list-style: none;

  width: 100%;
  padding: 0 0 0.2rem 0;
  margin: 0;
}

.slide-list-wrapper {
  width: 100%;
}

ul.slide-list > li {
  padding: 0;
  margin: 0;
  border-bottom: 1px solid var(--menu-border-color);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}

ul.slide-list > li.separator-slide {
  background: var(--shade2);
  font-weight: bold;
}

ul.slide-list > li > a {
  display: flex;
  color: var(--menu-text-color);
  text-decoration: none;
  width: 100%;
  padding: 0.5em 1.5em 0.5em 1em;
}

ul.slide-list > li[data-slide-v] > a {
  padding-left: 2em;
}

ul.slide-list > li[data-slide-v="0"] > a {
  padding-left: 1em;
}

ul.slide-list > li:hover {
  background: var(--hover-color);
}

ul.slide-list > li:hover > a {
  color: var(--menu-text-color);
  margin: 0;
}

ul.slide-list > li:focus-within {
  background: var(--hover-color);
}

ul.slide-list > li > a:focus {
  color: white;
  margin: 0;
}

ul.slide-list > li::marker {
  content: none;
}

ul.slide-list > li:has(a[aria-current]),
ul.slide-list > li.separator-slide:has(a[aria-current]) {
  background: var(--hover-color);
}

#glass {
  display: none;
  z-index: 105;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  /* Let us keep this here until Firefox fixes their blur - and even then it is not enabled by default */
  /* https://bugzilla.mozilla.org/show_bug.cgi?id=1749625 */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

#glass.show {
  display: block;
}

fieldset {
  padding: 0.5rem;
  border: 1px inset var(--foreground-color);
  border-radius: 0.5rem;
}

.dark #decker-menu-color-button::before {
  content: "\f185";
}

.light #decker-menu-color-button::before {
  content: "\f186";
}
