.post-page {
    --post-page-width: 860px;
    --post-page-horizontal-padding: clamp(18px, 6vmin, 52px);
    --post-page-vertical-padding: clamp(36px, 8.4vmin, 66px);
    --post-section-spacer-sm: 24px;
    --post-section-spacer-md: 34px;
    grid-column: 2;
    min-width: 0;
    width: min(100%, var(--post-page-width));
    justify-self: center;
    display: grid;
    gap: var(--post-section-spacer-md);
    align-content: start;
}

.post-hero {
    border-radius: 14px;
    padding: var(--post-page-vertical-padding) var(--post-page-horizontal-padding);
}

.post-kicker {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--accent-strong);
    font-size: 13px;
}

.post-title {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(31px, 4vw, 42px);
    line-height: 1.18;
    color: var(--text-main);
    text-wrap: balance;
}

.post-meta {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.post-meta li {
    display: inline-flex;
    align-items: center;
}

.post-meta-author-item {
    gap: 10px;
}

.post-meta-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.post-meta li + li::before {
    content: "\00b7";
    margin: 0 10px;
    opacity: 0.75;
}

.post-meta-author {
    color: var(--text-main);
    font-weight: 700;
}

.post-cover {
    border-radius: 14px;
    overflow: hidden;
}

.post-cover img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.post-article {
    border-radius: 14px;
    padding: var(--post-page-vertical-padding) var(--post-page-horizontal-padding);
    display: block;
}

.post-article > * + * {
    margin-top: 22px;
}

.post-article p + p {
    margin-top: 30px;
}

.post-article p {
    margin: 0;
    color: var(--text-main);
    line-height: 1.95;
    font-size: 17px;
    text-align: justify;
    word-spacing: -0.02em;
    hyphens: auto;
    -webkit-hyphens: auto;
    max-width: 72ch;
}

.post-article h3 {
    margin: 26px 0 4px;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(21px, 2.25vw, 27px);
    line-height: 1.3;
    color: var(--text-main);
    text-wrap: balance;
}

.post-challenges {
    margin: 0;
    padding-left: 30px;
    display: grid;
    gap: 16px;
}

.post-article .post-challenges + .post-challenges {
    margin-top: var(--post-section-spacer-sm);
}

.post-article .post-challenges + p {
    margin-top: var(--post-section-spacer-md);
}

.post-challenges li {
    color: var(--text-main);
    line-height: 1.9;
    text-align: justify;
    word-spacing: -0.02em;
    hyphens: auto;
    -webkit-hyphens: auto;
    max-width: 72ch;
}

.post-challenges li::after {
    content: "";
    display: table;
    clear: both;
}

.post-challenges li p {
    margin-top: var(--post-section-spacer-sm);
}

.post-challenges li.post-challenge-compact-intro p {
    margin-top: 8px;
}

.post-challenges li.post-challenge-with-image,
.post-challenges li.post-challenge-with-image p {
    text-align: left;
}

.post-inline-image {
    margin: 10px 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: 0 14px 28px rgba(2, 22, 45, 0.16);
}

.post-inline-image img {
    width: 100%;
    display: block;
    height: auto;
    object-fit: contain;
}

.post-inline-image-inset-right {
    float: right;
    width: clamp(240px, 44%, 350px);
    margin: 6px 0 14px 24px;
}

.post-inline-image-inset-right img {
    height: auto;
    min-height: 0;
    max-height: none;
}

.post-inline-image-ending {
    float: none !important;
    clear: both;
    width: min(100%, 560px);
    margin: 14px auto;
}

.post-inline-image-ending img {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    object-fit: contain;
}

.post-ending-split {
    clear: both;
    display: grid;
    grid-template-columns: minmax(250px, 290px) 1fr;
    align-items: start;
    gap: 30px;
    margin-top: 36px;
}

.post-ending-split .post-inline-image-ending {
    width: 100%;
    margin: 0;
}

.post-ending-split .post-quote {
    margin: 10px 0 0;
    align-self: start;
}

.post-social-links {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.post-social-link {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--card-border);
    background: rgba(255, 255, 255, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-social-link img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.post-social-link:hover,
.post-social-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(2, 22, 45, 0.18);
    outline: none;
}

.post-quote {
    clear: both;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text-main);
    font-family: 'Open Sans', sans-serif;
    font-size: 17px;
    line-height: 1.95;
    text-align: justify;
    word-spacing: -0.02em;
    hyphens: auto;
    -webkit-hyphens: auto;
}

.post-actions {
    border-radius: 14px;
    padding: 18px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.post-btn {
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #0ba8d4, #056f95);
    color: #f8fbff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.03em;
    padding: 11px 18px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-btn:hover,
.post-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(0, 55, 80, 0.28);
    outline: none;
}

.post-lower-stack {
    display: grid;
    gap: 18px;
    margin-top: 6px;
}

.post-recent-panel,

.post-recent-panel,

.post-page .glass-panel {
    backdrop-filter: blur(4px);
}

.post-recent-header {
    margin-bottom: 14px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.post-recent-header h3,

.post-recent-header a {
    color: var(--text-main);
    font-size: 14px;
    text-decoration: none;
    opacity: 0.9;
}

.post-recent-header a:hover,
.post-recent-header a:focus-visible {
    text-decoration: underline;
    outline: none;
}

.post-recent-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.post-recent-card {
    border: 2px solid rgba(20, 48, 78, 0.28);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.16);
    color: var(--text-main);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: grid;
    grid-template-rows: auto 1fr;
    box-shadow: 0 8px 16px rgba(7, 30, 56, 0.14);
}

.post-recent-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    display: block;
}

.post-recent-card h4 {
    margin: 0;
    padding: 14px;
    font-family: 'Lora', serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.32;
    color: var(--text-main);
    text-wrap: balance;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-recent-card:hover,
.post-recent-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(2, 22, 45, 0.22);
    border-color: rgba(10, 122, 164, 0.55);
    outline: none;
}






@media (max-width: 1100px) {
    .post-page {
        --post-page-horizontal-padding: clamp(16px, 4.2vw, 30px);
    }

    .post-recent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-recent-card h4 {
        font-size: 18px;
    }
}

@media (max-width: 1200px) {
    .post-page {
        grid-column: 1;
    }
}

@media (max-width: 900px) {
    .post-hero,
    .post-article {
        padding: 30px 20px;
    }

    .post-cover img {
        height: auto;
    }

    .post-inline-image img {
        height: auto;
    }

    .post-inline-image-inset-right {
        float: none;
        width: 100%;
        margin: 10px 0;
    }

    .post-inline-image-inset-right img {
        min-height: 0;
        max-height: none;
        height: auto;
    }

    .post-inline-image-ending {
        width: 100%;
        margin: 10px 0;
    }

    .post-inline-image-ending img {
        height: auto;
        aspect-ratio: auto;
    }

    .post-ending-split {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .post-ending-split .post-inline-image-ending,
    .post-ending-split .post-quote {
        margin: 0;
    }

    .post-article p,
    .post-challenges li {
        font-size: 16px;
        max-width: 100%;
    }

    .post-title {
        font-size: clamp(27px, 6.8vw, 35px);
    }

    .post-meta {
        font-size: 13px;
    }

    .post-meta-avatar {
        width: 28px;
        height: 28px;
    }

    .post-recent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .post-recent-card h4 {
        font-size: 18px;
    }
}

@media (max-width: 640px) {
    .post-hero,
    .post-cover,
    .post-article,
    .post-actions {
        border-radius: 14px;
    }

    .post-quote {
        font-size: 16px;
    }

    .post-hero,
    .post-article,
    .post-actions {
        padding: 22px 16px;
    }

    .post-inline-image {
        border-radius: 12px;
    }

    .post-cover img,
    .post-inline-image img {
        height: auto;
    }

    .post-inline-image-inset-right img {
        height: auto;
    }

    .post-inline-image-ending img {
        height: auto;
    }

    .post-meta {
        margin-top: 10px;
    }

    .post-meta li + li::before {
        margin: 0 7px;
    }

}

@media (max-width: 760px) {
    .post-page {
        --post-section-spacer-sm: 14px;
        --post-section-spacer-md: 18px;
    }

    .post-article p,
    .post-challenges li,
    .post-quote {
        text-align: justify;
        word-spacing: -0.01em;
        max-width: 100%;
    }

    .post-actions {
        flex-direction: column;
    }

    .post-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .post-recent-header {
        align-items: center;
    }

    .post-recent-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .post-recent-card img {
        height: auto;
    }


    .post-social-links {
        gap: 10px;
    }

    .post-social-link {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 480px) {
    .post-page {
        gap: 16px;
    }

    .post-hero,
    .post-article,
    .post-actions,
    .post-recent-panel,

    .post-title {
        font-size: clamp(24px, 8.2vw, 30px);
    }

    .post-meta {
        font-size: 12px;
    }

    .post-meta li + li::before {
        margin: 0 6px;
    }

    .post-article p,
    .post-challenges li,
    .post-quote {
        font-size: 15px;
    }

    .post-recent-header h3,

    .post-recent-card img {
        height: auto;
    }

    .post-recent-card h4 {
        padding: 12px;
        font-size: 17px;
    }


}

@media (max-width: 360px) {
    .post-title {
        font-size: 22px;
    }

    .post-article p,
    .post-challenges li,
    .post-quote {
        font-size: 14px;
    }

    .post-meta {
        font-size: 11px;
    }

    .post-recent-card img {
        height: auto;
    }

    .post-recent-card h4 {
        font-size: 16px;
    }
}

@media (max-width: 320px) {
    .post-page {
        gap: 12px;
    }

    .post-hero,
    .post-article,
    .post-actions,
    .post-recent-panel,

    .post-title {
        font-size: 20px;
        line-height: 1.15;
    }

    .post-kicker {
        font-size: 11px;
    }

    .post-article p,
    .post-challenges li,
    .post-quote {
        font-size: 13.5px;
        line-height: 1.7;
    }

    .post-meta {
        font-size: 10px;
    }

    .post-meta-avatar {
        width: 24px;
        height: 24px;
    }

    .post-btn {
        font-size: 12px;
        padding: 10px 14px;
    }

    .post-recent-header h3,

    .post-recent-card img {
        height: auto;
    }

    .post-recent-card h4 {
        padding: 10px;
        font-size: 15px;
    }


    .post-social-link {
        width: 34px;
        height: 34px;
    }

    .post-social-link img {
        width: 19px;
        height: 19px;
    }

}


