/* ============================================
   3-Column Post Layout — Ahrefs-style
   Left sticky TOC | Center content | Right sticky Author+CTA
   ============================================ */

/* Hide feature image in split post header */
.split .feature-image-wrap {
    display: none !important;
}
.split.noimg {
    /* already no image — keep styles intact */
}

/* Override split grid to remove image column */
.split header .grid {
    grid-template-columns: 1fr !important;
}

/* ---- 3-col grid ---- */
.post-three-col {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 240px;
    column-gap: 48px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px;
    align-items: start;
}

/* ---- Left sidebar: TOC ---- */
.post-sidebar-left {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-width: none;
}
.post-sidebar-left::-webkit-scrollbar { display: none; }

.post-toc-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-meta, #888);
    margin: 0 0 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-border, #e5e7eb);
}

.post-toc-nav a {
    display: block;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--color-meta, #888);
    padding: 5px 0 5px 12px;
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
}

.post-toc-nav a:hover,
.post-toc-nav a.is-active {
    color: var(--color-accent, #e06000);
    border-left-color: var(--color-accent, #e06000);
}

.post-toc-nav .toc-h3 a {
    padding-left: 24px;
    font-size: 0.8rem;
    opacity: 0.85;
}

/* ---- Right sidebar: Author + CTA ---- */
.post-sidebar-right {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    scrollbar-width: none;
}
.post-sidebar-right::-webkit-scrollbar { display: none; }

.post-author-card {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border, #e5e7eb);
}

.post-author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.post-author-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-heading, #111);
    margin: 0 0 6px;
    line-height: 1.3;
}

.post-author-bio {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--color-meta, #888);
    margin: 0 0 10px;
}

.post-author-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.post-author-links a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-meta, #888);
    text-decoration: none;
    transition: color 0.15s;
}
.post-author-links a:hover {
    color: var(--color-heading, #111);
}

/* CTA */
.post-sidebar-cta {
    background: var(--color-secondary, #f9fafb);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
}

.post-sidebar-cta-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-heading, #111);
    margin: 0 0 8px;
    line-height: 1.3;
}

.post-sidebar-cta-text {
    font-size: 0.78rem;
    color: var(--color-meta, #888);
    line-height: 1.55;
    margin: 0 0 14px;
}

.post-sidebar-cta-btn {
    display: block;
    background: var(--color-accent, #e06000);
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: 100px;
    text-decoration: none;
    text-align: center;
    transition: opacity 0.15s;
}
.post-sidebar-cta-btn:hover {
    opacity: 0.82;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
    .post-three-col {
        grid-template-columns: 180px minmax(0, 1fr);
    }
    .post-sidebar-right { display: none; }
}

@media (max-width: 768px) {
    .post-three-col {
        grid-template-columns: 1fr;
        padding: 24px 16px;
    }
    .post-sidebar-left { display: none; }
}
