/* Owner-requested hero02club and group feed variants, 2026-11-12. Shared tokens/buttons retained. */
.stam-ui.sg-networking-scope .sg-club-hero{position:relative;display:flex;flex-direction:column;justify-content:flex-end;gap:16px;min-height:270px;padding:24px;border-radius:24px;overflow:hidden;isolation:isolate;background:hsl(var(--card));color:hsl(var(--foreground));box-sizing:border-box}
.stam-ui.sg-networking-scope .sg-club-cover{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.stam-ui.sg-networking-scope .sg-club-hero:has(.sg-club-cover){color:white;background:#161616}
.stam-ui.sg-networking-scope .sg-club-hero:has(.sg-club-cover)::after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(transparent,rgba(0,0,0,.82))}
.stam-ui.sg-networking-scope .sg-club-title{margin:0;font-size:clamp(28px,7vw,44px);line-height:1.12;letter-spacing:-.025em;overflow-wrap:anywhere}
.stam-ui.sg-networking-scope .sg-club-subtitle{margin:10px 0 0;font-size:15px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.stam-ui.sg-networking-scope .sg-club-hero>.sg-button{align-self:flex-start}
.stam-ui.sg-networking-scope .sg-club-members{display:flex;align-items:center;gap:12px;width:100%;padding:4px 0}
.stam-ui.sg-networking-scope .sg-club-member-open{display:flex;align-items:center;gap:8px;flex:1 1 58%;min-width:0;text-align:left;background:none;border:0;color:inherit;padding:8px 0;cursor:pointer;font:inherit}
.stam-ui.sg-networking-scope .sg-club-member-open>svg{flex:none}
.stam-ui.sg-networking-scope .sg-club-member-open .sg-forum-avatars{flex:none}
.stam-ui.sg-networking-scope .sg-club-member-count{flex:0 1 42%;text-align:right;font-size:12px;line-height:1.4;color:hsl(var(--muted-foreground))}
.stam-ui.sg-networking-scope .sg-club-tabs{display:flex;gap:24px;overflow-x:auto;scrollbar-width:thin;border-bottom:1px solid hsl(var(--border));padding:0;max-width:100%}
.stam-ui.sg-networking-scope .sg-club-tab{flex:none;min-height:48px;padding:8px 0;border:0;border-bottom:2px solid transparent;background:none;color:hsl(var(--muted-foreground));font:inherit;cursor:pointer}
.stam-ui.sg-networking-scope .sg-club-tab[aria-current]{color:hsl(var(--foreground));border-bottom-color:hsl(var(--primary))}
.stam-ui.sg-networking-scope .sg-club-member-open:focus-visible,.stam-ui.sg-networking-scope .sg-club-tab:focus-visible,.stam-ui.sg-networking-scope .sg-club-story:focus-visible,.stam-ui.sg-networking-scope .sg-club-overview button:focus-visible,.stam-ui.sg-networking-scope .sg-club-author:focus-visible,.stam-ui.sg-networking-scope .sg-club-expand:focus-visible{outline:2px solid hsl(var(--primary));outline-offset:2px}
.stam-ui.sg-networking-scope .sg-club-overview{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:12px}
.stam-ui.sg-networking-scope .sg-club-forum-tile{display:flex;flex-direction:column;justify-content:space-between;gap:12px;min-height:160px;padding:18px;border:0;border-radius:20px;background:hsl(var(--primary)/.13);color:inherit;text-align:left;font:inherit;cursor:pointer}
.stam-ui.sg-networking-scope .sg-club-forum-tile strong{font-size:21px}
.stam-ui.sg-networking-scope .sg-club-latest{display:flex;flex-direction:column;min-width:0}
.stam-ui.sg-networking-scope .sg-club-dialog{display:flex;flex-direction:column;gap:4px;flex:1;min-height:80px;padding:12px 0;border:0;border-bottom:1px solid hsl(var(--border));background:none;color:inherit;text-align:left;font:inherit;cursor:pointer;overflow:hidden}
.stam-ui.sg-networking-scope .sg-club-dialog strong,.stam-ui.sg-networking-scope .sg-club-dialog span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow-wrap:anywhere}
.stam-ui.sg-networking-scope .sg-club-dialog span{font-size:12px;line-height:18px;color:hsl(var(--muted-foreground))}
.stam-ui.sg-networking-scope .sg-club-stories{display:flex;align-items:center;gap:12px;overflow-x:auto;padding:4px;min-height:0}
.stam-ui.sg-networking-scope .sg-club-story{width:72px;height:72px;flex:none;border:2px solid hsl(var(--primary));border-radius:50%;padding:3px;background:none;cursor:pointer}
.stam-ui.sg-networking-scope .sg-club-story>*{width:100%;height:100%;object-fit:cover;border-radius:50%}
.stam-ui.sg-networking-scope .sg-club-post{display:flex;flex-direction:column;gap:12px;min-width:0;padding:16px 0;border-bottom:1px solid hsl(var(--border))}
.stam-ui.sg-networking-scope .sg-club-post-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.stam-ui.sg-networking-scope .sg-club-author{display:flex;gap:10px;align-items:center;min-width:0;padding:0;border:0;background:none;color:inherit;text-align:left;font:inherit;cursor:pointer}
.stam-ui.sg-networking-scope .sg-club-author-info{display:flex;flex-direction:column;gap:2px;min-width:0;overflow-wrap:anywhere}
.stam-ui.sg-networking-scope .sg-club-author-info>span,.stam-ui.sg-networking-scope .sg-club-author-info time{font-size:11px;line-height:16px;color:hsl(var(--muted-foreground))}
.stam-ui.sg-networking-scope .sg-club-post-text{margin:0;font-size:15px;line-height:23px;white-space:pre-wrap;overflow-wrap:anywhere}
.stam-ui.sg-networking-scope .sg-club-text-collapsed{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.stam-ui.sg-networking-scope .sg-club-expand{align-self:flex-start;padding:0;border:0;background:none;color:hsl(var(--muted-foreground));font:inherit;font-size:13px;cursor:pointer}
.stam-ui.sg-networking-scope .sg-club-post-actions{display:flex;flex-wrap:wrap;gap:4px}
.stam-ui.sg-networking-scope .sg-club-join{width:100%}
.stam-ui.sg-networking-scope .sg-club-content{display:flex;flex-direction:column;gap:16px;min-width:0}
.stam-ui.sg-networking-scope .sg-club-viewer{position:fixed;inset:0;z-index:1000;background:#000;color:white;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:12px;padding:16px;box-sizing:border-box;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;border-radius:0;overflow:auto}
.stam-ui.sg-networking-scope .sg-club-viewer-media{width:100%;max-width:1100px;aspect-ratio:16/9;object-fit:contain;background:#000;min-height:0;max-height:75vh}
.stam-ui.sg-networking-scope .sg-club-viewer-controls{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.stam-ui.sg-networking-scope .sg-club-viewer button{color:white;border-color:#777}
.stam-ui.sg-networking-scope .sg-club-viewer-status{font-size:13px}
@media(max-width:360px){.stam-ui.sg-networking-scope .sg-club-hero{padding:18px;min-height:240px}.stam-ui.sg-networking-scope .sg-club-member-open{font-size:12px;gap:4px}.stam-ui.sg-networking-scope .sg-club-member-open .sg-forum-avatar{width:22px;height:22px}.stam-ui.sg-networking-scope .sg-club-tabs{gap:20px}}
.stam-ui.sg-networking-scope .sg-club-content input[type=file],.stam-ui.sg-networking-scope .sg-club-editor input[type=file]{display:block;max-width:100%;min-width:0;box-sizing:border-box}
.stam-ui.sg-networking-scope .sg-club-content label,.stam-ui.sg-networking-scope .sg-club-editor label{min-width:0;overflow-wrap:anywhere}

/* Named media viewer is intentionally opaque: palette glass materials apply to ordinary dialogs only.
   Native top layer keeps this above the app dock and transformed route shells. */
:root[data-stam-appearance] .stam-ui.sg-networking-scope .sg-club-viewer[role=dialog],.stam-ui.sg-networking-scope .sg-club-viewer[role=dialog]{background:#000!important;background-image:none!important;color:#fff!important;border:0!important;border-radius:0!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;transform:none!important}
.stam-ui.sg-networking-scope .sg-club-viewer::backdrop{background:#000}
:root[data-stam-appearance] .stam-ui.sg-networking-scope .sg-club-viewer .sg-button,.stam-ui.sg-networking-scope .sg-club-viewer .sg-button{color:#fff!important;border-color:#aaa!important;background:#111!important}
.stam-ui.sg-networking-scope .sg-club-viewer-media{flex:0 1 auto;max-height:calc(100dvh - 160px)}
.stam-ui.sg-networking-scope .sg-club-viewer-controls,.stam-ui.sg-networking-scope .sg-club-viewer-status{flex:none}
.stam-ui.sg-networking-scope .sg-club-viewer-status{margin:0;color:#fff!important}
