/* Compact homepage header; search suggestions remain outside the layout flow. */
body>header.site-header{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px!important;padding:14px 20px!important}
body>header.site-header>.brand{grid-column:1;grid-row:1;font-size:24px;white-space:nowrap}
body>header.site-header>.nav-cta{grid-column:3;grid-row:1;display:inline-flex!important;justify-self:end;margin:0!important}
body>header.site-header>:is(.home-search,.global-search-inline){grid-column:1/-1;grid-row:2;width:100%;max-width:none!important;min-width:0!important;margin:0!important}
body>header.site-header>nav{grid-column:1/-1;grid-row:3;display:flex!important;flex-wrap:wrap!important;width:100%;min-width:0;gap:4px 16px!important;margin:0!important;padding:0!important;border:0!important}
body>header.site-header>nav>a{display:inline-flex!important;align-items:center;min-height:40px;padding:4px 0!important;background:transparent!important;border:0!important;font-size:13px;white-space:nowrap}
@media(min-width:1100px){
body>header.site-header{grid-template-columns:auto minmax(160px,1fr) auto auto;gap:16px!important}
body>header.site-header>:is(.home-search,.global-search-inline){grid-column:2;grid-row:1}
body>header.site-header>nav{grid-column:3;grid-row:1;flex-wrap:nowrap!important;gap:14px!important}
body>header.site-header>.nav-cta{grid-column:4;grid-row:1}
body>header.site-header :is(.home-search,.global-search-inline) input{font-size:13px!important;padding-inline:6px}
body>header.site-header :is(.home-search,.global-search-inline) button{padding-inline:8px;font-size:12px}
}
@media(max-width:600px){
body>header.site-header{padding:12px 16px!important;gap:10px!important}
body>header.site-header>nav{gap:2px 16px!important}
body>header.site-header>nav>a{font-size:12px;min-height:40px}
body>header.site-header :is(.home-search,.global-search-inline) input{font-size:16px!important}
}

body>header.site-header{box-sizing:border-box;background:#0e1b20;color:#e9edf3;border-bottom:1px solid #2c4145;font-family:system-ui,sans-serif;position:relative;z-index:1100;height:auto!important;min-height:0!important}
body>header.site-header a{text-decoration:none;color:inherit}
body>header.site-header>.brand{display:flex;align-items:center;gap:6px;font-weight:700}body>header.site-header>.brand svg{width:24px;height:24px}
body>header.site-header>nav a:hover,body>header.site-header>nav a[aria-current=page]{color:#50d2c1}
body>header.site-header>.nav-cta:not(.account-avatar){width:auto!important;min-width:60px;max-width:90px!important;flex:none!important;padding:10px!important;border-radius:8px;background:#50d2c1;color:#09201e}
body>header.site-header #stockapGlobalSearch{width:100%!important;max-width:none!important;min-width:0!important}
body>header.site-header #stockapGlobalSearch input{color:#e9edf3;background:#15282d;border:1px solid #3a5558;border-radius:8px;height:44px}
body:has(>#sidebar)>header.site-header{margin-left:230px}body:has(>#sidebar)>main{padding-top:0}
@media(max-width:1100px){body:has(>#sidebar)>header.site-header{margin-left:0}}

body:has(#mFeed)>header.site-header{flex-shrink:0}body:has(#mFeed)>header.site-header>.brand,body:has(#mFeed)>header.site-header>.nav-cta{display:inline-flex!important}
@media(min-width:1100px) and (max-width:1400px){body:has(>#sidebar)>header.site-header{grid-template-columns:auto minmax(0,1fr) auto}body:has(>#sidebar)>header.site-header>nav{grid-column:1/-1;grid-row:2;flex-wrap:wrap!important}body:has(>#sidebar)>header.site-header>.nav-cta{grid-column:3}}

/* Reserve the account slot before JS/auth loads: no large login-to-avatar shift. */
body>header .nav-cta,
body>header.site-header>.nav-cta:not(.account-avatar){
 box-sizing:border-box!important;width:40px!important;min-width:40px!important;max-width:40px!important;
 height:40px!important;min-height:40px!important;max-height:40px!important;padding:0!important;
 border-radius:50%!important;flex:0 0 40px!important;display:inline-flex!important;
 align-items:center!important;justify-content:center!important;line-height:1!important;
 background:#183438!important;color:#b9d8d3!important;border:1px solid #335155!important;
 font-size:0!important;overflow:hidden;
}
body>header .nav-cta:not(.account-avatar)>*{display:none!important}
body>header .nav-cta:not(.account-avatar)::before{
 content:"";display:block;width:20px;height:20px;background:currentColor;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm-8 8a8 6 0 0 1 16 0Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
body>header .nav-cta:focus-visible{outline:2px solid #50d2c1;outline-offset:3px}

/* The same search width on every desktop page, independent of nav/logo width. */
@media(min-width:1100px){
 body>header.site-header,
 body.home-page>header:has(.home-search),
 body:has(>#sidebar)>header.site-header{
  grid-template-columns:auto 280px minmax(0,1fr) 40px!important;
 }
 body>header.site-header>:is(.home-search,.global-search-inline),
 body.home-page>header:has(.home-search)>.home-search{
  grid-column:2!important;grid-row:1!important;box-sizing:border-box!important;
  width:280px!important;min-width:280px!important;max-width:280px!important;
 }
 body>header.site-header>nav,
 body.home-page>header:has(.home-search)>nav,
 body:has(>#sidebar)>header.site-header>nav{
  grid-column:3!important;grid-row:1!important;flex-wrap:wrap!important;
 }
 body>header.site-header>.nav-cta,
 body.home-page>header:has(.home-search)>.nav-cta,
 body:has(>#sidebar)>header.site-header>.nav-cta{grid-column:4!important;grid-row:1!important}
}
