:root {
  --menu-width: 16rem;
  --menu-title-height: 5rem;
}

.headingMenu {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  width: var(--menu-width);
  overflow: hidden;
  background-color: #0F202E;
  box-shadow: 3px 0 10px rgba(15, 32, 46, 0.25);
  transition: width 0.32s ease, box-shadow 0.32s ease;
}

.sidebarTitle {
  position: fixed !important;
  inset: 0 auto auto 0;
  box-sizing: border-box;
  width: var(--menu-width);
  margin: 0;
  white-space: nowrap;
  border: 0;
  z-index: 32;
  cursor: pointer;
  text-align: left;
  border-radius: 0;
  transition: width 0.32s ease, border-radius 0.32s ease;
  user-select: none;
  -webkit-user-select: none;
}

.sidebarTitle:hover,
.sidebarTitle:focus-visible {
  background-color: #D8A068;
  color: #0F202E;
}

.pageMenu {
  position: relative;
  flex: 0 1 auto;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin-top: calc(var(--menu-title-height) + 0.5rem);
  max-height: calc(100vh - var(--menu-title-height) - 8rem);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  padding: 1rem 0.75rem;
  border: 0;
  background-color: #0F202E;
  font-family: Arial, Helvetica, sans-serif;
}

.menuFilterDefs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: visible;
}

.menuHighlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  background-color: #D8A068;
  opacity: 0;
  pointer-events: none;
  border-radius: 999px;
  filter: url("#gooeyMenuFilter");
  transition: left 0.32s cubic-bezier(0.2, 1.4, 0.4, 1),
    top 0.32s cubic-bezier(0.2, 1.4, 0.4, 1),
    width 0.32s cubic-bezier(0.2, 1.4, 0.4, 1),
    height 0.32s cubic-bezier(0.2, 1.4, 0.4, 1), opacity 0.1s ease;
}

.menuHighlight.visible {
  opacity: 1;
}

.pageMenu a {
  display: block;
  position: relative;
  z-index: 1;
  width: max-content;
  color: #F5EEE1;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
}

.pageMenu a div {
  position: relative;
  padding: 0.65rem 0.75rem;
}

.pageMenu a + a {
  margin-top: 0.35rem;
}

.pageMenu a[aria-current="page"] div {
  color: #F5EEE1;
  font-weight: 700;
}

.menuLabel {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.menuLabelHighlight {
  position: absolute;
  inset: 0 auto auto 0;
  width: max-content;
  height: 100%;
  overflow: hidden;
  color: #0F202E;
  clip-path: inset(0 100% 0 0);
  pointer-events: none;
  user-select: none;
}

.sidebarToggle {
  position: fixed;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 31;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 2px solid #D8A068;
  border-radius: 50%;
  background-color: #0F202E;
  color: #F5EEE1;
  cursor: pointer;
  transition: background-color 150ms, color 150ms;
}

.sidebarToggle svg {
  display: block;
  width: 1rem;
  height: 1rem;
  overflow: visible;
  pointer-events: none;
}

.sidebarToggle svg path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}

.sidebarToggle:hover,
.sidebarToggle:focus-visible {
  background-color: #D8A068;
  color: #0F202E;
}

body.hasSidebar {
  box-sizing: border-box;
  width: calc(100% - var(--menu-width));
  margin-left: var(--menu-width) !important;
  margin-right: 0 !important;
  transition: width 0.32s ease, margin-left 0.32s ease;
}

body.hasSidebar.sidebarCollapsed {
  width: 100%;
  margin-left: 0 !important;
}

body.hasSidebar.sidebarCollapsed .headingMenu {
  width: 0;
  box-shadow: none;
}

body.hasSidebar.sidebarCollapsed .sidebarTitle {
  width: var(--menu-title-width);
  max-width: calc(100vw - 1rem);
  border-radius: 0 0 15px 0;
}

body.hasSidebar.sidebarCollapsed .headingMenu .pageMenu {
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.32s ease, opacity 0.2s ease,
    visibility 0s linear 0.32s;
}

.pageMenu {
  transition: transform 0.32s ease, opacity 0.2s ease, visibility 0s linear;
}

.sidebarShare {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 2.5rem;
  align-items: center;
  gap: 0.75rem;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: calc(var(--menu-width) - 1.5rem);
  margin: 0 0.75rem 4rem;
  padding: 1rem 0.25rem 0;
  border-top: 1px solid rgba(245, 238, 225, 0.35);
  color: #F5EEE1;
  font-family: Arial, Helvetica, sans-serif;
  transition: transform 0.32s ease, opacity 0.2s ease, visibility 0s linear;
}

.sidebarShare p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.headingMenu .sidebarShare .sidebarShareButton {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0 !important;
  border: 1px solid #D8A068;
  border-radius: 50%;
  background-color: transparent;
  color: #F5EEE1;
  cursor: pointer;
  line-height: 0;
  transition: background-color 150ms, color 150ms;
}

.headingMenu .sidebarShare .sidebarShareButton svg {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.headingMenu .sidebarShare .sidebarShareButton:hover,
.headingMenu .sidebarShare .sidebarShareButton:focus-visible {
  background-color: #D8A068;
  color: #0F202E;
}

.sidebarShareToast {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 50%;
  padding: 0.35rem 0.6rem;
  border-radius: 0.25rem;
  background-color: #F5EEE1;
  color: #0F202E;
  font-size: 0.8rem;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transform: translate(-50%, -0.25rem);
  transition: opacity 150ms ease, transform 150ms ease;
}

.sidebarShareToast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.hasSidebar.sidebarCollapsed .headingMenu .sidebarShare {
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.32s ease, opacity 0.2s ease,
    visibility 0s linear 0.32s;
}

body.hasSidebar:not(.sidebarCollapsed) .headingMenu .pageMenu {
  transform: translateX(0);
  opacity: 1;
}

body.hasSidebar:not(.sidebarCollapsed) .headingMenu .sidebarShare {
  transform: translateX(0);
  opacity: 1;
}

@media (max-width: 1129px) {
  .sidebarTitle {
    padding: 0.75rem;
    font-size: 1.05rem;
  }

  .headingMenu {
    width: min(var(--menu-width), 85vw);
  }

  .sidebarShare {
    width: calc(min(var(--menu-width), 85vw) - 1.5rem);
  }

  body.hasSidebar.sidebarCollapsed .headingMenu {
    width: 0;
  }

  body.hasSidebar {
    width: 100%;
    margin-left: 0 !important;
  }

}
