.gh-burger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 4.4rem;
    height: 4.4rem;
    padding: 0;
    color: #ffffff;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.gh-burger::before,
.gh-burger::after {
    content: none !important;
}

.gh-burger-bar {
    display: block;
    width: 2.2rem;
    height: 0.2rem;
    margin: 0.3rem 0;
    background: currentColor;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.single-footer-bottom {
    margin-top: 1.5rem;
}

.single-share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.8rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    background: linear-gradient(135deg, var(--primary-color, #1479A5), var(--ghost-accent-color, #55595a));
    border-radius: 999px;
    box-shadow: 0 12px 28px rgba(20, 121, 165, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.single-share-link:hover {
    transform: translateY(-1px);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 16px 34px rgba(20, 121, 165, 0.24);
}

.single-media,
.single-media.kg-width-wide,
.single-media.kg-width-full,
.single-media.kg-width-regular,
.single-media.kg-width-narrow {
    max-width: min(100%, 52rem);
    margin-left: auto;
    margin-right: auto;
}

.archive-post.has-portrait-preview .archive-post-image {
    object-fit: contain !important;
    object-position: center !important;
    box-sizing: border-box;
    padding: 3px;
    background: #ffffff;
    border: 1px solid rgba(85, 89, 90, 0.06);
    border-radius: 8px;
}

.archive-post.has-landscape-preview .archive-post-image {
    object-fit: cover !important;
}

.single-content sup,
.single-content .gh-footnote-ref,
.single-content a[href^="#fn-"] {
    font-size: 0.8em;
    line-height: 0;
    vertical-align: super;
}

.single-content .gh-footnote-ref,
.single-content a[href^="#fn-"] {
    margin-left: 0.1em;
    text-decoration: none;
}

.single-content .gh-footnote-ref:hover,
.single-content a[href^="#fn-"]:hover,
.single-content .gh-footnote-backref:hover {
    text-decoration: underline;
}

.single-content ol li[id^="fn-"],
.single-content .gh-footnote-block[id^="fn-"] {
    scroll-margin-top: 10rem;
}

.single-content .gh-footnote-block {
    margin: 0 0 1.2rem;
}

.single-content .gh-footnote-number {
    font-weight: 700;
}

.single-content .gh-footnote-backref {
    margin-left: 0.4rem;
    font-size: 0.9em;
    text-decoration: none;
}

@media (min-width: 768px) {
    .gh-head {
        position: relative !important;
        background: #ffffff !important;
        box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
    }

    .gh-head::before {
        content: none !important;
    }

    .gh-head .gh-head-logo,
    .gh-head .site-title,
    .gh-head .site-description {
        color: #55595a !important;
        text-shadow: none !important;
    }

    .gh-head .nav a,
    .gh-head .gh-head-link {
        color: var(--primary-color, #1479A5) !important;
        text-shadow: none !important;
    }

    .gh-head .gh-head-btn {
        color: #ffffff !important;
        background: var(--primary-color, #1479A5) !important;
        border: 1px solid var(--primary-color, #1479A5) !important;
        box-shadow: none !important;
    }

    .cover-image {
        display: block;
        width: min(calc(100% - 6rem), 68rem);
        height: 44rem;
        margin: 2.5rem auto 0;
        padding: 3px;
        object-fit: contain;
        object-position: center;
        background: #ffffff;
        border: 1px solid rgba(85, 89, 90, 0.06);
        border-radius: 3px;
        box-shadow: 0 8px 20px rgba(17, 24, 39, 0.04);
    }

    .home-template .cover-image {
        height: 48rem;
    }
}

@media (max-width: 767px) {
    .gh-head {
        position: relative !important;
        background: #ffffff !important;
        box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
    }

    .gh-head::before {
        content: none !important;
    }

    .gh-head-inner {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .gh-head-brand {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1.2rem;
    }

    .gh-head .gh-head-logo,
    .gh-head .site-title,
    .gh-head .site-description {
        color: #55595a !important;
        text-shadow: none !important;
    }

    .gh-burger {
        display: inline-flex !important;
        flex-shrink: 0;
        color: var(--primary-color, #1479A5) !important;
        background: transparent !important;
    }

    .gh-head-menu,
    .gh-head-actions {
        display: none !important;
        width: 100%;
        background: #ffffff;
    }

    body.is-head-open #gh-head {
        background: #ffffff !important;
    }

    body.is-head-open #gh-head .gh-head-menu {
        display: block !important;
        margin-top: 1rem;
    }

    body.is-head-open #gh-head .gh-head-menu .nav {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    body.is-head-open #gh-head .gh-head-menu .nav li a {
        display: block;
        padding: 0.4rem 0;
        font-size: 1.7rem;
        color: var(--primary-color, #1479A5) !important;
        text-shadow: none !important;
    }

    body.is-head-open #gh-head .gh-head-actions {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(85, 89, 90, 0.12);
    }

    .gh-head-actions .gh-search {
        display: none !important;
    }

    body.is-head-open #gh-head .gh-head-members {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        background: transparent !important;
    }

    body.is-head-open #gh-head .gh-head-btn,
    body.is-head-open #gh-head .gh-head-link {
        text-shadow: none !important;
        box-shadow: none;
    }

    body.is-head-open #gh-head .gh-head-btn {
        padding: 0.85rem 1.3rem;
        color: #ffffff !important;
        background: var(--primary-color, #1479A5) !important;
        border: 1px solid var(--primary-color, #1479A5) !important;
        border-radius: 999px;
    }

    body.is-head-open #gh-head .gh-head-link {
        padding: 0;
        color: #55595a !important;
        background: transparent !important;
        border: 0;
    }

    body.is-head-open #gh-head .gh-burger-bar:nth-child(1) {
        transform: translateY(0.8rem) rotate(45deg);
    }

    body.is-head-open #gh-head .gh-burger-bar:nth-child(2) {
        opacity: 0;
    }

    body.is-head-open #gh-head .gh-burger-bar:nth-child(3) {
        transform: translateY(-0.8rem) rotate(-45deg);
    }

    .single-media,
    .single-media.kg-width-wide,
    .single-media.kg-width-full,
    .single-media.kg-width-regular,
    .single-media.kg-width-narrow {
        max-width: 100%;
    }
}
