/* cslookup site styles — sits alongside unmodified pico.min.css */
.card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem}
/* home feature tiles: equal height regardless of description length */
.home-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));grid-auto-rows:9rem;align-items:stretch}
.home-grid article{height:100%}
body{overflow-x:hidden}
img{max-width:100%}

/* shrink padding between content and browser edges (override pico container) */
main.container{padding-right:0.75rem;padding-left:0.75rem}
header.container,footer.container{padding-right:1.25rem;padding-left:1.25rem}

/* filter form: search matches square selects/buttons */
#filter-form [type=search]{--pico-border-radius:var(--pico-border-radius)}

/* filter fields wrap instead of one cramped row */
#filter-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:0.5rem;margin-bottom:0.5rem}
#filter-fields>*{margin:0;width:100%}

/* Apply + Clear: same shape, width, height, centered text, side by side */
#filter-actions{display:flex;gap:0.5rem;margin:0;width:100%}
#filter-actions button,#filter-actions a[role=button]{width:100%;min-height:2.5rem;display:flex;align-items:center;justify-content:center;text-align:center;box-sizing:border-box;padding:0 var(--pico-form-element-spacing-horizontal);line-height:1.5}

/* Clear: secondary color only */
#filter-actions a[role=button].secondary{--pico-background-color:var(--pico-secondary-background);--pico-border-color:var(--pico-secondary-border);--pico-color:var(--pico-secondary-inverse)}

/* header brand: larger logo + name */
.brand{display:flex;align-items:center;gap:0.6rem;text-decoration:none;color:inherit}
.brand-icon{width:2.2rem;height:2.2rem;stroke:currentColor}
.brand-name{font-size:1.35rem;letter-spacing:0.01em}
header nav{padding-block:0.6rem}
header .dropdown summary{white-space:nowrap}
/* keep dropdown menu compact */
header .dropdown ul{min-width:14rem;max-height:24rem;overflow-y:auto}
/* theme toggle: square, no text bleed */
#theme-toggle{display:flex;align-items:center;justify-content:center;line-height:1;padding:0 var(--pico-form-element-spacing-horizontal);min-width:3rem;min-height:2.75rem;font-size:1.3rem}
#theme-toggle:focus,#theme-toggle:focus-visible{outline:none;box-shadow:none}