/* Existing Prime Traders tokens and Manrope, no new palette. */
.community-about{margin-bottom:40px;align-items:start}
.community-about p{margin-top:0}.community-about p+p{margin-top:16px}
.community-team{display:grid;gap:0}
.community-person{display:grid;grid-template-columns:112px 1.1fr 1fr;gap:28px;align-items:center;border-top:1px solid var(--line);padding:28px 0}
.community-person:last-child{border-bottom:1px solid var(--line)}
.community-person img{width:112px;height:140px;object-fit:cover;border-radius:var(--radius-sm)}
.community-person h3{font-size:var(--fs-h3);margin:0;line-height:1.15;letter-spacing:var(--tr-h3)}
.community-role{font-size:var(--fs-small);color:var(--muted);margin:10px 0 0}
.community-person>p{margin:0}
.community-review-intro{display:flex;justify-content:space-between;gap:32px;align-items:end;margin-bottom:32px}
.community-review-intro>div:first-child{max-width:620px}
.community-review-controls{display:flex;gap:12px;align-items:center;flex:none}
.community-review-controls button{min-height:48px}
.community-review-count{font-size:var(--fs-small);color:var(--muted);white-space:nowrap}
.community-reviews{display:flex;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior:contain;touch-action:pan-x;padding-bottom:20px;scroll-padding-inline:0}
.community-review{flex:0 0 68%;margin:0;scroll-snap-align:start;min-width:0}
.community-review:last-child{padding-right:0}
.community-review-open{display:block;width:100%;padding:0;border:0;background:var(--surface-2);cursor:zoom-in}
.community-review-open img{display:block;width:100%;height:430px;object-fit:contain}
.community-review figcaption{display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:baseline;padding-top:20px}
.community-review figcaption>span{font-size:var(--fs-small);color:var(--muted)}
.community-review h3{font-size:var(--fs-lead);margin:0;line-height:1.3}
.community-review-source{grid-column:2;color:var(--muted);font-size:var(--fs-small);line-height:1.5}
.community-review figcaption .quiet{grid-column:2;justify-self:start;min-height:44px}
.community-reviews:focus-visible,.community-review-open:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.community-dialog{width:min(960px,calc(100vw - 32px));max-height:90dvh;padding:24px;border:1px solid var(--line-strong);border-radius:var(--radius);background:var(--bg);color:var(--ink);overflow:auto}
.community-dialog::backdrop{background:color-mix(in srgb,var(--bg) 88%,transparent)}
.community-dialog-top{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px}
.community-dialog-top h3{font-size:var(--fs-lead);margin:0}
.community-dialog img{display:block;max-width:100%;max-height:70dvh;object-fit:contain;margin:auto}
.community-schedule{font-size:var(--fs-lead);line-height:1.5;max-width:850px}
@media(max-width:760px){
 .community-person{grid-template-columns:80px 1fr;gap:16px;padding:24px 0;align-items:start}
 .community-person img{width:80px;height:100px;grid-row:span 2}
 .community-person h3{font-size:var(--fs-lead)}
 .community-person>p{grid-column:2}
 .community-role{margin-top:8px}
 .community-review-intro{display:block}
 .community-review-controls{margin-top:20px}
 .community-review{flex-basis:88%}
 .community-review-open img{height:340px}
 .community-dialog{padding:16px}
 .community-dialog-top{align-items:start;gap:12px}
 .community-dialog-top button{padding:12px;min-height:48px}
}

/* Separate teaching in both spaces from Community-only analytics. */
.community-team-group+.community-team-group{margin-top:36px}
.community-team .community-group-title{font-size:var(--fs-lead);font-weight:600;letter-spacing:var(--tr-h3);margin:0 0 16px}
.community-group-note{max-width:60ch;margin:16px 0 0;color:var(--muted);font-size:var(--fs-small)}
.community-scope{font-size:var(--fs-small);font-weight:600;line-height:1.5;color:var(--accent-on-dark);margin:0 0 12px}
/* The founder leads through portrait and type scale, without a separate card. */
.community-team-founder .community-person{grid-template-columns:144px 1.1fr 1fr;border-top:0;padding-top:0}
.community-team-founder .community-person img{width:144px;height:180px}
.community-team-founder .community-person h3{font-size:var(--fs-h3)}
.community-team-founder .community-role{font-size:var(--fs-body);font-weight:600;color:var(--accent-on-dark)}
@media(max-width:760px){
 .community-person{grid-template-columns:80px minmax(0,1fr)}
 .community-team-founder .community-person{grid-template-columns:112px minmax(0,1fr)}
 .community-team-founder .community-person img{width:112px;height:140px}
 .community-person img{grid-row:auto}
 .community-person>p{grid-column:1 / -1}
 .community-person>div{min-width:0}
 .community-scope{margin-bottom:8px}
}
