        :root {
            --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
            --font-heading: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
            --font-mono: 'JetBrains Mono', 'Courier New', Courier, monospace;

            font-family: var(--font-body);
            line-height: 1.5;
            font-weight: 400;
        }

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

        body {
            min-width: 320px;
            min-height: 100vh;
            background: linear-gradient(135deg, #EFF6FF 0%, #F3E8FF 50%, #FCE7F3 100%);
            color: #1f2937;
        }

        /* Header */
        .header {
            background: white;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            text-decoration: none;
        }

        .logo-icon {
            width: 2rem;
            height: 2rem;
            color: #9333ea;
        }

        .logo-text {
            font-family: var(--font-heading);
            font-size: 1.25rem;
            font-weight: 600;
            color: #1f2937;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .nav-links a {
            color: #6b7280;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.2s;
        }

        .nav-links a:hover {
            color: #9333ea;
        }

        /* Breadcrumbs */
        .breadcrumbs {
            max-width: 1200px;
            margin: 0 auto;
            padding: 1rem 2rem;
            font-size: 0.875rem;
            color: #6b7280;
        }

        .breadcrumbs a {
            color: #9333ea;
            text-decoration: none;
        }

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

        /* Main Layout */
        .content-wrapper {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 2rem;
        }

        /* Source Type Pages (Single Column) */
        .content-wrapper.source_type {
            max-width: 900px;
            display: block;
        }

        .main-content {
            background: white;
            border-radius: 0.75rem;
            padding: 2rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        }

        /* Spacing for content sections (matches mockup design) */
        .main-content > h2 {
            font-family: var(--font-heading);
            font-size: 1.5rem;
            font-weight: 600;
            color: #1f2937;
            margin-top: 3rem;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #e5e7eb;
        }

        .main-content > h2:first-child {
            margin-top: 0;
        }

        .main-content > p {
            color: #374151;
            line-height: 1.6;
            margin-bottom: 1rem;
        }

        .main-content > ul,
        .main-content > ol {
            margin-left: 1.5rem;
            margin-bottom: 1rem;
            color: #374151;
        }

        .main-content > ul > li,
        .main-content > ol > li {
            margin-bottom: 0.5rem;
            line-height: 1.6;
        }

        .sidebar {
            position: sticky;
            top: 80px;
            height: fit-content;
        }

        /* Hero Section */
        .hero {
            margin-bottom: 2rem;
        }

        .hero h1 {
            font-family: var(--font-heading);
            font-size: 3rem;
            font-weight: 600;
            color: #1f2937;
            line-height: 1.1;
            margin-bottom: 1rem;
        }

        .hero-description {
            font-size: 1.25rem;
            color: #6b7280;
            line-height: 1.6;
            margin-bottom: 1rem;
        }

        .meta-info {
            display: flex;
            gap: 2rem;
            font-size: 0.875rem;
            color: #6b7280;
            margin-top: 1rem;
        }

        /* Table of Contents */
        .toc {
            background: #f9fafb;
            border: 1px solid #e5e7eb;
            border-radius: 0.5rem;
            padding: 1.5rem;
            margin-bottom: 2rem;
        }

        .toc h2 {
            font-family: var(--font-heading);
            font-size: 1.25rem;
            font-weight: 600;
            color: #1f2937;
            margin-bottom: 1rem;
        }

        .toc ol {
            list-style-position: inside;
            color: #6b7280;
        }

        .toc li {
            margin-bottom: 0.5rem;
        }

        .toc a {
            color: #9333ea;
            text-decoration: none;
        }

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

        /* TL;DR Box */
        .tldr-box {
            background: #fef3c7;
            border: 1px solid #fbbf24;
            border-radius: 0.5rem;
            padding: 1.5rem;
            margin-bottom: 2rem;
        }

        .tldr-box h2 {
            font-family: var(--font-heading);
            font-size: 1.25rem;
            font-weight: 600;
            color: #92400e;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .tldr-box ul {
            list-style-position: inside;
            color: #92400e;
            font-weight: 500;
        }

        .tldr-box li {
            margin-bottom: 0.5rem;
        }

        /* Quick Reference Box (Source Type Guides) */
        .quick-ref-box {
            background: #f3e8ff;
            border: 2px solid #9333ea;
            border-radius: 0.5rem;
            padding: 1.5rem;
            margin: 2rem 0;
        }

        .quick-ref-box h2 {
            font-family: var(--font-heading);
            font-size: 1.25rem;
            font-weight: 600;
            color: #6b21a8;
            margin-bottom: 1rem;
        }

        .template-box {
            font-family: var(--font-mono);
            background: white;
            padding: 1rem;
            border-radius: 0.375rem;
            font-size: 0.875rem;
            line-height: 1.6;
            border-left: 3px solid #9333ea;
        }

        .template-box em {
            font-style: italic;
            color: #9333ea;
        }

        /* Mini Checker */
        .mini-checker {
            background: white;
            border: 2px solid #9333ea;
            border-radius: 0.75rem;
            padding: 1.5rem;
            margin: 2rem 0;
            box-shadow: 0 4px 12px rgba(147, 51, 234, 0.2);
        }

        .mini-checker h4 {
            font-size: 1.125rem;
            color: #1f2937;
            margin-bottom: 0.5rem;
        }

        .mini-checker p {
            color: #6b7280;
            font-size: 0.875rem;
            margin-bottom: 1rem;
        }

        .mini-checker textarea {
            width: 100%;
            border: 2px solid #e5e7eb;
            border-radius: 0.5rem;
            padding: 0.75rem;
            font-family: var(--font-mono);
            font-size: 0.875rem;
            resize: vertical;
            min-height: 80px;
        }

        .mini-checker textarea:focus {
            outline: none;
            border-color: #9333ea;
        }

        .mini-checker button {
            width: 100%;
            background: #9333ea;
            color: white;
            border: none;
            padding: 0.75rem;
            border-radius: 0.5rem;
            font-weight: 600;
            cursor: pointer;
            margin-top: 1rem;
            transition: all 0.2s;
            box-shadow: 0 4px 12px rgba(147, 51, 234, 0.3);
        }

        .mini-checker button:hover {
            background: #7c3aed;
            transform: translateY(-1px);
        }

        /* Content Sections */
        .content-section {
            margin-bottom: 3rem;
        }

        .content-section h2 {
            font-family: var(--font-heading);
            font-size: 1.5rem;
            font-weight: 600;
            color: #1f2937;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 2px solid #e5e7eb;
        }

        .content-section h3 {
            font-family: var(--font-heading);
            font-size: 1.25rem;
            font-weight: 600;
            color: #1f2937;
            margin-top: 1.5rem;
            margin-bottom: 0.75rem;
        }

        .content-section p {
            color: #374151;
            line-height: 1.6;
            margin-bottom: 1rem;
        }

        .content-section ul, .content-section ol {
            margin-left: 1.5rem;
            margin-bottom: 1rem;
            color: #374151;
        }

        .content-section li {
            margin-bottom: 0.5rem;
            line-height: 1.6;
        }

        /* Code/Citation Blocks */
        .citation-example {
            font-family: var(--font-mono);
            background: #f9fafb;
            border-left: 3px solid #9333ea;
            padding: 1rem;
            margin: 1rem 0;
            border-radius: 0.375rem;
            font-size: 0.875rem;
            line-height: 1.5;
        }

        .citation-example em {
            font-style: italic;
        }

        /* Error Boxes */
        .error-example {
            background: #fef2f2;
            border-left: 3px solid #ef4444;
            padding: 1rem;
            margin: 1rem 0;
            border-radius: 0.375rem;
        }

        .error-example strong {
            color: #991b1b;
            display: block;
            margin-bottom: 0.5rem;
        }

        .error-example p {
            color: #7f1d1d;
            font-size: 0.875rem;
        }

        .correction-box {
            background: #f0fdf4;
            border-left: 3px solid #22c55e;
            padding: 1rem;
            margin-top: 0.5rem;
            border-radius: 0.375rem;
        }

        .correction-box strong {
            color: #166534;
            display: block;
            margin-bottom: 0.5rem;
        }

        .correction-box p {
            color: #166534;
            font-size: 0.875rem;
        }

        /* Checklist */
        .checklist {
            background: #f9fafb;
            border: 1px solid #e5e7eb;
            border-radius: 0.5rem;
            padding: 1.5rem;
            margin: 1rem 0;
        }

        .checklist ul {
            list-style: none;
            margin-left: 0;
        }

        .checklist li {
            padding-left: 1.5rem;
            position: relative;
            margin-bottom: 0.75rem;
        }

        .checklist li:before {
            content: "✓";
            color: #22c55e;
            font-weight: bold;
            position: absolute;
            left: 0;
        }

        /* Step-by-Step Box */
        .step-box {
            background: #f9fafb;
            border: 1px solid #e5e7eb;
            border-radius: 0.5rem;
            padding: 1.5rem;
            margin: 1rem 0;
        }

        .step-box ol {
            margin-left: 0;
            counter-reset: step-counter;
            list-style: none;
        }

        .step-box li {
            counter-increment: step-counter;
            position: relative;
            padding-left: 2.5rem;
            margin-bottom: 1.5rem;
        }

        .step-box li:before {
            content: counter(step-counter);
            position: absolute;
            left: 0;
            top: 0;
            background: #9333ea;
            color: white;
            width: 1.75rem;
            height: 1.75rem;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.875rem;
        }

        /* Related Source Types */
        .related-box {
            background: #f3e8ff;
            border-radius: 0.75rem;
            padding: 1.5rem;
            margin-top: 3rem;
        }

        .related-box h3 {
            font-family: var(--font-heading);
            font-size: 1.25rem;
            font-weight: 600;
            color: #6b21a8;
            margin-bottom: 1rem;
        }

        .related-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 0.75rem;
        }

        .related-link {
            background: white;
            padding: 0.75rem;
            border-radius: 0.5rem;
            text-decoration: none;
            color: #9333ea;
            font-weight: 500;
            font-size: 0.875rem;
            transition: all 0.2s;
            display: block;
        }

        .related-link:hover {
            background: #6b21a8;
            color: white;
        }

        /* Comparison Table */
        .comparison-table {
            width: 100%;
            border-collapse: collapse;
            margin: 1rem 0;
            font-size: 0.875rem;
        }

        .comparison-table th {
            background: #f9fafb;
            color: #1f2937;
            font-weight: 600;
            padding: 0.75rem;
            text-align: left;
            border: 1px solid #e5e7eb;
        }

        .comparison-table td {
            padding: 0.75rem;
            border: 1px solid #e5e7eb;
            color: #374151;
        }

        /* FAQ */
        .faq-item {
            background: #f9fafb;
            border-radius: 0.5rem;
            padding: 1.5rem;
            margin-bottom: 1rem;
        }

        .faq-question {
            font-family: var(--font-heading);
            font-size: 1.125rem;
            font-weight: 600;
            color: #1f2937;
            margin-bottom: 0.75rem;
        }

        .faq-answer {
            color: #6b7280;
            line-height: 1.6;
        }

        /* Sidebar Components */
        .sidebar-section {
            background: white;
            border-radius: 0.75rem;
            padding: 1.5rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            margin-bottom: 1.5rem;
        }

        .sidebar-section h3 {
            font-family: var(--font-heading);
            font-size: 1.125rem;
            font-weight: 600;
            color: #1f2937;
            margin-bottom: 1rem;
        }

        .sidebar-section ul {
            list-style: none;
        }

        .sidebar-section li {
            margin-bottom: 0.75rem;
        }

        .sidebar-section a {
            color: #9333ea;
            text-decoration: none;
            font-size: 0.875rem;
        }

        .sidebar-section a:hover {
            text-decoration: underline;
        }

        /* Pro Tip Sidebar Section (green styling) */
        .sidebar-pro-tip {
            background: #f0fdf4;
            border: 1px solid #22c55e;
        }

        .sidebar-pro-tip h3 {
            font-family: var(--font-heading);
            color: #166534;
        }

        .sidebar-pro-tip p {
            color: #166534;
            font-size: 0.875rem;
            line-height: 1.6;
        }

        /* Footer */
        .footer {
            background: #1f2937;
            color: white;
            padding: 3rem 2rem;
            margin-top: 4rem;
        }

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

        .footer-text {
            font-size: 0.875rem;
            color: #9ca3af;
        }

        /* PSEO Pages Footer */
        .site-footer {
            background: #1f2937;
            color: white;
            padding: 3rem 2rem;
            margin-top: 4rem;
        }

        .site-footer-content {
            max-width: 1200px;
            margin: 0 auto;
            text-align: center;
        }

        .site-footer-content p {
            font-size: 0.875rem;
            color: #9ca3af;
            margin: 0.5rem 0;
        }

        .site-footer-content .footer-links {
            margin: 0.75rem 0;
        }

        .site-footer-content .footer-links a {
            color: #9ca3af;
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .site-footer-content .footer-links a:hover {
            color: white;
        }

        .site-footer-content .footer-tagline {
            font-size: 0.875rem;
            color: #6b7280;
            margin-top: 1rem;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .content-wrapper {
                grid-template-columns: 1fr;
            }

            .sidebar {
                position: static;
            }

            .hero h1 {
                font-size: 2rem;
            }

            .hero-description {
                font-size: 1.125rem;
            }

            .header-content {
                padding: 1rem;
            }

            .breadcrumbs {
                padding: 1rem;
            }

            .content-wrapper {
                padding: 1rem;
            }

            .main-content {
                padding: 1.5rem;
            }

            .nav-links {
                display: none;
            }
        }
