body.post-page {
    --post-green: #087a43;
    --post-green-strong: #046238;
    --post-green-soft: #eaf7f1;
    --post-ink: #102927;
    --post-muted: #68747f;
    --post-border: #deebe5;
    --post-card: #ffffff;
    --post-blue: #0f4d8f;
    --post-amber: #f4b72c;
    background:
        radial-gradient(circle at 6% 10%, rgba(8, 122, 67, 0.08), transparent 26%),
        radial-gradient(circle at 92% 18%, rgba(15, 77, 143, 0.06), transparent 22%),
        linear-gradient(180deg, #fbfdfc 0%, #f3f8f5 100%) !important;
    color: var(--post-ink);
}

body.post-page .post-modern-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

body.post-page .post-modern-header {
    padding: clamp(7.2rem, 9vw, 8.8rem) 0 24px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.post-page .post-modern-header .post-modern-container {
    display: grid;
    gap: 14px;
}

body.post-page .post-modern-back {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--post-green);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
}

body.post-page .post-modern-back:hover,
body.post-page .post-modern-back:focus-visible {
    color: var(--post-green-strong);
    text-decoration: underline;
    outline: none;
}

body.post-page .post-modern-header h1 {
    max-width: 860px !important;
    margin: 0 !important;
    color: var(--post-ink) !important;
    font-family: 'Google Sans Flex', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: clamp(2.35rem, 4.6vw, 4rem) !important;
    line-height: 1.03 !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}

body.post-page .post-modern-meta {
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    gap: 10px !important;
    flex-wrap: wrap;
    color: var(--post-muted) !important;
    font-size: 0.86rem !important;
    font-weight: 800 !important;
}

body.post-page .post-modern-meta span {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 6px 12px !important;
    border: 1px solid rgba(8, 122, 67, 0.18);
    border-radius: 8px !important;
    background: #f2f6f4 !important;
    color: #5f6b73 !important;
}

body.post-page .post-modern-meta span:first-child {
    border-color: rgba(8, 122, 67, 0.38);
    background: var(--post-green-soft) !important;
    color: var(--post-green) !important;
}

body.post-page .post-modern-page {
    max-width: none !important;
    padding: 0 0 clamp(44px, 6vw, 78px) !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.post-page .post-modern-layout {
    display: grid;
    grid-template-columns: minmax(0, 820px) minmax(260px, 300px);
    gap: clamp(24px, 3vw, 34px);
    align-items: start;
}

body.post-page .post-modern-main {
    min-width: 0;
    display: grid !important;
    gap: 22px !important;
}

body.post-page .post-modern-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    margin: 0 !important;
    overflow: hidden;
    border-radius: 12px !important;
    border: 1px solid rgba(16, 41, 39, 0.08);
    background: linear-gradient(135deg, #e8f2ff 0%, #fff6d9 100%);
    box-shadow: 0 18px 46px rgba(16, 41, 39, 0.12);
}

body.post-page .post-modern-media img,
body.post-page .post-modern-media iframe {
    width: 100% !important;
    height: 100% !important;
    display: block;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    object-fit: cover;
    box-shadow: none !important;
}

body.post-page .post-modern-video-link {
    margin: -4px 0 0 !important;
}

body.post-page .post-modern-video-link a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 14px !important;
    border: 1px solid rgba(8, 122, 67, 0.22);
    border-radius: 8px !important;
    background: var(--post-green-soft) !important;
    color: var(--post-green) !important;
    font-weight: 850;
    text-decoration: none;
}

body.post-page .post-modern-callout {
    margin: 0 !important;
    padding: 18px 20px !important;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    border: 1px solid rgba(8, 122, 67, 0.22) !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, rgba(238, 249, 243, 0.96), rgba(247, 252, 249, 0.98)) !important;
    box-shadow: none !important;
    color: #315d4c !important;
}

body.post-page .post-modern-callout__icon {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: #ffffff;
    color: var(--post-green);
    border: 1px solid rgba(8, 122, 67, 0.16);
}

body.post-page .post-modern-callout__icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.post-page .post-modern-callout p {
    margin: 0 !important;
    color: inherit !important;
    font-size: 0.98rem !important;
    line-height: 1.72 !important;
    font-weight: 650;
}

body.post-page .post-modern-body {
    padding: clamp(24px, 3vw, 36px) !important;
    border: 1px solid rgba(16, 41, 39, 0.08) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.97) !important;
    box-shadow: 0 18px 44px rgba(16, 41, 39, 0.07) !important;
    color: #253532 !important;
    font-family: 'Google Sans Flex', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: clamp(0.98rem, 0.22vw + 0.94rem, 1.06rem) !important;
    line-height: 1.82 !important;
}

body.post-page .post-modern-body > *:first-child {
    margin-top: 0 !important;
}

body.post-page .post-modern-body > *:last-child {
    margin-bottom: 0 !important;
}

body.post-page .post-modern-body :where(p, ul, ol, li, span, strong, em, a, blockquote, figcaption, div) {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: 0 !important;
}

body.post-page .post-modern-body p {
    margin: 0 0 1rem !important;
}

body.post-page .post-modern-body h2,
body.post-page .post-modern-body h3,
body.post-page .post-modern-body h4,
body.post-page .post-modern-body h5,
body.post-page .post-modern-body h6 {
    scroll-margin-top: 120px;
    color: var(--post-ink) !important;
    font-family: inherit !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    font-weight: 900 !important;
}

body.post-page .post-modern-body h2 {
    margin: 0 0 18px !important;
    padding-top: 0 !important;
    border-top: 0 !important;
    font-size: clamp(1.45rem, 2vw, 1.92rem) !important;
}

body.post-page .post-modern-body h2:not(:first-child) {
    margin-top: 34px !important;
}

body.post-page .post-modern-body h3 {
    margin: 28px 0 12px !important;
    font-size: clamp(1.14rem, 1.3vw, 1.28rem) !important;
}

body.post-page .post-modern-body h4,
body.post-page .post-modern-body h5,
body.post-page .post-modern-body h6 {
    margin: 22px 0 10px !important;
    font-size: 1.06rem !important;
}

body.post-page .post-modern-body ul,
body.post-page .post-modern-body ol {
    margin: 0 0 1.1rem !important;
    padding-left: 1.35rem !important;
}

body.post-page .post-modern-body li {
    margin-bottom: 0.48rem !important;
}

body.post-page .post-modern-body li::marker {
    color: var(--post-green);
    font-weight: 900;
}

body.post-page .post-modern-body a {
    color: var(--post-green) !important;
    font-weight: 800;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

body.post-page .post-modern-body blockquote {
    margin: 22px 0 !important;
    padding: 16px 18px !important;
    border-left: 4px solid var(--post-amber) !important;
    border-radius: 0 12px 12px 0 !important;
    background: #fff8e6 !important;
    color: #4a3f26 !important;
}

body.post-page .post-modern-body img,
body.post-page .post-modern-body iframe {
    max-width: 100% !important;
    display: block;
    margin: 22px auto !important;
    border-radius: 12px !important;
    box-shadow: 0 14px 34px rgba(16, 41, 39, 0.1) !important;
}

body.post-page .post-modern-body iframe {
    width: min(100%, 620px) !important;
    aspect-ratio: 16 / 9;
    height: auto !important;
}

body.post-page .post-modern-sidebar {
    display: grid;
    gap: 22px;
    min-width: 0;
    align-self: start;
    position: sticky;
    top: 208px;
    max-height: calc(100vh - 232px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    z-index: 3;
}

body.post-page .post-modern-side-card {
    padding: 22px !important;
    border: 1px solid rgba(16, 41, 39, 0.08) !important;
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 18px 42px rgba(16, 41, 39, 0.06) !important;
}

body.post-page .post-modern-toc {
    position: static;
}

body.post-page .post-modern-side-card h2 {
    margin: 0 0 16px !important;
    color: var(--post-ink) !important;
    font-size: 1rem !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase;
}

body.post-page .post-modern-toc ol {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    list-style: none;
    counter-reset: postToc;
}

body.post-page .post-modern-toc li {
    counter-increment: postToc;
}

body.post-page .post-modern-toc a {
    min-height: 38px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    color: #384944;
    font-size: 0.88rem;
    font-weight: 850;
    line-height: 1.35;
    text-decoration: none;
}

body.post-page .post-modern-toc a::before {
    content: counter(postToc) ".";
    color: var(--post-green);
    font-weight: 900;
}

body.post-page .post-modern-toc li.is-child a {
    padding-left: 20px;
    font-size: 0.84rem;
    color: #62716d;
}

body.post-page .post-modern-toc a:hover,
body.post-page .post-modern-toc a:focus-visible,
body.post-page .post-modern-toc a.is-active {
    background: var(--post-green-soft);
    color: var(--post-green);
    outline: none;
}

body.post-page .post-modern-related-list {
    display: grid;
    gap: 14px;
}

body.post-page .post-modern-related-item {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    color: inherit;
    text-decoration: none;
}

body.post-page .post-modern-related-item:hover strong,
body.post-page .post-modern-related-item:focus-visible strong {
    color: var(--post-green);
}

body.post-page .post-modern-related-thumb {
    width: 82px;
    aspect-ratio: 1;
    overflow: hidden;
    display: inline-grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--post-green-soft), #fff6d9);
    color: var(--post-green);
    font-weight: 900;
}

body.post-page .post-modern-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.post-page .post-modern-related-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
}

body.post-page .post-modern-related-copy strong {
    color: var(--post-ink);
    font-size: 0.92rem;
    line-height: 1.32;
    font-weight: 900;
    transition: color 0.16s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.post-page .post-modern-related-copy small {
    color: var(--post-muted);
    font-size: 0.8rem;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.post-page .post-modern-all-link {
    width: fit-content;
    display: inline-flex;
    margin-top: 18px;
    color: var(--post-green);
    font-size: 0.88rem;
    font-weight: 900;
    text-decoration: none;
}

body.post-page .post-modern-all-link:hover,
body.post-page .post-modern-all-link:focus-visible {
    text-decoration: underline;
    outline: none;
}

body.post-page .post-modern-empty {
    padding: 28px !important;
    border: 1px solid rgba(16, 41, 39, 0.08) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 18px 42px rgba(16, 41, 39, 0.06) !important;
}

body.post-page .post-related {
    display: none !important;
}

body.post-page .floating-social-links {
    display: none !important;
}

@media (max-width: 980px) {
    body.post-page .post-modern-layout {
        grid-template-columns: 1fr;
    }

    body.post-page .post-modern-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        position: static;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 768px) {
    body.post-page .post-modern-container {
        width: min(100% - 24px, 680px);
    }

    body.post-page .post-modern-header {
        padding-top: calc(env(safe-area-inset-top, 0px) + 10.4rem) !important;
        padding-bottom: 18px !important;
    }

    body.post-page .post-modern-header h1 {
        font-size: clamp(2rem, 9vw, 2.8rem) !important;
    }

    body.post-page .post-modern-meta span {
        min-height: 28px;
        padding: 5px 10px !important;
        font-size: 0.8rem;
    }

    body.post-page .post-modern-main {
        gap: 18px !important;
    }

    body.post-page .post-modern-media,
    body.post-page .post-modern-callout,
    body.post-page .post-modern-body,
    body.post-page .post-modern-side-card {
        border-radius: 12px !important;
    }

    body.post-page .post-modern-callout {
        grid-template-columns: 36px minmax(0, 1fr);
        padding: 14px !important;
    }

    body.post-page .post-modern-callout__icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    body.post-page .post-modern-body {
        padding: 20px 16px !important;
    }

    body.post-page .post-modern-sidebar {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 520px) {
    body.post-page .post-modern-header {
        padding-top: calc(env(safe-area-inset-top, 0px) + 10.8rem) !important;
    }

    body.post-page .post-modern-related-item {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    body.post-page .post-modern-related-thumb {
        width: 72px;
    }
}
