/* Public community preview modal (steps 46-50).
   Native dark/neon style; every class is scoped under .vcr-community-public-*.
   The root covers the whole visual viewport (100dvh, over-constrained ICB) so
   the scrim and the centered panel always fit even on pages that overflow. */
.vcr-community-public-root{position:fixed;left:0;top:0;width:100vw;height:100vh;height:100dvh;z-index:2147483625;
    background:rgba(4,7,12,.72);display:flex;align-items:center;justify-content:center;
    animation:vcr-community-public-in .15s ease-out}
@keyframes vcr-community-public-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.vcr-community-public-root{animation:none}}

.vcr-community-public-panel{--vcrp-accent:#9f7aea;width:min(780px,calc(100vw - 24px));
    max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);
    display:flex;flex-direction:column;box-sizing:border-box;
    background:linear-gradient(180deg,#0d1117 0%,#0a0e14 100%);
    border:1.5px solid color-mix(in srgb,var(--vcrp-accent) 55%,#21262d);border-radius:12px;
    color:#e6edf3;font-family:inherit;font-size:14px;
    box-shadow:0 0 32px color-mix(in srgb,var(--vcrp-accent) 28%,transparent),0 18px 48px rgba(0,0,0,.55)}

.vcr-community-public-head{display:flex;align-items:center;gap:10px;padding:14px 16px 8px}
.vcr-community-public-title{flex:1;font-size:16px;font-weight:800;letter-spacing:.02em;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
    text-shadow:0 0 12px color-mix(in srgb,var(--vcrp-accent) 45%,transparent)}
.vcr-community-public-x{flex-shrink:0;width:30px;height:30px;box-sizing:border-box;padding:0;border-radius:8px;cursor:pointer;
    background:#161b22;border:1px solid #30363d;color:#c9d1d9;font-size:18px;line-height:1}
.vcr-community-public-x:hover{border-color:var(--vcrp-accent);color:#fff;
    box-shadow:0 0 10px color-mix(in srgb,var(--vcrp-accent) 55%,transparent)}

.vcr-community-public-tabs{display:flex;gap:4px;padding:0 16px;border-bottom:1px solid #21262d}
.vcr-community-public-tab{appearance:none;background:none;border:none;border-bottom:2px solid transparent;
    color:#8b949e;font-family:inherit;font-size:12px;font-weight:800;letter-spacing:.06em;
    text-transform:uppercase;padding:9px 12px;cursor:pointer}
.vcr-community-public-tab:hover{color:#e6edf3}
.vcr-community-public-tab.active{color:var(--vcrp-accent);border-bottom-color:var(--vcrp-accent);
    text-shadow:0 0 10px color-mix(in srgb,var(--vcrp-accent) 55%,transparent)}

.vcr-community-public-body{padding:14px 16px 16px;overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:120px}

.vcr-community-public-status{padding:18px 8px;text-align:center;color:#8b949e;font-size:13px}
.vcr-community-public-status.err{color:#ff7b72}
.vcr-community-public-status p{margin:0 0 10px}

.vcr-community-public-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;
    padding:7px 16px;border-radius:8px;cursor:pointer;text-decoration:none;
    background:linear-gradient(135deg,color-mix(in srgb,var(--vcrp-accent) 92%,#fff 8%),var(--vcrp-accent));
    border:1px solid var(--vcrp-accent);color:#0d1117;font-family:inherit;font-size:12px;font-weight:800;
    letter-spacing:.04em;box-shadow:0 0 12px color-mix(in srgb,var(--vcrp-accent) 45%,transparent)}
.vcr-community-public-btn:hover{filter:brightness(1.12)}
.vcr-community-public-btn[disabled]{opacity:.55;cursor:default}
.vcr-community-public-btn.ghost{background:#161b22;color:#c9d1d9;border-color:#30363d;box-shadow:none}
.vcr-community-public-btn.ghost:hover{border-color:var(--vcrp-accent);color:#fff;filter:none}

.vcr-community-public-info-head{display:flex;align-items:center;gap:10px;margin-bottom:10px;flex-wrap:wrap}
.vcr-community-public-logo{width:40px;height:40px;border-radius:50%;object-fit:cover;
    box-shadow:0 0 0 1.5px var(--vcrp-accent),0 0 12px color-mix(in srgb,var(--vcrp-accent) 40%,transparent)}
.vcr-community-public-name{font-size:15px;font-weight:800;max-width:100%;overflow-wrap:anywhere}
.vcr-community-public-type{border:1px solid;border-radius:999px;padding:2px 10px;font-size:11px;font-weight:700;
    background:color-mix(in srgb,currentColor 12%,transparent)}

.vcr-community-public-desc{margin:0 0 12px;border:1px solid #21262d;border-radius:8px;background:#0d1117}
.vcr-community-public-desc summary{padding:8px 10px;cursor:pointer;color:#8b949e;font-size:12px;font-weight:700}
.vcr-community-public-desc-text{padding:0 10px 10px;white-space:pre-wrap;color:#c9d1d9;font-size:13px;
    max-height:160px;overflow-y:auto;overflow-wrap:anywhere}

.vcr-community-public-stats{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:10px;color:#8b949e;font-size:12px}

.vcr-community-public-filter{display:flex;align-items:center;gap:8px;margin-bottom:12px}
.vcr-community-public-filter-label{font-size:11px;font-weight:800;letter-spacing:.08em;
    text-transform:uppercase;color:var(--vcrp-accent)}
.vcr-community-public-filter-select{background:#0d1117;border:1px solid var(--vcrp-accent);
    color:#e6edf3;border-radius:8px;padding:6px 10px;font-size:13px;font-weight:600;
    cursor:pointer;max-width:100%}
.vcr-community-public-filter-select:focus-visible{outline:none;
    box-shadow:0 0 0 2px #0d1117,0 0 0 3.5px var(--vcrp-accent)}

/* Same native member-card family as the private community page: single flat
   grid, two columns on the 780px panel, one on mobile. */
.vcr-community-public-mgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media(max-width:560px){.vcr-community-public-mgrid{grid-template-columns:1fr}}
.vcr-community-public-root .vcrcp-member-card{min-width:0}
@media(max-width:420px){
    .vcr-community-public-root .vcrcp-member-avatar-wrap{flex:0 0 104px;width:104px}
    /* Keep the shared 32px bottom reservation for the score badge. */
    .vcr-community-public-root .vcrcp-mcard-info{padding:8px 10px 32px}
}

.vcr-community-public-pager{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:12px}
.vcr-community-public-pageinfo{font-size:12px;color:#8b949e}

.vcr-community-public-fee{font-size:14px;margin-bottom:6px}
.vcr-community-public-fee strong{color:var(--vcrp-accent)}
.vcr-community-public-policy{font-size:12px;color:#8b949e;margin-bottom:14px}
.vcr-community-public-joinacts{display:flex;align-items:center;gap:10px;flex-wrap:wrap}

.vcr-community-public-root button:focus-visible,.vcr-community-public-root a:focus-visible{
    outline:none;box-shadow:0 0 0 2px #0d1117,0 0 0 3.5px var(--vcrp-accent)}
