/* --- Single Post Layout & Spacing --- */
.site-main-wrap {
    background-color: #ffffff;
    min-height: 100vh;
}

.article-box {
    padding-bottom: 100px;
}

/* --- Hero Image --- */
.hero-image-wrap {
    margin: 24px auto 48px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.hero-image-wrap img {
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    object-fit: cover;
    width: 100%;
}

/* --- Reading Wrapper --- */
.content-wrapper {
    margin: 0 auto;
    padding: 0;
}

/* --- Typography & Headers --- */
.entry-title-hero {
    /* Adjusted clamp: smaller on desktop, perfectly scaled on mobile */
    font-size: clamp(1.5rem, 3.5vw, 2.5rem); 
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin-bottom: 24px;
}

/* --- Meta & Badges --- */
.category-pill {
    margin-bottom: 20px;
}

.category-pill a {
    display: inline-block;
    background: #f1f5f9;
    color: #334155;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.category-pill a:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.meta-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    font-size: 0.9rem;
    color: #64748b;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.wp-block-post-author__avatar img {
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.wp-block-post-date a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
}

/* --- Post Content Formatting --- */
.content-wrapper .wp-block-post-content {
    font-size: 1.125rem;
    line-height: 1.85;
    color: #334155;
}

.content-wrapper .wp-block-post-content p {
    margin-bottom: 1.75em;
}

.content-wrapper .wp-block-post-content a {
    color: #0f172a;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: opacity 0.2s ease;
}

.content-wrapper .wp-block-post-content a:hover {
    opacity: 0.7;
}

.content-wrapper .wp-block-post-content h2,
.content-wrapper .wp-block-post-content h3 {
    margin-top: 2.2em;
    margin-bottom: 0.8em;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.content-wrapper .wp-block-post-content blockquote {
    border-left: 3px solid #cbd5e1;
    padding-left: 20px;
    margin-left: 0;
    font-style: normal;
    font-size: 1.2rem;
    color: #475569;
    background: #f8fafc;
    padding: 24px;
    border-radius: 0 12px 12px 0;
}

/* --- Tags --- */
.tags-wrapper {
    gap: 8px;
}

.tags-wrapper a {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 6px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tags-wrapper a:hover {
    border-color: #94a3b8;
    color: #0f172a;
}

/* --- Separator --- */
.wp-block-separator {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 40px 0;
}

/* --- Comments Section --- */
.comments-wrapper {
    background: #f8fafc;
    padding: 40px;
    border-radius: 24px;
    margin-top: 20px;
}

.wp-block-comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 32px;
    color: #0f172a;
}

.comment-item {
    margin-bottom: 24px;
}

.wp-block-comment-author-avatar img {
    border-radius: 50%;
}

.comment-body {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
}

.wp-block-comment-author-name {
    font-weight: 600;
    color: #0f172a;
}

.wp-block-comment-date {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 12px;
}


@media (max-width: 768px) {
    .hero-image-wrap,
    .hero-image-wrap img {
        aspect-ratio: 4/3 !important;
        height: auto !important;
        padding: 0;
        margin: 12px 0;
    }
}