/* Shared hierarchy for category records and grinder material facets. */
#filters .categories{display:block}
#filters .category-tree-node{position:relative;min-width:0}
#filters .category-button{min-height:46px;margin:3px 0;padding:10px 12px;gap:9px;border:1px solid transparent;border-radius:7px 10px 8px 6px;line-height:1.5}
#filters .category-button .category-label{min-width:0;overflow-wrap:anywhere}
#filters .category-button .category-count{flex-shrink:0;margin-left:auto;font-variant-numeric:tabular-nums}
.category-theme-icon{flex:0 0 27px;width:27px;height:27px;display:block;background-repeat:no-repeat;background-position:center;background-size:contain;filter:drop-shadow(0 1px 0 rgba(36,34,31,.18));transform:scale(1.24)!important;transform-origin:center;pointer-events:none}
#filters .category-theme-icon-all{background-size:contain!important;background-position:center!important}
.category-button.sub .category-theme-icon{flex-basis:24px;width:24px;height:24px;transform:scale(1.2)!important}
#filters .category-button.sub,#filters .category-button.sub-facet{width:100%;margin-left:0;padding:10px 9px;font-size:13px;border-left:1px solid transparent}
#filters .category-button[aria-pressed=true]{border-color:var(--ink);background:var(--yellow);color:var(--ink)}
#filters .category-button:focus-visible{outline:2px solid var(--brand-red);outline-offset:2px}
#filters .category-tree-children{margin:0 0 5px 10px;padding-left:4px}

#filters .category-tree-row{display:flex;align-items:center;min-width:0}
#filters .category-tree-row>.category-button{flex:1;min-width:0;width:auto}
#filters .category-expand{flex:0 0 24px;width:24px;height:38px;display:grid;place-items:center}
#filters .category-expand{border:0;padding:0;background:transparent;border-radius:7px;cursor:pointer}
#filters .category-expand svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s ease}
#filters .category-expand[aria-expanded=true] svg{transform:rotate(180deg)}
#filters .category-expand:focus-visible{outline:2px solid var(--brand-red);outline-offset:1px}
#filters .category-tree-children[hidden]{display:none}
#filters .category-tree-children .category-tree-children{margin-left:20px}
@media(prefers-reduced-motion:reduce){#filters .category-expand svg{transition:none}}
