/* Shared post typography: ordinary blocks, legacy groups and editor canvas. */
.ss-blog-entry-content,
.ss-blog-single .entry-content,
.editor-styles-wrapper {
    color: #eee;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 17px;
    line-height: 1.8;
    overflow-wrap: break-word;
}
.editor-styles-wrapper {
    background: #333;
    --wp--style--global--content-size: 760px;
    --wp--style--global--wide-size: 760px;
}
.editor-styles-wrapper .is-root-container > .wp-block,
.editor-styles-wrapper .editor-post-title {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}
.ss-blog-entry-content p,
.ss-blog-single .entry-content p,
.editor-styles-wrapper p { margin: 0 0 18px; }
.ss-blog-entry-content h2,
.ss-blog-single .entry-content h2,
.editor-styles-wrapper h2 {
    color: #a6ce39;
    font-size: 24px;
    font-weight: 550;
    line-height: 1.35;
    margin: 26px 0 14px;
    padding: 0;
    border: 0;
}
.ss-blog-entry-content h3,
.ss-blog-single .entry-content h3,
.editor-styles-wrapper h3 {
    color: #a6ce39;
    font-size: 20px;
    font-weight: 550;
    line-height: 1.4;
    margin: 24px 0 12px;
}
.ss-blog-entry-content li,
.ss-blog-single .entry-content li,
.editor-styles-wrapper li { margin-bottom: 8px; }
.ss-blog-single .entry-content ul,
.ss-blog-single .entry-content ol,
.editor-styles-wrapper ul,
.editor-styles-wrapper ol { margin: 0 0 18px 1.5em; }
.ss-blog-entry-content a,
.ss-blog-single .entry-content a,
.editor-styles-wrapper a { color: #a6ce39; text-decoration: underline; text-underline-offset: .15em; }
.ss-blog-entry-content a:hover,
.ss-blog-single .entry-content a:hover { color: #c2e26b; }
.ss-blog-single .entry-content strong,
.editor-styles-wrapper strong { font-weight: 700; }
.ss-blog-single .entry-content em,
.editor-styles-wrapper em { font-style: italic; }
.ss-blog-single .entry-content img,
.editor-styles-wrapper img { max-width: 100%; height: auto; }

/* Scope layout changes to single posts, never the existing full-article stream. */
.ss-blog-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 36px;
    align-items: start;
    padding: clamp(24px, 4vw, 48px);
    background: #333;
}
.ss-blog-single-layout > .ss-blog-stream { min-width: 0; }
.ss-blog-single .ss-blog-stream .inside-article { padding: 0; }
.ss-blog-single .ss-blog-stream .entry-header {
    max-width: none;
    margin: 0 0 24px;
    padding-bottom: 24px;
}
.ss-blog-single .ss-blog-stream .entry-title,
.editor-styles-wrapper .wp-block-post-title,
.editor-styles-wrapper .editor-post-title__input {
    color: #a6ce39;
    font-size: clamp(28px, 3.4vw, 36px);
    font-weight: 400;
    line-height: 1.25;
}
.ss-blog-single .ss-blog-stream .entry-content { margin-top: 0; max-width: 760px; }
.ss-blog-single .ss-blog-stream .ss-prose { max-width: none; margin: 0; font-size: inherit; line-height: inherit; }
.ss-blog-single .ss-blog-stream .ss-blog-article .ss-lead { font-size: inherit; line-height: inherit; margin-bottom: 18px; }
.ss-blog-single .ss-blog-stream .entry-content h2 { font-size: 24px; margin: 26px 0 14px; padding: 0; border: 0; }
.ss-blog-single-layout .ss-blog-sidebar { border-left: 1px solid rgba(255,255,255,.15); padding-left: 24px; }
.ss-blog-single-index { position: sticky; top: 28px; }
.ss-blog-single-index summary { color: #a6ce39; font-size: 19px; cursor: pointer; }
.ss-blog-single-index .ss-blog-index-hint { font-size: 13px; color: #bbb; margin: 12px 0 18px; }
.ss-blog-single-index .ss-blog-index { list-style: none; margin: 0; padding: 0; }
.ss-blog-single-index .ss-blog-index li { margin: 0 0 18px; }
.ss-blog-single-index .ss-blog-index a { display: block; color: #eee; text-decoration: none; font-size: 15px; line-height: 1.5; }
.ss-blog-single-index .ss-blog-index a:hover,
.ss-blog-single-index .ss-blog-index a[aria-current] { color: #a6ce39; }
.ss-blog-single-index .ss-blog-index time { display: block; font-size: 12px; color: #aaa; margin-bottom: 4px; }
.ss-blog-single-index a:focus-visible,
.ss-blog-single-index summary:focus-visible { outline: 2px solid #a6ce39; outline-offset: 4px; }
@media (max-width: 900px) {
    .ss-blog-single-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .ss-blog-single-layout .ss-blog-sidebar { order: -1; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.15); padding: 0 0 18px; }
    .ss-blog-single-index { position: static; }
}
@media (max-width: 600px) {
    .ss-blog-entry-content,
    .ss-blog-single .entry-content,
    .editor-styles-wrapper { font-size: 17px; line-height: 1.75; }
    .ss-blog-entry-content h2,
    .ss-blog-single .ss-blog-stream .entry-content h2,
    .editor-styles-wrapper h2 { font-size: 22px; }
    .ss-blog-entry-content h3,
    .ss-blog-single .entry-content h3,
    .editor-styles-wrapper h3 { font-size: 19px; }
}

/* Only the existing smartphone overview: keep the index in the article flow. */
@media (max-width: 600px) {
    .ss-fields-blog .ss-blog-page .ss-blog-layout {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        overflow-anchor: none;
        --ss-blog-top: 0px;
        --ss-blog-offset: 56px;
    }
    .ss-fields-blog .ss-blog-layout > .ss-blog-sidebar {
        position: sticky;
        top: var(--ss-blog-top);
        z-index: 20;
        background: #333;
        padding: 8px 0;
    }
    .ss-fields-blog .ss-blog-sidebar-details { position: static; }
    .ss-fields-blog .ss-blog-sidebar-details summary { margin: 0; }
    .ss-fields-blog .ss-blog-sidebar-details .ss-blog-index {
        max-height: min(50vh, calc(100vh - var(--ss-blog-top) - 120px));
        max-height: min(50dvh, calc(100dvh - var(--ss-blog-top) - 120px));
        overflow-y: auto;
        overscroll-behavior: contain;
        margin-bottom: 0;
    }
    .ss-fields-blog .ss-blog-entry { scroll-margin-top: var(--ss-blog-offset); }
}
