/* /posts/{slug} — flat reader layout, edge-to-edge on mobile */

body.post-page-active .chat-container {
    background: var(--bg-main);
}

body.post-page-active .post-layout-container {
    width: 100%;
    max-width: none;
    margin: 0;
}

body.post-page-active .post-main-content {
    width: 100%;
}

body.post-page-active .post-view {
    max-width: 720px;
    margin: 0 auto;
    padding: 1rem 1.25rem 3rem;
}

body.post-page-active .post-view-header {
    margin-bottom: 0.75rem;
}

body.post-page-active .post-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    font-family: var(--font-ui);
    transition: color 0.15s ease;
}

body.post-page-active .post-back-link:hover {
    color: var(--text-primary);
    background: none;
    transform: none;
}

body.post-page-active .post-article {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 0;
    overflow: visible;
}

body.post-page-active .post-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light, #e8e8e4);
}

body.post-page-active .post-title {
    font-family: var(--font-brand);
    font-size: clamp(1.5rem, 4.5vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0 0 1rem;
}

body.post-page-active .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    align-items: flex-end;
}

body.post-page-active .meta-item {
    gap: 0.15rem;
}

body.post-page-active .meta-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

body.post-page-active .meta-value {
    font-size: 0.9rem;
    font-weight: 600;
}

body.post-page-active .post-featured-image {
    margin: 0 0 1.25rem;
    height: auto;
    max-height: min(52vh, 420px);
    border-radius: 0;
    overflow: hidden;
    background: var(--secondary-color, #f0f0ec);
}

body.post-page-active .post-featured-image img {
    width: 100%;
    height: auto;
    max-height: min(52vh, 420px);
    object-fit: cover;
    display: block;
}

body.post-page-active .typography {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text-primary);
}

body.post-page-active .typography .wp-block-image img {
    border-radius: 0;
}

body.post-page-active .typography blockquote {
    border-radius: 0;
}

body.post-page-active .post-sources {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light, #e8e8e4);
}

body.post-page-active .source-item {
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-light, #e8e8e4);
    border-radius: 0;
    transform: none;
}

body.post-page-active .source-item:hover {
    background: var(--bg-main);
    transform: none;
}

body.post-page-active .post-topics {
    margin-top: 0.75rem;
}

@media (max-width: 768px) {
    body.post-page-active .post-view {
        max-width: none;
        padding: 0.75rem 0 2.5rem;
    }

    body.post-page-active .post-view-header {
        padding: 0 1rem;
        margin-bottom: 0.5rem;
    }

    body.post-page-active .post-header,
    body.post-page-active .post-content,
    body.post-page-active .post-sources,
    body.post-page-active .post-topics {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    body.post-page-active .post-featured-image {
        margin-left: 0;
        margin-right: 0;
        max-height: none;
    }

    body.post-page-active .post-featured-image img {
        max-height: min(56vw, 320px);
        border-radius: 0;
    }

    body.post-page-active .post-title {
        font-size: clamp(1.35rem, 6vw, 1.75rem);
    }
}
