/* Article layout and navigation, scoped to the blog detail template. */
.article-page, .article-page *, .article-page *::before, .article-page *::after {
    box-sizing: border-box;
}
.article-page .container { width: 100%; }
.article-page .row > [class*="col-"] { min-width: 0; }
.article-page .article__text {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}
.article-page :is(h1, h2, h3, h4) { overflow-wrap: anywhere; }
.article-page :is(h2, h3, h4, a[name]) { scroll-margin-top: 88px; }
.article-page .article__photo img {
    display: block;
    max-width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}
.article-page .article__text :is(img, video, iframe, svg) { max-width: 100%; }
.article-page .article__text :is(img, video) { height: auto; }
.article-page .article__text figure { max-width: 100%; margin-inline: 0; }
.article-page .article-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    margin-block: 24px;
    border: 1px solid #e2e0dc;
    border-radius: 12px;
}
.article-page .article-table-scroll table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}
.article-page .article-table-scroll :is(th, td) {
    padding: 12px;
    border-bottom: 1px solid #e2e0dc;
    text-align: left;
    vertical-align: top;
    overflow-wrap: normal;
    min-width: 140px;
}
.article-page .article-table-scroll th { background: #fff3be; }
.article-page pre { max-width: 100%; overflow-x: auto; }
.article-page .lz-features-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.article-page .lz-features-grid > * { min-width: 0; }
.article-page .sp-contents {
    border: 1px solid #e9d889;
    border-radius: 16px;
    background: #fff9df;
    padding: 0;
    margin-block: 24px;
}
.article-page .article-toc-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 52px;
    padding: 14px 18px;
    cursor: pointer;
    color: #260f31;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    list-style: none;
}
.article-page .article-toc-summary::-webkit-details-marker { display: none; }
.article-page .article-toc-summary::after { content: "+"; font-size: 24px; line-height: 1; }
.article-page details[open] > .article-toc-summary::after { content: "−"; }
.article-page .sp-contents .sp-contents_elements {
    display: block;
    margin: 0;
    padding: 0 12px 12px;
    list-style: none;
}
.article-page .sp-contents .sp-contents_elements li {
    margin: 0 !important;
    padding: 0;
    list-style: none;
}
.article-page .sp-contents .sp-contents_elements a {
    display: block;
    padding: 10px 8px;
    border-radius: 8px;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 400;
    text-decoration: none;
    overflow-wrap: anywhere;
}
.article-page .sp-contents .sp-contents_elements li + li { border-top: 1px solid #eee4b9; }
.article-page .sp-contents .sp-contents_elements .level2 a { padding-left: 24px; }
.article-page .sp-contents .sp-contents_elements .level3 a { padding-left: 40px; font-size: 15px; }
.article-page .sp-contents a:hover { background: #ffefad; }
.article-page :is(summary, a, [tabindex]):focus-visible { outline: 3px solid #76521a; outline-offset: 3px; }
@media (max-width: 767px) {
    .article-page > .container { padding-inline: 16px; }
    .article-page .row { margin-inline: -16px; }
    .article-page .row > [class*="col-"] { width: 100%; max-width: 100%; padding-inline: 16px; }
    .article-page h1 { font-size: clamp(26px, 7vw, 34px); line-height: 1.15; }
    .article-page h2 { font-size: 25px; line-height: 1.25; margin-top: 32px; }
    .article-page h3 { font-size: 21px; line-height: 1.3; }
    .article-page h4 { font-size: 19px; line-height: 1.35; }
    .article-page .article__text :is(p, li) { font-size: 17px; line-height: 1.6; }
    .article-page .article__data { flex-wrap: wrap; gap: 8px 12px; }
    .article-page .article__data .ya-share2 { margin-left: auto; }
    .article-page .article__text :is(ul, ol) { margin-left: 0; padding-left: 24px; }
    .article-page .article__text .sp-image { padding: 12px; }
    .article-page .article__text :is(.site-info, .might-inter__box) { flex-wrap: wrap; }
    .article-page .sp-contents {
        position: sticky;
        top: 8px;
        z-index: 98;
        box-shadow: 0 4px 16px #260f3114;
    }
    .article-page .sp-contents .sp-contents_elements {
        max-height: 55vh;
        max-height: 55dvh;
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}
