/* The one site header, on every page of soundproacademy.com (markup from notes/docs/site_header.py).
   Namespaced .sh-* and self-contained, so it looks the same whatever stylesheet the page itself uses.
   Desktop: brand, three links, the page's main button. Under 861px the links fold into a menu button that
   opens a full-screen sheet; the main button stays in the bar. */
.sh {
  --sh-bg: rgba(10, 10, 10, 0.86); --sh-line: #242628; --sh-text: #fafaf8; --sh-text-2: #b8babd;
  --sh-ivory: #f4f4f0; --sh-gold: #f0b429; --sh-h: 62px;
  position: sticky; top: 0; z-index: 1000;
  background: var(--sh-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sh-line);
  font-family: "Inter", -apple-system, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.sh *, .sh *::before, .sh *::after { box-sizing: border-box; }
.sh-in {
  display: flex; align-items: center; gap: 28px; height: var(--sh-h);
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
}
.sh-brand {
  font-family: inherit; font-size: 12.5px; font-weight: 700; line-height: 1; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--sh-text); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px;
}
.sh-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.sh-nav a {
  position: relative; font-size: 14px; font-weight: 500; line-height: 1; color: var(--sh-text-2);
  text-decoration: none; padding: 10px 0; transition: color .2s;
}
.sh-nav a:hover, .sh-nav a[aria-current="page"] { color: var(--sh-text); }
.sh-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--sh-gold);
}
.sh-nav .sh-cta-menu { display: none; }
.sh-cta {
  display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px;
  border-radius: 10px; background: var(--sh-ivory); color: #0a0a0a; text-decoration: none; white-space: nowrap;
  font-family: inherit; font-size: 12.5px; font-weight: 700; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase;
  transition: transform .2s cubic-bezier(0.22, 1, 0.36, 1), background .2s;
}
.sh-cta:hover { transform: translateY(-1px); background: #fff; }
.sh-cta .s { display: none; }
.sh-burger {
  display: none; position: relative; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 10px;
  background: transparent; color: var(--sh-text); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.sh-burger span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .25s cubic-bezier(0.22, 1, 0.36, 1), top .25s;
}
.sh-burger span:first-child { top: 17px; }
.sh-burger span:last-child { top: 25px; }
.sh.open .sh-burger span:first-child { top: 21px; transform: rotate(45deg); }
.sh.open .sh-burger span:last-child { top: 21px; transform: rotate(-45deg); }
.sh a:focus-visible, .sh button:focus-visible { outline: 2px solid var(--sh-gold); outline-offset: 3px; border-radius: 8px; }
html.sh-lock, html.sh-lock body { overflow: hidden; }

@media (max-width: 860px) {
  .sh-in { gap: 12px; }
  .sh-cta { margin-left: auto; height: 40px; padding: 0 14px; }
  .sh-burger { display: block; }
  .sh-nav {
    position: fixed; left: 0; right: 0; top: var(--sh-h); bottom: 0; margin: 0;
    height: calc(100dvh - var(--sh-h));
    flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto; overscroll-behavior: contain;
    padding: 8px max(16px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    background: #0a0a0a; border-top: 1px solid var(--sh-line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .25s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear .25s;
  }
  .sh.open .sh-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .sh-nav a {
    display: flex; align-items: center; min-height: 60px; padding: 0 4px; font-size: 22px; font-weight: 600;
    color: var(--sh-text); border-bottom: 1px solid var(--sh-line);
  }
  .sh-nav a[aria-current="page"] { color: var(--sh-gold); }
  .sh-nav a[aria-current="page"]::after { display: none; }
  .sh-nav .sh-cta-menu {
    display: flex; justify-content: center; margin-top: 24px; min-height: 56px; border: 0; border-radius: 12px;
    background: var(--sh-gold); color: #0a0a0a; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  }
}
@media (max-width: 420px) {
  .sh-brand { letter-spacing: 0.14em; font-size: 11px; }
  .sh-cta { padding: 0 12px; font-size: 11.5px; letter-spacing: 0.06em; }
  .sh-cta .l { display: none; }
  .sh-cta .s { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .sh-nav, .sh-burger span, .sh-cta { transition: none !important; }
}
