/* <----- Shared navigation: progressive enhancement; usable without JavaScript -----> */
.site-header .header-inner{display:grid;grid-template-columns:auto minmax(160px,1fr) auto;gap:20px}
.site-header .search{justify-self:end}
.site-header .browse-bar{border-bottom:0;padding-block:0 8px}
.site-header .mobile-search-toggle{display:none}
.site-header .category-panel{z-index:25}
.category-panel .category-panel-shortcuts{display:flex;gap:4px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:8px;margin-bottom:4px}
.category-panel .category-panel-shortcuts a{font-weight:650;font-size:12px;padding:10px}
.thumbnail{-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
/* <----- Logo dimensions preserve layout; change widths here for future branding -----> */
.brand-logo{display:block;width:184px;max-width:100%;height:auto;aspect-ratio:1169 / 248;object-fit:contain}
.site-header .brand{min-width:0;max-width:184px;gap:0}
.site-footer .brand{max-width:148px;gap:0}
.site-footer .brand-logo{width:148px}
@media(max-width:600px){
 .site-header .brand{max-width:136px}
 .site-header .brand-logo{width:136px;max-width:100%}
 .site-footer .brand{max-width:124px}
 .site-footer .brand-logo{width:124px}

 .site-navigation-shell.nav-ready{height:var(--mobile-navigation-space)}
 .site-navigation-shell.nav-ready .site-header{position:fixed;left:0;right:0}
 .site-header{position:sticky;top:0;z-index:30;padding-top:env(safe-area-inset-top,0px);background:var(--bg);box-shadow:0 1px 0 var(--line)}
 .site-header .header-inner{grid-template-columns:minmax(0,1fr) auto auto;gap:6px 8px;padding-block:8px;flex-wrap:initial}
 .site-header .brand{font-size:17px;letter-spacing:-.5px;min-width:0;overflow:hidden}
 .site-header .brand-name{overflow:hidden;text-overflow:ellipsis}
 .site-header .brand-mark{width:28px;height:22px;border-radius:6px}
 .site-header .search{grid-row:2;grid-column:1 / -1;max-width:none;justify-self:stretch}
 .site-header .search input{font-size:16px;padding:9px 13px;min-height:44px}
 .site-header .search button{padding:8px 14px}
 .site-header .category-picker{grid-row:1;grid-column:3}
 .site-header .category-picker summary{gap:6px;min-height:44px;padding:9px 10px;font-size:12px}
 .site-header.nav-enhanced .mobile-search-toggle{grid-row:1;grid-column:2;display:inline-grid;place-items:center;width:44px;height:44px;border:0;border-radius:8px;background:var(--panel);color:var(--text)}
 .mobile-search-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8}
 .site-header .browse-bar{padding-block:0 6px;overflow-x:auto}
 .site-header .browse-links{gap:20px;white-space:nowrap;min-height:38px;align-items:center}
 .site-header.is-compact .search,.site-header.is-compact .browse-bar{display:none}
 .site-header.is-compact.search-is-open .search{display:flex}
 .site-header .category-panel{max-height:min(65vh,440px);max-height:min(65dvh,440px);overscroll-behavior:contain}
 html{scroll-padding-top:72px}
 .skip{z-index:100}
}

/* <----- Desktop search/navigation stays in view; mobile rules above are unchanged. -----> */
@media(min-width:601px){
 .site-navigation-shell{position:sticky;top:0;z-index:30;align-self:start}
 .site-navigation-shell .site-header{background:var(--bg);box-shadow:0 1px 0 var(--line)}
 html{scroll-padding-top:140px}
}
