/* Whitepaper Page Styles */

/* Whitepaper Header - clean white design */
.whitepaper-header {
    background: white;
    padding: 120px 40px 40px;
    text-align: center;
}

.whitepaper-header .container,
.whitepaper-header > div:first-child {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.whitepaper-category {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

/* Title with orange/black alternating words via JS */
.whitepaper h1,
.whitepaper .whitepaper-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 auto 24px;
    color: var(--primary-dark, #1a1a2e);
    max-width: 900px;
    padding: 0 20px;
}

.whitepaper h1 .word-orange,
.whitepaper .whitepaper-title .word-orange {
    color: var(--primary-orange, #f97316);
}

.whitepaper h1 .word-black,
.whitepaper .whitepaper-title .word-black {
    color: var(--primary-dark, #1a1a2e);
}

.whitepaper .subtitle {
    font-size: 1.25rem;
    color: #6b7280;
    max-width: 700px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.whitepaper-meta {
    display: none;
}

/* Whitepaper Content */
.whitepaper-content,
.whitepaper article {
    padding: 80px 0;
    background: white;
}

.whitepaper-body,
.whitepaper section {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: #374151;
    padding: 0 20px;
}

.whitepaper h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 56px 0 24px;
    line-height: 1.3;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.whitepaper h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 40px 0 20px;
    line-height: 1.4;
}

.whitepaper h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 32px 0 16px;
    line-height: 1.4;
}

.whitepaper p {
    margin-bottom: 24px;
    text-align: justify;
}

.whitepaper ul,
.whitepaper ol {
    margin-bottom: 24px;
    padding-left: 28px;
}

.whitepaper li {
    margin-bottom: 12px;
}

.whitepaper strong {
    font-weight: 600;
    color: #1f2937;
}

.whitepaper a {
    color: var(--primary-orange);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.whitepaper a:hover {
    border-bottom-color: var(--primary-orange);
}

/* Executive Summary */
.executive-summary,
#executive-summary {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px;
    margin: 0 0 48px;
}

.executive-summary h2,
#executive-summary h2 {
    color: #1a1a2e;
    margin-top: 0;
    border-bottom: none;
    font-size: 1.75rem;
}

.summary-box {
    background: white;
    border-radius: 12px;
    padding: 24px 32px;
    margin-top: 24px;
    border: 1px solid #e2e8f0;
}

.key-findings {
    list-style: none;
    padding-left: 0;
    margin: 16px 0 0;
}

.key-findings li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.key-findings li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: bold;
}

/* Finding Boxes */
.finding-box {
    background: #fefce8;
    border: 1px solid #fef08a;
    border-radius: 12px;
    padding: 24px 32px;
    margin: 24px 0;
}

.finding-box h3 {
    color: #a16207;
    margin-top: 0;
    font-size: 1.25rem;
}

/* Data Tables */
.whitepaper table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-size: 0.95rem;
}

.whitepaper th,
.whitepaper td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.whitepaper th {
    background: #f8fafc;
    font-weight: 600;
    color: #1a1a2e;
    border-bottom: 2px solid #e5e7eb;
}

.whitepaper tr:hover td {
    background: #f8fafc;
}

/* Blockquotes / Citations */
.whitepaper blockquote {
    border-left: 4px solid var(--primary-orange);
    padding: 20px 32px;
    margin: 32px 0;
    background: #fef7f0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
}

.whitepaper blockquote p {
    text-align: left;
    margin-bottom: 12px;
}

.whitepaper blockquote cite {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: normal;
    font-weight: 500;
}

.whitepaper blockquote cite::before {
    content: '— ';
}

/* Code Examples */
.whitepaper pre {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 24px;
    overflow-x: auto;
    margin: 32px 0;
    color: #e2e8f0;
    font-size: 0.875rem;
    line-height: 1.6;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.whitepaper code {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #1a1a2e;
}

.whitepaper pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

/* Methodology Section */
#methodology {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 32px 40px;
    margin: 48px 0;
}

#methodology h2 {
    color: #0369a1;
    margin-top: 0;
    border-bottom: none;
}

/* Recommendations Section */
#recommendations {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 32px 40px;
    margin: 48px 0;
}

#recommendations h2 {
    color: #059669;
    margin-top: 0;
    border-bottom: none;
}

/* References Section */
#references,
.references {
    background: #f8fafc;
    border-radius: 12px;
    padding: 32px 40px;
    margin: 48px 0;
}

#references h2,
.references h2 {
    margin-top: 0;
    border-bottom: none;
}

#references ol,
.references ol {
    padding-left: 24px;
}

#references li,
.references li {
    font-size: 0.95rem;
    color: #6b7280;
    margin-bottom: 8px;
}

/* CTA Section */
.whitepaper .cta-box,
.whitepaper .cta-section {
    background: linear-gradient(135deg, var(--primary-orange) 0%, #ff6b35 100%);
    color: white;
    padding: 48px;
    border-radius: 16px;
    text-align: center;
    margin: 56px 0;
}

.whitepaper .cta-box h2,
.whitepaper .cta-box h3 {
    margin: 0 0 16px;
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
    border-bottom: none;
}

.whitepaper .cta-box p {
    margin: 0 0 28px;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
}

.whitepaper .cta-box .btn {
    display: inline-block;
    background: white;
    color: var(--primary-orange);
    padding: 14px 36px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: none;
}

.whitepaper .cta-box .btn:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
}

/* Download Button */
.download-section {
    text-align: center;
    padding: 40px;
    background: #f8fafc;
    border-radius: 12px;
    margin: 48px 0;
}

.download-section .btn-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #1a1a2e;
    color: white;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.download-section .btn-download:hover {
    background: #2d3748;
    transform: translateY(-2px);
}

/* Footer */
.whitepaper footer {
    max-width: 800px;
    margin: 56px auto 0;
    padding: 32px 20px;
    border-top: 2px solid #e5e7eb;
    font-size: 0.875rem;
    color: #6b7280;
    text-align: center;
}

.whitepaper footer a {
    color: var(--primary-orange);
}

/* Responsive Design */
@media (max-width: 768px) {
    .whitepaper-header {
        padding: 100px 20px 40px;
    }

    .whitepaper h1,
    .whitepaper .whitepaper-title {
        font-size: 2rem;
    }

    .whitepaper-content,
    .whitepaper article {
        padding: 60px 0;
    }

    .whitepaper-body,
    .whitepaper section {
        font-size: 1rem;
        line-height: 1.7;
    }

    .whitepaper h2 {
        font-size: 1.5rem;
        margin: 40px 0 20px;
    }

    .whitepaper h3 {
        font-size: 1.25rem;
    }

    .whitepaper p {
        text-align: left;
    }

    .executive-summary,
    #methodology,
    #recommendations,
    #references,
    .finding-box {
        padding: 24px;
        margin: 32px 0;
    }

    .whitepaper .cta-box {
        padding: 32px 24px;
    }
}

@media (max-width: 480px) {
    .whitepaper h1,
    .whitepaper .whitepaper-title {
        font-size: 1.875rem;
    }

    .whitepaper pre {
        font-size: 0.75rem;
        padding: 16px;
    }

    .whitepaper .cta-box h2,
    .whitepaper .cta-box h3 {
        font-size: 1.5rem;
    }
}
