/* Standalone global search (not part of Find Peers). */
.pm-search-page{min-height:55vh}
.pm-search-main{padding-top:clamp(22px,3vw,42px);padding-bottom:clamp(60px,5vw,90px)}
.pm-search-page-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:25px}
.pm-search-page-heading h1{font-size:clamp(29px,3.5vw,42px);font-weight:800;letter-spacing:-.055em;line-height:1.16;color:#1b2344;margin:7px 0 9px}
.pm-search-page-heading p{font-size:13px;line-height:1.6;color:#77809d;max-width:630px;margin:0}
.pm-search-page-peers-link{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:12px 14px;border:1px solid #dedff3;border-radius:12px;color:#594ae4;background:#fff;font-size:12px;font-weight:800;text-decoration:none;white-space:nowrap}
.pm-search-page-peers-link:hover{background:#f1efff}
.pm-search-page-form{display:flex;align-items:stretch;gap:10px;max-width:860px;margin:0 0 17px}
.pm-full-search-wrap{display:flex;align-items:center;gap:12px;flex:1;min-width:0;padding:0 16px;border:1px solid #dfe3f1;border-radius:16px;background:#fff;color:#6664b8;box-shadow:0 2px 14px rgba(30,40,100,.025)}
.pm-full-search-wrap:focus-within{border-color:#8e83eb;box-shadow:0 0 0 3px rgba(106,86,232,.13)}
.pm-full-search-wrap .pm-icon{flex:none;width:21px;height:21px}
.pm-full-search-wrap input{display:block;background:transparent;border:0;outline:0;box-shadow:none!important;min-width:0;width:100%;height:54px;font-family:inherit;font-size:14px;font-weight:500;color:#252b48}
.pm-full-search-wrap input::placeholder{color:#9096aa}
.pm-search-submit{border:0;border-radius:14px;background:#5946ee;color:#fff;font:inherit;font-size:13px;font-weight:800;padding:0 24px;min-height:54px;cursor:pointer;white-space:nowrap;box-shadow:0 8px 20px #6753df2a}
.pm-search-submit:hover{background:#4637d9}
.pm-search-tabs{display:flex;flex-wrap:wrap;gap:7px;border-bottom:1px solid #e7eaf4;padding-bottom:12px}
.pm-search-tab{border:1px solid transparent;border-radius:10px;padding:10px 15px;color:#737b96;background:transparent;font-family:inherit;font-size:12px;font-weight:800;cursor:pointer}
.pm-search-tab:hover{background:#efedff;color:#5946dd}
.pm-search-tab.is-active{border-color:#ddd8ff;background:#f1efff;color:#5440de}
.pm-search-status{color:#727c98;font-size:13px;margin:16px 0 20px;min-height:20px}
.pm-search-results-section{margin:26px 0 38px}
.pm-search-results-section[hidden],.pm-search-empty[hidden],.pm-search-more[hidden]{display:none!important}
.pm-search-results-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.pm-search-results-heading h2{color:#232948;font-size:22px;letter-spacing:-.04em;margin:0 0 5px}
.pm-search-results-heading p{color:#868eaa;font-size:12px;margin:0}
.pm-search-total{white-space:nowrap;color:#6555d7;background:#f1efff;border:1px solid #e5e0ff;border-radius:999px;padding:7px 11px;font-size:11px;font-weight:800}
.pm-search-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.pm-result-card{display:flex;flex-direction:column;min-width:0;gap:13px;background:#fff;border:1px solid #e1e5f1;border-radius:17px;padding:19px;box-shadow:0 8px 24px rgba(34,41,100,.035)}
.pm-result-top{display:flex;align-items:flex-start;gap:12px;min-width:0}
.pm-result-avatar{display:flex;flex:none}
.pm-search-page-avatar,.pm-group-avatar{display:grid;place-items:center;width:48px!important;height:48px!important;min-width:48px;border-radius:50%;overflow:hidden}
.pm-group-avatar{background:#efedff;color:#5c4be4}
.pm-group-avatar .pm-icon{width:23px;height:23px}
.pm-result-card-copy{min-width:0;flex:1}
.pm-result-card-copy h3{font-size:15px;line-height:1.35;font-weight:800;color:#1d2545;margin:1px 0 5px;overflow-wrap:anywhere}
.pm-result-card-copy p{font-size:12px;color:#7c84a0;margin:0;line-height:1.55;overflow-wrap:anywhere}
.pm-result-verified{align-self:flex-start;flex:none;color:#2e9879;background:#e6f7f1;border-radius:999px;font-size:10px;font-weight:800;padding:5px 7px}
.pm-group-description{font-size:12px;line-height:1.65;min-height:39px;color:#77809b;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pm-result-footer{margin-top:auto;border-top:1px solid #edf0f7;padding-top:12px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.pm-result-footer>span{color:#858ba6;text-transform:uppercase;letter-spacing:.08em;font-size:10px;font-weight:700}
.pm-result-footer a{font-size:12px;font-weight:800;text-decoration:none;color:#5a48d8;white-space:nowrap}
.pm-result-footer a:hover{text-decoration:underline}
.pm-search-more{border:1px solid #dddaf4;border-radius:12px;background:#fff;color:#5c49d6;font:inherit;font-weight:800;font-size:12px;padding:12px 17px;margin-top:17px;cursor:pointer}
.pm-search-more:disabled{opacity:.65;cursor:wait}
.pm-search-empty{text-align:center;margin:24px auto;background:#fff;border:1px dashed #d6dbee;border-radius:18px;padding:31px 24px;max-width:700px}
.pm-search-empty-icon{font-size:27px;color:#5748db;margin-bottom:8px}
.pm-search-empty h2{font-size:20px;color:#283051;margin:0 0 8px}
.pm-search-empty p{font-size:13px;color:#8089a7;margin:0}
html[data-theme="dark"] .pm-search-page-heading h1,html[data-theme="dark"] .pm-search-results-heading h2,html[data-theme="dark"] .pm-result-card-copy h3{color:#eef0ff}
html[data-theme="dark"] .pm-search-page-heading p,html[data-theme="dark"] .pm-search-status,html[data-theme="dark"] .pm-search-results-heading p,html[data-theme="dark"] .pm-result-card-copy p,html[data-theme="dark"] .pm-group-description{color:#a4b0cc}
html[data-theme="dark"] .pm-full-search-wrap,html[data-theme="dark"] .pm-result-card,html[data-theme="dark"] .pm-search-more,html[data-theme="dark"] .pm-search-page-peers-link,html[data-theme="dark"] .pm-search-empty{background:#1d2740;border-color:#3e4967}
html[data-theme="dark"] .pm-full-search-wrap input,html[data-theme="dark"] .pm-search-empty h2{color:#eaf0ff}
html[data-theme="dark"] .pm-search-tabs,html[data-theme="dark"] .pm-result-footer{border-color:#3a455f}
html[data-theme="dark"] .pm-search-tab{color:#b5bed6}
html[data-theme="dark"] .pm-search-tab.is-active,html[data-theme="dark"] .pm-search-tab:hover{color:#cabfff;background:#373057;border-color:#55468c}
html[data-theme="dark"] .pm-search-total,html[data-theme="dark"] .pm-group-avatar{background:#333052;color:#c6bdff;border-color:#4b427e}
html[data-theme="dark"] .pm-result-footer a,html[data-theme="dark"] .pm-search-page-peers-link,html[data-theme="dark"] .pm-search-more{color:#b9abff}
@media(max-width:1000px){.pm-search-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){
 .pm-search-main{padding-top:20px;padding-bottom:80px}
 .pm-search-page-heading{align-items:start;flex-direction:column;gap:13px;margin-bottom:19px}
 .pm-search-page-heading h1{font-size:27px;margin:5px 0 7px}
 .pm-search-page-heading p{font-size:12px}
 .pm-search-page-peers-link{font-size:11px;padding:9px 12px}
 .pm-search-page-form{gap:7px;margin-bottom:13px}
 .pm-full-search-wrap{padding:0 11px;border-radius:12px;gap:7px}
 .pm-full-search-wrap input{height:46px;font-size:12px}
 .pm-full-search-wrap .pm-icon{width:18px;height:18px}
 .pm-search-submit{min-height:46px;padding:0 13px;border-radius:12px;font-size:11px}
 .pm-search-tabs{gap:4px}
 .pm-search-tab{font-size:11px;padding:9px 10px}
 .pm-search-status{font-size:12px}
 .pm-search-cards{grid-template-columns:minmax(0,1fr);gap:10px}
 .pm-result-card{padding:15px;border-radius:14px}
 .pm-search-results-heading h2{font-size:19px}
 .pm-search-results-heading p{font-size:11px}
}

/* On the Search page, the search field lives in the content area, never twice in the mobile header. */
@media(max-width:720px){
 html.pm-search-view.pm-member-header .nav-shell{grid-template-rows:48px;padding-bottom:11px}
 html.pm-search-view.pm-member-header .pm-global-search,
 html.pm-search-view.pm-member-header .pm-mobile-filter-wrap{display:none!important}
}
@media(max-width:360px){html.pm-search-view.pm-member-header .nav-shell{grid-template-rows:43px}}
