/* research page styles (extracted from inline <style>, tokenized for theming) */
body {
            margin: 0;
            padding: 0;
        }

        header {
            margin: 0;
            padding: 0;
        }

        .research-hero {
            margin-top: 0;
        }

        /* Footer two-column layout */
        .footer-links-container {
            display: flex;
            gap: 2rem;
        }

        .footer-links-column {
            margin: 0;
            padding: 0 0 0 1.5rem;
            list-style: disc;
        }

        @media (max-width: 768px) {
            .footer-links-container {
                flex-direction: column;
                gap: 0;
            }
        }

        @media (max-width: 768px) {
            .screenshot-gallery {
                grid-template-columns: 1fr;
                max-width: 100%;
            }
        }

        @media (max-width: 768px) {
            .screenshot-gallery {
                grid-template-columns: 1fr;
                max-width: 100%;
            }
        }

        /* Collapsible project styles */
        .project-collapsible {
            border: 1px solid var(--border);
            border-radius: 8px;
            background: var(--surface);
            margin: 1rem 0 1.25rem;
            overflow: hidden;
        }
        .project-collapsible[open] {
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
        }
        .project-collapsible summary {
            list-style: none;
            cursor: pointer;
            padding: 1rem 1.25rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1rem;
            background: var(--surface-2);
        }
        .project-collapsible summary::-webkit-details-marker { display: none; }
        .summary-content { display: flex; flex-direction: column; gap: 0.25rem; }
        .project-title { color: var(--heading); font-weight: 700; font-size: 1.05rem; }
        .project-keypoint { color: var(--text-2); font-weight: 400; font-size: 0.95rem; }
        .caret { color: #8a8f98; transition: transform 0.2s ease; }
        .project-collapsible[open] .caret { transform: rotate(90deg); }
        .project-body { padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--border); }
        .project-collapsible summary { 
            display: flex; 
            align-items: flex-start;
            gap: 1.25rem;
            cursor: pointer;
        }
        .project-collapsible summary::-webkit-details-marker {
            display: none;
        }
        .project-collapsible summary::after {
            content: '›';
            margin-left: auto;
            color: #8a8f98;
            font-size: 1.5rem;
            line-height: 1;
            transition: transform 0.2s ease;
        }
        .project-collapsible[open] summary::after {
            transform: rotate(90deg);
        }
        @media (max-width: 768px) {
            .project-collapsible summary { 
                flex-direction: column; 
                gap: 0.75rem;
            }
            .project-keypoint { 
                font-size: 0.9rem;
                margin-top: 0.25rem;
            }
        }
        .summary-thumb {
            width: 100px;
            height: 100px;
            border-radius: 6px;
            object-fit: contain;
            background: var(--surface-2);
            box-shadow: 0 1px 2px rgba(0,0,0,0.06);
            flex: 0 0 100px;
        }
        @media (max-width: 768px) {
            .summary-thumb { 
                width: 100%; 
                height: auto; 
                max-height: 220px; 
                margin-top: 0.75rem;
            }
        }
        .summary-content {
            flex: 1;
            min-width: 0; /* Prevents flex overflow */
            padding-right: 1.5rem; /* Space before the caret */
        }
        .lightbox {
            display: none;
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.85);
            z-index: 9999;
            align-items: center;
            justify-content: center;
            padding: 2rem;
        }
        .lightbox.show { display: flex; }
        .lightbox img {
            max-width: 90%;
            max-height: 90vh;
            border-radius: 8px;
            box-shadow: 0 10px 24px rgba(0,0,0,0.35);
        }
        .lightbox .close {
            position: absolute;
            top: 16px;
            right: 22px;
            color: #fff;
            font-size: 32px;
            line-height: 1;
            cursor: pointer;
            user-select: none;
        }
