/* Shared visual system for every individual blog post. */
body.post-page {
    background: #f8fafc;
    color: #1e293b;
}

.post-page .blog-post-full,
.post-page main > article {
    max-width: 48rem;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.post-page .blog-post-full h1,
.post-page main > article h1 {
    max-width: 44rem;
    margin: 0 0 1.25rem;
    color: #0f172a;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.post-page .post-meta,
.post-page main > article > p:first-child {
    display: inline-flex;
    align-items: center;
    margin: 0 0 1rem;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 600;
}

.post-page .post-image {
    display: block;
    width: 100%;
    max-height: none;
    aspect-ratio: 16 / 9;
    margin: 0 0 2rem;
    border-radius: 0.875rem;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.post-page .post-content,
.post-page .prose {
    max-width: none;
    color: #334155;
    font-size: 1.0625rem;
    line-height: 1.8;
}

.post-page .post-content p,
.post-page .prose p {
    margin-bottom: 1.25rem;
}

.post-page .post-content h2,
.post-page .prose h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid #dbeafe;
    color: #0f172a;
    font-size: clamp(1.4rem, 3vw, 1.75rem);
    font-weight: 750;
    line-height: 1.3;
}

.post-page .post-content ul,
.post-page .post-content ol,
.post-page .prose ul,
.post-page .prose ol {
    margin: 0 0 1.5rem 1.5rem;
}

.post-page .post-content li,
.post-page .prose li {
    margin-bottom: 0.65rem;
}

.post-page .post-help-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.25rem;
    align-items: center;
    margin-top: 2.75rem;
    padding: 1.5rem;
    border: 1px solid #bfdbfe;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.post-page .related-services,
.post-page .post-author-card {
    margin-top: 2.25rem;
    padding: 1.25rem;
    border-radius: 0.875rem;
}

.post-page .related-services {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.post-page .related-services h2,
.post-page .post-author-card h2 {
    margin: 0 0 0.75rem;
    padding: 0;
    border: 0;
    font-size: 1.05rem;
}

.post-page .related-services ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.post-page .related-services a {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.8rem;
    border-radius: 0.5rem;
    background: #ffffff;
    color: #1d4ed8;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.post-page .related-services a:hover {
    background: #dbeafe;
}

.post-page .post-author-card {
    border-left: 4px solid #2563eb;
    background: #eff6ff;
}

.post-page .post-author-card p {
    margin: 0.25rem 0;
    color: #334155;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.post-page .post-author-card a {
    color: #1d4ed8;
    font-weight: 700;
}

.post-page .post-help-card h2 {
    margin: 0 0 0.35rem;
    padding: 0;
    border: 0;
    color: #1e3a8a;
    font-size: 1.2rem;
}

.post-page .post-help-card p {
    margin: 0;
    color: #475569;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.post-page .post-help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.post-page .post-help-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-page .post-help-actions a:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(15, 23, 42, 0.15);
}

.post-page .post-call-link {
    background: #2563eb;
    color: #ffffff;
}

.post-page .post-whatsapp-link {
    background: #25d366;
    color: #ffffff;
}

.post-page .back-to-blog,
.post-page main > a[href="../blog"] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 1.25rem;
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.post-page .back-to-blog::before {
    content: "←";
}

.post-page .back-to-blog:hover,
.post-page main > a[href="../blog"]:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.post-page .sticky-action-bar {
    padding-bottom: env(safe-area-inset-bottom);
}

.post-page .medical-sources {
    margin-top: 2.25rem;
    padding: 1.25rem;
    border: 1px solid #bfdbfe;
    border-radius: 0.875rem;
    background: #eff6ff;
}

.post-page .medical-sources h2 {
    margin: 0 0 0.5rem;
    padding: 0;
    border: 0;
    font-size: 1.05rem;
}

.post-page .medical-sources ul {
    margin: 0.75rem 0 0 1.25rem;
}

@media (max-width: 767px) {
    .post-page main,
    .post-page > .container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .post-page .blog-post-full,
    .post-page main > article {
        padding: 1.25rem;
        border-radius: 0.75rem;
    }

    .post-page .post-help-card {
        grid-template-columns: 1fr;
        padding: 1.25rem;
    }

    .post-page .post-help-actions a {
        flex: 1;
    }
}
