.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 12px;
  color: var(--ink);
  background: #12243a;
  border: 1px solid #355475;
  border-radius: 7px;
  font-size: .84rem;
  font-weight: 650;
}

.mobile-nav-icon {
  position: relative;
  width: 20px;
  height: 16px;
}

.mobile-nav-icon i {
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease, top .18s ease;
}

.mobile-nav-icon i:nth-child(1) { top: 1px; }
.mobile-nav-icon i:nth-child(2) { top: 7px; }
.mobile-nav-icon i:nth-child(3) { top: 13px; }
.mobile-nav-toggle[data-open=true] .mobile-nav-icon i:nth-child(1) { top: 7px; transform: rotate(45deg); }
.mobile-nav-toggle[data-open=true] .mobile-nav-icon i:nth-child(2) { opacity: 0; }
.mobile-nav-toggle[data-open=true] .mobile-nav-icon i:nth-child(3) { top: 7px; transform: rotate(-45deg); }
.mobile-paper-nav { display: none; }

@media(max-width:760px) {
  .mobile-nav-enhanced .header-right .paper-link { display: none; }
  .mobile-nav-enhanced .mobile-nav-toggle { display: inline-flex; }
  .mobile-nav-enhanced .nav-wrap {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    border-top-color: transparent;
    transition: max-height .22s ease, opacity .18s ease, border-color .18s ease;
  }
  .mobile-nav-enhanced .nav-wrap[data-open=true] {
    max-height: 560px;
    opacity: 1;
    border-top-color: #1a2940;
  }
  .mobile-nav-enhanced .nav-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    min-height: 0;
    overflow: visible;
    padding-top: 8px;
    padding-bottom: 14px;
  }
  .mobile-nav-enhanced .nav-inner a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 11px 8px;
    border-bottom: 1px solid #1c2b42;
    border-left: 3px solid transparent;
  }
  .mobile-nav-enhanced .nav-inner a[aria-current=page] {
    border-bottom-color: #1c2b42;
    border-left-color: var(--accent);
    background: #0e1b2d;
  }
  .mobile-nav-enhanced .nav-inner .mobile-paper-nav {
    display: flex;
    color: var(--accent);
    border-bottom: 0;
  }
}

@media(prefers-reduced-motion:reduce) {
  .mobile-nav-enhanced .nav-wrap,
  .mobile-nav-icon i { transition: none; }
}
