/* Phase 08 — community group detail */
.ib-community-group-main-phase8 {
    width: 100%;
    max-width: none;
    padding-inline: 0;
    overflow-x: clip;
    background:
        linear-gradient(180deg, #f7f9fc 0, #fff 760px);
}

.ib-community-group-show-phase8 {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.ib-community-group-show-phase8 > .ib-community-group-show-hero {
    position: relative;
    isolation: isolate;
    width: 100vw;
    max-width: none !important;
    margin-inline: calc(50% - 50vw);
    border: 0;
    border-radius: 0;
    padding: 0;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 14% 22%, rgba(246, 138, 31, .16), transparent 29%),
        linear-gradient(90deg, rgba(3, 21, 45, .98) 0%, rgba(3, 27, 57, .93) 50%, rgba(3, 25, 52, .74) 100%),
        url("../images/unified-hubs/community-hero.webp") center 45% / cover no-repeat;
    box-shadow: 0 22px 52px rgba(3, 22, 54, .14);
}

.ib-community-group-show-phase8 > .ib-community-group-show-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .28;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: linear-gradient(to left, #000, transparent 88%);
}

.ib-community-group-show-phase8 > .ib-community-group-show-hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -100% auto;
    z-index: -1;
    width: min(58vw, 760px);
    aspect-ratio: 1;
    border: 1px solid rgba(246, 138, 31, .16);
    border-radius: 50%;
    box-shadow:
        0 0 0 68px rgba(246, 138, 31, .025),
        0 0 0 136px rgba(246, 138, 31, .016);
}

.ib-community-group-show-hero__inner {
    min-height: 330px;
    padding-block: clamp(42px, 5vw, 64px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    align-items: center;
    gap: clamp(30px, 6vw, 84px);
}

.ib-community-group-show-identity {
    min-width: 0;
    max-width: 830px;
}

.ib-community-group-show-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #ffd58a;
    font-size: 13px;
    font-weight: 900;
}

.ib-community-group-show-eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f68a1f, #ffd36a);
}

.ib-community-group-show-phase8 .ib-community-group-show-hero h1 {
    max-width: 850px;
    margin: 0;
    color: #fff;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 950;
    line-height: 1.35;
    letter-spacing: -.035em;
    text-wrap: balance;
}

.ib-community-group-show-phase8 .ib-community-group-show-hero__inner > .ib-community-group-show-identity > p {
    max-width: 760px;
    margin: 14px 0 0;
    color: rgba(239, 246, 255, .78);
    font-size: clamp(14px, 1.3vw, 17px);
    font-weight: 600;
    line-height: 2;
}

.ib-community-group-show-phase8 .ib-community-group-meta,
.ib-community-group-show-phase8 .ib-community-group-filter-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}

.ib-community-group-show-phase8 .ib-community-group-meta span,
.ib-community-group-show-phase8 .ib-community-group-filter-summary span {
    min-height: 32px;
    padding: 6px 11px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .88);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.4;
}

.ib-community-group-show-phase8 .ib-community-group-filter-summary {
    margin-top: 9px;
}

.ib-community-group-show-phase8 .ib-community-group-filter-summary span {
    border-color: rgba(246, 138, 31, .25);
    background: rgba(246, 138, 31, .12);
    color: #ffe1ae;
}

.ib-community-group-show-phase8 .ib-community-group-join-card {
    min-width: 0;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .17);
    border-radius: 24px;
    background: rgba(255, 255, 255, .09);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .12);
    backdrop-filter: blur(14px);
}

.ib-community-group-show-phase8 .ib-community-group-join-card p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, .82);
    line-height: 1.9;
}

.ib-community-group-show-phase8 .ib-community-group-join-card small {
    display: block;
    margin: -5px 0 14px;
    color: rgba(255, 255, 255, .62);
    line-height: 1.8;
}

.ib-community-group-show-phase8 .ib-community-group-join-card strong {
    display: block;
    margin-bottom: 14px;
    color: #fff;
}

.ib-community-group-show-phase8 .ib-community-group-join-card form {
    margin: 0;
}

.ib-community-group-show-phase8 .ib-community-group-join-card .ib-btn {
    min-width: 112px;
    justify-content: center;
}

.ib-community-group-workspace {
    padding-block: clamp(24px, 3.5vw, 44px) 0;
}

.ib-community-group-show-phase8 .ib-community-rules-card {
    margin: 0;
    padding: clamp(20px, 2.6vw, 30px);
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(0, 1.5fr);
    align-items: center;
    gap: clamp(24px, 4vw, 52px);
    border: 1px solid rgba(15, 23, 42, .07);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, .06);
}

.ib-community-group-show-phase8 .ib-community-rules-card__intro .ib-kicker {
    color: #e9770d;
}

.ib-community-group-show-phase8 .ib-community-rules-card__intro h2 {
    margin: 8px 0;
    color: #071b3b;
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.55;
}

.ib-community-group-show-phase8 .ib-community-rules-card__intro p {
    margin: 0;
    color: #64748b;
    line-height: 1.95;
}

.ib-community-group-show-phase8 .ib-community-rules-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.ib-community-group-show-phase8 .ib-community-rules-list li {
    position: relative;
    min-height: 48px;
    margin: 0;
    padding: 12px 48px 12px 16px;
    display: flex;
    align-items: center;
    border: 1px solid #edf0f4;
    border-radius: 16px;
    background: #fbfcfe;
    color: #334155;
    font-weight: 700;
    line-height: 1.8;
}

.ib-community-group-show-phase8 .ib-community-rules-list li::before {
    content: "✓";
    position: absolute;
    inset-inline-start: 14px;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #f68a1f, #ffad4b);
    color: #fff;
    font-size: 13px;
    font-weight: 950;
}

.ib-community-group-show-phase8 .ib-community-group-posts-section,
.ib-community-group-show-phase8 .ib-community-group-workspace > .ib-section {
    margin-top: 22px;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid rgba(15, 23, 42, .07);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(15, 23, 42, .055);
}

.ib-community-group-show-phase8 .ib-section-head {
    margin: 0 0 20px;
}

.ib-community-group-show-phase8 .ib-section-head .ib-kicker {
    color: #e9770d;
}

.ib-community-group-show-phase8 .ib-section-head h2 {
    margin: 8px 0;
    color: #071b3b;
    font-size: clamp(25px, 2.7vw, 36px);
    line-height: 1.5;
}

.ib-community-group-show-phase8 .ib-section-head p {
    max-width: 850px;
    margin: 0;
    color: #64748b;
    line-height: 1.95;
}

.ib-community-group-show-phase8 .ib-community-post-composer {
    margin: 0 0 20px;
}

.ib-community-group-show-phase8 .ib-community-post-composer.is-muted {
    padding: 16px 18px;
    border-color: rgba(246, 138, 31, .18);
    border-radius: 18px;
    background: linear-gradient(135deg, #fffaf4, #fff);
    box-shadow: none;
}

.ib-community-group-show-phase8 .ib-community-post-composer.is-muted strong {
    margin: 0;
}

.ib-community-group-show-phase8 .ib-community-post-composer.is-muted p {
    flex: 1 1 520px;
}

.ib-community-group-show-phase8 .ib-empty-state {
    min-height: 64px;
    padding: 17px 20px;
    display: flex;
    align-items: center;
    border: 1px dashed rgba(246, 138, 31, .3);
    border-radius: 18px;
    background: #fffaf5;
    color: #64748b;
    line-height: 1.9;
}

.ib-community-group-show-phase8 .ib-community-member-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ib-community-group-show-phase8 .ib-sponsor-card,
.ib-community-group-show-phase8 .ib-section-sponsor-card {
    margin-top: 22px;
}

@media (max-width: 980px) {
    .ib-community-group-show-hero__inner {
        grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
        gap: 28px;
    }

    .ib-community-group-show-phase8 .ib-community-rules-card {
        grid-template-columns: 1fr;
    }

    .ib-community-group-show-phase8 .ib-community-member-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .ib-community-group-show-hero__inner {
        min-height: 0;
        padding-block: 34px;
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ib-community-group-show-phase8 .ib-community-group-show-hero h1 {
        font-size: clamp(30px, 9vw, 42px);
    }

    .ib-community-group-show-phase8 .ib-community-group-join-card {
        padding: 18px;
        border-radius: 20px;
    }

    .ib-community-group-show-phase8 .ib-community-rules-card,
    .ib-community-group-show-phase8 .ib-community-group-posts-section,
    .ib-community-group-show-phase8 .ib-community-group-workspace > .ib-section {
        padding: 20px;
        border-radius: 22px;
    }
}

@media (max-width: 560px) {
    .ib-community-group-workspace {
        padding-top: 18px;
    }

    .ib-community-group-show-phase8 .ib-community-group-meta,
    .ib-community-group-show-phase8 .ib-community-group-filter-summary {
        gap: 6px;
    }

    .ib-community-group-show-phase8 .ib-community-group-meta span,
    .ib-community-group-show-phase8 .ib-community-group-filter-summary span {
        font-size: 11px;
    }

    .ib-community-group-show-phase8 .ib-community-rules-list li {
        padding-inline: 45px 12px;
        font-size: 13px;
    }

    .ib-community-group-show-phase8 .ib-community-post-composer.is-muted {
        align-items: stretch;
    }

    .ib-community-group-show-phase8 .ib-community-post-composer.is-muted .ib-btn {
        width: 100%;
        justify-content: center;
    }

    .ib-community-group-show-phase8 .ib-community-member-grid {
        grid-template-columns: 1fr;
    }
}
