/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --text-color: #333;
    --bg-color: #fff;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --max-width: 1200px;
    --spacing: 2.5rem;
    --page-margin: 2rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Header */
.site-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--page-margin);
}

.site-header .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.site-title:hover {
    opacity: 0.9;
}

/* Navigation */
.site-nav {
    display: flex;
}

.nav-trigger {
    display: none;
}

.menu-icon {
    display: none;
}

.trigger {
    display: flex;
    gap: 1.5rem;
}

.page-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.page-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: var(--spacing) var(--page-margin);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    margin-bottom: 3rem;
}

.page-heading {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
}

/* Homepage Sections */
.what-this-does,
.big-picture {
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.what-this-does h2,
.big-picture h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.lead {
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.chomsky-claim,
.what-we-found {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.chomsky-claim h3,
.what-we-found h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.chomsky-claim blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
}

.chomsky-claim blockquote p {
    margin: 0;
}

.key-finding {
    font-size: 1.1rem;
    padding: 1rem;
    background: white;
    border-left: 4px solid var(--success-color);
    border-radius: 4px;
    margin-top: 1rem;
}

.stat-detail {
    font-size: 0.85rem;
    color: #444;
    margin-top: 0.25rem;
    font-weight: 500;
}

.why-matters {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

/* CTA Section */
.cta-primary {
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 12px;
    text-align: center;
}

.cta-primary h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.cta-primary .link-grid {
    max-width: 600px;
    margin: 0 auto;
}

.cta-primary .link-card {
    background: white;
    border: none;
}

.cta-primary .link-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.cta-text {
    display: inline-block;
    margin-top: 0.5rem;
    color: #1a5f8f;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Summary Stats */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-card.verified {
    border-color: var(--success-color);
    background: linear-gradient(135deg, #f0f9f4 0%, #ffffff 100%);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-card.verified .stat-number {
    color: var(--success-color);
}

.stat-label {
    color: #444;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Key Findings */
.key-findings {
    margin-bottom: 3rem;
}

.key-findings h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.finding-card {
    background: white;
    border-left: 4px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.finding-card.verified {
    border-left-color: var(--success-color);
    background: linear-gradient(90deg, #f0f9f4 0%, #ffffff 100%);
}

.finding-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.claim-text {
    font-style: italic;
    color: #333;
    margin-top: 0.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--secondary-color);
    font-weight: 500;
}

/* Quick Links */
.quick-links {
    margin-bottom: 3rem;
}

.quick-links h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.link-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    display: block;
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: var(--secondary-color);
}

.link-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.link-card p {
    color: #444;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Source Info */
.source-info {
    background: var(--light-bg);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.source-info h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.source-info ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.source-info li {
    margin-bottom: 0.5rem;
}

/* Page Layout */
.page {
    max-width: 900px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.page-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.page-date {
    color: #666;
    font-size: 0.9rem;
}

.page-content {
    line-height: 1.8;
}

.page-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content h3 {
    color: var(--primary-color);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.page-content p {
    margin-bottom: 1rem;
}

.page-content ul, .page-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.page-content code {
    background: var(--light-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.page-content pre {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.page-content pre code {
    background: none;
    padding: 0;
}

.page-content blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
    margin: 1.5rem 0;
    color: #555;
    font-style: italic;
}

/* Report Layout */
.report {
    max-width: 1000px;
    margin: 0 auto;
}

.report-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.report-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.report-date {
    color: #666;
    font-size: 0.9rem;
}

.report-content {
    line-height: 1.8;
}

.report-footer {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 2px solid var(--border-color);
    color: #666;
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0 1rem;
    margin-top: 4rem;
}

.footer-col-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-heading {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    font-weight: 500;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.text a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
    font-weight: 500;
}

.text a:hover {
    color: white;
}

/* Scope Notice */
.scope-notice {
    background: #e3f2fd;
    color: #0d47a1;
    padding: 1rem;
    border-left: 4px solid #1976d2;
    margin-top: 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.scope-notice strong {
    color: #0d47a1;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --page-margin: 1.5rem;
    }
    .nav-trigger:checked ~ .trigger {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }
    
    .trigger {
        display: none;
    }
    
    .menu-icon {
        display: block;
        cursor: pointer;
    }
    
    .page-heading {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .link-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --page-margin: 1rem;
    }
    .summary-stats {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .share-buttons,
    .nav-trigger,
    .site-nav,
    .cta-primary,
    .quick-links {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .report-content {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.9em;
    }
    
    .page-break {
        page-break-before: always;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    blockquote, pre {
        page-break-inside: avoid;
    }
}

/* Share Buttons */
.share-buttons {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--light-bg);
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
}

.share-buttons h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.share-button {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.share-button:hover {
    background: var(--secondary-color);
}

.share-button.twitter {
    background: #1da1f2;
}

.share-button.facebook {
    background: #1877f2;
}

.share-button.linkedin {
    background: #0077b5;
}

.share-button.email {
    background: #666;
}

/* Reading Time */
.reading-time {
    color: #666;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Report Description */
.report-description {
    font-size: 1.1rem;
    color: #555;
    margin-top: 0.5rem;
    font-style: italic;
}

