/* My Big Family Tree v3.3 — record research and discovery */
.record-research-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:18px}
.record-research-summary article{background:var(--cream);border:1px solid var(--line);padding:17px;border-radius:5px}
.record-research-summary b,.record-research-summary span{display:block}.record-research-summary b{font:700 27px Georgia,serif}.record-research-summary span{font-size:11px;color:var(--muted)}
.record-search-controls{margin-bottom:18px}.record-search-form{display:grid;grid-template-columns:minmax(220px,.7fr) minmax(300px,1.4fr) minmax(250px,.8fr) auto;gap:12px;align-items:end}.record-search-form label,.record-search-form fieldset{min-width:0}.record-search-form input,.record-search-form select{width:100%;margin-top:6px;border:1px solid var(--line);background:#fff;padding:10px}.record-search-form fieldset{border:1px solid var(--line);padding:9px 12px;background:#fff}.record-search-form fieldset legend{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.record-search-form fieldset .check-row{margin:5px 0}.record-search-form fieldset input{width:auto;margin:0}
.record-research-layout{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr);gap:18px;align-items:start}.record-research-layout>main,.record-research-sidebar{display:grid;gap:18px}.record-research-sidebar{position:sticky;top:18px}
.research-packet{width:100%;min-height:145px;resize:vertical;border:1px solid var(--line);background:#fff;padding:12px;line-height:1.55;color:var(--ink)}
.provider-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.provider-card{display:flex;flex-direction:column;justify-content:space-between;gap:14px;background:#fff;border:1px solid var(--line);padding:15px;border-radius:5px;min-width:0}.provider-card.provider-integrated{border-left:5px solid var(--green)}.provider-card span{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:700}.provider-card h3{margin:5px 0 7px;font-size:18px}.provider-card p{margin:0;color:var(--muted);line-height:1.45}.provider-card a{align-self:flex-start;text-decoration:none}
.public-record-results{margin-top:0}.public-record-list{display:grid;gap:12px}.public-record-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,240px);gap:18px;background:#fff;border:1px solid var(--line);padding:15px;border-radius:5px}.public-record-card h3{margin:5px 0 8px;font-size:18px}.public-record-card p{margin:6px 0;line-height:1.5}.record-provider-line{display:flex;gap:7px;flex-wrap:wrap}.record-provider-line span{font-size:9px;text-transform:uppercase;letter-spacing:.08em;background:#eee8dc;padding:4px 7px}.save-candidate-form{display:flex;flex-direction:column;gap:9px;justify-content:center;border-left:1px solid var(--line);padding-left:18px}.save-candidate-form label{font-size:10px;color:var(--muted)}.save-candidate-form select{width:100%;margin-top:5px;border:1px solid var(--line);padding:8px;background:#fff}
.research-profile-facts{display:grid;gap:1px;background:var(--line);border:1px solid var(--line);margin:0 0 14px}.research-profile-facts div{background:#fff;padding:11px}.research-profile-facts dt{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:700}.research-profile-facts dd{margin:4px 0 0;overflow-wrap:anywhere}
.candidate-queue,.search-history-list{margin-top:18px}.candidate-review-list{display:grid;gap:9px}.candidate-review-list article{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);padding:13px}.candidate-review-list h3{margin:5px 0}.candidate-review-list p,.candidate-review-list small{display:block;margin:3px 0;color:var(--muted)}.candidate-status{display:inline-block;font-size:9px;text-transform:uppercase;letter-spacing:.08em;padding:4px 7px;border-radius:10px;background:#e9e3d8}.candidate-status.status-pending{background:#f5e6c8;color:#6f4c1d}.candidate-status.status-reviewing{background:#dbe7ec;color:#315d75}.candidate-status.status-accepted{background:#dcebdd;color:#235c33}.candidate-status.status-rejected{background:#eee3e2;color:#7a3732}
.candidate-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}.candidate-comparison .section-card{margin:0}.candidate-actions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:18px}.candidate-actions-grid .section-card{margin:0}.candidate-status-actions form{margin:0}.candidate-status-actions{align-items:center}
.copy-success{position:fixed;right:18px;bottom:18px;background:var(--green);color:#fff;padding:11px 15px;border-radius:4px;box-shadow:0 8px 25px rgba(0,0,0,.2);z-index:1000}
@media(max-width:1180px){.record-search-form{grid-template-columns:repeat(2,minmax(0,1fr))}.record-search-form button{justify-self:start}.provider-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:980px){.record-research-layout{grid-template-columns:1fr}.record-research-sidebar{position:static}.candidate-comparison,.candidate-actions-grid{grid-template-columns:1fr}}
@media(max-width:760px){.record-research-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.record-search-form{grid-template-columns:1fr}.provider-grid{grid-template-columns:1fr}.public-record-card{grid-template-columns:1fr}.save-candidate-form{border-left:0;border-top:1px solid var(--line);padding:14px 0 0}.candidate-review-list article{align-items:flex-start;flex-direction:column}}
@media(max-width:480px){.record-research-summary{grid-template-columns:1fr}}
@media print{.record-search-controls,.provider-grid,.save-candidate-form,.candidate-status-actions,.search-history-list{display:none!important}.record-research-layout,.candidate-comparison,.candidate-actions-grid{grid-template-columns:1fr}.record-research-sidebar{position:static}}

/* Search presets, profile integration, and research-center additions */
.query-presets{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:13px;padding-top:12px;border-top:1px solid var(--line)}
.query-presets b{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);margin-right:3px}
.query-presets a{display:inline-flex;align-items:center;min-height:31px;padding:6px 10px;border:1px solid var(--line);border-radius:18px;background:#fff;color:var(--green);font-size:11px;text-decoration:none}
.query-presets a:hover,.query-presets a:focus{background:var(--green);color:#fff;border-color:var(--green)}
.privacy-hint{margin:10px 0 0;font-size:11px;color:var(--muted);line-height:1.45}
.external-research-links{display:grid;gap:7px;margin:10px 0 14px}
.external-research-links article{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px;border:1px solid var(--line);background:#fff}
.external-research-links b,.external-research-links small{display:block}.external-research-links small{margin-top:3px;color:var(--muted)}
.record-research-summary.compact{grid-template-columns:repeat(4,minmax(0,1fr));margin:12px 0}
.record-research-summary.compact article{padding:12px}.record-research-summary.compact b{font-size:21px}
.inline-research-launch{display:grid;grid-template-columns:minmax(240px,1fr) auto;gap:10px;align-items:end;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.inline-research-launch select{width:100%;margin-top:6px;border:1px solid var(--line);background:#fff;padding:10px}
.research-record-center{margin-bottom:18px}.compact-list{margin-top:14px}
.profile-record-summary .count-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:760px){.record-research-summary.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.inline-research-launch{grid-template-columns:1fr}.inline-research-launch button{justify-self:start}}
@media(max-width:480px){.record-research-summary.compact{grid-template-columns:1fr}.query-presets{align-items:stretch}.query-presets a{width:100%;justify-content:center}}
