/* Editorial reading styles — single posts only */
.jp-single-post .jp-article-meta { flex-wrap: wrap; }
.jp-single-post .jp-reading-time::before { content: '·'; margin-right: .5rem; }
.jp-single-post .jp-article-layout { display:grid; grid-template-columns:minmax(0, 760px) minmax(0, 280px); gap:clamp(2rem, 5vw, 4rem); justify-content:center; align-items:start; }
.jp-single-post .jp-article-main, .jp-single-post .jp-article-sidebar { min-width:0; }
.jp-single-post .jp-article-content { font-size:clamp(1.0625rem, 1.5vw, 1.1875rem); line-height:1.85; overflow-wrap:break-word; }
.jp-single-post .jp-article-content p { margin:0 0 1.4em; line-height:inherit; font-size:inherit; }
.jp-single-post .jp-article-content h2 { font-size:clamp(1.65rem, 3vw, 2.15rem); line-height:1.25; margin:2.6rem 0 1rem; padding-top:1.5rem; border-top:1px solid #e3ded5; }
.jp-single-post .jp-article-content h3 { font-size:clamp(1.35rem, 2vw, 1.6rem); line-height:1.35; margin:2rem 0 .8rem; }
.jp-single-post .jp-article-content :is(h2,h3) { scroll-margin-top:7rem; }
.jp-single-post .jp-article-content .jp-lesson-number { display:block; color:var(--accent,#b58136); font-size:.75em; margin-bottom:.45rem; }
.jp-single-post .jp-article-content :is(ul,ol) { padding-left:1.5em; margin:0 0 1.4em; }
.jp-single-post .jp-article-content ul { list-style:disc outside; }
.jp-single-post .jp-article-content ol { list-style:decimal outside; }
.jp-single-post .jp-article-content li { margin-bottom:.45em; }
.jp-single-post .jp-article-content blockquote { margin:2rem 0; padding:1.5rem 1.75rem; border-left:3px solid var(--accent,#b58136); background:#fbf9f4; font-style:italic; color:#152238; }
.jp-single-post .jp-article-content blockquote p:last-child { margin-bottom:0; }
.jp-single-post .jp-article-content img { max-width:100%; height:auto; }
.jp-single-post .jp-article-content figure { max-width:100%; }
.jp-single-post .jp-article-content .wp-block-table { overflow-x:auto; }
.jp-single-post .jp-article-toc[hidden] { display:none !important; }
.jp-single-post .jp-article-toc { background:#fbf9f4; color:#152238; border:1px solid #e3ded5; padding:1.25rem 1.5rem; margin:0 0 2.25rem; }
.jp-single-post .jp-article-toc summary { cursor:pointer; font-size:1.25rem; font-weight:600; }
.jp-single-post .jp-article-toc ol { list-style:none; padding:0; margin:1rem 0 0; }
.jp-single-post .jp-article-toc li { margin:0; border-top:1px solid #e3ded5; }
.jp-single-post .jp-article-toc a { display:block; padding:.65rem 0; color:inherit; text-decoration:none; line-height:1.5; }
.jp-single-post .jp-article-toc a:hover { color:#94631e; text-decoration:underline; }
.jp-single-post .jp-article-toc .jp-toc-sub { padding-left:1.25rem; }
.jp-single-post .jp-reading-progress { position:fixed; top:0; left:0; width:100%; height:3px; z-index:9999; pointer-events:none; }
.admin-bar .jp-single-post .jp-reading-progress { top:32px; }
.jp-single-post .jp-reading-progress span { display:block; width:100%; height:100%; background:var(--accent,#d99520); transform:scaleX(0); transform-origin:left center; }
@media(max-width:1023px) { .jp-single-post .jp-article-layout { grid-template-columns:minmax(0,760px); } .jp-single-post .jp-article-sidebar { display:none; } }
@media(max-width:767px) { .jp-single-post .jp-article-content h2 { margin-top:2rem; } .jp-single-post .jp-article-content blockquote { padding:1rem 1.15rem; } .jp-single-post .jp-article-toc { padding:1rem; } }
@media(max-width:782px) { .admin-bar .jp-single-post .jp-reading-progress { top:46px; } }
/* Reading Progress Bar Fix */

.jp-single-post .jp-reading-progress {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    width: 100%;
    height: 5px !important;
    z-index: 999999 !important;
    pointer-events: none;
}

.jp-single-post .jp-reading-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: #e99a12 !important;
    transform-origin: left center;
}

body:has(#wpadminbar) .jp-reading-progress {
    top: 32px !important;
}

@media (max-width: 782px) {
    body:has(#wpadminbar) .jp-reading-progress {
        top: 46px !important;
    }
}