/**
 * Cohen House — Guide/Blog Post Styles
 * For Phase 5 Guide content
 * Version: 1.0.0
 * Last Updated: 2026-01-12
 * 
 * Mobile-first, performance-optimized
 * CWV-safe, no layout shifts
 */

/* ============================================================================
   Base Guide Layout
   ============================================================================ */

.ch-guide {
    max-width: 100%;
    margin: 0 auto;
    background: #ffffff;
}

.ch-guide-hero {
    background: linear-gradient(135deg, #1a4d6d 0%, #2a5f7f 100%);
    color: #ffffff;
    padding: 3rem 1.5rem 2.5rem;
    text-align: center;
}

.ch-guide-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.ch-guide-title {
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

.ch-guide-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.95;
}

.ch-guide-meta time,
.ch-guide-reading-time,
.ch-guide-author {
    display: inline-flex;
    align-items: center;
}

.ch-guide-meta time::before {
    content: "📅";
    margin-right: 0.5rem;
}

.ch-guide-reading-time::before {
    content: "⏱";
    margin-right: 0.5rem;
}

.ch-guide-author::before {
    content: "✍️";
    margin-right: 0.5rem;
}

/* ============================================================================
   Content Container
   ============================================================================ */

.ch-guide-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

.ch-guide-section {
    margin-bottom: 3rem;
}

.ch-guide-section:last-of-type {
    margin-bottom: 2rem;
}

/* ============================================================================
   Typography
   ============================================================================ */

.ch-guide-content h2 {
    font-size: 1.75rem;
    line-height: 1.3;
    margin: 2.5rem 0 1.25rem;
    color: #1a4d6d;
    font-weight: 700;
    border-bottom: 2px solid #e8f4f8;
    padding-bottom: 0.5rem;
}

.ch-guide-content h3 {
    font-size: 1.35rem;
    line-height: 1.4;
    margin: 2rem 0 1rem;
    color: #2a5f7f;
    font-weight: 600;
}

.ch-guide-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 1.25rem;
    color: #333333;
}

.ch-guide-lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #2a5f7f;
    margin-bottom: 1.5rem;
}

.ch-guide-content a {
    color: #1a4d6d;
    text-decoration: underline;
    text-decoration-color: rgba(26, 77, 109, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s ease;
}

.ch-guide-content a:hover {
    text-decoration-color: #1a4d6d;
}

.ch-guide-content em {
    font-style: italic;
    color: #2a5f7f;
}

.ch-guide-content strong {
    font-weight: 600;
    color: #1a4d6d;
}

/* ============================================================================
   Lists
   ============================================================================ */

.ch-guide-content ul,
.ch-guide-content ol {
    margin: 0 0 1.5rem 1.5rem;
    padding: 0;
}

.ch-guide-content li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

/* ============================================================================
   Activity Items (Things to Do)
   ============================================================================ */

.ch-guide-activity {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e8f4f8;
}

.ch-guide-activity:last-child {
    border-bottom: none;
}

.ch-guide-activity h3 {
    margin-top: 0;
}

/* ============================================================================
   FAQ Section
   ============================================================================ */

.ch-guide-faq {
    background: #f8fbfc;
    padding: 2rem 1.5rem;
    margin: 3rem -1.5rem 2rem;
    border-radius: 8px;
}

.ch-faq-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ch-faq-item:last-child {
    margin-bottom: 0;
}

.ch-faq-item h3 {
    font-size: 1.15rem;
    margin: 0 0 1rem;
    color: #1a4d6d;
    font-weight: 600;
}

.ch-faq-item p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* ============================================================================
   Conclusion/CTA Section
   ============================================================================ */

.ch-guide-conclusion {
    background: #f0f8ff;
    padding: 2rem 1.5rem;
    margin: 3rem -1.5rem 0;
    border-radius: 8px;
    border-left: 4px solid #1a4d6d;
}

.ch-guide-conclusion h2 {
    margin-top: 0;
    border-bottom: none;
}

/* ============================================================================
   Hidden Facts Block (for LLM parsing)
   ============================================================================ */

.ch-llm-facts {
    display: none !important;
}

/* ============================================================================
   Responsive: Tablet (768px+)
   ============================================================================ */

@media (min-width: 768px) {
    .ch-guide-hero {
        padding: 4rem 2rem 3rem;
    }
    
    .ch-guide-title {
        font-size: 2.75rem;
    }
    
    .ch-guide-content {
        padding: 3rem 2rem 5rem;
    }
    
    .ch-guide-content h2 {
        font-size: 2rem;
    }
    
    .ch-guide-content h3 {
        font-size: 1.5rem;
    }
    
    .ch-guide-faq {
        margin-left: -2rem;
        margin-right: -2rem;
    }
    
    .ch-guide-conclusion {
        margin-left: -2rem;
        margin-right: -2rem;
    }
}

/* ============================================================================
   Responsive: Desktop (1024px+)
   ============================================================================ */

@media (min-width: 1024px) {
    .ch-guide-hero {
        padding: 5rem 2rem 4rem;
    }
    
    .ch-guide-title {
        font-size: 3.25rem;
    }
    
    .ch-guide-content {
        padding: 4rem 2rem 6rem;
    }
    
    .ch-guide-faq {
        padding: 3rem 2rem;
    }
    
    .ch-faq-item {
        padding: 2rem;
    }
}

/* ============================================================================
   Print Styles (for deferred CSS loading)
   ============================================================================ */

@media print {
    .ch-guide-hero {
        background: #1a4d6d;
        color: #000000;
    }
    
    .ch-guide-meta,
    .ch-llm-facts {
        display: none !important;
    }
    
    .ch-guide-content a {
        color: #000000;
        text-decoration: underline;
    }
    
    .ch-faq-item,
    .ch-guide-conclusion {
        box-shadow: none;
        border: 1px solid #cccccc;
    }
}

/* ============================================================================
   Accessibility
   ============================================================================ */

@media (prefers-reduced-motion: reduce) {
    .ch-guide-content a {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ch-guide-hero {
        background: #000000;
        border-bottom: 3px solid #ffffff;
    }
    
    .ch-guide-content h2 {
        border-bottom-width: 3px;
        border-bottom-color: #000000;
    }
}

/* ============================================================================
   Performance: Contain paint for better rendering
   ============================================================================ */

.ch-guide-section {
    contain: content;
}

.ch-faq-item {
    contain: layout style paint;
}
