/* These navigation rules apply only to the existing phone layout. */
@media (max-width: 720px) {
  .nx-mobile-bar:not([hidden]) {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    grid-column:1;
    order:1;
    gap:7px;
    position:sticky;
    top:0;
    z-index:30;
    padding:7px;
    border:2px solid #aa7c38;
    border-radius:2px;
    background:linear-gradient(#1d4d6b,#08263f);
    box-shadow:inset 0 0 0 1px #e5be75,0 3px 7px #0007;
  }
  .nx-mobile-bar .nx-button {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    min-width:0;
    min-height:44px;
    margin:0;
    padding:7px 4px;
    font-size:11px;
    line-height:1.3;
    letter-spacing:0;
  }
  .nx-mobile-bar .nx-icon { width:15px;height:15px;flex:none;margin:0; }
  .nx-mobile-menu-icon { font:20px/1 Arial,sans-serif; }
  .nx-mobile-ready .nx-left[hidden] { display:none!important; }
  .nx-mobile-ready .nx-left:not([hidden]) {
    display:block;
    position:fixed;
    inset:0 auto 0 0;
    z-index:1001;
    width:min(330px,calc(100vw - 36px));
    height:100%;
    height:100dvh;
    padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom));
    overflow-y:auto;
    overscroll-behavior:contain;
    background:var(--navy);
    border-right:2px solid var(--gold);
    box-shadow:0 7px 19px #0009;
  }
  .nx-mobile-ready .nx-left>.nx-side-nav { display:block; }
  .nx-mobile-ready .nx-left .nx-side-panel,
  .nx-mobile-ready .nx-left .nx-side-nav section,
  .nx-mobile-ready .nx-left>.nx-download-button { margin:0 0 9px; }
  .nx-mobile-ready .nx-left .nx-sidebar-toggle { min-height:44px; }
  .nx-mobile-ready .nx-left .nx-side-nav a {
    display:block;
    min-height:42px;
    padding-top:12px;
    padding-bottom:10px;
  }
  .nx-mobile-close-row:not([hidden]) {
    display:flex;
    position:sticky;
    top:0;
    z-index:2;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:10px;
    background:var(--navy);
    color:#f8e4ba;
    font:700 16px Georgia,serif;
  }
  .nx-mobile-close-row .nx-button { min-width:44px;min-height:44px;font:24px/1 Arial,sans-serif; }
  .nx-mobile-backdrop:not([hidden]) {
    position:fixed;
    inset:0;
    z-index:1000;
    width:100%;
    height:100%;
    margin:0;
    padding:0;
    border:0;
    background:#071d36b3;
    cursor:pointer;
    touch-action:none;
  }
  html.nx-mobile-menu-open,
  html.nx-mobile-menu-open body { overflow:hidden; }
  .nx-mobile-ready .nx-utility-actions>a[href="downloads.php"] { display:none; }
  .nx-mobile-ready .nx-center>.nx-ticker { gap:7px;padding:8px 10px; }
  .nx-mobile-ready .nx-center>.nx-ticker span { min-width:0;flex:1 1 180px; }
}
