.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%;
    }
}

.fs-cover-subscribe-wrap {
    position: relative;
    width: 100%;
    margin: 2.5rem auto 0;
}

.fs-cover-subscribe-wrap .cover-image {
    width: 100%;
    margin: 0;
}

.fs-head-subscribe {
    position: absolute;
    right: 2rem;
    bottom: 2rem;
    left: 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(28rem, 42rem);
    gap: 1.6rem;
    align-items: center;
    width: auto;
    margin: 0;
    padding: 1.6rem 1.8rem;
    background: #ffffff;
    border: 1px solid rgba(85, 89, 90, 0.12);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.fs-head-subscribe-copy {
    min-width: 0;
}

.fs-head-subscribe-title {
    margin: 0;
    font-family: var(--gh-font-heading, inherit);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    color: #55595a;
}

.fs-head-subscribe-text {
    max-width: 58rem;
    margin: 0.5rem 0 0;
    font-size: 1.4rem;
    line-height: 1.45;
    color: #6b7280;
}

.fs-head-subscribe-form {
    width: 100%;
}

.fs-head-subscribe-form input {
    height: 5rem;
    padding-right: 13rem;
    border-color: rgba(85, 89, 90, 0.18);
}

.fs-head-subscribe-form .form-button {
    min-width: 11rem;
    color: #ffffff;
    background: var(--primary-color, #1479A5);
}

.fs-floating-subscribe {
    position: fixed;
    right: max(1.8rem, env(safe-area-inset-right));
    bottom: max(1.8rem, env(safe-area-inset-bottom));
    z-index: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 12rem;
    min-height: 4.6rem;
    padding: 0 1.8rem;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff !important;
    text-decoration: none;
    background: var(--primary-color, #1479A5);
    border: 1px solid var(--primary-color, #1479A5);
    border-radius: 999px;
    box-shadow: 0 14px 34px rgba(20, 121, 165, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.fs-floating-subscribe:hover {
    color: #ffffff !important;
    text-decoration: none;
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 18px 40px rgba(20, 121, 165, 0.34);
}

@media (max-width: 767px) {
    .fs-cover-subscribe-wrap {
        width: 100%;
        margin-top: 0;
    }

    .fs-head-subscribe {
        right: 1.5rem;
        bottom: 1.5rem;
        left: 1.5rem;
        grid-template-columns: 1fr;
        gap: 1.4rem;
        width: auto;
        padding: 1.5rem;
    }

    .fs-head-subscribe-title {
        font-size: 1.8rem;
    }

    .fs-head-subscribe-text {
        font-size: 1.35rem;
    }

    .fs-head-subscribe-form input {
        padding-right: 11.5rem;
    }

    .fs-head-subscribe-form .form-button {
        min-width: 10rem;
        padding: 0 1.1rem;
    }

    .fs-floating-subscribe {
        right: max(1.2rem, env(safe-area-inset-right));
        bottom: max(1.2rem, env(safe-area-inset-bottom));
        min-width: 10.6rem;
        min-height: 4.3rem;
        padding: 0 1.5rem;
        font-size: 1.3rem;
    }
}

/* Card readability: match Latest typography and allow the slider to grow. */
.featured-posts-section .featured-post-title {
    display: block;
    overflow: visible;
    font-size: 2.72rem;
    line-height: 1.3;
}
.featured-posts-section .featured-post-excerpt {
    display: block;
    overflow: visible;
}
.featured-posts-section .featured-post-excerpt p {
    font-size: 1.7rem;
    line-height: 1.6;
}
.featured-posts-section .featured-post-meta { font-size: 1.4rem; }
.featured-posts-section .single-card-container { display: grid; height: auto; }
.featured-posts-section .single-featured-card {
    position: relative;
    grid-area: 1 / 1;
    height: auto;
    min-width: 0;
}
.featured-posts-section .featured-post-content { height: auto; }
.featured-posts-section .single-featured-card > a { flex-shrink: 0; }
@media (max-width: 767px) {
    .featured-posts-section .single-card-slider-wrapper { padding: 0 38px; }
    .featured-posts-section .slider-nav { width: 32px; height: 32px; }
    .featured-posts-section .slider-nav-prev { left: 0; }
    .featured-posts-section .slider-nav-next { right: 0; }
    .archive-post.single-content .archive-post-date,
    .archive-post.single-content .archive-post-tags { font-size: 1.4rem; }
    .archive-post .archive-post-tags a,
    .archive-post .archive-post-tags .note-badge { font-size: inherit; }
    .archive-post.tag-note .archive-post-excerpt a { font-size: inherit !important; word-break: normal; overflow-wrap: anywhere; }
}
