/* 2026-11-23 sitewide polish (cache-bust: ?v=20261123polish)
   - HWAV desktop Reels grid 3×2 (mobile swipe at max-width:760px unchanged)
   - Hamburger / compact nav from 1024px down (fixes 761–900px title collision)
   - HWAV split Music videos / Visualizers 2-col grids
*/

/* 1) Desktop 3×2 reels. The existing max-width:760px swipe rule in site-v8.css still wins on phones. */
@media (min-width: 761px) {
  #visualizers .reels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    overflow: visible;
    margin-inline: 0;
    padding: 0;
    scroll-snap-type: none;
  }
  #visualizers .reel {
    flex: none;
    width: auto;
  }
}

/* Balanced 2-up grids for the split HWAV Music videos (2) and Visualizers (4 = 2×2).
   More specific than the home-page #videos 3-col rule in site-nn.css. */
@media (min-width: 761px) {
  #videos .vids.even-2,
  #viz .vids.even-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 24px);
    overflow: visible;
    margin-inline: 0;
    padding: 0;
    scroll-snap-type: none;
  }
}

/* 2) Raise the hamburger breakpoint to 1024px. Only nav/header rules — do not pull in
   the 760px phone layout (reel swipe, 1-col videos, compact player, etc.). */
@media (max-width: 1024px) {
  .menu-tog {
    display: flex;
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }
  .menu-tog:active { background: rgba(255,255,255,.08); }
  #top-links {
    position: absolute;
    top: calc(100% + 6px);
    right: 10px;
    left: auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding: 10px;
    border-radius: 14px;
    background: #0d0a10;
    border: 1px solid var(--line);
    display: none;
    min-width: 240px;
    max-height: calc(100svh - 120px);
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,.6);
  }
  #top-links.open { display: flex; }
  #top-links > a,
  #top-links .amenu summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10px;
    width: 100%;
  }
  .amenu { width: 100%; text-align: right; }
  .amenu summary { justify-content: flex-end; }
  .amenu-list {
    position: static;
    min-width: 0;
    margin-top: 10px;
    background: rgba(255,255,255,.03);
    box-shadow: none;
    padding: 6px;
    text-align: right;
  }
  .amenu-list a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  :root { --navh: 64px; }
  nav.top {
    padding: 12px 14px;
    padding-top: max(12px, env(safe-area-inset-top));
  }
  body.scrolled nav.top { padding-block: 8px; }
  .mark {
    font-size: 12px;
    letter-spacing: .16em;
    max-width: calc(100% - 56px);
  }
  .home-logo { padding: 5px; margin: -5px; }
}
