/* ============================================
   Single Post Styles
   Reuses .category-label / .meta / .mostread-box
   from archive-style.css — keep that file enqueued.
   Enqueue this file from functions.php.
   ============================================ */

.single-post-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 64px;
    font-family: 'Inter', sans-serif;
    color: #1A1A1A;
}

/* ---- Breadcrumb ---- */
.post-breadcrumb {
    padding: 24px 0 16px;
    font-size: 13px;
    color: #6B6B6B;
}
.post-breadcrumb a {
    color: #6B6B6B;
    text-decoration: none;
}
.post-breadcrumb a:hover {
    color: #0F1C3D;
}
.post-breadcrumb .crumb-sep {
    margin: 0 8px;
    color: #C9CDD4;
}
.post-breadcrumb .crumb-current {
    color: #1A1A1A;
}

/* ---- Layout ---- */
.post-layout-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.post-main-col {
    flex: 1 1 66%;
    min-width: 0;
}
.post-sidebar {
    flex: 1 1 28%;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 24px;
}

/* ---- Title block ---- */
.post-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    margin: 4px 0 12px;
}
.post-byline {
    font-size: 14px;
    color: #6B6B6B;
    margin-bottom: 24px;
}
.post-byline .byline-sep {
    margin: 0 8px;
    color: #C9CDD4;
}

/* ---- Featured image ---- */
.post-featured-image {
    margin-bottom: 24px;
}
.post-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* ---- Article body ---- */
.post-body {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}
.post-body p {
    margin: 0 0 20px;
}
.post-body h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: #0F1C3D;
    margin: 32px 0 12px;
}
.post-body h3 {
    font-family: 'Playfair Display', serif;
    font-size: 19px;
    color: #0F1C3D;
    margin: 24px 0 10px;
}
.post-body ul,
.post-body ol {
    margin: 0 0 20px;
    padding-left: 22px;
}
.post-body li {
    margin-bottom: 8px;
}
.post-body li strong {
    color: #0F1C3D;
}
.post-body img {
    max-width: 100%;
    border-radius: 4px;
}
.post-body a {
    color: #2563EB;
}

/* ---- Share row ---- */
.post-share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #E5E5E5;
}
.share-label {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
    margin-right: 4px;
}
.share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}
.share-linkedin { background: #0A66C2; }
.share-x        { background: #000; }
.share-email    { background: #6B6B6B; }
.share-icon:hover { opacity: 0.85; }

/* ---- Related stories ---- */
.related-stories {
    margin-top: 40px;
}
.related-stories-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-bottom: 1px solid #E5E5E5;
    padding-bottom: 12px;
    margin-bottom: 20px;
}
.related-stories-heading h3 {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #0F1C3D;
    margin: 0;
}
.view-all-link {
    font-size: 13px;
    font-weight: 600;
    color: #2563EB;
    text-decoration: none;
    white-space: nowrap;
}
.view-all-link:hover {
    text-decoration: underline;
}
.related-stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.related-story-card {
    display: block;
    text-decoration: none;
    color: inherit;
}
.related-story-thumb img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}
.related-story-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    line-height: 1.3;
    margin: 4px 0 0;
}

/* ---- Prev / Next navigation ---- */
.post-nav-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #E5E5E5;
}
.post-nav-row a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1A1A1A;
    font-size: 14px;
    line-height: 1.4;
    max-width: 320px;
}
.post-nav-next a {
    text-align: right;
    justify-content: flex-end;
}
.post-nav-row .nav-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #6B6B6B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.post-nav-row .nav-arrow {
    font-size: 18px;
    color: #0F1C3D;
    flex: 0 0 auto;
}
.post-nav-row a:hover .nav-text {
    color: #0F1C3D;
}

/* ---- Sidebar: newsletter box ----
   This wrapper is intentionally unstyled (no background/padding) — the CF7
   shortcode itself already renders a complete, self-contained styled card
   (title, description, fields, footnote). Adding our own background here
   would just frame a box around a box. */
.post-sidebar .newsletter-box {
    /* spacing-only wrapper */
}

/* ---- Sidebar: Most Read ---- */
/* .mostread-box itself is styled in archive-style.css and reused as-is here. */

/* ---- Sidebar: Related Topics ---- */
.related-topics-box {
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    padding: 24px;
}
.related-topics-box h4 {
    font-size: 14px;
    letter-spacing: 0.5px;
    margin: 0 0 16px;
    color: #0F1C3D;
}
.topic-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.topic-pill {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    font-size: 13px;
    color: #1A1A1A;
}

/* ---- Mobile ---- */
@media (max-width: 900px) {
    .post-layout-row {
        flex-direction: column;
    }
    .post-sidebar {
        position: static;
        width: 100%;
    }
    .related-stories-grid {
        grid-template-columns: 1fr;
    }
    .post-title {
        font-size: 28px;
    }
}