/* Place, participant photos, and structured plan facts. */
.workspace{display:block}.workspace>.detail-panel{display:none}
#plan-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.feed-heading{justify-content:flex-start;gap:8px;margin-bottom:14px;min-height:20px}.feed-heading #result-count{font-size:12px;background:#ecebe4;padding:2px 7px;border-radius:8px}
.plan-card{margin:0;padding:18px 20px 12px;border-radius:20px;box-shadow:0 0 0 1px #24231f15;background:var(--paper);min-width:0;transition:box-shadow 150ms ease,background-color 150ms ease}
.plan-card:hover{box-shadow:0 0 0 1px #24231f38,0 4px 14px #24231f08}
.meetup-heading{display:flex;align-items:center;gap:12px;justify-content:space-between}.meetup-heading h3{min-width:0}.meetup-heading .plan-title{font-size:19px;letter-spacing:-.45px;line-height:1.25;font-weight:650}.meetup-heading .intent-badge{flex:none}.meetup-heading .intent-badge .icon{width:17px;height:17px}
.plan-authored-title{font-size:13px;line-height:1.45;color:var(--muted);margin-top:4px;min-height:19px;overflow-wrap:anywhere}
.meetup-content{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;gap:22px;margin-top:14px}
.meetup-facts{min-width:0;display:grid;gap:10px}.meetup-fact{display:flex;gap:8px;align-items:flex-start;font-size:13px;line-height:1.3}.meetup-fact>.icon{width:16px;height:16px;color:var(--muted);margin-top:1px}.meetup-fact small{display:block;color:var(--muted);font-size:12px;margin-top:3px;line-height:1.3;font-variant-numeric:tabular-nums}.payment-fact{color:var(--muted);font-size:12px}
.meetup-actions{display:flex;align-items:center;gap:8px;height:32px;margin-top:-4px}.meetup-actions .capacity{font-size:12px}.meetup-actions .capacity .icon{width:15px;height:15px}.meetup-actions .detail-link{margin-left:auto;min-height:44px;width:44px}.joined-indicator{color:var(--green);display:flex}.joined-indicator .icon{width:16px;height:16px}
.profile-deck{--photo-width:86px;--photo-height:122px;width:100%;align-self:center;min-width:0;position:relative;cursor:default}
.deck-cards{height:146px;display:flex;align-items:center;padding-inline:28px;position:relative;width:100%;margin-inline:auto;isolation:isolate}
.profile-card{position:relative;flex:1;min-width:0;height:138px;padding:0;border:0;border-radius:0;background:transparent;overflow:visible;z-index:var(--layer);touch-action:pan-y;outline:none}
.profile-card-face{position:absolute;left:50%;top:9px;width:var(--photo-width);height:var(--photo-height);margin-left:calc(var(--photo-width)/-2);border-radius:12px;overflow:hidden;background:#e7e4da;box-shadow:0 0 0 2px var(--paper),0 3px 8px #00000024;transform-origin:50% 90%;transform:translate(var(--shift,0px),calc(var(--order)*3px));transition:filter 180ms ease,box-shadow 220ms ease;pointer-events:none}
.profile-card:focus-visible{outline:none}.deck-cards .profile-card.static:focus-visible .profile-card-face{transform:translate(var(--shift,0px),calc(var(--order)*3px));box-shadow:0 0 0 2px var(--paper),0 0 0 4px var(--red),0 8px 16px #0003}
@media(hover:hover){
 .deck-cards:has(.profile-card.is-front) .profile-card-face{filter:brightness(.94)}
 .deck-cards .profile-card.is-front .profile-card-face{transform:translate(var(--shift,0px),calc(var(--order)*3px));filter:brightness(1);box-shadow:0 0 0 2px var(--paper),0 4px 10px #0002}
}
.deck-photo{position:absolute;inset:0;overflow:hidden;pointer-events:none}.deck-photo .avatar{position:absolute;left:50%;top:0;translate:-50% 0;width:var(--photo-height);height:var(--photo-height);border-radius:0;border:0;outline:0;margin:0;font-size:32px}.deck-photo .avatar.you{background:#ddd7c5}
.deck-name{position:absolute;bottom:0;left:0;right:0;padding:24px 6px 8px;background:linear-gradient(transparent,#000b);color:white;font-size:10px;font-weight:600;white-space:nowrap;text-align:left;pointer-events:none}
#plan-list>.empty-state{grid-column:1/-1}
#plan-dialog{width:min(480px,calc(100% - 32px));max-width:none;max-height:90dvh}.plan-dialog .detail-close{display:inline-flex}.join-actions .join-control{min-width:104px;border-radius:14px}
/* A nonmodal profile anchored to the selected portrait. */
#person-popover{position:fixed;inset:auto;width:min(320px,calc(100vw - 24px));max-height:calc(100dvh - 24px);margin:0;padding:0;border:1px solid #24231f15;border-radius:22px;background:var(--paper);color:var(--ink);box-shadow:0 16px 52px #24231f36,0 3px 10px #24231f18;overflow:visible;outline:none}
#person-content{display:flex;flex-direction:column;max-height:var(--profile-space,calc(100dvh - 24px));overflow:hidden;border-radius:21px}
#person-popover:after{content:"";position:absolute;left:var(--profile-tip,50%);bottom:-10px;width:18px;height:18px;background:var(--paper);border-right:1px solid #24231f15;border-bottom:1px solid #24231f15;transform:translateX(-50%) rotate(45deg);pointer-events:none}
#person-popover:popover-open{animation:profile-reveal 180ms cubic-bezier(.2,.7,.2,1)}
#person-popover::backdrop{background:transparent;backdrop-filter:none;pointer-events:none}
.person-hero{flex:none;position:relative;height:var(--profile-hero,250px);overflow:hidden;background:#e9e4d8;isolation:isolate}.person-hero>.avatar{position:absolute;left:50%;top:50%;translate:-50% -50%;width:320px;height:320px;border-radius:0;outline:0;font-size:70px}.person-hero:after{content:"";position:absolute;inset:35% 0 0;background:linear-gradient(transparent,#000b);pointer-events:none}
.person-hero>.icon-button{position:absolute;top:10px;right:10px;z-index:2;background:#fffefaee;box-shadow:0 2px 8px #0001;width:36px;min-width:36px;min-height:36px;height:36px}
.person-photo-caption{position:absolute;left:18px;right:18px;bottom:18px;color:white;z-index:1}.person-photo-caption h2{font-size:29px;line-height:1.15;letter-spacing:-.6px}.person-photo-caption h2 span{font-weight:450}.person-city{display:flex;align-items:center;gap:5px;margin-top:7px;font-size:12px}.person-city .icon{width:14px;height:14px}
.person-profile-body{padding:12px 18px;overflow:auto;overscroll-behavior:contain;min-height:0}.person-intent{display:flex;align-items:center;gap:7px;color:var(--red-dark);font-size:12px;font-weight:600}.person-intent .icon{width:16px;height:16px}.person-bio{font-size:14px;line-height:1.5;margin:12px 0}
.person-interests{display:flex;flex-wrap:wrap;gap:6px;padding:0;margin:12px 0 16px;list-style:none}.person-interests li{padding:6px 10px;border:1px solid var(--line);border-radius:20px;font-size:12px;line-height:1.2}
.person-profile-actions{flex:none;margin:0 18px 12px;display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding-top:12px}.profile-plan-link{display:flex;align-items:center;gap:6px;flex:1;min-width:0;padding:0;background:none;text-align:left;font-size:12px;min-height:44px}.profile-plan-link>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-plan-link .icon{width:15px;height:15px;flex:none}.person-invite{font-size:13px;min-height:44px;padding:0 16px;border-radius:12px}
@keyframes profile-reveal{from{opacity:0;transform:scale(.97)}to{opacity:1;transform:scale(1)}}

@media(prefers-reduced-motion:reduce){#person-popover:popover-open{animation:none}}
@media(max-width:1050px){.meetup-content{grid-template-columns:140px minmax(0,1fr);gap:16px}.plan-card{padding:16px 16px 10px}}
@media(max-width:800px){main{max-width:760px}#plan-list{gap:14px;grid-template-columns:minmax(0,1fr)}.plan-card{padding:15px 18px 10px}.meetup-content{grid-template-columns:150px minmax(0,1fr);gap:22px;margin-top:12px}.meetup-heading .plan-title{font-size:19px}.meetup-fact{font-size:13px}.plan-authored-title{font-size:12px}.page-heading{margin-bottom:16px}.feed-heading{margin-bottom:12px}#plan-dialog{width:100%;margin:auto 0 0;max-height:92dvh;border-radius:24px 24px 0 0}}
@media(max-width:400px){.plan-card{padding-inline:14px}.meetup-content{grid-template-columns:124px minmax(0,1fr);gap:14px}.profile-deck{--photo-width:70px;--photo-height:114px}.deck-cards{width:100%;padding-inline:22px;height:138px}.deck-name{font-size:9px;padding-inline:5px}.meetup-heading .plan-title{font-size:18px}.meetup-fact{gap:6px;font-size:12px}.meetup-facts{gap:9px}.meetup-fact small,.payment-fact{font-size:11px}}
@media(prefers-reduced-motion:reduce){.profile-card-face{transition:none}}
@media(min-width:1180px){
 #plan-list{grid-template-columns:repeat(3,minmax(0,1fr))}
 .plan-card{padding:16px 16px 10px}
 .meetup-content{grid-template-columns:140px minmax(0,1fr);gap:16px}
 .profile-deck{--photo-width:80px;--photo-height:118px}
 .meetup-heading .plan-title{font-size:18px}.meetup-fact{font-size:12px;gap:6px}.meetup-fact small,.payment-fact{font-size:11px}
}

/* Horizontal overlapping stack, first portrait in front. */
.profile-card::before{content:"";position:absolute;inset:0}
.profile-card:first-child::before{left:-30px}.profile-card:last-child::before{right:-30px}
.deck-expand{position:absolute;inset:0;z-index:30;background:transparent;border-radius:14px;width:100%;padding:0}
.deck-expand[hidden]{display:none}.deck-expand:focus-visible{outline:3px solid var(--red);outline-offset:0}
#deck-dialog{position:fixed;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:hidden;outline:none}
#deck-dialog::backdrop{background:rgb(28 27 24 / .22);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);animation:fan-backdrop-in 240ms ease both}
#deck-dialog.is-closing::backdrop{animation:fan-backdrop-out 180ms ease both}
#expanded-fan{position:absolute;left:50%;top:50%;width:0;height:0;--photo-width:clamp(100px,32vw,160px);--photo-height:clamp(160px,50vw,248px);--spread:min(16vw,108px);animation:fan-grow 300ms cubic-bezier(.2,.75,.2,1) both}
.fan-profile{position:absolute;left:calc(var(--photo-width)/-2);top:calc(var(--photo-height)/-2);width:var(--photo-width);height:var(--photo-height);padding:0;border-radius:18px;overflow:hidden;background:var(--paper);box-shadow:0 0 0 3px var(--paper),0 12px 32px #0003;z-index:calc(2 + var(--order));transform-origin:50% 85%;transform:translate(calc(var(--lean)*var(--spread)),var(--arc)) rotate(var(--fan-angle));animation:fan-spread 300ms cubic-bezier(.2,.75,.2,1) both}
.fan-profile .deck-name{font-size:14px;padding:36px 10px 12px}.fan-profile:focus-visible{z-index:20;outline:3px solid var(--red);outline-offset:4px}
.fan-close{position:absolute;right:max(20px,env(safe-area-inset-right));top:max(20px,env(safe-area-inset-top));background:var(--paper);z-index:30}
#deck-dialog.is-closing #expanded-fan{animation:fan-shrink 180ms ease both}#deck-dialog.is-closing .fan-profile{animation:fan-gather 180ms ease both;pointer-events:none}
@keyframes fan-grow{from{transform:translate(var(--origin-x),var(--origin-y)) scale(.4)}to{transform:translate(0,0) scale(1)}}
@keyframes fan-spread{from{transform:translate(calc(var(--lean)*8px),0) rotate(0)}to{transform:translate(calc(var(--lean)*var(--spread)),var(--arc)) rotate(var(--fan-angle))}}
@keyframes fan-shrink{to{transform:translate(var(--origin-x),var(--origin-y)) scale(.4);opacity:0}}
@keyframes fan-gather{to{transform:translate(calc(var(--lean)*8px),0) rotate(0)}}
@keyframes fan-backdrop-in{from{opacity:0}to{opacity:1}}@keyframes fan-backdrop-out{to{opacity:0}}
@media(prefers-reduced-motion:reduce){#expanded-fan,.fan-profile,#deck-dialog::backdrop,#deck-dialog.is-closing #expanded-fan,#deck-dialog.is-closing .fan-profile,#deck-dialog.is-closing::backdrop{animation:none}}

/* A solo portrait fills the space otherwise occupied by the photo stack. */
.profile-deck:has(.profile-card:only-child){--photo-width:calc(100% - 12px);--photo-height:136px}
.deck-cards:has(.profile-card:only-child){padding-inline:0}
.profile-card:only-child .profile-card-face{top:4px}
.profile-card:only-child .deck-name{font-size:11px;padding-inline:9px}
@media(max-width:400px){.profile-deck:has(.profile-card:only-child){--photo-height:128px}}

/* A small leftward slide, with fixed pointer targets and no rotation. */
@media(hover:hover){
 .deck-cards .profile-card .profile-card-face{transition:transform 180ms ease-out,filter 180ms ease,box-shadow 180ms ease}
}
@media(prefers-reduced-motion:reduce){.deck-cards .profile-card .profile-card-face{transition:none}}
