        :root {
            /* Brand Colors */
            --color-primary: #0D3B3C;
            --color-secondary: #46B3A9;
            --color-accent: #F0C75E;
            --color-background: #F9F8F3;
            --color-text: #2E2E2E;

            /* Derived Colors */
            --color-primary-dark: #0A2E2F;
            --color-secondary-dark: #3A9A91;
            --color-background-dark: #F5F4EF;
            --color-text-light: #5A5A5A;

            /* Typography - Dual Typeface System */
            --font-serif: 'Crimson Text', Georgia, 'Times New Roman', serif;
            --font-sans: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI',
                         'Roboto', 'Helvetica Neue', Arial, sans-serif;
            --font-weight-regular: 400;
            --font-weight-semibold: 600;
            --font-weight-bold: 700;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            overflow-x: hidden;
        }

        body {
            font-family: var(--font-serif);
            background: var(--color-background);
            min-height: 100vh;
            line-height: 1.6;
            color: var(--color-primary);
            font-size: 18px;
            font-weight: var(--font-weight-regular);
            overflow-x: hidden;
        }

        /* ============================================================================
           TYPOGRAPHY - Dual Typeface System
           ============================================================================ */

        /* Crimson Text (Serif) - Content & Reading */
        p,
        .message-content,
        .step-content,
        .explainer p,
        .dataset-description,
        article,
        li {
            font-family: var(--font-serif);
            font-weight: var(--font-weight-regular);
        }

        /* Source Sans Pro (Sans-Serif) - UI & Navigation */
        nav,
        .nav-link,
        .logo,
        button,
        .chat-submit,
        .chat-input,
        .badge,
        .cta-button,
        .dropdown-item,
        th,
        td,
        .stat-label,
        .stat-number,
        input,
        select,
        label {
            font-family: var(--font-sans);
        }

        /* Font Weight Guidelines */
        .nav-link,
        .logo,
        button,
        .badge,
        th,
        .stat-label {
            font-weight: var(--font-weight-semibold);
        }

        h1, h2, h3, h4, h5, h6,
        .hero-title,
        .stat-number {
            font-weight: var(--font-weight-bold);
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            background: #F9F8F3;
            min-height: 100vh;
        }

        /* Navigation - Dark Green Theme */
        nav {
            background: rgba(26, 40, 37, 0.98);
            backdrop-filter: blur(10px);
            color: #e8e4dc;
            padding: 0;
            border-bottom: 1px solid rgba(70, 179, 169, 0.3);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .nav-content {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            align-items: center;
        }

        .logo {
            padding: 15px 25px;
            font-size: 1.5rem;
            font-weight: 600;
            color: #46B3A9;
            text-decoration: none;
            border-right: 1px solid rgba(70, 179, 169, 0.3);
        }

        .nav-menu {
            display: flex;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .nav-item {
            position: relative;
        }

        .nav-link {
            display: block;
            padding: 18px 22px;
            color: #e8e4dc;
            text-decoration: none;
            font-size: 1rem;
            transition: color 0.3s ease;
            cursor: pointer;
        }

        .nav-link:hover {
            color: #46B3A9;
        }

        /* Dropdown */
        .dropdown {
            position: relative;
        }

        /* Dropdown menu - Dark theme */
        .dropdown-menu {
            display: none;
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(26, 40, 37, 0.98);
            min-width: 220px;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
            z-index: 2000;
            border-radius: 0 0 8px 8px;
            padding: 0.5rem 0;
            border: 1px solid rgba(70, 179, 169, 0.3);
            border-top: none;
            margin-top: 0;
        }

        .dropdown-item {
            display: block;
            padding: 12px 20px;
            color: #e8e4dc;
            text-decoration: none;
            white-space: nowrap;
            transition: color 0.2s ease;
            font-size: 0.95rem;
            font-family: var(--font-sans);
        }

        .dropdown-item:hover {
            color: #46B3A9;
        }

        .dropdown-divider {
            height: 1px;
            background: rgba(70, 179, 169, 0.2);
            margin: 0.5rem 0;
        }

        /* Show dropdown on hover */
        .dropdown:hover .dropdown-menu {
            display: block;
            animation: fadeIn 0.2s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateX(-50%) translateY(-8px);
            }
            to {
                opacity: 1;
                transform: translateX(-50%) translateY(0);
            }
        }

        /* Header */
        header {
            background: linear-gradient(135deg, #F5F4EF 0%, #E8E7E0 100%);
            color: #0D3B3C;
            padding: 4rem 40px;
            text-align: center;
        }

        h1 {
            font-size: 3.5rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: #0D3B3C;
        }

        .subtitle {
            font-size: 1.4rem;
            color: #5A5A5A;
            font-style: italic;
        }

        /* Content */
        .content {
            padding: 2rem 3rem; /* Added horizontal padding for better spacing */
            max-width: 900px; /* Reduced from 1200px for optimal line length */
            margin: 0 auto;
        }

        .page {
            display: none;
        }

        .page.active {
            display: block;
        }

        /* Home Page */
        .explainer {
            background: #F5F4EF;
            border-radius: 12px;
            padding: 30px;
            margin-bottom: 40px;
        }

        .explainer h2 {
            color: #0D3B3C;
            margin-bottom: 15px;
        }

        .explainer p {
            color: #2E2E2E;
            line-height: 1.7;
            margin-bottom: 10px;
            font-size: 1.05rem;
        }


        /* Loading */
        .loading {
            text-align: center;
            padding: 20px;
            color: #5A5A5A;
        }

        /* Thinking Indicator */
        .thinking-indicator {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 15px;
            color: #46B3A9;
            font-weight: 500;
            font-size: 1rem;
        }

        /* Badges */
        .badge {
            display: inline-block;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 0.85rem;
            font-weight: 600;
        }

        .badge-ctd { background: #e8f5e9; color: #388e3c; }
        .badge-dgidb { background: #e0f2f1; color: #00695c; }
        .badge-exposomeexplorer { background: #e1f5fe; color: #0277bd; }
        .badge-pharmgkb { background: #E8E7E0; color: #7b1fa2; }
        .badge-bioplanet { background: #fff3e0; color: #e65100; }
        .badge-gtex { background: #fce4ec; color: #c2185b; }
        .badge-opentargets { background: #e8eaf6; color: #3949ab; }
        .badge-t3db { background: #fff9c4; color: #f57c00; }

        /* Dataset Pages */
        .dataset-header {
            background: linear-gradient(135deg, #F5F4EF 0%, #E8E7E0 100%);
            color: #0D3B3C;
            padding: 40px;
            border-radius: 10px;
            margin-bottom: 30px;
            border: 1px solid #D8D7CF;
        }

        .dataset-header h2 {
            font-size: 2rem;
            margin-bottom: 10px;
        }

        .dataset-description {
            opacity: 0.95;
            margin-bottom: 15px;
        }

        .dataset-link {
            color: #46B3A9;
            text-decoration: none;
            border-bottom: 1px solid #46B3A9;
        }

        .dataset-link:hover {
            border-bottom-color: #3A9A91;
        }

        .examples-section {
            margin-top: 30px;
        }

        .example-query {
            background: #F5F4EF;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 10px;
            cursor: pointer;
            transition: all 0.2s;
            border: 1px solid #D8D7CF;
        }

        .example-query:hover {
            background: #E8E7E0;
            border-color: #46B3A9;
        }

        /* GTEx Figure */
        .gtex-figure {
            background: #F9F8F3;
            border: 1px solid #D8D7CF;
            border-radius: 12px;
            padding: 20px;
            margin: 30px 0;
            text-align: center;
        }

        .gtex-diagram {
            max-width: 100%;
            height: auto;
            border-radius: 8px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        .figure-citation {
            margin-top: 15px;
            font-size: 0.9rem;
            color: #5A5A5A;
            font-style: italic;
            line-height: 1.6;
        }

        .citation-link {
            color: #46B3A9;
            text-decoration: none;
            font-style: normal;
        }

        .citation-link:hover {
            border-bottom: 1px solid #46B3A9;
        }

        /* Dataset Integration Guide */
        .integration-guide {
            background: #F9F8F3;
            border: 2px solid #46B3A9;
            border-radius: 10px;
            padding: 30px;
            margin: 40px 0;
        }

        .integration-guide h2 {
            color: #46B3A9;
            border-bottom: 2px solid #46B3A9;
            padding-bottom: 10px;
            margin-bottom: 20px;
        }

        .integration-guide h3 {
            color: #0D3B3C;
            margin-top: 25px;
            margin-bottom: 15px;
        }

        .integration-guide h4 {
            color: #0D3B3C;
            margin-top: 20px;
            margin-bottom: 10px;
        }

        .integration-guide code {
            background: #F5F4EF;
            padding: 2px 6px;
            border-radius: 3px;
            font-family: 'Monaco', 'Menlo', monospace;
            font-size: 0.9em;
            color: #d53f8c;
        }

        .integration-guide pre {
            background: #0D3B3C;
            color: #D8D7CF;
            padding: 20px;
            border-radius: 8px;
            overflow-x: auto;
            margin: 15px 0;
        }

        .integration-guide pre code {
            background: transparent;
            color: #D8D7CF;
            padding: 0;
        }

        .integration-guide table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
        }

        .integration-guide th,
        .integration-guide td {
            border: 1px solid #D8D7CF;
            padding: 12px;
            text-align: left;
        }

        .integration-guide th {
            background: #E8E7E0;
            font-weight: 600;
        }

        .integration-guide ul,
        .integration-guide ol {
            margin: 15px 0;
            padding-left: 30px;
        }

        .integration-guide li {
            margin: 8px 0;
            line-height: 1.6;
        }

        .integration-guide strong {
            color: #0D3B3C;
        }

        .integration-guide em {
            color: #2E2E2E;
        }

        .integration-guide a {
            color: #46B3A9;
            text-decoration: none;
            border-bottom: 1px solid transparent;
            transition: border-color 0.3s ease;
        }

        .integration-guide a:hover {
            border-bottom-color: #46B3A9;
        }

        /* Report Page - REMOVED: Now using shared markdown-content.css */

        /* Query Results */
        .results-container {
            margin-top: 20px;
        }

        .sql-display {
            background: #0D3B3C;
            color: #fff;
            padding: 15px;
            border-radius: 8px;
            font-family: 'Courier New', monospace;
            overflow-x: auto;
            margin-bottom: 20px;
        }

        .sql-code {
            background: #0D3B3C;
            color: #68d391;
            padding: 10px;
            border-radius: 4px;
            font-family: 'Courier New', monospace;
            overflow-x: auto;
            font-size: 0.9rem;
            margin: 5px 0;
        }

        /* Reasoning Chain Styles */
        .reasoning-chain {
            background: #F5F4EF;
            border: 2px solid #D8D7CF;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 20px;
        }

        .reasoning-header {
            font-size: 1.1rem;
            font-weight: 700;
            color: #0D3B3C;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid #C8C7BF;
        }

        .reasoning-step {
            display: flex;
            gap: 12px;
            margin-bottom: 15px;
            padding: 12px;
            background: #F9F8F3;
        }

        .reasoning-step.highlight {
            background: #F9F8F3;
            border: 2px solid #D8D7CF;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            display: block;
            border-radius: 8px;
            border-left: 3px solid #46B3A9;
        }

        .step-icon {
            font-size: 1.3rem;
            flex-shrink: 0;
            width: 30px;
            text-align: center;
        }

        .step-content {
            flex: 1;
        }

        .step-message {
            font-weight: 600;
            color: #0D3B3C;
            margin-bottom: 5px;
        }

        .step-details {
            font-size: 0.9rem;
            color: #5A5A5A;
            margin-top: 5px;
        }

        .sql-collapsible {
            margin-top: 10px;
            background: #E8E7E0;
            border-radius: 6px;
            padding: 8px 12px;
        }

        .sql-collapsible summary {
            cursor: pointer;
            font-weight: 600;
            color: #46B3A9;
            user-select: none;
            list-style: none;
            display: flex;
            align-items: center;
        }

        .sql-collapsible summary::-webkit-details-marker {
            display: none;
        }

        .sql-collapsible summary::before {
            content: '▶';
            display: inline-block;
            margin-right: 8px;
            transition: transform 0.2s;
            font-size: 0.8rem;
        }

        .sql-collapsible[open] summary::before {
            transform: rotate(90deg);
        }

        .sql-collapsible summary:hover {
            color: #3A9A91;
        }

        .results-table {
            overflow-x: auto;
            border: 1px solid #D8D7CF;
            border-radius: 8px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        th {
            background: #0D3B3C;
            color: #F9F8F3;
            padding: 12px;
            text-align: left;
            font-weight: 600;
        }

        td {
            padding: 10px 12px;
            border-bottom: 1px solid #D8D7CF;
        }

        tr:hover {
            background: #F5F4EF;
        }

        .error {
            background: #fff5f5;
            border: 1px solid #feb2b2;
            color: #c53030;
            padding: 15px;
            border-radius: 8px;
            margin-top: 20px;
        }

        /* Step-by-step progress display */
        .step {
            margin: 10px 0;
            padding: 12px;
            background: #f8fafc;
            border-left: 3px solid #46B3A9;
            border-radius: 4px;
            transition: all 0.2s;
        }

        .step.highlight {
            background: #F9F8F3;
            border: 2px solid #D8D7CF;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            border-radius: 8px;
            border-left: 3px solid #46B3A9;
        }

        .step-title {
            font-weight: 600;
            color: #0D3B3C;
            margin-bottom: 8px;
            font-size: 0.95rem;
        }

        .step-content {
            color: #2E2E2E;
            font-size: 14px;
            line-height: 1.6;
        }

        .step-content strong {
            color: #2E2E2E;
        }

        /* Essay and Whitepaper Pages - REMOVED: Now using shared markdown-content.css */

        /* Landing Page Styles */
        .hero-section {
            background: linear-gradient(135deg, #F5F4EF 0%, #E8E7E0 100%);
            padding: 4rem 2rem;
            text-align: center;
        }

        .hero-content {
            max-width: 800px; /* Reduced from 1000px for better readability */
            margin: 0 auto;
        }

        .hero-title {
            font-size: 3rem;
            font-weight: 600;
            color: #0D3B3C; /* Dark text for high contrast on light background */
            margin-bottom: 1rem;
            line-height: 1.3;
        }

        .hero-subtitle {
            font-size: 1.5rem;
            color: #0D3B3C; /* Changed from #5A5A5A to dark text for better contrast */
            font-style: italic;
        }

        /* Four Rotations Section */
        .rotations-section {
            padding: 4rem 2rem;
            background: #F9F8F3;
        }

        .rotations-container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .rotations-arrow-line {
            position: relative;
            height: 80px;
            margin-bottom: 2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .rotations-arrow-line::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 2px;
            background: #0D3B3C;
            transform: translateY(-50%);
        }

        .rotations-arrow-line::after {
            content: '▶';
            position: absolute;
            right: -10px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 1.5rem;
            color: #0D3B3C;
        }

        .arrow-label-left,
        .arrow-label-right {
            background: #F9F8F3;
            padding: 0.5rem 1rem;
            font-weight: 600;
            color: #0D3B3C;
            z-index: 1;
            font-size: 1.1rem;
        }

        .arrow-label-right {
            text-align: right;
        }

        .rotations-circles {
            display: flex;
            justify-content: space-around;
            margin-bottom: 3rem;
            position: relative;
        }

        .rotations-circles::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 10%;
            right: 10%;
            height: 2px;
            background: #C8C7BF;
            transform: translateY(-50%);
            z-index: 0;
        }

        .rotation-circle {
            position: relative;
            z-index: 1;
        }

        .circle-graphic {
            width: 120px;
            height: 120px;
            border: 3px solid #0D3B3C;
            border-radius: 50%;
            background: #F9F8F3;
            position: relative;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

        .circle-graphic::before {
            content: '↻';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 3rem;
            color: #46B3A9;
        }

        .rotations-boxes {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 2rem;
            margin-top: 2rem;
        }

        .rotation-box {
            background: #F5F4EF;
            padding: 2rem 1.5rem;
            border-radius: 8px;
            border-left: 4px solid #46B3A9;
        }

        .rotation-box h3 {
            font-size: 1.5rem;
            font-weight: 600;
            color: #0D3B3C;
            margin-bottom: 1rem;
        }

        .rotation-box p {
            color: #2E2E2E;
            line-height: 1.6;
            font-size: 1.05rem;
            max-width: 35ch; /* Limit line length to ~35 characters for readability */
        }

        .rotations-footer {
            text-align: center;
            margin-top: 3rem;
            padding: 2rem;
        }

        .rotations-footer p {
            font-size: 1.2rem;
            color: #5A5A5A;
            font-style: italic;
        }

        /* CTA Section */
        .cta-section {
            background: linear-gradient(135deg, #0D3B3C 0%, #0D3B3C 100%);
            padding: 4rem 2rem;
        }

        .cta-container {
            max-width: 800px; /* Reduced from 1000px for better readability */
            margin: 0 auto;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 3rem;
        }

        .cta-box {
            text-align: center;
            color: #F9F8F3;
        }

        .cta-box h2 {
            font-size: 2rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: #F9F8F3;
        }

        .cta-box p {
            font-size: 1.15rem;
            margin-bottom: 2rem;
            color: #E8E7E0;
        }

        .cta-buttons {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
        }

        .cta-button {
            padding: 1rem 2rem;
            border-radius: 5px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            display: inline-block;
        }

        .cta-button.primary {
            background: #46B3A9;
            color: #F9F8F3;
        }

        .cta-button.primary:hover {
            background: #3A9A91;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        }

        .cta-button.secondary {
            background: transparent;
            color: #F9F8F3;
            border: 2px solid #F9F8F3;
        }

        .cta-button.secondary:hover {
            background: #F9F8F3;
            color: #0D3B3C;
            transform: translateY(-2px);
        }

        /* Vision Section */
        .vision-section {
            padding: 4rem 2rem;
            background: #F5F4EF;
        }

        .vision-content {
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
        }

        .vision-content h2 {
            font-size: 2.5rem;
            font-weight: 600;
            color: #0D3B3C;
            margin-bottom: 2rem;
        }

        .vision-content p {
            font-size: 1.2rem;
            line-height: 1.8;
            color: #2E2E2E;
            margin-bottom: 1.5rem;
        }

        .vision-content strong {
            color: #0D3B3C;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2rem;
            }

            .hero-subtitle {
                font-size: 1.2rem;
            }

            .rotations-boxes {
                grid-template-columns: 1fr;
            }

            .cta-container {
                grid-template-columns: 1fr;
            }

            .circle-graphic {
                width: 80px;
                height: 80px;
            }

            .circle-graphic::before {
                font-size: 2rem;
            }
        }

        /* Dropdown section styling */
        .dropdown-section-title {
            padding: 0.5rem 1.5rem;
            font-size: 0.85rem;
            font-weight: 700;
            color: #5A5A5A;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

/* ============================================================================
   DATA INTRODUCTION PAGE STYLES
   ============================================================================ */

/* Stats Grid - 4-column responsive grid for metrics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.stat-card {
    background: #F5F4EF;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #D8D7CF;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #0D3B3C;
    margin-bottom: 0.5rem;
}

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

/* Dataset Matrix Table */
.dataset-table-section {
    margin: 3rem 0;
}

.table-description {
    color: #2E2E2E;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 1.5rem 0;
}

.dataset-matrix {
    width: 100%;
    border-collapse: collapse;
    background: #F9F8F3;
    font-size: 0.95rem;
}

.dataset-matrix thead th {
    background: #0D3B3C;
    color: #F9F8F3;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 2px solid #1a252f;
}

.dataset-matrix tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #D8D7CF;
}

.dataset-matrix tbody tr:hover {
    background: #F5F4EF;
}

.dataset-row-ingested {
    background: #F9F8F3;
}

.dataset-row-planned {
    background: #F5F4EF;
    opacity: 0.7;
}

.dataset-name {
    font-weight: 600;
    min-width: 200px;
}

.dataset-name a {
    color: #46B3A9;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.dataset-name a:hover {
    border-bottom-color: #46B3A9;
}

.check {
    text-align: center;
    color: #46B3A9;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-ingested {
    background: #d4edda;
    color: #155724;
}

.status-planned {
    background: #F5F4EF;
    color: #5A5A5A;
    border: 1px solid #D8D7CF;
}

.badge-platform {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #F9F8F3;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Platform Overview Section */
.data-platform-overview {
    margin: 2rem 0;
}

.data-platform-overview h3 {
    color: #0D3B3C;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.data-platform-overview p {
    color: #2E2E2E;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Production Status Section */
.production-status {
    margin: 3rem 0;
    padding: 2rem;
    background: #F5F4EF;
    border-radius: 8px;
    border-left: 4px solid #46B3A9;
}

.production-status h3 {
    color: #0D3B3C;
    margin-bottom: 1rem;
}

.production-status code {
    background: #0D3B3C;
    color: #68d391;
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.9em;
}

.dataset-list {
    list-style: none;
    padding-left: 0;
}

.dataset-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #D8D7CF;
}

.dataset-list li:last-child {
    border-bottom: none;
}

/* Category Legend */
.data-categories {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #F5F4EF;
    border-radius: 8px;
}

.data-categories h4 {
    margin-bottom: 1rem;
    color: #0D3B3C;
    font-size: 1.2rem;
}

.category-legend {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.legend-icon {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    flex-shrink: 0;
}

.icon-epidemiology { background: #46B3A9; }
.icon-toxicant { background: #e74c3c; }
.icon-disease { background: #f39c12; }
.icon-targets { background: #9b59b6; }
.icon-chemistry { background: #1abc9c; }

/* Integration Examples Section */
.integration-examples {
    margin: 3rem 0;
}

.integration-examples h3 {
    color: #0D3B3C;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.code-block {
    margin: 1.5rem 0;
}

.code-block pre {
    background: #0D3B3C;
    color: #D8D7CF;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.code-block code {
    background: transparent;
    color: inherit;
}

/* Markdown Content Improvements */
#project-content h1 {
    color: #0D3B3C;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid #46B3A9;
    padding-bottom: 0.5rem;
}

#project-content h2 {
    color: #0D3B3C;
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

#project-content h3 {
    color: #0D3B3C;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

#project-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #2E2E2E;
}

#project-content ul, #project-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

#project-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

#project-content pre {
    background: #0D3B3C;
    color: #D8D7CF;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

#project-content code {
    background: #F5F4EF;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.9em;
    color: #c7254e;
}

#project-content pre code {
    background: transparent;
    padding: 0;
    color: #D8D7CF;
}

#project-content a {
    color: #46B3A9;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

#project-content a:hover {
    border-bottom-color: #46B3A9;
}

#project-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #F9F8F3;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#project-content table th {
    background: #0D3B3C;
    color: #F9F8F3;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

#project-content table td {
    padding: 12px;
    border-bottom: 1px solid #D8D7CF;
}

#project-content table tr:hover {
    background: #F5F4EF;
}

#project-content blockquote {
    border-left: 4px solid #46B3A9;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #2E2E2E;
    font-style: italic;
}

/* Responsive Design for Data Tables */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .table-responsive {
        overflow-x: scroll;
    }
    
    .dataset-matrix {
        font-size: 0.85rem;
    }
    
    .dataset-matrix thead th,
    .dataset-matrix tbody td {
        padding: 8px 12px;
    }
}

/* Markdown Table Styling */
.markdown-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #F9F8F3;
    border: 1px solid #D8D7CF;
    font-size: 16px;
}

.markdown-table thead {
    background: #F5F4EF;
}

.markdown-table th {
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #C8C7BF;
    color: #0D3B3C;
}

.markdown-table td {
    padding: 10px 15px;
    border-bottom: 1px solid #D8D7CF;
}

.markdown-table tbody tr:hover {
    background: #F5F4EF;
}

.markdown-table tbody tr:last-child td {
    border-bottom: none;
}

/* ========================================
   CHAT INTERFACE
   ======================================== */

/* Chat Panel */
.chat-panel {
  position: fixed;
  top: 0;
  right: -420px; /* Hidden by default */
  width: 420px;
  height: 100vh;
  background: rgba(13, 59, 60, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(70, 179, 169, 0.2);
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.chat-panel.visible {
  right: 0;
}

/* Chat Header */
.chat-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(70, 179, 169, 0.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: rgba(70, 179, 169, 1);
}

/* Chat Header Controls */
.chat-header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Mute button and Call button */
.mute-toggle,
.call-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0.5rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.mute-toggle:hover,
.call-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 1);
}

.mute-toggle.muted {
  background: rgba(255, 69, 58, 0.3);
  color: #FF453A;
}

.mute-toggle.muted:hover {
  background: rgba(255, 69, 58, 0.4);
  color: #FF453A;
}

/* Call button when active (in call) */
.call-btn.active {
  color: rgba(255, 69, 58, 0.8);
}

.call-btn.active:hover {
  background: rgba(255, 69, 58, 0.2);
  color: #FF453A;
}

.chat-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 1);
}

/* Messages Container */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.chat-messages::-webkit-scrollbar {
  width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}

.chat-messages::-webkit-scrollbar-thumb {
  background: rgba(70, 179, 169, 0.3);
  border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(70, 179, 169, 0.5);
}

/* Message Bubbles */
.message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
  margin-bottom: 1.25rem;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.user {
  align-self: flex-end;
}

.message.agent,
.message.system {
  align-self: flex-start;
}

.message-content {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
  word-wrap: break-word;
}

.message.user .message-content {
  background: rgba(70, 179, 169, 0.9);
  border: 1px solid rgba(70, 179, 169, 1);
  color: #FFFFFF;
}

.message.agent .message-content {
  background: #FFFFFF;
  border: 1px solid #D8D7CF;
  color: #0D3B3C;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.message.system .message-content {
  background: rgba(240, 199, 94, 0.25);
  border: 1px solid rgba(240, 199, 94, 0.5);
  color: #0D3B3C;
  font-size: 0.85rem;
  font-style: italic;
}

.message-time {
  font-size: 0.7rem;
  margin-top: 0.5rem;
  color: rgba(13, 59, 60, 0.6);
  display: block;
  padding: 0;
}

.message.user .message-time {
  text-align: right;
}

.message.agent .message-time {
  text-align: left;
}

/* Typing Indicator */
.typing-indicator .message-content {
  padding: 0.5rem 1rem;
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(70, 179, 169, 0.6);
  animation: typingDot 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  30% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

/* Chat Form */
.chat-form {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(70, 179, 169, 0.2);
  display: flex;
  gap: 0.5rem;
}

.chat-input {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(70, 179, 169, 0.3);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.chat-input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(70, 179, 169, 0.5);
}

.chat-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.chat-send {
  background: rgba(70, 179, 169, 0.3);
  border: 1px solid rgba(70, 179, 169, 0.4);
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chat-send:hover {
  background: rgba(70, 179, 169, 0.5);
  border-color: rgba(70, 179, 169, 0.6);
  transform: translateY(-1px);
}

.chat-send:active {
  transform: translateY(0);
}

/* Chat Toggle Button */
.chat-toggle-btn {
  position: fixed;
  bottom: 100px;
  right: 2rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: white;
  border: 3px solid rgba(70, 179, 169, 0.5);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  padding: 0;
  overflow: hidden;
}

.chat-toggle-btn .avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.chat-toggle-btn:hover {
  border-color: rgba(70, 179, 169, 0.8);
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(70, 179, 169, 0.4);
}

.chat-toggle-btn:active {
  transform: scale(1.05);
}

.chat-toggle-btn.active {
  border-color: rgba(70, 179, 169, 1);
  box-shadow: 0 0 0 4px rgba(70, 179, 169, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .chat-panel {
    width: 100vw;
    right: -100vw;
  }

  .chat-panel.visible {
    right: 0;
  }

  .chat-toggle-btn {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
  }

  .message {
    max-width: 90%;
  }
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.site-footer {
    background: #0D3B3C;
    color: #F9F8F3;
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #46B3A9;
    margin-bottom: 1rem;
    font-family: var(--font-sans);
}

.footer-section p,
.footer-section li {
    color: #E8E7E0;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #E8E7E0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #46B3A9;
}

.footer-bottom {
    border-top: 1px solid rgba(70, 179, 169, 0.3);
    padding-top: 1.5rem;
}

.homeworld-attribution {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.homeworld-logo {
    max-width: 180px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.homeworld-logo:hover {
    opacity: 1;
}

.homeworld-attribution p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.homeworld-attribution a {
    color: #46B3A9;
    text-decoration: none;
    font-weight: 500;
}

.homeworld-attribution a:hover {
    color: #5fcfc3;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .homeworld-attribution {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .homeworld-logo {
        max-width: 150px;
    }
}

/* ============================================================================
   COMING SOON PAGES
   ============================================================================ */

.coming-soon-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
}

.coming-soon-header {
    text-align: center;
    margin-bottom: 3rem;
}

.coming-soon-header h1 {
    font-size: 2.5rem;
    color: #0D3B3C;
    margin-bottom: 1rem;
    font-family: 'Crimson Text', serif;
}

.coming-soon-badge {
    display: inline-block;
    background: linear-gradient(135deg, #46B3A9 0%, #3A9A91 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
}

.coming-soon-description {
    background: #F5F4EF;
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid #46B3A9;
    margin-bottom: 2rem;
}

.coming-soon-description p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #2E2E2E;
    margin: 0;
}

.coming-soon-features {
    margin: 3rem 0;
}

.coming-soon-features h2 {
    color: #0D3B3C;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-family: 'Crimson Text', serif;
}

.coming-soon-features ul {
    list-style: none;
    padding: 0;
}

.coming-soon-features li {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: white;
    border-left: 3px solid #46B3A9;
    border-radius: 5px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.coming-soon-features li:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.coming-soon-features li::before {
    content: "✓ ";
    color: #46B3A9;
    font-weight: bold;
    margin-right: 0.5rem;
}

.coming-soon-cta {
    text-align: center;
    margin-top: 4rem;
    padding: 2rem;
    background: linear-gradient(135deg, #F5F4EF 0%, #E8E7E0 100%);
    border-radius: 10px;
}

.coming-soon-cta p {
    font-size: 1.1rem;
    color: #5A5A5A;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .coming-soon-container {
        margin: 2rem auto;
        padding: 1rem;
    }

    .coming-soon-header h1 {
        font-size: 2rem;
    }

    .coming-soon-description {
        padding: 1.5rem;
    }
}

/* ============================================================================
   PAGE HEADER WITH LEVER BANNER
   ============================================================================ */

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

/* Contributor Note - appears at top above title */
.contributor-note {
    background: rgba(70, 179, 169, 0.08);
    border: 1px solid rgba(70, 179, 169, 0.3);
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contributor-note p {
    margin: 0;
    font-size: 0.95rem;
    color: #2E2E2E;
    line-height: 1.5;
}

/* Page Title */
.page-header h1 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--color-primary, #0D3B3C);
    margin: 0 0 1rem 0;
}

/* Lever Banner - tight colored background banner */
.lever-banner {
    background: var(--color-primary, #0D3B3C);
    color: #F9F8F3;
    padding: 0.75rem 1.5rem;
    margin: 0 -2rem;
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 400;
}

.lever-banner p {
    margin: 0;
    color: #F9F8F3;
}

/* Alternative lever style - lighter */
.lever-banner.light {
    background: linear-gradient(135deg, rgba(70, 179, 169, 0.15) 0%, rgba(13, 59, 60, 0.1) 100%);
    color: var(--color-primary, #0D3B3C);
    border-top: 3px solid var(--color-secondary, #46B3A9);
    border-bottom: 1px solid rgba(70, 179, 169, 0.3);
}

.lever-banner.light p {
    color: var(--color-primary, #0D3B3C);
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 1.75rem;
    }

    .lever-banner {
        margin: 0 -1rem;
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }

    .contributor-note {
        padding: 0.6rem 1rem;
    }

    .contributor-note p {
        font-size: 0.9rem;
    }
}

/* ============================================================================
   BREADCRUMB NAVIGATION
   ============================================================================ */

.breadcrumb-container {
    background: #F5F4EF;
    padding: 0.75rem 2rem;
    border-bottom: 1px solid #D8D7CF;
    position: relative;
    z-index: 100;
}

.breadcrumbs {
    max-width: 1400px;
    margin: 0 auto;
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: #46B3A9;
    text-decoration: none;
    transition: text-decoration 0.2s;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #5A5A5A;
}

.breadcrumb-current {
    color: #2E2E2E;
    font-weight: 600;
}

@media (max-width: 768px) {
    .breadcrumb-container {
        padding: 0.5rem 1rem;
    }

    .breadcrumbs {
        font-size: 0.85rem;
    }

    .breadcrumb-separator {
        margin: 0 0.3rem;
    }
}


/* ============================================================================
   EXECUTIVE SUMMARIES
   ============================================================================ */

.executive-summary {
    background: #F0F9F8;
    border-left: 4px solid #46B3A9;
    padding: 2rem;
    margin: 2rem 0 3rem;
    border-radius: 8px;
}

.executive-summary h2 {
    color: #0D3B3C;
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Crimson Text', serif;
}

.executive-summary p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2E2E2E;
}

.executive-summary strong {
    color: #0D3B3C;
    font-weight: 600;
}

.executive-summary ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.executive-summary li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.executive-summary details {
    margin-top: 1rem;
}

.executive-summary summary {
    color: #46B3A9;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Source Sans Pro', sans-serif;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.executive-summary summary:hover {
    text-decoration: underline;
    color: #3A9A91;
}

.executive-summary details[open] summary {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .executive-summary {
        padding: 1.5rem;
        margin: 1.5rem 0 2rem;
    }

    .executive-summary h2 {
        font-size: 1.3rem;
    }

    .executive-summary p {
        font-size: 1rem;
    }
}

/* ============================================================================
   KEYBOARD NAVIGATION FOCUS STATES
   ============================================================================ */

.nav-link:focus-visible {
    outline: 2px solid #46B3A9;
    outline-offset: 3px;
    border-radius: 4px;
}

.dropdown-item:focus-visible {
    outline: 2px solid #46B3A9;
    outline-offset: -2px;
}

.cta-button:focus-visible {
    outline: 3px solid #46B3A9;
    outline-offset: 3px;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* ============================================================================
   MOBILE RESPONSIVE ENHANCEMENTS
   ============================================================================ */

/* Hamburger Menu Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    padding: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    margin-left: auto;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #e8e4dc;
    transition: all 0.3s ease;
}

.nav-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Breakpoint */
@media (max-width: 768px) {
    /* Show hamburger, hide desktop nav */
    .nav-toggle {
        display: flex;
    }

    .nav-content {
        flex-wrap: wrap;
        position: relative;
    }

    .logo {
        font-size: 1.5rem;
        padding: 15px 20px;
        border-right: none;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(26, 40, 37, 0.98);
        border-top: 1px solid rgba(70, 179, 169, 0.3);
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(70, 179, 169, 0.15);
    }

    .nav-link {
        padding: 16px 20px;
        min-height: 48px;
        display: flex;
        align-items: center;
        font-size: 1.1rem;
        color: #e8e4dc;
    }

    /* Mobile dropdown handling */
    .dropdown-menu {
        display: none;
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        background: rgba(70, 179, 169, 0.1);
        min-width: 100%;
        padding: 0;
        margin: 0;
    }

    .dropdown:hover .dropdown-menu {
        display: none; /* Disable hover on mobile */
    }

    .dropdown.open .dropdown-menu {
        display: block; /* Use tap instead */
    }

    .dropdown-item {
        padding: 14px 20px 14px 40px;
        min-height: 48px;
        display: flex;
        align-items: center;
        border-bottom: 1px solid rgba(70, 179, 169, 0.1);
        color: #e8e4dc;
    }

    .dropdown-item:last-child {
        border-bottom: none;
    }

    /* Header adjustments */
    header {
        padding: 2rem 20px;
    }

    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    /* Content area */
    .content {
        padding: 1.5rem 1rem;
    }

    /* Explainer boxes */
    .explainer {
        padding: 20px;
        margin-bottom: 25px;
    }

    /* Dataset header */
    .dataset-header {
        padding: 25px 20px;
    }

    .dataset-header h2 {
        font-size: 1.5rem;
    }

    /* Tables - Card Layout on Mobile */
    .table-responsive {
        overflow-x: visible;
    }

    .dataset-matrix,
    .markdown-table,
    #project-content table {
        display: block;
    }

    .dataset-matrix thead,
    .markdown-table thead,
    #project-content table thead {
        display: none;
    }

    .dataset-matrix tbody,
    .markdown-table tbody,
    #project-content table tbody {
        display: block;
    }

    .dataset-matrix tr,
    .markdown-table tr,
    #project-content table tr {
        display: block;
        margin-bottom: 1rem;
        background: #F9F8F3;
        border: 1px solid #D8D7CF;
        border-radius: 8px;
        padding: 1rem;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .dataset-matrix td,
    .markdown-table td,
    #project-content table td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 8px 0;
        border-bottom: 1px solid #E8E7E0;
        text-align: right;
    }

    .dataset-matrix td:last-child,
    .markdown-table td:last-child,
    #project-content table td:last-child {
        border-bottom: none;
    }

    .dataset-matrix td::before,
    .markdown-table td::before,
    #project-content table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #0D3B3C;
        text-align: left;
        flex-shrink: 0;
        margin-right: 1rem;
    }

    /* Touch targets - minimum 44x44px */
    .cta-button,
    button,
    .nav-link,
    .dropdown-item,
    a.dataset-link {
        min-height: 44px;
    }

    /* Integration guide */
    .integration-guide {
        padding: 20px 15px;
    }

    .integration-guide pre {
        padding: 15px;
        font-size: 0.8rem;
    }

    /* Stat cards */
    .stat-number {
        font-size: 1.8rem;
    }

    .stat-card {
        padding: 1rem;
    }

    /* CTA buttons stack on mobile */
    .cta-buttons {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
        text-align: center;
    }

    /* Chat toggle position */
    .chat-toggle-btn {
        bottom: 1rem;
        right: 1rem;
        width: 56px;
        height: 56px;
    }

    /* Breadcrumbs */
    .breadcrumb-container {
        padding: 0.5rem 1rem;
        overflow-x: auto;
    }

    .breadcrumbs {
        white-space: nowrap;
        font-size: 0.8rem;
    }

    /* Executive summary */
    .executive-summary {
        padding: 1.25rem;
        margin: 1rem 0 2rem;
    }

    /* Coming soon */
    .coming-soon-container {
        padding: 1rem;
        margin: 1rem auto;
    }

    .coming-soon-header h1 {
        font-size: 1.75rem;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .logo {
        font-size: 1.25rem;
        padding: 12px 15px;
    }

    h1 {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .content {
        padding: 1rem 0.75rem;
    }

    .explainer p,
    .dataset-description,
    p {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    /* Footer stacks */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-section ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem 1rem;
    }

    .footer-section li {
        margin: 0;
    }
}

/* Landscape phone adjustments */
@media (max-width: 768px) and (orientation: landscape) {
    .nav-menu {
        max-height: 60vh;
        overflow-y: auto;
    }

    header {
        padding: 1.5rem 20px;
    }
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Better tap highlighting */
@media (hover: none) {
    .nav-link:active,
    .dropdown-item:active,
    .cta-button:active {
        background-color: rgba(70, 179, 169, 0.1);
    }
}
