/* Keep names accessible while presenting a single, quiet control row. */
#main .catalog-filter-label,#main #category-filter-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
#main .catalog-search-control{position:relative;display:block;width:100%;margin-top:8px;height:48px}
#main .catalog-search-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);pointer-events:none;color:var(--green)}
html body #main .catalog-tools #catalog-search{padding-left:44px!important;height:48px;min-height:48px;width:100%}
@media(max-width:700px){
 html body #main .catalog-tools{display:grid;grid-template-columns:minmax(0,45%) minmax(0,1fr);gap:14px;align-items:start}
 html body #main.news-archive-page .catalog-tools{grid-template-columns:120px minmax(0,1fr)}
 html body #main .catalog-tools>:is(.category-field,label[for=category-filter],label[for=archive-year]){grid-column:1;grid-row:1;min-width:0}
 html body #main .catalog-tools>label:is([for=catalog-search],[for=archive-search]){grid-column:2;grid-row:1;min-width:0}
 html body #main .catalog-tools .category-picker{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html body #main .catalog-tools:has(input[type=search]:focus){grid-template-columns:minmax(0,1fr);gap:0}
 html body #main .catalog-tools:has(input[type=search]:focus)>:is(.category-field,label[for=category-filter],label[for=archive-year]){display:none}
 html body #main .catalog-tools:has(input[type=search]:focus)>label:is([for=catalog-search],[for=archive-search]){grid-column:1}
 /* Options keep readable width even when their closed trigger is compact. */
 html body #main .catalog-tools .category-options{min-width:min(280px,calc(100vw - 48px))}
}
/* Desktop controls share the exact three-column rhythm of product cards. */
@media(min-width:901px){
 #main.products-listing-refined{--catalog-column-gap:25px}
 #main.products-listing-refined .product-grid{column-gap:var(--catalog-column-gap)}
 #main.products-listing-refined .catalog-tools{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:var(--catalog-column-gap)}
 #main.products-listing-refined .catalog-tools>label[for=catalog-search]{grid-column:2 / 4}
}
