@media (min-width: 769px) {
    body.single-post #left-sidebar .inside-left-sidebar,
    body.single-post #right-sidebar .inside-right-sidebar {
        position: sticky;
        top: 24px;
    }

    body.single-post.admin-bar #left-sidebar .inside-left-sidebar,
    body.single-post.admin-bar #right-sidebar .inside-right-sidebar {
        top: 56px;
    }
}

body.single-post .entry-content h2,
body.single-post .entry-content h3 {
    scroll-margin-top: 84px;
}

body.single-post .buffernow-post-nav {
    background: var(--base-3, #fff);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding: 14px;
    scrollbar-width: thin;
}

body.single-post .buffernow-post-nav-title {
    color: var(--contrast, #222);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 10px;
}

body.single-post .buffernow-post-nav-list {
    display: grid;
    gap: 3px;
    list-style: none;
    margin: 0;
    padding: 0;
}

body.single-post .buffernow-post-nav-item {
    margin: 0;
}

body.single-post .buffernow-post-nav-list a,
body.single-post .buffernow-post-nav-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--contrast, #222);
    cursor: pointer;
    display: block;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    overflow-wrap: anywhere;
    padding: 8px 10px;
    border-radius: 7px;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

body.single-post .buffernow-post-nav-list a,
body.single-post .buffernow-post-nav-toggle span {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

body.single-post .buffernow-post-nav-list a:hover,
body.single-post .buffernow-post-nav-list a:focus,
body.single-post .buffernow-post-nav-toggle:hover,
body.single-post .buffernow-post-nav-toggle:focus {
    background: rgba(30, 115, 190, 0.07);
    color: var(--accent, #1e73be);
    outline: none;
}

body.single-post .buffernow-post-nav-toggle {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

body.single-post .buffernow-post-nav-toggle::after {
    color: rgba(0, 0, 0, 0.48);
    content: "›";
    flex: 0 0 auto;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    transition: transform 0.15s ease;
}

body.single-post .buffernow-post-nav-toggle[aria-expanded="true"]::after {
    transform: rotate(90deg);
}

body.single-post .buffernow-post-nav-sublist {
    list-style: none;
    margin: -2px 0 10px;
    padding: 0;
}

body.single-post .buffernow-post-nav-list .is-subsection a {
    border-left: 2px solid rgba(30, 115, 190, 0.24);
    color: var(--contrast-2, #575760);
    font-size: 12px;
    font-weight: 500;
    margin-left: 10px;
    padding: 6px 8px 6px 10px;
}

body.single-post .buffernow-post-nav-list .is-subsection a:hover,
body.single-post .buffernow-post-nav-list .is-subsection a:focus {
    border-left-color: var(--accent, #1e73be);
    color: var(--accent, #1e73be);
}

body.single-post .buffernow-post-nav-actions {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    display: grid;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
}

body.single-post .buffernow-post-nav-action {
    background: var(--accent, #1e73be);
    color: #fff;
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    padding: 10px 12px;
    text-align: center;
    text-decoration: none;
}

body.single-post .buffernow-post-nav-action:hover,
body.single-post .buffernow-post-nav-action:focus {
    color: #fff;
    filter: brightness(0.92);
}

@media (max-width: 768px) {
    body.single-post .buffernow-post-nav {
        max-height: min(50vh, 28rem);
    }
}
