/* Compact the masthead and search spacing without hiding or moving controls.
   Changes are immediate: native scrolling and map resize observers stay smooth. */
html{--onto-visible-header-height:var(--header-height,82px)}
html.onto-header-compact{--header-height:65px}
html.onto-header-compact .header .nav-wrap{min-height:60px;padding-block:6px}
html.onto-header-compact .header .brand-wordmark{width:180px}
html.onto-header-compact .header .desktop-nav a{padding-block:7px}
html.onto-header-compact .header{overflow-anchor:none}
html.onto-header-compact .onto-search-usability>.search-toolbar,
html.onto-header-compact #search-view.onto-search-desktop>.search-toolbar{gap:6px 14px;padding-block:6px}
html.onto-header-compact #search-view.onto-search-desktop .search-toolbar>.results-tools{gap:6px 14px}
html.onto-header-compact #search-view .search-toolbar #results-search{min-height:44px;padding-block:1px}
html.onto-header-compact #search-view .search-toolbar #results-search input{min-height:36px}
html.onto-header-compact #search-view .quick-filters .filter-button,
html.onto-header-compact #search-view .quick-filters select{min-height:44px;padding-block:8px}
/* Sticky offsets follow the rendered masthead, including menu/input expansion. */
@media(min-width:1001px){
 html #search-view>.search-toolbar{top:var(--onto-visible-header-height,var(--header-height,82px))}
 html.onto-header-compact #search-view .onto-quick-caption{top:3px;font-size:.55rem}
 html.onto-header-compact #search-view .onto-quick-field select{padding-top:14px!important;padding-bottom:3px!important}
}
@media(max-width:1000px){
 html.onto-header-compact{--header-height:63px}
 html.onto-header-compact .header .nav-wrap{min-height:58px;padding-block:5px}
 html.onto-header-compact .header .brand-wordmark{width:160px}
 html.onto-header-compact .onto-search-usability>.search-toolbar{gap:6px;padding-block:6px}
 html.onto-header-compact #search-view .search-toolbar #results-search input{min-height:40px}
}
@media(max-width:680px){
 html.onto-header-compact{--header-height:59px}
 html.onto-header-compact .header .nav-wrap{min-height:54px;padding-block:5px}
 html.onto-header-compact .header .brand-wordmark{width:144px}
}
@media(max-width:380px){html.onto-header-compact .header .brand-wordmark{width:122px}}
@media(prefers-reduced-motion:reduce){html.onto-header-compact .header,html.onto-header-compact .header .nav-wrap,html.onto-header-compact #search-view>.search-toolbar{transition:none}}
