﻿/* ==========================================================================
   Article Grid Tile Hover Overlay Effect
   Matches mockup with outline pen-to-square & camera icons
   ========================================================================== */

.post-feed .post {
    position: relative;
    overflow: hidden;
}

.post-link {
    position: relative;
    display: block;
    overflow: hidden;
    text-decoration: none;
}

.post-link .post-image {
    display: block;
    width: 100%;
    height: auto;
    /* Scale animation removed per user request for rock-solid stability */
}

/* Semi-transparent dark overlay container */
.post-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 38px 16px 16px 16px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88) 0%,
        rgba(0, 0, 0, 0.72) 45%,
        rgba(0, 0, 0, 0.35) 75%,
        rgba(0, 0, 0, 0) 100%
    );
    color: #ffffff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.35s;
    pointer-events: none;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Show on hover or keyboard focus (Desktop) */
.post:hover .post-overlay,
.post-link:focus .post-overlay {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Content layout with coordinated upward glide */
.post-overlay-content {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
    transform: translateY(10px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.post:hover .post-overlay-content,
.post-link:focus .post-overlay-content {
    transform: translateY(0);
}

/* Rows for title and camera/film meta */
.post-overlay-row {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    line-height: 1.35;
}

.post-overlay-row i,
.post-overlay-row .post-overlay-icon {
    flex-shrink: 0;
    font-size: 15px;
    width: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

/* Title text styling */
.post-overlay-title .post-overlay-text {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Meta (Camera & Film Stock) text styling */
.post-overlay-meta .post-overlay-text {
    font-size: 13.5px;
    font-weight: 400;
    color: #eeeeee;
    letter-spacing: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

/* Reposition lightbox expand button to top-right to prevent overlap */
.post-lightbox {
    position: absolute;
    right: 14px;
    top: 14px;
    bottom: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    line-height: 32px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
    transform: scale(0.85);
    z-index: 3;
}

.post:hover .post-lightbox,
.post-link:hover + .post-lightbox,
.post-lightbox:hover {
    opacity: 1;
    transform: scale(1);
}

.post-lightbox:hover {
    background-color: #ffffff;
}

/* ==========================================================================
   Mobile / Touch Devices Experience (Option 1)
   Always visible with sleek, compact bottom gradient while scrolling.
   ========================================================================== */
@media (hover: none), (pointer: coarse), (max-width: 640px) {
    .post-overlay {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        transition: none !important;
        padding: 26px 12px 10px 12px;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.82) 0%,
            rgba(0, 0, 0, 0.6) 45%,
            rgba(0, 0, 0, 0.2) 75%,
            rgba(0, 0, 0, 0) 100%
        );
    }

    .post-overlay-content {
        transform: translateY(0) !important;
        transition: none !important;
    }

    .post-overlay-title .post-overlay-text {
        font-size: 13.5px;
        font-weight: 600;
    }

    .post-overlay-meta .post-overlay-text {
        font-size: 12px;
        font-weight: 400;
        color: #e5e5e5;
    }

    .post-overlay-row {
        gap: 8px;
    }

    .post-overlay-row i,
    .post-overlay-row .post-overlay-icon {
        font-size: 13px;
        width: 14px;
        height: 14px;
    }

    /* Hide the lightbox expand circle button on mobile to keep the view clean */
    .post-lightbox {
        display: none !important;
    }
}

/* ==========================================================================
   Header Navbar Layout (GJ Logo Left, Nav Links Centered, Search Right)
   ========================================================================== */
#gh-head {
    position: relative !important;
    z-index: 200 !important;
}

@media (min-width: 768px) {
    .gh-head {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .gh-head-inner {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        z-index: 10 !important;
    }

    .gh-head-brand {
        display: flex !important;
        align-items: center !important;
        z-index: 2 !important;
    }

    .gh-head-brand-wrapper {
        display: flex !important;
        align-items: center !important;
    }

    .gh-head-logo {
        display: inline-flex !important;
        align-items: center !important;
        text-decoration: none !important;
    }

    .gh-head-logo img,
    .gh-head-logo-img {
        height: 38px !important;
        max-height: 42px !important;
        width: auto !important;
        object-fit: contain !important;
        display: block !important;
    }

    .gh-head-brand .gh-search,
    .gh-head-brand .gh-burger {
        display: none !important;
    }

    .gh-head-actions {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        z-index: 2 !important;
    }

    .gh-head-actions .gh-search {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        color: #15171a !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        padding: 6px !important;
    }

    .gh-head-actions .gh-search svg {
        width: 18px !important;
        height: 18px !important;
    }

    .gh-head-menu {
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        min-width: 480px !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 10 !important;
    }

    .gh-head-menu .nav {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 32px !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .gh-head-menu .nav li {
        display: inline-flex !important;
        align-items: center !important;
    }

    .gh-head-menu .nav li a {
        font-size: 15px !important;
        font-weight: 600 !important;
        color: #15171a !important;
        letter-spacing: -0.01em !important;
        text-decoration: none !important;
        transition: opacity 0.2s ease, color 0.2s ease !important;
    }

    .gh-head-menu .nav li a:hover {
        opacity: 0.65 !important;
    }
}

@media (max-width: 767px) {
    .gh-head-logo img,
    .gh-head-logo-img {
        height: 32px !important;
        max-height: 36px !important;
        width: auto !important;
    }
}

/* ==========================================================================
   Footer Layout (Left: Copyright + Uptime, Center: Social Icons, Right: Powered-By)
   ========================================================================== */
.gh-foot-inner {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    gap: 28px !important;
    font-size: 1.3rem !important;
}

.gh-copyright-group {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px 12px !important;
    white-space: nowrap !important;
    justify-self: start !important;
}

.gh-copyright {
    color: var(--color-secondary-text) !important;
    display: inline-block !important;
}

.gh-foot-divider {
    color: var(--color-secondary-text) !important;
    opacity: 0.6 !important;
    font-size: 0.9rem !important;
    display: inline-block !important;
    user-select: none !important;
}

.gh-foot-menu {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gh-foot-menu .nav {
    display: inline-flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 8px 12px !important;
}

.gh-foot-menu .nav li {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.gh-foot-menu .nav li a {
    color: var(--color-secondary-text) !important;
    text-decoration: none !important;
    transition: color 0.2s ease, opacity 0.2s ease !important;
}

.gh-foot-menu .nav li a:hover {
    color: var(--color-darker-gray) !important;
    opacity: 1 !important;
}

.gh-foot-social {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 16px !important;
    justify-self: center !important;
}

.gh-foot-social a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--color-secondary-text) !important;
    text-decoration: none !important;
    padding: 4px !important;
    border-radius: 4px !important;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease !important;
}

.gh-foot-social a svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    transition: transform 0.2s ease !important;
}

.gh-foot-social a:hover {
    color: var(--color-darker-gray) !important;
    opacity: 1 !important;
    transform: translateY(-2px) !important;
}

.gh-powered-by {
    justify-self: end !important;
    text-align: right !important;
}

@media (max-width: 767px) {
    .gh-foot-inner {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 16px !important;
        text-align: center !important;
    }

    .gh-copyright-group {
        justify-content: center !important;
        white-space: normal !important;
    }

    .gh-foot-menu .nav {
        flex-direction: row !important;
        justify-content: center !important;
    }

    .gh-foot-social {
        justify-content: center !important;
        gap: 20px !important;
    }

    .gh-powered-by {
        text-align: center !important;
    }
}

/* ==========================================================================
   Header Dropdown Menu (Sandbox: Article Writer & Film Stock Guesser)
   ========================================================================== */
.gh-has-dropdown {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    z-index: 20 !important;
}

.gh-dropdown-toggle {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    letter-spacing: -0.009em !important;
    color: var(--color-primary-text, #15171a) !important;
    text-decoration: none !important;
    line-height: inherit !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* --- Sandbox Rainbow Hover Glow --- */
.gh-dropdown-label {
    position: relative !important;
    display: inline-block !important;
    color: var(--color-primary-text, #15171a) !important;
    font-weight: 600 !important;
}

.gh-dropdown-label::before {
    content: "Sandbox" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    color: transparent !important;
    pointer-events: none !important;
    opacity: 0 !important;
    animation: rainbowTextGlowGhost 2.5s linear infinite !important;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 1 !important;
}

.gh-has-dropdown:hover .gh-dropdown-label::before,
.gh-has-dropdown.is-open .gh-dropdown-label::before,
.gh-dropdown-toggle:hover .gh-dropdown-label::before {
    opacity: 1 !important;
}

@keyframes rainbowTextGlowGhost {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 0, 85, 0.8), 0 0 12px rgba(255, 0, 85, 0.5), 0 0 20px rgba(255, 0, 85, 0.25);
    }
    20% {
        text-shadow: 0 0 5px rgba(255, 119, 0, 0.8), 0 0 12px rgba(255, 119, 0, 0.5), 0 0 20px rgba(255, 119, 0, 0.25);
    }
    40% {
        text-shadow: 0 0 5px rgba(255, 221, 0, 0.8), 0 0 12px rgba(255, 221, 0, 0.5), 0 0 20px rgba(255, 221, 0, 0.25);
    }
    60% {
        text-shadow: 0 0 5px rgba(0, 230, 118, 0.8), 0 0 12px rgba(0, 230, 118, 0.5), 0 0 20px rgba(0, 230, 118, 0.25);
    }
    80% {
        text-shadow: 0 0 5px rgba(0, 176, 255, 0.8), 0 0 12px rgba(0, 176, 255, 0.5), 0 0 20px rgba(0, 176, 255, 0.25);
    }
}

.gh-dropdown-chevron {
    display: inline-block !important;
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    margin-top: 1px !important;
    stroke: currentColor !important;
}

.gh-has-dropdown.is-open .gh-dropdown-chevron {
    transform: rotate(180deg) !important;
}

@media (min-width: 768px) {
    .gh-has-dropdown:hover .gh-dropdown-chevron {
        transform: rotate(180deg) !important;
    }

    .gh-dropdown-container {
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(6px) scale(0.97) !important;
        transform-origin: top center !important;
        min-width: 260px !important;
        background: #ffffff !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-radius: 14px !important;
        box-shadow: 0 16px 38px -6px rgba(0, 0, 0, 0.12), 0 4px 14px -2px rgba(0, 0, 0, 0.05) !important;
        padding: 8px !important;
        opacity: 0 !important;
        visibility: hidden !important;
        pointer-events: none !important;
        transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s !important;
        z-index: 1000 !important;
    }

    /* Invisible bridge so mouse moving from toggle into dropdown never loses hover */
    .gh-dropdown-container::before {
        content: '' !important;
        position: absolute !important;
        top: -12px !important;
        left: 0 !important;
        width: 100% !important;
        height: 12px !important;
        background: transparent !important;
    }

    .gh-has-dropdown:hover .gh-dropdown-container,
    .gh-has-dropdown.is-open .gh-dropdown-container {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateX(-50%) translateY(0) scale(1) !important;
    }
}

.gh-dropdown-container {
    white-space: normal !important;
}

.gh-dropdown-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
}

.gh-dropdown-menu li {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    text-align: left !important;
}

.gh-dropdown-link {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 3px !important;
    padding: 10px 14px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    background: transparent !important;
    transition: background-color 0.18s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
}

.gh-dropdown-link:hover {
    background-color: rgba(0, 0, 0, 0.04) !important;
    text-decoration: none !important;
}

/* Suppress any code-injected pseudo-element text bleeding into dropdown links */
.gh-dropdown-menu a::before {
    display: none !important;
    content: none !important;
}

.gh-dropdown-link-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 8px !important;
    white-space: normal !important;
    box-sizing: border-box !important;
}

.gh-dropdown-link-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    color: #15171a !important;
    display: block !important;
    text-align: left !important;
    white-space: normal !important;
}

.gh-dropdown-badge {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    padding: 2px 7px !important;
    border-radius: 999px !important;
    background: rgba(255, 94, 0, 0.1) !important;
    color: #ff5e00 !important;
    border: 1px solid rgba(255, 94, 0, 0.25) !important;
    white-space: nowrap !important;
    line-height: 1.2 !important;
    flex-shrink: 0 !important;
}

.gh-dropdown-link-desc {
    font-size: 12px !important;
    line-height: 1.35 !important;
    color: var(--color-secondary-text, #738a94) !important;
    font-weight: 400 !important;
    display: block !important;
    text-align: left !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Mobile drawer adaptation */
@media (max-width: 767px) {
    .gh-has-dropdown {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        text-align: center !important;
    }

    .gh-dropdown-toggle {
        position: relative !important;
        font-size: 2.6rem !important;
        font-weight: 600 !important;
        letter-spacing: -0.01em !important;
        color: var(--color-primary-text, #15171a) !important;
        line-height: 1.4 !important;
        padding: 0 !important;
        margin: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        border: none !important;
        background: transparent !important;
    }

    .gh-dropdown-label {
        display: inline-block !important;
        text-align: center !important;
    }

    .gh-dropdown-chevron {
        position: absolute !important;
        left: calc(100% + 8px) !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 16px !important;
        height: 16px !important;
        stroke-width: 2.5px !important;
        margin: 0 !important;
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    }

    .gh-has-dropdown.is-open .gh-dropdown-chevron {
        transform: translateY(-50%) rotate(180deg) !important;
    }

    .gh-dropdown-container {
        position: static !important;
        transform: none !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 320px !important;
        box-sizing: border-box !important;
        max-height: 0 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        overflow: hidden !important;
        pointer-events: none !important;
        margin: 0 auto !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease, margin 0.25s ease, padding 0.25s ease, visibility 0.25s !important;
    }

    .gh-dropdown-container::before {
        display: none !important;
    }

    .gh-has-dropdown.is-open .gh-dropdown-container {
        max-height: 320px !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        margin: 14px auto 6px auto !important;
        padding: 8px !important;
        background: #ffffff !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-radius: 14px !important;
        box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.06) !important;
    }

    .gh-dropdown-menu {
        gap: 8px !important;
    }

    .gh-dropdown-link {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        background: rgba(0, 0, 0, 0.02) !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
        border-radius: 10px !important;
        padding: 12px 14px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .gh-dropdown-link:hover,
    .gh-dropdown-link:active {
        background: rgba(0, 0, 0, 0.06) !important;
    }

    .gh-dropdown-link-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    .gh-dropdown-link-title {
        font-size: 15px !important;
        text-align: left !important;
    }

    .gh-dropdown-link-desc {
        font-size: 12.5px !important;
        text-align: left !important;
        margin-top: 2px !important;
        line-height: 1.4 !important;
    }
}

/* ------------------------------------------------------------
 * 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: none !important;
}

.gh-head-btn.gh-btn:hover,
.gh-head-btn.gh-primary-btn:hover {
    opacity: 0.88;
    transform: none !important;
    text-decoration: none;
}

/* Post Share Button Styles */
.gh-article-header .gh-meta-share {
    display: flex;
    justify-content: flex-start;
    margin: 16px 0 28px 0;
}

.gh-article-footer .gh-meta-share,
.gh-meta-share {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: var(--content-width, 720px);
    width: 100%;
    margin: 40px auto 24px auto;
}

.gh-article-footer .gh-meta-share {
    max-width: none;
    margin: 40px 0 24px 0;
}

.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;
}

