/* Kazmi Trading Desk · V21 · Small-screen navigation correction.
   This file overrides the horizontal swipe-only mobile menu; desktop unaffected. */
@media (max-width: 650px) {
  #public-site .mobile-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 7px;
    padding: 9px 12px 11px;
    top: 80px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
    white-space: normal;
    background: #f8fafc;
    border-bottom: 1px solid #dbe5ee;
    box-shadow: 0 5px 14px rgba(17, 42, 67, .045);
  }
  #public-site .mobile-links > a,
  #public-site .mobile-links > button {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    min-height: 39px;
    margin: 0;
    padding: 9px 4px;
    border-radius: 7px;
    border: 1px solid #e1e8ef;
    background: #eef3f7;
    color: #234662;
    font-family: Manrope, 'DM Sans', Arial, sans-serif;
    font-size: clamp(9px, 2.7vw, 11px);
    font-weight: 800;
    letter-spacing: -.12px;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #public-site .mobile-links > a[aria-current="page"] {
    color: white;
    background: #183b5b;
    border-color: #183b5b;
    box-shadow: 0 2px 7px rgba(25, 59, 89, .14);
  }
  #public-site .mobile-links > #owner-mobile-open {
    grid-column: 1 / span 2;
    color: #fff;
    background: #183b5b;
    border-color: #183b5b;
    font-size: clamp(10px, 2.75vw, 11.5px);
  }
  #public-site .mobile-links > #member-mobile-open {
    grid-column: 3 / span 2;
    color: #183b5b;
    background: #e3ecf5;
    border-color: #bfcedd;
    font-size: clamp(10px, 2.75vw, 11.5px);
  }
  #public-site .mobile-links > a:focus-visible,
  #public-site .mobile-links > button:focus-visible {
    outline: 3px solid #a6854d;
    outline-offset: 2px;
  }
}
