/* Candidate discovery: a bounded survey of the road network, its measured facts, and the promotion
   step into the ordinary candidate workflow. Restrained on purpose: no scores, no heat colours. */
.discovery-panel .discovery-body{padding:1rem 1.15rem}
.discovery-controls{display:flex;flex-wrap:wrap;align-items:end;gap:.75rem}
.discovery-controls .primary-button{flex:none}
.discovery-area{margin:0;color:#4c6458;font-size:.83rem}
.discovery-status{margin:0;color:#4c6458;font-size:.8rem}
.discovery-error{margin:.6rem 0 0;color:#8a3324;font-size:.82rem}
.discovery-coverage{margin-top:.9rem;padding:.7rem .85rem;border:1px solid #d2dbd0;border-left-width:4px;border-radius:6px;background:#f7f8f3}
.discovery-coverage.ok{border-left-color:#4d7f5b}
.discovery-coverage.caution{border-left-color:#b5852a}
.discovery-coverage p{margin:.3rem 0 0}
.discovery-toolbar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:end;gap:.75rem;margin-top:1rem}
.discovery-filters{display:flex;flex-wrap:wrap;gap:.6rem .9rem;align-items:end}
.discovery-field{display:flex;flex-direction:column;gap:.25rem;font-size:.72rem;letter-spacing:.03em;text-transform:uppercase;color:#5b6d61}
.discovery-field span{font-size:.72rem}
.discovery-input,.discovery-select{font:inherit;font-size:.85rem;text-transform:none;letter-spacing:0;padding:.3rem .4rem;border:1px solid #c8d3c6;border-radius:4px;background:#fff;color:#22322c;min-width:6.5rem}
.discovery-check{display:flex;align-items:center;gap:.35rem;font-size:.78rem;text-transform:none;letter-spacing:0;color:#33463d}
.discovery-count{margin:0;font-size:.8rem;color:#4c6458}
.discovery-table-wrap{margin-top:.75rem;max-height:420px;overflow:auto;border:1px solid #dce3d9;border-radius:6px}
.discovery-table{width:100%;border-collapse:collapse;font-size:.82rem}
.discovery-table th,.discovery-table td{padding:.45rem .6rem;text-align:left;border-bottom:1px solid #eef2ea;vertical-align:top;white-space:nowrap}
.discovery-table thead th{position:sticky;top:0;background:#f4f7f1;font-size:.68rem;letter-spacing:.05em;text-transform:uppercase;color:#4b5f54}
.discovery-table tr.selected{background:#eef4ea}
.discovery-table tr.promoted td:last-child{color:#2f6a43;font-weight:500}
.discovery-table tr.dismissed{color:#7b857d}
.discovery-row{font:inherit;font-weight:500;background:none;border:0;padding:0;color:#1c3b2c;cursor:pointer;text-align:left}
.discovery-row:hover{text-decoration:underline}
.discovery-table td small{display:block;color:#6b7a70;font-weight:400}
.discovery-note{margin:.5rem 0 0;font-size:.75rem;color:#63746a}
.discovery-selected{margin-top:1rem;padding:.85rem 1rem;border:1px solid #d2dbd0;border-radius:6px;background:#fbfcf8}
.discovery-selected h3{margin:.15rem 0 .6rem;font-size:1rem}
.discovery-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:.2rem .9rem}
.discovery-facts>div{display:flex;gap:.4rem;font-size:.78rem;border-bottom:1px solid #eef2ea;padding:.15rem 0}
.discovery-facts dt{color:#5b6d61;flex:none}
.discovery-facts dd{margin:0;color:#22322c}
.discovery-coverage-list{margin-top:.6rem}
.discovery-not-run{margin-top:.6rem;color:#5b6d61}
.discovery-not-run p{margin:.15rem 0}
.discovery-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.75rem}
.discovery-eligible{margin:.5rem 0 0;font-size:.74rem;color:#63746a}
/* Interactive search: a centre a person chose and a radius they chose. The controls stay ordinary form
   controls, and the coverage line states the FULL/PARTIAL/NONE answer in words as well as in colour. */
.discovery-search{display:flex;flex-direction:column;gap:.6rem;margin:.85rem 0 .1rem;padding:.8rem .85rem;border:1px solid #d2dbd0;border-radius:6px;background:#fbfcf8;flex:1 1 100%;min-width:0}
.discovery-coverage-status p{margin:0}
.discovery-coverage-status{padding-left:.6rem;border-left:3px solid #c8d3c6}
.discovery-coverage-status .discovery-coverage-line{font-weight:600;color:#22322c}
.discovery-coverage-status .discovery-coverage-line.full{border-left-color:#4d7f5b;color:#2f6a43}
.discovery-coverage-status .discovery-coverage-line.partial{color:#785222}
.discovery-coverage-status .discovery-coverage-line.none{color:#8a3324}
.discovery-coverage-status .discovery-coverage-line.full{color:#2f6a43}
.discovery-search-fields{margin:0}
.discovery-search-row{display:flex;flex-wrap:wrap;gap:.6rem .9rem;align-items:end}
.discovery-search-row .discovery-input{min-width:7.5rem}
.discovery-radius-row{display:flex;flex-wrap:wrap;gap:.5rem .7rem;align-items:center}
.discovery-range{width:min(220px,100%);flex:1 1 140px;accent-color:#205646;margin:0}
.discovery-radius-value{font-size:.82rem;font-weight:600;color:#22322c;text-transform:none;letter-spacing:0}
.discovery-presets{display:flex;flex-wrap:wrap;gap:.4rem;align-items:center}
.discovery-presets .eyebrow{margin:0 .2rem 0 0}
.discovery-presets .quiet-button{padding:.34rem .5rem;font-size:.76rem}
.discovery-summary{margin:.55rem 0 0;padding:.5rem .6rem;border:1px solid #dce3d9;border-radius:5px;background:#fff}
.discovery-summary p{margin:.25rem 0 0}
/* Find a place: a local, bounded lookup. The list sits under its field, never over the whole panel. */
.discovery-place{position:relative;display:flex;flex-direction:column;gap:.3rem}
.discovery-location{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem .8rem}
.discovery-location .discovery-status{margin:0;flex:1 1 16rem;font-size:.78rem;color:#4b5c51}
.discovery-location-note{flex:1 1 100%;margin:0}
.discovery-place .discovery-field{max-width:22rem}
.discovery-place-results{position:absolute;z-index:5;top:100%;left:0;right:0;margin:0;padding:.2rem 0;list-style:none;max-height:15rem;overflow:auto;background:#fff;border:1px solid #c8d3c6;border-radius:5px;box-shadow:0 8px 20px #13231f1f}
.discovery-place-option{display:flex;justify-content:space-between;align-items:baseline;gap:.6rem;padding:.4rem .6rem;cursor:pointer;font-size:.86rem}
.discovery-place-option.active,.discovery-place-option:hover{background:#eef4ea}
.discovery-place-option[aria-selected="true"]{outline:2px solid #205646;outline-offset:-2px}
.discovery-place-name{font-weight:600;color:#1c3b2c}
.discovery-place-type{font-size:.72rem;color:#5b6d61;white-space:nowrap}
@media(max-width:700px){.discovery-panel .discovery-body{padding:.85rem}.discovery-filters{flex-direction:column;align-items:stretch}.discovery-input,.discovery-select{width:100%}.discovery-table-wrap{max-height:none}.discovery-table th:nth-child(6),.discovery-table td:nth-child(6){display:none}.discovery-search{padding:.7rem}.discovery-search-row,.discovery-radius-row{flex-direction:column;align-items:stretch}.discovery-range{width:100%}.discovery-place .discovery-field{max-width:none}.discovery-place-results{max-height:12rem}}
/* The line the panel names: the place a person chose, the nearest published place, or the coordinates. */
.discovery-center-label{font-weight:600;color:#22322c}
