.hub-post-article-header {
    max-width: 920px;
    margin: 0 auto 32px;
    padding: 0 24px;
}

.hub-post-article-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    font-weight: 700;
    color: #111;
}


.hub-post-mobile-nav-trigger,
.hub-post-sidebar-nav__mobile-toolbar,
.hub-post-sidebar-nav__overlay {
    display: none;
}

body.hub-single-post {
    --hub-sidebar-width: min(30vw, 380px);
    --hub-sidebar-expanded-width: max(52vw, 560px);
    --hub-orange: #ff8b2c;
    --hub-nav-inactive: #8e8e8e;
    --hub-nav-parent: #f1b581;
    --hub-nav-ancestor: #f4ccab;
    --hub-border: #e5e5e5;
    --hub-header-height: 80px;
    --hub-article-bg: #f3f3f3;
}

body.hub-single-post.admin-bar {
    --hub-header-height: 112px;
}

body.hub-single-post #page,
body.hub-single-post .site,
body.hub-single-post .site-main,
body.hub-single-post .elementor-location-single {
    box-sizing: border-box;
    padding-right: var(--hub-sidebar-width) !important;
}

.hub-post-sidebar-nav {
    position: fixed;
    top: var(--hub-header-height);
    right: 0;
    bottom: 0;
    z-index: 50;
    width: var(--hub-sidebar-width);
    display: flex;
    flex-direction: column;
    background-color: var(--hub-article-bg);
    border-left: 1px solid var(--hub-border);
    box-shadow: none;
    overflow: hidden;
    will-change: width;
}

@media (min-width: 1025px) {
    .hub-post-sidebar-nav {
        transition:
                width 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .hub-post-sidebar-nav::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        z-index: 2;
        width: 4px;
        height: 56px;
        border-radius: 0 4px 4px 0;
        background: var(--hub-orange);
        opacity: 0.25;
        transform: translateY(-50%);
        transition: opacity 0.35s ease, height 0.35s ease;
        pointer-events: none;
    }

    .hub-post-sidebar-nav:hover,
    .hub-post-sidebar-nav:focus-within,
    .hub-post-sidebar-nav.is-hover-expanded {
        width: var(--hub-sidebar-expanded-width);
        z-index: 200;
        box-shadow: -24px 0 64px rgba(0, 0, 0, 0.12);
    }

    .hub-post-sidebar-nav:hover::before,
    .hub-post-sidebar-nav:focus-within::before,
    .hub-post-sidebar-nav.is-hover-expanded::before {
        opacity: 0;
        height: 0;
    }

    body.hub-single-post.hub-sidebar-hover-expanded::after {
        content: '';
        position: fixed;
        inset: 0;
        z-index: 45;
        background: rgba(17, 17, 17, 0.04);
        pointer-events: none;
        opacity: 1;
        transition: opacity 0.45s ease;
    }
}

.hub-post-sidebar-nav__header {
    flex-shrink: 0;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--hub-border);
    background-color: var(--hub-article-bg);
}

.hub-post-sidebar-nav__kicker {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
}

.hub-post-sidebar-nav__post-title {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 700;
    color: var(--hub-orange);
}

.hub-post-sidebar-nav__inner {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px 0 24px;
    scroll-behavior: smooth;
}

.hub-post-sidebar-nav__empty {
    margin: 0;
    padding: 16px 20px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.hub-nav-item {
    border-top: 1px solid var(--hub-border);
}

.hub-nav-item:last-child {
    border-bottom: 1px solid var(--hub-border);
}

.hub-nav-item__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
}

.hub-nav-item__info {
    min-width: 0;
    flex: 1;
}

.hub-nav-item__title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--hub-nav-inactive);
    transition: color 0.2s ease;
}

/* Complete active path on article pages. */
.hub-nav-item--category.is-active-path > .hub-nav-item__head .hub-nav-item__title {
    color: var(--hub-nav-ancestor);
}

.hub-nav-item--category.is-active-distance-1 > .hub-nav-item__head .hub-nav-item__title {
    color: var(--hub-nav-parent);
}

.hub-nav-item--category.is-active-distance-0 > .hub-nav-item__head .hub-nav-item__title {
    color: var(--hub-orange);
}

/* Defensive suppression for old cached markup. */
.hub-nav-item__meta,
.hub-nav-item__current-badge {
    display: none !important;
}

.hub-nav-item__toggle,
.hub-nav-item__toggle:hover,
.hub-nav-item__toggle:focus,
.hub-nav-item__toggle:active,
.hub-nav-item__toggle[aria-expanded='true'] {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #ddd !important;
    border-radius: 4px;
    background: #ececec !important;
    background-color: #ececec !important;
    color: var(--hub-orange) !important;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: none !important;
    text-shadow: none !important;
}

.hub-nav-item__toggle:focus-visible {
    outline: 2px solid var(--hub-orange);
    outline-offset: 2px;
}

.hub-nav-item__toggle-label {
    color: inherit !important;
}

.hub-nav-item__toggle-icon {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: -3px;
}

.hub-nav-item.is-open > .hub-nav-item__head .hub-nav-item__toggle-icon {
    transform: rotate(-135deg);
    margin-top: 3px;
}

.hub-nav-item__panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hub-nav-item.is-open > .hub-nav-item__panel {
    grid-template-rows: 1fr;
}

.hub-nav-item__panel-inner {
    overflow: hidden;
    padding-left: 16px;
}

.hub-nav-item--post {
    padding: 14px 20px 14px 36px;
}

.hub-nav-item--post .hub-nav-item__link,
.hub-nav-item--post .hub-nav-item__link:visited {
    display: block;
    color: #111 !important;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    line-height: 1.35;
}

.hub-nav-item--post .hub-nav-item__link:hover,
.hub-nav-item--post .hub-nav-item__link:focus {
    color: #111 !important;
    text-decoration: underline;
    text-decoration-color: var(--hub-orange);
}

.hub-nav-item--post.is-current {
    background: rgba(255, 139, 44, 0.08);
    border-left: 3px solid var(--hub-orange);
    padding-left: 33px;
}

.hub-nav-item__current-label {
    display: block;
    color: #111 !important;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.35;
}

.hub-nav-item--category .hub-nav-item--category .hub-nav-item__head {
    padding-left: 16px;
}

.hub-nav-item--category .hub-nav-item--post {
    padding-left: 52px;
}

@media (max-width: 1024px) {
    body.hub-single-post #page,
    body.hub-single-post .site,
    body.hub-single-post .site-main,
    body.hub-single-post .elementor-location-single {
        padding-right: 0 !important;
        padding-bottom: 0 !important;
    }

    body.hub-single-post.hub-mobile-nav-open {
        overflow: hidden;
    }

    .hub-post-article-header {
        margin-bottom: 24px;
        padding-top: 22px;
    }

    .hub-post-mobile-nav-trigger,
    .hub-post-mobile-nav-trigger:hover,
    .hub-post-mobile-nav-trigger:focus,
    .hub-post-mobile-nav-trigger:active {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        margin: 0 0 14px;
        padding: 7px 12px;
        border: 1px solid var(--hub-orange) !important;
        border-radius: 999px;
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        color: var(--hub-orange) !important;
        font-size: 0.8125rem;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
    }

    .hub-post-mobile-nav-trigger:focus-visible {
        outline: 2px solid var(--hub-orange);
        outline-offset: 3px;
    }

    .hub-post-sidebar-nav {
        top: var(--hub-header-height);
        right: 0;
        bottom: 0;
        left: auto;
        z-index: 1002;
        width: min(100%, 430px);
        max-height: none;
        border-top: 1px solid var(--hub-border);
        border-left: 1px solid var(--hub-border);
        background: var(--hub-article-bg);
        box-shadow: -16px 0 42px rgba(0, 0, 0, 0.18);
        transform: translate3d(100%, 0, 0);
        visibility: hidden;
        pointer-events: none;
        transition:
                transform 0.36s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0.36s;
        will-change: transform;
    }

    body.hub-single-post.hub-mobile-nav-open .hub-post-sidebar-nav {
        transform: translate3d(0, 0, 0);
        visibility: visible;
        pointer-events: auto;
        transition:
                transform 0.36s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0s;
    }

    .hub-post-sidebar-nav__mobile-toolbar {
        position: sticky;
        top: 0;
        z-index: 3;
        display: flex;
        flex-shrink: 0;
        align-items: center;
        padding: 12px 14px;
        border-bottom: 1px solid var(--hub-border);
        background: var(--hub-article-bg);
    }

    .hub-post-sidebar-nav__mobile-close,
    .hub-post-sidebar-nav__mobile-close:hover,
    .hub-post-sidebar-nav__mobile-close:focus,
    .hub-post-sidebar-nav__mobile-close:active {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 7px 12px;
        border: 1px solid var(--hub-orange) !important;
        border-radius: 999px;
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        color: var(--hub-orange) !important;
        font-size: 0.8125rem;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
    }

    .hub-post-sidebar-nav__mobile-close:focus-visible {
        outline: 2px solid var(--hub-orange);
        outline-offset: 3px;
    }

    .hub-post-sidebar-nav__overlay {
        position: fixed;
        inset: var(--hub-header-height) 0 0;
        z-index: 1001;
        display: block;
        width: auto;
        height: auto;
        padding: 0;
        border: 0;
        background: rgba(17, 17, 17, 0.28);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
                opacity 0.3s ease,
                visibility 0s linear 0.3s;
    }

    body.hub-single-post.hub-mobile-nav-open .hub-post-sidebar-nav__overlay {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transition:
                opacity 0.3s ease,
                visibility 0s linear 0s;
    }

    .hub-post-sidebar-nav__inner {
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    @media (max-width: 480px) {
        .hub-post-sidebar-nav {
            width: 100%;
            border-left: 0;
        }

        .hub-post-sidebar-nav__overlay {
            display: none;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .hub-post-sidebar-nav,
        .hub-post-sidebar-nav__overlay {
            transition: none !important;
        }
    }
}

