/* Article navigation, shared by every post. The existing H1 rules are untouched. */
.bukvica-article-toc {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    min-width: 0;
    padding: 20px 24px;
    border: 1px solid #555;
    border-radius: 12px;
    background: rgba(15, 15, 15, .92);
    color: #fff;
    font-family: 'Bukvica Article Montserrat', Montserrat, sans-serif;
    text-align: left;
}
.bukvica-article-toc summary { cursor: pointer; font-size: 18px; font-weight: 600; line-height: 26px; }
.bukvica-article-toc summary::marker { color: #ff1836; }
body.single-post .bukvica-article-toc__list {
    max-height: 256px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #777 #222;
    margin: 16px 0 0;
    padding: 0 10px 0 0;
    list-style: none;
}
.bukvica-article-toc__list li { margin: 0; padding: 0; list-style: none; }
.bukvica-article-toc__list a {
    display: block;
    padding: 6px 0;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.bukvica-article-toc__list .bukvica-article-toc__level-3 { padding-left: 18px; }
.bukvica-article-toc__level-3 a { font-weight: 400; color: #ddd; }
.bukvica-article-toc a:hover { color: #ff5267; }
.bukvica-article-toc a:focus-visible, .bukvica-article-toc summary:focus-visible { outline: 2px solid #ff5267; outline-offset: 3px; }
body.single-post .bukvica-article-header .bukvica-article-toc { grid-column: 1 / -1; }
body.single-post .bukvica-legacy-header > .container { position: relative; }
body.single-post .bukvica-legacy-header .bukvica-article-toc { position: absolute; top: 0; right: 16px; width: 42%; }
body.single-post .bukvica-legacy-header:has(.bukvica-article-toc) { box-sizing: border-box; height: auto; min-height: 520px; padding-bottom: 48px; }
body.single-post .bukvica-legacy-header:has(.bukvica-article-toc) > .container { min-height: 336px; }
body.single-post .bukvica-article-body h2[id],
body.single-post .bukvica-article-body h3[id] { scroll-margin-top: 128px; }

/* Consistent body typography without inheriting a new font into H1 or form widgets. */
body.single-post .signle-post-content__content .bukvica-article-body :is(p, li):not(.bukvica-article-cta *) {
    font-family: 'Bukvica Article Montserrat', Montserrat, sans-serif;
    font-size: 16px;
    line-height: 24px;
    margin-top: 0;
    margin-bottom: 0;
}
body.single-post .signle-post-content__content .bukvica-article-body :is(h2, h3):not(.bukvica-article-cta *) {
    font-family: 'Bukvica Article Montserrat', Montserrat, sans-serif;
    padding: 0;
    text-transform: none;
}
body.single-post .signle-post-content__content .bukvica-article-body h2:not(.bukvica-article-cta *) {
    font-size: 24px;
    font-weight: 700;
    line-height: 30px;
    margin: 32px 0 28px;
}
body.single-post .signle-post-content__content .bukvica-article-body h3:not(.bukvica-article-cta *) {
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    margin: 24px 0 20px;
}
body.single-post .signle-post-content__content .bukvica-article-body h2 + h3 { margin-top: 0; }
body.single-post .signle-post-content__content .bukvica-article-body :is(h2, h3):first-child { margin-top: 0; }
body.single-post .bukvica-article-body :is(p, li, h3) :is(strong, b):not(.bukvica-article-cta *) {
    font-family: 'Bukvica Article Montserrat', Montserrat, sans-serif;
    font-weight: 600;
}
body.single-post .bukvica-article-body h2 :is(strong, b) { font-weight: inherit; }
body.single-post .signle-post-content__content .bukvica-article-body p.article-note { margin-top: 20px; }
body.single-post .bukvica-article-body :is(p, h2, h3):empty { display: none; }
body.single-post .bukvica-article-body :is(ul, ol):not(.bukvica-article-cta *) { margin: 8px 0 12px; padding-left: 24px; list-style-position: outside; }
body.single-post .bukvica-article-body ul:not(.bukvica-article-cta *) { list-style-type: disc; }
body.single-post .bukvica-article-body ol:not(.bukvica-article-cta *) { list-style-type: decimal; }
body.single-post .bukvica-article-body li:not(.bukvica-article-cta *) { display: list-item; }
body.single-post .single-post-content__relatedposts .single-post-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; }
body.single-post .single-post-content__relatedposts .blog-single-post-morearticles { display: block; margin-bottom: 28px; }
@media (max-width: 1000px) {
    body.single-post .bukvica-legacy-header { margin-top: 92px; }
}
@media (max-width: 767px) {
    body.single-post .bukvica-legacy-header:has(.bukvica-article-toc) { padding-top: 40px; min-height: 0; }
    body.single-post .bukvica-legacy-header:has(.bukvica-article-toc) > .container { min-height: 0; }
    body.single-post .bukvica-legacy-header .bukvica-article-toc { position: relative; top: auto; right: auto; width: 100%; margin-top: 24px; }
    .bukvica-article-toc { padding: 18px; }
    .bukvica-article-toc__list a { padding: 9px 0; }
}

body.single-post .bukvica-article-body iframe { max-width: 100%; }
