/* Compact public discovery; preserve full records and existing theme tokens. */
:root .dog-discovery-grid{align-items:start}
:root .dog-discovery-card .discovery-card-photo{aspect-ratio:16/10}
:root .dog-discovery-card .discovery-card-initial{aspect-ratio:auto;min-height:96px;max-height:112px}
:root .dog-discovery-card .discovery-card-body{padding:14px;gap:0}
:root .dog-discovery-card h2{font-size:20px;line-height:1.3;margin-bottom:6px}
:root .dog-discovery-card h2 a{min-height:44px;display:flex;align-items:center}
:root .dog-discovery-card .archive-card-identity{font-size:13px;line-height:1.5;margin-bottom:6px}
:root .dog-discovery-card .archive-card-evidence{font-size:12px;line-height:1.45;margin-bottom:5px}
:root .discovery-card-parents{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0;padding:8px 0}
:root .discovery-card-parents dd a{min-height:44px;display:flex;align-items:center;font-size:14px;line-height:1.35}
:root .discovery-card-parents dt small{font-size:11px;margin-left:4px}
:root .dog-discovery-card .archive-card-sources>summary{min-height:44px;align-content:center;cursor:pointer;font-size:13px}
:root .dog-discovery-card .discovery-card-actions{gap:8px;margin-top:8px}
:root .dog-discovery-card .discovery-card-actions .button{min-height:44px;padding:10px 12px;font-size:13px}
:root .pedigree-tools-selected{gap:8px;margin:8px 0}
:root .pedigree-tools-selected>li{display:grid;grid-template-columns:56px minmax(0,1fr);align-items:start;gap:10px;padding-top:10px}
:root .pedigree-tools-photo,:root .pedigree-tools-initial{display:flex;width:56px;height:56px;align-items:center;justify-content:center;border:1px solid var(--theme-border);border-radius:6px;background:var(--theme-soft);text-decoration:none}
:root .pedigree-tools-photo img{width:54px;height:54px;object-fit:contain}
:root .pedigree-tools-name{display:flex;align-items:center;min-height:44px;font-size:15px;line-height:1.4}
:root .pedigree-tools .pedigree-tools-photo-status{display:block;font-size:11px;line-height:1.4;margin:0 0 4px}
:root .pedigree-tools .pedigree-tools-actions{gap:4px 14px}
:root .pedigree-tools .pedigree-tools-actions>a{min-height:44px;font-size:13px}
:root .pedigree-tools-help{border-top:1px solid var(--theme-border);margin-top:8px}
:root .pedigree-tools-help>summary{min-height:44px;align-content:center;font-size:13px;cursor:pointer}
:root .mobile-profile-overview{min-width:0}
:root .mobile-profile-overview>summary,:root .pedigree-tools-folded>summary{min-height:44px;align-content:center;font-weight:600;color:var(--theme-link);cursor:pointer}
:root .mobile-profile-overview>summary:focus-visible{background:var(--theme-soft);text-decoration:underline;text-decoration-thickness:2px}
@media(max-width:800px){
 :root .discovery.page-head,:root .discovery.advanced-search{padding-top:22px}
 :root .discovery h1,:root .relationship-explorer h1{font-size:clamp(28px,5vw,36px);line-height:1.15;letter-spacing:-.03em;margin-bottom:16px}
 :root .dog-discovery-grid{gap:14px;margin-top:14px}
 :root .historical-profile-header .historical-profile-overview{gap:14px}
 :root .historical-profile-header .historical-profile-portrait img{max-height:360px;max-width:100%;width:auto;height:auto;margin-inline:auto;object-fit:contain}
 :root .historical-profile-actions{gap:8px}
 :root .historical-profile-actions .button{min-height:44px;padding:10px 12px;font-size:13px}
 :root .historical-profile-parents{gap:10px}
 :root .historical-parent-card a{min-height:44px;display:flex;align-items:center;overflow-wrap:anywhere}
 :root .historical-profile-context p{line-height:1.6}
 :root .historical-profile-facts{gap:10px}
 :root .profile-pedigree-controls{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
 :root .profile-pedigree-controls button,:root .pedigree-depth-form select,:root .pedigree-depth-form button{min-height:44px}
 :root .profile-pedigree-controls button{min-width:44px}
 :root .pedigree-depth-form{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
 :root .pedigree-depth-form label{flex-basis:100%;margin:0}
 :root .pedigree-depth-form select{min-width:64px;margin:0}
 :root .pedigree-tools{padding:12px;margin-block:14px}
 :root .pedigree-tools-links{gap:4px}
 :root .pedigree-tools-links>a{min-height:44px;font-size:13px;padding:6px}
 :root .registry-workspace .registry-filter :is(input,select,button),:root .advanced-filters :is(input,select,button){box-sizing:border-box;min-height:48px;font-size:16px;line-height:1.5;padding:10px 12px}
 :root .discovery-filter-options>summary{min-height:44px;align-content:center}
 :root .relationship-controls :is(input,select,button),:root .relationship-picker input{min-height:44px;font-size:16px;box-sizing:border-box}
 :root .relationship-selected{padding:4px 0;gap:8px}
 :root .relationship-selected a{min-height:44px;display:inline-flex;align-items:center}
 :root .search-result-link{min-width:0}
 :root .search-result-copy{min-width:0;overflow-wrap:anywhere}
 :root .search-result-id{font-size:11px;overflow-wrap:anywhere}
}
