/* Mobile navigation: one clear list with an indented beginner section. */
@media (max-width:850px) {
  .site-nav { background:#0e1228; }
  #navigation {
    background:#11162c;
    padding:12px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    flex-direction:column;
    align-items:stretch;
    flex-wrap:nowrap;
    gap:0;
    max-height:calc(100vh - 76px);
    max-height:calc(100dvh - 76px);
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    box-shadow:0 16px 30px #05081966;
  }
  #navigation > a,
  #navigation .features-toggle {
    display:flex;
    align-items:center;
    width:100%;
    min-height:48px;
    padding:12px 10px;
    margin:0;
    font:500 16px/1.5 "Microsoft JhengHei",system-ui,sans-serif;
    text-decoration:none;
    border:0;
    border-bottom:1px solid #c3b4e21c;
    border-radius:0;
  }
  #navigation > a:hover,
  #navigation > a[aria-current],
  #navigation .features-toggle:hover,
  #navigation .features-toggle.is-current,
  #navigation .features-toggle[aria-expanded=true] {
    color:#ffe1aa;
    background:#ffffff05;
    border-bottom-color:#c3b4e21c;
  }
  #navigation .nav-features { flex-basis:auto; width:100%; }
  #navigation .nav-chevron { margin-left:auto; margin-right:5px; }
  #navigation .features-menu {
    position:static;
    min-width:0;
    margin:8px 0 10px 18px;
    padding:0 0 0 12px;
    background:transparent;
    border:0;
    border-left:1px solid #ba9dd15c;
    border-radius:0;
    box-shadow:none;
  }
  #navigation .features-menu a {
    display:flex;
    align-items:center;
    min-height:44px;
    padding:10px 12px;
    font-size:15px;
    line-height:1.6;
    border:0;
    border-radius:6px;
  }
  #navigation .features-menu a:hover,
  #navigation .features-menu a[aria-current] {
    color:#ffe1aa;
    background:#302d49;
    border:0;
  }
}
