/* ============================================================
   PIPELINE CONTENT STYLES — v4.0.0
   Styles for Zone 1 + Zone 2 + Code tail HTML from pipeline
   Append to existing style.css
   ============================================================ */

/* === Article Wrapper === */
.lh-article-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* === Breadcrumb === */
.lh-breadcrumb {
    font-size: 0.78rem;
    color: var(--lh-text-muted, #999);
    padding: 16px 0 8px;
}
.lh-breadcrumb a { color: var(--lh-text-muted, #999); text-decoration: none; }
.lh-breadcrumb a:hover { color: var(--lh-text-primary, #1a1a1a); }
.lh-breadcrumb-sep { margin: 0 6px; opacity: 0.5; }

/* === Article Meta === */
.lh-article-meta {
    display: flex;
    gap: 16px;
    font-size: 0.82rem;
    color: var(--lh-text-muted, #999);
    margin-bottom: 12px;
}

/* === Disclosure === */
.lh-disclosure {
    font-size: 0.78rem;
    color: #888;
    padding: 12px 16px;
    border: 1px solid var(--lh-border, #e5e5e5);
    border-radius: 6px;
    margin-bottom: 24px;
    line-height: 1.6;
}
.lh-disclosure strong { color: var(--lh-text-primary, #1a1a1a); }
.lh-disclosure a { color: var(--lh-text-primary, #1a1a1a); }

/* === TOC === */
.lh-toc {
    margin-bottom: 28px;
    padding: 14px 18px;
    border-left: 3px solid var(--lh-text-primary, #1a1a1a);
    background: var(--lh-bg-surface, #f7f7f7);
    border-radius: 0 6px 6px 0;
}
.lh-toc-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lh-text-muted, #999);
    margin-bottom: 8px;
}
.lh-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
}
.lh-toc-list li {
    counter-increment: toc;
    padding: 3px 0;
}
.lh-toc-list li::before {
    content: counter(toc, decimal-leading-zero);
    font-size: 0.78rem;
    color: #ccc;
    margin-right: 10px;
    font-weight: 600;
}
.lh-toc-list a {
    color: var(--lh-text-primary, #1a1a1a);
    text-decoration: none;
    font-size: 0.88rem;
}
.lh-toc-list a:hover { text-decoration: underline; }

/* ═══════════════════════════════════
   PIPELINE CONTENT — the_content() styles
   Zone 1 uses inline styles, these enhance it
   ═══════════════════════════════════ */

.lh-article-content {
    line-height: 1.8;
    color: #333;
}

/* Headings */
.lh-article-content h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--lh-text-primary, #1a1a1a);
    margin-bottom: 12px;
}
.lh-article-content h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--lh-text-primary, #1a1a1a);
    margin: 36px 0 14px;
    letter-spacing: -0.01em;
    padding-top: 8px;
}
.lh-article-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--lh-text-primary, #1a1a1a);
    margin: 24px 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--lh-border, #e5e5e5);
}
.lh-article-content p {
    margin-bottom: 16px;
    font-size: 0.95rem;
}

/* Images from pipeline */
.lh-article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 16px 0;
}
.lh-article-content figure {
    margin: 16px 0;
}
.lh-article-content figcaption {
    font-size: 0.72rem;
    color: var(--lh-text-muted, #999);
    text-align: center;
    margin-top: 4px;
}

/* Tables (comparison + decision + pros/cons from pipeline) */
.lh-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.88rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--lh-border, #e5e5e5);
}
.lh-article-content th {
    background: var(--lh-text-primary, #1a1a1a);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.lh-article-content td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--lh-border, #e5e5e5);
    vertical-align: top;
}
.lh-article-content tr:nth-child(even) {
    background: var(--lh-bg-surface, #f7f7f7);
}

/* Lists */
.lh-article-content ul, .lh-article-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}
.lh-article-content li {
    margin-bottom: 6px;
    font-size: 0.95rem;
}

/* FAQ details/summary (from pipeline code_tail) */
.lh-article-content details {
    border: 1px solid var(--lh-border, #e5e5e5);
    border-radius: 6px;
    margin-bottom: 6px;
    overflow: hidden;
}
.lh-article-content details summary {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    background: var(--lh-bg-surface, #f7f7f7);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.lh-article-content details summary::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--lh-text-muted, #999);
    transition: transform 0.2s;
}
.lh-article-content details[open] summary::after {
    transform: rotate(45deg);
}
.lh-article-content details summary::-webkit-details-marker { display: none; }
.lh-article-content details p {
    padding: 12px 16px;
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #555;
}

/* CTA buttons from pipeline (inline styles, enhance hover) */
.lh-article-content a[rel*="nofollow"] {
    transition: opacity 0.15s, transform 0.15s;
}
.lh-article-content a[rel*="nofollow"]:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Comments in pipeline HTML */
.lh-article-content [style*="text-align:center"] {
    margin: 20px 0;
}

/* ═══════════════════════════════════
   MOBILE STICKY CTA BAR
   ═══════════════════════════════════ */
.lh-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px 16px;
    background: var(--lh-text-primary, #1a1a1a);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.lh-sticky-cta.visible {
    transform: translateY(0);
}
.lh-sticky-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: #fff;
    color: var(--lh-text-primary, #1a1a1a);
    font-size: 0.92rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
}
.lh-sticky-arrow { font-size: 1.1rem; }

/* === Reading Progress Bar === */
.lh-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--lh-text-primary, #1a1a1a);
    z-index: 9999;
    width: 0;
    transition: width 0.1s ease;
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 767px) {
    .lh-article-wrap { padding: 0 16px 100px; }
    .lh-article-content h1 { font-size: 1.4rem; }
    .lh-article-content h2 { font-size: 1.15rem; }
    .lh-article-content h3 { font-size: 0.95rem; }
    
    /* Pipeline inline table scroll */
    .lh-article-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Pipeline buyer photos: 2 columns on mobile */
    .lh-article-content [style*="grid-template-columns"] {
        grid-template-columns: 1fr 1fr !important;
    }
    
    /* Sticky bar padding */
    body.has-sticky-bar {
        padding-bottom: 68px;
    }
}

/* Desktop: hide sticky CTA */
@media (min-width: 768px) {
    .lh-sticky-cta { display: none; }
}

/* Print */
@media print {
    .lh-sticky-cta, .lh-progress-bar { display: none !important; }
    .lh-article-wrap { max-width: 100%; padding: 0; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}
