/* Shared navigation; loaded only by hl-v2.php. No legacy template changes. */
.hl-header .hl-nav.hl-nav-unified{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 24px;min-height:64px;padding-block:8px}
.hl-header .hl-nav.hl-nav-unified nav{display:flex;flex-wrap:wrap;gap:0 clamp(12px,1.8vw,26px);align-items:center}
.hl-header .hl-nav.hl-nav-unified nav a{white-space:nowrap;min-height:44px;font-size:15px}
.hl-header .hl-nav.hl-nav-unified nav a:last-child{color:var(--amber);border:1px solid var(--line-strong);padding-inline:12px;border-radius:2px;min-height:38px}
.hl-header .hl-nav.hl-nav-unified nav a:last-child:hover{border-color:var(--amber);background:var(--surface)}
.hl-footer-unified .hl-footer-links{display:flex;flex-wrap:wrap;gap:16px;font-size:14px}
@media(max-width:850px){.hl-header .hl-nav.hl-nav-unified{display:block;padding-block:12px 4px;min-height:52px}.hl-header .hl-nav.hl-nav-unified nav{margin-top:8px;gap:0 16px}.hl-header .hl-nav.hl-nav-unified nav a{font-size:13px;min-height:44px}.hl-header .hl-nav.hl-nav-unified nav a:last-child{padding-inline:8px;min-height:36px}}

/* Original artwork beside the live, selectable wordmark. */
.hl-header a.hl-brand,.hl-footer a.hl-brand {
    display:inline-flex;align-items:center;gap:10px;flex:0 0 auto;
    width:auto;height:auto;min-width:0;padding:0;overflow:visible;text-indent:0;
    background:none;white-space:nowrap;text-decoration:none;
    color:#ece8e1;font:900 24px/1 var(--font-sans,'DM Sans',system-ui,sans-serif);
    letter-spacing:-.045em;
}
.hl-header a.hl-brand::before,.hl-footer a.hl-brand::before {
    content:"";display:block;flex:0 0 42px;width:42px;height:42px;
    background:url('/assets/img/hey-losers-original.png') center / contain no-repeat;
}
html.hl-original-vector .hl-header a.hl-brand::before,
html.hl-original-vector .hl-footer a.hl-brand::before {background-image:url('/assets/img/logo.svg');}
.hl-footer a.hl-brand {font-size:20px;}
.hl-footer a.hl-brand::before {flex-basis:38px;width:38px;height:38px;}
@media(max-width:850px){
    .hl-header a.hl-brand {font-size:19px;gap:7px;}
    .hl-header a.hl-brand::before {flex-basis:36px;width:36px;height:36px;}
}

/* Mobile navigation: JS enhances the existing nav; without JS it stays visible. */
.hl-mobile-toggle,.hl-mobile-panel {display:none!important;}
@media (max-width:850px) {
  .hl-header .hl-nav.hl-mobile-ready {
    display:flex!important;flex-wrap:wrap;align-items:center;justify-content:space-between;
    min-height:64px;gap:6px 8px;padding-block:8px;
  }
  .hl-header .hl-nav.hl-mobile-ready .hl-brand {margin-right:auto;}
  .hl-header .hl-nav.hl-mobile-ready nav.hl-mobile-source:not(.hl-mobile-in-panel) {display:none!important;}
  .hl-header .hl-nav.hl-mobile-ready .hl-mobile-toggle,
  .hl-header .hl-nav .hl-mobile-close {
    display:inline-flex!important;align-items:center;justify-content:center;gap:10px;
    flex:0 0 auto;min-height:44px;padding:0 12px;border:1px solid #3d434d;border-radius:2px;
    background:transparent;color:#ece8e1;font:600 11px/1 var(--font-mono,monospace);
    letter-spacing:.08em;text-transform:uppercase;cursor:pointer;
  }
  .hl-header .hl-nav.hl-mobile-ready .hl-mobile-toggle {width:44px;padding:0;}
  .hl-mobile-toggle > span:first-child {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
  .hl-header .hl-nav .hl-mobile-toggle:hover,.hl-header .hl-nav .hl-mobile-close:hover {border-color:#edb978;color:#edb978;}
  .hl-mobile-icon {width:23px;height:20px;position:relative;display:inline-block;flex:none;color:#edb978;}
  .hl-mobile-icon::before,.hl-mobile-icon::after {content:"";position:absolute;right:0;height:2px;background:currentColor;transition:transform .2s ease,width .2s ease;}
  .hl-mobile-icon::before {top:5px;width:23px;}
  .hl-mobile-icon::after {top:13px;width:16px;}
  .hl-mobile-toggle:hover .hl-mobile-icon::after {width:23px;}
  .hl-mobile-close .hl-mobile-icon::before,.hl-mobile-close .hl-mobile-icon::after {top:9px;width:23px;}
  .hl-mobile-close .hl-mobile-icon::before {transform:rotate(45deg);}
  .hl-mobile-close .hl-mobile-icon::after {transform:rotate(-45deg);}
  .hl-header .hl-nav .hl-mobile-panel[open] {
    display:flex!important;flex-direction:column;position:fixed;inset:0;margin:0;
    width:100%;height:100vh;height:100dvh;max-width:none;max-height:none;box-sizing:border-box;
    padding:max(16px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));
    border:0;background:#111318;color:#ece8e1;overflow:auto;overscroll-behavior:contain;
    animation:hl-mobile-enter .24s cubic-bezier(.2,.7,.2,1) both;
  }
  .hl-mobile-panel::backdrop {background:#111318;}
  .hl-mobile-panel-top {display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:24px;border-bottom:1px solid #3d434d;}
  .hl-mobile-panel-top .hl-brand {margin-right:0;}
  .hl-mobile-kicker {margin:24px 0 8px;font:500 11px/1.5 var(--font-mono,monospace);letter-spacing:.13em;color:#9ba3b2;text-transform:uppercase;}
  .hl-header .hl-nav .hl-mobile-panel nav.hl-mobile-in-panel {
    display:flex!important;flex-direction:column;align-items:stretch;gap:0;margin:0;padding:0;counter-reset:hl-menu;
  }
  .hl-header .hl-nav .hl-mobile-panel nav.hl-mobile-in-panel a {
    display:flex;align-items:center;gap:12px;width:100%;min-height:64px;height:auto;box-sizing:border-box;
    padding:13px 0;margin:0;border:0;border-bottom:1px solid #3d434d;border-radius:0;
    background:transparent;color:#ece8e1;text-decoration:none;white-space:normal;
    font:800 clamp(26px,7vw,42px)/1.08 var(--font-sans,'DM Sans',system-ui,sans-serif);letter-spacing:-.04em;
  }
  .hl-header .hl-nav .hl-mobile-panel nav.hl-mobile-in-panel a::before {
    counter-increment:hl-menu;content:counter(hl-menu,decimal-leading-zero);flex:0 0 24px;
    color:#9ba3b2;font:500 11px/1 var(--font-mono,monospace);letter-spacing:0;
  }
  .hl-header .hl-nav .hl-mobile-panel nav.hl-mobile-in-panel a::after {
    content:'↗';margin-left:auto;color:#edb978;font:400 20px/1 var(--font-mono,monospace);letter-spacing:0;
  }
  .hl-header .hl-nav .hl-mobile-panel nav.hl-mobile-in-panel a:hover,
  .hl-header .hl-nav .hl-mobile-panel nav.hl-mobile-in-panel a[aria-current='page'] {color:#edb978;background:transparent;}
  .hl-header .hl-nav .hl-mobile-panel nav.hl-mobile-in-panel a.hl-mobile-collection {color:#edb978;}
  .hl-mobile-panel-footer {margin-top:auto;padding-top:28px;font:400 11px/1.5 var(--font-mono,monospace);letter-spacing:.09em;color:#9ba3b2;text-transform:uppercase;}
  .hl-mobile-panel-footer span {color:#edb978;}
  .hl-mobile-toggle:focus-visible,.hl-mobile-close:focus-visible,.hl-mobile-panel a:focus-visible {outline:2px solid #edb978;outline-offset:3px;}
  html.hl-mobile-menu-open {overflow:hidden;}
}
@keyframes hl-mobile-enter {from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.hl-mobile-panel,.hl-mobile-icon::before,.hl-mobile-icon::after{animation:none!important;transition:none!important;}}

@media(max-width:380px){
.hl-header a.hl-brand {font-size:17px;gap:6px;}
.hl-header a.hl-brand::before {flex-basis:32px;width:32px;height:32px;}
.hl-mobile-panel-top {gap:8px;}
.hl-header .hl-nav .hl-mobile-close {padding:0 9px;}
}
