/* Palette and shapes both distinguish the five structure categories. */
.category-glyphs{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
[data-category="am"]{--category:#a03247}
[data-category="amp"]{--category:#267366}
[data-category="aemi"]{--category:#365a94}
[data-category="gv"]{--category:#936313}
[data-category="ams"]{--category:#68479a}
.category-filters{display:flex;flex-wrap:wrap;gap:8px 10px;border:0;padding:0 0 18px;margin:28px 0 0}
.category-filters legend{float:left;width:100%;font-size:.8rem;font-weight:650;margin:0;padding:0}
.category-filters label{position:relative;display:flex;align-items:center;gap:10px;min-height:58px;padding:10px 12px;background:var(--paper);border:1px solid var(--border);border-radius:12px;font-size:.8rem;font-weight:600;cursor:pointer;box-shadow:0 2px 5px #29235f06;transition:border-color .15s,background .15s}
.category-filters label:has(input:checked){border-color:color-mix(in srgb,var(--category) 40%,var(--paper));background:color-mix(in srgb,var(--category) 4%,var(--paper))}
.category-filters label:hover{border-color:var(--category)}
.category-filters label:has(input:focus-visible){outline:2px solid var(--category);outline-offset:3px}
.category-filters label:has(input:not(:checked)){background:var(--paper);color:#696473;box-shadow:none}
.category-filters label:has(input:not(:checked)) .legend-symbol{color:#696473;background:#efedf0}
.category-filters input{width:18px;height:18px;accent-color:var(--category);margin:0}
.legend-symbol{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:10px;color:var(--category);background:transparent}
.legend-symbol svg{display:block;width:24px;height:24px}
.pin .base{fill:var(--paper);stroke:var(--category);stroke-width:2}
.pin .symbol{fill:var(--category);stroke:none;pointer-events:none}
.pin:hover .base,.pin:focus .base,.pin.active .base{fill:var(--paper);stroke:var(--category);stroke-width:4}
.pin:hover .symbol,.pin:focus .symbol,.pin.active .symbol{fill:var(--category);stroke:none}
.pin use.symbol,.pin:hover use.symbol,.pin:focus use.symbol,.pin.active use.symbol{fill:none;stroke:currentColor;color:var(--category);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.pin.cluster .base{fill:var(--blue);stroke:white;stroke-width:2;r:12px}
.pin.cluster .symbol{display:none}
.cluster-count{fill:white;font:700 11px system-ui;pointer-events:none}
.card{border:1px solid var(--border)}
.card[data-category]:target,.card[data-category].selected{border-color:var(--category);box-shadow:0 0 0 1px var(--category);background:color-mix(in srgb,var(--category) 3%,var(--paper))}
.card .eyebrow{color:var(--category);line-height:1.4;letter-spacing:0;text-transform:none}
.card-glyph{display:grid;place-items:center;align-self:start;flex:none;width:38px;height:38px;color:var(--category);background:color-mix(in srgb,var(--category) 7%,var(--paper));border-radius:50%}
.card-glyph svg{display:block;width:25px;height:25px}
.card-content{min-width:0}
.suggestion-option[data-category] .suggestion-kind{color:var(--category);background:#f4f1f7}
#map-choice{max-height:310px;overflow:auto;margin-top:16px;border-top:1px solid var(--border);padding-top:12px}
#map-choice h3{margin:0;font-size:1rem}#map-choice p{margin:4px 0 10px;font-size:.8rem}
#map-choice button{display:flex;align-items:center;gap:10px;text-align:left;width:100%;min-height:48px;margin:6px 0;border:1px solid var(--border);border-radius:8px;background:var(--paper);color:var(--blue);padding:8px 10px;font-size:.82rem}
#map-choice button:hover{border-color:var(--category);background:color-mix(in srgb,var(--category) 4%,var(--paper))}
#map-choice .card-glyph{width:30px;height:30px;align-self:center}#map-choice .card-glyph svg{width:22px;height:22px}
#more-results{padding:12px 18px;min-height:48px;border-radius:8px;border:1px solid var(--border);color:var(--blue);background:var(--paper)}
@media(max-width:600px){.category-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.category-filters legend{grid-column:1/-1}.category-filters label{min-width:0;gap:7px;padding:10px 8px;font-size:.76rem;line-height:1.35}.legend-symbol{flex-basis:28px;width:28px;height:32px;border-radius:8px}.legend-symbol svg{width:23px;height:23px}.category-filters input{flex:0 0 16px;width:16px;height:16px}#map-choice{max-height:260px}.card .eyebrow{font-size:.72rem}.suggestion-kind{font-size:.68rem}}
@media(prefers-reduced-motion:reduce){.category-filters label{transition:none}}
