/* =====================================================================
   SAN · site header on app.sansound.com (site-nav.js)
   Sized and set to match the sansound.com header: Red Hat Display, uppercase menu,
   112px bar on desktop, 92px on phones, same icons and drawer.
   Everything is scoped to .sn / .sn-* / .has-sn so nothing else in the app changes.
   ===================================================================== */
:root { --sn-h: 92px; --sn-bg: #0A0A0A; --sn-ink: #FFFFFF; --sn-line: #262626; --sn-panel: #121212; --sn-accent: #FC4C01; }
@media (min-width: 1024px) { :root { --sn-h: 112px; } }

#san-site-nav { min-height: var(--sn-h); }
.sn, .sn-dw { font-family: 'Red Hat Display', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
/* resets carry zero specificity (:where) so every .sn-* rule below wins over them */
:where(.sn, .sn-dw) * { box-sizing: border-box; }
:where(.sn, .sn-dw) ul { list-style: none; margin: 0; padding: 0; }
:where(.sn, .sn-dw) a { color: inherit; text-decoration: none; }
:where(.sn, .sn-dw) svg { display: block; }
.sn-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- bar ---------- */
.sn { position: relative; z-index: 35; background: var(--sn-bg); color: var(--sn-ink); border-bottom: 1px solid var(--sn-line); }
.sn-in { position: relative; height: calc(var(--sn-h) - 1px); padding: 0 10px; display: flex; align-items: center; justify-content: space-between; }
.sn-start, .sn-end { display: flex; align-items: center; gap: 6px; z-index: 2; }
.sn-ico { width: 44px; height: 44px; display: grid; place-items: center; color: var(--sn-ink); background: none; border: 0; cursor: pointer; transition: opacity .2s; }
.sn-ico:hover { opacity: .7; }
.sn-ico svg { width: 20px; height: 20px; stroke-width: 1.5; }
.sn-acct { display: none; }
.sn-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; width: 70px; color: var(--sn-ink); }
.sn-logo svg { width: 70px; height: auto; }
.sn-nav { display: none; }

.sn a:focus-visible, .sn button:focus-visible, .sn-dw a:focus-visible, .sn-dw button:focus-visible { outline: 2px solid var(--sn-accent); outline-offset: 2px; }

@media (min-width: 1024px) {
  .sn-in { padding: 0 48px; justify-content: flex-start; }
  .sn-start { display: none; }
  .sn-logo { position: static; transform: none; flex: none; }
  .sn-nav { display: flex; margin-left: 28px; min-width: 0; }
  .sn-list { display: flex; flex-wrap: nowrap; }
  .sn-end { margin-left: auto; }
  .sn-acct { display: grid; }

  .sn-li { position: relative; }
  .sn-link { position: relative; display: flex; align-items: center; height: 42px; padding: 0 12px; white-space: nowrap;
    font-weight: 500; font-size: clamp(0.875rem, 0.748rem + 0.3174vw, 1.125rem); text-transform: uppercase; line-height: 1; transition: opacity .2s; }
  .sn-link:hover { opacity: .7; }
  .sn-li.is-current > .sn-link::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; background: var(--sn-accent); }

  /* dropdown: opens on hover or keyboard focus; the padding is the bridge from the word to the panel */
  .sn-drop { position: absolute; left: -12px; top: 100%; padding-top: 35px; min-width: 220px; visibility: hidden; opacity: 0; transform: translateY(-4px);
    transition: opacity .18s, transform .18s, visibility 0s .18s; pointer-events: none; }
  .sn-li.has-kids:hover > .sn-drop, .sn-li.has-kids:focus-within > .sn-drop { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; pointer-events: auto; }
  .sn-drop-in { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 28px; background: var(--sn-bg); border: 1px solid var(--sn-line); border-top: 0; border-radius: 0 0 16px 16px; box-shadow: 0 24px 48px rgba(0,0,0,.45); }
  .sn-drop-link { display: block; font-size: 15px; font-weight: 500; line-height: 1.3; white-space: nowrap; color: rgba(255,255,255,.72); transition: color .15s; }
  .sn-drop-link:hover, .sn-drop-link[aria-current] { color: var(--sn-ink); }
}
/* narrow desktop: keep all eight items on one line */
@media (min-width: 1024px) and (max-width: 1180px) {
  .sn-in { padding: 0 28px; }
  .sn-nav { margin-left: 16px; }
  .sn-link { padding: 0 9px; }
  .sn-li.is-current > .sn-link::after { left: 9px; right: 9px; }
}

/* ---------- phone drawer (same shape as the store's: a sheet from the bottom) ---------- */
.sn-dw { position: fixed; inset: 0; z-index: 100; visibility: hidden; transition: visibility 0s .35s; }
.sn-dw.is-on { visibility: visible; transition-delay: 0s; }
.sn-dw-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .3s; }
.sn-dw.is-on .sn-dw-scrim { opacity: 1; }
.sn-dw-panel { position: absolute; left: 0; right: 0; bottom: 0; top: max(48px, env(safe-area-inset-top, 0px)); display: flex; flex-direction: column;
  background: var(--sn-panel); color: var(--sn-ink); border-radius: 16px 16px 0 0; overflow: hidden;
  transform: translateY(100%); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.sn-dw.is-on .sn-dw-panel { transform: none; }
.sn-dw-top { position: relative; display: flex; justify-content: flex-end; padding: 10px 10px 0; }
.sn-dw-grip { position: absolute; left: 50%; top: 10px; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(255,255,255,.18); }
.sn-dw-views { position: relative; flex: 1 1 auto; overflow: hidden; }
.sn-dw-list { padding: 12px 20px 24px; display: flex; flex-direction: column; gap: 4px; }
.sn-dw-views > .sn-dw-list, .sn-dw-sub { position: absolute; inset: 0; overflow-y: auto; transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.sn-dw-views > .sn-dw-list.is-out { transform: translateX(-24%); opacity: 0; visibility: hidden; }
.sn-dw-sub { transform: translateX(100%); visibility: hidden; }
.sn-dw-sub.is-in { transform: none; visibility: visible; }
.sn-dw-item { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 6px 0; background: none; border: 0; color: inherit; cursor: pointer; text-align: left;
  font: 600 24px/1.2 'Red Hat Display', system-ui, sans-serif; letter-spacing: -0.03em; }
.sn-dw-item svg { width: 22px; height: 22px; stroke-width: 1.5; opacity: .6; }
.sn-dw-item[aria-current] { color: var(--sn-accent); }
.sn-dw-back { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 20px; background: none; border: 0; border-bottom: 1px solid var(--sn-line); color: rgba(255,255,255,.6); cursor: pointer;
  font: 500 16px 'Red Hat Display', system-ui, sans-serif; }
.sn-dw-back svg { width: 16px; height: 16px; stroke-width: 2; transform: rotate(180deg); }
.sn-dw-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--sn-line); background: var(--sn-bg); }
.sn-login { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; border-radius: 4px; background: var(--sn-accent); color: #0A0A0A;
  font: 500 14px 'Red Hat Display', system-ui, sans-serif; text-transform: uppercase; letter-spacing: .02em; }
.sn-login svg { width: 16px; height: 16px; stroke-width: 1.6; }
.sn-social { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 14px 18px; max-width: 200px; }
.sn-social a { display: block; color: var(--sn-ink); opacity: .9; }
.sn-social svg { width: 18px; height: 18px; }
html.sn-lock, html.sn-lock body { overflow: hidden; }
@media (min-width: 1024px) { .sn-dw { display: none; } }
@media (prefers-reduced-motion: reduce) { .sn-drop, .sn-dw, .sn-dw-scrim, .sn-dw-panel, .sn-dw-views > .sn-dw-list, .sn-dw-sub { transition: none !important; } }

/* ---------- the app under the header ---------- */
/* full-height screens now share the viewport with the header */
.has-sn .auth, .has-sn .reveal { min-height: calc(100vh - var(--sn-h)); min-height: calc(100dvh - var(--sn-h)); }
@media (min-width: 1080px) { .has-sn .auth-wrap { min-height: calc(100vh - var(--sn-h)); } }
/* one SAN logo per screen: the header carries it, the app keeps its STATUS label */
.has-sn .auth-top > svg, .has-sn .brand > svg { display: none; }
.has-sn .brand .label { border-left: 0; padding-left: 0; }
/* desktop: the header already says STATUS (underlined) and the tabs say it again, so the bar's own label steps back */
@media (min-width: 1080px) { .has-sn .topbar .brand { visibility: hidden; } }
