/* Search enhances the existing, fully linked guide collection. */
[data-guide-finder] [hidden]{display:none!important}
.guide-finder-controls{margin:0 0 36px;padding:0 0 16px;border-bottom:1px solid var(--line)}
.guide-search-form{max-width:37rem;margin:0 0 24px}
.guide-search-form label,.guide-topic-fieldset legend{display:block;color:var(--ink);font-size:.9375rem;font-weight:650;line-height:1.5;margin-bottom:10px}
.guide-search-field{position:relative}
.guide-search-field svg{position:absolute;left:16px;top:50%;transform:translateY(-50%);width:21px;height:21px;fill:none;stroke:var(--muted);stroke-width:1.75;pointer-events:none}
#guide-search{appearance:none;-webkit-appearance:none;display:block;width:100%;min-height:52px;padding:12px 16px 12px 48px;border:1px solid var(--control-border);border-radius:var(--radius);background:var(--paper);color:var(--ink);font:inherit;font-size:1rem;line-height:1.5;box-sizing:border-box}
#guide-search::placeholder{color:var(--muted);opacity:1}
#guide-search-hint{font-size:.875rem;line-height:1.5;color:var(--muted);margin:8px 0 0}
.guide-topic-fieldset{min-width:0;margin:0;padding:0;border:0}
.guide-topic-fieldset legend{padding:0}
.guide-topic-options{display:flex;flex-wrap:wrap;gap:8px}
.guide-topic-options button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:9px 16px;border:1px solid var(--control-border);border-radius:var(--radius);background:var(--paper);color:var(--ink);font:inherit;font-size:.9375rem;font-weight:600;line-height:1.5;cursor:pointer}
.guide-topic-options button[aria-pressed="true"]{border-color:var(--accent);background:var(--accent);color:var(--on-button)}
.guide-topic-options button:hover{border-color:var(--plum);background:var(--wash);color:var(--ink)}
.guide-topic-options button[aria-pressed="true"]:hover{background:var(--plum);color:var(--on-button)}
.guide-result-bar{display:flex;align-items:center;justify-content:space-between;gap:8px 20px;margin-top:18px;min-height:44px}
#guide-result-count{margin:0;font-size:.9375rem;line-height:1.5;color:var(--muted);font-variant-numeric:tabular-nums}
.guide-reset{min-height:44px;padding:8px 0;border:0;background:transparent;color:var(--accent);font:inherit;font-size:.9375rem;font-weight:650;line-height:1.5;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.guide-reset:disabled{color:var(--muted);text-decoration:none;cursor:default}
.guide-finder-controls :is(input,button):focus-visible,.guide-empty-state button:focus-visible{outline:3px solid var(--focus);outline-offset:4px}
.guide-empty-state{max-width:44rem;padding:24px 0 40px}
.guide-empty-state h3{font-size:2rem;font-weight:500;line-height:1.2;margin-bottom:12px}
.guide-empty-state p{font-size:1rem;color:var(--muted);max-width:48ch;margin-bottom:12px}
.guide-grid.is-filtered{grid-template-columns:repeat(2,minmax(0,1fr))}
.guide-grid.is-filtered .guide{grid-column:auto}
.guide-grid.is-filtered .guide h3{font-size:2rem;max-width:30ch}
.guide-grid.is-filtered .guide-visual img{aspect-ratio:3/2}
@media(max-width:760px){
 .guide-finder-controls{margin-bottom:28px;padding-bottom:12px}
 .guide-search-form{margin-bottom:20px}
 .guide-topic-options{gap:8px}
 .guide-topic-options button{padding-right:13px;padding-left:13px}
 .guide-result-bar{gap:8px 12px;flex-wrap:wrap;margin-top:14px}
 .guide-grid.is-filtered .guide h3{font-size:1.9375rem}
 .guide-empty-state{padding:8px 0 24px}
}
@media print{.guide-finder-controls{display:none}}
