.fwm-mobile-header,
.fwm-root {
  display: none;
}

.fwm-mobile-header,
.fwm-mobile-header *,
.fwm-root,
.fwm-root * {
  box-sizing: border-box;
}

.fwm-mobile-header {
  width: 100%;
  min-height: var(--fwm-header-h);
  padding: 8px var(--fwm-header-pad);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--fwm-bg);
  border-bottom: 1px solid var(--fwm-border);
  color: var(--fwm-text);
  position: relative;
  z-index: 99990;
}

.fwm-header-logo {
  display: inline-flex;
  align-items: center;
  color: var(--fwm-text);
  text-decoration: none;
}

.fwm-header-logo img {
  display: block;
  width: var(--fwm-logo-w);
  height: auto;
  max-width: 100%;
  max-height: none;
  transform: translateX(var(--fwm-logo-offset-x));
  object-fit: contain;
}

.fwm-launcher {
  flex: 0 0 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--fwm-accent);
  cursor: pointer;
}

.fwm-launcher-lines,
.fwm-launcher-lines::before,
.fwm-launcher-lines::after {
  display: block;
  width: 28px;
  height: 2px;
  background: currentColor;
  content: "";
  position: relative;
  border-radius: 2px;
}

.fwm-launcher-lines::before {
  position: absolute;
  top: -8px;
  left: 0;
}

.fwm-launcher-lines::after {
  position: absolute;
  top: 8px;
  left: 0;
}

.fwm-root {
  position: fixed;
  inset: 0;
  z-index: 999999;
  pointer-events: none;
  overflow: hidden;
}

.fwm-root.is-open {
  pointer-events: auto;
}

.fwm-overlay {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--fwm-bg);
  color: var(--fwm-text);
  opacity: 1;
  padding: 12px var(--fwm-pad) 32px;
  will-change: transform;
  transition: transform var(--fwm-speed) cubic-bezier(.42,0,.58,1);
}

/* Animation choices. Closing automatically reverses the same movement. */
.fwm-anim-right .fwm-overlay { transform: translate3d(100%,0,0); }
.fwm-anim-left .fwm-overlay  { transform: translate3d(-100%,0,0); }
.fwm-anim-top .fwm-overlay   { transform: translate3d(0,-100%,0); }
.fwm-root.is-open .fwm-overlay { transform: translate3d(0,0,0); }

.fwm-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--fwm-header-h);
  margin-bottom: 8px;
  border-bottom: 1px solid var(--fwm-border);
}

.fwm-topbar--menu {
  justify-content: flex-end;
}


.fwm-close {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  position: relative;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fwm-text);
  cursor: pointer;
}

.fwm-close span {
  position: absolute;
  left: 10px;
  top: 23px;
  width: 28px;
  height: 2px;
  background: currentColor;
}

.fwm-close span:first-child { transform: rotate(45deg); }
.fwm-close span:last-child { transform: rotate(-45deg); }

.fwm-menu,
.fwm-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fwm-menu > li {
  border-bottom: 1px solid var(--fwm-border);
}

.fwm-menu li {
  position: relative;
  margin: 0;
}

.fwm-menu a {
  display: block;
  padding: 17px 54px 17px 0;
  color: var(--fwm-text);
  background: transparent;
  text-decoration: none;
  font-family: inherit;
  font-size: clamp(21px, 5.5vw, 28px);
  line-height: 1.2;
  font-weight: 600;
}

.fwm-menu .current-menu-item > a,
.fwm-menu .current-menu-ancestor > a {
  color: var(--fwm-accent);
}

.fwm-subtoggle {
  position: absolute;
  top: 7px;
  right: 0;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fwm-accent);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.fwm-subtoggle::before {
  content: "+";
  display: block;
}

.fwm-subtoggle[aria-expanded="true"]::before {
  content: "−";
}

.fwm-menu .sub-menu {
  display: none;
  padding: 0 0 12px 18px;
}

.fwm-menu li.is-subopen > .sub-menu {
  display: block;
}

.fwm-menu .sub-menu li {
  border-top: 1px solid color-mix(in srgb, var(--fwm-border) 70%, transparent);
}

.fwm-menu .sub-menu a {
  padding: 12px 46px 12px 0;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
}

body.fwm-lock {
  overflow: hidden !important;
  touch-action: none;
}

@media (prefers-reduced-motion: reduce) {
  .fwm-overlay {
    transition: none;
  }
}
