/* Minimal charcoal glass. Load after styles.css; desktop navigation is untouched. */
@media (max-width: 800px) {
  .mobile-nav {
    position: fixed;
    inset-inline: max(10px, env(safe-area-inset-left, 0px)) max(10px, env(safe-area-inset-right, 0px));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 35;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: auto;
    max-width: 440px;
    margin-inline: auto;
    gap: 2px;
    padding: 5px;
    border: 1px solid rgb(255 255 255 / 15%);
    border-radius: 18px;
    background: rgb(8 20 33 / 78%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 3%), 0 8px 24px rgb(0 0 0 / 22%);
    isolation: isolate;
  }
  @supports ((backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px))) {
    .mobile-nav {
      background: rgb(8 20 33 / 55%);
      -webkit-backdrop-filter: blur(16px);
      backdrop-filter: blur(16px);
    }
  }
  .mobile-nav > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 49px;
    gap: 4px;
    padding: 5px 2px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #a0a0a6;
    text-align: center;
    text-decoration: none;
    line-height: 1.15;
    -webkit-tap-highlight-color: transparent;
    transition: color 140ms ease, background-color 140ms ease;
  }
  .mobile-nav > a[aria-current] {
    color: var(--blue, #38c8ff);
    background: rgb(56 200 255 / 12%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%);
  }
  .mobile-nav > a:focus-visible {
    outline: 2px solid var(--blue, #38c8ff);
    outline-offset: -2px;
    color: #fff;
  }
  .mobile-nav > a:active { background: rgb(255 255 255 / 10%); }
  .mobile-nav > a > svg {
    flex: none;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mobile-nav > a > small {
    font-family: inherit;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .mobile-nav > a[aria-current] > small { font-weight: 600; }
  body:has(.mobile-nav) { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 800px) and (hover: hover) {
  .mobile-nav > a:hover { color: #fff; background: rgb(255 255 255 / 5%); }
  .mobile-nav > a[aria-current]:hover { background: rgb(255 255 255 / 9%); }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-nav > a { transition: none; }
}
