/* Scoped additions to the existing article styles; no global typography changes. */
body.single-post { --skema-reading-offset: 120px; }
.single-post [hidden] { display: none !important; }
.single-post .skema-reading-article { max-width: 1180px; }
.single-post .e-con-inner:has(> .elementor-widget-html .skema-reading-article) { max-width: 1180px; }
.skema-reading-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.skema-reading-body { min-width: 0; }
.single-post .skema-reading-body > :first-child { margin-top: 0; }
@media (max-width: 1024px) {
    .skema-reading-body { width: 100%; max-width: 760px; margin-inline: auto; }
}
.single-post .skema-article [id] { scroll-margin-top: var(--skema-reading-offset); }
.single-post .skema-article .skema-article-platform { width: 100%; margin: 44px 0; }
.single-post .skema-article .skema-article-platform img { display: block; width: 100%; max-width: 100%; height: auto; margin: 0; }

/* Shared floating treatment for every in-article platform. */
.single-post .skema-article .skema-article-platform {
    position: relative;
    isolation: isolate;
}
.single-post .skema-article .skema-article-platform::after {
    content: '';
    position: absolute;
    z-index: -1;
    left: 14%;
    right: 14%;
    bottom: 1.5%;
    height: 7%;
    border-radius: 50%;
    background: rgb(30 32 26 / 24%);
    filter: blur(18px);
    transform: scaleX(.86);
    transform-origin: center;
    pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
    .single-post .skema-article .skema-article-platform img {
        animation: skema-platform-float 5.8s ease-in-out infinite;
        will-change: transform;
    }
    .single-post .skema-article .skema-article-platform::after {
        animation: skema-platform-shadow 5.8s ease-in-out infinite;
        will-change: opacity, transform;
    }
    .single-post .skema-article .skema-article-platform:nth-of-type(2) img,
    .single-post .skema-article .skema-article-platform:nth-of-type(2)::after { animation-delay: -1.9s; }
    .single-post .skema-article .skema-article-platform:nth-of-type(3) img,
    .single-post .skema-article .skema-article-platform:nth-of-type(3)::after { animation-delay: -3.8s; }
}
@keyframes skema-platform-float {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -10px, 0); }
}
@keyframes skema-platform-shadow {
    0%, 100% { opacity: .7; transform: scaleX(.9); }
    50% { opacity: .38; transform: scaleX(.78); }
}
.skema-reading-aside { min-width: 0; }
.single-post .skema-toc-label { display: none; }
.single-post .skema-article .skema-toc-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 56px; padding: 14px 0; background: transparent; color: #000; border: 0; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; border-radius: 0; font: inherit; font-size: 15px; text-align: left; box-shadow: none; }
.single-post .skema-article .skema-toc-toggle:hover, .single-post .skema-article .skema-toc-toggle:focus { background: transparent; color: #000; }
.skema-toc-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
.single-post .skema-reading-list { list-style: none; padding: 12px 0 !important; margin: 0 !important; counter-reset: none; }
.single-post .skema-reading-list > li { margin: 0 0 6px !important; padding: 0; line-height: 1.5; }
.single-post .skema-reading-list > li::before { content: none; }
.single-post .skema-reading-list a { display: block; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 10px; color: #666; font-size: 15px; line-height: 1.5; font-weight: 400; text-decoration: none; overflow-wrap: anywhere; }
.single-post .skema-reading-list a:hover { background: rgb(255 255 255 / 55%); }
.skema-article-author { display: block; padding: 15px; margin-bottom: 28px; background: #fff; border-radius: 10px; }
.single-post .skema-article .skema-author-photo { flex: 0 0 116px; width: 116px; height: 116px; background: #dbdbdb; object-fit: cover; object-position: center top; border-radius: 10px; margin: 0; border: 0; }
.skema-author-text { min-width: 0; }
.skema-author-top { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 14px; }
.single-post .skema-article .skema-author-label { margin: 0 0 6px; color: #666; font-size: 13px; line-height: 1.5; text-transform: uppercase; letter-spacing: .03em; }
.single-post .skema-article .skema-author-name { margin: 0 0 10px; color: #000; font-size: 20px; font-weight: 500; line-height: 1.4; }
.single-post .skema-article .skema-author-role { margin: 0; color: #666; font-size: 14px; line-height: 1.5; }
.single-post .skema-article .skema-author-name-link { color: inherit; font: inherit; text-decoration: none; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.single-post .skema-article .skema-author-name-link:hover,
.single-post .skema-article .skema-author-name-link:focus-visible { text-decoration-line: underline; }
.single-post .skema-reading-list a[aria-current="location"] { background: #fff; color: #000; font-weight: 500; }
.skema-breadcrumbs { font-size: 14px; line-height: 1.5; color: #666; margin-bottom: 20px; }
.skema-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px 12px; list-style: none; margin: 0; padding: 0; }
.skema-breadcrumbs li { min-width: 0; overflow-wrap: anywhere; }
.skema-breadcrumbs li + li::before { content: '/'; margin-right: 10px; color: #888; }
.skema-breadcrumbs a { color: inherit; }
.skema-reading-meta { display: flex; flex-wrap: wrap; gap: 8px 0; margin-top: 24px; color: #666; font-size: 14px; line-height: 1.6; letter-spacing: 0; }
.skema-reading-meta > span + span::before { content: '·'; margin: 0 10px; }
.skema-reading-meta > span:first-child { text-transform: uppercase; }
.skema-related-guides { max-width: 1132px; margin: 64px auto 0; }
.skema-related-guides > h2 { font-size: 28px; font-weight: 400; margin-bottom: 28px; }
.skema-guides-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.skema-guides-grid article { min-width: 0; }
.skema-guides-grid a { display: block; color: #000; }
.skema-guides-grid img { display: block; width: 100%; height: auto; border-radius: var(--skema-radius, 12px); margin-bottom: 18px; }
.skema-guide-category { display: block; font-size: 11px; color: #666; text-transform: uppercase; margin-bottom: 10px; }
.skema-guides-grid h3 { font-size: 20px; font-weight: 400; line-height: 1.4; overflow-wrap: anywhere; }
.skema-summary { margin: 32px 0; padding: 18px 0; border-block: 1px solid #ddd; }
.single-post .skema-summary-title { font-weight: 600; margin-top: 0; }

/* Shared article CTA: neutral card and one consistent, lightly rounded button. */
.single-post .skema-article .cta-box {
    margin: 32px auto;
    padding: 24px;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgb(0 0 0 / 5%);
}
.single-post .skema-article .cta-box h3 {
    margin: 0 0 8px;
    color: #000;
}
.single-post .skema-article .cta-box p {
    margin: 0 0 16px;
    color: #4f5962;
}
.single-post .skema-article .cta-box .cta-button,
.single-post .skema-article .cta-box .btn,
.single-post .skema-article .cta-box > a:last-child {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    background: #000;
    border: 1px solid #000;
    border-radius: 7px;
    box-shadow: none;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none !important;
    text-transform: none;
    transition: background-color 160ms, color 160ms, transform 160ms;
}
.single-post .skema-article .cta-box .cta-button:hover,
.single-post .skema-article .cta-box .btn:hover,
.single-post .skema-article .cta-box > a:last-child:hover {
    background: #d9fe00;
    border-color: #d9fe00;
    color: #000 !important;
    transform: translateY(-1px);
}
.single-post .skema-article .cta-box .cta-button:focus-visible,
.single-post .skema-article .cta-box .btn:focus-visible,
.single-post .skema-article .cta-box > a:last-child:focus-visible {
    outline: 2px solid #000;
    outline-offset: 3px;
}
.skema-reading-aside a:focus-visible, .skema-toc-toggle:focus-visible, .skema-breadcrumbs a:focus-visible, .skema-guides-grid a:focus-visible { outline: 2px solid #000; outline-offset: 4px; }
@media (min-width: 1025px) {
    .single-post .e-con-inner.skema-article-heading-group { max-width: 1132px; }
    .single-post .skema-article-heading-group > .elementor-widget-pxl_heading { width: 100%; }
    .single-post .skema-article-heading-group .elementor-widget-pxl_heading .pxl-heading .pxl-heading--inner { max-width: 1094px; }
    .single-post .skema-article-heading-group > .elementor-widget-pxl_divider { width: 1094px; max-width: 100%; }
    .single-post .skema-article-heading-group > .elementor-widget-pxl_image { width: 900px; max-width: 100%; margin-inline: auto; }
    .single-post .skema-article-heading-group > .elementor-widget-pxl_divider ~ .elementor-widget-pxl_divider { display: none; }
    .skema-reading-layout { grid-template-columns: minmax(0, 760px) minmax(240px, 270px); gap: 64px; }
    .skema-reading-body { grid-column: 1; grid-row: 1; }
    .skema-reading-aside { grid-column: 2; grid-row: 1; }
    .skema-reading-sticky { position: sticky; top: var(--skema-reading-offset); max-height: calc(100dvh - var(--skema-reading-offset) - 24px); display: flex; flex-direction: column; }
    .skema-article-author { flex: 0 0 auto; display: block; margin-bottom: 32px; }

    .skema-reading-aside nav { position: relative; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #bbb transparent; overscroll-behavior: contain; }
    .single-post .skema-article .skema-toc-toggle { display: none; }
    .single-post .skema-toc-label { flex: 0 0 auto; display: block; margin: 0 0 12px; font-size: 17px; font-weight: 500; }
    .skema-guides-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
    html:has(body.single-post) { scroll-behavior: smooth; }
    .single-post .skema-reading-list a { transition: background-color 160ms, color 160ms; }
}
.skema-reading-progress { position: fixed; top: 0; left: 0; width: 100%; height: 3px; background: #d9fe00; transform: scaleX(0); transform-origin: left; z-index: 100000; pointer-events: none; }
@media (max-width: 1024px) {
    .single-post .skema-article .skema-article-platform { margin-block: 36px; }
    .skema-breadcrumbs li:last-child { display: none; }
    .skema-reading-meta .skema-meta-category,
    .skema-reading-meta:has(.skema-meta-updated) .skema-meta-published { display: none; }
    .skema-reading-meta { font-size: 13px; gap: 4px 0; margin-top: 18px; }
    .skema-reading-meta > .skema-meta-published::before,
    .skema-reading-meta > .skema-meta-updated::before { content: none; }
    .skema-reading-meta > span + span::before { margin-inline: 7px; }
    .single-post .skema-article-heading-group.e-con-inner > .elementor-element.elementor-widget-pxl_divider { display: none !important; }
    .skema-article-author { display: grid; grid-template-columns: 72px minmax(0, 1fr); column-gap: 14px; row-gap: 4px; padding: 16px; margin-bottom: 0; }
    .skema-author-top { display: contents; }
    .single-post .skema-article .skema-author-photo { width: 72px; height: 72px; grid-column: 1; grid-row: 1 / 3; }
    .skema-author-text { grid-column: 2; grid-row: 1; }
    .single-post .skema-article .skema-author-label { margin-bottom: 3px; }
    .single-post .skema-article .skema-author-name { margin-bottom: 6px; }
    .skema-mobile-toc { margin: 24px 0 28px; }
    .single-post .skema-article .skema-toc-toggle { font-size: 16px; min-height: 56px; padding-block: 15px; }
    .single-post .skema-article .skema-author-name { font-size: 18px; }
}
.skema-mobile-toc:empty { display: none; }
.skema-mobile-toc a:focus-visible { outline: 2px solid #000; outline-offset: 4px; }
@media print {
    .skema-reading-progress { display: none; }
    .skema-reading-aside { display: none; }
    .skema-reading-layout { display: block; }
}

