/* The search stage and the ways to reach someone found on the web (markup from public/find-your-team.js and
   public/home-team-reach.js), shared by Find your home team and My Keylective. Navy, the key, two big numbers and
   the faces of the people found: members with a solid gold ring, the others dashed. The gold piece of the key's
   ring travels while a search runs and rests at its place when it ends. Every motion here sits behind
   prefers-reduced-motion. */
.team-scan{display:grid;grid-template-columns:auto minmax(0,1fr);gap:26px;align-items:start;margin:26px 0 0;padding:30px 32px;border-radius:24px;background:radial-gradient(520px 260px at 0 0,#173a63 0%,rgba(9,24,42,0) 72%),radial-gradient(380px 240px at 100% 100%,rgba(217,174,95,.14) 0%,rgba(9,24,42,0) 70%),#09182a;color:#fff;box-shadow:0 30px 70px -40px rgba(9,24,42,.85);scroll-margin-top:16px}
.team-scan[hidden],.team-scan [hidden],.pro[hidden]{display:none}
.scan-key{display:grid;place-items:center;width:92px;height:92px;border-radius:50%;background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.scan-key svg{display:block;width:56px;height:56px;margin:6px 0 0 6px}
.scan-track{stroke:rgba(255,255,255,.16)}.scan-ring,.scan-shaft{stroke:#fff}.scan-gold{stroke:#e3b965;transform-origin:21px 21px}
.scan-main{min-width:0}
.team-scan .scan-eyebrow{margin:0;font-size:12px;font-weight:700;letter-spacing:.16em;color:#e3b965}
.team-scan .scan-title{margin:8px 0 0;font:400 clamp(23px,2.4vw,30px)/1.18 Georgia,serif;letter-spacing:-.02em;color:#fff;overflow-wrap:anywhere}
.team-scan .scan-title:focus{outline:none}.team-scan .scan-title:focus-visible{outline:3px solid #72a9f1;outline-offset:4px;border-radius:4px}
/* Two numbers, big, with a word each. */
.team-scan .scan-numbers{display:flex;flex-wrap:wrap;gap:6px 30px;margin:16px 0 0}
.team-scan .scan-number{display:flex;align-items:baseline;gap:8px;margin:0;font-size:15px;font-weight:600;color:#c6d3e4}
.scan-number strong{font:400 46px/1 Georgia,serif;letter-spacing:-.02em;color:#fff;font-variant-numeric:tabular-nums}
.scan-number[data-members] strong{color:#e3b965}
/* The faces of the people found, in their profession's colour (the dark-surface values of brand-tokens.css, which
   this public page does not load). The row keeps its height while a search runs, so the results below stay put. */
.scan-faces{display:flex;flex-wrap:wrap;gap:8px;min-height:44px;margin:18px 0 0}
.team-scan:not(.is-busy) .scan-faces:empty{display:none}
.scan-face,.scan-more{--who:#c6d3e4;display:inline-grid;place-items:center;box-sizing:border-box;width:44px;height:44px;border:2px dashed var(--who);border-radius:50%;background:rgba(255,255,255,.07);color:var(--who);font-size:14px;font-weight:700;letter-spacing:.02em}
.scan-face.is-member{border:2px solid #e3b965;box-shadow:0 0 0 3px rgba(227,185,101,.22)}
.scan-more{border:0;background:rgba(255,255,255,.14);color:#fff;font-size:13px}
.scan-face[data-role=realtor]{--who:#9dbce6}.scan-face[data-role=loan_officer]{--who:#94b8ff}.scan-face[data-role=attorney]{--who:#c7addf}
.scan-face[data-role=credit_specialist]{--who:#ddb990}.scan-face[data-role=title_agent]{--who:#e6a3b8}.scan-face[data-role=insurance_agent]{--who:#e898d6}
.team-scan .scan-problem{margin:16px 0 0;padding:11px 14px;border-left:3px solid #e3b965;border-radius:0 12px 12px 0;background:rgba(255,255,255,.07);font-size:14.5px;line-height:1.5;color:#fff}
.scan-foot{display:flex;flex-wrap:wrap;align-items:center;gap:10px 22px;margin-top:20px}
.scan-stop{min-height:44px;padding:9px 22px;border:1px solid rgba(255,255,255,.45);border-radius:50px;background:transparent;color:#fff;font:inherit;font-size:14px;font-weight:620;cursor:pointer}
.scan-stop:hover{background:rgba(255,255,255,.1)}
.scan-only{display:inline-flex;align-items:center;gap:10px;min-height:44px;font-size:14.5px;font-weight:600;color:#eaf1fb;cursor:pointer}
.scan-only input{width:20px;height:20px;margin:0;accent-color:#e3b965;flex-shrink:0}
.scan-jump{display:inline-flex;align-items:center;min-height:44px;margin-left:auto;color:#fff;font-size:14.5px;font-weight:620;text-decoration:underline;text-underline-offset:3px}
/* Faces on the cards, light values: members keep their gold ring, people found on the web get a dashed one. */
#results .avatar[data-role=realtor]{--who:var(--role-realtor);--who-soft:var(--role-realtor-soft)}#results .avatar[data-role=loan_officer]{--who:var(--role-loan_officer);--who-soft:var(--role-loan_officer-soft)}
#results .avatar[data-role=attorney]{--who:var(--role-attorney);--who-soft:var(--role-attorney-soft)}#results .avatar[data-role=credit_specialist]{--who:var(--role-credit_specialist);--who-soft:var(--role-credit_specialist-soft)}
#results .avatar[data-role=title_agent]{--who:var(--role-title_agent);--who-soft:var(--role-title_agent-soft)}#results .avatar[data-role=insurance_agent]{--who:var(--role-insurance_agent);--who-soft:var(--role-insurance_agent-soft)}
#results .avatar[data-role]:not([data-role=""]){background:var(--who-soft);color:var(--who)}
#results .avatar.web{box-sizing:border-box;border:2px dashed var(--who,var(--pi-input-line));box-shadow:none}
#results .avatar.web[data-role]:not([data-role=""]){background:var(--pi-surface)}
/* People found on the web carry more than a listing does, so their cards get more room. */
.web-found .pros{grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))}
.pros:empty{display:none}.web-hidden{margin:10px 0 0;color:var(--pi-muted)}
/* The first five people found in a group show; "Show more" opens the rest (find-your-team.js). */
.web-found:not(.is-open) .pros>li:nth-child(n+6 of :not([hidden])){display:none}
/* Reaching someone found on the web: what the search returned, then large actions that open the visitor's own apps. */
.reach-box{display:grid;gap:10px;margin-top:6px;min-width:0}
.pro .reach-lines,.reach-lines{display:grid;gap:5px;margin:0;border-radius:8px}
.reach-line{display:grid;grid-template-columns:50px minmax(0,1fr);align-items:baseline;column-gap:8px;font-size:16px;font-weight:600;line-height:1.35;color:var(--pi-ink);overflow-wrap:anywhere}
.reach-kind{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--pi-muted)}
/* Call, Text and Email sit in one row, each a full 44px tap. */
.reach-actions{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px}
.reach-box .reach-action{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px;border:1px solid var(--pi-feature);border-radius:var(--radius-control,9px);background:var(--pi-feature);color:var(--pi-on-primary);font-size:14px;font-weight:600;line-height:1.2;text-decoration:none;cursor:pointer}
.reach-box .reach-action:hover{background:var(--pi-feature-hover)}.reach-action svg{flex-shrink:0}.reach-actions:empty{display:none}
.pro .reach-none,.reach-none{margin:0;padding:11px 13px;border-radius:var(--radius-panel,12px);background:var(--pi-surface-soft);font-size:15px;font-weight:600;line-height:1.4;color:var(--pi-muted)}
/* Copy details and Keep on this device fold into a small menu at the card's corner. */
.web-pro{position:relative}.web-pro .pro-top{padding-right:40px}
.pro-more{position:absolute;top:6px;right:6px}
.pro-more>summary{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:var(--pi-muted);list-style:none;cursor:pointer}.pro-more>summary::-webkit-details-marker{display:none}
.pro-more>summary:hover{background:var(--pi-surface-soft)}.pro-more>summary svg{width:22px;height:22px;fill:currentColor}
.web-pro .pro-more>.actions{position:absolute;z-index:5;top:46px;right:0;display:grid;gap:6px;width:max-content;max-width:240px;margin:0;padding:8px;border:1px solid var(--pi-line);border-radius:var(--radius-panel,12px);background:var(--pi-surface);box-shadow:var(--pi-card-shadow)}
.pro-more>.actions .button{justify-self:stretch;margin:0}
/* A member already contacted, and members shown from the rest of the state. */
.sent-mark{justify-self:start;margin:0;padding:3px 10px;border-radius:var(--radius-pill,999px);background:var(--pi-accent-soft);color:var(--pi-accent);font-size:12px;font-weight:650}
.pro .sent-mark{font-size:12px}
.wider{margin:0 0 10px;color:var(--pi-muted);font-size:14px;font-weight:600}
/* The dialog follows the hub's (task-workspace.css): a title bar that stays put, the dialog title beside a 44px
   close, and under the contact form a footer that is always in view, Cancel then the main button on the right. */
#contact{scroll-padding:76px 0 96px}
#contact-body{padding:0 20px 20px}#contact-body:has(>.sent){padding-top:20px}#contact-body:has(>#contact-form){padding-bottom:0}
.dialog-top{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 -20px;padding:14px 12px 14px 20px;border-bottom:1px solid var(--pi-line);background:var(--pi-surface)}
#contact .dialog-top h2,#contact .sent h2{font:650 20px/1.3 Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:0;color:var(--pi-ink)}
.dialog-close{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border:0;border-radius:50%;background:none;color:var(--pi-muted);cursor:pointer}
#contact-form{display:flex;flex-direction:column;gap:14px}.sent{display:grid;gap:14px}
.dialog-foot{position:sticky;bottom:0;z-index:2;display:grid;gap:10px;margin:auto -20px 0;padding:14px 20px calc(14px + env(safe-area-inset-bottom));border-top:1px solid var(--pi-line);background:var(--pi-surface)}
.dialog-foot .actions{justify-content:flex-end}
.dialog-close:hover{background:var(--pi-surface-soft)}.dialog-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.chosen{display:flex;flex-wrap:wrap;align-items:center;gap:0 12px;margin:0;padding:2px 14px;border-radius:var(--radius-panel,12px);background:var(--pi-surface-soft);font-size:15px;font-weight:600;color:var(--pi-ink)}
.chosen-fields{display:grid;gap:14px}.chosen-fields[hidden]{display:none}
/* The message, in the contact dialog: read it, change it, then open it in your own app. */
.reach-form{display:grid;gap:14px}
.reach-form h2:focus{outline:none}
.reach-channel{display:inline-grid;grid-template-columns:1fr 1fr;justify-self:start;padding:4px;border-radius:var(--radius-pill,999px);background:var(--pi-surface-soft)}
.reach-channel button{min-height:44px;padding:8px 24px;border:0;border-radius:var(--radius-pill,999px);background:transparent;color:var(--pi-muted);font:inherit;font-size:14px;font-weight:650;cursor:pointer}
.reach-channel button[aria-pressed=true]{background:var(--pi-feature);color:var(--pi-on-primary)}
.reach-form .reach-to{margin:0;color:var(--pi-muted);font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.reach-form textarea{min-height:190px;line-height:1.5;resize:vertical}
.reach-form .button{text-decoration:none}
/* A client's kept people in My Keylective carry the same actions under each name. */
.shortlist li .reach-box{flex:1 1 100%;max-width:560px;margin:4px auto 0 0}
@keyframes scan-orbit{to{transform:rotate(360deg)}}
@keyframes face-in{from{opacity:0;transform:scale(.4)}}
@keyframes reach-fill{0%{background:rgba(227,185,101,.45);box-shadow:0 0 0 6px rgba(227,185,101,.45)}100%{background:rgba(227,185,101,0);box-shadow:0 0 0 6px rgba(227,185,101,0)}}
/* Motion only where it was asked for. A face arrives once; a card that got a phone or email does not arrive again, its new lines glow once. */
.pro.web-pro.is-updated{animation:none}
@media (prefers-reduced-motion:no-preference){
 .team-scan.is-busy .scan-gold{animation:scan-orbit 3.4s linear infinite}
 .scan-face{animation:face-in .45s cubic-bezier(.2,.8,.3,1.15) both}
 .web-pro.is-updated .reach-lines{animation:reach-fill 1.8s ease-out both}
}
@media (prefers-reduced-motion:reduce){.team-scan,.team-scan *,#results .pro,#results .pro *{animation:none!important;transition:none!important}}
@media (max-width:760px){
 /* On a phone the key sits beside the heading and everything under it runs the full width. */
 .team-scan{column-gap:14px;row-gap:0;margin-top:20px;padding:22px 18px;border-radius:20px}
 .scan-main{display:contents}.scan-main>*{grid-column:1/-1}
 .scan-key{grid-row:1/span 2;align-self:center;width:58px;height:58px}.scan-key svg{width:36px;height:36px;margin:4px 0 0 4px}
 .team-scan .scan-eyebrow,.team-scan .scan-title{grid-column:2}.team-scan .scan-eyebrow{font-size:11px}.team-scan .scan-title{margin-top:4px;font-size:22px}
 .scan-number strong{font-size:38px}.team-scan .scan-numbers{gap:4px 22px}
 .scan-face,.scan-more{width:38px;height:38px;font-size:12.5px}.scan-faces{gap:6px;min-height:38px}
 .scan-jump{margin-left:0}.scan-foot{gap:6px 16px;margin-top:16px}.scan-stop{padding:9px 18px}.scan-only{flex:1 1 100%;order:3}
 .reach-form textarea{min-height:230px}
 .dialog-top{padding:10px 12px 10px 20px}
 /* The sheet is as tall as the screen, so a short form still ends with its footer on the bottom edge. */
 #contact-body:has(>#contact-form){display:flex;flex-direction:column;box-sizing:border-box;min-height:100%}#contact-form{flex:1}
}
