/* ------------------------------------------------------------
 * Members & Portal Header + Post Share Button Styles
 * ------------------------------------------------------------ */

/* Header Actions & Alignment */
.gh-head-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    justify-content: flex-end;
}

.gh-head-members {
    display: inline-flex;
    gap: 16px;
    align-items: center;
    white-space: nowrap;
}

.gh-head-link {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.009em;
    color: var(--color-primary-text, #15171a);
    text-decoration: none;
    transition: opacity 0.2s ease;
    cursor: pointer;
}

.gh-head-link:hover {
    opacity: 0.7;
    text-decoration: none;
}

.gh-head-btn.gh-btn,
.gh-head-btn.gh-primary-btn {
    display: inline-flex;
    gap: 0.4em;
    align-items: center;
    justify-content: center;
    padding: 7px 18px;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff !important;
    background-color: var(--ghost-accent-color, #15171a);
    border: 0;
    border-radius: 999px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
}

.gh-head-btn.gh-btn:hover,
.gh-head-btn.gh-primary-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    text-decoration: none;
}

/* Post Share Button Styles */
.gh-article-header .gh-meta-share {
    display: flex;
    justify-content: center;
    margin: 16px auto 28px auto;
}

.gh-meta-share {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto 24px auto;
}

.gh-button-share {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 18px;
    font-size: 1.4rem;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 999px;
    color: rgba(0, 0, 0, 0.75);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.gh-button-share:hover {
    border-color: rgba(0, 0, 0, 0.45);
    color: rgba(0, 0, 0, 0.95);
    background-color: rgba(0, 0, 0, 0.03);
    text-decoration: none;
}

.gh-button-share svg {
    width: 16px;
    height: 16px;
    margin-top: -1px;
}

.gh-button-share.is-copied {
    border-color: #30cf43;
    color: #1a8a29;
    background-color: rgba(48, 207, 67, 0.08);
}

:is(.dark-mode, .theme-dark, .has-light-text) .gh-button-share {
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.2);
}

:is(.dark-mode, .theme-dark, .has-light-text) .gh-button-share:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Mobile Drawer Responsiveness */
@media (max-width: 767px) {
    .is-head-open .gh-head-actions {
        position: static;
        visibility: visible;
        opacity: 1;
        display: flex;
        flex-direction: column;
        width: 100%;
        padding: 16px 0;
        align-items: center;
    }

    .is-head-open .gh-head-members {
        display: flex;
        flex-direction: column-reverse;
        gap: 14px;
        width: 100%;
        align-items: center;
        margin-top: 12px;
    }

    .is-head-open .gh-head-members .gh-head-btn {
        width: 100%;
        max-width: 260px;
        padding: 12px 24px;
        font-size: 1.6rem;
        text-align: center;
    }

    .is-head-open .gh-head-members .gh-head-link {
        font-size: 1.6rem;
        padding: 8px;
    }
}

/* ------------------------------------------------------------
 * Completely Hide Bottom-Right Floating Portal Button
 * Prevents covering the GregBot chatbot avatar in the lower-right
 * ------------------------------------------------------------ */
#ghost-portal-root .gh-portal-triggerbtn-wrapper,
.gh-portal-triggerbtn-wrapper,
.gh-portal-triggerbtn-container,
iframe[title="portal-trigger"],
iframe[data-testid="portal-trigger-frame"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
}

